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
But it is really a lot safer than manually written Clojure code because the
of the code passes type-checking in ATS.
;;knd = 0
;;var tmplab, tmplab_clj
] ;; with-local-vars
(var-set tmp1 (ats2cljpre_gt_int0_int0 arg0 0))
(var-set tmp3 (ats2cljpre_sub_int0_int0 arg0 1))
(var-set tmp2 (fact @tmp3))
(ats2cljpre_mul_int0_int0 arg0 @tmp2)
) ;; if-then
) ;; if-else
) ;; end-of-with-local-vars
) ;; end-of-fun
Now I need to figure out how to write apps in Clojure After that, we
should be able to write apps in ATS (via Clojure).