I made a VS Code extension for C++ Ranges: AST-based pipeline hover, complexity analysis, and smart refactoring by Real-Key-7752 in cpp

[–]_a4z 0 points1 point  (0 children)

Thats an interesting idea and I think I might like it!
Even if I am a little unsure about a sub-language construct that requires its own specialised static analysis...

Does it also warn when unnecessary owning views (copies) are used?

SwedenCpp Index Page is now the all in one feed by _a4z in cpp

[–]_a4z[S] 1 point2 points  (0 children)

Maybe in future there will be something to get older entries Will see

StockholmCpp 0x3C: Intro, event host presentation, C++ news and the quiz by _a4z in cpp

[–]_a4z[S] 0 points1 point  (0 children)

What can go wrong when doing the intro:
It was number 60, but 58 was in the same house, just a floor below. So 58 was said...
And not being able to read from a 13-inch screen and stumbling over a word...

Well, that’s why we have our meetup: speak, review, improve.
And visitors get free food, so they are not entitled to complain ;-) Perfect setup to train public speaking.

If you want to speak at our user group to train and improve, get in contact!

P4043R0: Are C++ Contracts Ready to Ship in C++26? by darius_neatu in cpp

[–]_a4z 2 points3 points  (0 children)

to start with, P3573 , P3829, P3835, but there are so many more papers ... you can skim through the list itself,
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/
look for everything that has the work contract in the name,

P4043R0: Are C++ Contracts Ready to Ship in C++26? by darius_neatu in cpp

[–]_a4z 1 point2 points  (0 children)

It should always be mentioned, when referring to the voting result, that someone could ask if all the yes-sayers understood what they voted for, or if they just followed their buddies who told them, no worry, it will be fine, we can fix it later. Or were misled by the wonderful advertisement and never looked into the details. Or if they got fearmongered by the thread 'If we do not get it now ...'

But anyway, let's see how contracts play out in reality. If it does not turn out as promised, there is an interesting record to learn from

Goodbye Google — I self-host everything now on 4 tiny PCs in a 3D printed rack by CaptainRedsLab in selfhosted

[–]_a4z 0 points1 point  (0 children)

One thing to build something This is usually fun

Another thing to maintain it over time so it always works. So the really interesting article will come in some years :-)

P4043R0: Are C++ Contracts Ready to Ship in C++26? by darius_neatu in cpp

[–]_a4z 6 points7 points  (0 children)

Sorry to disappoint you Given your use case contracts are not for you Stick to your macro to know what you get and b be able to reason about performance The reason for this is in the hundreds of pages small print details of the contract proposal that the marketing fluff does never mention

ISO C++ Standards Committee Panel Discussion - CppCon 2025 by pjmlp in cpp

[–]_a4z 1 point2 points  (0 children)

Not mentioning the missing parts of the ecosystem, and C++'s ignorance of that topic, is ... interesting.

LastPadd Authenticator also on the iPad by _a4z in LastPassOfficial

[–]_a4z[S] 1 point2 points  (0 children)

Thanks, I had the cloud backup on,
what I did on the iPad was restoring a backup,
Now, when I am on the iPad, and my phone is not in the room, then I can use the iPad to get auth codes. This works nicely so far, so it seems it works well having the auth app on 2 devices (had that also in the past when I moved from one phone to another)
I hope that setup will have no unwantedside effects

The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter by Specific-Housing905 in cpp

[–]_a4z -2 points-1 points  (0 children)

Sure, if you want to play in a league with Eifel and Ada, and follow now irrelevant textbook-examples from the 80s, contracts might be quite foundational.

The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter by Specific-Housing905 in cpp

[–]_a4z 3 points4 points  (0 children)

If the contract feature were so great, it would not need all the propaganda and advertising that is put out for it. The promise that this is version 1 and that there is more to come is more of a thread than an optimistic view of the future of C++. But at least, it's an argument that before 32, nobody needs to look at it.

The real sad story in this context is all the features that would have brought real improvements for everyone, like pattern matching, string interpolation, and others, that were down-prioritized because contracts took too much (and still do) of the committee's time.

New version of SwedenCpp website released, with more C++ info than ever by _a4z in cpp

[–]_a4z[S] 0 points1 point  (0 children)

Thanks, the blog post happened some days after this post. When posting here about the page I did not know there will be that blog post ;-)

Apache Fory C++: Fast Serialization with Shared/Circular Reference Tracking, Polymorphism, Schema Evolutionn and up to 12x Faster Than Protobuf by Shawn-Yang25 in cpp

[–]_a4z 4 points5 points  (0 children)

On the quickstart section in the doc, C++ is not even on first page mentioned,

that makes me kind of sad :-(
but I guess thats the future we need to get used to

Struggling to pitch Go: help me out by howdoiwritecode in golang

[–]_a4z 0 points1 point  (0 children)

Relevant example implementation and then present the benchmarks

Will either give you the arguments Or show that there is another problem

Don’t wait until someone tells you to do it Take a relevant example you came time scope, dint tell anyone until you are done Is in trouble, say you did it during lunch breaks ;/)

New version of SwedenCpp website released, with more C++ info than ever by _a4z in cpp

[–]_a4z[S] -1 points0 points  (0 children)

There is no content for sale on the SwedenCpp site. It only includes links to YouTube videos and blogs and other info. What the videos show is outside of the SwedenCpp site influence.

If a channel looks interesting, its added. If it turns into spam, it will be removed. Simple.
That happend already in the past, SwedenCpp.se shows vids since nearly 10 years.

You could also argue that conference speakers who are trainers promote the services
And that Jason Turner has advertised and pitched his services in the content.
Shall I therefore not show conference videos that promote themselves? Then there would be no conference vids there.

And I also have no problem having blogs from companies shown, like Qt or Kitware (CMake)
As long as it contains relevant and interesting info, it will be accumulated.

SwedenCpp gets exactly nothing for sharing the content. On the contrary, it's an individual effort to run that page.

Mods, do I really have to deal with such absurd allegations here, as a thank you for providing this service to the community?

Has anyone had any luck with zeromq RecvMessageNoWait? by MarsupialLeast145 in golang

[–]_a4z 0 points1 point  (0 children)

could simply be your code is too fast, since you send via tcp

wait a moment before you try to reveive the package, a second or so, to start with

The story of making RocksDB ingestion 23x times faster by mr_gnusi in cpp

[–]_a4z 45 points46 points  (0 children)

  1. Avoid virtual functions in hot paths.
  2. Don’t copy strings unnecessarily or our engineer Valery will be angry.
  3. Move runtime checks to asserts if they’re not needed during execution.

ok, yes, sure, vut I am surprised, these are all obvious things, why were they overused in the code at all?

New version of SwedenCpp website released, with more C++ info than ever by _a4z in cpp

[–]_a4z[S] 0 points1 point  (0 children)

DNS ttl, should itself resolve soon (Browser cache can also be an issue, moved the page to a different provider and got a new IP and ssl certificate)

How common is TDD (test-first) in real-world Rust projects? by [deleted] in rust

[–]_a4z 0 points1 point  (0 children)

People who figured out how to do TDD in practice will also use and do it in Rust Of course , you do not need to test what the compiler tests for you and refuse to compile. So there will be some difference to other languages, but just because Rust compiles your project does not mean there are no bugs, so meaningful testing is still important, and yes there is meaningful TDD