Live data from Hacker News

Clojure-scheme: Compiling Clojure to Native Code via Scheme [video]

infoq.com

11–20 of 26 posts

Re: Clojure-scheme: Compiling Clojure to Native Code via Scheme [video]

#13
post #3

I'm interested in this, but why not just write natively in Scheme? I really like Clojure, but if you don't need the Java interop, Scheme seems just as nice.

Clojure has a much stronger polymorphism story than Scheme. This makes sense as Clojure was designed to live in an OO host language. Practically this could mean, say, much cleaner Objective-C interop.

For developers interested in a Lisp that cooperates with Objective-C (and C), I always recommend Nu -- http://programming.nu.

Re: Clojure-scheme: Compiling Clojure to Native Code via Scheme [video]

#14
post #10
post #3

I'm interested in this, but why not just write natively in Scheme? I really like Clojure, but if you don't need the Java interop, Scheme seems just as nice.

For one thing, one might get interoperability with clojure libraries (at least those that aren't just wrappers around java libraries). For another thing, clojure has some nice language features and I'm all for supporting multiple lispy dialects on top of various compiler/runtime environments. My personal wish is to have clojure running on SBCL with trivial interoperability between common lisp and clojure code.

Clojure was initially implemented on cl. You should be able to find the lisp version in the history of the repo somewhere. Might be an interesting starting point.

Re: Clojure-scheme: Compiling Clojure to Native Code via Scheme [video]

#15
post #10
post #3

I'm interested in this, but why not just write natively in Scheme? I really like Clojure, but if you don't need the Java interop, Scheme seems just as nice.

For one thing, one might get interoperability with clojure libraries (at least those that aren't just wrappers around java libraries). For another thing, clojure has some nice language features and I'm all for supporting multiple lispy dialects on top of various compiler/runtime environments. My personal wish is to have clojure running on SBCL with trivial interoperability between common lisp and clojure code.

Clojure running on SBCL seems like a no-brainer. I do not know why this does not exist. SBCL is super high-performance and the underlying lisp semantics should be a perfect fit.

Re: Clojure-scheme: Compiling Clojure to Native Code via Scheme [video]

#16
post #3

I'm interested in this, but why not just write natively in Scheme? I really like Clojure, but if you don't need the Java interop, Scheme seems just as nice.

Clojure has a much stronger polymorphism story than Scheme. This makes sense as Clojure was designed to live in an OO host language. Practically this could mean, say, much cleaner Objective-C interop.

> Clojure has a much stronger polymorphism story than Scheme

Many Schemes have their own OO implementations and they all support polymorphism.

Re: Clojure-scheme: Compiling Clojure to Native Code via Scheme [video]

#17
post #10

Earlier quoted context omitted.

For one thing, one might get interoperability with clojure libraries (at least those that aren't just wrappers around java libraries). For another thing, clojure has some nice language features and I'm all for supporting multiple lispy dialects on top of various compiler/runtime environments. My personal wish is to have clojure running on SBCL with trivial interoperability between common lisp and clojure code.

Clojure was initially implemented on cl. You should be able to find the lisp version in the history of the repo somewhere. Might be an interesting starting point.

> Clojure was initially implemented on cl.

Really? I thought Clojure evolved out of Rich's never-finished CL-subset-on-JVM implementation.

Re: Clojure-scheme: Compiling Clojure to Native Code via Scheme [video]

#19
post #15
post #10

Earlier quoted context omitted.

For one thing, one might get interoperability with clojure libraries (at least those that aren't just wrappers around java libraries). For another thing, clojure has some nice language features and I'm all for supporting multiple lispy dialects on top of various compiler/runtime environments. My personal wish is to have clojure running on SBCL with trivial interoperability between common lisp and clojure code.

Clojure running on SBCL seems like a no-brainer. I do not know why this does not exist. SBCL is super high-performance and the underlying lisp semantics should be a perfect fit.

Clojure is intended to be a hosted language. Building on and providing first class access to a rich ecosystem of libraries and tools was an explicit goal.

Re: Clojure-scheme: Compiling Clojure to Native Code via Scheme [video]

#20
post #11

This is great, especially since it removes the TCO limitation from running on the JVM. I will definitely give this a try.

I don’t know much Clojure, but I thought that lack of TCO was not a problem because you can just manually add `recur` (http://clojure.org/special_forms#Special%20Forms--%28recur%2...) when you need it. Are there situations where `recur` doesn’t work but tail-call optimization would help?
Post reply on HN