@js-basics/jsto...
TypeScript icon, indicating that this package has built-in type declarations

0.8.1 • Public • Published

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.

environment jsto... checker typescript
run time
build time
IDE time (the best time)
typesafe jsto... checker typescript
functions
arguments
classes
methods
variables
arithmetics

features in process

  • [x] generate JSTree out of js

    • ESTree + type annotations
  • [x] type inference

  • [ ] jstoGLSL transpiler great for performance

    • [x] generate valid glsl code
    • [ ] js transformations to glsl
      • [x] modulo as arithmetic operator
      • [x] pow as arithmetic operator
      • [x] variable index expression for vectors
      • [ ] gentype for function outline
      • [x] functional structs
      • [ ] destruct
      • [ ] symbols and enums
  • [x] jstoGLSL simulator great for testing

    • [x] painting (slowly) to image buffer
    • [x] vector arithmetic (component wise) operator support
    • [x] 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

Readme

Keywords

Package Sidebar

Install

npm i @js-basics/jsto...

Weekly Downloads

5

Version

0.8.1

License

MIT

Unpacked Size

897 kB

Total Files

40

Last publish

Collaborators

  • sgerbeth
  • mrtelanie