llvm-project VS cosmopolitan

Compare llvm-project vs cosmopolitan and see what are their differences.

llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Note: the repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org. (by llvm)
Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • SaaSHub - Software Alternatives and Reviews
llvm-project cosmopolitan
147 93
13,724 6,856
5.6% -
10.0 9.4
7 days ago 3 days ago
C++ C
- ISC License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

llvm-project

Posts with mentions or reviews of llvm-project. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-09.

cosmopolitan

Posts with mentions or reviews of cosmopolitan. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-17.
  • Everything you ever wanted to know about terminals(but were afraid to ask)
    13 projects | news.ycombinator.com | 17 May 2022
    Here's the reference I use for VT100 ANSI control sequences: https://github.com/jart/cosmopolitan/blob/c6bbca55e9f977e386... I created this reference because there wasn't one available before that could be easily copy/pasted into GNU C or Python string literals.
    13 projects | news.ycombinator.com | 17 May 2022
    Hi I'm one of the people cited by the article. Fraktur is awesome. I implemented it in my terminal. https://github.com/jart/cosmopolitan/blob/c6bbca55e9f977e386... Now that unicode makes it easy, there's no excuse not to have fraktur!
  • Build-Once Run-Anywhere C lib that runs on Linux, Windows, macOS, BSDs and more
    1 project | news.ycombinator.com | 3 May 2022
  • The Underwhelming Impact of Software Engineering Research (April 2022)
    4 projects | news.ycombinator.com | 9 Apr 2022
    > Despite all the research into garbage collectors nearly every new programming language I've seen uses either BoehmGC (from 1994) or simply gives up on the idea and uses reference counting.

    Have you ever seen a garbage collector that uses the NSA instruction? https://github.com/jart/cosmopolitan/tree/master/tool/plinko

  • The cult of Amiga and SGI, or why workstations matter
    1 project | news.ycombinator.com | 5 Apr 2022
    You know I don't want to come across as disrespectful to my elders but in many ways I feel that this kind of nostalgia is holding open source back. One of my favorite pieces of software is GNU Make. Having read the codebase, I get the impression that its maintainer might possibly be a similar to spirit to the OP. The kind of guy who was there, during the days when computers were a lot more diverse. The kind of guy who still boots up his old Amiga every once in a while, so he can make sure GNU Make still works on the thing, even though the rest of us literally would not be able to purchase one for ourselves even if we wanted it.

    It's a pleasure I respect, but it's not something I'll ever be able to understand because they're longing for platforms that got pruned from the chain of direct causality that led to our current consensus (which I'd define more as CTSS -> MULTICS/CPM -> UNIX/DOS/x86 => Windows/Mac/Linux/BSD/Android/x86/ARM).

    My point is that open source projects still maintain all these #ifdefs to support these unobtainable platforms. Because open source is driven by hobbyism and passion. And people are really passionate about the computers they're not allowed to use at their jobs anymore. But all those ifdefs scare and discourage the rest of us.

    For example, here's a change I recently wrote to delete all the VAX/OS2/DOS/Amiga code from GNU Make and it ended up being 201,049 lines of deletions. https://github.com/jart/cosmopolitan/commit/10a766ebd07b7340... If you check out files like "dir.c" you see like how bad the damage is, and that's not even the long of it for directories. A lot of what I do with Cosmopolitan Libc is because it breaks my heart how in every single program's codebase we see this same pattern, and I feel like it really ought to be abstracted by the C library, since the root problem is all these projects are depending on 12 different C libraries instead of 1.

  • Why aren't devs making desktop apps any more
    10 projects | news.ycombinator.com | 24 Mar 2022
    Yes it's possible for web apps to integrate things like FullStory that let devs monitor people like a citizen of Zalem. But Electron apps do that too. For instance someone posted a show hn thread a few months ago of a terminal gui they built that had fullstory integrated. The author was like mea culpa and removed it, since all he probably wanted to do was fix bugs. But my point is that everything creepy browsers are able to do, local apps can now do too -- and then some.

    The question people always ask is how can we build a technology that makes being evil impossible? And that's the wrong question to be asking, because it's a people problem, not a technology problem. What we need is transparency. The ability to monitor the people who are monitoring us. If you can empirically see what a local app is actually doing, then you can say for certain that it's more trustworthy than anything else. So how do we do that?

    How do we do that? Well, for starters, here's a 1KLOC tutorial (similar to Antirez's Kilo editor or Linenoise) on how to build your own version of the `strace` command in pure C. https://github.com/jart/cosmopolitan/blob/master/tool/build/... If you monitor the system interfaces then you don't need to read the source code. It's analogous to watching someone's behavior, rather than reading that person's DNA, in order to figure out if they're good or evil.

    Another good tool that might help you secure your digital spaces is Blinkenlights. Right now it only supports static binaries, but if you have one of those and you want to learn more about how it works, then you can watch what it does with memory in real time. https://justine.lol/blinkenlights/

    This is the same philosophy behind Chrome's incredible debugger GUI (which is something that sadly local electron-like apps have the power to take away) because transparency is the bedrock of trust. It's always surprised me that more people haven't been focusing on building tools like this. It also makes me sad when certain open source apps (which shall remain nameless because I don't want to be flamed) go out of their way to make strace output incomprehensible.

  • I cannot write software outside of Google anymore
    1 project | news.ycombinator.com | 15 Mar 2022
    I write all my projects in the Cosmopolitan repository which is basically that. It also uses plain old GNU Make so it's not snowflake. Example build config: https://github.com/jart/cosmopolitan/blob/master/tool/decode...
  • Things That Turbo Pascal Is Smaller Than
    3 projects | news.ycombinator.com | 12 Mar 2022
  • QuickJS JavaScript Engine – Fabrice Bellard
    8 projects | news.ycombinator.com | 8 Mar 2022
    Spoiler alert

        git clone https://github.com/jart/cosmopolitan
  • Lambda Calculus in 400 Bytes
    3 projects | news.ycombinator.com | 27 Feb 2022
    Author here. Love SectorLambda for its mathematical beauty. If you're hungry for more efficient practical computation, check out my C language projects like Cosmopolitan Libc and Redbean. For instance, rather than processing data at 16kbps it's able to do things like crc32 at 22gBps https://github.com/jart/cosmopolitan/blob/d6a039821f927cc81b... and memset goes 126gBps https://github.com/jart/cosmopolitan/blob/d6a039821f927cc81b...

What are some alternatives?

When comparing llvm-project and cosmopolitan you can also consider the following projects:

zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

gcc

SDL - Simple Directmedia Layer

skia - Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

luastatic - Build a standalone executable from a Lua program.

avr-hal - embedded-hal abstractions for AVR microcontrollers

src - Public git conversion mirror of OpenBSD's official CVS src repository. Pull requests not accepted - send diffs to the [email protected] mailing list.

PyInstaller - Freeze (package) Python programs into stand-alone executables

Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.

darkhttpd - When you need a web server in a hurry.

STL - MSVC's implementation of the C++ Standard Library.