porffor 0.2.0-af678f0 → 0.2.0-b9abe0d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/launch.json +18 -0
- package/LICENSE +20 -20
- package/README.md +120 -104
- package/asur/README.md +2 -0
- package/asur/index.js +1262 -0
- package/byg/index.js +237 -0
- package/compiler/2c.js +1 -1
- package/compiler/{sections.js → assemble.js} +63 -15
- package/compiler/builtins/annexb_string.js +72 -0
- package/compiler/builtins/annexb_string.ts +19 -0
- package/compiler/builtins/array.ts +145 -0
- package/compiler/builtins/base64.ts +151 -0
- package/compiler/builtins/crypto.ts +120 -0
- package/compiler/builtins/date.ts +9 -0
- package/compiler/builtins/escape.ts +141 -0
- package/compiler/builtins/int.ts +147 -0
- package/compiler/builtins/number.ts +527 -0
- package/compiler/builtins/porffor.d.ts +42 -0
- package/compiler/builtins/string.ts +1055 -0
- package/compiler/builtins/tostring.ts +45 -0
- package/compiler/builtins.js +466 -273
- package/compiler/{codeGen.js → codegen.js} +875 -335
- package/compiler/embedding.js +22 -22
- package/compiler/encoding.js +108 -10
- package/compiler/generated_builtins.js +722 -0
- package/compiler/index.js +25 -34
- package/compiler/log.js +6 -3
- package/compiler/opt.js +50 -36
- package/compiler/parse.js +35 -27
- package/compiler/precompile.js +123 -0
- package/compiler/prefs.js +26 -0
- package/compiler/prototype.js +13 -28
- package/compiler/types.js +37 -0
- package/compiler/wasmSpec.js +27 -8
- package/compiler/wrap.js +46 -44
- package/package.json +9 -5
- package/porf +2 -0
- package/rhemyn/compile.js +5 -3
- package/rhemyn/parse.js +323 -320
- package/rhemyn/test/parse.js +58 -58
- package/runner/compare.js +34 -34
- package/runner/debug.js +122 -0
- package/runner/index.js +35 -9
- package/runner/profiler.js +102 -0
- package/runner/repl.js +40 -7
- package/runner/sizes.js +37 -37
- package/test262_changes_from_1afe9b87d2_to_04-09.md +270 -0
- package/compiler/builtins/base64.js +0 -92
- package/filesize.cmd +0 -2
- package/runner/info.js +0 -89
- package/runner/profile.js +0 -46
- package/runner/results.json +0 -1
- package/runner/transform.js +0 -15
- package/tmp.c +0 -661
- package/util/enum.js +0 -20
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
3
|
+
// Hover to view descriptions of existing attributes.
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5
|
+
"version": "0.2.0",
|
6
|
+
"configurations": [
|
7
|
+
{
|
8
|
+
"type": "node",
|
9
|
+
"request": "launch",
|
10
|
+
"name": "Launch Program",
|
11
|
+
"skipFiles": [
|
12
|
+
"<node_internals>/**"
|
13
|
+
],
|
14
|
+
"program": "${workspaceFolder}/runner/index.js",
|
15
|
+
"args": ["bench/bf.js", "-no-run"]
|
16
|
+
}
|
17
|
+
]
|
18
|
+
}
|
package/LICENSE
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2023 CanadaHonk
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 CanadaHonk
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
@@ -10,6 +10,65 @@ Porffor is a very unique JS engine, due many wildly different approaches. It is
|
|
10
10
|
|
11
11
|
Porffor is primarily built from scratch, the only thing that is not is the parser (using [Acorn](https://github.com/acornjs/acorn)). Binaryen/etc is not used, we make final wasm binaries ourself. You could imagine it as compiling a language which is a sub (some things unsupported) and super (new/custom apis) set of javascript. Not based on any particular spec version, focusing on function/working over spec compliance.
|
12
12
|
|
13
|
+
## Usage
|
14
|
+
Expect nothing to work! Only very limited JS is currently supported. See files in `bench` for examples.
|
15
|
+
|
16
|
+
### Setup
|
17
|
+
1. Clone this repo (`git clone https://github.com/CanadaHonk/porffor.git`)
|
18
|
+
2. `npm install` - for parser(s)
|
19
|
+
|
20
|
+
### Running a file
|
21
|
+
The repos comes with easy alias files for Unix and Windows, which you can use like so:
|
22
|
+
- Unix: `./porf path/to/script.js`
|
23
|
+
- Windows: `.\porf path/to/script.js`
|
24
|
+
|
25
|
+
Please note that further examples below will just use `./porf`, you need to use `.\porf` on Windows. You can also swap out `node` in the alias to use another runtime like Deno (`deno run -A`) or Bun (`bun ...`), or just use it yourself (eg `node runner/index.js ...`, `bun runner/index.js ...`). Node and Bun should work great, Deno support is WIP.
|
26
|
+
|
27
|
+
### Trying a REPL
|
28
|
+
**`./porf`**. Just run it with no script file argument.
|
29
|
+
|
30
|
+
### Compiling to native binaries
|
31
|
+
> [!WARNING]
|
32
|
+
> Compiling to native binaries uses [2c](#2c), Porffor's own Wasm -> C compiler, which is experimental.
|
33
|
+
|
34
|
+
**`./porf native path/to/script.js out(.exe)`**. You can specify the compiler with `-compiler=clang/zig/gcc`, and which opt level to use with `-cO=O3` (`Ofast` by default). Output binaries are also stripped by default.
|
35
|
+
|
36
|
+
### Compiling to C
|
37
|
+
> [!WARNING]
|
38
|
+
> Compiling to C uses [2c](#2c), Porffor's own Wasm -> C compiler, which is experimental.
|
39
|
+
|
40
|
+
**`./porf c path/to/script.js (out.c)`**. When not including an output file, it will be printed to stdout instead.
|
41
|
+
|
42
|
+
### Compiling to a Wasm binary
|
43
|
+
**`./porf compile path/to/script.js out.wasm`**. Currently it does not use an import standard like WASI, so it is mostly unusable.
|
44
|
+
|
45
|
+
### Options
|
46
|
+
- `-target=wasm|c|native` (default: `wasm`) to set target output (native compiles c output to binary, see args below)
|
47
|
+
- `-target=c|native` only:
|
48
|
+
- `-o=out.c|out.exe|out` to set file to output c or binary
|
49
|
+
- `-target=native` only:
|
50
|
+
- `-compiler=clang` to set compiler binary (path/name) to use to compile
|
51
|
+
- `-cO=O3` to set compiler opt argument
|
52
|
+
- `-parser=acorn|@babel/parser|meriyah|hermes-parser` (default: `acorn`) to set which parser to use
|
53
|
+
- `-parse-types` to enable parsing type annotations/typescript. if `-parser` is unset, changes default to `@babel/parser`. does not type check
|
54
|
+
- `-opt-types` to perform optimizations using type annotations as compiler hints. does not type check
|
55
|
+
- `-valtype=i32|i64|f64` (default: `f64`) to set valtype
|
56
|
+
- `-O0` to disable opt
|
57
|
+
- `-O1` (default) to enable basic opt (simplify insts, treeshake wasm imports)
|
58
|
+
- `-O2` to enable advanced opt (inlining). unstable
|
59
|
+
- `-O3` to enable advanceder opt (precompute const math). unstable
|
60
|
+
- `-no-run` to not run wasm output, just compile
|
61
|
+
- `-opt-log` to log some opts
|
62
|
+
- `-code-log` to log some codegen (you probably want `-funcs`)
|
63
|
+
- `-regex-log` to log some regex
|
64
|
+
- `-funcs` to log funcs
|
65
|
+
- `-ast-log` to log AST
|
66
|
+
- `-opt-funcs` to log funcs after opt
|
67
|
+
- `-sections` to log sections as hex
|
68
|
+
- `-opt-no-inline` to not inline any funcs
|
69
|
+
- `-tail-call` to enable tail calls (experimental + not widely implemented)
|
70
|
+
- `-compile-hints` to enable V8 compilation hints (experimental + doesn't seem to do much?)
|
71
|
+
|
13
72
|
## Limitations
|
14
73
|
- No full object support yet
|
15
74
|
- Little built-ins/prototype
|
@@ -18,10 +77,15 @@ Porffor is primarily built from scratch, the only thing that is not is the parse
|
|
18
77
|
- Literal callees only in calls (eg `print()` works, `a = print; a()` does not)
|
19
78
|
- No `eval()` etc (since it is AOT)
|
20
79
|
|
21
|
-
##
|
80
|
+
## Sub-engines
|
81
|
+
|
82
|
+
### Asur
|
83
|
+
Asur is Porffor's own Wasm engine; it is an intentionally simple interpreter written in JS. It is very WIP. See [its readme](asur/README.md) for more details.
|
84
|
+
|
85
|
+
### Rhemyn
|
22
86
|
Rhemyn is Porffor's own regex engine; it compiles literal regex to Wasm bytecode AOT (remind you of anything?). It is quite basic and WIP. See [its readme](rhemyn/README.md) for more details.
|
23
87
|
|
24
|
-
|
88
|
+
### 2c
|
25
89
|
2c is Porffor's own Wasm -> C compiler, using generated Wasm bytecode and internal info to generate specific and efficient/fast C code. Little boilerplate/preluded code or required external files, just for CLI binaries (not like wasm2c very much).
|
26
90
|
|
27
91
|
## Supported
|
@@ -86,20 +150,24 @@ These include some early (stage 1/0) and/or dead (last commit years ago) proposa
|
|
86
150
|
- `for...of` (arrays and strings)
|
87
151
|
- Array member setting (`arr[0] = 2`, `arr[0] += 2`, etc)
|
88
152
|
- Array constructor (`Array(5)`, `new Array(1, 2, 3)`)
|
153
|
+
- Labelled statements (`foo: while (...)`)
|
89
154
|
|
90
155
|
### Built-ins
|
91
156
|
|
92
157
|
- `NaN` and `Infinity` (f64 only)
|
93
158
|
- `isNaN()` and `isFinite()` (f64 only)
|
94
159
|
- Most of `Number` (`MAX_VALUE`, `MIN_VALUE`, `MAX_SAFE_INTEGER`, `MIN_SAFE_INTEGER`, `POSITIVE_INFINITY`, `NEGATIVE_INFINITY`, `EPSILON`, `NaN`, `isNaN`, `isFinite`, `isInteger`, `isSafeInteger`) (some f64 only)
|
95
|
-
- Some `Math` funcs (`
|
160
|
+
- Some `Math` funcs (`sqrt`, `abs`, `floor`, `sign`, `round`, `trunc`, `clz32`, `fround`, `random`) (f64 only)
|
96
161
|
- Basic `globalThis` support
|
97
162
|
- Basic `Boolean` and `Number`
|
98
163
|
- Basic `eval` for literals
|
99
164
|
- `Math.random()` using self-made xorshift128+ PRNG
|
100
165
|
- Some of `performance` (`now()`)
|
101
166
|
- Some of `Array.prototype` (`at`, `push`, `pop`, `shift`, `fill`)
|
167
|
+
- Some of `Array` (`of`, `isArray`)
|
102
168
|
- Some of `String.prototype` (`at`, `charAt`, `charCodeAt`)
|
169
|
+
- Some of `crypto` (`randomUUID`)
|
170
|
+
- `escape`
|
103
171
|
|
104
172
|
### Custom
|
105
173
|
|
@@ -108,48 +176,8 @@ These include some early (stage 1/0) and/or dead (last commit years ago) proposa
|
|
108
176
|
- Intrinsic functions (see below)
|
109
177
|
- Inlining wasm via ``asm`...``\` "macro"
|
110
178
|
|
111
|
-
## Todo
|
112
|
-
No particular order and no guarentees, just what could happen soon™
|
113
|
-
|
114
|
-
- Arrays
|
115
|
-
- More of `Array` prototype
|
116
|
-
- Arrays/strings inside arrays
|
117
|
-
- Destructuring
|
118
|
-
- Objects
|
119
|
-
- Basic object expressions (eg `{}`, `{ a: 0 }`)
|
120
|
-
- Wasm
|
121
|
-
- *Basic* Wasm engine (interpreter) in JS
|
122
|
-
- More math operators (`**`, etc)
|
123
|
-
- `do { ... } while (...)`
|
124
|
-
- Typed export inputs (array)
|
125
|
-
- Exceptions
|
126
|
-
- Rewrite to use actual strings (optional?)
|
127
|
-
- `try { } finally { }`
|
128
|
-
- Rethrowing inside catch
|
129
|
-
- Optimizations
|
130
|
-
- Rewrite local indexes per func for smallest local header and remove unused idxs
|
131
|
-
- Smarter inline selection (snapshots?)
|
132
|
-
- Remove const ifs (`if (true)`, etc)
|
133
|
-
- Memory alignment
|
134
|
-
- Runtime
|
135
|
-
- WASI target
|
136
|
-
- Run precompiled Wasm file if given
|
137
|
-
- Cool proposals
|
138
|
-
- [Optional Chaining Assignment](https://github.com/tc39/proposal-optional-chaining-assignment)
|
139
|
-
- [Modulus and Additional Integer Math](https://github.com/tc39/proposal-integer-and-modulus-math)
|
140
|
-
- [Array Equality](https://github.com/tc39/proposal-array-equality)
|
141
|
-
- [Declarations in Conditionals](https://github.com/tc39/proposal-Declarations-in-Conditionals)
|
142
|
-
- [Seeded Pseudo-Random Numbers](https://github.com/tc39/proposal-seeded-random)
|
143
|
-
- [`do` expressions](https://github.com/tc39/proposal-do-expressions)
|
144
|
-
- [String Trim Characters](https://github.com/Kingwl/proposal-string-trim-characters)
|
145
|
-
- Posts
|
146
|
-
- Inlining investigation
|
147
|
-
- Self hosted testing?
|
148
|
-
|
149
179
|
## Performance
|
150
|
-
*For the
|
151
|
-
|
152
|
-

|
180
|
+
*For the features it supports most of the time*, Porffor is *blazingly fast* compared to most interpreters and common engines running without JIT. For those with JIT, it is usually slower by default, but can catch up with compiler arguments and typed input, even more so when compiling to native binaries.
|
153
181
|
|
154
182
|
## Optimizations
|
155
183
|
Mostly for reducing size. I do not really care about compiler perf/time as long as it is reasonable. We do not use/rely on external opt tools (`wasm-opt`, etc), instead doing optimization inside the compiler itself creating even smaller code sizes than `wasm-opt` itself can produce as we have more internal information.
|
@@ -184,7 +212,7 @@ Porffor can run Test262 via some hacks/transforms which remove unsupported featu
|
|
184
212
|
## Codebase
|
185
213
|
- `compiler`: contains the compiler itself
|
186
214
|
- `builtins.js`: all built-ins of the engine (spec, custom. vars, funcs)
|
187
|
-
- `
|
215
|
+
- `codegen.js`: code (wasm) generation, ast -> wasm. The bulk of the effort
|
188
216
|
- `decompile.js`: basic wasm decompiler for debug info
|
189
217
|
- `embedding.js`: utils for embedding consts
|
190
218
|
- `encoding.js`: utils for encoding things as bytes as wasm expects
|
@@ -192,7 +220,7 @@ Porffor can run Test262 via some hacks/transforms which remove unsupported featu
|
|
192
220
|
- `index.js`: doing all the compiler steps, takes code in, wasm out
|
193
221
|
- `opt.js`: self-made wasm bytecode optimizer
|
194
222
|
- `parse.js`: parser simply wrapping acorn
|
195
|
-
- `
|
223
|
+
- `assemble.js`: assembles wasm ops and metadata into a wasm module/file
|
196
224
|
- `wasmSpec.js`: "enums"/info from wasm spec
|
197
225
|
- `wrap.js`: wrapper for compiler which instantiates and produces nice exports
|
198
226
|
|
@@ -214,67 +242,55 @@ Basically none right now (other than giving people headaches). Potential ideas:
|
|
214
242
|
- Compiling JS to native binaries. This is still very early!
|
215
243
|
- More in future probably?
|
216
244
|
|
217
|
-
##
|
218
|
-
|
219
|
-
|
220
|
-
### Setup
|
221
|
-
1. Clone this repo
|
222
|
-
2. `npm install` - for parser(s)
|
223
|
-
|
224
|
-
### Running a file
|
225
|
-
The repos comes with easy alias files for Unix and Windows, which you can use like so:
|
226
|
-
- Unix: `./porf path/to/script.js`
|
227
|
-
- Windows: `.\porf path/to/script.js`
|
228
|
-
|
229
|
-
Please note that further examples below will just use `./porf`, you need to use `.\porf` on Windows. You can also swap out `node` in the alias to use another runtime like Deno (`deno run -A`) or Bun (`bun ...`), or just use it yourself (eg `node runner/index.js ...`, `bun runner/index.js ...`). Node and Bun should work great, Deno support is WIP.
|
230
|
-
|
231
|
-
### Trying a REPL
|
232
|
-
**`./porf`**. Just run it with no script file argument.
|
233
|
-
|
234
|
-
### Compiling to native binaries
|
235
|
-
> [!WARNING]
|
236
|
-
> Compiling to native binaries uses [2c](#2c), Porffor's own Wasm->C compiler, which is experimental.
|
237
|
-
|
238
|
-
**`./porf native path/to/script.js out(.exe)`**. You can specify the compiler with `-compiler=clang/zig/gcc`, and which opt level to use with `-cO=O3` (`Ofast` by default). Output binaries are also stripped by default.
|
239
|
-
|
240
|
-
### Compiling to C
|
241
|
-
> [!WARNING]
|
242
|
-
> Compiling to C uses [2c](#2c), Porffor's own Wasm->C compiler, which is experimental.
|
243
|
-
|
244
|
-
**`./porf c path/to/script.js (out.c)`**. When not including an output file, it will be printed to stdout instead.
|
245
|
-
|
246
|
-
### Compiling to a Wasm binary
|
247
|
-
**`./porf compile path/to/script.js out.wasm`**. Currently it does not use an import standard like WASI, so it is mostly unusable.
|
245
|
+
## Todo
|
246
|
+
No particular order and no guarentees, just what could happen soon™
|
248
247
|
|
249
|
-
|
250
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
-
|
254
|
-
-
|
255
|
-
|
256
|
-
-
|
257
|
-
-
|
258
|
-
-
|
259
|
-
-
|
260
|
-
-
|
261
|
-
-
|
262
|
-
-
|
263
|
-
-
|
264
|
-
-
|
265
|
-
-
|
266
|
-
-
|
267
|
-
-
|
268
|
-
-
|
269
|
-
-
|
270
|
-
-
|
271
|
-
-
|
272
|
-
-
|
273
|
-
-
|
274
|
-
-
|
248
|
+
- Arrays
|
249
|
+
- More of `Array` prototype
|
250
|
+
- Arrays/strings inside arrays
|
251
|
+
- Destructuring
|
252
|
+
- Objects
|
253
|
+
- Basic object expressions (eg `{}`, `{ a: 0 }`)
|
254
|
+
- Asur
|
255
|
+
- Support memory
|
256
|
+
- Support exceptions
|
257
|
+
- More math operators (`**`, etc)
|
258
|
+
- Typed export inputs (array)
|
259
|
+
- Exceptions
|
260
|
+
- Rewrite to use actual strings (optional?)
|
261
|
+
- `try { } finally { }`
|
262
|
+
- Rethrowing inside catch
|
263
|
+
- Optimizations
|
264
|
+
- Rewrite local indexes per func for smallest local header and remove unused idxs
|
265
|
+
- Smarter inline selection (snapshots?)
|
266
|
+
- Remove const ifs (`if (true)`, etc)
|
267
|
+
- Memory alignment
|
268
|
+
- Add general pref for always using "fast" (non-short circuiting) or/and
|
269
|
+
- Runtime
|
270
|
+
- WASI target
|
271
|
+
- Run precompiled Wasm file if given
|
272
|
+
- Docs
|
273
|
+
- Update codebase readme section
|
274
|
+
- REPL
|
275
|
+
- Basic polyfill of `node:repl` for non-Node runtimes to work
|
276
|
+
- Cool proposals
|
277
|
+
- [Optional Chaining Assignment](https://github.com/tc39/proposal-optional-chaining-assignment)
|
278
|
+
- [Modulus and Additional Integer Math](https://github.com/tc39/proposal-integer-and-modulus-math)
|
279
|
+
- [Array Equality](https://github.com/tc39/proposal-array-equality)
|
280
|
+
- [Declarations in Conditionals](https://github.com/tc39/proposal-Declarations-in-Conditionals)
|
281
|
+
- [Seeded Pseudo-Random Numbers](https://github.com/tc39/proposal-seeded-random)
|
282
|
+
- [`do` expressions](https://github.com/tc39/proposal-do-expressions)
|
283
|
+
- [String Trim Characters](https://github.com/Kingwl/proposal-string-trim-characters)
|
284
|
+
- Posts
|
285
|
+
- Inlining investigation
|
286
|
+
- JS -> Native
|
287
|
+
- Precompiled TS built-ins
|
288
|
+
- Asur
|
289
|
+
- `escape()` optimization
|
290
|
+
- Self hosted testing?
|
275
291
|
|
276
292
|
## VSCode extension
|
277
|
-
There is a vscode extension in `
|
293
|
+
There is a vscode extension in `vscode-ext` which tweaks JS syntax highlighting to be nicer with porffor features (eg highlighting wasm inside of inline asm).
|
278
294
|
|
279
295
|
## Isn't this the same as AssemblyScript/other Wasm langs?
|
280
296
|
No. they are not alike at all internally and have very different goals/ideals:
|
package/asur/README.md
ADDED