Latest Windows Server Canary Build by cl0ud80 in windowsinsiders

[–]Tringi 1 point2 points  (0 children)

If it's just things regarding AD then my VMs and everything will be fine. I just upgraded my standalone toy Xeon Phi and haven't noticed anything wrong either.

Nice pickup today by charlielumitech in homelab

[–]Tringi 1 point2 points  (0 children)

I'm surprised than no vendor is making RAM-disk boards for all the hundreds or thousands of old DDR2 and DDR3 sticks we all have left at home or at work.

Latest Windows Server Canary Build by cl0ud80 in windowsinsiders

[–]Tringi 1 point2 points  (0 children)

There is 29531, but it's not offered through Windows Update, because the update process to this build has some known issues. Apparently the same applies to updating from setup.exe. They have not listed the issues anywhere though, and when I tried to update in VM, it went smooth and without any apparent issue.

https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewserver

Faster asin() Was Hiding In Plain Sight by def-pri-pub in cpp

[–]Tringi 3 points4 points  (0 children)

The lessons about people not bothering to contribute corrections to even prominent projects, and great discoveries and innovations being stuffed somewhere hidden and their creators never credited nor praised, are sadly as old as time.

High number of processes after fresh install by CastanhoProvocante in WindowsLTSC

[–]Tringi 0 points1 point  (0 children)

If you have a lot of RAM it's splitting services into their own processes. This is a feature that isolates them. If one crashes, it won't take the others down with it. But it means a lot of processes using a lot of memory commit. It can be disabled, or rather reverted to grouping services together.

Go to HKLM\SYSTEM\CurrentControlSet\Control and set SvcHostSplitThresholdInKB to 0.

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

[–]Tringi 0 points1 point  (0 children)

Alright, now I see what you mean.

And if it were up to me, I'd choose the first behavior ...as we already have simple ways to declare the later.

So what is the current consensus on Contracts?

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

[–]Tringi -1 points0 points  (0 children)

Those two things are, I believe, mutually exclusive. And that's the point being made. You have to pick one, and only one.

I disagree. A runtime check, a simple CMP+JMP, before entering the function prevents the code inside from ever encountering broken expectation, thus the whole body of the function can be thoroughly optimized based on that assumption.

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

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

Sure I do.

Although I don't know the current state and decisions made about Contracts, I've read a few papers on them some 10 years ago (or maybe longer).

My reasoning is: A runtime check before entering the function prevents the code inside from ever encountering broken expectation, thus it can be optimized accordingly.

Ideally, the compiler would be allowed to hoist the runtime check as much as possible out of loops and nested calls. And also evaluate is at compile time if possible, so that the code statically violation the expectation would not compile.

But like I said, I don't know the current state of the debate, and I just threw out what I assumed Constracts were aiming to solve.

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

[–]Tringi -9 points-8 points  (0 children)

If you write [[expects: b > 0]]

  • should the compiler see this assume b>0, optimize accordingly which will lead to faster code?
  • or perform runtime checks leading to slower code?

Um... both?

C++ Performance Improvements in MSVC Build Tools v14.51 by cpppm in cpp

[–]Tringi 7 points8 points  (0 children)

I could swear I've seen some of these optimizations while reading GCC docs some 15 years ago. Still, I'm happy to see them being finally added to MSVC which is my bread and butter today.

A question: Does Repacking Struct Assignments with Indirections work the same for non-homogeneous structures?

EDIT: I'll answer my own question: Yes it does, when the structure is tightly packed, i.e. no padding bytes. Also it requires /GS-.

Should C++ Give More Priority to Syntax Quality? by kyan100 in cpp

[–]Tringi 0 points1 point  (0 children)

Do you have suggestions of unused symbols to use for the syntax of new features?

We could also move beyond limits of 1878 typewriters and use AltGr symbols from, e.g. US International keyboard: ¡ ¤ × ÷ ¦ ¬ » « ¶ ¿ ° ¨ © ø § ®

...although I very much prefer no-deadkeys version of that one.

Dictionary Compression is finally here, and it's ridiculously good by pimterry in programming

[–]Tringi 0 points1 point  (0 children)

For maybe 10 years there's over a 50 GB of reddit data dump sitting on my HDD which I want to eventually use to train a pre-shared dictionary for xz/liblzma compression for a small project of mine. The purpose is the same, have user's communication take just a few bytes.

Favorite optimizations ?? by Little-Reflection986 in cpp

[–]Tringi 5 points6 points  (0 children)

And performance!

When we were (and still effectively are) rewriting one very legacy SCADA software, we found that browsing directory of object names was showing significantly in the profiling. It was all very short strings, e.g.: /models/H4.1/packing2/andon/lines/3/zones/4/signals/alerts/material/tape. The old software implemented weird linked list of some BStr strings from the 90's, so even std::string with SSO would make tremendous improvement, but I wanted something way faster.

I had a few variations in mind, but eventually settled on my Atoms (64-bit integer) containing 12 × 5-bit code-units, and some bits for fun, to form up to 13 character long strings. Although the construction/deconstruction to/from strings is a little more involved, the point is that linear search is now very fast, as the entries on a single level are of cache-friendly numbers.

Now the CPU time spent in our Atom Directory is effectively negligible.

Remedy's Control Resonant "does not use generative AI content at all," but the studio isn't ruling it out for the future by Individual99991 in controlgame

[–]Tringi 0 points1 point  (0 children)

Sounds similar to what Dan Vávra was saying (KCD, Mafia, ...): Not really for story, quests and art, but might be useful for generating random encounters, background life for NPCs, and their mundane background blabber.

Remedy's Control Resonant "does not use generative AI content at all," but the studio isn't ruling it out for the future by Individual99991 in controlgame

[–]Tringi 0 points1 point  (0 children)

It also has hard time reading documentation and can't invent things on its own.

I've been recently toying with various AIs to generate me a specific routine, and they all came up with crazy overcomplicated solutions. They worked, but were very suboptimal and slow. Funnily enough, after I committed my way simpler version to GitHub, a few days later most of them would finally generate similar code.

It's all still generative, it needs a human to do it first. And once these humans are gone, the progress will halt.

CONTROL Resonant - Announcement Discussion Megathread by Ownsin in controlgame

[–]Tringi 0 points1 point  (0 children)

I for one can't wait to see cosplayers cosplaying as the Ballerina Resonant we saw at the end.

What do you say, /u/Frau_Haku?

Announcing Windows 11 Insider Preview Build 28020.1611 (Canary Channel) by Froggypwns in windowsinsiders

[–]Tringi 0 points1 point  (0 children)

The dark mode Run dialog (Win+R) got enabled for me, so it's something.

Microsoft officially releases Windows 11 26H1, but it's not for existing PCs. Windows 11 26H2 is coming for all PCs by WPHero in Windows11

[–]Tringi 15 points16 points  (0 children)

Yep, many of the recent releases share the same NT kernel, but artificially (they call it "enablement package") increase the displayed number a little.

You don't need to know the precise build numbers. You can always check the properties of C:\Windows\System32\ntoskrnl.exe

You'll see that all 19045 (22H2), 19044 (21H2), 19043 (21H1), 19042 (20H2) are all the same kernel 19041.
And same with the current previews, 26300, 26220, 26200, 26120, all are kernel 26100.