75 karma · joined May 9, 2026 (6mo ago) · 52 submissions
comment 3w ago · link · parent
for(;;) // intentional
for(unsigned i=10;i>=0;i--)
for(int i=0;j<10;i++)
for(unsigned i=0;i!=100;i+=8)
// unintentional
in C infinite loops with no side effects are UB, so detecting them is useful for diagnostics.guaranteed termination also is needed for some optimizations. but since side-effect-less infinite loops are UB in C, a compiler doesn't have to prove that such a loop terminates, it can just assume it does. other languages may differ, but I don't think any of them prove convergence of algorithms.
a don't-mind-the-recursion flag can be `-fno-finite-loops` on clang, or a read or write to a `volatile` variable in standard C.
comment 4mo ago · link · parent
1 long typedef[[]]*($)(void*($),...);
2 int main() {
3 char* str = "Hello, world.";
4 $ $ asm("puts");
5 $:&&$&&$(str);
6 }
(1) is equivalent to "typedef long* $(void*, ...)". '$' is the name of the defined function type.it's obfuscated as follows:
- typedef is a specifier and can go on either side of the type, same as int const/const int
- [[ ]] is an empty list of attributes
- "void*($)" is an argument named '$' of type void*, but parameter names are ignored in declarations.
- you can put parens in declarations since sometimes you need to group prefixes and postfixes in a different order
- dollar signs in names are allowed in many c compilers (and some other c-like languages)
- "..." are variadic arguments. puts doesn't have those, but the first argument uses the same register either way so it happens to work out in this case
(4) declares a function named '$' of type '$', shadowing the type, and links it to the assembly label "puts". calling $ calls puts.
normally it looks like `int call_foo(void) asm("foo");`
(5) is parsed as: "label $: address-of-label $ and function $ called on str. the address of a label is truthy, so the function also gets called.
unary && looks for the argument in the label namespace, but other operators don't, so the two dollars refer to different things.
that's about it. if you're familiar with the c standard and some common gnu extentions, you can deconstruct the examples into their basic elements easily enough
comment 4mo ago · link · parent
reminds me of 14mv a bit - and judging by the reactions to it on steam you're going to get so many false bug reports from people not used to the long deduction chains haha
(a suggestion to try the hints near the feedback form might help curb this a bit..)
one qol thing I missed is that clicking a number to fill in the neighbours only works for crosses and not sunflowers (and doesn't work for "0" clues)
comment 4mo ago · link · parent
the question I asked in my comment isn't rhetorical, by the way: I genuinely think it's a pattern, and I want to look into it a bit deeper
oh and for the record, I don't suggest you disregard the article. it raises valid points and I agree with it. go read it!
comment 4mo ago · link · parent
>pressure
the gel pen I use can write under its own weight, so it's surely less pressure than any pencil would require, unless it's particularly soft and hefty?
comment 4mo ago · link · parent
on a mobile the next best thing was replacing my obsidian's app icon (no endorsement - I don't like obsidian) with the widget that pulls up today's "daily note", whether I want it or not. on pc I have an autohotkey command that does the same for notepad.exe
comment 4mo ago · link · parent
comment 4mo ago · link · parent
personally I am against internet identification, and I think teenagers should be allowed on social media, so I have to ask: why only children? if these features are so bad, ban them outright.
comment 4mo ago · link · parent
what you said about mixing up cursives is really interesting! I think the only case where I mix up mine is when writing a p instead of an р (the russian version typically doesn't have a loop).
comment 4mo ago · link · parent
I'd also want to try interpolation search for this (not necessarily linear interpolation since we're doing floats) - you can take much better guesses than "it's in the middle somewhere" by not having to look at the data through a 1-bit-wide pinhole as comparison algorithms do.
comment 4mo ago · link · parent
primitive speedup
sum price 7.7x
avg price 33x
how does this even happen though?comment 4mo ago · link · parent
my $0.02: if they think odin is notable enough for wikipedia and all they need is for someone to actually note it, now is the time to hire a pr firm. seriously. that's what they're there for.
comment 4mo ago · link · parent
> monoid
nullables with `??` and `?.` are also give-or-take monoids. is it common though to `or` two MaybePhoneNumbers together or to apply a PhoneNumber->MaybePhoneNumber function to it? if not then why mention it?
let's see something meaningfully different like a database schema.
[1] https://esolangs.org/wiki/Trivial_brainfuck_substitution
comment 4mo ago · link · parent