@tsoding The question I have is "why do you want a pointer to an rvalue?" The definition of rvalues includes the fact that they are temporaries by definition. Their lifetime expires at the end of the expression. Passing one by pointer is just asking someone to save that pointer for later
@__phantomderp Reading that code reminds me why my C++ will *always* prefer enum class DoFoo { Yes, No } over boolean arguments.
Yes, I'll have one frobnicate(gork, true, false, false) please. Just let me yeet(false, true, 7, true, NULL) while we're at it.
Average bug report as a Linux desktop app dev: "ghostty doesn't work when skibidi-ng signals systemd-gears on wayland 42.1.2-2006-04-21 with a swahili keyboard layout using keyd, also I have a custom keyboard firmware to only activate the key on layer 69 on an xbox controller"
@filpizlo@IceSolst Google has Abseil
Ladybird/SerenityOS have AK
Having your own template library is a right of passage for any serious project/company /s
@pr0grammerMahin I mean. https://t.co/zSWFCmHn4F works, but wouldn't a template using a real build system like meson or CMake be better? Or even just a simple Makefile. If you're using an IDE that doesn't understand these, you need a better IDE or IDE plugin.
@londonboreal@Nekrolm Converting it to a template with a defaulted parameter is absolutely an ABI break though? That would completely change the mangling of the symbol. You should spend some time with readelf -Ws.
Chris Wanstrath has stepped down from our Board of Directors.
In his words, "The org is now over a year old with strong leadership and momentum, so this feels like the right time to formally step away. I’m grateful to have helped get the non-profit off the ground, and the progress you all have made is inspiring."
We’re grateful for all his support and wish him all the best!
Chromium has created a new distributed build tool called siso to be a drop-in replacement for ninja.
Or at least it's supposed to be. There's one ninja tool that I just can't live without, and I'm shocked they forgot it.
Luckily, it can be patched in.
https://t.co/opkx4YBmwo
Gotta love popular science posts. Tons of likes, a pre-print paper that claims the CMB is dead thanks to JWST.
And then you read the paper, where they say their new findings account for "1.4% or more" of the energy in the CMB.
https://t.co/wQB56IMKAc
Ahahahaha, the James Webb Space Telescope continues to deliver massive L’s for astrophysics.
A new paper shows that the “Cosmic Microwave Background Radiation” can be explained entirely by the energy of recently discovered Early Mature Galaxies — massive galaxies that the JWST discovered which crushed the existing models of galaxy formation because they formed much earlier than astrophysicists thought possible.
But now these EMGs turn out to account for the entire energy density of the CMB radiation, which was believed to be a “snapshot” of the first light emitted after the Big Bang, when the universe was ~379,000 years old. The variations in the CMB were believed to be relics of quantum fluctuations in the dense plasma of the Big Bang.
If these new findings are accepted (and there’s no reason not to accept them), then all of the following flagship findings of cosmology are thrown into question:
— Big Bang theory: foundational cosmological model undermined
— Cosmic inflation: loses observational justification
— ΛCDM model: key parameters become unreliable
— CMB power spectrum: loses predictive relevance
— Dark energy: inferred from CMB; may be mischaracterized
— Dark matter density: current estimates may be invalid
— Age of the universe: must be recalculated
— Primordial nucleosynthesis: needs alternative explanation
— Hubble constant (H₀): no longer reliably constrained by CMB
— Large-scale structure formation: initial conditions unclear
— Reionization epoch: timing and cause questioned
— Cosmic distance ladder: calibration may be flawed
— ISW (Integrated Sachs–Wolfe) effect: interpretation invalidated
— Acoustic peaks in CMB: no longer evidence of primordial sound waves
— Polarization of the CMB: origin needs reassessment
— Baryon acoustic oscillations (BAO): decoupled from CMB
— Cosmic curvature: flatness inference challenged
— Matter–radiation equality timing: re-evaluated
— Gravitational lensing of CMB: loses standard interpretation
— Planck and WMAP findings: foundational assumptions invalidated
My friends, do not listen to scientists when they act like they have everything figured out and you’re a retard for questioning them. They have abandoned the humility needed for scientific discovery long ago, and it’s only when new findings arrive with shock and awe that their hubris is exposed.
@mahaniok@awesomekling Not to forget: little old lady at the grocery store paying for her weekly groceries by handing the cashier a check she writes there in the checkout line.
@awesomekling Reminds me of how I felt hearing the stories of my grandmother doing all the books by hand at my uncle's store in the 70s parallel to the computer/calculator he had. Because she didn't trust the machine to "get it right". How can you balance your checkbook if it's not physical?
@wookash_podcast That abuse of ifdef makes me feel more than a little queasy. I seriously hope no one is writing new code that looks like that these days.
This blog from @github does a great job of explaining why so many people are excited about @ladybirdbrowser and willing to put money down to see our mission succeed. It's a privilege to work on FOSS that gets people excited about the future!
https://t.co/94dd5DgcpG
We're extremely happy to announce that the IRS has granted us 501(c)(3) tax-exempt status!
Donations to the Ladybird Browser Initiative are now tax-deductible, including those made in the past.
@yutongwu111140 If you look a the assembly in the example I linked in the previous tweet, the compiler inserted a "ud2" instruction at the end of setValue. That instruction is an intentional illegal instruction. You can get similar behavior calling std::unreachable() and actually reaching it.
@yutongwu111140 This sort of bug is why people say to enable all the common warnings. Your code was exhibiting undefined behavior before you changed the return type. This is caught by -Wreturn-type with clang and gcc.
https://t.co/j9tR0tHadw