How do you design database API for
Let's assume we're talking about Postgres and JSONB column. We've
How you design such things? Definitely non-Go question, so everyone is welcome. Thanks in advance.
update and patch queries?Let's assume we're talking about Postgres and JSONB column. We've
UpdateUser where we just set new value to this column data JSONB but for PatchUser we just want to update fullname field in this column.How you design such things? Definitely non-Go question, so everyone is welcome. Thanks in advance.
Goroutines: the concurrency model we wanted all along (2023)
https://jayconrod.com/posts/128/goroutines-the-concurrency-model-we-wanted-all-along
https://jayconrod.com/posts/128/goroutines-the-concurrency-model-we-wanted-all-along
jayconrod.com
Goroutines: the concurrency model we wanted all along
Goroutines are the single feature that distinguishes Go from other languages. They look very much like threads, but they are cheap to create and manage. Go's runtime schedules goroutines onto real threads efficiently so you can easily create lots of goroutines.
Is there anyone who speed ups Go compiler by adding
GOGC=off ? Is old grandpa's trick still relevant?Guess how I found a new Go 1.26 version? Yep, throught CI failure.
Thanks
Anyway, Go 1.26 looks sexy, curious to see profiles. Especially
errorx.Newf does not support error-wrapping directive %wThanks
go vet (as a part of go build) but what if my code KNOWS how to treat %w ?Anyway, Go 1.26 looks sexy, curious to see profiles. Especially
io.ReadAll perf-improvement https://go.dev/doc/go1.26#iopkgiogo.dev
Go 1.26 Release Notes - The Go Programming Language
Підтримай армію України / Support Ukraine’s Army
Брат моєї дружини зараз служить у лавах Збройних сил України в Донецькій області, в гарячих точках. Він здійснює критично важливі військові операції, і його внесок надзвичайно цінний для нашої перемоги.
Зараз йде збір коштів на автівку саме для нього та його побратимів. У зоні бойових дій пересування — це питання життя і смерті. Автівка необхідна, щоб швидко виконувати поставлені завдання та рятувати життя. Тому я дуже прошу всіх долучитися до цього збору.
Слава Україні! 🇺🇦
PayPal: rasskaz.ukraine@gmail.com
https://send.monobank.ua/jar/2SvBLeFEGn
My wife’s brother is currently serving in the ranks of the Armed Forces of Ukraine in the Donetsk region, in the hot zones. He carries out critically important military operations, and his contribution is extremely valuable for our victory.
We are now raising funds for a vehicle specifically for him and his comrades. In the combat zone, mobility is a matter of life and death. A vehicle is essential to quickly carry out assigned tasks and save lives. That’s why I sincerely ask everyone to join this fundraiser.
Glory to Ukraine! 🇺🇦
Брат моєї дружини зараз служить у лавах Збройних сил України в Донецькій області, в гарячих точках. Він здійснює критично важливі військові операції, і його внесок надзвичайно цінний для нашої перемоги.
Зараз йде збір коштів на автівку саме для нього та його побратимів. У зоні бойових дій пересування — це питання життя і смерті. Автівка необхідна, щоб швидко виконувати поставлені завдання та рятувати життя. Тому я дуже прошу всіх долучитися до цього збору.
Слава Україні! 🇺🇦
PayPal: rasskaz.ukraine@gmail.com
https://send.monobank.ua/jar/2SvBLeFEGn
My wife’s brother is currently serving in the ranks of the Armed Forces of Ukraine in the Donetsk region, in the hot zones. He carries out critically important military operations, and his contribution is extremely valuable for our victory.
We are now raising funds for a vehicle specifically for him and his comrades. In the combat zone, mobility is a matter of life and death. A vehicle is essential to quickly carry out assigned tasks and save lives. That’s why I sincerely ask everyone to join this fundraiser.
Glory to Ukraine! 🇺🇦
send.monobank.ua
Безпечний переказ коштів
Надсилайте безкоштовно та безпечно кошти
Did anyone build self-healing systems? I'm not about crash-loop recovery via k8s or some code inside a circuit breaker pattern. I'm asking about something a bit more sophisticated.
Well, I wrote question above and have realised that 99%(?) of the cases can be solved with circuit breaker (which is quite obvious) but initially I was interested in a wider or more detailed solutions.
Anyway, please share smth, DM is also opened.
Well, I wrote question above and have realised that 99%(?) of the cases can be solved with circuit breaker (which is quite obvious) but initially I was interested in a wider or more detailed solutions.
Anyway, please share smth, DM is also opened.
[x] doubt
https://go.dev/blog/gofix
Yes, it's definitely shorter and correct (I can even say beautiful) but why not...
https://go.dev/blog/gofix
Yes, it's definitely shorter and correct (I can even say beautiful) but why not...
math.Clamp for this? (func doesn't exist but you get the idea)Ah, the classic AI startup lifecycle:
> We must build a moat to save humanity from AI.
> Please regulate our open-source competitors for safety.
> Actually, safety doesn't scale well for our Q3 revenue targets.
via HN
> We must build a moat to save humanity from AI.
> Please regulate our open-source competitors for safety.
> Actually, safety doesn't scale well for our Q3 revenue targets.
via HN
> Datadog Agent’s artifact size has grown significantly, from 428 MiB in version 7.16.0 to a peak of 1.22 GiB in version 7.60.0 on Linux.
r u fcking kidding me? holy moly, my 8 binaries are 200Mb in total, ddog is a cancer.
https://www.datadoghq.com/blog/engineering/agent-go-binaries/
r u fcking kidding me? holy moly, my 8 binaries are 200Mb in total, ddog is a cancer.
https://www.datadoghq.com/blog/engineering/agent-go-binaries/
Datadog
How we reduced the size of our Agent Go binaries by up to 77% | Datadog
Get an inside look at shrinking large Go binaries in the Datadog Agent through dependency and linker analysis.
> I think everyone's focusing on the core count, but the packaging story is way more interesting here. This thing is 12 separate chiplets on 18A stacked on base dies made on Intel 3, connected to I/O tiles on Intel 7. Three different process nodes in one package, shipping at volume. That's nuts.
https://www.tomshardware.com/pc-components/cpus/intels-make-or-break-18a-process-node-debuts-for-data-center-with-288-core-xeon-6-cpu-multi-chip-monster-sports-12-channels-of-ddr5-8000-foveros-direct-3d-packaging-tech
https://www.tomshardware.com/pc-components/cpus/intels-make-or-break-18a-process-node-debuts-for-data-center-with-288-core-xeon-6-cpu-multi-chip-monster-sports-12-channels-of-ddr5-8000-foveros-direct-3d-packaging-tech
Tom's Hardware
Intel's make-or-break 18A process node debuts for data center with 288-core Xeon 6+ CPU — multi-chip monster sports 12 channels…
Intel unveils x86 CPU with the industry's highest core count.