# Re: Ruby's role in future operating systems

**URL:** <https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967>\
**Category:** Ruby\
**Created:** [June 9, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967 "2006-06-09T23:23:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 9, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967/1 "2006-06-09T23:23:08Z")

</div>

In an inspired moment the other night, I thought it would be soooo  
cooool to  
have a command shell with ruby syntax. The I started getting even  
crazier,  
and thought, what about a ruby interpreter as an o/s kernel…

It may have only sounded cool because I was drunk, though.

sd

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 9, 2006, 11:52pm UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967/2 "2006-06-09T23:52:20Z")

</div>

On 6/9/06, DEBAUN, STEVE [Seminis/2400] [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> In an inspired moment the other night, I thought it would be soooo cooool to  
> have a command shell with ruby syntax.

FYI: [http://rubyforge.org/projects/rush/](http://rubyforge.org/projects/rush/)

> The I started getting even crazier,  
> and thought, what about a ruby interpreter as an o/s kernel…

That might be taking things too far, but I could certainly imagine  
kernel extensions or system services written in Ruby, but it might  
need to be some type of limited interpreter or kept in a sandbox, just  
in case.

Ryan

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 10, 2006, 5:49am UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967/3 "2006-06-10T05:49:23Z")

</div>

On Sat, 10 Jun 2006, Ryan L. wrote:

> That might be taking things too far, but I could certainly imagine  
> kernel extensions or system services written in Ruby, but it might  
> need to be some type of limited interpreter or kept in a sandbox, just  
> in case.

I worked with QNX a number of years ago. Amazing system, the kernel was  
13K. Everything else ran externally and communicated via a very simple  
message protocol. It really rocked! Ruby would plug into something  
like  
that extremely well.

– Matt  
It’s not what I know that counts.  
It’s what I can remember in time to use.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 11, 2006, 3:21am UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967/4 "2006-06-11T03:21:12Z")

</div>

DEBAUN, STEVE [Seminis/2400] wrote:

> In an inspired moment the other night, I thought it would be soooo cooool to  
> have a command shell with ruby syntax. The I started getting even crazier,  
> and thought, what about a ruby interpreter as an o/s kernel…
> 
> It may have only sounded cool because I was drunk, though.
> 
> sd

How is a command shell with Ruby syntax different from “irb”?

> > > forked from Atheos) for now uses Ruby for at least a couple
> > 
> > 1. [http://haiku-os.org](http://haiku-os.org)

–  
M. Edward (Ed) Borasky

> **[世界杯竞猜彩票-世界杯官网竞猜（集团）有限公司](http://www.linuxcapacityplanning.com/)**
>
> 世界杯竞猜彩票一直以来遵守商业道德，世界杯官网竞猜坚持诚信为本，保证诚实经营。世界杯竞猜彩票先后成为安徽省电子商务协会理事单位、安徽省网商协会会员单位、合肥市电子商务协会理事单位、合肥市服务外包行业协会会员单位、安徽省云计算产业促进会会员单位。世界杯官网竞猜一直保持良好的技术及服务态度，更好地为客户服务。

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 11, 2006, 10:09pm UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967/5 "2006-06-11T22:09:34Z")

</div>

It’s not, unless I’ve misunderstood something. In fact, you’d only  
need a ~/.irbrc with some shortcuts for commonly used shell stuff, and  
bam! - a Ruby shell.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 11, 2006, 3:49am UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967/6 "2006-06-11T03:49:18Z")

</div>

DEBAUN, STEVE [Seminis/2400] wrote:

> In an inspired moment the other night, I thought it would be soooo  
> cooool to  
> have a command shell with ruby syntax.

I took a stab at such a think a while back, the plan was to be able to  
inline shell commands in ruby so you could use ruby for the if’s and  
loops but type shell commands pretty naturally. I kinda had some stuff  
working, but without a proper ruby parser in ruby it’s pretty tricky…

Another idea I’ve been bouncing around in my skull is a  
ports/pkgsrc/portage style package manager in ruby. I kinda even specced  
out my ideas here:  
[http://www.cataclysm-software.net/vag/pkgman/pkgmgr-spec2.txt](http://www.cataclysm-software.net/vag/pkgman/pkgmgr-spec2.txt) (still a  
WIP). I just don’t have time to actually do any implementation though ☹

BTW - sorry for posting from ruby forum, too lazy to resubscribe to the  
ML…

Andrew

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 12, 2006, 5:26pm UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967/7 "2006-06-12T17:26:57Z")

</div>

| ls -l _.rb  
| should work without doing ls ‘-l’, '_.rb’

| but once you start typing something like  
|  
| if cond  
|  
| then it should pick up on the fact you are writing a ruby script now

| and not calling the ‘if’ binary with an argument of cond.

Yes, i’m agree.

–  
Upper reality \>oftware.  
Dave - Skp Core (skp-it.eu).

–  
Email.it, the professional e-mail, gratis per te: [http://www.email.it/f](http://www.email.it/f)

Sponsor:  
Tutta la musica che vuoi a portata di click!

- Entra in [www.radiosnj.com](http://www.radiosnj.com)  
Clicca qui: [http://adv.email.it/cgi-bin/foclick.cgi?midQ80&d](http://adv.email.it/cgi-bin/foclick.cgi?midQ80&d)-6

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 11, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967/8 "2006-06-11T22:34:49Z")

</div>

On Jun 11, 2006, at 4:06 PM, Simen E. wrote:

> > > have a command shell with ruby syntax. The I started getting  
> > > even crazier,  
> > > and thought, what about a ruby interpreter as an o/s kernel…
> > > 
> > > It may have only sounded cool because I was drunk, though.
> > > 
> > > sd
> > 
> > How is a command shell with Ruby syntax different from “irb”?

Please don’t top post. Anyway, I think what people want is not a  
command shell with ruby syntax, but a command shell with mixed-syntax  
that would ‘do the right thing’.

i.e.

ls -l _.rb  
should work without doing ls ‘-l’, '_.rb’ (or even ls ‘-l \*.rb’)

but once you start typing something like

if cond

then it should pick up on the fact you are writing a ruby script now  
and not calling the ‘if’ binary with an argument of cond.
