Earlier quoted context omitted.
Is "fatal flaw" the right term? I do not see any way to fix this. Even including a full C parser and preprocessor into the D/Nimrod compiler would not solve the problem.
Since I've written a C compiler, I know how to read C source files. The problem with automated conversion is you can do 90% of the job without any trouble, but there's that darned last 10% that doesn't map to D without some human decision making. For example, there are the preprocessor macros. Most are straightforward, but it seems most C .h files succumb to the temptation at some point to do something wacky with the…
Nimrod: C + Macros + GC
51–60 of 116 posts
Re: Nimrod: C + Macros + GC
#52Dear everyone, please stop using C as a compile target. Thanks.
Re: Nimrod: C + Macros + GC
#53Dear everyone, please stop using C as a compile target. Thanks.
Re: Nimrod: C + Macros + GC
#54What would be really killer is if it could have bindings to Java. Then one could take advantage of the JVM being present everywhere w/o having to do a separate compilation for every platform.
Note that nimrod compiles to C, and your JVM may be implemented in C or C++. So for the measly gain of not having to run a command on the destination platform (nimrod c name.nim) you are bringing in the runtime performance drawbacks of the whole JVM and requiring a further layer of abstraction. Plus bytecode doesn't mean a program will run at all, look at all the java programs which run on android without modificatio…
Re: Nimrod: C + Macros + GC
#55Re: Nimrod: C + Macros + GC
#56This looks good. However according to the web framework benchmark its performance looks pretty underwhelming, below that of Python and Ruby: http://www.techempower.com/benchmarks/#section=data-r6&hw=i7... Has anyone used this in production?
1: http://togototo.wordpress.com/2013/08/23/benchmarks-round-tw...
Re: Nimrod: C + Macros + GC
#57I wonder what other wonderful languages I've never heard of. Really, please share!
Dylan: http://opendylan.org/
Euphoria: http://www.rapideuphoria.com/
Re: Nimrod: C + Macros + GC
#58Dear everyone, please stop using C as a compile target. Thanks.
why?
Doesn't mean that I am generally opposed to compiling to C, it's often a good trade-off.
Re: Nimrod: C + Macros + GC
#59On the Clay thread a while back, people liked my list of systems-oriented languages that I've been compiling for a while. I can't go a good copy-paste and edit job on my iPad, so I'll just link to the thread here: https://news.ycombinator.com/item?id=6117456 . A bunch of other people came in with updates and other entries for the list. Included were of course Clay, Nimrod, Rust, and D, but also Deca, BitC, ATS, Habit…
Re: Nimrod: C + Macros + GC
#60On the Clay thread a while back, people liked my list of systems-oriented languages that I've been compiling for a while. I can't go a good copy-paste and edit job on my iPad, so I'll just link to the thread here: https://news.ycombinator.com/item?id=6117456 . A bunch of other people came in with updates and other entries for the list. Included were of course Clay, Nimrod, Rust, and D, but also Deca, BitC, ATS, Habit…
I don't know anything about systems languages, but it seems that there is a lot of effort getting put into C/C++ alternatives, and many bold efforts at that. But maybe that is just a historical bias, because so few remembers the failed (popularity vice) systems languages efforts of yesteryear?