flatjs
flatjs copied to clipboard
A language for using flat memory conveniently from JavaScript
Here: https://github.com/sankho/FlatJS. Appears to be mostly inactive, little activity in a year except for a README update, but the name confusion is regrettable. Candidates for other names: - c.js, c++.js,...
The current system with raw-memory arrays will not last. Having the length available is highly desirable and will be necessary to support multi-dimensional arrays. Technically it's not hard, just a...
Inside a method body, `this` refers to the class object. A SELF method call currently replaces SELF by the name of the class but it could instead use `this`. That...
The flatjs code for the ray tracer is significantly slower in Chrome (on one core) than the plain JS code. This is remarkable - and it is the reason I'm...
The poster child for this is a `Lock` structure with methods called `acquire()` and `release()`, to be reused inside other objects without needing a separate heap allocation. In general this...
Use case is that sometimes we want to use native syntax rather than the clunky type.Array.at and type.Array.setAt syntax, this might also yield a performance boost. Currently we can do...
Suppose x and y are simd fields and v is some simd datum. Then this does not work: ``` SELF.x = SELF.y = v ``` The reason is that this...
At the moment the syntax follows C. We should at least allow `$`, but ideally all unicode letters that are allowed by ECMAScript. This will change the hash algorithm quite...
Overriding virtuals should have the same number of arguments as the methods they are overriding (including any rest argument). This requires some parsing.