NormalScript: A JavaScript Subset That Pauses and Resumes Agent Code

NormalScript is a small, MIT-licensed virtual machine for a strict subset of JavaScript that embeds directly in Node or Bun applications. It compiles scripts to bytecode and runs them in-process, letting agents or plugins chain host calls with loops, branches, and Promise.all. Runs can suspend mid-execution, serialize to bytes, and resume later on the same build. It passes 19,408 test262 files with zero failures, though 2,845 known gaps remain skipped.

# NormalScript: A JavaScript Subset That Pauses and Resumes Agent Code

Original title: NormalScript: A perfectly normal scripting language

> Hacker News story 50651430 · language: en · submitted 2026-11-26
> Web version: https://zeli.app/story/50651430
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 61 · by [hn-aarvin](<https://news.ycombinator.com/user?id=hn-aarvin>) · 💬 11
[original](<https://psychoscript.com/>) · [HN discussion](<https://news.ycombinator.com/item?id=50651430>)

## Summary

NormalScript is a small, MIT-licensed virtual machine for a strict subset of JavaScript that embeds directly in Node or Bun applications. It compiles scripts to bytecode and runs them in-process, letting agents or plugins chain host calls with loops, branches, and Promise.all. Runs can suspend mid-execution, serialize to bytes, and resume later on the same build. It passes 19,408 test262 files with zero failures, though 2,845 known gaps remain skipped.

## Key quote

> Nothing unusual happens here.

## HN discussion (11 comments)

### [lioeters](<https://news.ycombinator.com/item?id=50654539>)

> Impressive and mind-melting. Eventually crashed my browser but it was worth it.
>
> Website is open source. https://github.com/anomalyco/psychoscript/tree/dev/website#r...

### [andai](<https://news.ycombinator.com/item?id=50659429>)

> It says "PsychoScript" now. (At the time of writing, submission is titled NormalScript: A perfectly normal scripting language.)
>
> Did the language rename/rebrand itself in the last 3 hours?
>
> Edit: It seems to change the page title and contents depending on your GPU configuration. (I can see it for a split second before it switches.) On my phone it says NormalScript and site looks very different.

### [hn-aarvin](<https://news.ycombinator.com/item?id=50651461>)

> The visualization revealed by clicking the smile has to
>
> be one of the coolest things I've seen on the web.

---

## Cite

- Page: https://zeli.app/story/50651430
- Date: 2026-11-26
- Source: psychoscript.com (https://psychoscript.com/)
- Hacker News: https://news.ycombinator.com/item?id=50651430

## Other languages

- zh: https://zeli.app/zh/story/50651430 · markdown: https://zeli.app/zh/story/50651430.md
- ja: https://zeli.app/ja/story/50651430 · markdown: https://zeli.app/ja/story/50651430.md
- ko: https://zeli.app/ko/story/50651430 · markdown: https://zeli.app/ko/story/50651430.md
- de: https://zeli.app/de/story/50651430 · markdown: https://zeli.app/de/story/50651430.md
- es: https://zeli.app/es/story/50651430 · markdown: https://zeli.app/es/story/50651430.md
- ru: https://zeli.app/ru/story/50651430 · markdown: https://zeli.app/ru/story/50651430.md

HN Discussion · Zeli Story