frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Elysia JIT "Compiler", why it's one of the fastest JavaScript framework

https://elysiajs.com/internal/jit-compiler
27•saltyaom•2d ago
Wrote a thing about what makes Elysia stand out in a performance benchmark game

Basically, there's a JIT "compiler" embedded into a framework

This approach has been used by ajv and TypeBox before for input validation, making it faster than other competitors

Elysia basically does the same, but scales that into a full backend framework

This gave Elysia an unfair advantage in the performance game, making Elysia the fastest framework on Bun runtime, but also faster than most on Node, Deno, and Cloudflare Worker as well, when using the same underlying HTTP adapter

There is an escape hatch if necessary, but for the past 3 years, there have been no critical reports about the JIT "compiler"

What do you think?

Comments

g947o•1h ago
> Sucrose read the code without executing it by using Function.toString() then perform our own custom pattern-matching to extract useful information about what parts of the request are actually needed by the route handler.

Hmm.

pygy_•1h ago
Yup, this is a one-time, startup operation, using a proper parser would make it more robust at no runtime cost.
codingdave•1h ago
Sounds plausible, but the article itself lists a number of downsides to this, including a statement about potential security problems with a somewhat wishy washy "The input is almost never user-controlled". That "almost never" is a big red flag to me - sounds like there are known security holes that are being glossed over.

So my question is whether there are any real-world scenarios where the performance gains will make a difference to the end customer? Because if not, this framework would bring on the known downsides without a compelling reason for doing so aside from bragging rights of "we're the fastest"

NuclearPM•29m ago
Frameworks. Plural.
Lerc•23m ago
I was really confused about what a JIT "Compiler" for a JavaScript framework means, but it turns out it means something like I've done myself.

My site https://c50.fingswotidun.com/ uses the same trick to generate code for the image generation.

Between the confusion of what Compile, JIT, Engine, Runtime, and FrameWork is (which I blame Bun a little bit for starting this entire Runtime/Engine confusion). I think we might need some new terminology to describe this method.

Maybe a made-up word is needed, JIT was good in that an acronym with a vowel made it wordable and specific.

hueho•8m ago
> Sucrose looks at code and tells the "compiler" to only parse params and skip parsing other parts of the request like body, query, headers entirely as it's not need.

My understanding is that just offering a request object with lazy accessors would solve this issue, although the accessor itself would have some overhead in repeat accesses.

> Elysia has two special optimizations for response mapping functions: mapResponse and mapCompactResponse.

This section feels a bit abstract - some transformation examples would be nice.

Clean-room implementation of Half-Life 2 on the Quake 1 engine

https://code.idtech.space/fn/hl2
99•klaussilveira•2h ago•11 comments

Simplifying Vulkan One Subsystem at a Time

https://www.khronos.org/blog/simplifying-vulkan-one-subsystem-at-a-time
20•amazari•53m ago•2 comments

Frontier AI agents violate ethical constraints 30–50% of time, pressured by KPIs

https://arxiv.org/abs/2512.20798
407•tiny-automates•11h ago•269 comments

Discord will require a face scan or ID for full access next month

https://www.theverge.com/tech/875309/discord-age-verification-global-roll-out
1851•x01•23h ago•1776 comments

Show HN: Distr 2.0 – A year of learning how to ship to customer environments

https://github.com/distr-sh/distr
18•louis_w_gk•2h ago•3 comments

Rust implementation of Mistral's Voxtral Mini 4B Realtime runs in your browser

https://github.com/TrevorS/voxtral-mini-realtime-rs
321•Curiositry•12h ago•41 comments

74% of European firms would fail without access to U.S. technology

https://europeancorrespondent.com/en/r/trumps-power-switch
5•speckx•23m ago•2 comments

Qwen-Image-2.0: Professional infographics, exquisite photorealism

https://qwen.ai/blog?id=qwen-image-2.0
155•meetpateltech•5h ago•87 comments

RLHF from Scratch

https://github.com/ashworks1706/rlhf-from-scratch
8•onurkanbkrc•2h ago•1 comments

Pure C, CPU-only inference with Mistral Voxtral Realtime 4B speech to text model

https://github.com/antirez/voxtral.c
232•Curiositry•13h ago•20 comments

Why is the sky blue?

https://explainers.blog/posts/why-is-the-sky-blue/
685•udit99•22h ago•232 comments

Discord Alternatives, Ranked

https://taggart-tech.com/discord-alternatives/
435•pseudalopex•19h ago•264 comments

Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock

https://github.com/jim11662418/ESP8266_WiFi_Analog_Clock
561•tokyobreakfast•21h ago•176 comments

Show HN: Elysia JIT "Compiler", why it's one of the fastest JavaScript framework

https://elysiajs.com/internal/jit-compiler
27•saltyaom•2d ago•6 comments

Zulip.com Values

https://zulip.com/values/
160•nothrowaways•13h ago•36 comments

Rice Theory: Why Eastern Cultures Are More Cooperative

https://www.npr.org/sections/thesalt/2014/05/08/310477497/rice-theory-why-eastern-cultures-are-mo...
34•thunderbong•1h ago•36 comments

Hard-braking events as indicators of road segment crash risk

https://research.google/blog/hard-braking-events-as-indicators-of-road-segment-crash-risk/
334•aleyan•21h ago•478 comments

80386 Barrel Shifter

https://nand2mario.github.io/posts/2026/80386_barrel_shifter/
19•jamesbowman•2d ago•0 comments

Luce: First Electric Ferrari

https://www.ferrari.com/en-US/auto/ferrari-luce
247•kaizenb•19h ago•244 comments

LiftKit – UI where "everything derives from the golden ratio"

https://www.chainlift.io/liftkit
245•peter_d_sherman•16h ago•122 comments

Show HN: Total Recall – write-gated memory for Claude Code

https://github.com/davegoldblatt/total-recall
39•davegoldblatt•4d ago•13 comments

Is particle physics dead, dying, or just hard?

https://www.quantamagazine.org/is-particle-physics-dead-dying-or-just-hard-20260126/
160•mellosouls•14h ago•257 comments

Sandboxels

https://neal.fun/sandboxels/
347•2sf5•22h ago•42 comments

MIT Technology Review has confirmed that posts on Moltbook were fake

https://www.technologyreview.com/2026/02/06/1132448/moltbook-was-peak-ai-theater/
172•helloplanets•2d ago•85 comments

Jury told that Meta, Google 'engineered addiction' at landmark US trial

https://techxplore.com/news/2026-02-jury-told-meta-google-addiction.html
4•geox•17m ago•0 comments

An articulated archer automaton [video]

https://www.youtube.com/watch?v=Bc0bIpDVEa8
45•Teever•18h ago•6 comments

Eight more months of agents

https://crawshaw.io/blog/eight-more-months-of-agents
178•arrowsmith•2d ago•185 comments

Upcoming changes to Let's Encrypt and how they affect XMPP server operators

https://blog.prosody.im/2026-letsencrypt-changes/
149•zaik•17h ago•161 comments

UEFI Bindings for JavaScript

https://codeberg.org/smnx/promethee
244•ananas-dev•1d ago•111 comments

Ask HN: What are you working on? (February 2026)

294•david927•1d ago•991 comments