porffor 0.18.5 → 0.18.6

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
@@ -254,25 +254,18 @@ Basically none right now (other than giving people headaches). Potential ideas:
254
254
  ## Todo
255
255
  No particular order and no guarentees, just what could happen soon™
256
256
 
257
- - Arrays
258
- - Destructuring
259
257
  - Objects
260
258
  - Basic object expressions (eg `{}`, `{ a: 0 }`)
261
259
  - Asur
262
260
  - Support memory
263
261
  - Support exceptions
264
- - More math operators (`**`, etc)
265
- - Typed export inputs (array)
266
262
  - Exceptions
267
- - Rewrite to use actual strings (optional?)
268
263
  - `try { } finally { }`
269
264
  - Rethrowing inside catch
270
265
  - Optimizations
271
266
  - Rewrite local indexes per func for smallest local header and remove unused idxs
272
267
  - Smarter inline selection (snapshots?)
273
- - Remove const ifs (`if (true)`, etc)
274
268
  - Memory alignment
275
- - Add general pref for always using "fast" (non-short circuiting) or/and
276
269
  - Runtime
277
270
  - WASI target
278
271
  - Run precompiled Wasm file if given
@@ -292,6 +285,7 @@ No particular order and no guarentees, just what could happen soon™
292
285
  - Precompiled TS built-ins
293
286
  - Asur
294
287
  - `escape()` optimization
288
+ - PGO
295
289
  - Self hosted testing?
296
290
 
297
291
  ## VSCode extension
@@ -46,6 +46,8 @@ export const __Array_prototype_slice = (_this: any[], start: number, end: number
46
46
  return out;
47
47
  };
48
48
 
49
+ // todo: splice
50
+
49
51
  // @porf-typed-array
50
52
  export const __Array_prototype_fill = (_this: any[], value: any, start: any, end: any) => {
51
53
  const len: i32 = _this.length;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.18.5+76c57fd23",
4
+ "version": "0.18.6+dc00fb656",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runner/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.18.5+76c57fd23';
3
+ globalThis.version = '0.18.6+dc00fb656';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {