frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Golang optimizations for high‑volume services

https://packagemain.tech/p/golang-optimizations-for-highvolume
25•der_gopher•3d ago

Comments

jftuga•1h ago
I'd be curious to know transactions per second (or other metrics) before and after the suggested changes.
theHurzzen•36m ago
Indeed. The post can be more interesting with proper metrics to backup the impact of each change.
ad_hockey•1h ago
I've been thinking about trying an alternative JSON library, but interested to hear opinions on whether jsoniter is still recommended. There are 208 open issues on the repo, and a question about whether it's still maintained[1]

Would particularly like to know if anyone has done a performance comparison with the new API coming in the stdlib[2], which feels like a better bet. That blog says:

The Marshal performance of v2 is roughly at parity with v1. Sometimes it is slightly faster, but other times it is slightly slower. The Unmarshal performance of v2 is significantly faster than v1, with benchmarks demonstrating improvements of up to 10x.

[1] https://github.com/json-iterator/go/issues/706

[2] https://go.dev/blog/jsonv2-exp

vrnvu•1h ago
My first thought: Controlling allocations and minding constraints... honestly, that's engineering stuff all services should care about. Not only "high-volume" services.
ashf023•1h ago
I'm definitely in favor of not pessimizing code and assuming you can just hotspot optimize later, but I would say to avoid reusing objects and using sync.pool if it's really not necessary. Go doesn't provide any protections around this, so it does increase the chance of bugs, even if it's not too difficult to do right.
aranw•50m ago
I'm currently working on a project that is using an OpenAPI library that decided to use a non-standard JSON encoder. The developer experience definitely suffers when you can't use common encoding/json patterns in your own code. Simple operations become unnecessarily awkward

GPT-5.2

https://openai.com/index/introducing-gpt-5-2/
496•atgctg•3h ago•386 comments

Denial of service and source code exposure in React Server Components

https://react.dev/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-comp...
51•sangeeth96•57m ago•7 comments

Rivian Unveils Custom Silicon, R2 Lidar Roadmap, and Universal Hands Free

https://riviantrackr.com/news/rivian-unveils-custom-silicon-r2-lidar-roadmap-universal-hands-free...
117•doctoboggan•3h ago•140 comments

Litestream VFS

https://fly.io/blog/litestream-vfs/
159•emschwartz•3h ago•53 comments

An SVG is all you need

https://jon.recoil.org/blog/2025/12/an-svg-is-all-you-need.html
57•sadiq•2h ago•19 comments

The highest quality codebase

https://gricha.dev/blog/the-highest-quality-codebase
344•Gricha•3d ago•262 comments

Almond (YC X25) Is Hiring SWEs and MechEs

https://www.ycombinator.com/companies/almond-2/jobs
1•shawnpatel•44m ago

Show HN: Sim – Apache-2.0 n8n alternative

https://github.com/simstudioai/sim
93•waleedlatif1•4h ago•12 comments

The architecture of “not bad”: Decoding the Chinese source code of the void

https://suggger.substack.com/p/the-architecture-of-not-bad-decoding
18•Suggger•7h ago•11 comments

UK House of Lords attempting to ban use of VPNs by anyone under 16

https://alecmuffett.com/article/134925
14•nvarsj•1h ago•1 comments

My productivity app is a never-ending .txt file (2020)

https://jeffhuang.com/productivity_text_file/
84•simonebrunozzi•2h ago•59 comments

Craft software that makes people feel something

https://rapha.land/craft-software-that-makes-people-feel-something/
190•lukeio•7h ago•96 comments

Programmers and software developers lost the plot on naming their tools

https://larr.net/p/namings.html
59•todsacerdoti•3h ago•98 comments

Going Through Snowden Documents, Part 1

https://libroot.org/posts/going-through-snowden-documents-part-1/
134•libroot•2h ago•73 comments

Prove It All Night: With no fame or fortune, what keeps a band onstage? (1999)

https://chicagoreader.com/news/prove-it-all-night/
35•NaOH•1w ago•7 comments

An Orbital House of Cards: Frequent Megaconstellation Close Conjunctions

https://arxiv.org/abs/2512.09643
71•rapnie•6h ago•38 comments

Launch HN: BrowserBook (YC F24) – IDE for deterministic browser automation

52•cschlaepfer•6h ago•30 comments

Auto-grading decade-old Hacker News discussions with hindsight

https://karpathy.bearblog.dev/auto-grade-hn/
548•__rito__•1d ago•246 comments

iPhone Typos? It's Not Just You – The iOS Keyboard Is Broken [video]

https://www.youtube.com/watch?v=hksVvXONrIo
346•walterbell•6h ago•261 comments

Deprecate like you mean it

https://entropicthoughts.com/deprecate-like-you-mean-it
44•todsacerdoti•5h ago•107 comments

The Walt Disney Company and OpenAI Partner on Sora

https://openai.com/index/disney-sora-agreement/
86•inesranzo•7h ago•363 comments

Contact Sheet Prompting

https://www.willienotwilly.com/contact-sheet-prompting
4•handfuloflight•3d ago•0 comments

Golang optimizations for high‑volume services

https://packagemain.tech/p/golang-optimizations-for-highvolume
25•der_gopher•3d ago•6 comments

French supermarket's Christmas advert is worldwide hit (without AI) [video]

https://www.youtube.com/watch?v=Na9VmMNJvsA
124•gbugniot•8h ago•76 comments

Patterns.dev

https://www.patterns.dev/
540•handfuloflight•20h ago•124 comments

EFF launches Age Verification Hub

https://www.eff.org/press/releases/eff-launches-age-verification-hub-resource-against-misguided-laws
156•iamnothere•1d ago•128 comments

Show HN: Local Privacy Firewall-blocks PII and secrets before ChatGPT sees them

https://github.com/privacyshield-ai/privacy-firewall
92•arnabkarsarkar•2d ago•37 comments

Helldivers 2 on-disk size 85% reduction

https://store.steampowered.com/news/app/553850/view/491583942944621371
225•SergeAx•1w ago•237 comments

Encountering Japanese ellipses in English translations (2013)

https://legendsoflocalization.com/articles/japanese-ellipsis-usage/
13•tosh•1w ago•0 comments

Oldest attestation of Austronesian language: Đông Yên Châu inscription

https://en.wikipedia.org/wiki/%C4%90%C3%B4ng_Y%C3%AAn_Ch%C3%A2u_inscription
61•teleforce•5d ago•22 comments