frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Reproducible C++ builds by logging Git hashes

https://jgarby.uk/posts/git_repr/
7•j4cobgarby•5d ago

Comments

j4cobgarby•5d ago
Here's a short writeup of a bit of my build system for a project I'm working on. It's pretty simple, and is just a relatively clean way of recording the repository state when code was compiled, so I can reproduce results later on. Just thought the interaction between git, cmake, and C++ was a bit nice!
chuckadams•57m ago
Give Nix a look sometime, it takes this to a whole new level by including all of the build dependencies in the hash, and their build dependencies and so on. The standard flake workflow even includes the warning about having uncommitted files.
ikety•15m ago
It's quite odd to me that Nix or something similar like Mise isn't completely ubiquitous in software. I feel like I went from having issues with build dependencies to having that aspect of software development completely solved as soon as I adopted Nix.

I absolutely can't imagine not using some kind of tool like this. Feels as vital as VCS to me now.

danudey•21m ago
A simpler way to do this, especially if you do tagging in your repositories, is to use `git describe`. For example:

    $ git describe --dirty
    v1.4.1-1-gde18fe90-dirty
The format is <the most recent tag>-<the number of commits since that tag>-g<the short git hash>-<dirty, but only if the repo is dirty>.

If the repo isn't dirty, then the hash you get excludes that part:

    $ git describe --dirty
    v1.4.1-1-gde18fe90
If you're using lightweight tags (the default) and not annotated tags (with messages and signatures and etc) you may want to add `--tags` because otherwise it'll skip over any lightweight tags.

The other nice thing about this is that, if the repo is not -dirty, you can use the output from `git describe` in other git commands to reference that commit:

    $ git show -s v1.4.1-1-gde18fe90
    commit de18fe907edda2f2854e9813fcfbda9df902d8f1 (HEAD -> 1.4.1-release, origin/HEAD, origin/1.4.1-release)
    Author: rockowitz <rockowitz@minsoft.com>
    Date:   Sun May 28 17:09:46 2023 -0400

        Create codacy.yml

I am just sooo sick of AI prediction content, let's kill it already

https://verdikapuku.com/posts/i-am-just-so-sick-of-ai-prediction-content/
55•frenchmajesty•51m ago•40 comments

Building more with GPT-5.1-Codex-Max

https://openai.com/index/gpt-5-1-codex-max/
56•hansonw•43m ago•39 comments

Launch HN: Mosaic (YC W25) – Agentic Video Editing

https://mosaic.so
62•adishj•3h ago•49 comments

Europe is scaling back GDPR and relaxing AI laws

https://www.theverge.com/news/823750/european-union-ai-act-gdpr-changes
101•ksec•4h ago•108 comments

To Launch Something New, You Need "Social Dandelions"

https://www.actiondigest.com/p/to-launch-something-new-you-need-social-dandelions
6•curiouska•31m ago•0 comments

Show HN: DNS Benchmark Tool – Compare and monitor resolvers

https://github.com/frankovo/dns-benchmark-tool
9•ovo101•52m ago•4 comments

Adventures in upgrading Proxmox

https://blog.vasi.li/adventures-in-upgrading-proxmox/
34•speckx•2h ago•21 comments

Thunderbird Adds Native Microsoft Exchange Email Support

https://blog.thunderbird.net/2025/11/thunderbird-adds-native-microsoft-exchange-email-support/
119•babolivier•6h ago•23 comments

The $1k AWS Mistake

https://www.geocod.io/code-and-coordinates/2025-11-18-the-1000-aws-mistake/
217•thecodemonkey•8h ago•180 comments

The Future of Programming (2013) [video]

https://www.youtube.com/watch?v=8pTEmbeENF4
107•jackdoe•6d ago•69 comments

I made a down detector for down detector

https://downdetectorsdowndetector.com
465•gusowen•18h ago•143 comments

The peaceful transfer of power in open source projects

https://shkspr.mobi/blog/2025/11/the-peaceful-transfer-of-power-in-open-source-projects/
163•edent•5h ago•109 comments

Netherlands returns control of Nexperia to Chinese owner

https://www.bloomberg.com/news/articles/2025-11-19/dutch-hand-back-control-of-chinese-owned-chipm...
13•boovic•28m ago•3 comments

Multimodal Diffusion Language Models for Thinking-Aware Editing and Generation

https://github.com/tyfeld/MMaDA-Parallel
104•lnyan•9h ago•10 comments

I just want working RCS messaging

https://wt.gd/i-just-want-my-rcs-messaging-to-work
251•joecool1029•17h ago•235 comments

How two photographers transformed RAW photo support on Mac

https://petapixel.com/2025/11/14/how-two-photographers-transformed-raw-photo-support-on-mac/
28•gbugniot•4d ago•8 comments

Outdated Samsung handset linked to fatal emergency call failure in Australia

https://www.theregister.com/2025/11/18/samsung_emergency_call_failure/
48•doener•2h ago•31 comments

What Killed Perl?

https://entropicthoughts.com/what-killed-perl
44•speckx•8h ago•87 comments

Control LLM Spend and Access with any-LLM-gateway

https://blog.mozilla.ai/control-llm-spend-and-access-with-any-llm-gateway/
6•aittalam•1w ago•0 comments

Emoji evidence errors don’t undo a murder conviction

https://blog.ericgoldman.org/archives/2025/11/emoji-evidence-errors-dont-undo-a-murder-conviction...
60•hn_acker•2h ago•55 comments

Reproducible C++ builds by logging Git hashes

https://jgarby.uk/posts/git_repr/
7•j4cobgarby•5d ago•4 comments

Your smartphone, their rules: App stores enable corporate-government censorship

https://www.aclu.org/news/free-speech/app-store-oligopoly
362•pabs3•5h ago•179 comments

Programming the Commodore 64 with .NET

https://retroc64.github.io/
93•mariuz•5d ago•27 comments

Gymkhana's 1978 Subaru Brat with 9,500-RPM Redline, Active Aero

https://www.thedrive.com/news/gymkhanas-1978-subaru-brat-with-9500-rpm-redline-and-active-aero-is...
50•PaulHoule•1w ago•57 comments

Build vs. Buy: What This Week's Outages Should Teach You

https://www.toddhgardner.com/blog/build-vs-buy-outages
25•toddgardner•2h ago•20 comments

Pebble, Rebble, and a path forward

https://ericmigi.com/blog/pebble-rebble-and-a-path-forward/
449•phoronixrly•1d ago•231 comments

Ultima VII Revisited

https://github.com/ViridianGames/U7Revisited
200•erickhill•1w ago•72 comments

Show HN: Browser-based interactive 3D Three-Body problem simulator

https://trisolarchaos.com/?pr=O_8(0.6)&n=3&s=5.0&so=0.00&im=rk4&dt=1.00e-4&rt=1.0e-6&at=1.0e-8&bs...
207•jgchaos•1d ago•95 comments

Itiner-e: A high-resolution dataset of roads of the Roman Empire

https://www.nature.com/articles/s41597-025-06140-z
36•benbreen•1w ago•5 comments

Learning to Boot from PXE

https://blog.imraniqbal.org/learning-to-boot-from-pxe/
50•speckx•7h ago•28 comments