5 ms·
Cosmopolitan v3.1
- 8organicbits 3y agoDoes this work for platform/architecture independent docker images? I tried a little with the python universal binary, but I think the CMD line would be platform specific?
- johnklos 3y agoDupe: https://news.ycombinator.com/item?id=38330172 https://news.ycombinator.com/item?id=38330172
- ksec 3y agoDang may correct me on this. But it isn't a Dupe if the other one hasn't reached front page.
- pvg 3y agoIt's a woolier 'significant attention' but things like 'two comments' or 'never on the front page' tend to count for undupeness. https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=by%3Adang%20significant%20attention&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
- sgammon 3y agoThat post is the release link on GitHub, while this is the announcement by @jart on X and a showing of performance gains in GitHub Actions CI I found the performance gain to be significant enough to be interesting and so I posted.
- deleted 3y ago[deleted]
- arcanemachiner 3y agoNitter link: https://nitter.net/JustineTunney/status/1726141024597324189 https://nitter.net/JustineTunney/status/1726141024597324189
- bmacho 3y agoReal link: https://github.com/jart/cosmopolitan/releases/tag/3.1 https://github.com/jart/cosmopolitan/releases/tag/3.1
- KRAKRISMOTT 3y agoDoes Cosmopolitan support Android yet? It would be nice to have an alternative to the NDK
- stylepoints 3y agoIf I am correct in my understanding of how it works, Linux versions should work on Android as well.
- KRAKRISMOTT 3y agoAndroid is kind of a special child, it uses custom kernel modules like Binder (IPC framework) and Ashmem (Android's garbage collector/memory manager).
- matheusmoreira 3y agoThe Linux system calls used by cosmopolitan work fine on Android provided they aren't blocked by seccomp policy. Some of those blocks make sense, others not so much. Yesterday I discovered I could use all the stat variants but not statx. I believe the features provided by standard C libraries are well covered by the set of allowed system calls.
- matheusmoreira 3y agoA few weeks ago I tried building cosmopolitan inside a Termux environment but the makefile didn't like it. At the time I gave up and used my laptop because I was focused on developing a feature. I wonder if I could get it to work now.
- alberth 3y agoWhat’s the use case? I have mad respect for cosmo & what technically it’s accomplished. But I also haven’t figured out the problem per se it’s solving. I’m genuinely curious to hear how others use cosmo.
- sgammon 3y agoBuild once against a universal libc layer, and produce universal binaries which run on a variety of different architectures and operating systems. It’s like LLVM or JVM but even for C, and without the overhead of virtualization. (Hope I did it justice I am merely a fan)
- skybrian 3y agoYes, but who builds binaries this way and what do they use them for?
- jhardy54 3y agoPython wheels are one use-case I’m excited about.
- BiteCode_dev 3y agoAnd nuitka.
- ajusa 3y agoHonestly - CLI apps that need to run on multiple platforms. I once built a version of https://github.com/lovebrew/lovebrew https://github.com/lovebrew/lovebrew (back when it was written in Nim) using Cosmopolitan 2, and I got back a single binary that ran on all major operating systems. This greatly reduces the time GitHub actions would need to run, as you just build and release for one OS. As others have mentioned, this does not really work for native GUI apps, that isn't supported by Cosmopolitan as far as I know. But for small CLI tools it works great!
- brabel 3y ago
- blopker 3y agoNeat, they also launched a repo for these universal binaries [0]. It took a little digging, but the list of binaries are here [1]. Might be useful for a universal install script? 0: https://cosmo.zip/ https://cosmo.zip/ 1: https://cosmo.zip/pub/cosmos/bin/ https://cosmo.zip/pub/cosmos/bin/
- AMICABoard 3y agoOops they did it again! Massive fan, and I use it!
- pizza 3y agoUsing this, is it possible for live running application state on one device to be sent to another device, esp if running a different OS?
- paulclinger 3y agoNo, to my knowledge cosmopolitan doesn't provide any special provisions to support this, so you'd have to build it yourself.