Better HN
topnewbestaskshowjobs
Log inSign up

bigpingo

22 karma · joined Dec 18, 2024 (1y ago) · 8 submissions

Submissions

comment 1y ago · link · parent

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"

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

gcc is available on and targets more platforms than rust. So if GNU C is not considered portable you can forget about 'portable rust'.

comment 1y ago · link · parent

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".

comment 1y ago · link · parent

Link to GPT-4 passing the turing test? Tried googling, could not find anything.

comment 1y ago · link · parent

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