Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/tenjou/replica-next
- Owner: tenjou
- License: mit
- Created: 2018-08-22T15:19:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T20:33:37.000Z (over 4 years ago)
- Last Synced: 2024-04-25T04:22:27.304Z (9 months ago)
- Topics: compilation, compiler, cpp, javascript, js, native, transpilation, wasm, webassembly
- Language: JavaScript
- Homepage:
- Size: 285 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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)