Coder Social home page Coder Social logo

powr's Introduction

the powr project


Development is paused until 2023. 🥳

powr aims to be a javascript/typescript engine to power serverless functions over the web. the javascript code gets compiled to remove as much cold start interpreting would cause as possible.

the project currently doesn't support anything other than calling console.log with a string argument. if you want to test that, you can run the following:

$ git clone https://github.com/pwrjs/pwr --recursive
$ cd pwr/samples
$ cargo run --release c hello_world.ts
$ ./hello_world

I recommend adding --jobs [number of jobs] to the cargo run command to speed up compilation.

usage

section of the output of powr --help:

Usage:
	powr [OPTIONS] [FILE]

Flags:
	-h, --help : Show help

Commands:
	c, compile : Compile a TypeScript/JavaScript file

and powr compile --help:

Description:
	Compile a TypeScript/JavaScript file

Usage:
	powr compile [FILE] [OPTIONS]

Flags:
	-e, --emmit-llvm  : Emmit LLVM IR
	-d, --dry-run     : Only emits the LLVM IR
	-h, --help        : Show help

--emit--llvm leaves an .ll file that corresponds to the .ts file.

--dry-run outputs what would be emitted to the .ll file and exits.

license

currently, the project uses SSPL-1.0. this license will be changed when the project gets to a more usable state. because this license blocks lesser effort (for a lack of a better term!) contributions (and these are very desirable!), the license may become more permissive before the project is shippable.

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.