HackerTrans
TopNewTrendsCommentsPastAskShowJobs

techhazard

no profile record

comments

techhazard
·2 jaar geleden·discuss
> I've noticed with untyped code that at some point HOFs start becoming hard to write because the layers of abstraction get confusing […]

I have the same with Nix (from NixOS).

It’s a really nice idea to have a functional language that compiles to a working linux installation, but those abstract functions can get really complicated, especially when I return to something I wrote six months ago.

It makes me really miss Rust’s type system…
techhazard
·2 jaar geleden·discuss
Yes, very. ML and LLM has its specific uses, but every company is slapping “AI” onto everything and it’s so stupid. Have you heard about the AI rice cooker…?[1]

You might enjoy the talk Adam Conover had with Ed Zitron[2]; I found it quite cathartic.

1: https://ifdesign.com/en/winner-ranking/project/ai-rice-cooke...

2: https://youtu.be/T8ByoAt5gCA
techhazard
·2 jaar geleden·discuss
Exactly! If you only look at the commute, you get ridiculous things like commuter trains, that only run in the morning in one direction and in the afternoon in the other.

In the Netherlands for example, lots of people go by car to Work, because that’s relatively far away; but then they’ll use their bike or transport for everything else. Stuff like groceries, dentist visits, meeting friends, going to the gym, etc. because all those things are within (their district of) the city.
techhazard
·3 jaar geleden·discuss
We’re slowly inching closer to: Say McDonalds to end commercial [1]

1: https://web.archive.org/web/20230122044853/https://www.altch...
techhazard
·3 jaar geleden·discuss
That’s likely because it’s unable to print the tracking dots[1].

1: https://en.wikipedia.org/wiki/Machine_Identification_Code
techhazard
·3 jaar geleden·discuss
I now run NixOS, so that’s a non-issue for me.

But even so, it’s not hard, you have to install the ZFS package and make sure it’s included in your initramfs (if you use ZFS for / ).

On arch I used the linux-lts kernel with ZFS and never had any issues in three years.
techhazard
·3 jaar geleden·discuss
Desktop, Laptop, NAS and Server all run on ZFS and push snapshots to an extra backup pool on the Server (colocated in a DC).

Those backups are also pushed to an offsite location (with a hosting provider).

Laptop and NAS run on a single disk rootfs, Desktop and Server run on mirrored nvme drives.
techhazard
·3 jaar geleden·discuss
I use colmena[1] to manage one nixos configuration for multiple machines: - laptop - desktop - server - rpi nas

I also wipe my entire rootfs every boot with a zfs snapshot rollback[2] using the impermanence module[3] to keep specific stateful data one one of two datasets with regular snapshots: one is backed up with zfs send, the other is just for cache between reboots.

It took a little puzzling to get started, because I didn’t know about the impermanence module at first, so I built my own hacky solution. But I really love this setup. And the way I don’t have cruft to clean.

Also my backups are so much smaller now :’-)

[1]: https://colmena.cli.rs/

[2]: https://grahamc.com/blog/erase-your-darlings/

[3]: https://github.com/nix-community/impermanence
techhazard
·3 jaar geleden·discuss
Not OP, but I can highly recommend just using the programming language you already use to make key-value map to and then converting that to JSON. That way you only have 1 syntax to worry about. In my case that’s Python (using dictionaries and json.dumps)

You could also try for a templating framework (like jinja2) but then you have 3 syntaxes colliding: the programming language you call the templating engine with (e.g. Python for jinja2) the templating language itself (e.g. jinja2) and then JSON as well.