5 ms·
A Basic Just-In-Time Compiler (2015)
- adiusmus 8y agoMy sleeping Forth system is about to wake up and have a different JIT added to it.
- bayesian_horse 8y agoI'm always torn between my principle not to judge other peoples fancies and wondering what kind of actual progress talented people like this could make.
- saagarjha 8y agoWhat do you mean by "actual progress"?
- iamgopal 8y agoBeing happy. And they do make real progress in this regards.
- NhanH 8y agoWithout doing fancies like this, people wouldn't be talented.
- pjc50 8y agoIt's an educational blog post.
- zeveb 8y agoChris Wellons wrote elfeed and has a day job; I think he's making progress enough. There's absolutely nothing wrong with having a hobby.
- lingzb 8y agoCrazy how little code it is.
- pjc50 8y agoWell, it doesn't have any control flow, symbols, or system calls, so most of the work is in setting up a buffer and calling conventions. There's also no language intermediate representation or optimiser. The W^X machinery bans self-modifying code in the traditional sense, but there may be situations where creating little specifically-optimised gadgets like this can benefit a program.
- Narishma 8y agoI thought this would be about a JIT compiler for the BASIC language. Does such a thing exist?
- beached_whale 8y agoVB.net comes to mind
- omaranto 8y agoLennart Augustsson implemented a JIT for BASIC as an EDSL in Haskell using LLVM. A blog post he wrote about it: http://augustss.blogspot.com/2009/02/more-basic-not-that-anybody-should-care.html http://augustss.blogspot.com/2009/02/more-basic-not-that-any... The JIT itself: https://hackage.haskell.org/package/BASIC https://hackage.haskell.org/package/BASIC
- adito 8y agoAny recommended reading to know more about JIT and stuff. Something along tutorial for writing JIT compiled language from scratch.