Sign in

Oom Sveta

@oom.technology
60 followers 119 following 173 posts

❤️‍🔥 Computer standards, word games, Belgium, linguistics, anime, bit twiddling, code golf, Minecraft, food, typography, regex, whisky • i18n expert for some OSS behemoth ꙮ • Retired maintainer of the French BombParty dictionary

PostsRepliesMedia
Oom Sveta @oom.technology · 01/01/2026
This is certainly a cause for concern
A screen shot of the man pages. It reads: "BUGS: Many people will be unhappy if you use this function."
000
Oom Sveta @oom.technology · 30/12/2025
Just found out about Sleep Sort 💀
JavaScript code showing an array of numbers. Each number is passed to a setTimeout, which console.logs the number once the timer expires.
010
Oom Sveta @oom.technology · 14/07/2025
Last week, I was experimenting with void elements, and...what the heck is happening there?
div.innerHTML = "<br></br>";
div.innerHTML; // "<br><br>"

div.innerHTML = "<hr></hr>";
div.innerHTML; // "<hr>"
100
Oom Sveta @oom.technology · 11/07/2025
Determining if a given HTML tag is a void element:
function isVoidElement(tag) {
  	return document.createElement(tag).outerHTML.length === tag.length + 2;
}
110
Oom Sveta @oom.technology · 02/07/2025
La table ASCII est une merveille de design que C permet d'exploiter pleinement
// swap case
'A' ^ 0x20; // 'a'

// position in alphabet
'Z' & 0x1F; // 26

// isalpha
(unsigned)((c | 0x20) - 'a') < 26u;
000
Oom Sveta @oom.technology · 02/05/2025
Look at these nice ass German suited cards
German suited ace card. It's funny because there is "ASS ❤️" written in the middle of the card
000
Oom Sveta @oom.technology · 10/04/2025
#TIL that they call Stephaton the guy who gave Jesus a sponge soaked in vinegar at the Crucifixon. And also that the toilet brush of the Romans is called Xylospongium
Screen shot of Wikipedia:

Stephaton, or Steven, is the name given in medieval Christian traditions to the Roman soldier or bystander, unnamed in the Bible, who offered Jesus a sponge soaked in vinegar wine at the Crucifixion. In later depictions of the Crucifixion, Stephaton is frequently portrayed with Longinus, the soldier who pierced Jesus' side with a spear.

It is not to be confused with a Xylospongium, a sponge that is soaked in vinegar attached to a stick the Romans used after defecating.
000
Oom Sveta @oom.technology · 04/04/2025
What the heck Dutch speakers
Screenshot from Wikipedia. It says:

"Swaffelen (or zwaffelen) means to hit one's partially erect penis—often repeatedly—against an object or another person's body. Swaffelen was named the word of the year in the Netherlands and Belgium in 2008."

The part about it being the word of the year is highlighted
000
Oom Sveta @oom.technology · 27/03/2025
This part in particular (see image below) made me realize that the "*" is more like a "type modifier" and that it is /per identifier/. From this perspective, it might be more correct to attach the * to the identifier
DECLARING MULTIPLE VARIABLES
You can declare multiple variables in any single declaration, but doing so can get confusing if the variables are pointers or arrays, or the variables are different types. For example, the following declarations are all correct:

char *src, c;
int x, y[5];
int m[12], n[15][3], o[21];

The first line declares two variables, src and c, which have different types. The src variable has a type of char *, and c has a type of char. The second line again declares two variables, x and y, with different types. The variable x has a type int, and y is an array of five elements of type int. The third line declares three arrays-m, n, and o—with different dimensions and numbers of elements.TYPE DEFINITIONS
You use a typedef to declare an alias for an existing type; it never creates a new type. For example, each of the following declarations creates a new type alias:
typedef unsigned int uint_type;
typedef signed char schar_type, *schar_p, (*fp)(void);
On the first line, we declare uint_type as an alias for the type unsigned int. On the second line, we declare schar_type as an alias for signed char, schar_p as an alias for signed char *, and fp as an alias for signed char(*) (void). Identifiers that end in _t in the standard headers are type definitions (aliases for existing types). Generally speaking, you should not follow this convention in your own code because the C Standard reserve identifiers that match the patterns int[0-9a-z_]*_t and uint[0-9a-z_]*_t, and the Portable Operating System Interface (POSIX) reserves all identifiers that end in _t. If you define identifiers that use these names, they may collide with names used by the implementation, which can cause problems that are difficult to debug.
120
Oom Sveta @oom.technology · 27/03/2025
I totally agree. Or at least I used to. Recent facts I came across while re-reading parts of @rcs.bsky.social's "Effective C" - the book that reminds you that the "C" in "C Programming Language" stands for "Cthulhu" - made me revise my mental model a little bit
Front cover of "Effective C", featuring a man in a diving suit reading a book, sitting on the shoulder of a Cthulhu-like creature
120
Oom Sveta @oom.technology · 26/03/2025
This will come in handy! Did you know that Danish traditionally uses a period instead of a colon in its time notation?
new Intl.DurationFormat("da", { style: "digital", hoursDisplay: "auto" }).format({ minutes: 12, seconds: 00 });   // "12.00"
010
Oom Sveta @oom.technology · 25/03/2025
Wikipedia's list of "inaptonyms" (i.e., personal names that are particularly unfit for their owner) is wild
List of inaptonyms from https://en.wikipedia.org/wiki/Aptronym#Inaptonyms
000
Oom Sveta @oom.technology · 10/03/2025
Considering it's an Indian restaurant, this is still unexpectedly relevant
Screenshot from the website of a restaurant. It says "NaN" and then in the next line "OUR EXPERIENCE".
000
Oom Sveta @oom.technology · 26/11/2024
is this racism
A screenshot of a post I'm writing, consisting mostly of emoji, that Bluesky detects as Korean ("Are you writing Korean?")
130
Oom Sveta @oom.technology · 25/11/2024
Dang, they did get rid of the type coercion on comparison in that version. IIRC, Brendan Eich said it was added against his will after feedback from the LiveWire team. It's a bit infuriating to see one of JavaScript's most criticized features disavowed by the very people responsible for it
Screenshot of the PDF file mentioned above:

"If the <SCRIPT> tag uses LANGUAGE=JavaScript1.2, the equality
operators == and != do not attempt to convert operands from one type
to another, and always compare identity of like-typed operands"
110
Oom Sveta @oom.technology · 18/11/2024
Also this ingenious system to save hoppers (iron is precious in Skyblock)
Minecraft screenshot: A single hopper dumping its contents into 12 boats with chest. Three boats with chest are stacked in each corner of the bottom of the hopper
010
Oom Sveta @oom.technology · 18/11/2024
Ceci pourrait également vous intriguer : les features dérivées du protocole d'itération se basent sur la length, tandis que les vieilles fonctions telles que forEach et map parcourent les éléments
const holeyArray = [, , 3];

holeyArray.forEach(() =>
	console.count("forEach") // forEach: 1
);

for (const _ of holeyArray) {
	console.count("for of"); // for of: 3
}
100
Oom Sveta @oom.technology · 16/11/2024
I love Dutch so much
"Warning, GLAD" sign
000
Oom Sveta @oom.technology · 13/11/2024
Aside from that use case, I don't necessarily find them readable. I prefer to keep my regex literals laconic and use destructuring assignment to name my matches:
const regex = /(\d{4})-(\d{2})-(\d{2})/;
const [, year, month, day] = dateString.match(regex) ?? [];
110
Oom Sveta @oom.technology · 12/11/2024
Ignorance might be bliss... Looks like Bluesky doesn't have a spoiler feature, so I labeled this as Graphic Media. Sorry if *that thing* appears to you against your will 😔
130