Javascript Kernel

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.
QuentinRain
Posts: 8
Joined: Fri Jun 14, 2013 11:29 pm

Re: Javascript Kernel

Post by QuentinRain »

requimrar wrote:I see your $0x2710 and raise you $0x10000.
You're silly. x isn't a number...
User avatar
zhiayang
Member
Member
Posts: 368
Joined: Tue Dec 27, 2011 7:57 am
Libera.chat IRC: zhiayang

Re: Javascript Kernel

Post by zhiayang »

QuentinRain wrote: I have a system for it to run off of. My computer is a 3.0GHz i7. I think that's a plenty powerful system. I can just compile Spidermonkey and dd it to a floppy. That should do the trick. I would use C, but it's hard.

Thanks for all the advice so far, guys!
If you think C is hard, I suggest you get off your high horse of JS and start being a little more 脚踏实地, and less 不自量力.


Here's a list of TODOs:

1. Lock this thread.

QuentinRain wrote: You're silly. x isn't a number...
http://en.wikipedia.org/wiki/Hexadecimal

Again, get off your high horse. If you don't even know hex, you are not fit to do OSDev.
QuentinRain
Posts: 8
Joined: Fri Jun 14, 2013 11:29 pm

Re: Javascript Kernel

Post by QuentinRain »

BMW wrote:If you REALLY wanted to do this, the easiest way (IMO) would be to make a really basic kernel in C

What I meant by system was a kernel. E.g. in Firefox, it runs off Windows or Linux or whatever. If you compile SpiderMonkey and dd it to a floppy, it would in no way work. You would be compiling it with all the Windows/Linux system calls etc in it, which would not work without the OS.

I suggest you research low-level programming and architecture.
Ohhhhh, duh! That's ok, I'll throw Firefox and Linux on the floppy too. Problem solved!
User avatar
zhiayang
Member
Member
Posts: 368
Joined: Tue Dec 27, 2011 7:57 am
Libera.chat IRC: zhiayang

Re: Javascript Kernel

Post by zhiayang »

QuentinRain wrote:
BMW wrote:If you REALLY wanted to do this, the easiest way (IMO) would be to make a really basic kernel in C

What I meant by system was a kernel. E.g. in Firefox, it runs off Windows or Linux or whatever. If you compile SpiderMonkey and dd it to a floppy, it would in no way work. You would be compiling it with all the Windows/Linux system calls etc in it, which would not work without the OS.

I suggest you research low-level programming and architecture.
Ohhhhh, duh! That's ok, I'll throw Firefox and Linux on the floppy too. Problem solved!

Congratulations, you have achieved nothing -- It's just another JS app at that stage.
QuentinRain wrote: I don't even own a horse...
http://en.wiktionary.org/wiki/high_horse
User avatar
BMW
Member
Member
Posts: 286
Joined: Mon Nov 05, 2012 8:31 pm
Location: New Zealand

Re: Javascript Kernel

Post by BMW »

QuentinRain wrote:
BMW wrote:If you REALLY wanted to do this, the easiest way (IMO) would be to make a really basic kernel in C

What I meant by system was a kernel. E.g. in Firefox, it runs off Windows or Linux or whatever. If you compile SpiderMonkey and dd it to a floppy, it would in no way work. You would be compiling it with all the Windows/Linux system calls etc in it, which would not work without the OS.

I suggest you research low-level programming and architecture.
Ohhhhh, duh! That's ok, I'll throw Firefox and Linux on the floppy too. Problem solved!
Ok, you do that.

BTW you are not funny.
Currently developing Lithium OS (LiOS).

Recursive paging saves lives.
"I want to change the world, but they won't give me the source code."
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Javascript Kernel

Post by iansjack »

I was thinking I could use this:
https://developer.mozilla.org/en-US/docs/SpiderMonkey

I'm sure it wouldn't be that hard to make it bootable...
SpiderMonkey is a scripting engine to be embedded in an application. An application needs an operating system to run on; that means it needs a kernel. I think we have a chicken and egg situation.
User avatar
zhiayang
Member
Member
Posts: 368
Joined: Tue Dec 27, 2011 7:57 am
Libera.chat IRC: zhiayang

Re: Javascript Kernel

Post by zhiayang »

iansjack wrote:
I was thinking I could use this:
https://developer.mozilla.org/en-US/docs/SpiderMonkey

I'm sure it wouldn't be that hard to make it bootable...
SpiderMonkey is a scripting engine to be embedded in an application. An application needs an operating system to run on; that means it needs a kernel. I think we have a chicken and egg situation.
Conversely, I think we have a troll. Don't feed him.
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Javascript Kernel

Post by iansjack »

Conversely, I think we have a troll. Don't feed him.
You're entitled to think what you like, as am I.

One of us has posted 7 times in this thread, the other (now) 3 times. Have you heard the expression about the pot calling the kettle black?

With the greatest respect, I prefer to make my own decisions about which threads I choose to post in.
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: Javascript Kernel

Post by thepowersgang »

Ok, I'm going to throw in a little sense here before the thread is locked.

@QuentinRain - You appear to be making every single beginner mistake in the book, this is why people are calling you a troll (a title that I also think fits). If you are serious about OSDev, I suggest not going for something as untested as an entire kernel in Javascript.

@BMW: Stop rising to the bait, it makes you look stupid.


In short - Learn to search the web and wiki, and I suspect that if any more posts happen in this thread it'll get locked pretty quickly.
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Locked