Quantcast
Channel: The Old New Thing
Browsing all 3085 articles
Browse latest View live

Async-Async: Consequences for parameters to parallel asynchronous calls

Last time, we learned about a feature known as Async-Async which makes asynchronous operations even more asynchronous by pretending that they started before they actually did. The introduction of...

View Article


Async-Async: Consequences for ordering of multiple calls in flight...

The feature known as Async-Async makes asynchronous operations even more asynchronous by pretending that they started before they actually did. As I noted earlier, you might notice a difference if you...

View Article


Async-Async: Consequences for exceptions

As we’ve been learning, the feature known as Async-Async makes asynchronous operations even more asynchronous by pretending that they started before they actually did. The effect of Async-Async is...

View Article

Stupid git commit-tree tricks, Part 1: Building a commit manually out of a tree

When it comes time to make a public update to the UWP samples repo, I take a snapshot of what’s in our internal staging repo and push it to the public repo. All of the intermediate steps are squashed...

View Article

Stupid git commit-tree tricks, Part 2: Building a merge commit manually out...

When it comes time to make a public update to the UWP samples repo, I usually have to update multiple branches. Each branch encompasses the changes from the previous-version branch, and then adds new...

View Article


Stupid git commit-tree tricks, Part 3: Building a throwaway commit in order...

Suppose you have a series of commits you want to cherry-pick and squash onto another branch. The traditional way of doing this is to cherry-pick the series of commits with the -n option so that they...

View Article

Stupid git commit-tree tricks, Part 4: Changing a squash to a merge

Suppose you performed a git merge --squash, and then later realized that you meant it to be a true merge rather than a squash merge. In diagrams, suppose you have this: A ← M1 ← ← ← M2   master   ↖︎...

View Article

Stupid git commit-tree tricks, Part 5: Squashing without git rebase

Suppose you’ve made a bunch of changes.     X WIP   almost   rename method   silly typo   X works   update Y   update Z   base ← A ← B ← C ← D ← E ← F ← G You started by trying to get the X component...

View Article


How to compare two packed bitfields without having to unpack each field

Suppose you are packing multiple bitfields into a single integer. Let's say you have a 16-bit integer that you have packed three bitfields into: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 r g b Suppose you...

View Article


My initial frustration trying to configure our internal VoIP phones that were...

I remember when Microsoft made their initial internal roll-out of its VoIP phones. The VoIP phones were integrated with a desktop app which let you configure the phone, managed your telepresence, as...

View Article

Alternate definitions for English words, as inferred from bug reports

Here are some terms that appear in bug reports. "Empty" means "There are a bunch of things here, but not the ones I wanted." "Blank" means "There are things, maybe." "The picture is wrong" can mean...

View Article

Predator-prey reversal: Rock lobsters vs whelks on Malgas Island and Marcus...

Malgas Island is dominated by rock lobsters, who happily feast upon whelks. Just 4km away, Marcus Island is dominated by whelks, not a rock lobster to be found. Researcher Amos Barkai couldn't figure...

View Article

How do I destruct an object that keeps a reference to itself, because that...

Consider the case of an ordered work queue. Components can queue work to the worker thread, with the expectation that the work will run sequentially. class OrderedWorkQueue { public:...

View Article


What order are pages in a memory-mapped file flushed out to disk?

Say you create a memory-mapped file mapping and write data to it. In which order will the pages be flushed out to disk? Is it in the order the pages were written? Or are pages closer to the beginning...

View Article

Even if your assembly language code doesn’t call any Windows APIs, you still...

Writing in assembly language doesn't absolve you from adhering to the software conventions. Certainly you have more flexibility in assembly language, but that doesn't give you freedom to do anything...

View Article


Precision questioning: The cynical description

Precision questioning is a technique used by some senior executives at Microsoft. Although precision questioning positions itself as a toolkit for critical thinking and problem solving, its use in...

View Article

Asking for clear written documentation that Require trusted path for...

A customer had turned on the Require trusted path for credential entry policy (under Computer Configuration, Administrative Templates, Windows Components, Credential User Interface). They demanded...

View Article


Image may be NSFW.
Clik here to view.

Why is there a limit of 15 shell icon overlays?

There is a limit of fifteen shell icon overlays. Why fifteen? The value 15 came from the corresponding limit for image lists. The Image­List_Set­Overlay­Image function supports up to 15 image list...

View Article

Async-Async: Consequences for exceptions

As we’ve been learning, the feature known as Async-Async makes asynchronous operations even more asynchronous by pretending that they started before they actually did. The effect of Async-Async is...

View Article

Stupid git commit-tree tricks, Part 1: Building a commit manually out of a tree

When it comes time to make a public update to the UWP samples repo, I take a snapshot of what’s in our internal staging repo and push it to the public repo. All of the intermediate steps are squashed...

View Article
Browsing all 3085 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>