News for hackers. Stuff that matters.
Re:What is special about Nim? by barbudorojo on Thursday January 01, 2015 @03:58PM (#8824286)
What I don't like about Nim is that there is not a repl. In Lisp and Clojure you don't need to compile things.

Could someone give a brief comparison between Clojure and Nim? Let's suppose that we implement Clojure in Nim is this a crazy idea?, What about implementing Shen in Nim?. Many people complain because sbcl is not easy to use with C++ libraries, could an implementation in Nim amilliorate those problems?. Many more questions arise but those mentioned are enough.

Re:What is special about Nim? by def- on Thursday January 01, 2015 @04:56PM (#8824486)
Well, there is a REPL, but it's not that great:

    $ nim i
    >>> for i in 0..10:
    ...   echo "Hello World"[0..i]
    ...
    H
    He
    Hel
    Hell
    Hello
    Hello 
    Hello W
    Hello Wo
    Hello Wor
    Hello Worl
    Hello World
To use up/down keys, build the Nim compiler with "./koch boot -d:release -d:useGnuReadline" or run "rlwrap nim i" instead.

Edit: It's even buggier than I remembered, best avoid it and use "nim -r c file" instead.

Re:What is special about Nim? by hugs on Friday January 02, 2015 @01:25AM (#8825765)
What bugs or things-that-are-not-great have you run into with Nim's REPL?
Re:What is special about Nim? by barbudorojo on Friday January 02, 2015 @04:10AM (#8826124)
It seems that you can't use any libraries. After using import it doesn't work anymore.
Re:What is special about Nim? by grayrest on Thursday January 01, 2015 @07:27PM (#8824935)
The closest thing to what you're asking about is Pixie [1], which is a Clojure-like language implemented in Pypy's RPython.

[1] https://github.com/pixie-lang/pixie

It'd be possible to implement a Clojure in Nim, you'd just have to port the datastructures and enough primitives to bootstrap the language core (see core.clj, Clojurescript's core.clj, Pixie's stdlib.pxi).