Giter VIP home page Giter VIP logo

runtime's Introduction

Runtime.JS Build Status

Runtime.JS is a kernel built on V8 JavaScript engine. It uses event-driven and non-blocking I/O model inspired by Node.js.

The goal of this project is to design and implement a kernel that is optimized to run JavaScript applications. By providing environment for JavaScript code only, it is possible to rethink kernel design to improve security, reliability and performance of the system.

It's currently under development and does not include many essential features. If you want to contribute, your help is very welcome.

You can use mailing list to ask any questions or share your ideas https://groups.google.com/group/runtimejs

Console

Technical details

Kernel architecture http://runtimejs.org/docs/arch.html

  • supported x86_64, 64 bit only
  • software isolated applications (processes or JS realms)
  • single address space, no hardware context switches
  • does not use cpu protection rings
  • non-blocking asynchronous IPC
  • drivers and system services are implemented in JavaScript
  • low-level kernel services are written in C++11

Status

####What's done

  • embedded V8 engine
  • multitasking (cooperative only)
  • IPC transferable functions and ArrayBuffers
  • SMP support (currently disabled)
  • embedded ACPICA for ACPI support
  • simple keyboard and VGA display drivers
  • JavaScript REPL application
  • PCI bus driver device detection

####Planned

  • network stack
  • virtual file system
  • virtio drivers for storage and network

Build

####Prerequisites

  • gcc 4.8 or newer cross compiler (target x86_64-elf)
  • fasm
  • scons

####Using Docker

Easiest way to setup developer environment is to use Docker https://www.docker.io/

./docker-prepare.sh

To build

./docker-build.sh

####Without Docker

You need to install fasm, scons and GCC cross compiler targeting x86_64-elf. http://wiki.osdev.org/GCC_Cross-Compiler

To build

scons

####Run using QEMU

./qemu.sh

####Try prebuilt binaries in QEMU

Download latest kernel.bin and initrd files from releases page https://github.com/runtimejs/runtime/releases

Run

qemu-system-x86_64                                \
    -m 512                                        \
    -smp 2                                        \
    -kernel kernel.bin                            \
    -initrd initrd                                \
    -serial stdio

License

Apache License, Version 2.0

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.