3 ms·
Go can easily cross compile and has lots of OS level abstractions. I would use web tech for any frontend, run a server and embed the necessary files in that bin
by verdverm 4y ago
Go can easily cross compile and has lots of OS level abstractions. I would use web tech for any frontend, run a server and embed the necessary files in that binary.
Go can be just a few MB onto the low 10s
- schemescape 4y agoI have very little experience with Go, but I recall setting it up was trivial and it compiled very quickly. My only concern is that I’ve heard the language is simple to the point that it requires writing a lot of code that wouldn’t be necessary with something higher level (similar to Zig, but at least no manual memory management and Go’s channels sound great). Good suggestion! Edit: I also just remembered that my other experience with Go was the template library used in Hugo. I recall that being a negative experience, but hopefully something I’ll mostly be able to avoid.
- verdverm 4y agoI would say Go has minimal syntax, so yes there is a lack of syntactic sugar, but it also has a great stdlib. What is there is really well done and the tooling is fantastic
- schemescape 4y agoI didn’t mention a standard lib being important, but it most definitely is, and that’s a big plus for Go. The lack of a standard lib is certainly JavaScript’s biggest weakness. Deno provides one, but I’m not certain it will stand the test of time.
- verdverm 4y agoI'm building a tool on top of CUE and Go's text/template library. My opinion is that the problem is more how Hugo organizes and combines files, lots of magic if you don't know how it makes decisions, kinda like CSS rules being opaque. https://github.com/hofstadter-io/hof https://github.com/hofstadter-io/hof
- Tozen 4y agoAgree that Go, among some others (Vlang, Dlang, Nim), that are both compiled and use a GC (the GC of some languages are optional and can be turned off) could be on the list of what's looked at.