News for hackers. Stuff that matters.

bergesenha

Re:Trillions Spent and Big Software Projects Are Still Failing on Tuesday November 25, 2025 @03:43PM (#46050529)
Which is a good strategy, but do you think the afghans lost more than 2 trillion dollars?
The json library 'glaze' has working compile time reflection for MSVC, Clang and GCC using some tricks with aggregate initializable structs. In addition to being a performant json library, it comes with the functions glz::apply and glz::to_tie which I used for general tool calling straight from deserialized json.
I’m happy every time I see c++20 in the wild
Re:Const all the things? on Monday January 24, 2022 @09:55AM (#30058315)
Since C++17 I believe this is guaranteed.
Re:Famicom Party: Making NES Games in Assembly on Monday November 01, 2021 @02:09PM (#29070546)
This is one of the few well written and enjoyable tutorials on the topic. There is a lot of older texts out there with inaccurate and inconsistent language, ascii-diagrams etc… but this a joy to read and follow
We can store several years of surplus.
Re:On YouTube’s recommendation system on Friday September 17, 2021 @01:46PM (#28568545)
I second this. I also wish the algorithm would throw a real curveball once in a while too, something completely different to what I have been caught in.
I can vouch for this. I recently had a wonderful experience spanning a few months cultivating Psylocybe cubensis by salvaging spores from a bag of dried shrooms (spore prints are as illegal as the shrooms themselves here and really hard to come by). Coming from a physics background and never really having done work on living things it was almost magical watching the spores germinate on agar plates, transfering healthy mycelium away from contamination onto new clean plates, colonizing grain with the resulting mycelium and in the end fruiting several healthy flushes in a small plastic container in my cupboard. You really just need a kitchen and some commonly available groceries. I'm now cloning store-bought edible mushrooms and planning to grow enough for my own dinners throughout the warmer season. It's a very rewarding hobby.
There are differing fatwah for those living above the arctic circle to follow the sunrise/sunset of cities and communities further south.
Re:High-flying geese are ‘the astronauts of the bird world’ on Sunday September 08, 2019 @01:56PM (#20912113)
I wonder if these geese might use some breathing technique similar to what high altitude fighter pilots use above 40 000ft where even 100% oxygen is not enough partial oxygen pressure. Inhaling, then exhaling with resistance. Having experienced overflying migrating geese every year it certainly sounds like they restrict their exhaling with loud guttural sounds.
Around here the store has some cheap frames they use for advertizing. The problem is they look like something a crazy old aunt would wear, with wild coloring. If you want anything like normal glasses you have to pay for the expensive brands. It’s really sad seeing institutionalized and less fortunate people wearing those cheap glasses...
Re:How to implement strings on Saturday November 03, 2018 @05:31PM (#18372583)
And in C++, the type of a string literal expression is not const char* , but in fact const char (&)[], ie a reference to an array of chars. I was surprised to learn this as I always assigned a literal to a const char* , relying on pointer decay without knowing it.
Re:C++ Core Coroutines Proposal [pdf] on Friday September 21, 2018 @12:28PM (#18040815)
Do you have any examples of templates incurring a runtime cost at -O0 compared to a “no templates” approach?
Re:Kitty – a fast, featureful, GPU based terminal emulator on Thursday September 06, 2018 @06:53AM (#17925269)
From what I can gather from the results, st is among the faster ones when tested on linux.
I find that coffee in a thermos can stay good for almost a whole work day. Coffee on the machine in some sort of “keep warm” mode goes rancid within 30 mins or so. I have a suspicion it’s some reaction with the oxygen in the air...
C++17 has guaranteed RVO.
Re:You can't Rust that on Sunday April 01, 2018 @07:12PM (#16731077)
Thanks for the example, I understand. I missunderstood the poster above. I've come across quite a few coworkers who believe that move is something that happens on the compilers whim as part of some optimization and incorrectly assumed the same of the post i replied to.
Re:You can't Rust that on Saturday March 31, 2018 @04:28PM (#16725018)
1. I thought the cast to an rvalue reference would make overloads taking rvalue references be chosen during overload resolution. Since this is deterministic I thought whether something is moved or not would be quite guaranteed
My best guess is fuel efficiency at small size scales and is probably the same reason that make them economical in large buses, but not small cars. The usual intuition is explained using the Reynolds number, a dimensionless quantity that can help to predict the possibility of maintaining laminar flow or wether the flow breaks down into turbulence in the generator, drastically reducing efficiency in the compression-combustion-expansion cycle. As a side note, when I did a type rating on the Eurocopter AS350, I learned that the gas turbine could also run on normal automobile gasoline instead of Jet-A 1 for a limited amount of time in emergencies with drastically reduced limits on altitude, torque etc...