goenums: Type Safe Enum generator for Go https://lobste.rs/s/q6hwcd #go
https://github.com/zarldev/goenums
"It’s not that hard to build a fully functioning, code-editing agent.
It seems like it would be. When you look at an agent editing files, running commands, wriggling itself out of errors, retrying different strategies - it seems like there has to be a secret behind it.
There isn’t. It’s an LLM, a loop, and enough tokens. It’s what we’ve been saying on the podcast from the start. The rest, the stuff that makes Amp so addictive and impressive? Elbow grease.
But building a small and yet highly impressive agent doesn’t even require that. You can do it in less than 400 lines of code, most of which is boilerplate.
I’m going to show you how, right now. We’re going to write some code together and go from zero lines of code to “oh wow, this is… a game changer.”
I urge you to follow along. No, really. You might think you can just read this and that you don’t have to type out the code, but it’s less than 400 lines of code. I need you to feel how little code it is and I want you to see this with your own eyes in your own terminal in your own folders.
Here’s what we need:
- Go
- Anthropic API key that you set as an environment variable, ANTHROPIC_API_KEY"
[[g0v]] looks great:
https://en.wikipedia.org/wiki/G0v_movement
Gemini:
> This decentralized, non-hierarchical community of hackers, activists, and citizens develops open-source tools and platforms to promote government transparency, citizen participation, and collaborative problem-solving. They use the internet to "fork" the government – creating alternative, open versions of government services and data.
ça code et ça fait des trucs en live !
Avowed
#code #go #linux #tech #french #documentaires #Resistance #videogames
sqlc: Generate type-safe code from SQL via @RunxiYu https://lobste.rs/s/kckhbq #databases #go
https://github.com/sqlc-dev/sqlc
I'm happy to announce the 1.0.0 (stable) release of Jox Channels: Fast & scalable, completable channels for #Java, with #Go-like `select`s.
Jox is open-source and Apache2-licensed. You can find out more at Jox's new documentation site: https://jox.softwaremill.com/latest/index.html
Flows & structured concurrency remain at 0.x development versions
TIL in #Go, if you create an HTTP cookie with MaxAge being -1, a perfectly valid value, net/http will encode it as MaxAge=0. Really annoying if you need very specific tests. Yet another entry in the long list of "we know better than you" for the standard library.
#CollabrativeArt Seeking one or two photos as follows
Go board: black about to take (pounce) white stones. (Bonus crow feather on board)
Go board: white stone lost in a maze of back stones.
For non-commercial use in #Haiga (A poem with an accompanying picture)
Payment: Photo credited to you.
Expires: 4/21/25
#ScribesAndMakers #Photography
#PoetsOfMastodon #poetrycommunity
#Go
The world would make a lot more sense if golang because popular _after_ LLMs became a thing.
I bought the cheapest BT spealker (~12PLN).
Now it will read the Fosstodon notifications for me :)
The code: https://github.com/w84death/rpi3-mastodon-tts-notificatoin-reader
EDiT: I'm tweaking the code and README while I'm trying to setup this on the actual PI. So far it works fine!
Проксирование из коробки: сравнительный анализ HAProxy, Envoy, Nginx, Caddy и Traefik
Всем привет, меня зовут Стас, я техлид в Mish Product Lab. Тема возникла не просто так: внутри команды у нас было немало споров и дискуссий о том, какой инструмент для проксирования и терминации SSL лучше использовать в различных ситуациях. Изначально все наши гипотезы были основаны больше на личных предпочтениях, чем на реальных данных. Мы долго спорили, надеясь, что истина будет где-то рядом с нашими любимыми решениями. Но в итоге пришли к выводу, что единственный способ получить действительно объективный ответ — это протестировать и сравнить различные варианты на практике. Именно так родилась идея провести сравнительный анализ производительности HAProxy, Envoy, Nginx, Caddy и Traefik с поддержкой SSL/TLS. Мы хотели понять, какой из инструментов «из коробки» предоставляет наилучшую производительность и минимальные накладные расходы, особенно при обработке SSL-трафика, который, как известно, требует дополнительных ресурсов из-за шифрования и дешифрования.
TIL the #Go HTTP client will happily ignore any "Host" header field you add to Request.Header. You need to modify Request.Host separately. Because reason.