logoalt Hacker News

cdcarteryesterday at 5:44 PM4 repliesview on HN

I was looking for something that allows easy access to direct memory, with a syntax thats a little easier to explain than C. Frankly, zig was not actually a real viable option based on that syntax requirement but I still wanted to explore it.

Nim really is clean and simple.


Replies

seanw444yesterday at 7:24 PM

Nim is really incredible. The only things I cannot get over is the fact that it goes the inheritance route in a way I find to be hacky and fragile (no more than one level, really?) and traits are not a core feature. If Nim's primary approach was composition + Rust-style traits (that work at compiletime and runtime), I'd have a hard time wanting to use anything else.

functional_devyesterday at 7:10 PM

yeah, Nim is great for that... much easier to explain to others than C or Zig especially for math code

flykespiceyesterday at 7:12 PM

Yeah, for a language that claims to be a better modern alternative to C, zig verbose syntax is really an eyesore to look at compared the very same codebase written in C...

I lost immediately any interest on it

PKopyesterday at 7:01 PM

How about Odin?