Shell Idea

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
chezzestix
Member
Member
Posts: 118
Joined: Mon May 05, 2008 5:51 pm

Shell Idea

Post by chezzestix »

Thought I would open this idea for public comment. How bout them commands?

Shell Idea:
Script Shell

-input
[Target], [command] [command parameters] [Priority Marker] (. = normal priority, ! = High priority)

ex
Kenny, learn 145.45.0.25 as Tonto.
Kenny, shutdown Tonto!

-prompt
[User name]:

ex
Adam: Kenny, learn 145.45.0.25 as Tonto and 145.45.0.27 as Robert.
Kenny: Learned and learned.
Adam: Kenny, shutdown Tonto.
Kenny: Lemme go tell him.
Tonto: By what authority?
Adam: Admin
Tonto: If you are admin you know the password.
Adam: ********
Tonto: Very Well.
Adam: Robert, startup Tonto.
Robert: Who is Tonto?
Adam: Kenny, inform Robert of Tonto.
Kenny: Informed.
Robert: Oh I see.
Adam: Robert, startup Tonto.
Robert splashes water on Tonto.
Adam: (blinking cursor)
CodeCat
Member
Member
Posts: 158
Joined: Tue Sep 23, 2008 1:45 pm
Location: Eindhoven, Netherlands

Re: Shell Idea

Post by CodeCat »

It looks more like an IRC conversation than a shell, but it's interesting for sure. It reminds me of those computer AIs you see in films.

Dave: HAL, open pod bay doors.
HAL: I'm sorry Dave, I'm afraid I can't do that.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Shell Idea

Post by Troy Martin »

Love it. Now if you could teach it more things, like aliasing commands and what not to do as an interim step when doing things, you should call up M$ and tell them your OS is better than theirs. :)
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: Shell Idea

Post by thepowersgang »

I agree with CodeCat, but I think that it would be a good introduction shell as long as it is tolerating of slight grammatical changes.
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
User avatar
TheDragon
Member
Member
Posts: 43
Joined: Mon Aug 25, 2008 8:23 pm
Location: Middle of Nowhere

Re: Shell Idea

Post by TheDragon »

Do you have some experience with grammar parsing? It'd really make things a lot easier in this. Also, you might want to check out Constructing a Compiler from the library. It'd be a big help.
User avatar
kasper
Posts: 19
Joined: Sun Apr 27, 2008 7:59 am
Location: The Netherlands, Amersfoort
Contact:

Re: Shell Idea

Post by kasper »

Hi Chezzestix and others,
CodeCat wrote:It looks more like an IRC conversation than a shell, but it's interesting for sure. It reminds me of those computer AIs you see in films. [...]
If you want to go in the direction of conversations, you might be able to use an existing chatbot's implementation or architecture and extend it with the capability of executing processes. Looking into natural language processing (NLP), a branch of AI, might give you some useful information.

Cheers,
Kasper
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Shell Idea

Post by Love4Boobies »

The idea is nice for a beginner level user. Although a NLP-based shell could probably be created (they're usually keyword-oriented and that's exactly what you'd expect from a shell anyway). It doesn't increase productivity one bit, though. Shells are usually meant to do that. Can you imagine executing a few commands at the same time while giving each some parameters?

As an aside, command line interpreters are supposed to be seen as some sort of a language rather than an interactive terminal.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Shell Idea

Post by Troy Martin »

Revisited this topic today and I feel like writing some command software like this for Windows. Stay tuned.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
Post Reply