5 ms·
If you don't know how to start but want to give it a try, I highly recommend the How To Create Your Own Freaking Awesome Programming Language book http://create
by cocoflunchy 13y ago
If you don't know how to start but want to give it a try, I highly recommend the How To Create Your Own Freaking Awesome Programming Language book http://createyourproglang.com/ http://createyourproglang.com/ . One of the best purchases of this year for sure.
I've been writing my own toy compile-to-js language after reading the book: https://github.com/cosmith/panda https://github.com/cosmith/panda (I might have to change the name though, I recently discovered http://yesco.org/panda.html http://yesco.org/panda.html ...)
- gordonguthrie 13y agoI am writing an OTP-ish dialect of Erlang that compiles to javascript http://luvv.ie http://luvv.ie Just bought that book on your recommendation - better be good or else ;-D
- biot 13y agoSuggestion: you really need "here's what the syntax looks like" example(s) on your home page with some non-trivial code (more than just hello world). Ideally, show the sample and the JS output side by side like on the CoffeeScript home page: http://coffeescript.org/ http://coffeescript.org/
- gordonguthrie 13y agoI suppose I am being a bit of a blushing bride about the syntax as it isn't mine, just being good old-fashioned Erlang. The demo doesn't show much more than hello world, because that's all there is at the moment - the focus has been on building the end-to-end toolchain and I am now filling out the features, but good suggestion going forward.
- biot 13y agoI read "OTP-ish dialect of Erlang" as meaning it's not quite the same, and I was looking for details of those differences. If it's just plain Erlang, then I see your point.
- cocoflunchy 13y agoHa! I hope you like it ;) It seems like you have a good head start already, I hope you still find something interesting in there. If not, you can always ask for a refund...
- gordonguthrie 13y agoWhat the hell ;) Support your local technical book writer!
- alok-g 13y agoWhat all backends are considered in the book? LLVM? native code? Any mention of developing debuggers for the language? I suppose if one wants to write an interpreter, that would follow automatically from the learning about how to write compilers.