News for hackers. Stuff that matters.

bigpingo

Re:DeepSeek: X2 Speed for WASM with SIMD on Tuesday January 28, 2025 @12:40PM (#42855342)
I have always had the same line:

AI will blow my mind when it solves an unsolved mathematical/physics/scientific problem, i.e: "AI, give me a proof for (or against) the Riemann hypothesis"

Re:Be Aware of the Makefile Effect on Saturday January 11, 2025 @11:44AM (#42667018)
For C and C++* projects under ~100k lines I wouldnt bother with incremental builds - I have a 70k C project with a single translation unit that builds in under 1s on my machine.

* C++ requires some discipline to not explode build times, but it can be done if you dont go nuts with templates and standard headers.

Re:Writing a simple pool allocator in C on Thursday January 09, 2025 @05:55AM (#42644002)
And this is why type based alias analysis (TBAA) is insane and why projects like linux complies with fno-strict-aliasing.

C should issue a defect report and get rid of that nonsense from the standard.

Re:Zig's Comptime Is Bonkers Good on Tuesday January 07, 2025 @12:09PM (#42624712)
Yeah I never got the aversion to operator overloading either.

"+ can do anything!" As you said, so can plus().

"Hidden function calls?" Have they never programmed a soft float or microcontroller without a div instruction? Function calls for every floating point op.

Re:Static search trees: 40x faster than binary search on Wednesday January 01, 2025 @06:46AM (#42565469)
gcc is available on and targets more platforms than rust. So if GNU C is not considered portable you can forget about 'portable rust'.
I hate annoying distractions, be it popups, beeps, notifications, alerts, auto brace/quotes/etc and autocomplete prompts. I turn all of that off in every program because I want to be in total control of the computer.

When it comes to autocomplete specifically I initially turned it off because I was mainly a C++ programmer and C++ autocomplete has just never been good enough and a half-working autocomplete is just worse than nothing at all because you end up stalling and waiting for the prompt. But eventually I just grew to hate it for all languages because it interrupts flow and "pipelining".

Re:GPT-5 is behind schedule on Monday December 23, 2024 @02:43AM (#42492611)
Link to GPT-4 passing the turing test? Tried googling, could not find anything.
Re:Fixing C Strings on Saturday December 21, 2024 @02:50PM (#42481788)

  printf("%.*s", len, str);
lets you pass the length as an int argument.