Commit graph

239 commits

Author SHA1 Message Date
Remko Tronçon
30cf1a9231 README: Add console 2022-05-05 22:23:27 +02:00
Remko Tronçon
c5bb102eed build: Add debug info to build 2022-05-05 22:20:46 +02:00
Remko Tronçon
f252014644 Documentation 2022-05-05 21:32:00 +02:00
Remko Tronçon
c8b976b99c github: Add NPM package script to build action 2022-05-05 21:16:24 +02:00
Remko Tronçon
d7b80a49f0 Documentation 2022-05-05 21:15:35 +02:00
Remko Tronçon
77de4c4bac v0.4.0 2022-05-05 20:56:22 +02:00
Remko Tronçon
8fca5e5a02 github: Add release publisher 2022-05-05 20:56:08 +02:00
Remko Tronçon
f1160105cd Simplify onEmit API 2022-05-05 20:52:18 +02:00
Remko Tronçon
c583565528 build: Fix lint error 2022-05-05 20:45:58 +02:00
Remko Tronçon
5c0e3186d9 build: Remove incremental TS build in package build 2022-05-05 20:29:50 +02:00
Remko Tronçon
5c99dbc176 Fix build 2022-05-05 20:28:10 +02:00
Remko Tronçon
d8a8494387 v0.3.0 2022-05-05 20:20:40 +02:00
Remko Tronçon
a6d71029dc Support calling JS from Forth
Initial attempt at an API.

Resolves: #13
2022-05-05 20:19:39 +02:00
Remko Tronçon
674dce6514 Detect stack underflow after interpreting 2022-05-03 21:52:27 +02:00
Remko Tronçon
85efb6262e Improve sieve-raw-wasm 2022-05-03 21:38:07 +02:00
Remko Tronçon
64357b336f Name WAForth module 2022-05-03 21:37:58 +02:00
Remko Tronçon
caa976597d build: Update makefile 2022-05-01 22:58:02 +02:00
Remko Tronçon
0b1c7d2a24 benchmarks: Add C and JS version 2022-05-01 22:52:49 +02:00
Remko Tronçon
63841b65ab sieve-vanilla->sieve-raw-wasm 2022-05-01 20:34:38 +02:00
Remko Tronçon
9e0705c9cd Cleanup 2022-05-01 17:47:08 +02:00
Remko Tronçon
fffd982121 Remove sieve_direct 2022-05-01 17:09:14 +02:00
Remko Tronçon
f5df37a12f Remove obsolete environment queries 2022-05-01 16:58:33 +02:00
Remko Tronçon
ed469cbef4 <#, #>, #, #S, SIGN, HOLD 2022-05-01 16:56:20 +02:00
Remko Tronçon
ba5bff8a99 ENVIRONMENT? 2022-05-01 11:37:35 +02:00
Remko Tronçon
bed0d392c8 Refactor string comparison 2022-05-01 10:45:53 +02:00
Remko Tronçon
38ed36b337 Cleanup 2022-05-01 09:40:17 +02:00
Remko Tronçon
5d687e8253 >NUMBER 2022-04-30 23:25:23 +02:00
Remko Tronçon
504ae3e93e Fix FM/MOD + Implement SM/REM, UM/MOD. 2022-04-30 23:25:23 +02:00
Remko Tronçon
9eab504ad6 Update README.md 2022-04-30 23:25:23 +02:00
Remko Tronçon
c798ad8826 compiler: Repace get+set of TOS with tee 2022-04-30 12:46:42 +02:00
Remko Tronçon
fdda5b5009 do/loop: Use diff as index
This avoids an extra local per loop, avoids a branch
in +LOOP, and fixes handling of large unsigned integers as loop indices.
2022-04-30 12:46:26 +02:00
Remko Tronçon
a07772536c tests: Enable parts of test suite 2022-04-26 22:46:54 +02:00
Remko Tronçon
3d9b10c860 tests: Enable BASE test 2022-04-26 22:46:54 +02:00
Remko Tronçon
4d6c3cb34d compiler: Fix behavior of I & J to be compliant with ANS.
Keep loop indexes on the return stack for behavior of I and J.
2022-04-26 22:46:54 +02:00
Remko Tronçon
175bf67767 compiler: do: replace set+get by tee 2022-04-26 20:48:41 +02:00
Remko Tronçon
d6e8406c11 Remove unused predefined words from predefined list 2022-04-26 09:08:05 +02:00
Remko Tronçon
9e6a3ec87b github: Bump wabt to 1.0.27 2022-04-25 21:29:23 +02:00
Remko Tronçon
eeb6bf9587 Fix wabt 1.0.27 compatibility 2022-04-25 21:29:23 +02:00
Remko Tronçon
e2dedf224a remove whitespace 2022-04-24 20:42:45 +02:00
Remko Tronçon
f17e5dd820 github: fix build 2022-04-24 20:14:33 +02:00
Remko Tronçon
3034869230 compiler: compile push & pop inline (infrastructure) 2022-04-24 12:23:42 +02:00
Remko Tronçon
257d731b96 compiler: fix bad local index offset 2022-04-24 12:22:16 +02:00
Remko Tronçon
23b41a2c7f build: make index file valid html
This avoids the need of a content type in Chrome.
2022-04-23 23:20:52 +02:00
Remko Tronçon
b9bcce1026 build: return content-type in static server
This makes sure the index works on Chrome.
2022-04-23 23:18:52 +02:00
Remko Tronçon
610006c63e remove tos import in compiled words
This was there in case we wanted to use mutable globals for the TOS.
Since we now use a local TOS, this is no longer useful.
2022-04-23 23:13:17 +02:00
Remko Tronçon
5023ea7b2f thread tos as local through all words
This gives a 20% execution time improvement.
2022-04-23 22:45:55 +02:00
Remko Tronçon
d78f6ff81f fix hexdump output 2022-04-23 12:09:28 +02:00
Remko Tronçon
0befe565ab rename module 2022-04-23 11:10:44 +02:00
Remko Tronçon
da3ad27c43 Revert "make stack grow downward"
Reduces binary, but decreases performance, and only makes things a little bit simpler.
2022-04-22 13:57:48 +02:00
Remko Tronçon
41c6aa5d6f make stack grow downward 2022-04-22 12:15:02 +02:00