640 Commits

Author SHA1 Message Date
Willem Wyndham
3ed76a97f0 CLI: Move OptionDescription to utils/options so types agree (#612) v0.6 2019-06-04 06:37:01 +02:00
Max Graey
5269a6b9c4 README layout (#605) 2019-05-27 14:37:52 +02:00
dcode
36040d5b53 Update dist files 2019-04-08 08:23:18 +02:00
Daniel Wirtz
5b58b9aa8d
Update Binaryen to latest (#571) 2019-04-08 08:18:21 +02:00
Max Graey
abf3de9076 Fix implicit string to bool conversion (#567) 2019-03-31 20:00:54 +02:00
Daniel Wirtz
85de20c4fc
Add WASI bindings (#562) 2019-03-31 19:59:39 +02:00
dcode
b2adf8b1e2 Update dependencies and rebuild dist files 2019-03-27 15:50:05 +01:00
Daniel Wirtz
527d73ece8
Use fully qualified names in generic types (#544)
* Also fixes infinite parser loops
* Also implements command line option forwarding to node.js
2019-03-25 21:58:19 +01:00
Max Graey
74ce9bf386 Fix unreachable insertion when returning none (#557) 2019-03-24 10:18:05 +01:00
Max Graey
f9a8d2f1db Use lazy initializations for decorators and type parameters in parser (#554) 2019-03-22 12:20:19 +01:00
Daniel Wirtz
858cca5a38
Fix arrow function body parsing precedence (#546) 2019-03-18 17:11:02 +01:00
Daniel Wirtz
fd99589527
Fix enum initialization (#545) 2019-03-18 04:54:44 +01:00
Max Graey
6de4847356 Fix postinstall script (#538) 2019-03-11 20:00:18 +01:00
jtenner
d411415060 Implement TypedArray#reverse (#532) 2019-03-08 18:48:06 +01:00
dcode
cdec865bef Update Binaryen to latest nightly 2019-03-08 16:19:46 +01:00
dcode
c835b5fb40 Update dependencies and rebuild dist files 2019-03-08 14:28:45 +01:00
Daniel Wirtz
252b843c4b
General cleanup (#525)
* Cleans up and trims the overly large builtins file by ~1600 lines
* Properly propagate inline assembler-like argument types
* Use https in examples
* Reformat README
2019-03-08 14:24:48 +01:00
Max Graey
5f547131ab Update nbody example for Rust (#528) 2019-03-06 21:27:54 +01:00
Max Graey
f841f0fe1f Add portable sincos polyfill (#529) 2019-03-06 20:20:18 +01:00
jtenner
783dd32c2e Implement TypedArray#forEach (#530) 2019-03-06 19:07:10 +01:00
Max Graey
208dc2f1de Implement Mathf.sin/cos/tan (#491) 2019-03-05 19:36:22 +01:00
Daniel Wirtz
8e5b9c734b
Add atomic definitions (#524) 2019-03-02 10:14:09 +01:00
dcode
f3aa762ccb Rebuild examples 2019-03-01 00:09:06 +01:00
Daniel Wirtz
4e1bba3a24
Use Binaryen's function signature naming scheme (#522) 2019-03-01 00:01:23 +01:00
dcode
7184db6dde Update Binaryen to latest and regenerate dist files 2019-02-28 18:26:04 +01:00
Daniel Wirtz
1ae7d03e8c
Enable source maps out of the box (#519) 2019-02-28 17:37:30 +01:00
Daniel Wirtz
e1f1a3b49c
Implement v128 instructions (#508) 2019-02-28 17:36:22 +01:00
Max Graey
cdf40578b6 Refactor slices for better compliance (#430) 2019-02-27 21:51:07 +01:00
Max Graey
aad263e670 Add isArrayLike builtin (#453) 2019-02-27 21:47:52 +01:00
Daniel Wirtz
e8b0767143
Infer function expressions in matching contexts (#514)
* legalizes omitting types on function expressions within function type contexts
* legalizes omitting any number of arguments
2019-02-27 21:45:36 +01:00
dcode
2945af6557 Don't reset nested unchecked contexts, fixes #515 2019-02-27 17:10:20 +01:00
Max Graey
ed97672a8c Use faster clamping for Uint8ClampedArray (#422) 2019-02-22 15:26:30 +01:00
Max Graey
6a1ffb8e2f Update example binary sizes (#501) 2019-02-22 15:06:34 +01:00
Max Graey
65c799c925 Speedup some compiler routines (#441) 2019-02-22 14:03:33 +01:00
dcode
cc5522d6cc Legalize external decorator for generic functions 2019-02-22 08:25:41 +01:00
dcode
06ee43e6ad Fix isFunction/isNullable typings 2019-02-22 08:25:00 +01:00
Daniel Wirtz
f318d68383
Add isFunction and isNullable builtins (#504) 2019-02-22 01:11:05 +01:00
Daniel Wirtz
3b5b96f496
Fix declaration mismatch in generated constructors (#505) 2019-02-22 00:50:29 +01:00
dcode
4be78147e6 Update dependencies and dist files 2019-02-21 23:04:41 +01:00
Aaron Turner
11ea78bc13 Add a test for wildcard exports (#499) 2019-02-21 11:38:56 +01:00
dcode
c2a0a34b4c Add new quote to README 2019-02-21 07:50:15 +01:00
dcode
c0738ed6b6 Correct asc output stream typings, fixes #485 2019-02-21 06:16:29 +01:00
dcode
34d86a0d6a Replace more workarounds with actual lazy compilation in stdlib 2019-02-21 05:42:33 +01:00
Max Graey
206e4c4565 Improve n-body bench env (#457) 2019-02-21 02:14:35 +01:00
dcode
8d2194f045 Require exact type in instanceof basicType, fixes #493 2019-02-21 02:09:06 +01:00
Max Graey
6b495f71d0 Ensure Math.clz32/imul compatibility with JS (#474) 2019-02-21 00:32:58 +01:00
Max Graey
0041572052 Reuse respective opposite overload in std/string comparisions (#479) 2019-02-21 00:30:05 +01:00
Max Graey
2c365ada5b Improve operator overload typings (#480) 2019-02-21 00:23:46 +01:00
Nidin Vinayakan
951b6f9f45 Add shared memory support to compiler (#494) 2019-02-21 00:22:25 +01:00
Daniel Wirtz
0c64f21250
Rework resolver (#489)
* Rework IR and resolver to use nested lookup tables
* Integrate types into IR
* Make components prefer IR, slimmed down AST
* Implement `export *`
* Add `@lazy` annotation and remove `--noTreeShaking`
* Add `@start` annotation and remove magic `main`
* Related refactoring, cleanup and docs
2019-02-21 00:11:22 +01:00