4 ms·
This is realy cool! I wonder if Justine's Redbean[0] webserver, which got recently posted on HN[1], would support ARM in such use case. Its executable size is
by imhoguy 6y ago
This is realy cool!
I wonder if Justine's Redbean[0] webserver, which got recently posted on HN[1], would support ARM in such use case. Its executable size is 460KB, it even allows Lua scripting, and benchmarks 1 million pages per second on desktop PC.
[0] https://justine.lol/redbean/index.html https://justine.lol/redbean/index.html
[1] https://news.ycombinator.com/item?id=26271117 https://news.ycombinator.com/item?id=26271117
- pantalaimon 6y agogatling [0] is also pretty small and fast, it also can do FTP and SMB if you need that. [0] https://www.fefe.de/gatling/ https://www.fefe.de/gatling/
- bayindirh 6y agoDon't forget webfs. It's just 196K installed.
- marban 6y agoAlso: https://github.com/mufeedvh/binserve https://github.com/mufeedvh/binserve
- mfashby 6y agoPossibly not. I believe that runs natively on (any!) x86 system, but it uses QEMU to run on ARM, which might make things a big too big here.
- spijdar 6y agoWhile you'll probably run out of memory first, there's the enormous overhead of running qemu's translation, too. Using QEMU to emulate x86 on my POWER9 system, I get... roughly the performance of a 2001-2004 pentium processor, and the host cpu is running at 3.8GHz and comparable speed wise to a 2018ish intel processor. In spite of the author's insistence, I don't think Cosmopolitan is really usable on anything but x86, the QEMU thing is more a cute proof-of-concept. For very simple programs I guess...
- imhoguy 6y agoYou are right. Indeed it falls back to QEMU on non-x86_64 https://github.com/jart/cosmopolitan/issues/73#issuecomment-787207628 https://github.com/jart/cosmopolitan/issues/73#issuecomment-... Running QEMU on a modem would be another hack for a day :)
- xx_ns 6y agoDon't give me any ideas...