News for hackers. Stuff that matters.
Re:Hy: A dialect of Lisp that's embedded in Python by aasasd on Wednesday May 05, 2021 @10:20AM (#27050186)
Well, doing this on top of a single language is more feasible, however the Python-Lisp pair is still not the best choice due to Python's strict semantics of separation between statements and expressions: when you generate an AST from Lisp, you'd have some sorta verbose shims in place of Lisp's expression-ic statements—precisely ones that Hy now creates. And vice versa, a coder's normal Python might not map cleanly to Hy.

If you're free to invent the languages in the first place, it would be kinda trivial to make several with the same semantics but different superficial syntax—basically just substitute one bunch of characters for another, no need to go via AST even. And these languages can then be transpiled to a single language of your choice, be that Python or JVM bytecode—if the semantics are made to be close enough.

Re:Hy: A dialect of Lisp that's embedded in Python by gilch on Thursday May 06, 2021 @01:59PM (#27066947)
What about a Lissp-Hebigo pair? https://github.com/gilch/hissp#hebigo

Hissp takes a different approach than Hy. Where Hy has to use shims to pretend statements are expressions, Hissp just targets the expression subset in the first place. (Actually a somewhat smaller subset than that if you're not injecting any raw Python: literals, lambdas, identifiers, and calls.)