Giter VIP home page Giter VIP logo

jsos's Introduction

JSOS

An operating system written in JavaScript

License

The kernel, C library, compiler and JavaScript VM are licensed under the Simplified BSD license:

Copyright (c) 2012, Hailey Somerville
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: 

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer. 
2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution. 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies, 
either expressed or implied, of the FreeBSD Project.

The kernel contains some code from とあるOS, which is under the NCSA license.

jsos's People

Contributors

haileys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsos's Issues

Crarifications About this OS

Instead of building the iso version you decided to build the img version of the OS. This not only takes a lot more space because of the partitions but also more time to make the img drivers and partition logic. Did you run into issues writing an ISO parser or have you not considered this approach for other reasons?

There is some C code, some Ruby code and Some Javascript Code. When an os boots up it does not use the 2 stroke ruby version does it? It's using what the ruby compiled as the javascript jmg files? So Ruby is not part of this os, it's just the "Compile the javascript" as part of the compiling as far as I understood it yes? Also the compiled javascript can interpret javascript ? Can it do what ruby is already doing or what?

I'm trying to understand all of this and I'm not that familiar with Ruby, but maybe these clarifications will help.

Thank you.

Javascript or C?

Obviously i dont see any Javascript code here.... i was laughing when the descripton said 'An OS Made in Javascript'... that is class 😆

clarification request: javascript vm?

I am on the look out for a light weight javascript vm,
did you have an implementation of js in C or are you using twostroke to provide js?

I saw a lot of C code that is clearly related to js, but then the twostroke dependency confused me.

thanks, Dominic

Trying to create an application but having a lot trouble. Help please!

Hi,
I am new to the android developmental world and I'm trying to make it something that I can do for a living and a career because I actually like to write code and creating things from scratch. I am trying to create my application using Eclipse Juno. I was trying to work my way through the tutorials, yet, I am having a a lot of issues using it. Is there anyone that can help me understand and use this technology better, or anyone that knows something that I can do that will assist me on my way?

The main problem that I am having is that I'm getting an error message in this code
""

The error message i'm getting is asking me is I mean instead of

, but I am following the practices like they are shown to me. I don't understand where I am going wrong and I hope someone can help me. I'm sorry for being very long-winded, but this has been preventing me from doing the thing that I'm trying to be great at and I'm completely vexed and dumbfounded.

Having trouble building

Hello,
I tried to build jsos off of a fresh clone and got this error:

make[1]: Entering directory `/home/calvin/Documents/jsos/kernel'
      js  js/kernel/init.js
../compiler/compile.rb:2:in `require': no such file to load -- twostroke (LoadError)
    from ../compiler/compile.rb:2
make[1]: *** [js/kernel/init.o] Error 1
rm js/kernel/init.o
make[1]: Leaving directory `/home/calvin/Documents/jsos/kernel'
make: *** [kernel/hdd.img] Error 2

I then cloned charliesome/twostroke into the twostroke folder and get this error:

make[1]: Entering directory `/home/calvin/Documents/jsos/kernel'
      js  js/kernel/init.js
/home/calvin/Documents/jsos/twostroke/lib/twostroke.rb:2:in `require': /home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:34: undefined (?...) sequence: /((?<oct>0[0-7]+)|(?<hex>0x[A-Fa-f0-9]+)|(?<to_f>(\d+(\.?\d*([eE][+-]?\d+)?)?|\.\d+([eE][+-]?\d+)?)))/ (SyntaxError)
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:34: syntax error, unexpected '>'
...?|\.\d+([eE][+-]?\d+)?)))/, ->m do
                              ^
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:42: syntax error, unexpected ']', expecting kEND
      end ],
           ^
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:46: syntax error, unexpected ',', expecting tCOLON2 or '[' or '.'
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:47: syntax error, unexpected '>'
      [ :BAREWORD, /[a-zA-Z_\$][\$a-zA-Z_0-9]*/, ->m { m[0] } ],
                                                   ^
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:47: syntax error, unexpected ']', expecting kEND
      [ :BAREWORD, /[a-zA-Z_\$][\$a-zA-Z_0-9]*/, ->m { m[0] } ],
                                                               ^
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:49: syntax error, unexpected '>'
...).))*?((?!\1)(?!\\).)?)\1/, ->m { unescape_string m[2] } ],
                              ^
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:49: syntax error, unexpected ']', expecting kEND
...->m { unescape_string m[2] } ],
                              ^
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:51: undefined (?...) sequence: /\/(?<src>(\\.|[^\1])*?[^\1\\]?)\/(?<opts>[gim]+)?/
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:51: syntax error, unexpected '>'
...^\1\\]?)/(?<opts>[gim]+)?}, ->m {
                              ^
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:63: syntax error, unexpected ']', expecting kEND
      } ],
         ^
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:65: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:66: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:67: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:68: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:69: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:70: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:72: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:74: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:75: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:76: syntax error, unexpected ',', expecting kEND
...     [ :TIMES_EQUALS, /\*=/ ], # textmate barfs it's syntax ...
                              ^
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:77: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:78: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:79: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:80: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:81: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:82: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:83: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:84: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:86: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:87: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:88: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:89: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:90: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:91: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:92: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:93: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:94: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:95: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:96: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:98: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:99: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:100: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:101: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:102: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:103: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:104: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:105: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:106: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:107: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:108: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:109: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:111: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:112: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:113: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:114: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:115: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:116: syntax error, unexpected ',', expecting kEND
/home/calvin/Documents/jsos/twostroke/lib/twostroke/tokens.rb:117: syntax error, unexpected ',', expecting kEND
    from /home/calvin/Documents/jsos/twostroke/lib/twostroke.rb:2
    from ../compiler/compile.rb:2:in `require'
    from ../compiler/compile.rb:2
make[1]: *** [js/kernel/init.o] Error 1
rm js/kernel/init.o
make[1]: Leaving directory `/home/calvin/Documents/jsos/kernel'
make: *** [kernel/hdd.img] Error 2

Any suggestions? I'm on Fedora 16 x86_64

How far is WebGL done?

I noticed the WebGL is not working, is it incomplete? What state is it in? Thank you.

Make Error

*** No rule to make target /usr/share/fortune/perl', needed bybuild/etc/fortune.txt'. Stop.

Is this project active?

Hi all.

I want to help, but I want to know if this project is active. Is this project active?

seemed promising

it looks like a very promising project. Was there a bottle-neck or lack of community support ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.