Giter Site home page Giter Site logo

yode's Introduction

Yode

Yode is a fork of Node.js that replaces its event loop with GUI message loop, it is designed to be used together with the Yue library.

Changes to Node.js

  • The event loop is replaced with native GUI message loops:
    • On Linux it is GTK+ event loop;
    • On macOS it is Cocoa run loop;
    • On Windows it is Win32 message loop.
  • When the executable is appended with ASAR archive, Yode will try to start with with app inside the archive.
  • The process will not automatically quit when there is no work, you have to call the native APIs to quit the GUI message loop.
  • The process will quit when BOTH the GUI message loop and Node.js event loop have quit. So if there are still Node.js requests pending, the process will wait until all of them have finished.
  • There is a new process.versions.yode property added.
  • The process.stdin is not supposed to work.
  • On Windows the executable uses WINDOWS subsystem instead of CONSOLE subsystem, so unlike Node.js there is no console attached and REPL won't work.

Usage

The prebuilt binaries can be found in the Releases page, modules installed by npm can be used directly in Yode.

To package your Node.js project with Yode, you should use yackage.

Note that it is strong recommended to install the official Node.js with the same version of Yode, otherwise native modules installed by npm may not work correctly in Yode.

Build

$ node ./build.js [x64|ia32]

License

The MIT license.

yode's People

Contributors

zcbenz avatar

Watchers

James Cloos avatar  avatar

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.