This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Good programming language for online OS?
Started by nutcase84, 19 May 2013 - 03:01 PMPosted 19 May 2013 - 05:01 PM
I am making a online OS, and need a good web programming language. What would you recommend?
Posted 19 May 2013 - 05:07 PM
JavaScript?
Posted 19 May 2013 - 05:16 PM
JavaScript?
Is it easy? Like lua?
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.
Posted 19 May 2013 - 05:22 PM
PHP, mysql, http and javascript
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. :)/>
Posted 19 May 2013 - 05:26 PM
Since when are MySQL and HTTP languages?PHP, mysql, http and javascript
Posted 19 May 2013 - 05:39 PM
Since when is MySQL and HTT a language?PHP, mysql, http and javascript
I think he means it can help.
Anyone have a good tutorial on JavaScript?
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.
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.
Posted 19 May 2013 - 05:48 PM
What do you mean exactly by 'Online OS'?
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.
Suck it, Maxis and SimCity 5.
Posted 19 May 2013 - 06:59 PM
Think chrome os. I have attempted to make one several times, and failed from lack of knowledge.
Posted 19 May 2013 - 07:08 PM
Do you mean in CC but grab all the info from online sources?Think chrome os. I have attempted to make one several times, and failed from lack of knowledge.
Posted 19 May 2013 - 07:12 PM
Do you mean in CC but grab all the info from online sources?Think chrome os. I have attempted to make one several times, and failed from lack of knowledge.
Nope, in the real world, not MC.
Posted 20 May 2013 - 07:12 AM
So, know of any good tutorials/books for javascript?
Posted 20 May 2013 - 07:23 AM
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).So, know of any good tutorials/books for javascript?
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.MySQL is database. MySQL uses SQL. SQL is language.
Posted 20 May 2013 - 07:59 AM
more info http://w3fools.com/ignore anything w3schools.
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.more info http://w3fools.com/ignore anything w3schools.
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 >.>).
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.
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.
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.
Posted 20 May 2013 - 10:27 AM
Thank you! :)/> That is a lot more comprehensive. I'll have to start using it instead.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.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.
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.
Then if I want it to be a real OS, I can just plop a web browser on linux.
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.
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.
They basically do it with some fancy CSS and JS. You may want to look at how they did it.
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.
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/>
Posted 20 May 2013 - 01:39 PM
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.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/>
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".
Posted 20 May 2013 - 03:09 PM
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.A more accurate example: Jolicloud
Posted 20 May 2013 - 03:13 PM
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.A more accurate example: Jolicloud
It's not gona be that complicated.
Posted 20 May 2013 - 03:22 PM
You have no idea what you're getting into.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.A more accurate example: Jolicloud
It's not gona be that complicated.
Posted 20 May 2013 - 03:26 PM
Are you nuts? (Edit: Don't even try to be punny.)It's not gona be that complicated.
An operating system is one of the toughest projects to start, and it's incredibly difficult to complete.
Posted 20 May 2013 - 03:28 PM
Well, if everything was as simple as CCLua, then…
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.
C is not as easy as Lua. Not at all.
Posted 20 May 2013 - 03:37 PM
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.But it's not, and it's silly to think that it is.
C is not as easy as Lua. Not at all.
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.
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?
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.
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.
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.
Posted 21 May 2013 - 03:18 AM
Agreed
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!
Posted 21 May 2013 - 03:30 AM
I suppose you could make a real operating system and make a web gui…?
Posted 21 May 2013 - 03:31 AM
You are extreamly irritated by this thread too? :P/>
I wish him good luck…
If you will do it, make it in Lambda Calculus.
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.
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.
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.
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.
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.
Have fun.