6
6
[ ![ Dependencies Status] ( https://david-dm.org/basics/jsto.../status.svg )] ( https://david-dm.org/basics/jsto... )
7
7
[ ![ DevDependencies Status] ( https://david-dm.org/basics/jsto.../dev-status.svg )] ( https://david-dm.org/basics/jsto...?type=dev )
8
8
9
- # jsto...
9
+ # jsto ...
10
10
11
11
this libary is going to provide you a simple way of writing typed js code.
12
12
this code can run and tested directly with js.
13
13
but with types it can be transpiled to other languages, too.
14
14
15
- a type checker is in process, too. there will be a simple checking without type inference,
15
+ a type checker is in process, too. there will be a simple checking without type inference,
16
16
this can be archived with typescript, but not at runtime.
17
17
18
18
| environment | jsto... checker | typescript |
@@ -21,21 +21,23 @@ this can be archived with typescript, but not at runtime.
21
21
| build time | ✓ | ✓ |
22
22
| IDE time (the best time) | ✗ | ✓ |
23
23
24
- | typesafe | jsto... checker | typescript |
25
- | ---------- | :-------------: | :--------: |
26
- | functions | ✓ | ✓ |
27
- | arguments | ✓ | ✓ |
28
- | prototypes | ✓ | ✓ |
29
- | classes | ✗ | ✓ |
30
- | attributes | ✓ | ✓ |
31
- | methods | ✓ | ✓ |
32
- | variables | ✗ | ✓ |
24
+ | typesafe | jsto... checker | typescript |
25
+ | ----------- | :-------------: | :--------: |
26
+ | functions | ✓ | ✓ |
27
+ | arguments | ✓ | ✓ |
28
+ | prototypes | ✓ | ✓ |
29
+ | classes | ✗ | ✓ |
30
+ | attributes | ✓ | ✓ |
31
+ | methods | ✓ | ✓ |
32
+ | variables | ✗ | ✓ |
33
+ | arythmetics | ✓ | ✗ |
33
34
34
35
# features in process
35
36
36
37
- [x] generate JSTree out of js
37
38
- ESTree + type annotations
38
39
- [ ] index.d.ts file with generics for typescript
40
+ - [ ] type inference
39
41
- [ ] jstoGLSL transpiler great for performance
40
42
- [x] generate valid glsl code
41
43
- [ ] glsl polyfills
@@ -53,10 +55,11 @@ this can be archived with typescript, but not at runtime.
53
55
- [ ] typesafety
54
56
55
57
in future
58
+
56
59
- [ ] jstoWASM transpiler great for headless rendering
57
- - [ ] first iteration implement glsl behavior (vector and matrix)
58
- inspired by https://github.com/AssemblyScript/assemblyscript
59
- use decompiler to compare https://v8.dev/blog/wasm-decompile
60
+ - [ ] first iteration implement glsl behavior (vector and matrix)
61
+ inspired by < https://github.com/AssemblyScript/assemblyscript >
62
+ use decompiler to compare < https://v8.dev/blog/wasm-decompile >
60
63
- [ ] jstoWASM simulator
61
64
- [ ] what other languages do we need?
62
65
0 commit comments