General
StaticScript language should be compatibility with TypeScript as it possible but with additional features
- 90%+ of TS programs must be able to be compiled by
ssc (to executable)
- SS programs without additiona features from statiscript must be able to be compiled by
tsc (to js)
JS Types:
Statements:
Tooling:
Objects and classes
There will be two types of objects:
Static object
It's not possible to mutate (add/drop fields from this objects), object are structures that mapped directly to memory and methods are functions with pointer to structure (this)
Dynamic objects
Unoptimized objects that will be V8 objects
Feel free to add ideas by comments
Advanced features of StaticScript
Types:
To implement it, we need to use own fork of TypeScript (https://github.com/static-script/TypeScript) and implement base support inside Frontend part
Own standart library:
Implement standart library on StaticScrtipt
This issue will be updated when new ideas will come :)
General
StaticScript language should be compatibility with TypeScript as it possible but with additional features
ssc(to executable)tsc(to js)JS Types:
Statements:
Tooling:
Objects and classes
There will be two types of objects:
Static object
It's not possible to mutate (add/drop fields from this objects), object are structures that mapped directly to memory and methods are functions with pointer to structure (
this)Dynamic objects
Unoptimized objects that will be
V8objectsFeel free to add ideas by comments
Advanced features of StaticScript
Types:
To implement it, we need to use own fork of TypeScript (https://github.com/static-script/TypeScript) and implement base support inside Frontend part
Own standart library:
Implement standart library on StaticScrtipt
This issue will be updated when new ideas will come :)