Page 1 of 2
Languages That Can Be Used To Develop a OS
Posted: Mon Jan 25, 2010 7:16 pm
by Nathan
Hello,
I'm wondering to know what languages can be used to develop a OS instead of those on the Wiki.
At the time the only one that I know is C#, that you can read more at
Cosmos Project
Please, remember to put a link for a tutorial. Just to make us see more and be interested.
Best Regards,
Nathan Paulino Campos
Re: Languages That Can Be Used To Develop a OS
Posted: Mon Jan 25, 2010 7:25 pm
by earlz
Every language .Net supports with a little hackage.
Seriously though, any language could be used to make an OS. Very few are actual "good" choices though.
Re: Languages That Can Be Used To Develop a OS
Posted: Mon Jan 25, 2010 7:27 pm
by Nathan
earlz wrote:Every language .Net supports with a little hackage.
Seriously though, any language could be used to make an OS. Very few are actual "good" choices though.
Any links to make me interested?
Re: Languages That Can Be Used To Develop a OS
Posted: Mon Jan 25, 2010 7:27 pm
by pcmattman
Seriously though, any language could be used to make an OS. Very few are actual "good" choices though.
Well, you can build your house on a rock, on sand, or on swampland, or even in a river if you're patient.
Only one of them is actually a good idea.
Re: Languages That Can Be Used To Develop a OS
Posted: Mon Jan 25, 2010 7:40 pm
by Nathan
I know, but any link?
But at the time, I'm interested on Forth, Smalltalk and something of COBOL. All just for interest.
Re: Languages That Can Be Used To Develop a OS
Posted: Mon Jan 25, 2010 8:01 pm
by neon
Thing is, in a general sense, any language can be used for what can be coinsidered an operating system. C, C++, i86 assembly, FreeBASIC are common. Wasnt there someone wanting to create an HTML OS on these forums before?
Re: Languages That Can Be Used To Develop a OS
Posted: Mon Jan 25, 2010 8:04 pm
by Nathan
I've already saw many HTML OSes.
Re: Languages That Can Be Used To Develop a OS
Posted: Mon Jan 25, 2010 10:30 pm
by earlz
neon wrote:Thing is, in a general sense, any language can be used for what can be coinsidered an operating system. C, C++, i86 assembly, FreeBASIC are common. Wasnt there someone wanting to create an HTML OS on these forums before?
Dex? lol
Nathan wrote:I know, but any link?
But at the time, I'm interested on Forth, Smalltalk and something of COBOL. All just for interest.
I don't know about Smalltalk, but Forth would probably be the easiest out of those because it is just about designed to be it's own OS. That one would actually be pretty neat though because you'd have a Forth shell... btw, creating a Forth compiler would take an experienced programmer about 2 days(for the "useful" subset, that is), so definitely possible to get something barebones up and working quickly.
see
http://www.forthos.org/
Re: Languages That Can Be Used To Develop an OS
Posted: Mon Jan 25, 2010 11:25 pm
by Andr3w
HTML OS? Good idea. Maybe I'd use something like this for Sunlight OS..
Also, Nathan, I think your signature is too big. Maybe you could fit this code in two lines?
-- Andrew
Re: Languages That Can Be Used To Develop a OS
Posted: Tue Jan 26, 2010 12:41 am
by AndrewAPrice
Actually you can use any language, though some may require large run-time environments or ahead-of-time compiling to get up and running. In a microkernel the line is blurred even further, since servers differ very small (if at all) from standard applications, so you could use a Perl VFS, PHP file system driver, and a Javascript window manager, with only the kernel in a more traditional systems language like C.
Re: Languages That Can Be Used To Develop a OS
Posted: Tue Jan 26, 2010 1:32 am
by qw
The bottom line is that the boot loader and the core must be in machine code. In theory, any language could be compiled, but some are better interpreted.
Re: Languages That Can Be Used To Develop a OS
Posted: Tue Jan 26, 2010 2:28 am
by Combuster
neon wrote:Wasnt there someone wanting to create an HTML OS on these forums before?
As in "me 1337 becuz can program HTML"?
I have seen several references to
Web OSes, though. Dex included. But that's a design topic and not a development language.
If you are a
SDPDer, you may want to try something in the likes of Haskell or Prolog as the kernel language, but expect it to be the analogy of Matt's quicksand.
OT: Nathan, please shrink your signature.
Re: Languages That Can Be Used To Develop a OS
Posted: Tue Jan 26, 2010 2:53 am
by qw
Combuster wrote:If you are a
SDPDer, you may want to try something in the likes of Haskell or Prolog as the kernel language
Then how do you like this:
http://haskell.org/haskellwiki/Librarie ... ing_system?
Re: Languages That Can Be Used To Develop a OS
Posted: Tue Jan 26, 2010 2:59 am
by Combuster
Its a C (micro)kernel with Haskell drivers. It looks pretty much how my OS handles Basic: there's a complete hardware interface in a standard kernel language, and then any hosted language can attach to that.
Re: Languages That Can Be Used To Develop a OS
Posted: Tue Jan 26, 2010 4:58 am
by qw
It almost always comes down to C and assembler, doesn't it?