JLang icon indicating copy to clipboard operation
JLang copied to clipboard

Update the polyglot of JLang to the latest version 2.8.0

Open ljcppp opened this issue 2 years ago • 1 comments

Is it easy to update the polyglot of JLang to 2.8.0? I'm working with JLang for some project which meets some lambda calculus in the program. I find these features are supported by Polyglot 2.8.0. So I want to know is it easy to update the polyglot of JLang by myself.

ljcppp avatar Sep 16 '22 05:09 ljcppp

I don't think it should be difficult, but @dz333 would know better than I.

andrewcmyers avatar Sep 24 '22 19:09 andrewcmyers

I think the main effort would involve including support for the new language features (i.e., Lambdas) in JLang. Swapping out the polyglot versions should be only a small amount of work -- but if you want to compile lambdas then we would need to update JLang to translate them to LLVM.

dz333 avatar Sep 30 '22 13:09 dz333

Actually, the new version of the compiler supports translating lambda expressions into classes, so it should not be necessary to add an LLVM translation of lambdas. On the other hand, there is probably some opportunity in doing so to make lambdas more efficient than the usual inner class translation.

andrewcmyers avatar Sep 30 '22 18:09 andrewcmyers