News for hackers. Stuff that matters.

Maxence

Re:We replaced our React front end with Go and WebAssembly on Tuesday February 11, 2025 @06:10AM (#43011465)
In a previous version, I was using HTML, but it was written as strings. This allowed interaction with Go, but debugging was challenging since the Go compiler does not check the content inside strings, and no editor provides syntax highlighting for HTML embedded in a Go string.

With the current approach, the compiler can validate the written code, making it easier to use other Go code and enabling auto-completion in editors since everything is defined in Go.

Additionally, it eliminates the need to parse HTML, as every node state is represented in a Go-based virtual DOM, with only updates being pushed directly to the actual HTML nodes.

The key point here is that the UI can integrate background mechanisms written in Go, making them easy to use within the interface.

Re:We replaced our React front end with Go and WebAssembly on Tuesday February 11, 2025 @01:16AM (#43009569)
Hey, I’m the creator of go-app. What a surprise to come across this post on HN! I’m really happy to see you folks built something that fits your needs with it. Wishing you continued success with your product!
Re:MonoLisa – A font designed for developers on Tuesday February 15, 2022 @01:11AM (#30343354)
I find that font very beautiful and pleasant to look at.

That said, the licensing seems completely out of touch from reality to me. Today we are living in the cloud area, where data and and workspace are replicated across devices. When I read that you need multiple licences to have it on more than 2 personal devices, that sounds too much of a hassle to consider buying it.

I do it, but the point is most of the people don't, they simply watch YouTube.

I'm also a content creator myself, guess what, most of my revenues come form ads, not Patreon.

Some people work their ass to make a living and even if ads are annoying, for a lot it is what's keep them moving forward.

Maybe Google makes money by selling other people content but they provide all the infrastructure to allow content creators to have their business first.

Bypassing the ads is hurting mainly content creators, not Google...

Re:A Go Package for Building Progressive Web Apps on Friday September 17, 2021 @02:46PM (#28569393)
Hi, go-app’s creator here.

I did it in previous version and since there is no code check/lint on HTML templates within strings, debugging HTML was a pain in the ass.

More clear is a matter of taste and you can do pretty clear code with this syntax.

Re:A Go Package for Building Progressive Web Apps on Friday September 17, 2021 @02:10PM (#28568894)
Hey folks, just find this post, I’m go-app’s creator. Looks like a bunch of the discussion is about the wasm size. When its gzip it is not that big. People are talking about 15MB, none of my projects reached that size, and they are usually pretty liked by my users.

For the syntax, it is a matter of tastes but things that people like about it is that its full Go and everything is discoverable from your editor with auto completion.

At the end what’s matter is that it’s good enough to build beautiful UI only by using Go and it’s ecosystem.

A couple of years ago, I went to work in SF area and I switched my dev environment for MacOS.

On my free time I love to do some apps and when I started to learn Swift and Cocoa, I got tired of dealing with same things with platform specific complicated stuff.

I decided to build by own GUI tool, written with the Go programming language.

A couple of iteration later (years), it became a WebAssembly library for building progressive web apps.

It is named go-app and you can see how it look like with this dogfooded documentation website: https://go-app.dev

If you like lofi music when working, or you are a fan of World of Warcraft game, there is those 2 others ones built with this package: https://lofimusic.app and https://murlok.io

Hope you find it interesting :)

Re:Vugu: Vue-like frontends in pure Go, HTML, and CSS on Saturday April 17, 2021 @01:24AM (#26841785)
Hello there, I’m the creator of https://go-app.dev, a similar project based on Go and wasm.

Here are some thought of doing it with Go:

- The language itself is simple, clean and straightforward

- Compile time error checking

- Standard library that cover a lot of use-cases

- Testing and profiling tools out of the box with the language

- There is not that much extra limitations, just you can’t pop a server in the browser or access filesystem (same with other languages)

- When gzipped, wasm binaries are not that bigger than combined js resources on some other websites

- Wasm is supposed to be faster but that depends on the browser implementation and also the ui package you are using

Here is 2 other projects that I built with a Go wasm codebase: https://murlok.io and https://lofimusic.app. Can really do cool things with it.

Re:Show HN: Lofi.cafe on Wednesday April 14, 2021 @10:04AM (#26807218)
Hello there, I’m the guy who made https://lofimusic.app

Just wanted to tell you it looks good :), keep up the good work!

Pause button, volume slider... lets code it :) thanks for the feedback!
Re:Golang Desktop App with Webview/Lorca, WASM and Bazel on Tuesday August 11, 2020 @02:25PM (#24123856)
Hello,

I'm super happy to see that some folks are trying to make apps with Golang.

I'm myself the author of a Go package to build GUI with WASM and Go => https://github.com/maxence-charriere/go-app

WASM give us an incredible amount of new possibilities and hopefully, we will get to a point where Go will be used in production also for GUI/apps purposes :)

Congrats for this and good luck for the future.

Re:Visual Studio Code 1.30 Released on Wednesday December 12, 2018 @05:07PM (#18668168)
I use it for Go, easy to set up and feels awesome.
Re:Show HN: Build MacOS apps with Golang on Tuesday January 31, 2017 @02:22AM (#13528488)
I'm currently battling with the Microsoft Winrt driver but I'd love to see this happen on Linux too. I guess the driver would use Chromium Embedded Framework. Contributions on that would be more than welcome.

Thank you for the feedback :).

Re:Show HN: Build MacOS apps with Golang on Tuesday January 31, 2017 @02:18AM (#13528472)
Thank you very much for the feedback.

Let see how things going and time available. Apple did a lot of deprecations between 10.11 and 10.12 which make things a little tricky for older versions. But it's something which will be needed to be addressed for the future. I don't want the package to be tied with the latest MacOS version.

Re:Show HN: Build MacOS apps with Golang on Monday January 30, 2017 @02:01AM (#13519181)
Hello there, This is a package to build apps with Golang, HTML and CSS. For the moment it works only on MacOS but it's designed to be multiplatform.

Wanted to share this with you guys. It would be awesome if you have any feedbacks. Hope you will find it interesting.

Re:Visual Studio Code 1.4 on Thursday August 04, 2016 @07:50PM (#12229250)
This editor is also very good to write Golang code.
Re:Visual Studio Code for Go on Thursday March 03, 2016 @01:00PM (#11218578)
I use it daily, this one is very good.