←back to thread

265 points marcodiego | 1 comments | | HN request time: 0.001s | source
Show context
s-macke ◴[] No.45799633[source]
That’s fast. Buggy, but fast. I’m totally impressed! Especially because I researched the necessary steps to do the same thing 10 years ago based on [0]. The patches required for this hack touch LLVM, libc, Linux kernel, BusyBox, ... and total approximately 15,000 lines of code.

I ran a small performance test with 'bc -lq' and compared with [0]:

  scale=1000
  4*a(1)
This WASM architecture compilation completely blows away my old emulation setup, which only managed around 200 MIPS. Maybe this approach can be generalized. Running a full Linux distribution at near-native speed right in the browser would be awesome.

[0] https://github.com/s-macke/jor1k

replies(3): >>45804988 #>>45806493 #>>45809279 #
Y_Y ◴[] No.45806493[source]
What results did your benchmark get?
replies(1): >>45808439 #
1. s-macke ◴[] No.45808439[source]
By a factor of about 170. But this is more of a micro benchmark that gives you a rough idea. It's not a definitive figure.