HNHacker News
TopNewBestAskShowJobs

themadsens

55 karma · joined July 22, 2019

submissionscomments
themadsens··on Floppinux – An Embedded Linux on a Single Floppy
Ah yes, tomsrtbt. I completely forgot about it. It even looks it's still going. Used to have that as a grub boot target, and it has saved my cheese more than once ..
themadsens··on Floppinux – An Embedded Linux on a Single Floppy
Nice write-up.

Back in the day, there was also LOAF (Linux On A Floppy). [1]

I had a go at it, until I realized someone beat me to the name.

[1] https://linux-center.org/en/distributions/mini-distributions... (Only the index still remains)

themadsens··on The unreasonable effectiveness of print debugging
That's perfectly doable. I routinely navigate / extend / debug / refactor a 600 KLOC Java codebase with nvim + ctags + ripgrep and will have the job done well before the language server has even completed digging through those 600 KLOC.
themadsens··on Fed up with the Mac, I spent six months with a Linux laptop
You may want HyperDock[1] which enables that behaviour. There is also HyperSwitch[2] which switches windows, not apps. It's a beta, but still works great on Big Sur.

[1] https://bahoom.com/hyperdock

[2] https://bahoom.com/hyperswitch

themadsens··on Terminal escape sequences in Git commit email field
I agree there is another can of worms waiting to be opened: agreeing on the schema of said json output. Also structured output is probably way more useful downstream from the likes of ls, exa, ps (say) rather than from grep like tools
themadsens··on Systemd 248
Golang comes to mind. Gobs of C boilerplate could have been avoided. Docker is written in Go after all and was first released in 2013
themadsens··on Why I Prefer Makefiles over Package.json Scripts
I do exactly the same for maven builds, for exactly the same reasons (Discoverable one-liners, bash autocompletion etc.). Added bonus: facade the XML (yuck) based config language of maven
themadsens··on Terminal escape sequences in Git commit email field
I'd say, what we need is a --json flag on all pipe producers like like ls, exa, find, grep, ripgrep. Then you'll have the best of both worlds: something that is equally(?) parseable by humans and computers. (jq to the rescue)
themadsens··on Lua, a Misunderstood Language
> It's definitely surprising that globals default to nil

It makes a lot of sense once you realise that assigning to a "global variable X" (which is equivalent to _G[X]) and then assign nil, is exactly the same as never assigning at all

themadsens··on Lua, a Misunderstood Language
Brillant. This distinction nails it. Luckily it doesn't matter much in 99.9% of the cases where one just enumerates/filters/maps a collection and indexing is not involved.
themadsens··on Why I'm Tcl-Ish
Yes, I see your point. I can't remember the context that bit me anymore, but I think it had to with being unable to change the defaults with fconfigure for some reason, the channel being implicit or somesuch .
themadsens··on Why I'm Tcl-Ish
The biggest gripe I have with modern (ie. the post-Sun era) Tcl is the steaming mess that are channels and their encodings. Good luck trying to do anything 8-bit clean with those.

For a simpler, cleaner alternative, you might want to take a look at antirez's jim tcl

themadsens··on Ask HN: What's a promising area to work on?
At least we will not have to worry about Y2038 then..
← PreviousPage 2 of 2