News for hackers. Stuff that matters.
Re:Why Clojure? by mhd on Wednesday August 18, 2010 @04:44PM (#1615531)
I wish someone would take the compiler infrastructure of Go and would make native Clojure with it, with an easy access to C instead of Java. I need a good exit path from things like Java, not something to just ease the pain.
Re:Why Clojure? by bitdiddle on Wednesday August 18, 2010 @05:10PM (#1615607)
If I recall correctly this was one of the goals of Guile, which is essentially Scheme, arguably cleaner than common lisp.
Re:Why Clojure? by mhd on Wednesday August 18, 2010 @05:33PM (#1615680)
I won't get into the CL vs. Scheme pissing contests, but if I remember correctly Guile was basically RMS' answer to Tcl, a language he didn't particularly like. And it was more intended to replace Emacs Lisp, while most of the infrastructure would still be written in C. Running on Hurd, of course.
Re:Why Clojure? by whyenot on Wednesday August 18, 2010 @08:14PM (#1616045)
For anyone interest in Guile's history (and it is kind of interesting), it was born in the great Usenet Tcl War http://www.vanderburg.org/OldPages/Tcl/war/

It was intended to be GNU's official extension language, but it has never really caught on. That's sort of a shame, because it's actually a pretty nifty scheme implementation.

Re:Why Clojure? by bitdiddle on Wednesday August 18, 2010 @08:00PM (#1616028)
That sounds correct, but also embeddable and callable from C. It's unfortunate it didn't succeed in replacing elisp. Emacs would be even more awesome than it is today.

I'd love to see the same thing done with Clojure and Go.

Re:Why Clojure? by mhd on Wednesday August 18, 2010 @08:09PM (#1616037)
I'd much rather have a proper, powerful Lisp than being forced to settle on alternate soft and hard layers. But the Common Lisp Emacs project never went anywhere.
Re:Why Clojure? by silentbicycle on Wednesday August 18, 2010 @07:26PM (#1615953)
Have you ever looked into Lua? It's a nice language in its own right (somewhere between Python and Io), and it was designed primarily for use with C.

Chicken Scheme is good, too.

Re:Why Clojure? by mark_l_watson on Wednesday August 18, 2010 @07:24PM (#1615951)
That is a nice idea. Another way to reach the goal of an alternative native (non-JVM) Clojure would be to build something on top of Racket or Gambit-C Scheme.

BTW, my favorite aspect of Clojure is the common "seq" API for lists, vectors, maps, trees, etc.

Re:Why Clojure? by mhd on Wednesday August 18, 2010 @08:07PM (#1616035)
I think if you would want a native, high-performing Clojure going the LLVM route would be a possible way. But I was specifically mentioning Go, because it's about as minimalitic as you can get right now, while still supporting a sufficiently large feature set (i.e. not as limited as TCC). A lot of that comes from its Plan 9 heritage, of course.

The syntax ain't that grand, though. And it could have a better FFI. So, having that in one package would be really great for some Unix-y programming. Right now, without too much baggage. Basically the lispy answer to Ocaml. And then build some libraries on it that inherently take advantage of Clojure and don't just wrap existing things. Which probably would be similar to the way the node.js infrastructure is growing.

It's a pipe dream, I know. The ability to use all that JVM enterprise hooplah is too important for most users. And its a pragmatic language, after all.

Re:Why Clojure? by jimbokun on Wednesday August 18, 2010 @09:26PM (#1616197)
Sounds like you need to follow Rich Hickey's example and create the language you want to program in, as the scratcher for your itch doesn't yet exist.

So, not a pipe dream so much as a lot of work to be done.

Re:Why Clojure? by dmaclay on Wednesday August 18, 2010 @07:09PM (#1615916)
Someone pretty much has, it's called chicken scheme.
Re:Why Clojure? by mhd on Wednesday August 18, 2010 @07:12PM (#1615924)
Did it get a native compiler all of a sudden? I thought it just translates into C.
Re:Why Clojure? by Kaizyn on Wednesday August 18, 2010 @09:07PM (#1616151)
Why does a native compiler matter? If its compiler emits C code, you're G2G as far as all of your stated goals.
Re:Why Clojure? by xyzzyz on Wednesday August 18, 2010 @10:39PM (#1616355)
That's what many people would call a compiler, actually. Compiling is all about translating from one language to another.