News for hackers. Stuff that matters.
Re:TeaVM: Build Fast, Modern Web Apps in Java by shannah78 on Sunday January 31, 2021 @12:04PM (#25980271)
"I haven't found a way to do promises yet". TeaVM provides Java wrappers for most JS APIs, including promises (https://github.com/konsoletyper/teavm/blob/master/core/src/m...). If you require an API that doesn't have a wrapper yet, it is dead simple to create your own wrapper. Or just use the @JSBody annotation to write your own ad-hoc Javascript.
Re:TeaVM: Build Fast, Modern Web Apps in Java by pojntfx on Sunday January 31, 2021 @08:28PM (#25984555)
Thanks for the link! This looks like a significant improvement over my current solution of trying to pass callbacks ... which aren’t transferable types sadly ;)