Recent

Author Topic: GocciaScript: JavaScript engine and runtime implemented in FreePascal  (Read 262 times)

frostney

  • Newbie
  • Posts: 1
Hi everyone, I've been working on a JavaScript engine and runtime being able to use modern JavaScript features without needing a compliation/transpilation step. I've been utilising AI coding agents to help me with the speed of implementation.

GocciaScript is a strict ECMAScript 2027+ subset implemented from scratch in FreePascal. The engine ships both a tree-walking interpreter and a register-based bytecode VM and mark-and-sweep GC underneath. TS/TSX annotations are supported (and other TC39 proposals) and JSX are handled in a preprocessing pass before the lexer ever sees them. Still very much a work in progress — pre-1.0, the bytecode/VM path and embedding still need quite a bit of work. Keen to get some feedback, there is so much more work to do and I'd love to get opinions on where I should focus more (embedding, spec compliance against ES262, sandboxing/isolation).

At the moment it's passing around 42% of the official test262 suite.

Website: https://gocciascript.dev
Github: https://github.com/frostney/GocciaScript

creaothceann

  • Sr. Member
  • ****
  • Posts: 361
Re: GocciaScript: JavaScript engine and runtime implemented in FreePascal
« Reply #1 on: April 30, 2026, 03:58:45 pm »
[...] and I'd love to get opinions on where I should focus more (embedding, spec compliance against ES262, sandboxing/isolation)

I just hope that there won't be any incompatibilities with Pixie.

 

TinyPortal © 2005-2018