This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
nutcase84's profile picture

Good programming language for online OS?

Started by nutcase84, 19 May 2013 - 03:01 PM
nutcase84 #1
Posted 19 May 2013 - 05:01 PM
I am making a online OS, and need a good web programming language. What would you recommend?
Sammich Lord #2
Posted 19 May 2013 - 05:07 PM
JavaScript?
nutcase84 #3
Posted 19 May 2013 - 05:16 PM
JavaScript?

Is it easy? Like lua?
Kingdaro #4
Posted 19 May 2013 - 05:19 PM
I would think you would need to have heard of JavaScript before starting a project like this. It powers pretty much any modern website.
FuuuAInfiniteLoop(F.A.I.L) #5
Posted 19 May 2013 - 05:22 PM
PHP, mysql, http and javascript
nutcase84 #6
Posted 19 May 2013 - 05:23 PM
I would think you would need to have heard of JavaScript before starting a project like this. It powers pretty much any modern website.

I have heard of it, and I have looked through lots of JavaScript code. Looks kinda complex, but what do I know about it.

PHP, mysql, http and javascript

Got HTTP down. :)/>
Sammich Lord #7
Posted 19 May 2013 - 05:26 PM
PHP, mysql, http and javascript
Since when are MySQL and HTTP languages?
nutcase84 #8
Posted 19 May 2013 - 05:39 PM
PHP, mysql, http and javascript
Since when is MySQL and HTT a language?

I think he means it can help.

Anyone have a good tutorial on JavaScript?
jesusthekiller #9
Posted 19 May 2013 - 05:46 PM
MySQL is database. MySQL uses SQL. SQL is language.
HTTP is Hyper Text Transfer Protocol. Even if you meant HTML, HTML is Hyper Text Markup Language and is not an programing language.

I recommend using PHP :)/>
If you will need database, use MySQL and MySQLnd as an driver. And PHP MySQLi library ofc.
Sammich Lord #10
Posted 19 May 2013 - 05:48 PM
What do you mean exactly by 'Online OS'?
jesusthekiller #11
Posted 19 May 2013 - 06:27 PM
I guess some stuff is made by global server what is an stupidest idea I have ever thought of…
Suck it, Maxis and SimCity 5.
nutcase84 #12
Posted 19 May 2013 - 06:59 PM
Think chrome os. I have attempted to make one several times, and failed from lack of knowledge.
Sammich Lord #13
Posted 19 May 2013 - 07:08 PM
Think chrome os. I have attempted to make one several times, and failed from lack of knowledge.
Do you mean in CC but grab all the info from online sources?
nutcase84 #14
Posted 19 May 2013 - 07:12 PM
Think chrome os. I have attempted to make one several times, and failed from lack of knowledge.
Do you mean in CC but grab all the info from online sources?

Nope, in the real world, not MC.
nutcase84 #15
Posted 20 May 2013 - 07:12 AM
So, know of any good tutorials/books for javascript?
theoriginalbit #16
Posted 20 May 2013 - 07:23 AM
So, know of any good tutorials/books for javascript?
There are heaps, just Google it and ignore anything w3schools. I would however suggest reading up on PHP first as you should power most of the OS via php, because JavaScript can be modified quite easily by anyone who can open their console of the web browser, something that cannot be done as easily with PHP (since JS is client-side and php is server-side).


MySQL is database. MySQL uses SQL. SQL is language.
Well actually MySQL is a Relational Database Management System (RDBMS) not a database. And I hope you're saying there that SQL isn't a programming language! Because it isn't, its a query language.
superaxander #17
Posted 20 May 2013 - 07:59 AM
ignore anything w3schools.
more info http://w3fools.com/
SadKingBilly #18
Posted 20 May 2013 - 08:31 AM
W3Fools makes a lot of valid points about W3Schools. It is a terrible resource for beginners. But if you already know what you're doing, it's the most convenient place for quick reference. It's still my go-to for CSS. That's largely because Google favors it so heavily, but still.
ShadowedZenith #19
Posted 20 May 2013 - 08:44 AM
If you're looking to make an OS like ChromeOS, you should take a look at the source of the ChromiumOS project, which is the opensource version of ChromeOS. Overall, though, ChromeOS I do believe is primarily written in C/C++ when it comes to the core components of it, and possibly JS runs the actual interface of it (can't remember if JS runs the interface of Chrome or if that was Firefox >.>).
nutcase84 #20
Posted 20 May 2013 - 08:55 AM
If you're looking to make an OS like ChromeOS, you should take a look at the source of the ChromiumOS project, which is the opensource version of ChromeOS. Overall, though, ChromeOS I do believe is primarily written in C/C++ when it comes to the core components of it, and possibly JS runs the actual interface of it (can't remember if JS runs the interface of Chrome or if that was Firefox >.>).

I want to make my own from scratch.
ShadowedZenith #21
Posted 20 May 2013 - 09:00 AM
Still taking a peek at how they handled it is a good way of learning how you can handle it. The best way to learn is to look at source code and figure out how it works. I do know, though, that ChromeOS is built on top of a Linux OS, so it's base is definitely C/C++. I don't think you'd be able to make much of an indepedently running OS without C/C++, or another similar language. JS and PHP just don't have the ability to access hardware directly last I knew.
Kingdaro #22
Posted 20 May 2013 - 10:12 AM
W3Fools makes a lot of valid points about W3Schools. It is a terrible resource for beginners. But if you already know what you're doing, it's the most convenient place for quick reference. It's still my go-to for CSS. That's largely because Google favors it so heavily, but still.

The Mozilla Developer Network is a more comprehensive and professionally built resource in my opinion. I just have the CSS Reference bookmarked and it has never been more helpful.
SadKingBilly #23
Posted 20 May 2013 - 10:27 AM
W3Fools makes a lot of valid points about W3Schools. It is a terrible resource for beginners. But if you already know what you're doing, it's the most convenient place for quick reference. It's still my go-to for CSS. That's largely because Google favors it so heavily, but still.
The Mozilla Developer Network is a more comprehensive and professionally built resource in my opinion. I just have the CSS Reference bookmarked and it has never been more helpful.
Thank you! :)/> That is a lot more comprehensive. I'll have to start using it instead.
nutcase84 #24
Posted 20 May 2013 - 11:40 AM
Sorry if I am vague, but I mean a in-the-browser type online OS.

Then if I want it to be a real OS, I can just plop a web browser on linux.
ShadowedZenith #25
Posted 20 May 2013 - 11:49 AM
Ah, then take a peek into JQuery and PHP for the majority of programming, HTML5 and CSS3 for the interface. Like everyone else said, avoid W3Schools because they have a lot of misinformation.
Sammich Lord #26
Posted 20 May 2013 - 01:25 PM
Ubuntu has a online tour http://www.ubuntu.com/tour/en/
They basically do it with some fancy CSS and JS. You may want to look at how they did it.
Mads #27
Posted 20 May 2013 - 01:31 PM
You can't make an operating system in a damn browser. It has nothing to do with an operating system, as it doesn't manage anything. It would most likely just be some fancy GUI which does nothing.
Pinkishu #28
Posted 20 May 2013 - 01:32 PM
You can't make an operating system in a damn browser. It has nothing to do with an operating system, as it doesn't manage anything. It would most likely just be some fancy GUI which does nothing.

Sure you can, noone said it has to be the top-level or only OS on the PC :D/>
Sammich Lord #29
Posted 20 May 2013 - 01:39 PM
You can't make an operating system in a damn browser. It has nothing to do with an operating system, as it doesn't manage anything. It would most likely just be some fancy GUI which does nothing.

Sure you can, noone said it has to be the top-level or only OS on the PC :D/>
Now, now, let's not argue about the definition of a operating system. He could very well make something SIMILAR to a operating system that was access via the web browser. This is a very stupid idea but whatever.
ShadowedZenith #30
Posted 20 May 2013 - 01:54 PM

Sure you can, noone said it has to be the top-level or only OS on the PC :D/>

He's technically right that you can't >.>. An OS has to be able to handle hardware resources, which a webbrowser/JS/PHP just can't do :P/>. Though, I'm a little confused on what he means by "A GUI that can't do anything".
nutcase84 #31
Posted 20 May 2013 - 03:05 PM
A more accurate example: Jolicloud
Sammich Lord #32
Posted 20 May 2013 - 03:09 PM
A more accurate example: Jolicloud
Yeah, you will need quite a bit of knowledge to build something like that. You will probably need to do some back-end programming to communicate with the services' APIs. Then some HTML, CSS and Javascript. You should go learn the jQuery library too.
nutcase84 #33
Posted 20 May 2013 - 03:13 PM
A more accurate example: Jolicloud
Yeah, you will need quite a bit of knowledge to build something like that. You will probably need to do some back-end programming to communicate with the services' APIs. Then some HTML, CSS and Javascript. You should go learn the jQuery library too.

It's not gona be that complicated.
Sammich Lord #34
Posted 20 May 2013 - 03:22 PM
A more accurate example: Jolicloud
Yeah, you will need quite a bit of knowledge to build something like that. You will probably need to do some back-end programming to communicate with the services' APIs. Then some HTML, CSS and Javascript. You should go learn the jQuery library too.

It's not gona be that complicated.
You have no idea what you're getting into.
Tiin57 #35
Posted 20 May 2013 - 03:26 PM
It's not gona be that complicated.
Are you nuts? (Edit: Don't even try to be punny.)
An operating system is one of the toughest projects to start, and it's incredibly difficult to complete.
nutcase84 #36
Posted 20 May 2013 - 03:28 PM
Well, if everything was as simple as CCLua, then…
Tiin57 #37
Posted 20 May 2013 - 03:34 PM
But it's not, and it's silly to think that it is.
C is not as easy as Lua. Not at all.
Sammich Lord #38
Posted 20 May 2013 - 03:37 PM
But it's not, and it's silly to think that it is.
C is not as easy as Lua. Not at all.
He wants to do it in the browser similar to JoliCloud. It is like Koding except it is for your everyday services instead of coding. But it will be very complex. Not sure if even I have enough experience to create something like it.
ShadowedZenith #39
Posted 20 May 2013 - 03:38 PM
Well, if everything was as simple as CCLua, then…

With a computer OS, you're dealing directly with real hardware. You have to have drivers for different devices, you have to understand (somewhat) why hardware does what it does, you have to understand memory management concepts otherwise the applications that you write for the OS might overwrite each other in the RAM, you have to understand how multitasking works. There's a lot in an OS that CC doesn't exactly teach.
nutcase84 #40
Posted 20 May 2013 - 03:47 PM
Well, if everything was as simple as CCLua, then…

With a computer OS, you're dealing directly with real hardware. You have to have drivers for different devices, you have to understand (somewhat) why hardware does what it does, you have to understand memory management concepts otherwise the applications that you write for the OS might overwrite each other in the RAM, you have to understand how multitasking works. There's a lot in an OS that CC doesn't exactly teach.

IT'S IN THE WEB BROWSER. How many times do I have to say it?
ShadowedZenith #41
Posted 20 May 2013 - 03:48 PM
Then you're looking to write a GUI because you can't really run an OS through a browser.
nutcase84 #42
Posted 20 May 2013 - 03:54 PM
Then you're looking to write a GUI because you can't really run an OS through a browser.

Yes.
Mads #43
Posted 21 May 2013 - 02:46 AM
Yes.

Get out. It is impossible to write an OS in a fucking browser, you can only use high-level languages to make a fancy GUI, which would most likely do nothing. Also, why the hell would you ask us about WHAT LANGUAGE to use? If you don't even know that, you have about 0 chance of creating an OS.
jesusthekiller #44
Posted 21 May 2013 - 03:18 AM
Agreed
Zudo #45
Posted 21 May 2013 - 03:28 AM
Yes.

Get out. It is impossible to write an OS in a fucking browser, you can only use high-level languages to make a fancy GUI, which would most likely do nothing. Also, why the hell would you ask us about WHAT LANGUAGE to use? If you don't even know that, you have about 0 chance of creating an OS.

Agreed

Agreed

Agreed!
Zudo #46
Posted 21 May 2013 - 03:30 AM
I suppose you could make a real operating system and make a web gui…?
jesusthekiller #47
Posted 21 May 2013 - 03:31 AM
You are extreamly irritated by this thread too? :P/>



I suppose you could make a real operating system and make a web gui…?

I wish him good luck…
If you will do it, make it in Lambda Calculus.
ShadowedZenith #48
Posted 21 May 2013 - 08:37 AM
Yes.

Get out. It is impossible to write an OS in a fucking browser, you can only use high-level languages to make a fancy GUI, which would most likely do nothing. Also, why the hell would you ask us about WHAT LANGUAGE to use? If you don't even know that, you have about 0 chance of creating an OS.

He said yes to wanting to make a GUI, though. Seems to me like he used the wrong term (confusing an OS with a GUI), but I gotta agree, if he's asking what language to write it in then he most likely won't be very successful at making it.
nutcase84 #49
Posted 21 May 2013 - 11:55 AM
I am not confused, I will make it a OS like jolicloud did. A web browser on linux.
ShadowedZenith #50
Posted 21 May 2013 - 12:39 PM
… You realize that then you're only making a GUI, correct? Because the OS IS Linux… And the webbrowser is then the window manager/layout manager for the actual GUI. GUI != OS.
jesusthekiller #51
Posted 21 May 2013 - 12:46 PM
This your "GUI" will take several years to create or will be just worthless junk (probably - both). Do you think they made Koding or c9.io in several days/weeks? TEAM was doing those services. Team of pros. It took them months if not years.
Have fun.