Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 33 min 7 sec ago

Awesome-Geo

Sun, 11/17/2024 - 6:20pm
Categories: Hacker News

Show HN: Nova JavaScript Engine

Sun, 11/17/2024 - 6:07pm

We'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:

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.

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.

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.

4. Unordinary objects' heap data does not contain ordinary object data but instead they contain an optional index to the ordinary objects vector.

5. Objects are aggressively split into parts to avoid common use-cases having to reading parts that are known to be unused.

If this sounds interesting, I've written a few blog posts on the internals of Nova over in our blog, you can jump into that here: https://trynova.dev/blog/what-is-the-nova-javascript-engine

Comments URL: https://news.ycombinator.com/item?id=42168166

Points: 3

# Comments: 0

Categories: Hacker News

Sh <(Curl Hashbang.sh – GPG)

Sun, 11/17/2024 - 5:30pm

Article URL: https://hashbang.sh

Comments URL: https://news.ycombinator.com/item?id=42167951

Points: 1

# Comments: 1

Categories: Hacker News

The first AI group chat experience

Sun, 11/17/2024 - 5:22pm

Article URL: https://www.mixus.ai/

Comments URL: https://news.ycombinator.com/item?id=42167899

Points: 1

# Comments: 0

Categories: Hacker News

Pages