A weird thing about being 50 is that there are programming languages that I've used regularly for longer than some of the software developers I work with have been alive. I first wrote BASIC code in the 1980s. The first time I wrote an expression evaluator--a fairly standard programming puzzle or homework--was in 1990. I wrote it in Pascal for an undergraduate homework assignment. I first wrote perl in the early 1990s, when it was still perl 4.036 (5.38.2 now). I first wrote java in 1995-ish, when it was still java 1.0 (1.21 now). I first wrote scala, which I still use for most things today, in 2013-ish, when it was still scala 2.8 (3.4.0 now). At various times I've been "fluent" in 8086 assembly, BASIC, C, Pascal, perl, python, java, scala; and passable in LISP/Scheme, Prolog, old school Mathematica, (early days) Objective C, matlab/octave, and R. I've written a few lines of Fortran and more than a few lines of COBOL that I ran in a production system once. I could probably write a bit of Haskell if pressed but for some reason I really dislike its syntax so I've never been enthusiastic about learning it well. I've experimented with Clean, Flix, Curry, Unison, Factor, and Joy and learned bits and pieces of each of those. I'm trying to decide whether I should try learning Idris, Agda, and/or Lean. I'm pretty sure I'm forgetting a few languages. Bit of 6502 assembly long ago. Bit of Unix/Linux shell scripting languages (old enough to have lived and breathed tcsh before switching to bash; I use fish now mostly).
When I say passable: in graduate school I wrote a Prolog interpreter in java (including parsing source code or REPL input), within which I could run the classic examples like append or (very simple) symbolic differentiation/integration. As an undergraduate I wrote a Mathematica program to solve the word recognition problem for context-free formal languages. But I'd need some study time to be able to write these languages again.
I don't know what the hell prompted me to reminisce about programming languages. I hope it doesn't come off as a humblebrag but rather like old guy spinning yarns. I think I've been through so many because I'm never quite happy with any one of them and because I've had a varied career that started when I was pretty young.
I guess I'm also half hoping to find people on here who have similar interests so I'm going to riddle this post with hashtags:
For all the Sort Your Life Out fans who have random bits of junk across the house and want to get rid of it, but don't know how, here is a thread on it as someone who has sold, given away stuff, and trashed stuff.
I setup a next.js project with pkgs.mkshell, and used nix develop to automatically build the project. However, when I leave the shell, the files persist. How should/can(?) I setup my shell.nix so that files in the directory it drops down into are automatically removed when leaving the ephemeral shell?
WDYM by “directory it drops down into”? nix develop stays in your current working directory.
If I wanted to clean up state, I’d create a clean task in the build system or build a clean script that I’d wire up to the flake outputs such that you could run nix run .#clean.
#Biden Finally Picks A Side In The Big #Clean#Energy Fight Dividing Democrats
The administration's strict rules for "green" #hydrogen boost some clean power, like geothermal energy, but deal a blow to nuclear.
The Biden administration sided with Senate climate hawks in one of the highest-stakes debates over the future of U.S. efforts to cut planet-heating emissions, announcing its long-awaited proposal on Friday for strict rules on production of the hydrogen fuel
This piece, from an Aussie org, is gushing abt #China's "top-down centralized command & control structure" being a huge + for #climate & the "push for #clean#energy."
It then says that democracies "are falling further behind" b/c they have "no central planner mandates." They also face "strong headwinds from short-termism."
Meanwhile, US-China tensions are b/c "the U.S. sees darker motives & regards China as a primary threat."
🍷 Bisher galten 24 Gramm Reinalkohol pro Tag für Männer und 12 Gramm bei Frauen als "risikoarmer Konsum". Jedoch zeigt die Wissenschaft zunehmend, dass es keinen sicheren #Alkoholkonsum gibt. Schon geringe Trinkmengen können zur Verursachung von Krankheiten beitragen.
Statistisch gesehen wurden in Deutschland 2022 durchschnittlich pro Kopf elf Kästen Bier, 26 Flaschen Wein, fünf Liter Schnaps und vier Flaschen Sekt getrunken.
It's weird cooking in someone else's kitchen. I'm making dinner for Mark because he refuses to accept anything else as a thank you for his hospitality, and he keeps looking over my shoulder. 🤣 We have different methods of cleaning while we cook (apparently). I clean up when I'm done. Mark is like Felix Unger and runs in with a paper towel when I drop a crumb.
This is a common sense move by the UK government. Pumping #hydrogen into homes to replace natural gas was always a stupid idea and only gained any traction in the first place due to extensive lobbying by incumbent gas suppliers looking to secure their future. Home heating has to go 100% electric and Green Hydrogen has its place in the mix of energy storage solutions we need to smooth out lumpy renewable energy supply.
Replacing docker/podman with Nixos?
I setup a next.js project with pkgs.mkshell, and used nix develop to automatically build the project. However, when I leave the shell, the files persist. How should/can(?) I setup my shell.nix so that files in the directory it drops down into are automatically removed when leaving the ephemeral shell?
FB content... I guess... (lemmy.dbzer0.com)
TikTok stars clean up: the influencers saving Indonesia’s polluted rivers and beaches (www.theguardian.com)
Pandawara formed in 2022 after flooding caused by rivers clogged with rubbish damaged their homes – now they are national celebrities