|about 2 months ago||6 days ago|
|MIT License||GNU General Public License v3.0 or later|
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.
Writing Python like it’s Rust
4 projects | /r/rust | 20 May 2023
You can use https://github.com/beartype/plum instead of that elif chain too
Is there any language that is as similar as possible to Python in syntax, readability, and features, but is statically typed?
12 projects | /r/Python | 6 Nov 2021
5 projects | news.ycombinator.com | 6 Dec 2023
FYI, on the front page, https://nim-lang.org, in large type you have this:
> Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula.5 projects | news.ycombinator.com | 6 Dec 2023
Perhaps the Nim Github Wiki would be more to your liking? https://github.com/nim-lang/Nim/wiki
Things I've learned about building CLI tools in Python
16 projects | news.ycombinator.com | 24 Oct 2023
You better off with using a compiled language.
If you interested in a language that's compiled, fast, but as easy and pleasant as Python - I'd recommend you take a look at [Nim](https://nim-lang.org).
And to prove what Nim's capable of - here's a cool repo with 100+ cli apps someone wrote in Nim: [c-blake/bu](https://github.com/c-blake/bu)
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.
NIR: Nim Intermediate Representation
9 projects | news.ycombinator.com | 30 Sep 2023
Removing Garbage Collection from the Rust Language (2013)
9 projects | news.ycombinator.com | 11 Sep 2023
20 milliseconds? On my 7 year old Linux box, this little Nim program https://github.com/c-blake/bu/blob/main/wsz.nim runs to completion in 275 microseconds when fully statically linked with musl libc on Linux. That's with a stripped environment (with `env -i`). It takes more like 318 microseconds with my usual 54 environment variables. The program only does about 17 system calls, though.
Additionally, https://github.com/c-blake/cligen makes decent CLI tools a real breeze. If you like some of Go's qualities but the language seems too limited, you might like Nim: https://nim-lang.org. I generally find getting good performance much less of a challenge with Nim, but Nim is undeniably less well known with a smaller ecosystem and less corporate backing.
GNU Parallel, where have you been all my life?
19 projects | news.ycombinator.com | 21 Aug 2023
On Unix, you might try Nim (https://nim-lang.org) with https://github.com/Vindaar/shell and there are a slew of pipeline-y/Unix-y utilities over at https://github.com/c-blake/bu
Nim is statically typed and (generally) native-compiled, but it has very low ceremony ergonomics and a powerful compile-time macro/template system as well as user-defined operators (e.g., you can use `+-` to make a constructor for uncertain values so that `9 +- 2` builds a typed object.
Fastest Branchless Binary Search
14 projects | news.ycombinator.com | 11 Aug 2023
> If only there was a clean fast bare-metal language to write all this in..
The author includes a footnotes for "BUT RUST.." and "BUT ZIG..", but how about Nim? Looks like there is a native library implementation of `lowerBound` https://github.com/nim-lang/Nim/blob/version-2-0/lib/pure/al...
Crystal 1.9.1 Is Released
6 projects | news.ycombinator.com | 17 Jul 2023
Flattening ASTs (and Other Compiler Data Structures)
7 projects | news.ycombinator.com | 2 Jul 2023
Same ideas are used in Nim's incremental compilation (wip) https://github.com/nim-lang/Nim/tree/devel/compiler/ic
What are some alternatives?
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
go - The Go programming language
rust - Empowering everyone to build reliable and efficient software.
Odin - Odin Programming Language
crystal - The Crystal Programming Language
haxe - Haxe - The Cross-Platform Toolkit
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
nimskull - An in development statically typed systems programming language; with sustainability at its core. We, the community of users, maintain it.
NumPy - The fundamental package for scientific computing with Python.
julia - The Julia Programming Language
rust - Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266