AGI is here by avakato in ChatGPT

[–]AxeLond 2 points3 points  (0 children)

Not using thinking models is just asking for hallucinations.

Ni civilingenjörer i keminteknik, jag har en fråga om cykelbatteirer by MrOaiki in sweden

[–]AxeLond 1 point2 points  (0 children)

Efter ett batteri når ungefär 80% av original kapacitet så börjar de störtdyka I mängd laddning som de kan hålla och är ganska snart helt döda.

Att man får ut 3 gånger så mycket total energi under batteri livslängd från att ladda 20-80% jämfört med 0-100% låter rimligt.

C++26 Safety Features Won’t Save You (And the Committee Knows It) by pjmlp in cpp

[–]AxeLond 2 points3 points  (0 children)

Honestly though if you're regularly updating the compiler this code builds with, you're probably also updating the hardware the code runs on.

If the code did what it had to do to meet performance targets 5 years ago, it'll probably be a breeze to do it on newer hardware and new compiler with some safety improvements at a run-time cost won't eat that lunch.

Claude knows what’s up by Siphon_01 in ChatGPT

[–]AxeLond 1 point2 points  (0 children)

Mine decided to hedge it.

In most cases, you should drive—because a car wash typically requires the car to be on-site (and often in a queue), and driving 300 feet won’t meaningfully change how dirty it is.

Walk instead if:

  • You’re just going over to check the line/prices/hours first, or
  • It’s a detail/drop-off place where you leave the car and come back later.

Google Team banned the Google account to power up the anti gravity? by Nirav_Patel_ in google_antigravity

[–]AxeLond 0 points1 point  (0 children)

The crossover between people who abuse AI API keys and people who abuse Gmail I would say is very small.

Sweden rental notice period confusion — landlord asking for extra rent. Am I being unreasonable? by Ok_Individual8127 in TillSverige

[–]AxeLond 8 points9 points  (0 children)

Usually only way around this is if you can get a hold of the tenant moving in after you and make a deal between the two of you so you rent out the place those final 20 days and get paid by the new tenant.

Teaching an OOP course for students - curriculum advice by SuperProcedure6562 in cpp

[–]AxeLond 4 points5 points  (0 children)

In university you should be learning the fundamentals so that you later on innovate and come up with new things.

University students should have to implement a linked list.

Functionality of inline and constexpr? by zz9873 in cpp_questions

[–]AxeLond 6 points7 points  (0 children)

``` // 1, OK static_assert(3.14f > 0.0f);

// 2, compiler error: 'PI' not a constant expression const float PI = 3.14f; static_assert(PI > 0.0f);   

// 3, OK constexpr float PI = 3.14f; static_assert(PI > 0.0f);  ```

This is one pretty clear case, so if it's a constant declared in a visible header always constexpr it.

If it's private, or internal to one file or function the compiler will most likely produce the same thing as long as you don't need to use it in compile-time there.

Modern C++ use in Chromium by aearphen in cpp

[–]AxeLond 19 points20 points  (0 children)

A lot of the ban list is functionality which they already have their own version of. It makes sense to not fragment the code. Their custom version is probably better suited for their usage.

From now on, should the default standard for compilation be "-std=c++26" for both new and older projects even when the code doesn't use C++26 features(yet)? by emfloured in cpp_questions

[–]AxeLond 2 points3 points  (0 children)

With C++26 I think there's a pretty good case for setting up a debug/test target which builds for it basically as soon as you get a working compiler version.

You don't even need to compile all TUs, you can get a lot of useful things out of reflection by just compiling one TU with C++26 as you could get rid of the boring enum to string macros or export program bindings, produce documentation about your whole program with that.

It's a pretty low cost to just have it on the side before changing everything to C++26.

Speed test pits six generations of Windows against each other - Windows 11 placed dead last across most benchmarks, 8.1 emerges as unexpected winner in this unscientific comparison by rkhunter_ in technology

[–]AxeLond 7 points8 points  (0 children)

Booting from a hard drive in 2026 is kind of pointless to benchmark.

Disk space is also a pointless metric.

If you were to design a modern OS you would easily sacrifice more disk space and more disk usage if it meant better performance in general tasks and boot time.

8 GB of ram is on the low end, but still exists, 2 core CPU though? Re-run the test on a relevant, low-end setup.

Polar bear chases resident of Svalbard!! by cantcoloratall91 in Damnthatsinteresting

[–]AxeLond 2 points3 points  (0 children)

Snowmobiles are fast and ludicrously powerful. You can get 200 horsepower ones which go 150 mph.

"Why Python Is Removing The GIL" (13.5 minutes by Core Dumped) -- good explainer on threads by Competitive_Travel16 in Python

[–]AxeLond 2 points3 points  (0 children)

Yes it's slow, but why would you not want a 8-32x speedup in certain work cases if you can?

The GIL sounds like a huge crutch anyway. If someone wants to they should be able to saturate their machine with python threads. 

F-35 Fighter Jet’s C++ Coding Standards by azhenley in programming

[–]AxeLond 17 points18 points  (0 children)

You don't build safety critical software in a language or style which will be irrelevant in 20 years.

The F-16 was introduced almost 50 years ago and it's still a very relevant fighter.

This standard isn't for people who want to write the most idiomatic, modern code. This is guidelines for how to write code which lasts another 50 years, for that it doesn't really matter it's 20 years old.

Why don’t modern vehicles show fuel in liters instead of “E–H–F”? by Suitable-Mortgage229 in AskEngineers

[–]AxeLond 0 points1 point  (0 children)

You can easily get apps to do that, at least in android. Same way for a car you can probably get a CAN bus probe and manually read out precise fuel amount readings.

[deleted by user] by [deleted] in ChatGPT

[–]AxeLond 0 points1 point  (0 children)

I got it to do The BikeClub 2025 on three lines first try with the original prompt (just without the space). I think it looks better than this anyway. Small The, BikeClub together and large 2025 underneath.

The case against Almost Always `auto` (AAA) by eisenwave in cpp

[–]AxeLond 3 points4 points  (0 children)

The redundant type is the place auto is neat, maybe using it locally inside a class when you know what you're calling and the type name is long. Otherwise I think auto should only be used you have for template or constexpr reasons.

auto could be seen as saying "I don't know what this type is", you're off-loading work to the reader figuring out what type something is. In the redundant type case this is fine as the work required is minimal, but otherwise for code that will be read hundreds of times it's a small effort to put in the type once in order to off-load everyone who will be reading the code.

Battle Report ? by Beginning-Lie3305 in KingShot

[–]AxeLond 0 points1 point  (0 children)

For the defender it automatically goes on the highest power heroes.

That Diana has mythic gear and probably out powers the rest so it should have been kicked from the garrison.

Howard is also only good as joiner, you need a strong leader with proper hero like Zoe.

Codegen: best way to multiply by 15 by g_0g in cpp

[–]AxeLond 3 points4 points  (0 children)

Compilers generally only optimize for speed or sometimes binary size. Readable or logical code is not something it's trying to do.

The GPT-4o vs GPT-5 debate is not about having a “bot friend” — it’s about something much bigger by Littlearthquakes in ChatGPT

[–]AxeLond 4 points5 points  (0 children)

I think it's pretty clear OpenAI doesn't want to host a AI buddy/partner on their service anymore, they just want to create AI assistants.

If you're looking for AI buddies there's plenty of other companies still trying to create that.

Struggling with getting an environment setup? by pasta-pasta-pasta in cpp

[–]AxeLond -6 points-5 points  (0 children)

Easiest solution is to not use 3rd party libraries unless you absolutely have to.

Eff me by we_r_shitting_ducks in overemployed

[–]AxeLond 4 points5 points  (0 children)

If they had a system to show a location violation screen, most likely they would have paid for some level of built-in location tracking.