GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - basics/jsto...: transpile javascript code to other languages

BranchesTags
Open more actions menu

Latest commit

 

History

239 Commits
239 Commits

Folders and files

NameName
Last commit message
Last commit date
demo
demo
 
 
src
src
 
 
test
test
 
 
.appveyor.yml
.appveyor.yml
 
 
.babelrc
.babelrc
 
 
.branchlintrc
.branchlintrc
 
 
.commitlintrc.json
.commitlintrc.json
 
 
.editorconfig
.editorconfig
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.huskyrc
.huskyrc
 
 
.npmignore
.npmignore
 
 
.npmrc
.npmrc
 
 
.nvmrc
.nvmrc
 
 
.nycrc
.nycrc
 
 
.releaserc
.releaserc
 
 
.rolluprc
.rolluprc
 
 
.travis.yml
.travis.yml
 
 
AUTHORS
AUTHORS
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
config.code-workspace
config.code-workspace
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
renovate.json
renovate.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

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

  • 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

About

transpile javascript code to other languages

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

Generated from basics/blueprint-npm-module
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.