I am pleased to announce that
ATS code can now be compiled to Clojure (and then to JVM).
I include an example as follows.
Obviously, the generated Clojure code is not so-called idiomatic Clojure
code.
But it is really a lot safer than manually written Clojure code because the
source
of the code passes type-checking in ATS.
Clojure uses a rather peculiar way to support optimization of recursive
tail-calls. So far, ATS can only properly handle tail-call
optimization if the call is located not inside the body of a pattern
matching clause. Hopefully, this restriction can be removed
later…
On Thursday, July 14, 2016 at 5:15:35 PM UTC-4, gmhwxi wrote:
I am pleased to announce that
ATS code can now be compiled to Clojure (and then to JVM).
I include an example as follows.
Obviously, the generated Clojure code is not so-called idiomatic Clojure
code.
But it is really a lot safer than manually written Clojure code because
the source
of the code passes type-checking in ATS.
Very nice!On Thu, Jul 14, 2016 at 5:15 PM, gmhwxi gmh...@gmail.com wrote:
I am pleased to announce that
ATS code can now be compiled to Clojure (and then to JVM).
I include an example as follows.
Obviously, the generated Clojure code is not so-called idiomatic Clojure
code.
But it is really a lot safer than manually written Clojure code because the
source
of the code passes type-checking in ATS.
Clojure uses a rather peculiar way to support optimization of recursive
tail-calls. So far, ATS can only properly handle tail-call
optimization if the call is located not inside the body of a pattern
matching clause. Hopefully, this restriction can be removed
later…On Thursday, July 14, 2016 at 5:15:35 PM UTC-4, gmhwxi wrote:
I am pleased to announce that
ATS code can now be compiled to Clojure (and then to JVM).
I include an example as follows.
Obviously, the generated Clojure code is not so-called idiomatic Clojure
code.
But it is really a lot safer than manually written Clojure code because
the source
of the code passes type-checking in ATS.
With all the Java classes being available, it is really really pleasant :)On Thursday, July 14, 2016 at 5:19:03 PM UTC-4, Brandon Barker wrote:
Very nice!
On Thu, Jul 14, 2016 at 5:15 PM, gmhwxi <…> wrote:
I am pleased to announce that
ATS code can now be compiled to Clojure (and then to JVM).
I include an example as follows.
Obviously, the generated Clojure code is not so-called idiomatic Clojure
code.
But it is really a lot safer than manually written Clojure code because
the
source
of the code passes type-checking in ATS.