HackerTrans
TopNewTrendsCommentsPastAskShowJobs

cv5005

no profile record

comments

cv5005
·hace 12 días·discuss
Most people in the world wants some form of ethnic cleansing - that's why you get 'ethnic quarters' in most large cities, people generally like to be around their own 'kind'.
cv5005
·hace 14 días·discuss
Current LLMs don't pass the turing test.

Remember, the interrogator is allowed to be hostile, so they would obviously employ all known prompt injections and typical LLM 'gotchas' to figure out who the AI is.
cv5005
·hace 2 meses·discuss
>There's no namespacing feature provided so you're left with the convention of picking a few letters as a prefix and hoping it doesn't overlap and yet is succinct enough to not be annoying.

I've been using C on a daily basis for 30+ years and name collisions has just never been a problem.

Granted, it might be due to lack of a package manager so micro dependencies ala import is_even is not a thing here, but still, in practice, no name collions occurs.
cv5005
·hace 2 meses·discuss
Chinese film having 100% chinese cast = good.

American film having a single white male lead = not good.
cv5005
·hace 2 meses·discuss
Never quite understood why people are so obsessed with meta programming capabilities in a language, be it templates, comptime, macros, whatever.

I program mostly in C, if I need 'meta' programming I just write another C program that processes C source code (I've written a simple C parser), then in my build script I build in two stages, build meta program, run it, build rest of program.

Simple, effective, debuggable (the meta program is just normal C), infinite capabilities - can nest this to arbitritary depths, need meta-meta programming? Make a program that generates a meta program.
cv5005
·hace 2 meses·discuss
>One need to write it manually each time in each function where some cleanup is needed.

You can structure your code to not need cleanup in every function.

The biggest problem with destructors is, how do you handle errors? close() can fail you know?
cv5005
·hace 2 meses·discuss
One reason is that c++ still hasn't gotten 'trivial relocatability' right - i.e being able to memcpy/memmove and not have to call constructors/destructors when growing your vector class.
cv5005
·hace 2 meses·discuss
Yeah I dont think a single current LLM would fool me in a turing test - I would obiously use all kinds of prompt injection techniques, ask about 'dangerous' or controversial topics, ask about random niche facts in varied fields, etc.
cv5005
·hace 2 meses·discuss
std span is not bounds checked.
cv5005
·hace 3 meses·discuss
Having different types seems wrong to me because endianess issues disappears after serialization, so it would make more sense to slap an annotation on the data field so just the serializer knows how to load/store it.
cv5005
·hace 4 meses·discuss
This was an MFC project, so your old standard win32 common controls that looks the same since 98 or so.
cv5005
·hace 4 meses·discuss
Well it's still a 32 bit program so I guess that helps. Would probably require some porting to make it 64 bit native, but as long as you use the WPARAM, INT_PTR typed and what not correctly it 'should just work'.
cv5005
·hace 4 meses·discuss
I'm an embedded programmer who occassionally needs to write various windows programs to interface with embedded devices (usually via serial port or usb), and I find it a breeze to write native gui programs in pure win32 and c++.

Recently had to add a new feature to and old program that was last updated in the XP era and two things to note:

1. The program did not need to be updated to run on Vista, 7, 10 and 11, shit just kept working throughout the years.

2. I loaded the project into Visual Studio 2022, it converted from VC6 and compiled without problems, added the feature, shipped a new .exe to the customer, and it just worked.

What other platform has that backwards and forwards compatibility success story?
cv5005
·hace 4 meses·discuss
Not a fan of methods.

Why should the first argument be so special? And how do you decide which struct should get method if you have a function that operates on two different types?
cv5005
·hace 4 meses·discuss
Eventually it wont need to write any code at all. The end goal for AI is "The Final Software" - no more software needs to be written, you just tell the AI what you actually want done and it does it, no need for it to generate a program.
cv5005
·hace 4 meses·discuss
>Then there's the static initialization order fiasco

One of the reasons I hate constructors and destructors.

Explicit init()/deinit() functions are much better.
cv5005
·hace 5 meses·discuss
Is it? rust has to ditch llvm to be able to replace c++ - or rewrite llvm in rust.
cv5005
·hace 5 meses·discuss
A good compiler will only do that if the register spilling is more efficient than using more stack varibles, so I don't really see the problem.
cv5005
·hace 5 meses·discuss
Bitwise identical output from a compiler is important for verification to protect against tampering, supply chain attacks, etc.
cv5005
·hace 5 meses·discuss
That's because you need to implement a bunch of gcc-specific behavior that linux relies on. A 100% standards compliant c23 compiler can't compile linux.