Cosmopolitan Libc

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
the.weavster
Addict
Addict
Posts: 1577
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Cosmopolitan Libc

Post 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."
Quin
Addict
Addict
Posts: 1132
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Cosmopolitan Libc

Post 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.
Fred
Administrator
Administrator
Posts: 18178
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Cosmopolitan Libc

Post by Fred »

May be it works for a console hello world, but is there more complex apps (with GUI) for this ?
User avatar
the.weavster
Addict
Addict
Posts: 1577
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Cosmopolitan Libc

Post 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.
User avatar
idle
Always Here
Always Here
Posts: 5884
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Cosmopolitan Libc

Post by idle »

I looked at this a few weeks ago and thought wow.
threedslider
Enthusiast
Enthusiast
Posts: 396
Joined: Sat Feb 12, 2022 7:15 pm

Re: Cosmopolitan Libc

Post by threedslider »

Interesting stuff, thanks for sharing :shock:
Post Reply