[HN Gopher] A small but complete JavaScript engine
       ___________________________________________________________________
        
       A small but complete JavaScript engine
        
       Author : creolabs
       Score  : 106 points
       Date   : 2020-10-23 08:12 UTC (1 days ago)
        
 (HTM) web link (bellard.org)
 (TXT) w3m dump (bellard.org)
        
       | seph-reed wrote:
       | Here's a really interesting video about speed performance of the
       | v8 engine:
       | 
       | https://www.youtube.com/watch?v=aC_QLLilwso
       | 
       | The basic points: They watch functions for "hotness" (how often
       | they are ran). Then, any function that is super hot, they'll see
       | if it's being ran consistently (ie always receives two numbers as
       | its arguments). Then they'll make a streamlined interpretation of
       | the js code which only checks the arguments and then skips pretty
       | much all the other checks. By doing this, it makes JS
       | significantly faster.
       | 
       | If you're trying to compare and contrast v8 to quickjs, this is
       | the first thing that comes to mind for me as to what they may be
       | doing differently.
        
       | iamvnraju wrote:
       | Frabrice Bellard truly works in God mode. Ffmpeg, Qemu, Tiny C
       | Compiler ... many others .. and now this!
        
         | staunch wrote:
         | He really has done so much incredible work. I'd love a Fabrice
         | Bellard interview/podcast/tech talk but found none when
         | searching. If anyone has a link, please post it!
        
         | Macuyiko wrote:
         | Agreed. 10 years ago, I could still pretend I'd be able to come
         | close to his productivity if I "just set my mind to it." Today
         | (being older, slower, and having a family), I can only be
         | humble.
        
           | leetrout wrote:
           | I'm really starting to feel the age and competing priorities
           | with family. Makes me really scared about ageism.
        
       | benibela wrote:
       | Here is another one: https://github.com/BeRo1985/besen
        
       | Wowfunhappy wrote:
       | Could this potentially be used in a browser? How complete is
       | "complete"?
       | 
       | Browser diversity is top of mind for me...
        
       | megous wrote:
       | QuickJS is quite a pleasure to work with, for variety of reasons.
       | Not using setjmp/longjmp and having a nice internal resource leak
       | debugging mechanisms are just a few of them. I've already
       | replaced most of my duktape uses with QuickJS, and I'm quite
       | happy with the result.
        
       | choeger wrote:
       | That's truly impressive.
        
       ___________________________________________________________________
       (page generated 2020-10-24 23:00 UTC)