frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Fault: A lightweight C++20 crash handler and panic library

https://github.com/Ridrik/fault
1•Ridrik•1h ago

Comments

Ridrik•1h ago
Hello! I've been developing a lightweight tool to detect, alert, and log whenever a fatal condition has occurred. I'm sharing it here today in case it's useful for your own projects.

I started this as a utility for my own project because I wanted both visibility and traceability on all common software faults, without the need to inject or know about complex dependencies.

fault is a Linux and Windows library for C and C++ users, implemented in C++20. Key features:

- Broad coverage Handles POSIX signals, Windows SEH exceptions, std::terminate's, as well as having explicit panic and panic-based assertions, - Signal-safe by default: Prioritizes logging unresolved, safe traces within POSIX signal handlers. Safe trace cannot be written? If the user permits, fault will perform a best-effort attempt to do a regular trace while imposing safeguards against deadlocks and recursive signals., - Concurrency Resilient: If multiple threads trigger a fatal condition simultaneously, fault ensures only the first one enters the mechanism. It prevents the system from shutting down prematurely during the microseconds needed to log and display the report or popup., - Panic and Modern C++ assertions, backed with fault unified handling. Includes FAULT_ASSERT, fault::panic, fault::expect, with support for customizable strings, formatted arguments, and deferred callables. Whether debug only or also release, and whether you'll want source location or not, there's an equivalent expression present., - Cpptrace integration: Whereas hidden by default, if you use cpptrace, fault can automatically log propagated traces from exceptions and saved requested traces whenever a panic or std::terminate trigger.,

Link to repo: https://github.com/Ridrik/fault

fault is a work in progress, and new features may happen in the coming weeks. Feel free to try it out for yourself. Feedback appreciated.

Two Thinking Machines Lab Cofounders Are Leaving to Rejoin OpenAI

https://www.wired.com/story/thinking-machines-lab-cofounders-leave-for-openai/
2•monkeydust•1m ago•0 comments

Nuudel: Non-Tracking Appointment Tool

https://nuudel.digitalcourage.de/
1•doener•2m ago•0 comments

There Is No Green Transition, and This Book Explains Why

https://www.highspeed.blog/too-much-more/
2•doener•5m ago•0 comments

Iran's internet shutdown is now one of its longest ever, as protests continue

https://techcrunch.com/2026/01/15/irans-internet-shutdown-is-now-one-of-its-longest-ever-as-prote...
6•ukblewis•5m ago•0 comments

María Corina Machado says she presented Trump with her Nobel peace prize medal

https://www.theguardian.com/world/2026/jan/15/maria-corina-machado-says-she-presented-trump-with-...
2•vinni2•5m ago•0 comments

DHS used neo-nazi anthem for recruitment after fatal Minneapolis shooting

https://theintercept.com/2026/01/13/dhs-ice-white-nationalist-neo-nazi/
1•anigbrowl•6m ago•0 comments

Yacv (Yet Another Compiler Visualizer): LL and LR Parser Animations

https://github.com/ashutoshbsathe/yacv
1•fanf2•11m ago•0 comments

Releasing Rainbow Tables to Accelerate Net-NTLMv1 Protocol Deprecation

https://cloud.google.com/blog/topics/threat-intelligence/net-ntlmv1-deprecation-rainbow-tables
1•notmine1337•11m ago•0 comments

A Powerful New Stealth Model from a Top OSS Lab

https://blog.kilo.ai/p/announcing-a-powerful-new-stealth
1•emschwartz•11m ago•0 comments

Show HN: React hook for real-time voice with Gemini Live API

https://github.com/deflectionrate/gemini-live-react
1•loffloff•14m ago•0 comments

Porsche Restored This 20-Year-Old Carrera GT to 'Zero-Kilometer Condition'

https://www.thedrive.com/news/porsche-restored-this-20-year-old-carrera-gt-to-zero-kilometer-cond...
1•PaulHoule•18m ago•0 comments

We built a free cross-app AI assistant inspired by Apple Intelligence

https://www.gethelios.xyz/
1•rogermas•19m ago•1 comments

Show HN: A WebGPU-based browser engine with "Blam "-style physics

2•goovbot•19m ago•0 comments

WP-Bench: A WordPress AI Benchmark

https://make.wordpress.org/ai/2026/01/14/introducing-wp-bench-a-wordpress-ai-benchmark/
2•chilipepperhott•25m ago•0 comments

The Cost of PostgreSQL Arrays

https://boringsql.com/posts/good-bad-arrays/
3•birdculture•26m ago•0 comments

General Availability for GitLab Duo Agent Platform

https://about.gitlab.com/blog/gitlab-duo-agent-platform-is-generally-available/
3•HieronymusBosch•28m ago•0 comments

Ring subscriptions mistakenly issue unexpected charges for the entire users base

https://piunikaweb.com/2026/01/15/ring-unexpected-ai-pro-charges/
2•artyom•30m ago•1 comments

The Daily Standup Is Broken: Why Modern Dev Teams Need a Reset

https://deadlocked.life/blog/standups-broken/
1•cebert•31m ago•0 comments

Musk Updates Starlink to Beat Iran's 'Kill Switch'–Makes It Free

https://www.forbes.com/sites/zakdoffman/2026/01/14/musk-updates-starlink-to-beat-irans-kill-switc...
7•Imustaskforhelp•35m ago•0 comments

Elon Musk's Grok 'Undressing' Problem Isn't Fixed

https://www.wired.com/story/elon-musks-grok-undressing-problem-isnt-fixed/
3•ceejayoz•35m ago•1 comments

Show HN: I built a 3D web-based multiplayer game with Claude Code

https://arena.ibuildstuff.eu
1•tombuildsstuff•38m ago•2 comments

The origin of the names of the days of the week in Portuguese

https://www.practiceportuguese.com/learning-notes/days-of-the-week/
2•DamonHD•39m ago•1 comments

European troops arrive in Greenland to boost the Arctic island's security

https://www.npr.org/2026/01/15/g-s1-106113/european-troops-arrive-greenland
19•geox•39m ago•5 comments

Using Git to attribute AI-generated code

https://github.com/mesa-dot-dev/agentblame
4•remolacha•43m ago•3 comments

Proof of Concept to Test Humanoid Robots

https://thehumanoid.ai/humanoid-and-siemens-completed-a-proof-of-concept-to-test-humanoidrobots-i...
1•0xedb•45m ago•0 comments

One Guy Crowdsourced More Than 500 Dashcams for Minneapolis to Film ICE

https://www.404media.co/how-one-guy-crowdsourced-more-than-500-dashcams-for-minneapolis-to-film-ice/
4•colinprince•46m ago•0 comments

OpenAI Partners with Cerebras

https://www.cerebras.ai/blog/openai-partners-with-cerebras-to-bring-high-speed-inference-to-the-m...
2•nezhar•46m ago•2 comments

Show HN: Turn GitHub Contributions Graph into Space Shooter Battle Field

https://github.com/czl9707/gh-space-shooter
1•zane__chen•49m ago•0 comments

Sony wiped over 1k shovelware games off the PlayStation store without warning

https://www.eurogamer.net/sony-wiped-over-1000-shovelware-games-off-the-playstation-store-without...
5•croes•51m ago•0 comments

Playing daily games at work? Timdle just launched work mode

https://www.timdle.com/work
2•maskinberg•52m ago•0 comments