Commit Graph

34 Commits

Author SHA1 Message Date
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
f3aa762ccb Rebuild examples 2019-03-01 00:09:06 +01:00
6a1ffb8e2f Update example binary sizes (#501) 2019-02-22 15:06:34 +01:00
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
20f4092eb2 Update Binaryen and other dependencies; Update dist files 2019-01-09 13:02:47 +01:00
4f95dce6e2 Do not emit debug info by default
This basically flips the --noDebug flag to become a --debug flag, so some optimizations, like inlining, aren't skipped by default, which might be unexpected.
2018-11-09 12:28:10 +01:00
2bdc2a72f1 Use stack IR when emitting text format (#312) 2018-11-08 08:04:24 +01:00
f7c734789e Update Binaryen to latest; Various fixes 2018-10-11 08:49:08 +02:00
26e46f6f86 Reintroduce builtin decorator so these can appear anywhere in stdlib again
Avoids wrapping an undocumented function within 'memory.size' for example.
2018-07-19 02:10:04 +02:00
9c16363796 Initial external decorator for annotating explicit import names; Use file name as default module name in imports; Emit empty memory if there are no static segments; Update TLSF and examples accordingly 2018-06-28 01:44:32 +02:00
27e61f8f67 Remove noMemory option; Omit 'start' if 'main' is present; Unwrap more unnecessary blocks 2018-06-27 19:03:39 +02:00
e049e72171 Fix a few issues with TSD generation; Update Binaryen 2018-05-21 10:31:00 +02:00
06f99406be Experimenting with inline-assembler-ish explicit builtins
Starting with explicit loads and stores as part of the respective type namespaces. Might become handy for use with portable code, because these can be polyfilled, while load<T> and store<T> can't.
2018-04-27 00:08:41 +02:00
ab08269276 Clarify the use of RGBA vs ABGR in the game-of-life example 2018-04-25 22:39:51 +02:00
391db28fe2 Always try to eliminate branches if tree-shaking is enabled 2018-04-24 23:11:11 +02:00
2ff1bb745a Fix some diagnostic issues when skipping invalid statements, see #80; Make game-of-life example somewhat interactive; Update dist files 2018-04-22 23:13:02 +02:00
bde13b12cf Some final tweaks to the examples
I promise
2018-04-20 18:56:51 +02:00
b53b3e08ec Add some smoothing to mandelbrot example 2018-04-20 05:06:05 +02:00
9cd3304e13 Make the game-of-life example a bit more interesting
This moves the entire image buffer to WASM that now also applies some fading.
2018-04-19 23:16:03 +02:00
18ef7c1932 Also link to the source from the demos 2018-04-19 18:53:01 +02:00
7d3fb86691 Add demo links to README 2018-04-19 17:49:44 +02:00
485c3fd9b2 Add mandelbrot example; Update game-of-life example 2018-04-19 17:32:23 +02:00
5a2f834c0d Fix game-of-life example inconsistencies; Fix ternary expression issues in void contexts and variable statements; Simplify HEAP_BASE handling 2018-04-18 15:12:33 +02:00
89e8de5d82 Enable open-in-browser in the Game Of Life example (#69) 2018-04-07 19:01:10 +02:00
4633fdab96 Update binary expression inference, see #35; Update dependencies 2018-03-01 19:42:07 +01:00
77e49bbd95 Replace more .wast references with .wat 2018-02-19 19:16:16 +01:00
e50a23bf75 Rename wast to wat 2018-02-17 11:09:22 +01:00
4736227879 Update binaryen to latest nightly; Source map support 2018-02-02 03:07:54 +01:00
2fa7fc7885 Take advantage of smaller integer load and store ops 2018-01-23 15:44:25 +01:00
2888ba14ad PSON decoder example using namespaced imports 2017-12-30 05:11:58 +01:00
8d894d0827 Make sure constant locals are inlined, see #6 2017-12-28 15:17:35 +01:00
b69c07af45 Reference the wiki 2017-12-14 16:50:59 +01:00
6bea116b3e Integrate examples into tests 2017-12-14 12:30:58 +01:00
ce57820f59 Is it a strawberry, see boyanio/wasm-wheel#2 2017-12-13 00:11:45 +01:00