7 points · by nnq · 8y ago · 5 comments
1. transpiles to both Javascript and Python,
2. produces readable code in target language, so it can be "ejected out of the project" after the prototype stage, so the final version delivered to client would not contain too "exotic" technologies in it (shipping readable and documented source code is a requirement)?
One thing that's worth a look in terms of being relatively lightweight and scoring well on output readability is https://fennel-lang.org. That's targeting Lua, but it does seem like a good pointer to how something like what you're asking for could exist, given some work.
That being said, I think it might be difficult to find a language satisfying (2) - transpilers typically don't target readability, IME.