frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Woid – High-performance C++ type erasure and polymorphism library

https://github.com/akopich/woid
2•akopich•13h ago

Comments

akopich•13h ago
Author here. It started when I felt virtual functions and associated heap allocations are too expensive. Then I've realized std::any doesn't work for move-only types, let alone its SBO storage isn't configurable. And there we go...

Woid is an extremely customizable high-performance type-erasure header-only library. It provides containers like std::any, std::function and tools for non-intrusive polymorphism.

Key features:

- Value semantics

- Move-only type support

- Duck typing

- Performance

- Extreme customizability

In my current benchmarks it outperforms std::any, std::function, inheritance-based polymorphism and some well-known libraries like function2, boost::te and microsoft/proxy.

I want to make sure the comparison is fair, therefore, your advice on how to better tune the existing libraries is extremely welcome.

  struct Square {
      double side;
      double area() const { return side * side; }
  };
  struct Shape : woid::InterfaceBuilder
             ::Fun<"area", [](const auto& obj) -> double { return obj.area(); } >
             ::Build {
      auto area() const { return call<"area">(); }
  };
  
  auto a = Shape{Square{1.5}}.area();
And of course I'm here to answer your questions.

Americans Do Not Need a Left or Right Revolution

https://www.grumpychineseguy.com/p/americans-do-not-need-a-left-or-right
1•metadope•3m ago•0 comments

AI as the Engine of Application State

https://jonwoodlief.com/ai-app-state.html
1•jonfw•3m ago•0 comments

Show HN: A Constitutional Framework for Ethical AI Decision-Making

https://github.com/SebastFock/Sovereign-Engagement
1•StrategicEthos•4m ago•0 comments

Show HN: Ollie – Glass-box AI code editor with local models and no subscription

https://costa-and-associates.com/ollie
1•lcmeyer•5m ago•1 comments

Show HN: 0list – Self-hosted waitlist on Cloudflare Workers (free tier)

https://0list.d4mr.com/
1•d4mr•10m ago•0 comments

The Code-Only Agent

https://rijnard.com/blog/the-code-only-agent
1•emersonmacro•11m ago•0 comments

Ask HN: Have CES keynotes been especially bad this year?

1•Fr0styMatt88•12m ago•0 comments

Djot – A light markup language

https://github.com/jgm/djot
1•Svetlitski•15m ago•0 comments

Hochul and Mamdani Announce Plan to Make N.Y. Child Care Universal

https://www.nytimes.com/2026/01/08/nyregion/mamdani-hochul-child-care.html
2•toomuchtodo•16m ago•1 comments

Ask HN: Have AI tools like agents affected your motivation at work?

1•SpicyNoodle•17m ago•0 comments

Fun with Algebraic Effects – From Toy Examples to Hardcaml Simulations

https://blog.janestreet.com/fun-with-algebraic-effects-hardcaml/
2•agluszak•26m ago•0 comments

Third Pole

https://en.wikipedia.org/wiki/Third_Pole
2•vismit2000•27m ago•0 comments

One pixel attack for fooling deep neural networks

https://arxiv.org/abs/1710.08864
2•rafaepta•27m ago•0 comments

US to slash routine vaccine recommendations for children

https://www.theguardian.com/society/2026/jan/05/trump-rfk-jr-child-vaccine-recommendations
3•LopRabbit•28m ago•0 comments

Show HN: Fin2cents – Portfolio simulator I built because quant ≠ good investor

https://www.fin2cents.com/
2•amywangyx•31m ago•1 comments

Shelfware

https://en.wikipedia.org/wiki/Shelfware
1•chatmasta•33m ago•0 comments

Doom on a Cooking Pot by Aaron Christophel

https://www.youtube.com/watch?v=V5Jtc7wTbQ8
1•wewewedxfgdf•34m ago•0 comments

Academia and FOSS – an eOn case-study

https://rgoswami.me/posts/eon-acad-foss/
1•HaoZeke•35m ago•0 comments

Making Redstone circuits with SAT solvers

https://alloc.dev/2026/01/09/redstone_from_sat
1•Retro_Dev•36m ago•0 comments

Natural daylight during office hours improves glucose control

https://www.sciencedirect.com/science/article/pii/S1550413125004905
1•PaulHoule•36m ago•0 comments

Final Steps Underway for NASA's First Crewed Artemis Moon Mission

https://www.nasa.gov/missions/artemis/artemis-2/final-steps-underway-for-nasas-first-crewed-artem...
2•italophil•38m ago•3 comments

PowRSS – a blog directory for the indie web

https://powrss.com/
1•Curiositry•38m ago•0 comments

Don't believe "software never fails"

https://www.slater.dev/2026/01/dont-believe-software-never-fails/
2•sltr•39m ago•1 comments

AI Plays Rollercoaster Tycoon

https://labs.ramp.com/rct
1•kylejrp•40m ago•0 comments

Free Software

https://www.fsf.org/
1•Mdbabo•42m ago•0 comments

Google AI generating regular expressions = fail

1•prirun•43m ago•0 comments

Tessellated Materials

https://tessellated-materials.mpikg.mpg.de
1•twalichiewicz•44m ago•0 comments

Seeking mentees: new techniques for model diffing and data attribution

https://sparai.org/projects/sp26/recOtYE5Pujj6ddN1/
1•aranguri•44m ago•0 comments

Show HN: Visionary AI Video Generator – Create cinematic videos from text

https://visionaryvideo.app/
1•aykuty•45m ago•0 comments

Seeking mentees: richer evals to address reward hacking and eval awareness

https://sparai.org/projects/sp26/recYx6pnyHAzhPhAy/
1•aranguri•46m ago•0 comments