~/talk

j2me.js - a multi-threaded Java VM in JavaScript

Talkat JSConf.ar 2014 · on Saturday, 2014-11-29· [javascript, webassembly]
slides:none on file

A Java VM implemented in pure JavaScript called j2me.js loads real JARs (parses ZIPs, fixes trailing-zero quirk from PDF.js), reuses Sun’s open‑sourced Java libraries because KVM lacks a usable license, and compiles bytecode to JS rather than only interpreting. Early runs are 100× slower until hot paths become native JS shims; compilation uses emscripten/asm.js ideas and an iframe eval workaround for CSP. Threads run by yielding from a VM exception loop so multithreading via VM‑yield and synchronous I/O are emulated; demos (Asteroids) run but need polish.

AI-written summary · about

  1. 0:00Start
  2. 22:54JAVA is to JAVASCRIPT
  3. 33:26NOT SURE IF A SLOW COMPUTER
  4. 37:45MADNESS??!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.