🥱 Oh joy, another riveting #discourse on the thrilling topic of #C++ singletons! Because nothing says excitement like a deep dive into the riveting world of optimizing singleton patterns. 💤 Spoiler: it's still a singleton, folks.
https://andreasfertig.com/blog/2026/03/best-performance-of-a-cpp-singleton/ #singletons #optimization #programming #tech #HackerNews #ngated
Best performance of a C++ singleton

In my Januray post, I focused on implementing a singleton correctly. This time I want to add performance into the mix and show you the...

Andreas Fertig
Playing around with #DependentTypes and started writing a (currently pretty silly) #Singletons library port for #PureScript - https://forge.id1.in/aj/purescript-singletons/

#Haskell #FunctionalProgramming
purescript-singletons

purescript-singletons

AJ's Forgejo: Beyond Code, We Forge

@ivan I added #crem from #haskell then dropped it when I realized that the wonderful module basically requires #dependenttypes via #singletons. I honestly adore the idea but the type system needs to do too many gymnastics until we can get a type system like #Idris2 or #Granule.

I am the type of person to run before I walk so it took one #pragmatic motherfucker to make that decision without feeling like I had given up something beautiful and elegant.

Have you come to a conclusion about #Singletons and the like?

If so, please share!

@allspark

is that what we call an infinite loop?

What's the word on #Singleton
Does use of #Singletons really inhibit the #modularity of desirably extensible code?

Please don't judge me. I just added two #singletons to this project of mine.

#PHP #code

@alexwild problem u need time to find the #singletons

Extremely proud of the research lab I'm part of (as of recently) \[ CG^2 \] http://computational-genomics.weebly.com/
A paper on the existence of particular #genomic regions in the #yeast genome that are enriched in #gene duplicates and how this affects the properties of nearby #singletons
https://academic.oup.com/nargab/article/4/4/lqac086/6827083?login=false

For more thorough explanation on much_loved_bird_site: https://twitter.com/guilderstern/status/1498964712662474753

#Genomics #Bioinformatics #ComputationalBiology

Computational Genomics Group

Follow us on Twitter . Follow our CG2-blog for news and updates on Computational Genomics Bioinformatics and other relevant topics. Subscribe to our NewsFeed for updates on our Group's Teaching and...

Computational Genomics Group

Many programmers will start screaming at you for even mentioning #SINGLETONS, but they will not explain the problem. Sheban a.k.a Tutemic has a lot of excellent game programming lectures where he presents programing patterns in a beginner-friendly way, then shows how to use them well, and how to use them badly. That's rare!

https://youtu.be/oMEgToqpAGc

Singletons are just another tool you need to understand to make games. Sometimes the best tool for the job - as long as you know the risks. #GameDev

Are singletons really that bad? Learn the singleton game programming pattern

YouTube