porffor 0.58.1 → 0.58.2

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/README.md CHANGED
@@ -5,8 +5,8 @@ A from-scratch experimental **AOT** optimizing JS/TS -> Wasm/C engine/compiler/r
5
5
 
6
6
  ## Design
7
7
  Porffor is a very unique JS engine, due many wildly different approaches. It is seriously limited, but what it can do, it does pretty well. Key differences:
8
- - 100% AOT compiled (no JIT)
9
- - No constant runtime/preluded code
8
+ - 100% AOT compiled (no JIT or interpreter)
9
+ - Zero constant runtime/preluded code
10
10
  - Least Wasm imports possible (only I/O)
11
11
 
12
12
  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.
@@ -50,11 +50,11 @@ Expect nothing to work! Only very limited JS is currently supported. See files i
50
50
 
51
51
  **`porf debug path/to/script.js`**
52
52
 
53
- ### Debugging the compiled Wasm of a JS file
53
+ <!-- ### Debugging the compiled Wasm of a JS file
54
54
  > [!WARNING]
55
55
  > Very experimental WIP feature!
56
56
 
57
- **`porf dissect path/to/script.js`**
57
+ **`porf dissect path/to/script.js`** -->
58
58
 
59
59
 
60
60
  ### Options
@@ -73,8 +73,8 @@ Expect nothing to work! Only very limited JS is currently supported. See files i
73
73
 
74
74
  ## Sub-engines
75
75
 
76
- ### Asur
77
- 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.
76
+ <!-- ### Asur
77
+ 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. -->
78
78
 
79
79
  ### 2c
80
80
  2c is Porffor's own Wasm -> C compiler, using generated Wasm bytecode and internal info to generate specific and efficient C code. Little boilerplate/preluded code or required external files, just for CLI binaries (not like wasm2c very much).
package/jsr.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honk/porffor",
3
- "version": "0.58.1",
3
+ "version": "0.58.2",
4
4
  "exports": "./compiler/wrap.js",
5
5
  "publish": {
6
6
  "exclude": [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "An ahead-of-time JavaScript compiler",
4
- "version": "0.58.1",
4
+ "version": "0.58.2",
5
5
  "author": "Oliver Medhurst <honk@goose.icu>",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runtime/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.58.1';
3
+ globalThis.version = '0.58.2';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {
@@ -27,7 +27,7 @@ if (process.argv.includes('--help') || process.argv.includes('-h')) {
27
27
  'Analyze': [],
28
28
  profile: [ 93, 'foo.js', 'View detailed func-by-func performance' ],
29
29
  debug: [ 33, 'foo.js', 'Debug the source of a file' ],
30
- dissect: [ 33, 'foo.js', 'Debug the compiled Wasm of a file' ],
30
+ // dissect: [ 33, 'foo.js', 'Debug the compiled Wasm of a file' ],
31
31
  })) {
32
32
  if (color == null) {
33
33
  // header
@@ -113,9 +113,9 @@ if (['precompile', 'run', 'wasm', 'native', 'c', 'profile', 'debug', 'dissect'].
113
113
  process.argv.push(`--target=${file}`);
114
114
  }
115
115
 
116
- if (file === 'dissect') {
117
- process.argv.push('--asur', '--wasm-debug');
118
- }
116
+ // if (file === 'dissect') {
117
+ // process.argv.push('--asur', '--wasm-debug');
118
+ // }
119
119
 
120
120
  file = process.argv.slice(2).find(x => x[0] !== '-');
121
121
 
package/asur/README.md DELETED
@@ -1,2 +0,0 @@
1
- # asur
2
- a basic experimental wip wasm engine/interpreter in js. wasm engine for porffor. not serious/intended for (real) use