News for hackers. Stuff that matters.
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by Heliodex on Friday May 24, 2024 @07:58PM (#40471540)
If only I had known about this ~3 weeks ago. I've been saying for ages that either React ported to Go or a React-like framework for Go would be an incredible development experience, so this looks perfect (I used to be a big hater of React.js until I was enlightened by React.lua).
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by apitman on Friday May 24, 2024 @08:14PM (#40471612)
Don't leave us hanging! What did you use instead 3 weeks ago?
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by Heliodex on Friday May 24, 2024 @08:34PM (#40471719)
Wails <https://wails.io>. I wanted to use Go but wasn't as familiar with native UI as with HTML/CSS/JS, I tried out most of the other popular Go UI frameworks too though they didn't feel as comfortable to use as Spot's React-like model.

Wails is still pretty epic as well though.

Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by parlortricks on Friday May 24, 2024 @10:12PM (#40472137)
oh this looks great
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by rkwz on Friday May 24, 2024 @10:25PM (#40472183)
I had the same problem - really liked the way I used to do component composition in React, it was hard to go back.

Eventually found a way to do something similar using just the standard Go html/template.

I’ve written about the implementation here:

https://www.sheshbabu.com/posts/react-like-composition-using...

Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by biomcgary on Saturday May 25, 2024 @01:12PM (#40476353)
This a great write-up and similar to an approach that I stumbled upon a few years ago. Have you thought about HTMXing this approach to get away from full page renders?
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by shesh on Sunday May 26, 2024 @07:22AM (#40481306)
Thanks! I wanted to use standard Go html/template to see just how bad the re-renders are, and then decide to use htmx. After building the project, I don’t mind the re-renders much as the latency is around 50ms and I don’t see any jank. I might introduce gems in future
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ... by rkwz on Sunday May 26, 2024 @08:58AM (#40481815)
Thanks! I wanted to use standard Go html/template to see just how bad the re-renders are, and then decide to use htmx. After building the project, I don’t mind the re-renders much as the latency is around 50ms and I don’t see any jank. I might introduce htmx in future