Загрузка видео...

Не удалось загрузить видео

На главную

We compiled reactive JavaScript into a cartridge. The same Vue component now runs on a 2KB RAM NES and a Game Boy Advance. No JavaScript engine. No GC. The computed values and UI effects are compiled directly into bare-metal C. This is Pocket Vapor. ⚡️

73,071 просмотров • 3 месяцев назад •via X (Twitter)

Комментарии: 12

Фото профиля PocketJS
PocketJS3 месяцев назад

The Pocket Vapor experiment is now in the PocketJS repo under vapor/. It’s still early, not a release yet. But the compiler, console targets, and cross-runtime parity tests are already here:

Фото профиля PocketJS
PocketJS3 месяцев назад

How do you run Vue reactivity on a machine with 2 KB of RAM? The full technical writeup:

Фото профиля DannyW
DannyW3 месяцев назад

Love the work you are doing. It’s awesome seeing all these updates, keep them coming

Фото профиля PocketJS
PocketJS3 месяцев назад

Thanks!

Фото профиля StonedModder
StonedModder3 месяцев назад

If yall can add support for switch and Wii U as well eventually you win Pocket js is sick !

Фото профиля PocketJS
PocketJS3 месяцев назад

They’re definitely in scope. PocketJS aims to cover a very broad hardware spectrum!

Фото профиля Sree
Sree3 месяцев назад

this is sick!

Фото профиля EA-18G Growler Enjoyer
EA-18G Growler Enjoyer3 месяцев назад

Super cool project

Фото профиля 0xbogan
0xbogan3 месяцев назад

If I'm reading the numbers right, it means you can have a form with about twice as many elements before you run the NES out of RAM

Фото профиля PocketJS
PocketJS3 месяцев назад

Not quite. The ~940 B number is app state on the GBA, not the NES’s total footprint. The NES’s 2 KB must also hold the record pool, computed views, shadow screen grid, and C stack, so this demo is currently capped at 8 todos. There isn’t a generic elements-to-RAM ratio yet; the compiler derives and checks a static memory plan for each component and target.

Фото профиля Garrett Walker
Garrett Walker3 месяцев назад

@evanyou That is insane!

Фото профиля harold
harold2 месяцев назад

But no canvas support or way to draw to gba screen instead of canvas?

Похожие видео