4 ms·
To my knowledge TeaVM supports multi threading. See the async demo: http://teavm.org/ http://teavm.org/ 'Async demo that shows how TeaVM can translate multithr
by karussell 10y ago
To my knowledge TeaVM supports multi threading. See the async demo: http://teavm.org/ http://teavm.org/
'Async demo that shows how TeaVM can translate multithreaded applications with synchronization primitives.'
Also see this effort trying to unify the APIs: http://dukescript.com/ http://dukescript.com/
- jvilk 10y agoInteresting! A cursory glance at the source code looks like they are doing some form of stack splitting at synchronization points, denoted by method annotations. Note that they reimplement the class library and eschew compatibility with traditional Java programs, so I'm not completely sure how general purpose their threads are. I tried finding some writeup about them, but I suspect the code is the documentation. :) I haven't checked in with this project since we last talked a few years ago, so it's nice to see notable progress! Thanks for the pointer.