The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.
Rust electron-alternativegame-engineglobal-illuminationgraphicsjavascript-runtimemetalpath-tracingray-tracingreal-time-renderingrenderingrustthreejstypescriptvoxelvulkanwebgpuwgpu
fn main() {
let cx = threert_jsc::Context::new("t");
let c = cx.ctx();
let names = ["console","queueMicrotask","structuredClone","URL","URLSearchParams","TextEncoder","TextDecoder","atob","btoa","setTimeout","Intl","WeakRef","FinalizationRegistry","crypto","AbortController","Event","EventTarget","fetch","WebAssembly","Atomics","SharedArrayBuffer","performance","globalThis","DOMException","Blob","ReadableStream","navigator"];
for n in names { let v = c.eval(&format!("typeof {n}"), "t").unwrap(); print!("{n}:{} ", v.to_string(c)); }
println!();
println!("{}", c.eval(r#"(1234567.891).toLocaleString() + ' ' + new Intl.NumberFormat('zh-CN').format(1234567) + ' ' + [..."🏝️口袋"].length + ' ' + 'x'.at(-1) + ' ' + typeof Array.prototype.findLast + ' ' + typeof Promise.withResolvers + ' ' + typeof Object.groupBy + ' ' + typeof Set.prototype.union + ' ' + typeof Iterator"#, "t").unwrap().to_string(c));
}