I am very glad that you brought up the issue.
Note that the keywords “`(” and “,(” and “%(” are still kept
in ATS2 in the hope of supporting TH-style of meta-programming
I co-authored the following paper about 10 years ago:
http://www.cs.bu.edu/~hwxi/academic/papers/JFPmp.pdf
I actually implemented in ATSproto, the first released version of
ATS, the system formalized in the above paper, which is more
ambitious than Template Haskell (TH) in terms of type-checking.
By the way, ATSproto also supported OOP; it was really messy and bulky
If you are interested, I would suggest that you target only the functional
core of
ATS at first. There may be complications due to the support for flat data
representation
in ATS2.
Static typechecking is wonderful, but it is often too complicated for such
a template
system. So trying to support run-time typechecking on generated syntax
trees seems
to be sensible way to control complexity.
Lastly, I would like to point out the following paper:
http://www.cs.bu.edu/~hwxi/academic/papers/gpce06.pdf
which is about distributed meta-programming. It is a quite interesting idea.On Thu, Oct 23, 2014 at 8:28 PM, Shea Levy sh...@shealevy.com wrote:
Hi all,
I was wondering, would it be possible to model the ATS2 abstract syntax
tree as ATS2 types, and use that to implement the ATS2 version of
Template Haskell? What would be involved in that kind of project, where
would I start?
Cheers,
Shea
–
You received this message because you are subscribed to the Google Groups
“ats-lang-users” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/20141024002825.GB2093%40nixos.hsd1.nh.comcast.net
.