frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

FakeIt: C++ Mocking Made Easy

https://github.com/eranpeer/FakeIt
9•klaussilveira•3d ago

Comments

drysine•17h ago
"On GCC, optimization flag O2 and O3 are not supported. You must compile the test project with -O1 or -O0."

Sounds like they are patching objects in memory. Trompeloeil, for example, doesn't do that.

thrtythreeforty•41m ago
Yikes. "Broken with optimizations" means "broken" to me. Don't screw around with undefined behavior; either you had better avoid it, or your circumvention of the compiler had better be so airtight that it still works with optimizations.
ch33zer•2h ago
Seems very inspired by gmock. Wondering if there's a comparison somewhere?
vhantz•2h ago
I can not imagine when this type of library becomes useful. What's a usage example for this? What do you gain over rolling your own?
bluGill•2h ago
It is / or should be less tedious than a writting a custom class with the return values you need for everything.

I still recomend hand written fakes - but only because and if they model real behavior without the unwanted effects. I find my handwritten cods often has more lines of test code to ensure it works than the real implementation.

bluGill•1h ago
I like that they have the verify as a separare / latter step. Most users of google mock see a mock call and assume that they need to force the call - thus if you change the implementation you are breaking tests but the real code still works because that should be an implementation detail.

Grapevine cellulose makes stronger plastic alternative, biodegrades in 17 days

https://www.sdstate.edu/news/2025/08/can-grapevines-help-slow-plastic-waste-problem
204•westurner•5h ago•106 comments

Betty Crocker broke recipes by shrinking boxes

https://www.cubbyathome.com/boxed-cake-mix-sizes-have-shrunk-80045058
222•Avshalom•5h ago•234 comments

Gentoo AI Policy

https://wiki.gentoo.org/wiki/Project:Council/AI_policy
78•simonpure•4h ago•49 comments

Show HN: Dagger.js – A buildless, runtime-only JavaScript micro-framework

https://daggerjs.org
21•TonyPeakman•1h ago•16 comments

Which colours dominate movie posters and why?

https://stephenfollows.com/p/which-colours-dominate-movie-posters-and-why
32•FromTheArchives•2d ago•4 comments

OCSP Service Has Reached End of Life

https://letsencrypt.org/2025/08/06/ocsp-service-has-reached-end-of-life
135•pfexec•7h ago•43 comments

Analyzing the memory ordering models of the Apple M1

https://www.sciencedirect.com/science/article/pii/S1383762124000390
19•charles_irl•3d ago•2 comments

Titania Programming Language

https://github.com/gingerBill/titania
54•MaximilianEmel•4h ago•12 comments

Repetitive negative thinking associated with cognitive decline in older adults

https://bmcpsychiatry.biomedcentral.com/articles/10.1186/s12888-025-06815-2
360•redbell•15h ago•133 comments

Why We Spiral

https://behavioralscientist.org/why-we-spiral/
243•gmays•12h ago•71 comments

Models of European metro stations

http://stations.albertguillaumes.cat/
680•tcumulus•20h ago•135 comments

You’re a slow thinker. Now what?

https://chillphysicsenjoyer.substack.com/p/youre-a-slow-thinker-now-what
295•sebg•4d ago•126 comments

Writing an operating system kernel from scratch

https://popovicu.com/posts/writing-an-operating-system-kernel-from-scratch/
256•Bogdanp•11h ago•47 comments

Trigger Crossbar

https://serd.es/2025/09/14/Trigger-crossbar.html
41•zdw•5h ago•5 comments

Irrlicht Engine – a cross-platform realtime 3D engine

https://irrlicht.sourceforge.io/?page_id=45
39•smartmic•3d ago•23 comments

AMD Turin PSP binaries analysis from open-source firmware perspective

https://blog.3mdeb.com/2025/2025-09-11-gigabyte-mz33-ar1-blob-analysis/
24•pietrushnic•5h ago•3 comments

Nicu's test website made with SVG (2007)

https://svg.nicubunu.ro/
145•caminanteblanco•12h ago•82 comments

Cannabis use associated with quadrupled risk of developing type 2 diabetes

https://medicalxpress.com/news/2025-09-cannabis-quadrupled-diabetes-million-adults.html
99•geox•5h ago•60 comments

Introduction to GrapheneOS

https://dataswamp.org/~solene/2025-01-12-intro-to-grapheneos.html
138•renehsz•4d ago•147 comments

Read to forget

https://mo42.bearblog.dev/read-to-forget/
144•diymaker•14h ago•42 comments

AI False information rate for news nearly doubles in one year

https://www.newsguardtech.com/ai-monitor/august-2025-ai-false-claim-monitor/
60•hydrox24•2h ago•53 comments

Geedge and MESA leak: Analyzing the great firewall’s largest document leak

https://gfw.report/blog/geedge_and_mesa_leak/en/
405•yourapostasy•1d ago•121 comments

Website is hosted on a disposable vape

http://ewaste.fka.wtf/
140•BogdanTheGeek•5h ago•64 comments

FakeIt: C++ Mocking Made Easy

https://github.com/eranpeer/FakeIt
9•klaussilveira•3d ago•6 comments

Fukushima insects tested for cognition

https://news.cnrs.fr/articles/fukushima-insects-tested-for-cognition
119•nis0s•16h ago•59 comments

Observable Notebooks Data Loaders

https://observablehq.com/notebook-kit/data-loaders
71•mbostock•4d ago•16 comments

Show HN: A store that generates products from anything you type in search

https://anycrap.shop/
1048•kafked•1d ago•305 comments

SpikingBrain 7B – More efficient than classic LLMs

https://github.com/BICLab/SpikingBrain-7B
143•somethingsome•21h ago•40 comments

A single, 'naked' black hole confounds theories of the young cosmos

https://www.quantamagazine.org/a-single-naked-black-hole-rewrites-the-history-of-the-universe-202...
186•pykello•23h ago•85 comments

La-Proteina

https://github.com/NVIDIA-Digital-Bio/la-proteina
19•birriel•3d ago•4 comments