top | item 1485014

Nu: Lisp on Objective C. (think Clojure for Cocoa)

58 points| jashmenn | 15 years ago |github.com | reply

23 comments

order
[+] mahmud|15 years ago|reply
I was going to complain how I found neither compiler nor VM in that source listings, and how it's not a pure Lisp, yada yada yada. Then I took a look at the author's other projects to see if he was a Lisper ..

Well, the man certainly puts his money where his mouth is. He has 40+ projects on github, the majority of them written in Nu.

http://github.com/timburks

If it's good enough for him, and let's him get work done, who am I to complain.

[+] zephjc|15 years ago|reply
I don't think the "clojure for cocoa" description is apt.

1. All the examples I saw on the git tutorials we're basically just imperative programming with parentheses instead of ObjC's brackets (actually some of the examples remind me more of Smalltalk).

2. Clojure seems to be finding a niche in the web app world, whereas Nu is targeted at Cocoa app programming, i.e. end-user GUI apps.

[+] unknown|15 years ago|reply

[deleted]

[+] jashmenn|15 years ago|reply
I'm the OP, and I'm not really sure what the source of let-down is here.

Nu has closures, anonymous functions, supports currying etc. It uses the Cocoa classes and they claim it can even be compiled onto the iPhone.

So while the examples in git may be "imperative" I would guess its only because they are trying to show how to be interoperable with Cocoa objects which, not being functional, causes imperative constructs to creep back into your code. The same thing happens when you try to use existing Java objects in Clojure. This seems to be a limitation only of the examples and not of the language itself.

[+] jared314|15 years ago|reply
Bad title. From the Nu website: "Its syntax comes from Lisp, but Nu is semantically closer to Ruby than Lisp."
[+] stratospark|15 years ago|reply
So would be allowed on iOS given the 3.3.1 clause forbidding alternative languages?
[+] Elrac|15 years ago|reply
This is a question I'm very interested to hear an answer to. I've started dabbling with Objective-C and I don't like it much; it would be very sweet if I could write apps for the i{Pad,Phone,*} in a Lisp-like like language.
[+] protomyth|15 years ago|reply
Well, the revised version doesn't fully forbid them. It would be interesting to see what you must go through to get Apple's approval. I would bet people using Lua are pretty well set due to its use in video games.
[+] kunley|15 years ago|reply
The `nuke' name for the build tool is so cool!
[+] protomyth|15 years ago|reply
Tim Burk has really done some great work for Cocoa programmers and very informative to follow on twitter @timburks.