Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As the other commenters have said - yes. From the last paragraph of the link:

> One of the projects currently using Blink is Cosmopolitan Libc. Blink is more embeddable than qemu-x86_64 since Blink is 22x tinier in terms of binary footprint. So what Cosmo does is it vendors prebuilt Blink binaries inside each of the x86-64 executables it compiles. That way, whenever someone tries to run these programs on a different architecture like Arm, the Actually Portable Executable shell script wrapper will simple extract the appropriate blink binary and re-run itself.

Cosmopolitan LibC is truly “write once run anywhere” except instead of using JVM virtualization, it used x86_64 as the portable VM. Your users don’t need to install a VM or runtime, and you can ship a single exe that runs on all popular architectures and operating systems, including bare metal.

See https://justine.lol/cosmopolitan/




It's pretty sick, but is anyone actually doing it? It seems pretty scary to use to me.


It's an unprivileged VM, so unless you're the type to do binary analysis before running things this is just as safe as any other binary.


Huh, that's pretty damn cool, thanks!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: