frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Automate compile_flags for C/C++ projects on the Zig build system

https://simonhartcher.com/posts/2025-09-08-announcing-compile-flagz/
31•deevus•3d ago

Comments

deevus•2d ago
I built this after struggling with editor integration while working on a game decompilation project. Zig's build system is great for C/C++ cross-compilation, but editors couldn't find any includes.

Technical approach: The tool hooks into build.zig, extracts dependency paths from Zig's cache, and generates a compile_flags.txt that clangd understands.

Currently supports -I flags only. Planning to add -D macros and -std flags based on feedback.

Happy to answer questions about implementation details.

hiccuphippo•2d ago
I wonder, would this help port projects from cmake to build.zig? I tried porting something (SDLPoP, a port of Prince of Persia) and the amount of macros I had to set up was overwhelming.
deevus•2d ago
It will help with the editor experience, but not the porting itself.

Porting to build.zig can be a bit of work. It does have some capability to use cmake config, which can help make the process easier.

I ported wildmidi across and consumed their config (I think it was cmake). I have a PR open there:

https://github.com/Mindwerks/wildmidi/pull/260

DrNosferatu•2d ago
Would love to decompile <3 "Screamer 2" <3

- A thought: would you care to write up a tutorial documenting the details of your efforts so far, so us others can try our hand at this with that reference?

It would be awesome!

deevus•2d ago
We were lucky enough to find a debug version of Fatal Racing. Having function names helped a lot. That made the process much easier.

I have been less involved with the actual decomp in ROLLER specifically. Though I was part of one of the key decomp pieces which was demystifying the games binary storage format. That part alone took me a year of on and off work.

Once that was done, the rest of the process was much easier.

I suggest if you want to have a go yourself, you just need to start brute forcing it with IDA or Ghidra.

Additionally find out what compiler was used. If it was watcom, there is a great tool called wcdatool that may be of use to you.

Legal win

https://ma.tt/2025/09/legal-win/
147•pentagrama•4h ago•108 comments

SkiftOS: A hobby OS built from scratch using C/C++ for ARM, x86, and RISC-V

https://skiftos.org
22•ksec•1h ago•7 comments

UTF-8 is a brilliant design

https://iamvishnu.com/posts/utf8-is-brilliant-design
487•vishnuharidas•12h ago•203 comments

How to Use Claude Code Subagents to Parallelize Development

https://zachwills.net/how-to-use-claude-code-subagents-to-parallelize-development/
41•zachwills•3d ago•18 comments

QGIS is a free, open-source, cross platform geographical information system

https://github.com/qgis/QGIS
376•rcarmo•13h ago•95 comments

Many hard LeetCode problems are easy constraint problems

https://buttondown.com/hillelwayne/archive/many-hard-leetcode-problems-are-easy-constraint/
487•mpweiher•16h ago•408 comments

Qwen 3 now supports ARM and MLX

https://www.alizila.com/qwen-ecosystem-expands-rapidly-accelerating-ai-adoption-across-industries/
17•dworks•1h ago•1 comments

FFglitch, FFmpeg fork for glitch art

https://ffglitch.org/gallery/
141•captain_bender•8h ago•20 comments

OCI Registry Explorer

https://oci.dag.dev/
31•jcbhmr•4h ago•5 comments

Life, work, death and the peasant: Rent and extraction

https://acoup.blog/2025/09/12/collections-life-work-death-and-the-peasant-part-ivc-rent-and-extra...
145•baud147258•5h ago•37 comments

Meow: Yet another modal editing on Emacs

https://github.com/meow-edit/meow
76•Bogdanp•5h ago•11 comments

The treasury is expanding the Patriot Act to attack Bitcoin self custody

https://www.tftc.io/treasury-iexpanding-patriot-act/
661•bilsbie•18h ago•478 comments

Raspberry Pi Synthesizers – How the Pi is transforming synths

https://www.gearnews.com/raspberry-pi-synthesizers-how-the-pi-is-transforming-synths/
12•zdw•2h ago•3 comments

I used standard Emacs extension-points to extend org-mode

https://edoput.it/2025/04/16/emacs-paradigm-shift.html
145•Karrot_Kream•9h ago•10 comments

Tips for installing Windows 98 in QEMU/UTM

https://sporks.space/2025/08/28/tips-for-installing-windows-98-in-qemu-utm/
64•Bogdanp•7h ago•8 comments

EU court rules nuclear energy is clean energy

https://www.weplanet.org/post/eu-court-rules-nuclear-energy-is-clean-energy
736•mpweiher•12h ago•572 comments

The Jeopardy game that changed everything still haunts the show 15 years later

https://slate.com/culture/2025/09/jeopardy-game-watson-questions-final-ken-jennings.html
20•voisin•3d ago•6 comments

Chatbox app is back on the US app store

https://github.com/chatboxai/chatbox/issues/2644
38•themez•4h ago•13 comments

3D modeling with paper

https://www.arvinpoddar.com/blog/3d-modeling-with-paper
267•joshuawootonn•16h ago•40 comments

Show HN: wcwidth-o1 – Find Unicode text cell width in no time for JavaScript/TS

https://github.com/dawsonhuang0/Wcwidth-O1
10•dawson0•3h ago•2 comments

My Quarterly System Health Check-In: Beyond the Dashboard

https://blog.nilenso.com/blog/2025/09/05/my-quarterly-system-health-check-in-beyond-the-dashboard/
4•sriharis•3d ago•0 comments

Rust: A quest for performant, reliable software [video]

https://www.youtube.com/watch?v=k_-6KI3m31M
126•raphlinus•22h ago•49 comments

Reduce bandwidth costs with dm-cache: fast local SSD caching for network storage

https://devcenter.upsun.com/posts/cut-aws-bandwidth-costs-95-with-dm-cache/
47•tlar•3d ago•15 comments

California lawmakers pass SB 79, housing bill that brings dense housing

https://www.latimes.com/california/story/2025-09-12/california-lawmakers-pass-sb-79-housing-bill-...
141•mji•5h ago•56 comments

Discovery of a new satellite or ring arc around Quaoar

https://phys.org/news/2025-09-discovery-moon-orbiting-mysterious-distant.html
33•wglb•1d ago•4 comments

OpenAI Grove

https://openai.com/index/openai-grove/
137•manveerc•14h ago•133 comments

Antlr-Ng Parser Generator

https://www.antlr-ng.org/
27•djoldman•3d ago•8 comments

How FOSS Projects Handle Legal Takedown Requests

https://f-droid.org/2025/09/10/how-foss-projects-handle-legal-takedown-requests.html
109•mkesper•13h ago•9 comments

Corporations are trying to hide job openings from US citizens

https://thehill.com/opinion/finance/5498346-corporate-america-has-been-trying-to-hide-job-opening...
497•b_mc2•14h ago•365 comments

Automate compile_flags for C/C++ projects on the Zig build system

https://simonhartcher.com/posts/2025-09-08-announcing-compile-flagz/
31•deevus•3d ago•5 comments