A Linux system running over JavaScript
The CPU is close to a 486 compatible x86 without FPU. The lack of FPU is not a problem when running Linux as Operating System because it contains a FPU emulator. In order to be able to run Linux, a complete MMU is implemented."
(Log in to post comments)
A Linux system running over JavaScript
Posted May 17, 2011 13:36 UTC (Tue) by lkundrak (subscriber, #43452) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 14:50 UTC (Tue) by rsidd (subscriber, #2582) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 14:53 UTC (Tue) by PhracturedBlue (subscriber, #4193) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 19:01 UTC (Tue) by sjlyall (guest, #4151) [Link]
According to the BogoMips website 20 is around a 486DX/40 ( That is 40MHz ) which is roughly the PC I had in 1994 (running Linux).
A Linux system running over JavaScript
Posted May 18, 2011 9:47 UTC (Wed) by dgm (subscriber, #49227) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 12:35 UTC (Wed) by gnb (subscriber, #5132) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 15:01 UTC (Tue) by tjc (guest, #137) [Link]
I'd be amazed even if it were slow!
A Linux system running over JavaScript
Posted May 17, 2011 15:05 UTC (Tue) by tjc (guest, #137) [Link]
...was slow. A little midlands creeping in there...
A Linux system running over JavaScript
Posted May 17, 2011 15:16 UTC (Tue) by endecotp (guest, #36428) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 15:19 UTC (Tue) by tseaver (guest, #1544) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 0:09 UTC (Wed) by JoeBuck (subscriber, #2330) [Link]
Grammar pundits
Posted May 18, 2011 4:00 UTC (Wed) by ncm (subscriber, #165) [Link]
In the meantime, do you drive a car, or an automobile, or a motor vehicle? Is that a gadget or a device? Is 'a' or 0x61 right? In all cases, the answer is (for inclusive interpretations of "or") yes.
Grammar pundits
Posted May 18, 2011 9:12 UTC (Wed) by pboddie (subscriber, #50784) [Link]
Grammar pundits
Posted May 19, 2011 16:45 UTC (Thu) by tjc (guest, #137) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 13:54 UTC (Tue) by mcg (guest, #66950) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 14:53 UTC (Tue) by michel (subscriber, #10186) [Link]
My head just exploded.
A Linux system running over JavaScript
Posted May 17, 2011 15:02 UTC (Tue) by clump (subscriber, #27801) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 8:46 UTC (Wed) by robert_s (subscriber, #42402) [Link]
"This opens a world of possibilities."
Does it? I'm extremely worried if anyone plans on using this for something mainstream, as impressive as it is.
A Linux system running over JavaScript
Posted May 19, 2011 14:02 UTC (Thu) by clump (subscriber, #27801) [Link]
As per possibilities, the traditional ways of starting machines are (roughly): 1) bare metal, 2) subsets of bare metal, or 3) using relatively dedicated software to start virtual machines. Starting a virtual machine from a web browser is new way of starting virtual machines, with a very common denominator.
security interest
Posted May 18, 2011 11:57 UTC (Wed) by copsewood (subscriber, #199) [Link]
security interest
Posted May 18, 2011 12:14 UTC (Wed) by epa (subscriber, #39769) [Link]
I imagine an early application will be more extensive fuzz testing of the Javascript sandbox security implementation.Doubtful. If you wanted to test Javascript security you'd do it by writing Javascript code directly, not by writing 386 machine code which runs in an emulated machine implemented in Javascript.
A Linux system running over JavaScript
Posted May 17, 2011 15:07 UTC (Tue) by markusw (guest, #53024) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 15:49 UTC (Tue) by mikov (guest, #33179) [Link]
Alas, it doesn't run on my Nexus One ... :-(
A Linux system running over JavaScript
Posted May 17, 2011 16:08 UTC (Tue) by bjacob (subscriber, #58566) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 10:55 UTC (Wed) by pointwood (guest, #2814) [Link]
I wasn't able to type any commands though.
A Linux system running over JavaScript
Posted May 17, 2011 16:23 UTC (Tue) by geertj (subscriber, #4116) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 16:06 UTC (Tue) by aogulla (guest, #29747) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 19:11 UTC (Tue) by Hausvib6 (guest, #70606) [Link]
You can rm -rf /, but...
Posted May 21, 2011 0:55 UTC (Sat) by pr1268 (guest, #24648) [Link]
startx doesn't work. Darn. ;-)
You can rm -rf /, but...
Posted May 23, 2011 8:50 UTC (Mon) by arief (guest, #58729) [Link]
Only run with HTML5 supporting browser though:
http://blogs.gnome.org/alexl/2011/03/15/gtk-html-backend-...
A Linux system running over JavaScript
Posted May 17, 2011 19:11 UTC (Tue) by Aissen (subscriber, #59976) [Link]
I tried reproducing what he did by re-compiling a kernel to run in the jslinux, it works with 2.6.20.21, but didn't work with 2.6.38.6. I didn't have time to bisect it.
So I guess it's something that was introduced after 2.6.20 that cannot be emulated by jslinux. Is it the tickless kernel ? The merging of i386 and x86_68 architectures ? The CFS scheduler ? Or something else ?
A Linux system running over JavaScript
Posted May 17, 2011 19:15 UTC (Tue) by tzafrir (subscriber, #11501) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 4:15 UTC (Wed) by jdub (subscriber, #27) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 19:10 UTC (Wed) by rahvin (guest, #16953) [Link]
The simple reality is that such a piece of hardware hasn't existed for a very long time and I believe the kernel dev's took the opinion that it was causing needless pain to leave it in when no one was using it. Not to mention that there are still all those old kernels that can do it which IMO are much more suited to all that old hardware than the newer kernels. Finally, that the vast majority of people didn't even notice it was gone until someone built a fancy little emulator without FPU support is also indicative that they made the right decision in excising the code.
A Linux system running over JavaScript
Posted May 19, 2011 0:26 UTC (Thu) by Darkmere (subscriber, #53695) [Link]
Also, FPU emulation works on newer kernels than 6.20, so that's just fine too.
A Linux system running over JavaScript
Posted May 19, 2011 7:13 UTC (Thu) by richard_weinberger (subscriber, #38938) [Link]
Commit fa76dab9 (x86: clean up setup.h and the boot code) "broke" Linux >= 2.6.24 on JSLinux.
Fabrice Bellard has to update his linuxstart.bin bootloader...
Qemu security?
Posted May 17, 2011 19:19 UTC (Tue) by tbleher (guest, #48307) [Link]
There's just one thing that worried me when I read the technical details page:
> No segment limit and right checks when accessing memory (Linux does not rely on them for memory protection, so it is not an issue. The x86 emulator of QEMU has the same restriction).
Does that mean that a user process inside Qemu could scribble over the emulated kernel (i.e. no memory protection at all)? Or does this just mean that x86 segments are not implemented?
I'm not a native speaker, so I'm not sure if I parse the sentence correctly.
Qemu security?
Posted May 17, 2011 19:26 UTC (Tue) by flewellyn (subscriber, #5047) [Link]
A Linux system running over JavaScript
Posted May 17, 2011 23:06 UTC (Tue) by gevaerts (subscriber, #21521) [Link]
A Linux system running over JavaScript
Posted May 19, 2011 21:45 UTC (Thu) by cmccabe (guest, #60281) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 0:02 UTC (Wed) by karim (subscriber, #114) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 0:39 UTC (Wed) by mekinglong (guest, #62075) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 0:50 UTC (Wed) by kripkenstein (guest, #43281) [Link]
In Firefox I get "invalid arguments" as the error, but the whole file is on one line so hard to tell what the problem is.
A Linux system running over JavaScript
Posted May 18, 2011 6:50 UTC (Wed) by przemoc (guest, #67594) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 16:22 UTC (Wed) by nlucas (subscriber, #33793) [Link]
A Linux system running over JavaScript
Posted May 26, 2011 7:18 UTC (Thu) by przemoc (guest, #67594) [Link]
http://codereview.chromium.org/7037023
It's theoretically addressing v8 issue 1394, but in fact it's more about Chromium issue 82828. The problem of v12/13 was just briefly mentioned in "PC emulator is about 2 times slower using V8 than Jaeger Monkey" report and did not have deserving separate issue in v8 project.
> Fix bug in optimized compiler's switch-statement.
>
> In the case where the default-clause occurs as the first clause, the case-blocks were not wired up correctly.
So it was a matter of extracting non-NULL check equivalently from if block into inner if. That shouldn't be really needed in obtaining correct behavior though...
Speed deficiency (when compared to Fx) remains for the time being.
A Linux system running over JavaScript
Posted May 18, 2011 8:46 UTC (Wed) by meuh (guest, #22042) [Link]
Bogomips for all.
A Linux system running over JavaScript
Posted May 18, 2011 9:29 UTC (Wed) by gevaerts (subscriber, #21521) [Link]
I don't think bogomips will be more useful as a javascript benchmark than it was as a CPU benchmark.
A Linux system running over JavaScript
Posted May 18, 2011 10:35 UTC (Wed) by meuh (guest, #22042) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 9:07 UTC (Wed) by mcon147 (subscriber, #56569) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 12:16 UTC (Wed) by epa (subscriber, #39769) [Link]
You can already compile things to Javascript using Emscripten.
A Linux system running over JavaScript
Posted May 18, 2011 14:40 UTC (Wed) by xxiao (subscriber, #9631) [Link]
javascript keeps getting more powerful these days too, from browser to desktop to server side.
A Linux system running over JavaScript
Posted May 18, 2011 15:09 UTC (Wed) by dakt (guest, #74570) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 17:43 UTC (Wed) by NightMonkey (subscriber, #23051) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 18:11 UTC (Wed) by korpenkraxar (guest, #75003) [Link]
A Linux system running over JavaScript
Posted May 18, 2011 20:19 UTC (Wed) by dag- (guest, #30207) [Link]
Thanks a lot, Fabrice ;-)
A Linux system running over JavaScript
Posted May 18, 2011 22:37 UTC (Wed) by ballombe (subscriber, #9523) [Link]
Busybox already include wget.
A Linux system running over JavaScript
Posted May 20, 2011 11:55 UTC (Fri) by Tobu (subscriber, #24111) [Link]
What does nfeth do? I've found very little about it, except that it stands for "nat-feature" ethernet.
A Linux system running over JavaScript
Posted May 20, 2011 17:37 UTC (Fri) by Simetrical (guest, #53439) [Link]
A Linux system running over JavaScript
Posted May 23, 2011 0:15 UTC (Mon) by dag- (guest, #30207) [Link]
Don't dismiss it straight off...
A Linux system running over JavaScript
Posted May 23, 2011 14:16 UTC (Mon) by Simetrical (guest, #53439) [Link]
This might be feasible once WebSockets is usable again. But it would only work if the server trusts the client not to abuse it as an anonymous proxy. Realistically, as I said, it would be more plausible to write a version that works as a browser extension of some kind, while still being written entirely or almost entirely in JavaScript. Then you could conceivably have real networking access.
A Linux system running over JavaScript
Posted May 26, 2011 18:17 UTC (Thu) by dbarnes (guest, #75204) [Link]
A Linux system running over JavaScript
Posted May 26, 2011 22:23 UTC (Thu) by Simetrical (guest, #53439) [Link]
A Linux system running over JavaScript
Posted May 19, 2011 8:26 UTC (Thu) by misiu_mp (guest, #41936) [Link]
Otherwise it just hangs there working hard on something. How can an emulator written in JS end up with bad memory? My system is otherwise as stable as ever but I'll have to check for bad ram some day when it's time to reboot.
A Linux system running over JavaScript
Posted May 19, 2011 19:27 UTC (Thu) by dtlin (subscriber, #36537) [Link]
V8 had a bug. It's been fixed but I don't think it's made it into a release yet.
A Linux system running over JavaScript
Posted May 19, 2011 18:52 UTC (Thu) by dashesy (guest, #74652) [Link]
A Linux system running over JavaScript
Posted May 19, 2011 21:39 UTC (Thu) by korpenkraxar (guest, #75003) [Link]
A Linux system running over JavaScript
Posted May 26, 2011 16:46 UTC (Thu) by dbarnes (guest, #75204) [Link]
http://forum.tinycorelinux.net/index.php?topic=9740
