runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

Add Builtins #58

Closed facekapow closed 9 years ago

facekapow commented 9 years ago

Add built-in shell functions into runtimejs. Functions are (currently):

...and more commands are a work in progress.

iefserge commented 9 years ago

@ArielAbreu Nice! Let's rename builtins to shell though, so it's clear that it's a shell stuff.

Random thought, not really related to this PR, do you think it makes sense to rename shutdown to poweroff? The latter sounds better to me.

facekapow commented 9 years ago

Yeah, plus it is the Unix name for it. I'll rename it.

facekapow commented 9 years ago

@iefserge Items renamed, waiting for the result of the Travis build.

facekapow commented 9 years ago

@iefserge I do have a small question, though. Are isolates still used? Because I get the feeling (from the js tests) that they are sort of being moved away from.

iefserge commented 9 years ago

Looks great! Isolates as in current implementation are deprecated and API is going to be removed. However they might be added back later in a form of web workers or something similar.

facekapow commented 9 years ago

Sorry, slipped my mind. So, (about the isolates) how do I save a file from my app into the VFS, just for the session? (Since isolates will be removed)

facekapow commented 9 years ago

I'm planning to add ping, but I need runtime-node-net to be automatically added to the initrd created by runtimeify.

iefserge commented 9 years ago

VFS is not supported too, what are you trying to do?

facekapow commented 9 years ago

i want to be able download files and manipulate them.

iefserge commented 9 years ago

ah, you'd need to keep them in buffers or process on the fly.

facekapow commented 9 years ago

Ok, thanks. BTW, opened an issue on runtimeify about adding runtime-node-net and http-node.

kesla commented 9 years ago

Sorry, now this is already merged so I guess I'm a little bit slow on the ball here - but couldn't this be created as a separate module outside of core?

piranna commented 9 years ago

but couldn't this be created as a separate module outside of core?

:+1:

facekapow commented 9 years ago

Well, yes. It'd actually be better as an optional module. runtime-starter-pack? :smile: Seriously, I think that'd be better. runtime-shell or whatever. Naming things is hard.

iefserge commented 9 years ago

@kesla @piranna It's going to be moved out later with all the shell stuff, first need to figure out sane interface for it.

kesla commented 9 years ago

Perfect, interface first, modularisation second!

— Sent from my iPhone

On Thu, Jun 18, 2015 at 5:19 PM, Serge notifications@github.com wrote:

@kesla @piranna It's going to be moved out later with all the shell stuff, first need to figure out sane interface for it.

Reply to this email directly or view it on GitHub: https://github.com/runtimejs/runtime/pull/58#issuecomment-113190015