duktape icon indicating copy to clipboard operation
duktape copied to clipboard

dukluv forward compat

Open hxorasani opened this issue 1 year ago • 3 comments

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).

hxorasani avatar Apr 14 '23 02:04 hxorasani

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

aflin avatar Apr 28 '23 03:04 aflin

@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.

hxorasani avatar Apr 28 '23 17:04 hxorasani

@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.

aflin avatar Apr 28 '23 18:04 aflin