Live data from Hacker News

The Nim programming language

nim-lang.org

41–50 of 97 posts

Re: The Nim programming language

#42
post #2

Nim is the language I have always thought was a brilliant idea that I never get to use. It's a shame. Nim is to C/C++ as CoffeeScript is to JavaScript. A highly extensible template language atop a portable language with libraries for practically everything. So why haven't I hopped on the bandwagon? Outside of C++, C, and Fortran - the only way I have ever learned a new language is through using a REPL. How much of Py…

If you could do Clojure-style repl-driven development and hot code reloading with the libraries of C++ and the syntax of Python I would be using Nim for everything already

Re: The Nim programming language

#43
One thing I have always hated about languages that tout easy C interop is the fact that you have to declare the C function first. A lot of C libraries e.g. Guile uses all sorts of Makefile hacks that makes it impossible, not to mention extremely time consuming to write a function declaration. Things would be so much easier if languages can implement something like Julia's ccall or a similar mechanism to allow direct calling of C libraries without any for of headers or wrapping.

Re: The Nim programming language

#44
post #2

Nim is the language I have always thought was a brilliant idea that I never get to use. It's a shame. Nim is to C/C++ as CoffeeScript is to JavaScript. A highly extensible template language atop a portable language with libraries for practically everything. So why haven't I hopped on the bandwagon? Outside of C++, C, and Fortran - the only way I have ever learned a new language is through using a REPL. How much of Py…

+1 to the usefulness of a REPL. Anyone know of a good one for the vanilla Java language?

I don't, but I'll point out you can do a lot of exploration in the Clojure repl, and with leiningen it's really easy to set up anything in maven.

Re: The Nim programming language

#45
post #2

Nim is the language I have always thought was a brilliant idea that I never get to use. It's a shame. Nim is to C/C++ as CoffeeScript is to JavaScript. A highly extensible template language atop a portable language with libraries for practically everything. So why haven't I hopped on the bandwagon? Outside of C++, C, and Fortran - the only way I have ever learned a new language is through using a REPL. How much of Py…

+1 to the usefulness of a REPL. Anyone know of a good one for the vanilla Java language?

There is an official one coming out in Java 9 soon.

Re: The Nim programming language

#46
post #44

Earlier quoted context omitted.

+1 to the usefulness of a REPL. Anyone know of a good one for the vanilla Java language?

I don't, but I'll point out you can do a lot of exploration in the Clojure repl, and with leiningen it's really easy to set up anything in maven.

I must have a really low I.Q. Or something because maven is all but broken in intellij for me. The Apache quickstart template defaults to jdk 5?!? And the pom file seems like it could get out of control fast.

Re: The Nim programming language

#48
post #29
post #2

Nim is the language I have always thought was a brilliant idea that I never get to use. It's a shame. Nim is to C/C++ as CoffeeScript is to JavaScript. A highly extensible template language atop a portable language with libraries for practically everything. So why haven't I hopped on the bandwagon? Outside of C++, C, and Fortran - the only way I have ever learned a new language is through using a REPL. How much of Py…

What makes a REPL brilliant instead of average?

That the repl is in your editor, and you can hit ctrl-c ctrl-e to evaluate anything on the fly.

Re: The Nim programming language

#50

One thing I have always hated about languages that tout easy C interop is the fact that you have to declare the C function first. A lot of C libraries e.g. Guile uses all sorts of Makefile hacks that makes it impossible, not to mention extremely time consuming to write a function declaration. Things would be so much easier if languages can implement something like Julia's ccall or a similar mechanism to allow direct…

Aren't you still writing the equivalent of a function declaration, but at the call site? What makes Julia's approach easier to use with Guile?
Post reply on HN