Settings

Theme

Node OS

node-os.com

58 points by ajones 10 years ago · 52 comments

Reader

bsimpson 10 years ago

I'm astonished that this has been up for an hour and no one's mentioned Atwood's Law:

"Any application that can be written in JavaScript, will eventually be written in JavaScript."

http://blog.codinghorror.com/the-principle-of-least-power/

58028641 10 years ago

But the kernel needs to be in javascript. Since anything written in javascript becomes 2X better. </sarcasm>

amelius 10 years ago

Cooperative multitasking, as found in the Windows 3.1 era!

  • nickpsecurity 10 years ago

    I have a two-finger salute I typically give to cooperative multitasking especially thanks to the Windows 3.1 era. ;) I still investigate it with better type systems, languages, hardware monitors, whatever. I just think "NOOOOO!!!" is a good default when I see it.

adambrod 10 years ago

What would be really interesting is Elixir-OS/Erlang-OS where the entire OS can take advantage of a 50 core CPU.

shruubi 10 years ago

One thing I can't seem to find is, is this a true nodejs-based operating system in that it's all single threaded? single-threaded event loop stuff works well for network servers but an OS? To me it seems like a terrible idea.

  • joshdickson 10 years ago

    I'm going to have to assume it's using some form of Node's clustering support, which will let you run up to X instances where X is the maximum number of supported instances for the number of cores you have. Otherwise, you're right, bad combination.

  • pedalpete 10 years ago

    What about something like ChromeOS? Does it need multi-threading?

    If each app is running it's own thread, and can spawn new threads, maybe that would work.

    Also, though Node.js is currently single-threaded, there is the Nexus project https://github.com/voodooattack/nexusjs which is doing multi-threaded javascript. Maybe this or Node.js will support multiple threads in the future.

    • spriggan3 10 years ago

      Nashorn on the JVM supports threads. So the problem is definitely not a JS issue but a JS engine issue. NodeJS is single threaded because NodeJS V8 is. There was a talk about implementing workers that communicate view text messages though, I don't know the state of workers in NodeJS .

  • gschrader 10 years ago

    It's still based on the linux kernel.

  • itsyogesh 10 years ago

    I recently read about the SIMD support for Javascript. While parallelism and distributed systems contribute a lot to the OS, SIMD is something nice to have on top that. So, JS may be single threaded but having SIMD support might speed things up.

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

  • abritinthebay 10 years ago

    Why not? Many languages and Operating Systems used to be single threaded. Many still functionally are for a lot of things.

    Of course it's still challenging but it's built on top of the Linux kernel so it's also not a pure NodeOS (which would probably be impossible).

gberger 10 years ago

> node-os is the first operating system powered by npm Read More

That's not a very nice tagline to have after the recent left-pad fiasco.

jdubs 10 years ago

Wow this looks lovely to support

cheez 10 years ago

When all you have is a hammer...

brainflake 10 years ago

I love node, but a node REPL in lieu of a shell sounds like the worst thing ever.

notduncansmith 10 years ago

"Read More" link 404'd for me.

wrong_variable 10 years ago

<< Die heart Node.js fan >>

As much as I love Node.js, I have grown to dislike npm. Git + Github is a much nicer way to publish.

Also the whole left-pad fiasco.

  • sqren 10 years ago

    Not going to defend npm here, but how is using Github as registry going to avoid left-pad-gate?

    • wrong_variable 10 years ago

      you are right - its not possible to avoid left-pad-gate due to github being a similar company as npm ( in terms of law ).

      But using git means its theoretically possible to have multiple registries - etc.

  • bitwize 10 years ago

    To be quite frank, the fact that the node community hasn't adopted vendoring as a standard practice speaks volumes about that community.

shrugger 10 years ago

Now you can left-pad your entire environment instead of just your production build!

Wow!

joesmo 10 years ago

I assume the whole thing goes down when left-pad or some other trivial dependency can't be resolved.

alishan-l 10 years ago

It's a brave new world

int_handler 10 years ago

It's happening: https://xkcd.com/1508/

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection