|
|
|
|
|
by billywhizz
1344 days ago
|
|
like bun or node or deno (Rust as well as C++). in techempower, the vast vast majority of code running in the just-js entry is JavaScript. all the core libraries for networking and interacting with the OS are js wrappers around C++/v8. the http server, though incomplete and not production rady, is written in javascript, with http parsing handed off to picohttpparser. the postgres wire protocol is completely written in javascript. in fact, one of the advantages JS and other JIT languages have is you can optimize away a lot of unnecessary logic at run time when you need to. e.g. https://github.com/just-js/libs/blob/main/pg/pg.js#L241 the whole point of doing this was to prove that JS can be as fast as any other language for most real world web serving scenarios. if i had more time to work on it, i am sure i could improve the fortunes score where it would be at or very close to the top of that ranking too. |
|