Glad to see progress in this space. I couldn't find anything describing the paradigm used for the JavaScript frontend. From the video, it looks like things are fully server side rendered, i.e. no client side routing as-in SvelteKit or Next.js? Are the Svelte components hydrated+interactive after page load? In my experience so far with SvelteKit and other SSR+SPA frameworks, there are too many tradeoffs with hydrating…
Hey, excellent question. You're correct that Bud server-side renders the Svelte files, then hydrates them on the client. This is similar to what most other JS frameworks do, it works like this: 1. Create two builds: one for server, one for browser. This is done using ESBuild. This is actually done lazily upon request, similar to how a CDN like esm.sh would build JS to be imported. This will hopefully allow the build…
Show HN: A Full-Stack Web Framework for Go
51–60 of 103 posts
Re: Show HN: A Full-Stack Web Framework for Go
#52> Build a Minimal Hacker News Clone in 15 Minutes with Bud I started my programming career after following the Rails how to make a blog in 15min youtube video. Always a good choice.
Fun fact: It took DHH a year after he first introduced Rails to get that famous weblog demo up. This stuff takes time :)
Re: Show HN: A Full-Stack Web Framework for Go
#53Congratulations on shipping. The demo looks great. I see views and controllers in the documentation, but the only mention of model is that "model" is a reserved directory. What are your plans for models and persistence?
>> What are your plans for models and persistence?
I haven't worked out all the details, but it's going to be some blend of https://github.com/xo/xo and https://sqlc.dev/.
Design goals:
1. High-level, type-safe "ORM" that's generated from your database schema.
2. sqlc as a fallback to cover the more complex SQL queries in a type-safe way.
The hard part is going to figuring out how to support extending the ORM with your own custom methods, hooks, computed fields etc.
What do you think?
Re: Show HN: A Full-Stack Web Framework for Go
#54Very interesting, and using all of the latest tech. I was literally dreaming about combining Remix + Cloudflare Workers + Golang the other day. The only problem is Go would need to be compiled into WASM for that [0]. But this would provide one of the best experiences both in terms of development and performance/latency. [0] https://community.cloudflare.com/t/support-golang-natively-f...
Their reliance on V8 Isolates will make it difficult, but if they add Docker support at some point, then we're good. I don't see how Bud would work with WASM at the moment, but if someone gets it working, that would be a very pleasant surprise!
I'm more focused on getting Bud working well for deployment targets like Fly.io, Heroku, Lambda, K8s, Fargate and EC2.
Re: Show HN: A Full-Stack Web Framework for Go
#55Re: Show HN: A Full-Stack Web Framework for Go
#56Great work. The last bit about single binary is quite interesting. I could easily deploy app to my raspberry Pi without worrying about bundling things. I know Go can do this but it's nice that framework aligns with Go philosophy.
Re: Show HN: A Full-Stack Web Framework for Go
#57Earlier quoted context omitted.
To me I think the approach of Hotwire, LiveView, Django-HTMX etc. is more interesting for a Go framework, since websockets/async are baked into the Go language. In other words, render the HTML in Go and ship the diffs to a small blob of JS running in the client over a websocket, instead of baking a whole React build into your server-side app. Much simpler toolchain this way, much easier to reason about. I appreciate…
Where nextjs kicks ass is that coding front end interaction (sans back end interaction) and doing interaction in response to server feels almost identical. There is no “ugh ok … better set up react now” feeling to make say an interactive chart because it was always there. Similarly there is no “ugh ok … better set up a backend now” feeling you get using create-react-app as it was always there. There is almost no ment…
Re: Show HN: A Full-Stack Web Framework for Go
#58Re: Show HN: A Full-Stack Web Framework for Go
#59This is a very ambitious project and from the looks of it, it makes a ton of good decisions.
Re: Show HN: A Full-Stack Web Framework for Go
#60This is really cool! I tried building something more basic than this a few years back, but this looks a lot more mature. I'll definitely be following and testing it out on a few small projects.