Languages That Can Be Used To Develop a OS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Languages That Can Be Used To Develop a OS

Post 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
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Languages That Can Be Used To Develop a OS

Post 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.
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Languages That Can Be Used To Develop a OS

Post 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? [-o<
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: Languages That Can Be Used To Develop a OS

Post 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. ;)
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Languages That Can Be Used To Develop a OS

Post 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. ;)
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: Languages That Can Be Used To Develop a OS

Post 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?
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Languages That Can Be Used To Develop a OS

Post by Nathan »

I've already saw many HTML OSes. ;)
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Languages That Can Be Used To Develop a OS

Post 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/
User avatar
Andr3w
Member
Member
Posts: 76
Joined: Tue Jun 09, 2009 4:09 am
Location: Somewhere

Re: Languages That Can Be Used To Develop an OS

Post 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
User avatar
AndrewAPrice
Member
Member
Posts: 2303
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: Languages That Can Be Used To Develop a OS

Post 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.
My OS is Perception.
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: Languages That Can Be Used To Develop a OS

Post 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.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Languages That Can Be Used To Develop a OS

Post 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"? :mrgreen:
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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: Languages That Can Be Used To Develop a OS

Post 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?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Languages That Can Be Used To Develop a OS

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: Languages That Can Be Used To Develop a OS

Post by qw »

It almost always comes down to C and assembler, doesn't it?
Post Reply