frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Fran Sans – font inspired by San Francisco light rail displays

https://emilysneddon.com/fran-sans-essay
254•ChrisArchitect•3h ago•35 comments

Native Secure Enclave backed SSH keys on macOS

https://gist.github.com/arianvp/5f59f1783e3eaf1a2d4cd8e952bb4acf
221•arianvanp•3h ago•84 comments

Calculus for Mathematicians, Computer Scientists, and Physicists [pdf]

https://mathcs.holycross.edu/~ahwang/print/calc.pdf
160•o4c•5h ago•31 comments

780k Windows Users Downloaded Linux Distro Zorin OS in the Last 5 Weeks

https://blog.zorin.com/2025/11/18/test-the-upgrade-from-zorin-os-17-to-18-and-celebrating-1-milli...
51•m463•2h ago•32 comments

Show HN: Gitlogue – A terminal tool that replays your Git commits with animation

https://github.com/unhappychoice/gitlogue
24•unhappychoice•5d ago•2 comments

Shaders: How to draw high fidelity graphics with just x and y coordinates

https://www.makingsoftware.com/chapters/shaders
287•Garbage•9h ago•67 comments

Racket v9.0

https://blog.racket-lang.org/2025/11/racket-v9-0.html
223•Fice•8h ago•72 comments

Mount Proton Drive on Linux using rclone and systemd

https://github.com/dadtronics/protondrive-linux
71•cf100clunk•5h ago•27 comments

"Good engineering management" is a fad

https://lethain.com/good-eng-mgmt-is-a-fad/
83•jkbyc•1h ago•25 comments

Editing Code in Emacs

https://redpenguin101.github.io/html/posts/2025_11_23_emacs_for_code_editing.html
92•redpenguin101•6h ago•22 comments

A time-travelling door bug in Half Life 2

https://mastodon.gamedev.place/@TomF/115589875974658415
236•AshleysBrain•1d ago•19 comments

Meet the AI workers who tell their friends and family to stay away from AI

https://www.theguardian.com/technology/2025/nov/22/ai-workers-tell-family-stay-away
17•breve•43m ago•2 comments

After my dad died, we found the love letters

https://www.jenn.site/after-my-dad-died-we-found-the-love-letters/
688•eatitraw•13h ago•326 comments

HumanLayer (YC F24) Is Hiring Founding Engineers

https://www.ycombinator.com/companies/humanlayer/jobs/oBCZzc7-founding-product-engineer
1•dhorthy•4h ago

Court filings allege Meta downplayed risks to children and misled the public

https://time.com/7336204/meta-lawsuit-files-child-safety/
264•binning•6h ago•116 comments

A monopoly ISP refuses to fix upstream infrastructure

https://sacbear.com/xfinity-wont-fix-internet/
556•vedmed•20h ago•279 comments

Spectral rendering, part 2: Real-time rendering

https://momentsingraphics.de/SpectralRendering2Rendering.html
45•todsacerdoti•1w ago•13 comments

Pyrotechnic Display Design Software

https://github.com/giuseppe-coco/FireShow
27•Giuseppe_Coco•6d ago•10 comments

Terence Tao: At the Erdos problem website, AI assistance now becoming routine

https://mathstodon.xyz/@tao/115591487350860999
113•dwohnitmok•1d ago•11 comments

MCP Apps: Extending servers with interactive user interfaces

http://blog.modelcontextprotocol.io/posts/2025-11-21-mcp-apps/
143•mercury24aug•18h ago•99 comments

Forever Object: The Staple-Less Oceanus Brass Stapler

https://www.core77.com/posts/139027/Forever-Object-The-Staple-less-Oceanus-Brass-Stapler
5•surprisetalk•4d ago•3 comments

Garibaldi, history's sexiest revolutionary?

https://www.historyextra.com/period/victorian/historys-sexiest-revolutionary-meet-the-mesmerising...
71•thomassmith65•1w ago•52 comments

Unusual circuits in the Intel 386's standard cell logic

https://www.righto.com/2025/11/unusual-386-standard-cell-circuits.html
199•Stratoscope•18h ago•49 comments

SVG.js v3.2

https://svgjs.dev/docs/3.2/
66•eustoria•4h ago•11 comments

Almost all Collatz orbits attain almost bounded values

https://mathvideos.org/2023/terence-tao-almost-all-collatz-orbits-attain-almost-bounded-values/
88•measurablefunc•6d ago•29 comments

Apple to focus on 'quality and underlying performance' with iOS 27 next year

https://9to5mac.com/2025/11/23/apple-focusing-on-software-quality-improvements-ios-27-next-year-r...
49•jb1991•3h ago•21 comments

The Inference Economy: Why demand matters more than supply

https://frontierai.substack.com/p/the-inference-economy-part-ii
13•cgwu•1w ago•3 comments

GCC SC approves inclusion of Algol 68 Front End

https://gcc.gnu.org/pipermail/gcc/2025-November/247020.html
214•edelsohn•19h ago•89 comments

Sit – Create StuffIt archives on Unix systems

https://github.com/thecloudexpanse/sit
51•classichasclass•6d ago•6 comments

Typechecking is undecideable when 'type' is a type (1989) [pdf]

https://dspace.mit.edu/bitstream/handle/1721.1/149366/MIT-LCS-TR-458.pdf
40•birdculture•5d ago•19 comments
Open in hackernews

Optimizing Heap Allocations in Go: A Case Study

https://www.dolthub.com/blog/2025-04-18-optimizing-heap-allocations/
54•ingve•7mo ago

Comments

returningfory2•7mo ago
> It's possible that this is a compiler bug. It's also possible that there's some fringe case where the reference actually can escape via that method call, and the compiler doesn't have enough context to rule it out.

Here's an example, I think: suppose the method spawns a new goroutine that contains a reference to `chunkStore`. This goroutine can outlive the `ReadBytes` function call, and thus Go has to heap allocate the thing being referenced.

In general, this kind of example makes me suspect that Go's escape analysis algorithm treats any method call as a black box and heap allocates anything being passed to it by reference.

athorax•7mo ago

  The notion of stack vs heap allocation isn't something that even exists in the language. Users are expected to not worry about it... until, of course, until you're optimizing performance and you need to worry about it.
This is one of the best and worst aspects with Go. Anyone can write pretty performant code without having to understand the underlying memory model. If you get to the point where you are trying to optimize at this level, the benefits of using a more approachable language start to fall apart and you spend more time chasing implementation details.
nu11ptr•7mo ago
In general, it is a win, since it lets you code faster and 80-90% the performance doesn't matter. Over time, you learn generally what leads to heap allocs and what doesn't. In rare hot spot, using -m will show you the allocations and you can optimize.
athorax•7mo ago
I would generally agree. It's good enough performance for most applications. For those that it isn't fast enough for (even with optimizations like these), it still allows for rapid prototyping to arrive at that conclusion.
Ygg2•7mo ago
I think same applies to any GC language. Ride is fun until GC starts either taking too much time, too much memory or taking too much of CPU.
Thaxll•7mo ago
At least you have the tools to understand where things get allocated.
38•7mo ago
instead of this:

    t.Buf = []byte{}
you can just do:

    t.Buf = nil
rsc•7mo ago
Those are semantically different (one is nil and one is not) but neither allocates.
virexene•7mo ago
I wonder if the reason the escape analysis fails could be that, for small enough types, the concrete value is directly inlined inside the interface value, instead of the latter being "a smart pointer" as the author said. So when the compiler needs to take a reference to the concrete value in `vs.chunkStore`, that ends up as an internal pointer inside the `vs` allocation, requiring it to be on the heap.

Either that or the escape analysis just isn't smart enough; taking a pointer to an internal component of an interface value seems like a bit of a stretch.

Snawoot•7mo ago
I had an attempt to improve performance of memory allocation with the use of arenas in Go and I chose freelist datastructure[1]

It almost doesn't use unsafe except one line to cast pointer types. I measured practical performance boost with "container/list" implementation hooked to my allocator. All in all it performs 2-5 times faster or up to 10 times faster if we can get rid[2] of any and allocations implied by the use of it.

All in all, heap allocations can be not that bad at all if you approach them from another angle.

[1]: https://github.com/Snawoot/freelist

[2]: https://github.com/Snawoot/list