legion VS cosmopolitan

Compare legion vs cosmopolitan and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
legion cosmopolitan
11 201
647 15,067
2.2% -
9.9 9.8
16 days ago 7 days ago
C++ C
Apache License 2.0 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.

legion

Posts with mentions or reviews of legion. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-20.
  • Legion 24.03.0 – Control Replication
    1 project | news.ycombinator.com | 28 Mar 2024
  • Antithesis of a One-in-a-Million Bug: Taming Demonic Nondeterminism
    1 project | news.ycombinator.com | 22 Mar 2024
    I work on a distributed runtime system for heterogeneous supercomputers [1].

    As an example of the sort of bug we regularly deal with, I am at this exact moment tracking down a freeze that occurs on 8,192 nodes of a supercomputer [2]. That means I'm using about 64,000 GPUs and about half a million CPU cores. The smallest node count I've seen my issue is 2,048 nodes and at that scale it only happens about 10% of the time.

    We've been debating internally whether Antithesis could help us or not. On the one hand, the fuzzing to explore the state space, and deterministic reproduction, are exactly what we want. On the other hand, we believe our state space is much larger than what you see in a typical distributed database. (And not just because of the sheer scale of things, but even on a single node we have state machines with order hundreds to thousands of states in them.) Based on the post here and the "scenario" count explored in CouchDB, I'm not convinced you'd be able to handle us. :-)

    I'd be curious what you think. Happy to discuss here, or contact info in profile.

    [1]: https://legion.stanford.edu/

    [2]: https://www.olcf.ornl.gov/frontier/

  • Progress on No-GIL CPython
    5 projects | news.ycombinator.com | 20 Oct 2023
    Parallelism in CS is a bit like security in CS. People know it matters in the abstract senses but you really only get into it if you look for the training specifically. We're getting better at both over time: just as more languages/libraries/etc. are secure by default, more now are parallel by default. There's a ways to go, but I'm glad we didn't do this prematurely, because the technology has improved a lot in the last decade. Look for example at what we can do (safely!) with Rayon in Rust vs (unsafely!) with OpenMP in C++.

    And there are things even further afield like what I work on [1][2][3].

    [1]: https://legion.stanford.edu/

    [2]: https://regent-lang.org/

    [3]: https://github.com/nv-legate/cunumeric

  • Mojo is now available on Mac
    13 projects | news.ycombinator.com | 19 Oct 2023
    Chapel has at least several full-time developers at Cray/HPE and (I think) the US national labs, and has had some for almost two decades. That's much more than $100k.

    Chapel is also just one of many other projects broadly interested in developing new programming languages for "high performance" programming. Out of that large field, Chapel is not especially related to the specific ideas or design goals of Mojo. Much more related are things like Codon (https://exaloop.io), and the metaprogramming models in Terra (https://terralang.org), Nim (https://nim-lang.org), and Zig (https://ziglang.org).

    But Chapel is great! It has a lot of good ideas, especially for distributed-memory programming, which is its historical focus. It is more related to Legion (https://legion.stanford.edu, https://regent-lang.org), parallel & distributed Fortran, ZPL, etc.

  • Announcing Chapel 1.32
    6 projects | news.ycombinator.com | 9 Oct 2023
    I should also note that there is Pygion if you want to use Python. Not a lot of great reference material right now, but there's the paper:

    https://legion.stanford.edu/pdfs/pygion2019.pdf

    And code samples:

    https://github.com/StanfordLegion/legion/tree/stable/binding...

  • Is anyone using PyPy for real work?
    13 projects | news.ycombinator.com | 31 Jul 2023
    We use PyPy for performing verification of our software stack [1], and also for profiling tools [2]. The verification tool is basically a complete reimplementation of our main product, and therefore encodes a massive amount of business logic (and therefore difficult to impossible to rewrite in another language). As with other users, we found the switch to PyPy was seamless and provides us with something like a 2.5x speedup out of the box, with (I think) higher speedups in some specific cases.

    We eventually rewrote the profiler tool in Rust for additional speedups, but as mentioned for the verification engine, it's probably too complicated to ever do that so we really appreciate drop-in tools like PyPy that can speed up our code.

    [1]: https://github.com/StanfordLegion/legion/blob/master/tools/l...

    [2]: https://github.com/StanfordLegion/legion/blob/master/tools/l...

  • Make your programs run faster by better using the data cache (2020)
    1 project | news.ycombinator.com | 23 Jun 2023
    Legion is also doing something like that: https://legion.stanford.edu/
  • Is Parallel Programming Hard, and, If So, What Can You Do About It? [pdf]
    4 projects | news.ycombinator.com | 19 Feb 2023
    If you really want to dig into it you can read up on the tutorials and/or papers from the Legion project: https://legion.stanford.edu/

    But briefly, these task-based programs preserve sequential semantics. That means (whatever the system actually does when running your program), as long as you follow the rules, the parallelism should be invisible to the execution of the program.

  • Ask HN: Who is hiring? (September 2022)
    20 projects | news.ycombinator.com | 1 Sep 2022
    Computer Science Research Dept., SLAC National Accelerator Laboratory | Research Scientist / Engineer | Menlo Park, CA or REMOTE, VISA | Full Time

    We're a research group within SLAC, headed by Alex Aiken (https://theory.stanford.edu/~aiken/). We focus on fundamental CS research that has the potential to impact science, mainly in the areas of high-performance and distributed computing, programming languages, compilers, networks, operating systems, etc. One of our major projects is Legion, a forward-looking programming system for distributed computing (https://legion.stanford.edu/). Legion has been used to create new programming languages (https://regent-lang.org/), seamless distributed NumPy (https://developer.nvidia.com/cunumeric), and a drop-in replacement for Keras and PyTorch (https://flexflow.ai/), among many other things.

    We are looking for strong scientists and engineers to join our group. For clarity (because these terms vary by industry/company), scientists mainly focus on producing research results (e.g., papers and research software) while engineers mainly focus on software development and deliverables (e.g., system or application implementation). For scientist positions please expect to provide a CV with relevant publications.

    The official application links are below, but please feel free to contact me directly if you have questions. (My HN username @slac.stanford.edu)

    Scientist (Computer Science):

    https://erp-hprdext.erp.slac.stanford.edu/psp/hprdext/EMPLOY...

    Engineer (Computer Science):

    https://erp-hprdext.erp.slac.stanford.edu/psp/hprdext/EMPLOY...

    We've had some reports that the application site doesn't work well in Google Chrome. You might want to apply in Firefox.

  • The Underwhelming Impact of Software Engineering Research (April 2022)
    4 projects | news.ycombinator.com | 9 Apr 2022
    There are some points in the middle, but it's rare. I worked on one of these [1]. We've been building the system for just over ten years, and are starting to see some truly killer apps being built on top of it [2, 3].

    While it has some great benefits once you arrive, the upfront costs are enormous. You basically need to find a funding source (or sources) that will pay for this product while you're building it. Also, in order for the research payoff to be worth it, you need both the product itself, and subsequent innovations it enables, to be research-worthy. Not all areas of research can support this. On top of it all, even when you do this, you'll still spend years of effort in activities that are essentially not research. You're basically responsible for all of your own customer support, sales, marketing, etc.---like a startup, but without the financial upside if you succeed. Yes there is recognition and so on, but the payoffs aren't as dramatic. Most people aren't ready to commit to this path.

    Keep in mind that you can't build this in 5 years either. So a single generation of PhD students can't get it done. The only reason we were successful is because the key staff on the project stuck around for 5+ years after their PhDs because we all believed in doing the work.

    Given all that, I don't hold it against people at all who just want to build prototypes and then move on to the next thing. It's way less risky and higher reward relative to the costs.

    [1]: https://legion.stanford.edu/

    [2]: https://flexflow.ai/

    [3]: https://developer.nvidia.com/cunumeric

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 2024-04-15.
  • Python Is Portable
    6 projects | news.ycombinator.com | 15 Apr 2024
    The reality is a bit different, the work on Python 3.6 was checked into the Cosmopolitan repo and I have been able to use it for production workloads that are in pure python. [0]

    As Cosmopolitan Libc has evolved, it has been possible to compile more software without modifications, and that includes latest Python through a project called superconfigure[1].

    Last person who tried to reproduce it from scratch did it last week (granted it too them a few days of solid work) but in the end they ended with a 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...

  • Ask HN: What Underrated Open Source Project Deserves More Recognition?
    63 projects | news.ycombinator.com | 7 Mar 2024
    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 cross-platform solution out of it, meaning that you can write C programs that compile to a single executable that will run on (quoting the site) Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS

    It all started from this post.

  • Cosmopolitan – build-once run-anywhere C library
    1 project | news.ycombinator.com | 16 Feb 2024
  • Show HN: Usr/bin/env Docker run
    4 projects | news.ycombinator.com | 13 Jan 2024
    For this .args file, put one argument per line. This will run on start. You can use `/zip/mydepencency.anything` to read from files, but if you have an executable dependency you'll need to extract it first.

    You can do this with any software you can compile with comsocc, by adding a call to LoadZipArgs[1] in the main function.

    It'seasy 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...

  • Libwebsockets
    6 projects | news.ycombinator.com | 6 Jan 2024
    FWIW there is ongoing work with good progress to add websocket support to redbean (https://github.com/jart/cosmopolitan/pull/967)
  • Release Cosmopolitan v3.2
    1 project | news.ycombinator.com | 5 Jan 2024
  • Cosmopolitan v3.2
    1 project | news.ycombinator.com | 5 Jan 2024
  • Ask HN: ANSI escape sequences reference docs?
    1 project | news.ycombinator.com | 2 Jan 2024
    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 other popular emulators (maybe iTerm 2^0) ?

    0: https://github.com/search?q=repo%3Agnachman%2FiTerm2%20ansi&...

  • Actually Portable Vim (With a Cute Vimrc)
    4 projects | news.ycombinator.com | 25 Dec 2023
    The binary was compiled with Cosmopolitan Libc [0], and therefore the binary will execute natively on Linux, Mac, Windows, FreeBSD, OpenBSD, NetBSD, and bare metal (BIOS boot).

    I would call that portable.

    [0] https://github.com/jart/cosmopolitan

  • Show HN: PyApp – runtime installer for Python applications
    5 projects | news.ycombinator.com | 13 Dec 2023
    will go on my "to try" list where i already have cosmopolitan [2]. 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...

What are some alternatives?

When comparing legion and cosmopolitan you can also consider the following projects:

pldb - PLDB: a Programming Language Database. A computable encyclopedia about programming languages.

libc - libc targeted for embedded systems usage. Reduced set of functionality (due to embedded nature). Chosen for portability and quick bringup.

preshed - 💥 Cython hash tables that assume keys are pre-hashed

src - Read-only git conversion of OpenBSD's official CVS src repository. Pull requests not accepted - send diffs to the tech@ mailing list.

arkouda - Arkouda (αρκούδα): Interactive Data Analytics at Supercomputing Scale :bear:

SDL - Simple Directmedia Layer

legate.sparse

llvm-project - The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

HTR-solver - Hypersonic Task-based Research (HTR) solver for the Navier-Stokes equations at hypersonic Mach numbers including finite-rate chemistry for dissociating air and multicomponent transport.

luastatic - Build a standalone executable from a Lua program.

soleil-x - Soleil-X is a turbulence/particle/radiation solver written in the Regent language for execution with the Legion runtime.

v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io