Replies: 4 comments 11 replies
|
Cool! Note that you can use tjs bundle rather than invoking esbuild by hand. As for node_modules, I have no intention to add support for that. The runtime supports ES imports and import maps. A bundler can take care of the rest, I don't want to add that kind of complexity. |
|
hi again! There are three ways as i see them:
|
|
the xxh3 hash (especially modern XXH3 version) is quite a useful non-crypto hash. could it be added some day in tjs:hashing or is it better to add it there in the utils separately ? btw how do you estimate ffi-crossing lag ? I'm thinking isn't there any need to batch some things. I've managed to find some optimizations on top of libffi here, but honestly couldn't estimate properly. point me please. (gonna make benchmarks anyway tho) |
|
there's a set of functions: https://txikijs.org/docs/api/tjs-ffi.Variable.read |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've made the ffi-based
txiki-utilspackage! (for #921 initially)https://codeberg.org/houd1ni/txiki-utils
gonna add there more stuff gradually as needed. Bun's approach of attaching the whole node's parts looks wrong here imho.
btw how do you look at further improving of module resolution to use node_modules at least?
if it's too much out of the scope, then do you see any ffi injection or any "wrapper" or another technique that could add that potentially without breaking into internals ? maybe some kind of import maps on-the-fly generation ? to keep things properly at their places.
All reactions