Nim Metaprogramming

Open-source Nim projects categorized as Metaprogramming

Nim Metaprogramming Projects

  • Nim

    Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

    Project mention: Removing Garbage Collection from the Rust Language (2013) | news.ycombinator.com | 2023-09-11

    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.

  • polymorph

    A fast and frugal entity-component-system library with a focus on code generation and compile time optimisation.

    Project mention: ECS: Rules, dos and don'ts and best practices for Systems | /r/gamedev | 2022-10-25

    For a simpler example, check out the particle demo here. This is really only two systems - one for movement and one for calculating force as distance from the mouse (the 3rd system is just for colouring). The rest of the code is creating textures and other setup. For something even simpler, have a look at this simple physics example.

  • Mergify

    Tired of breaking your main and manually rebasing outdated pull requests?. Managing outdated pull requests is time-consuming. Mergify's Merge Queue automates your pull request management & merging. It's fully integrated to GitHub & coordinated with any CI. Start focusing on code. Try Mergify for free.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-09-11.

Nim Metaprogramming related posts

Index

Project Stars
1 Nim 15,526
2 polymorph 125
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
www.sonarqube.org