3 ms·
> I'm a little bit tempted to make a simple compile-to-go language. That's what I did for my current project. I love Go but for web apps is not the best in my
by dawkins 9y ago
> I'm a little bit tempted to make a simple compile-to-go language.
That's what I did for my current project. I love Go but for web apps is not the best in my opinion. I had some spare time and ended up building a VM that compiles typescript to bytecode. The performance loss is minimal, I still use the Go std library but it is a pleasure to use VS Code, generics (the VM ignores types but the TS compiler gives you static type safety, autocompletion, refactoring, etc...) Also exceptions is great for web apps where usually there is nothing else you can do but save all the info that you can and show an error to the user.