Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tenjou/replica-next

Both JavaScript static analyser and native compiler.
https://github.com/tenjou/replica-next

compilation compiler cpp javascript js native transpilation wasm webassembly

Last synced: 17 days ago
JSON representation

Both JavaScript static analyser and native compiler.

Awesome Lists containing this project

README

        

# Replica 0.1v
Replica is in early stages for being both JavaScript static analyser and native compiler. Any code that is not statically written (eval, dynamic code loading) is not supported and will net compilation errors. Currently code is compiled to C++ and piggybacks on C++ compiler work.

# Why
- Smaller executables and not reliant on WebView packages
- More granular control over memory and performance
- Ability to compile back to WASM and potentially better minifying & uglifying options when recompiling back to JavaScript.

# Usage
```
npm install
npm run dev
```
Open http://localhost:8090 and in console compiled code(located in `data/index.js`) will be outputed out. Runtime library (replica.cpp) is located in `libs/replica.cpp`.

# Next Milestone
- Support for missing basic features
- Texture loading & support
- Input support
- CLI tools
- Online sandbox

# License

[MIT License](LICENSE.md)