Live data from Hacker News

Pushup: a new compiler for making web apps in Go

github.com

1–10 of 121 posts

Re: Pushup: a new compiler for making web apps in Go

#2
Pushup creator here. We're interested in feedback on the design. Pushup introduces a new lightweight template syntax that mixes Go code and HTML in the same page; pages are then compiled down to pure Go, relying on the net/http package. Pushup uses file-based routing, so adding a page adds a route to your app. The template language has an "inline partials" feature to make it easier support for modern hypermedia libraries like htmx in mind. Would love to know what the Go web development community thinks.

Here is a short demo of Pushup in action: https://www.youtube.com/watch?v=nkyiATkZ4Js

Re: Pushup: a new compiler for making web apps in Go

#3

Pushup creator here. We're interested in feedback on the design. Pushup introduces a new lightweight template syntax that mixes Go code and HTML in the same page; pages are then compiled down to pure Go, relying on the net/http package. Pushup uses file-based routing, so adding a page adds a route to your app. The template language has an "inline partials" feature to make it easier support for modern hypermedia libra…

Also try to give usable web app ( todo ? ) hostel somewhere if possible.

Re: Pushup: a new compiler for making web apps in Go

#4

Pushup creator here. We're interested in feedback on the design. Pushup introduces a new lightweight template syntax that mixes Go code and HTML in the same page; pages are then compiled down to pure Go, relying on the net/http package. Pushup uses file-based routing, so adding a page adds a route to your app. The template language has an "inline partials" feature to make it easier support for modern hypermedia libra…

Do you have any hosted demos?

Re: Pushup: a new compiler for making web apps in Go

#5

Pushup creator here. We're interested in feedback on the design. Pushup introduces a new lightweight template syntax that mixes Go code and HTML in the same page; pages are then compiled down to pure Go, relying on the net/http package. Pushup uses file-based routing, so adding a page adds a route to your app. The template language has an "inline partials" feature to make it easier support for modern hypermedia libra…

Do you have any hosted demos?

The main project site is a Pushup app: https://pushup.adhoc.dev (look in the `docs` directory in the repo for the source code for the site)

There is a small demo of the inline partials feature here (click on the "view the Pushup source for this page" link at the bottom): https://pushup-htmx-template-fragments.fly.dev/demo

Re: Pushup: a new compiler for making web apps in Go

#6
It's a nice idea. I'm going to dig a little deeper in the design and developer experience choices.

That being said, I am a little curious -- what is the intended use case here? The reason I am asking is because I've been doing lots of web-development, with Go as a primary backend lang, for the last 9 years but never have I seriously felt the need to do serve the UI from Go. I guess there is some advantage reducing n (number of tools/languages in a stack) - but is there any other motivation behind it?

Re: Pushup: a new compiler for making web apps in Go

#7
I don't like it. It looks like early php. This doesnt mean it is bad.

I'm working on a web framework as well based on wasm in the browser. It's perfect except it's not really usuable/production ready due to high memory consumption of the go->wasm implementation. My hope is that one day there will be support for GC in wasm and somehow the issue will go away.

Re: Pushup: a new compiler for making web apps in Go

#8
So basically PHP, but in Go? I love Go, but I honestly hope this doesn't become as widespread as PHP. There is a reason why we switched away from template-based frontends (à la PHP).

On the other side, it's also true that some frontend frameworks are partially moving back to SSR...

Re: Pushup: a new compiler for making web apps in Go

#9

Pushup creator here. We're interested in feedback on the design. Pushup introduces a new lightweight template syntax that mixes Go code and HTML in the same page; pages are then compiled down to pure Go, relying on the net/http package. Pushup uses file-based routing, so adding a page adds a route to your app. The template language has an "inline partials" feature to make it easier support for modern hypermedia libra…

I’m Finnish. The caret is not always easy to type in my experience on international keyboards. Not sure what the added value is of creating yet another convention here, as there are so many already with each new templating language.

Re: Pushup: a new compiler for making web apps in Go

#10

I don't like it. It looks like early php. This doesnt mean it is bad. I'm working on a web framework as well based on wasm in the browser. It's perfect except it's not really usuable/production ready due to high memory consumption of the go->wasm implementation. My hope is that one day there will be support for GC in wasm and somehow the issue will go away.

Have you looked into using TinyGo[0]? It's a Go-for-embedded compiler and can compile Go to WASM as well.

It's supposed to result in much smaller artifacts.

[0]: https://tinygo.org/docs/guides/webassembly/

Post reply on HN