Page 1 of 1

Cosmopolitan Libc

Posted: Wed Apr 16, 2025 8:23 am
by the.weavster
This seems interesting:

"Cosmopolitan Libc makes C a build-anywhere run-anywhere language, like Java, except it doesn't need an interpreter or virtual machine. Instead, it reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS on AMD64 and ARM64 with the best possible performance."

Re: Cosmopolitan Libc

Posted: Wed Apr 16, 2025 2:05 pm
by Quin
Saw this a while ago, it seems really interesting. Sadly I doubt it'll ever catch on, but it's a really cool piece of engineering.

Re: Cosmopolitan Libc

Posted: Wed Apr 16, 2025 2:47 pm
by Fred
May be it works for a console hello world, but is there more complex apps (with GUI) for this ?

Re: Cosmopolitan Libc

Posted: Wed Apr 16, 2025 4:01 pm
by the.weavster
Fred wrote: Wed Apr 16, 2025 2:47 pm May be it works for a console hello world, but is there more complex apps (with GUI) for this ?
It seems much more capable than just hello world, there's a list of binaries compiled with it here which includes Python, PHP, SQLite3, ...

As for GUIs I think somebody got SDL working but I think the real target is headless applications.

Re: Cosmopolitan Libc

Posted: Thu Apr 17, 2025 6:09 am
by idle
I looked at this a few weeks ago and thought wow.

Re: Cosmopolitan Libc

Posted: Fri Apr 18, 2025 6:03 pm
by threedslider
Interesting stuff, thanks for sharing :shock: