Skip to content
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

dukluv forward compat #2535

Open
hxorasani opened this issue Apr 14, 2023 · 3 comments
Open

dukluv forward compat #2535

hxorasani opened this issue Apr 14, 2023 · 3 comments

Comments

@hxorasani
Copy link

i spent the past 2 days trying to get dukluv to build with the latest libuv and duktape.
i applied the patches that @svaarala and @FreshXOpenSource had submitted to the dukluv repo.
it finally got it to build phew (ubuntu).

i'm developing a 3D generic engine (for apps, games, tools etc) using duktape.
i'm wondering if i should use dukluv seeing as it's not being updated anymore.
it also worries me since duktape3 is coming and it's prolly gonna introduce breaking changes and
make dukluv stop working, it that happens, my work will stop and i'll have to fix dukluv again.

@svaarala what's your advice. i primarily need libuv. but trying to understand and use it has been a
nightmare for me, the docs are really lacking for newbies like me.

(i dont wanna use nodejs/nw etc, or browsers, they're too huge and contain unnecessary parts
if i can't understand smaller libs like uv on my own then i won't be able to understand nodejs or chromium etc)

(i've not pub'd the repo yet).

@aflin
Copy link

aflin commented Apr 28, 2023

Do you need libuv specifically, or will another event library suit your purposes?

@hxorasani
Copy link
Author

@aflin if it's better than libuv then i'll switch over to it, by better i mean tiny, well-maintained and battle-tested.
it's good to have alternatives.

@aflin
Copy link

aflin commented Apr 28, 2023

@hxorasani I've embedded libevent2 into duktape at https://github.com/aflin/rampart. Still in the early stages, but the event loop is fairly stable. It includes setTimeout, setInterval and a set of simple event JavaScript function.
The main rampart executable with libevent statically linked is about 1.1M.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants