vcdk
Re:Using AI to write better code more slowly
on Tuesday May 26, 2026 @02:42AM (#48275933)
Whenever Anthropic is down, I switch to my other alternative AI provider. If that is also unavailable, or no more tokens left, then I can switch to my local AI. Not the same in terms of quality and speed, but good enough for an experienced engineer to still be more productive than falling back to doing it by hand. For my principal activity I do not want to be dependent on a sole provider. Besides that, I expect that the pending token price increases are going to hurt a lot of people/companies.
Re:Int a = 5; a = a++ + ++a; a =? (2011)
on Friday May 15, 2026 @02:26AM (#48145209)
I was just replying to the comment ¯\_(ツ)_/¯
Re:Int a = 5; a = a++ + ++a; a =? (2011)
on Thursday May 14, 2026 @05:28PM (#48141513)
Well... tried it on macOS using vanilla gcc, the results surprised me:
$ /bin/cat x.c; gcc -w -o x x.c; ./x
#include <stdio.h>
int main()
{
int a = 5;
a += a++ + a++;
printf("a = %d\n", a);
}
a = 18
Not what I expected.
This must be how it works:- The first a++ expression results in 5, after a = 6 - The second a++ expression results in 6, after a = 7 - Only then the LHS a is evaluated for the addition-assignment, so we get: a = 7 + 5 + 6 = 18