cbrogrammer | 3 years ago | on: A corrupt file led to the FAA ground stoppage – also found in backup system
cbrogrammer's comments
cbrogrammer | 3 years ago | on: Code Smell of the Day: Type Keys (2021)
> attributes: UserAttributes,
> onCreate: (user: User) => void
> ): User => {
> user = User.create(attributes);
> onCreate(user);
This stood out to me, in an otherwise tame article, as probably the most terrible overthought interface possible. A literal callback function passed as a function reference to something that does three lines of code? Good luck with that, I much prefer even a slightly procedual implementation.
cbrogrammer | 3 years ago | on: Digital books wear out faster than physical books
cbrogrammer | 3 years ago | on: Digital books wear out faster than physical books
cbrogrammer | 3 years ago | on: Overfitting and the strong version of Goodhart’s law
Nothing as annoying as online communists inserting their horrible political opinions everywhere. Try moving to a communist country. See how capitalism has raied billions out of poverty in only 30 years
cbrogrammer | 3 years ago | on: Sudo: Heap-based overflow with small passwords
> /*
> * Truncate to 8 chars if standard DES since not all crypt()'s do this.
> * If this turns out not to be safe we will have to use OS #ifdef's (sigh).
> */
> sav = pass[8];
cbrogrammer | 3 years ago | on: ValueObject (2016)
cbrogrammer | 3 years ago | on: Win32 Is the Only Stable ABI on Linux?
cbrogrammer | 3 years ago | on: C23 is finished: Here is what is on the menu
cbrogrammer | 3 years ago | on: Twenty years of Valgrind
cbrogrammer | 3 years ago | on: How CUDA Programming Works
cbrogrammer | 3 years ago | on: How CUDA Programming Works
yes absolutely, way too granular and low level
cbrogrammer | 3 years ago | on: How CUDA Programming Works
cbrogrammer | 3 years ago | on: Framework Laptop Mainboard
cbrogrammer | 3 years ago | on: Old C code – how to upgrade it?
The line of code is basically two lines:
(char*)hash_ptr.parm.v.p = (char*)hash_ptr.parm.v.p - 1; // move the pointer back by one byte
*((char*)hash_ptr.parm.v.p) = fpop(sst); //At the memory location, write the output of fpop(sst)