HNHacker News
TopNewBestAskShowJobs

canadahonk

40 karma · joined October 27, 2023

submissionscomments
canadahonk··on Porffor: A from-scratch experimental ahead-of-time JS engine
This type of test does work as expected. The "sync" means that it does not feature a full event loop (yet) so cannot easily support async I/O or some more "advanced" use cases.
canadahonk··on Porffor: A from-scratch experimental ahead-of-time JS engine
Yep! Also as it is technically more of an engine/runtime (sometimes) than "just" a compiler, folks in the JS space are more familiar with engine as a term :)
canadahonk··on Porffor: A from-scratch experimental ahead-of-time JS engine
Exactly. The versioning system is definitely unique and controversial, but I think it fits for a fast moving project like this, so I don't have to really consider versioning which could slow development. When it becomes more stable, I'll likely move to a more traditional semver scheme from 1.0.
canadahonk··on Porffor: A from-scratch experimental ahead-of-time JS engine
Hey, dev here, I agree that is an interesting application which Porffor could potentially help with! Happy to chat sometime :)
canadahonk··on Porffor: A from-scratch experimental ahead-of-time JS engine
Good comparison and thanks! A few minor clarifications: - Porffor isn't fully self-hosted yet but should be possible hopefully! It does partially compile itself for builtins (eg Array.prototype.filter, Math.sin, atob, ...) though. - As of late, Porffor does now support basic async/promise/await! Not very well yet though.
canadahonk··on Porffor: A from-scratch experimental ahead-of-time JS engine
For now, unless it is given a literal string (eg `eval('42')`) eval just won't work.
canadahonk··on Using TS type annotations for JavaScript engine optimization
Agreed, I have it behind a flag because of this, in the (far) future I could enable by default if I write a type checker built-in or something. Thank you!
canadahonk··on Using TS type annotations for JavaScript engine optimization
Unfortunately yes, optimizer at high levels is very unstable/aggressive at the moment. Currently working on refactoring things for perf generally instead of just an optimizer, but definitely will fix in the future!
canadahonk··on Shadow: New browser engine made almost entirely in JavaScript
CSS light-dark() function heh ;)
canadahonk··on Shadow: New browser engine made almost entirely in JavaScript
JS is a language I can cobble together something hacky in and I don't have to care about types or anything yet, just making something work. It's fun! :)
canadahonk··on Shadow: New browser engine made almost entirely in JavaScript
Zoom isn't taken into account so probably why it looks bad. The FPS is locked to your monitor's frame rate (or what your browser provides, LibreWolf might always send 60 to avoid fingerprinting).

As the post says, it's just for fun :)

canadahonk··on Shadow: New browser engine made almost entirely in JavaScript
TIL, looks neat!
canadahonk··on Shadow: New browser engine made almost entirely in JavaScript
It's there - Ladybird (https://ladybird.dev)
canadahonk··on Shadow: New browser engine made almost entirely in JavaScript
It is technically memory safe :^)
canadahonk··on Shadow: New browser engine made almost entirely in JavaScript
Nope! It uses Wasm (really WASI) builds of existing JS engines ;)