0.8.1 • Published 6 months ago

@js-basics/jsto... v0.8.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 months ago

GitHub package version npm version license

OSX/Linux Build Status Dependencies Status DevDependencies Status

jsto

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.

environmentjsto... checkertypescript
run time
build time
IDE time (the best time)
typesafejsto... checkertypescript
functions
arguments
classes
methods
variables
arithmetics

features in process

  • 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

JSTree extended from ESTree

typeAnnotation for Literals and Identifiers

returnType for Functions

Demos

first glsl simulation in js

0.8.1

6 months ago

0.7.1

2 years ago

0.7.0

2 years ago

0.8.0

2 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.9

3 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.6

3 years ago

0.5.5

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.9

3 years ago

0.4.8

3 years ago

0.4.7

3 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.3.9

4 years ago

0.4.0

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.8

4 years ago

0.2.3

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago