7 ms·
We can start with nodejs. Nodejs with async model will be the best solution to achieve the best performance(after 'delete spaces' method of course).
by vasilia 8y ago
We can start with nodejs. Nodejs with async model will be the best solution to achieve the best performance(after 'delete spaces' method of course).
- mav3rick 8y agoPerformance isn't an issue with C code. Security is.
- atilaneves 8y agoIt can be. Unless one resorts to macros, templates are usually faster.
- mav3rick 8y agoEverything can be an issue everywhere. No one will choose Node JS over C to counter performance.
- atilaneves 8y agoNo, but one can get code to perform as fast or faster than C with any other systems programming language, especially if they have templates/generics.
- goatlover 8y agoThe libuv library Node makes us of for handling async calls is written in C.
- vasilia 8y agoIt's not a problem. The main problem is the assembly code. There is no way to inline it in JS code. After boot time system should make some things like A20, enable paging/protected and long mode, build GDT/IDT.
- goatlover 8y agoRight, but my reply to the parent was that Node isn't a performance improvement over C because it has async, when the async part is written in C. JS popularity has led to some wild claims. Never thought I'd live to see the day someone proposed a JS runtime would be more performant than C for writing operating systems.
- Itaxpica 8y agoSomeone suggesting re-writing the Linux kernel in nodejs may be a strong contender for Peak HN
- vasilia 8y agoWhy Linux? It's a simple hybrid kernel. It will be better to rewrite HURD/L4.