this libary is going to provide you a simple way of writing typed js code. this code can run and tested directly with js. but with types it can be transpiled to other languages, too.
type inference is supported by type checker.
environment | jsto... checker | typescript |
---|---|---|
run time | ✓ | ✗ |
build time | ✓ | ✓ |
IDE time (the best time) | ✗ | ✓ |
typesafe | jsto... checker | typescript |
---|---|---|
functions | ✓ | ✓ |
arguments | ✓ | ✓ |
classes | ✓ | ✓ |
methods | ✓ | ✓ |
variables | ✗ | ✓ |
arithmetics | ✓ | ✗ |
-
generate JSTree out of js
- ESTree type annotations
-
type inference
-
jstoGLSL transpiler great for performance
- generate valid glsl code
- js transformations to glsl
- modulo as arithmetic operator
- pow as arithmetic operator
- variable index expression for vectors
- gentype for function outline
- functional structs
- destruct
- symbols and enums
-
jstoGLSL simulator great for testing
- painting (slowly) to image buffer
- vector arithmetic (component wise) operator support
- partly matrix algebraic operator support
- typesafety
in future
- jstoWorker
- transpile js code without overhead of types and arithmetics
typeAnnotation
for Literals and Identifiers
returnType
for Functions