Hacker GitHub

← All repos

jart/cosmopolitan

View on GitHub ↗ ★ 21,431 C

build-once run-anywhere c library

293 mentions on Hacker News by 135 people: 24 stories, 269 comments · first 2020-06-20 · latest 2026-10-11

Mentions per year 293 mentions · busiest year 2021 (69)
20082026
  1. I don't think so. OpenBSD 7.3 works great. Their latest release broke APE in two ways: https://github.com/jart/cosmopolitan/issues/1263 I'm not sure if something like this is an accident. We might need to shift our support to something…
  2. …be solved. We added C++ exception support shortly after that issue was filed. You may want to try https://github.com/jart/cosmopolitan/releases/tag/3.9.2 and see if it still impacts you.
  3. Cosmo gives you what you described above and it’s <10kb https://github.com/jart/cosmopolitan
  4. Maybe portable CL binaries soon-ish (in CL units of time, mind you)! Conditional on https://github.com/jart/cosmopolitan/issues/939 as mentioned in INSTALL
    comment by BoingBoomTschak · 2024-09-22 · in Embedded Common Lisp gets initial Cosmopolitan port
  5. ▲ 2
    Cosmopolitan v3.9.2
    story by Tomte · 2024-09-22 · 0 comments
  6. llamafile will run on all architectures because it is compiled by cosmopolitan. https://github.com/jart/cosmopolitan "Cosmopolitan Libc makes C a build-once run-anywhere language, like Java, except it doesn't need an interpreter or virtual…
  7. This is most likely what is being referenced: https://github.com/jart/cosmopolitan/blob/master/Makefile I like how the includes are separated and commented. Also if you weren't already familiar with their work you might be interested in…
    comment by Drawde · 2024-09-21 · in I Like Makefiles
  8. …Think of it like gradlew( the gradle bash/bat wrapper) but completely self contained and air gapped https://github.com/jart/cosmopolitan
    comment by weitzj · 2024-09-20 · in Zb: An Early-Stage Build System
  9. …like an exercise in sovereignty: ultimate freedom (and danger). [1]: https://justine.lol/ [2]: https://github.com/jart/cosmopolitan [3]: https://news.ycombinator.com/item?id=26271117
  10. That issue was fixed last month. I've freshened up the cocmd binary for you! https://github.com/jart/cosmopolitan/commit/e18fe1e1127f30db...
  11. …designer ?) experience. [1]: https://github.com/hypered/slab/blob/main/content/reference.... [2]: https://github.com/jart/cosmopolitan
  12. ▲ 1
    Cosmopolitan 3.6.1
    story by sgammon · 2024-07-25 · 0 comments
  13. …was based on cloning master yesterday and trying to build redbean but hitting what looks like https://github.com/jart/cosmopolitan/issues/940 Indeed it lioks like the commit you mentioned should have fixed the issue with the pointer having…
  14. …a new linker that lets you build fat binaries which can run on these platforms: AMD ... ARM64 https://github.com/jart/cosmopolitan/releases/tag/3.5.3 > This release fixes Android support. You can now run LLMs on your phone using…
  15. …For example, just using ctl::vector alone might help your C++ code compile noticeably faster. https://github.com/jart/cosmopolitan/tree/master/ctl
    comment by jart · 2024-07-22 · in Cosmopolitan v3.5.8
  16. ▲ 103
    Cosmopolitan v3.5.8
    story by sgammon · 2024-07-22 · 24 comments
  17. …syscall flags, error numbers, etc. It includes (variants of) Linux, XNU, NT, and the BSDs. https://github.com/jart/cosmopolitan/blob/master/libc/sysv/c... In the off chance you haven't heard of Cosmopolitan yet, I hope you find the…
  18. ▲ 1
    Use cosmocc to cross‐compile a CMake project
    story by jcbhmr · 2024-07-18 · 1 comment
  19. …https://www.youtube.com/watch?v=9qljpi5jiMQ [2] https://github.com/supriyo-biswas/static-builds [3] https://github.com/jart/cosmopolitan/
  20. …since they've already been included but the sum total of files that get included is 694!" [1]: https://github.com/jart/cosmopolitan/blob/master/ctl/README....
    comment by simjnd · 2024-06-25 · in Cosmopolitan v3.5
  21. From here: https://github.com/jart/cosmopolitan/releases/tag/3.5.0 Justine wrote: > We've made a lot of progress reinventing the C++ STL. What is the motivation behind this? Try to reduce (compiled) binary size? Naively, I am surprised…
    comment by throwaway2037 · 2024-06-25 · in Cosmopolitan v3.5
  22. It's called cosmocc. https://github.com/jart/cosmopolitan/releases/download/3.5.1... the documentation is here: https://github.com/jart/cosmopolitan/blob/master/tool/cosmoc... and here https://justine.lol/cosmo3/#install
    comment by jart · 2024-06-24 · in Cosmopolitan v3.5
  23. …it compare in terms of performance I tried rsync for Windows from its "cosmos" pile of binaries ( https://github.com/jart/cosmopolitan/releases/download/3.3.1... ), and it was too slow to be usable compared to WSL rsync. For many other…
    comment by doctorpangloss · 2024-06-24 · in Cosmopolitan v3.5
  24. …the first line when you start the shell. There's some interesting background on it in this issue: https://github.com/jart/cosmopolitan/issues/141
    comment by simonw · 2024-06-24 · in Cosmopolitan v3.5
  25. It depends. It does not work on CentOS 8 / Rocky 8 for example: https://github.com/jart/cosmopolitan/issues/1151
    comment by Aissen · 2024-06-24 · in Cosmopolitan v3.5
  26. I checked two commits and they both had exactly the same number of chars per line, e.g. https://github.com/jart/cosmopolitan/commit/c4c812c15445f5c3... I enjoy doing this too sometimes and don't find it too difficult, but damn...
    comment by pixelpoet · 2024-06-24 · in Cosmopolitan v3.5
  27. More details of supported platforms at https://justine.lol/cosmo3/ and https://github.com/jart/cosmopolitan/blob/master/tool/cosmoc... , both linked in the release notes.
    comment by mkl · 2024-06-24 · in Cosmopolitan v3.5
  28. …code for redbean, which is a neat web server with lua and plenty of features. https://redbean.dev/ https://github.com/jart/cosmopolitan/tree/master/tool/net
    comment by speedgoose · 2024-06-24 · in Cosmopolitan v3.5
  29. ▲ 366
    Cosmopolitan v3.5
    story by sgammon · 2024-06-24 · 143 comments
  30. ▲ 4
    Cosmopolitan 3.4.0
    story by sgammon · 2024-06-05 · 0 comments
  31. …I'm using sem_open / sem_wait / etc. as my futex replacement. What abi should I be using? https://github.com/jart/cosmopolitan/blob/master/third_party...
  32. …portable binary with Python 3.11.9, brotli, ssl and asyncio for their work related project.[2] [0] https://github.com/jart/cosmopolitan/tree/master/third_party... [1] https://github.com/ahgamut/superconfigure/ [2]…
  33. Here's the code I use: https://github.com/jart/cosmopolitan/blob/master/net/http/to...
    comment by jart · 2024-04-14 · in My cat alerted me to a DDoS attack
  34. Does pinsyscall mean Cosmo will no longer work on OpenBSD? https://github.com/jart/cosmopolitan
    comment by alberth · 2024-04-05 · in OpenBSD 7.5
  35. …an unpacker. Your archive format just needs to be an executable that runs on every platform. https://github.com/jart/cosmopolitan is something that could help with that. ("Who would execute an archive? It could do anything," I hear you…
  36. Cosmopolitan https://github.com/jart/cosmopolitan and https://justine.lol/cosmopolitan/index.html Some genius realized that you can actually embed valid win32 programs inside valid posix shell scripts, and found a way to make a C…
  37. ▲ 5
    Cosmopolitan – build-once run-anywhere C library
    story by rvnx · 2024-02-16 · 0 comments
  38. …It's easy to get started, your ideas will branch out as soon as you start playing with it. [1]: https://github.com/jart/cosmopolitan/blob/master/tool/args/a...
    comment by alganet · 2024-01-14 · in Show HN: #!/usr/bin/env docker run
  39. It'd be nice to try to build this with Cosmopolitan https://github.com/jart/cosmopolitan
  40. My repo suggestions : https://github.com/sqlite/sqlite https://github.com/jart/cosmopolitan https://github.com/dolphin-emu/dolphin https://gitlab.inria.fr/mpfr/mpfr
  41. FWIW there is ongoing work with good progress to add websocket support to redbean ( https://github.com/jart/cosmopolitan/pull/967 )
  42. ▲ 3
    Release Cosmopolitan v3.2
    story by josephscott · 2024-01-06 · 0 comments
  43. ▲ 4
    Cosmopolitan v3.2
    story by tosh · 2024-01-05 · 0 comments
  44. Check out this comment by jart (cosmpolitan author) here: https://github.com/jart/cosmopolitan/issues/766#issuecomment... it might help but not sure how comprehensive it is! would it be a bad idea for you to check out the source code of…
    comment by keepamovin · 2024-01-03 · in Ask HN: ANSI escape sequences reference docs?
  45. …Mac, Windows, FreeBSD, OpenBSD, NetBSD, and bare metal (BIOS boot). I would call that portable. [0] https://github.com/jart/cosmopolitan
  46. …my last setup (windows) was shiv + wine + nsis (used that as pyinstaller had some issues)[2] [1] https://github.com/jart/cosmopolitan/issues/141#issuecomment... [2] https://github.com/delijati/docker-shiv#add-python-interpret...
  47. > Executables should be cross-compatible So cosmopolitan? https://github.com/jart/cosmopolitan
    comment by Grimburger · 2023-12-10 · in BSD on Windows: Things I wish I knew existed
  48. …https://github.com/monatis/clip.cpp - trurl: https://github.com/curl/trurl - cosmopolitan: https://github.com/jart/cosmopolitan - signalcli: https://github.com/AsamK/signal-cli
  49. …dynamic linking specifically to enable GPUs! This is amazing, I'm glad they found a way to do this. https://github.com/jart/cosmopolitan/commit/5e8c928f1a37349a... I see it unfortunately requires the CUDA developer toolkit to be installed.…
  50. FWIW, there is ongoing work on dlopen; it was introduced 2 weeks ago ( https://github.com/jart/cosmopolitan/commit/5e8c928f1a37349a... ) and continued after that.
    comment by paulclinger · 2023-11-20 · in Cosmopolitan v3.1