Live data from Hacker News

Nimrod for C programmers

github.com

1–10 of 67 posts

Re: Nimrod for C programmers

#2
Every time i look at this language feature, it seems like a dream come true. Yet, i stopped believing in santa when i was 4 so could anyone here points at its ugly parts ?

Re: Nimrod for C programmers

#3
post #2

Every time i look at this language feature, it seems like a dream come true. Yet, i stopped believing in santa when i was 4 so could anyone here points at its ugly parts ?

As someone who's played with it extensively (to the point of trying to build a new type system for it, though its slower going than I'd hoped as I lack the necessary skills currently, though I'm still working on it) -- it's library situation isn't as robust as I'd like. It's community is small but very fervent and super helpful (Araq and Dom are both amazing guys and will help you out in IRC whenever you need it). I'd like to see it take off more. Think of it like Go but with even more control over execution. It's a little rough around the edges, there are bugs, but it's usable right now. It's an awesome language and I love playing with it, even if you don't use it for anything in production I highly suggest using it just for the experience.

Re: Nimrod for C programmers

#5
I saw that you can even generate C++ code from nimrod and that you can automatically generate c wrapper with c2nim, but how does it play with C++? Can you easily use C++ libraries in Nimrod or do you have to write a C interface?

Re: Nimrod for C programmers

#7
post #6

I recommend to those who tried only the 0.9.2 version to check the new 0.9.4 as there has been a lot of improvements (Release note: http://nimrod-lang.org/news.html#Z2014-04-21-version-0-9-4-r... ).

wow, async/await, lambdas.. really nice! lovely showcase for the macro system, too.

Re: Nimrod for C programmers

#8

I saw that you can even generate C++ code from nimrod and that you can automatically generate c wrapper with c2nim, but how does it play with C++? Can you easily use C++ libraries in Nimrod or do you have to write a C interface?

C wrappers are still generally better supported, or at least that's what I assume because that's what most people still use. I haven't personally tried wrapping any C++ code yet. c2nim does support C++ now so in theory it should be just as easy as wrapping C.

Re: Nimrod for C programmers

#9

I saw that you can even generate C++ code from nimrod and that you can automatically generate c wrapper with c2nim, but how does it play with C++? Can you easily use C++ libraries in Nimrod or do you have to write a C interface?

It's not "easy" per se, but totally doable (if a little rough last time I tried, but that was 6 months ago) to interface with C++. There is even a C++ backend from what I recall. Pop into the IRC or just have a play yourself :)

Re: Nimrod for C programmers

#10
I strongly disagree with the rationale for not supporting unsigned integer types by default. In fact, I think unsigned should be the default, and the advice on the Escher Technologies blog is harmful.

Other than that, Nimrod has been a pleasure to use. If you need a metaprogramming language to generate C, use Nimrod.

Post reply on HN