-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adaptive progress #1
Comments
In fact, library adaptation is easy |
@7flash provided webui-dev/deno-webui#39 |
ok, thx |
the implementation, which embedded the library as json in the compilation result and then unzipped it at run time, which slows down startup time, especially on windows |
bunjs natively supports embedded files, and I'm looking for ways to load embedded dynamic link libraries directly |
In this case, Bun may use a different method than Deno, which is fine. |
However, there is another problem. The ffi function provided by bun can only read the data pointed to by the c pointer according to the number of bytes offset, but the webui uses the |
I'm not sure it must be 8 bytes in size when it's in a 64-bit library (bunjs only supports 64bits system) At least I used gcc to test, which treats |
bunjs can't load dynamic link libraries directly from memory, so maybe we should offer two alternatives:
|
Could this announcement make it easier?: https://bun.sh/blog/compile-and-run-c-in-js |
I'll try it later, it seems to work |
@jinzhongjia , if you would like help with this, feel free to ask me. |
I started working on bunjs adaptation
The text was updated successfully, but these errors were encountered: