2 ms·
Any plans to implement something like Phonenix LiveView? I've never used Go, but from what I've read I suppose it should work really well given Go's concurrency
by throwamon 4y ago
Any plans to implement something like Phonenix LiveView? I've never used Go, but from what I've read I suppose it should work really well given Go's concurrency model. (The name "Livebud" gave some hope as well.)
- chabad360 4y agoThere is https://github.com/jfyne/live https://github.com/jfyne/live which is probably what you're looking for.
- matthewmueller 4y agoStarred!
- matthewmueller 4y agoI haven't looked too closely at LiveView yet. I did flip back and forth between going with the Hotwire approach (I guess inspired by LiveView?). It was a tough call, but I ultimately decided to server-render JS. This thought-experiment helped: • If Ruby could natively render Javascript, would they still choose the Hotwire approach? I concluded no. I don't see the reason to have multiple approaches (HTML over wire, Stimulus), when one solution would suffice. The one solution also happens to be way more familiar to today's frontend developers. I definitely didn't want to make another templating language. Bud will eventually ship with it's own JS evaluator. Either through https://github.com/dop251/goja https://github.com/dop251/goja or through porting https://github.com/bellard/quickjs https://github.com/bellard/quickjs to Go (~25kloc of C)