frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Measuring tech debt in tokens instead of engineering hours

https://heysoup.co/notes-tech-debt-token-function
1•heysoup•34s ago•0 comments

Show HN: Use AI once to build the automation, then run it with $0 in AI

https://www.visualbuild.me
2•visualbuildme•3m ago•0 comments

Show HN: VibeDrift – measuring AI coding drift across open source repos

https://www.vibedrift.ai
2•samiahmadkhan•4m ago•0 comments

The Boeing 747 Begins Its Final Descent

https://www.theatlantic.com/magazine/2026/07/boeing-747-retirement/687304/
2•dbl000•5m ago•0 comments

Cultures of Making and Relating

https://blog.khinsen.net/posts/2026/06/25/cultures.html
1•akkartik•6m ago•0 comments

Ghostty/Agents.md

https://github.com/ghostty-org/ghostty/blob/main/AGENTS.md
1•adithyassekhar•6m ago•0 comments

Technical feedback on a client-side microkernel enclave?

https://eunomia.adeno.ltd/portal/eunomia-demo.html
1•renrenrenren•7m ago•1 comments

Daytona is going closed source

https://www.daytona.io/dotfiles/updates/daytona-is-going-closed-source
1•ushakov•8m ago•0 comments

In Meta's Reality Lab: Your body's data was only valuable once

https://www.nplusonemag.com/online-only/online-only/in-the-reality-lab/
1•johnshades•8m ago•0 comments

The principle of least power (2007)

https://blog.codinghorror.com/the-principle-of-least-power/
1•pramodbiligiri•8m ago•0 comments

YouTube Video ID Allowance

https://michaelchadwick.info/blog/2026/02/02/youtube-video-id-allowance/
3•speckx•9m ago•1 comments

Everyone's Been Drawing Pterosaur Wings Wrong

https://nautil.us/everyones-been-drawing-pterosaur-wings-wrong-1282235
1•Brajeshwar•11m ago•0 comments

Object-oriented OS with many features of popular niche Linux distributions

https://github.com/Jonathan-R-Anderson/anonymOS/
2•rockbeatspaper•11m ago•1 comments

Show HN: Hikaru Labs – Bulk image and file processing, 100% in-browser

https://hikarulabs.xyz
2•CFBL•11m ago•1 comments

Calling everything AI-generated is lazy

https://00f.net/2026/06/25/stop-calling-everything-ai-generated/
1•Tomte•11m ago•0 comments

A Herculaneum scroll has been read for the first time

https://scrollprize.org/firstscroll
1•verditelabs•12m ago•1 comments

Billionaire's Warning: I'm Selling. The Crash Is Here [video]

https://www.youtube.com/watch?v=32u5T6lO8qk
2•hsnewman•14m ago•0 comments

Claude Code Hints at Fable Return

https://twitter.com/synthwavedd/status/2069813760622043483
4•thedebuglife•14m ago•3 comments

The Trump White House Is over Anthropic CEO Dario Amodei

https://www.wired.com/story/the-trump-white-house-is-over-anthropics-dario-amodei/
4•thedebuglife•15m ago•0 comments

What if some of history's earliest kings were queens?

https://www.nationalgeographic.com/history/article/history-earliest-kings-ur-sumeria
2•bookofjoe•15m ago•0 comments

Route Through Dead Zones. 302x Faster Than Google

https://www.elara-cortex.com/
1•jkuria•16m ago•0 comments

My New Life with the Palantir Chore Coat

https://www.theatlantic.com/technology/2026/06/palantir-chore-coat/687686/
2•jonah•16m ago•0 comments

Anthropic accuses Alibaba of largest distillation attack to date

https://www.cnbc.com/2026/06/24/anthropic-alibaba-distillation-campaign.html
2•paulddraper•16m ago•0 comments

Ask HN: Do you thank your agents when they did a good job?

3•ex-aws-dude•17m ago•2 comments

We're rebuilding financial services with AI

https://arcawealth.ai
2•smalt•21m ago•0 comments

US Supreme Court scales back Roundup cancer lawsuits

https://www.reuters.com/world/us-supreme-court-scales-back-roundup-cancer-lawsuits-2026-06-25/
5•Tomte•24m ago•0 comments

Complete text of carbonised Herculaneum scroll unlocked for first time

https://www.reuters.com/science/complete-text-carbonised-herculaneum-scroll-unlocked-first-time-2...
2•tylerchr•24m ago•0 comments

As banks close accounts, experts point to immigration crackdown

https://www.americanbanker.com/news/as-banks-close-accounts-experts-point-to-immigration-crackdown
11•petethomas•26m ago•2 comments

IBM Debuts First Sub-1 Nanometer Chip Technology

https://newsroom.ibm.com/2026-06-25-ibm-debuts-worlds-first-sub-1-nanometer-chip-technology
3•porridgeraisin•26m ago•0 comments

UK sales of electric vehicles just overtook petrol cars for the first time

https://www.carbonbrief.org/analysis-uk-sales-of-electric-vehicles-just-overtook-petrol-cars-for-...
4•j4mie•26m ago•1 comments
Open in hackernews

Zig's New BitCast Semantics and LLVM Back End Improvements

https://ziglang.org/devlog/2026/#2026-06-25
46•kouosi•1h ago

Comments

grayhatter•50m ago
> Quite long devlog coming up, apologies—I got a little carried away with this one!

mlugg, please don't apologize for creating something I actually want to read. I'm drowning in low effort garbage, the in depth technical explanation is a refreshing breath of fresh air.

Might as well apologize for creating a language without a garbage collector, sure most people are unwilling to think, but some of us like nice things and are actually willing to apply effort.

jeffbee•48m ago
It wasn't even long! It seemed much shorter than the typical LLM-expanded drivel that crosses the HN front page daily.
frail_figure•10m ago
> sure most people are unwilling to think, but some of us like nice things and are actually willing to apply effort.

Sir, you seem to have dropped your fedora.

simonask•39m ago
Interesting read, even as someone who isn't using Zig.

I wonder, these arbitrary-width integers... Is it actually even really worth it? My intuition is to prefer manually packing/unpacking things instead (in any language, even C that has bit width for struct fields), because it gives me a better mental picture of the code that is actually generated. Particularly for something like an signed odd-bit integer - what kind of code gets generated for sign-extension, a presumably common operation?

Does anybody have other experiences with them, one way or the other?

ismailmaj•33m ago
It's great for defining fancy floats used in machine learning

e.g. https://github.com/zml/zml/blob/33ced8fa078b3c7c8c709bd526ae...

y1n0•10m ago
As an fpga engineer dealing with bitwidths that are non-byte multiples is very normal and when I end up writing software for various reasons, I often miss it. Usually when trying to slice and parse or construct messages.

Obviously there are ways around pretty much everything, but it’s nice to have first class language support for bit slices.

hansvm•10m ago
IIRC, for "normal" bit widths the codegen basically uses the next larger machine type and preserves zero bits on the high end. An i3 is an i8 with five MSB zeroes (with more custom behavior for "packed" i3 values). It's UB to fill those with non-zero values. For larger bit widths, like u729, you concatenate many large machine types, the compiler generates instructions in an unrolled loop, and the LLVM optimization pass usually doesn't clean that up (though, now that integers are apparently not using the LLVM u729 implementation, perhaps there are some more optimization opportunities).

They're situationally useful, especially when performance isn't an enormous concern. That u729 example above came from a variant sudoku solver I wrote to aid developing new puzzles (easy to check the rough magnitude of the solution space for whatever idea I was mulling over and examine how restricted the board actually was -- just an intermediate step in puzzle design). It's not optimal (hard on the icache, can be hard on registers, other issues abound), but it's dead simple to use, and the assembly isn't terrible, beating all the normal solvers I saw floating around. It's a nice point on the laziness/correctness/good-enough-perf pareto curve.

Another comment mentioned this, but they're great in packed structs for representing weird numeric entities (I think I have a logarithmic number system floating around which does that).

One thing the language does quite a lot is use them to guard against certain classes of human error at compile time. It doesn't perfectly make impossible actions unrepresentable, but shoving a full u32 into a shift argument usually doesn't make sense, so the types are constrained to be smaller.

ozgrakkurt•8m ago
> Consider, for instance, bitcasting a [2]u8 to a u16. Under the old semantics, the result of this operation depends on the target endian: on big-endian targets, the first array element became the 8 most significant bits, whereas on little-endian targets, the first array element became the 8 least significant bits. Under the new semantics, because we only care about logical bit representation (which is endian-agnostic), the operation behaves identically on every target:

This is a huge mistake. You would never expect something like bitCast to do this.

I don't understand this approach. Why change something so simple and low level to be complicated and high level?

Just don't allow casting to u24, as it makes no sense unless you define u24 to be u32 sized as I think c standard does.

I think this approach as an idea is bad but at least just add another built-in that implements this higher level idea to not break a simple expectation and current behavior?