svd2nim VS Nim

Compare svd2nim vs Nim and see what are their differences.

svd2nim

Convert CMSIS ARM SVD files to nim register memory mappings (by EmbeddedNim)

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). (by nim-lang)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
svd2nim Nim
7 347
17 16,079
- 0.5%
4.5 9.9
4 months ago 6 days ago
Nim Nim
MIT License GNU General Public License v3.0 or later
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.

svd2nim

Posts with mentions or reviews of svd2nim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-23.
  • Memory-mapped IO registers in Zig. (2021)
    2 projects | news.ycombinator.com | 23 Apr 2024
    Nim's maintainer agrees with you I believe, and the API is as you suggest (volatileLoad and volatileStore): https://nim-lang.org/docs/volatile.html

    However, under the hood, Nim compiles to C. So these are macros that typecast to volatile, does the read (or write), then casts back to non-volatile.

    (Small plug for my nim project that is somewhat related to OP: https://github.com/EmbeddedNim/svd2nim)

  • New embedded programming language with C as a host language
    7 projects | news.ycombinator.com | 25 Jul 2022
    C++ has decent industry acceptance in embedded nowadays, or at least that has been my impression.

    After C++, rust is likely the most popular, quite a lot of effort has been put into running rust on embedded, see eg https://github.com/rust-embedded. However, once again to my understanding, industry acceptance is still highly marginal.

    After that, there's a bunch of toy-ish efforts to run other languages. Zig, nim, python and javascript variants, etc. Usually anything that has C ABI compatibility should be possible to get up and running (without writing a compiler backend from scratch). I've had fun with some toy projects using nim for ARM cortex-M targets (https://github.com/EmbeddedNim/svd2nim, https://github.com/auxym/nim-on-samd21, https://github.com/EmbeddedNim/picostdlib).

    Using Nim (and eg svd2nim to generate the equivalent of CMSIS headers for register access in pure nim), it would be entirely possible to write even the low level stuff (SPI drivers and whatnot) in 100% nim, with the same performance as C and better safety (better static type system and compile-time checks, etc). Runtime (eg overflow) checks and garbage collection are available (at the cost of some performance) but optional. See eg. a pretty basic higher-level API for GPIO access, that provides native performance, since the abstraction is implemented as macros (compile-time abstraction): https://github.com/auxym/nim-on-samd21/blob/master/src/port....

  • specify address of a variable
    1 project | /r/nim | 6 Mar 2022
    Any chance your MCU is ARM? If so check out my project to generate the register mappings from CMSIS SVD files: https://github.com/EmbeddedNim/svd2nim
  • Emulator of Original Dell Charger Using ATTINY85
    6 projects | news.ycombinator.com | 24 Feb 2022
    To be clear: Ratel isn't my project, just something I'm following due to interest.

    In the interest of shameless self promotion :), my own experimentations are :

    https://github.com/EmbeddedNim/svd2nim

    https://github.com/auxym/nim-on-samd21

    And I've used and contributed to picostdlib (https://github.com/beef331/picostdlib), the rp2040 support library.

    All just as a hobby, but it's interesting to learn that some companies are actually looking into Nim for firmware! Embedded seems like such a slow moving industry. I believe the author of Nesper and Nephyr also developed them for professional work.

  • Ask HN: What's Your Side Project?
    5 projects | news.ycombinator.com | 12 Nov 2021
  • An Embedded USB Device Stack in Ada
    4 projects | news.ycombinator.com | 4 Nov 2021
    Many vendors provide svd files which describe the hardware registers. It's possible to convert the svd automatically like they do for C. Here's an example for Nim [1]. Rust has one as well.

    Though I agree that MCU's currently involve a lot of busy work. It's why I'm working on building a nice system building on Zephyr using Nim [2]. It's pretty great to write a few dozen lines of concise memory safe code to do somethinguseful, and then be able to run it on dozens different MCUs.

    It'd be great if there was more Ada core in these systems, as Zephyr is all built in C. At least it's modern clean C and well tested.

    1: https://github.com/EmbeddedNim/svd2nim

  • Writing embedded firmware using Rust
    3 projects | /r/embedded | 27 Sep 2021
    If you're curious, I have this in MVP status at the moment: https://github.com/auxym/svd2nim

Nim

Posts with mentions or reviews of Nim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-26.
  • 3 years of fulltime Rust game development, and why we're leaving Rust behind
    21 projects | news.ycombinator.com | 26 Apr 2024
  • Top Paying Programming Technologies 2024
    19 projects | dev.to | 6 Mar 2024
    22. Nim - $80,000
  • "14 Years of Go" by Rob Pike
    2 projects | news.ycombinator.com | 27 Feb 2024
    I think the right answer to your question would be NimLang[0]. In reality, if you're seeking to use this in any enterprise context, you'd most likely want to select the subset of C++ that makes sense for you or just use C#.

    [0]https://nim-lang.org/

  • Odin Programming Language
    23 projects | news.ycombinator.com | 1 Jan 2024
  • Ask HN: Interest in a Rust-Inspired Language Compiling to JavaScript?
    5 projects | news.ycombinator.com | 24 Dec 2023
    I don't think it's a rust-inspired language, but since it has strong typing and compiles to javascript, did you give a look at nim [0] ?

    For what it takes, I find the language very expressive without the verbosity in rust that reminds me java. And it is also very flexible.

    [0] : https://nim-lang.org/

  • The nim website and the downloads are insecure
    1 project | /r/nim | 11 Dec 2023
    I see a valid cert for https://nim-lang.org/
  • Nim
    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.

  • 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
    1 project | /r/hackernews | 2 Oct 2023

What are some alternatives?

When comparing svd2nim and Nim you can also consider the following projects:

rp2040_hal - Ada drivers for the Raspberry Pi RP2040 SoC

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

probe-run - Run embedded programs just like native ones

go - The Go programming language

picostdlib - Nim wrapper for the raspberry pi stdlib

Odin - Odin Programming Language

kcgi - minimal CGI and FastCGI library for C/C++

rust - Empowering everyone to build reliable and efficient software.

nephyr - Nim wrapper for Zephyr

crystal - The Crystal Programming Language

dotfile - Simple version control made for tracking single files

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