Readit News logoReadit News
shultays commented on Why agents are bad pair programmers   justin.searls.co/posts/wh... · Posted by u/sh_tomer
johnisgood · 3 months ago
That is not even valid C code, so you would have to seriously convince me, too.

What makes it invalid is "= 5", and lack of "struct" before "MyStruct" (could have used typedef).

shultays · 3 months ago
It is a c++ code.
shultays commented on Why agents are bad pair programmers   justin.searls.co/posts/wh... · Posted by u/sh_tomer
shultays · 3 months ago
A week or so ago I needed to convince chatgpt that following code will indeed initialize x values in struct

  struct MyStruct
  {
    int x = 5;
  };
  ...
  MyStruct myStructs[100];
It was insisting very passionately that you need MyStruct myStructs[100] = {}; instead.

I even showed msvc assembly output and pointed to the place where it is looping & assigning all x values and then it started hallucinating about msvc not conforming the standards. Then I did it for gcc and it said the same. It was surreal how strongly it believed it was correct.

shultays commented on CSS Minecraft   benjaminaster.com/css-min... · Posted by u/mudkipdev
globie · 3 months ago
Without a doubt the most impressive thing I've seen with CSS.

This immediately brought "A Single Div"[0] to mind, which stood as the coolest CSS demo I'd seen for... 11 years!

This one takes the cake. I'll be pouring over it. Thanks!

[0]: https://a.singlediv.com/

shultays · 3 months ago
but they are all individual divs
shultays commented on Watching AI drive Microsoft employees insane   old.reddit.com/r/Experien... · Posted by u/laiysb
mikrl · 3 months ago
I remember before mass LLM adoption, reading an issue on GitHub where an increasingly frustrated user was failing to properly describe a blocking issue, and the increasingly frustrated maintainer was failing to get them to stick to the issue template.

Now you don’t even need the frustrated end user!

shultays · 3 months ago
one day both sides will be AI so we can all relax and enjoy our mojitos
shultays commented on Watching AI drive Microsoft employees insane   old.reddit.com/r/Experien... · Posted by u/laiysb
shultays · 3 months ago
https://github.com/dotnet/runtime/pull/115733

  @copilot please remove all tests and start again writing fresh tests.

shultays commented on Initialization in C++ is bonkers (2017)   blog.tartanllama.xyz/init... · Posted by u/todsacerdoti
ddulaney · 3 months ago
The general cost over a several large codebases has been observed to be minimal. Yet, there are specific scenarios where the costs are real and observable. For those rare cases, an explicit opt-in to risky behavior makes sense.
shultays · 3 months ago

  The general cost over a several large codebases has been observed to be minimal
Is this unexpected? A large code base has a lot of other things and it is normal that such changes will be a rounding error. There are lots of other bottlenecks that will just overwhelm such a such change. I don't think "it is not affecting large code bases as much", you can use that argument for pretty much anything that adds an overhead

Not to mention if you change every int a to int a=0 right now, in those code bases, a=0 part will likely to be optimized away since that value is not being (shouldn't be) used at all and likely will be overwritten in all code paths

shultays commented on Initialization in C++ is bonkers (2017)   blog.tartanllama.xyz/init... · Posted by u/todsacerdoti
agent327 · 3 months ago
The answer to this is to replace default-init by zero-init. This removes all special cases and all surprise, at a cost that is minimal (demonstrated experimentally by its implementation in things like Windows and Chrome) or even negative. Doing so would make software safer, and more reproducible, and it would make the object model more sound by removing the strange zombie state that exists only for primitive types.

Of course we should provide a mechanism to allow large arrays to remain uninitialized, but this should be an explicit choice, rather than the default behaviour.

However, will it happen? It's arguably the easiest thing C++ could do to make software safer, but there appears to be no interest in the committee to do anything with safety other than talk about it.

shultays · 3 months ago

  Of course we should provide a mechanism to allow large arrays to remain uninitialized, but this should be an explicit choice, rather than the default behaviour.
First you are saying "cost is minimal even negative" and then already arguing against it on the next paragraph.

shultays commented on The Turkish İ Problem and Why You Should Care (2012)   haacked.com/archive/2012/... · Posted by u/Rygian
shultays · 4 months ago

  const string input = "interesting";
  bool comparison = input.ToUpper() == "INTERESTING";
  Console.WriteLine("These things are equal: " + comparison);
  Console.ReadLine();
Is this a realistic scenario? Changing case of a string and comparing it to something else? Running some kind of operations & logic on a string that is meant for user?

If you are doing such things then it looks more like a code smell.

shultays commented on Crows can recognize geometric regularity   phys.org/news/2025-04-cro... · Posted by u/wglb
sayamqazi · 4 months ago
Animal's intelligence is often underrated. We used to keep goats which many wont consider problem sovlers. They had learned to open gate bolts with their mouths. The bolts I am talking about have a handle and a rod. the handle needs to be rotated then the bolt can be slided out while keeping the handle in the rotated state.
shultays · 4 months ago
My cat learned to jump and grab the door handles to open doors. It was escaping the house that way. I had to lock the door while I am at home so he doesn't escape. After some tries and seeing that it is no longer working, he forgot/gave up at doing it.
shultays commented on OpenAI o3 and o4-mini   openai.com/index/introduc... · Posted by u/maheshrijal
M4v3R · 4 months ago
Ok, I’m a bit underwhelmed. I’ve asked it a fairly technical question, about a very niche topic (Final Fantasy VII reverse engineering): https://chatgpt.com/share/68001766-92c8-8004-908f-fb185b7549...

With right knowledge and web searches one can answer this question in a matter of minutes at most. The model fumbled around modding forums and other sites and did manage to find some good information but then started to hallucinate some details and used them in the further research. The end result it gave me was incorrect, and the steps it described to get the value were totally fabricated.

What’s even worse in the thinking trace it looks like it is aware it does not have an answer and that the 399 is just an estimate. But in the answer itself it confidently states it found the correct value.

Essentially, it lied to me that it doesn’t really know and provided me with an estimate without telling me.

Now, I’m perfectly aware that this is a very niche topic, but at this point I expect the AI to either find me a good answer or tell me it couldn’t do it. Not to lie me in the face.

Edit: Turns out it’s not just me: https://x.com/transluceai/status/1912552046269771985?s=46

shultays · 4 months ago
AIs in general are definitely hallucinating a lot more when it comes to niche topics. It is funny how they are unable to say "I don't know" and just make up things to answer your questions

u/shultays

KarmaCake day1725January 13, 2014View Original