{"by":"aapoalas","descendants":102,"id":42168166,"kids":[42171237,42171298,42173207,42171567,42173767,42171562,42178995,42171371,42173947,42174728,42171673,42175887,42172557,42171587,42172266,42174161,42172198,42173068,42171497,42171281,42172455],"score":271,"text":"We&#x27;re building a different kind of JavaScript engine, based on data-oriented design and willingness to try something quite out of left field. This is most concretely visible in our major architectural choices:<p>1. All data allocated on the JavaScript heap is placed into a type-specific vector. Numbers go into the numbers vector, strings into the strings vector, and so on.<p>2. All heap references are type-discriminated indexes: A heap number is identified by its discriminant value and the index to which it points to in the numbers vector.<p>3. Objects are also split up into object kind -specific vectors. Ordinary objects go into one vector, Arrays go into another, DataViews into yet another, and so on.<p>4. Unordinary objects&#x27; heap data does not contain ordinary object data but instead they contain an optional index to the ordinary objects vector.<p>5. Objects are aggressively split into parts to avoid common use-cases having to reading parts that are known to be unused.<p>If this sounds interesting, I&#x27;ve written a few blog posts on the internals of Nova over in our blog, you can jump into that here: <a href=\"https:&#x2F;&#x2F;trynova.dev&#x2F;blog&#x2F;what-is-the-nova-javascript-engine\" rel=\"nofollow\">https:&#x2F;&#x2F;trynova.dev&#x2F;blog&#x2F;what-is-the-nova-javascript-engine</a>","time":1731884845,"title":"Show HN: Nova JavaScript Engine","type":"story","url":"https://github.com/trynova/nova"}