Giter Club home page Giter Club logo

testlabor / graaljs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oracle/graaljs

0.0 1.0 1.0 690.01 MB

A ECMAScript 2021 compliant JavaScript implementation built on GraalVM. With polyglot language interoperability support. Running Node.js applications!

License: Universal Permissive License v1.0

Shell 0.16% JavaScript 12.43% C++ 27.86% Scheme 0.01% Python 2.02% Perl 16.63% C 23.13% Emacs Lisp 0.01% Java 3.82% R 0.01% Assembly 13.36% PowerShell 0.01% eC 0.01% Awk 0.01% TypeScript 0.06% CSS 0.01% Makefile 0.11% HTML 0.35% CMake 0.03% DTrace 0.01%

graaljs's Introduction

https://graalvm.slack.com

A high performance implementation of the JavaScript programming language. Built on the GraalVM by Oracle Labs.

The goals of GraalVM JavaScript are:

Getting Started

The preferred way to run GraalVM JavaScript is from a GraalVM. Starting with GraalVM 22.2., GraalVM JavaScript is an installable component that needs to be installed with gu install js after downloading GraalVM. See the documentation on the GraalVM website for more information on how to install and use GraalVM JavaScript.

Installing GraalVM JavaScript using the GraalVM Updater:

$ $GRAALVM/bin/gu install js
$ $GRAALVM/bin/js --version

After installation, the js shell can be executed and used to run JavaScript code or execute JavaScript files.

$ $GRAALVM/bin/js
> print("Hello JavaScript");
Hello JavaScript
>

If you prefer running it on a stock JVM, please have a look at the documentation in RunOnJDK.md. Note that in this mode many features and optimizations of GraalVM are not available. Due to those limitations, running on a stock JVM is not a supported feature - please use a GraalVM instead.

Documentation

Extensive documentation is available on graalvm.org: how to Run JavaScript and the more extensive JavaScript & Node.js Reference Manual. In addition there is documentation in the source code repository in the docs folder, for users and contributors of the engine.

For contributors, a guide how to build GraalVM JavaScript from source code can be found in Building.md.

Current Status

GraalVM JavaScript is compatible with the ECMAScript 2022 specification. New features, e.g. ECMAScript proposals scheduled to land in future editions, are added frequently and are accessible behind a flag. See the CHANGELOG.md for the proposals already adopted.

In addition, some popular extensions of other engines are supported, see JavaScriptCompatibility.md.

Node.js support

GraalVM JavaScript can execute Node.js applications. It provides high compatibility with existing npm packages, with high likelyhood that your application will run out of the box. This includes npm packages with native implementations. Note that some npm modules will require to be re-compiled from source with GraalVM JavaScript if they ship with binaries that have been compiled for Node.js based on V8.

Similar to JavaScript itself, Node.js is a separately installable component of GraalVM (since 21.1). It can be installed using the GraalVM Updater:

$ $GRAALVM/bin/gu install nodejs
$ $GRAALVM/bin/node --version

Compatibility on Operating Systems

The core JavaScript engine is a Java application and is thus in principle compatible with every operating system that provides a compatible JVM, see RunOnJDK.md. We test and support GraalVM JavaScript currently in full extent on Linux AMD64, Linux AArch64, MacOS, and Windows.

GraalVM JavaScript Reference Manual

A reference manual for GraalVM JavaScript is available on the GraalVM website.

Stay connected with the community

See graalvm.org/community on how to stay connected with the development community. The channel graaljs on graalvm.slack.com is a good way to get in touch with us.

Licence

GraalVM JavaScript is available under the following license:

graaljs's People

Contributors

addaleax avatar aduh95 avatar bnoordhuis avatar bridgear avatar cjihrig avatar danbev avatar eleinadani avatar iamstolis avatar indutny avatar isaacs avatar jasnell avatar joyeecheung avatar lpinca avatar mhdawson avatar mscdex avatar mylesborins avatar piscisaureus avatar refack avatar richardlau avatar ronag avatar rvagg avatar ry avatar sam-github avatar targos avatar tniessen avatar trevnorris avatar trott avatar vsemozhetbyt avatar wirthi avatar woess avatar

Watchers

 avatar

Forkers

web-logs2

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.