Hacker News new | ask | show | jobs
by kr0bat 959 days ago
https://justine.lol/ape.html

For the uniformed

4 comments

Also for the casually dressed
I love all of the domain experts and accomplished people hanging out with the rest of us on HN. :)
holy shit!

> In the above one-liner, we've basically reconfigured the stock compiler on Linux so it outputs binaries that'll run on MacOS, Windows, FreeBSD, OpenBSD, and NetBSD too. They also boot from the BIOS. Please note this is intended for people who don't care about desktop GUIs, and just want stdio and sockets without devops toil

they also boot from the BIOS.... does this mean that I can achieve my dream of booting straight into a BBC BASIC emulator on bare metal(ish)?

You might want to take a look at the current no. 2 of the HN best list:

https://news.ycombinator.com/item?id=38101613

thank you so much!

Justine is a genius.

Can cosmopolitan replace the whole llvm toolchain required by GraalVM’s native-image? Currently cross building with native-image is a pain, especially compared to golang. (Or resource intensive as you need to compile it on each platform/architecture you want.)
It’s probably not the best form to abstract away the OS-distinctions, as every abstraction will hide important details from the underlying OS. E.g. certain JDK native methods could be more efficiently done for, say, windows, then through a libc-like abstraction library.