3 ms·
I can't reconcile "it's like VBA reads my mind" with the goal, since it wouldn't be VBA; it would be another language which compiles to VBA. CoffeeScript isn't
by dalke 13y ago
I can't reconcile "it's like VBA reads my mind" with the goal, since it wouldn't be VBA; it would be another language which compiles to VBA.
CoffeeScript isn't "Javascript that reads your mind." Scala isn't "Java that reads your mind."
CoffeeScript had some difficulties, for that matter. It wasn't until CoffeeScript 1.6.1 that there was a way, in collaboration with browsers which support source maps, to get error line numbers relative to the CoffeeScript source instead of the intermediate Javascript.
Any language which isn't VB but which compiles to VB will have the same problems - how do you report report run-time errors in a way that your users can understand them?
There's similar problems with debugging. How do you step through your source? How do you inspect intermediate values? These are things that VBA supports, but your language won't be able to support.
You might end up with a great language design that ends up taking more time to implement in because it isn't debuggable.
Regarding PyPy, the reason I mentioned it was in context of "I actually would be interested to know about the state of the art [in designing high level language that transpiles to another], any resources are very welcome." PyPy is state of the art for that, if you want a JIT.
- zrz 13y agoDo you mean that PyPy is a state of the art transpiled language? Actually I was looking for state of the art tools that helps designing/implementing languages. I have come across CoffeeScript's annotated source, on their website, and I'm definitely going to digg deep in this documentation. I also might get more information on the difficulties that appeared at the creation of CoffeeScript, as you say. Although, I am thinking about a language that compiles to VBA, meaning it produces visible VBA, and that VBA would be debuggable I guess.
- dalke 13y agoI mean that RPython toolchain of PyPy is a language implementation platform. It has multiple back ends. The most common is x86, but one of the more experimental backends is Javascript. There are several languages implemented in PyPy. The most well known is Python, but Ruby, Prolog, and others exist. Thus, PyPy is a transpiler from, say, Python to Javascript, etc. LLVM is another such tool. It supports an asm.js backend, which gives quite good performance in modern Javascript engines. The end result is that you can compile C and other languages into Javascript. See, for example, the Doom port for the browser.