Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. GB Names(geods.ac.uk)
    discuss
  2. AI staff complain of mental toll over fears of threat to society(ft.com)
    1comments
  3. Show HN: I built a macOS Quick Look app for Markdown, SQLite, ZIP, and 300 more(quicklookpro.com)
    discuss
  4. The current balance of power in open models(interconnects.ai)
    discuss
  5. AI Scenario in 2070(docs.google.com)
    1comments
  6. Autonomous AI Agents Are Breaking into Online Retailers(gambit.security)
    1comments
  7. Show HN: Layered writing – a novel way to write and read digital text(github.com/aartoghrul)
    discuss
  8. tRNA Therapy(science.org)
    discuss
  9. AI is getting cheaper more quickly than any other transformative tech in history(epoch.ai)
    1comments
  10. The strange death of libertarianism(spectator.com)
    3comments
  11. Eating Alone(longreads.com)
    discuss
  12. Evaluating smolvm as a sandbox for untrusted Python and JavaScript(simonwillison.net)
    discuss
  13. AI Abundance Requires a 4-Hour Workweek(elnahla.com)
    discuss
  14. DuckDB supports a new SQL IDE(duckdb.org)
    discuss
  15. MariaDB's official docs now list LibreDB Studio as a graphical client(mariadb.com)
    discuss
  16. Dragonfly and LibreDB Studio: Redis-compatible database management(dragonflydb.io)
    discuss
  17. Show HN: LinearSolveBench, interesting new benchmark to discover linear solvers(autodidakt.ai)
    discuss
  18. Show HN: Jade Email. Unlimited emails for your domain plus AI Agent support(jade.email)
    1comments
  19. Gadgetbridge: A FOSS alternative to your fitness watch's app(manualdousuario.net)
    discuss
  20. UmbrelOS 2.0: Your cloud, at home [video](youtube.com)
    discuss
  21. Fat Bear Week(explore.org)
    discuss
  22. Meta's New Muse AI Agent Read My Private Messages. I Never Asked It To(inc.com)
    discuss
  23. Analyzing Jev Outcomes with a Validator(gonzo.engineer)
    discuss
  24. My Claude Code setup (11 commands, 3 agents) + shared Meta "design third brain"(johnmaartifacts.substack.com)
    discuss
  25. Jevlish: A JavaScript front end for Jev(jacobgoldfarb.github.io)
    2comments
  26. Comrade – A P2P Alternative to Tmate(github.com/dangowrt)
    discuss
  27. Orbital's Sam Brovda and Bill Ackman get pro-Palestinan woman fired from KPMG(twitter.com/redpillsayian)
    1comments
  28. Aetheria – a local-first agent harness that works online or offline(github.com/denisrigsby)
    discuss
  29. When the Debugger Lies(danielmangum.com)
    discuss
  30. The HUGS Stack – Hypermedia, Unix, Go, SQLite(housecat.com)
    discuss

Datapages v0.10.0 Beta Release

5 pointsby 1h agogithub.com
5 comments
1h agoHN ↗

After 7 long months of lots of work and rumination, it finally happened!

Datapages, the Datastar-powered Go frontend meta-framework and toolchain has reached beta

This is the first release of Datapages I consider production ready.

P.S. Please read the release notes, I've carefully hand-written them for you Otherwise - happy to answer any question!

1h agoHN ↗

I've been using Datastar a bit and I really liked it. How is this better than the vanilla Datastar? Like can you name a couple core features that can make me use it? Also Go is not very framework oriented...

53m agoHN ↗

The core feature is the toolchain :) the linter & code generator.

TL;DR: Datastar is awesome, but in each Go code base with Datastar I just kept repeating the same code patterns over and over again, and coding agents kept messing up too. Hence, I thought that this code should not be owned and maintained by the author of the business logic, instead it should be owned by a code generator that calls into your business logic.

It keeps the code base more maintainable, especially with agentic coding and should also reduce your token usage (you give the agents less freedom of choice to maneuver within which makes them more efficient).

Read the full motivation here: https://github.com/romshark/datapages#motivation

Also Go is not very framework oriented...

True. But Datastar is a framework :) it does define how your Go code is going to look and function; and I believe to have found the best approach to Datastar in Go, which doesn't compromise on performance and DX and remains flexible enough to cover practically any sort of use case, except SSG (static site generation).

41m agoHN ↗

I see, thanks, but how exactly can it help agents to use Datastar better? If it's a superset on Datastar, isn't it just another set of rules an agent needs to learn?

15m agoHN ↗

Having rules is good, but having rules that you can statically enforce is better (partly why Rust is so popular, right?). Think of golangci-lint. Datapages can prevent drifting agents (and humans) from making mistakes using static code analysis.

A very simple example is a stale link to a page that no longer exists. Datapages will not allow `<a href="/account">Account</a>` in your Templ templates, `datapages gen` or `datapages lint` will error. It will give you a hint, that you should be using a URL builder from the generated package instead: `<a href={ href.PageAccount() }>Account</a>`. And if that page is ever changed/removed - that will produce an actual compiler error.

But this is obviously just one of the smallest of mistakes.

A production ready application requires a lot of moving parts: - SSE stream subscription, teardown, per-tab state, panic recovery, and graceful shutdown. - Auth, sessions, CSRF, input validation, cross-origin, CSP, etc. - AI skills (I created and tested them for you so you don't have to). - Logging, metrics. - All the NATS boilerplate for doing proper CQRS. - Service workers, browser-local caches, static assets. - Live reload in dev mode (https://github.com/romshark/templier is built in) - etc.

Basically, I'm trying to move a lot of the "plumbing/infrastructure" code out of your and/or your agents ownership into the ownership of a well tested code generator to make it super cheap and easy to ship production grade Datastar apps in Go. You can literally wipe 2/3 of the code base and recreate it idempotently and deterministically, so you really only own and maintain 1/3 of the code (fewer bugs, fewer AI tokens).