5 ms·
Wish I had the time to really study Phoenix's LiveView and implement the same in Java. AFAIK there's no equivalent for this in Java and I mean the same not kin
by PedroBatista 6y ago
Wish I had the time to really study Phoenix's LiveView and implement the same in Java.
AFAIK there's no equivalent for this in Java and I mean the same not kinda-the-same but not really like Vaadin or God forbid GWT.
- scns 6y agoWish?
- PedroBatista 6y agothks
- dnautics 6y agoGood luck. Liveview depends strongly on features of the erlang VM that you won't get right without a deeper understanding of erlang (how do you clean up a websocket connection when the actor exits early, say due to throwing an exception - that's zero lines of code in lv), you're probably better of taking inspiration and writing it from scratch.
- entangled999 6y agoSo in your opinion in Java land resources are always leaked when some exception occurs? That’s a bit far from the truth
- jspash 6y agoNo, I think the point was that you would have be aware of these types of cases - and cleaning up after exceptions isn't the only one - and deal with it in your code. Maybe it's trivial to do in Java, but still it has to be done. Whereas with Elixir, it's handled by the way failed processes are handled which is to just "let it die". Another one will come along and replace it. (I'm greatly simplifying here)
- dnautics 6y agoMy point was more: The way to handle resource cleanup is "let it die".