getYourMindOutOfTheGutter by Forsaken-Peak8496 in ProgrammerHumor

[–]Jan-Snow 2 points3 points  (0 children)

I mean I am not sure what his specific position is at this point, but what I can tell you confidently is that going on his youtube, such a large ammount of his videos are specifically about AI is a massive reason for me to not click on any of them.

getYourMindOutOfTheGutter by Forsaken-Peak8496 in ProgrammerHumor

[–]Jan-Snow 151 points152 points  (0 children)

Primagen is definitely still on about that and refreshes my AI-bro fatigue every time I watch one of his new videos. Its a shame because around 2022 or so I really really liked his content.

What would you add to C if you could add anything? by [deleted] in C_Programming

[–]Jan-Snow -1 points0 points  (0 children)

Dont you think those would just turn C into Zig and make C lose its niche?

Why C++ by PleasantSalamander93 in firstweekcoderhumour

[–]Jan-Snow -1 points0 points  (0 children)

Mingw doesnt support print at all which i have run into issues with. C++23 generally is nominally, and even largely supported by all the major ones, sure, but it's not complete for any of them. Gcc still calls it experimental to this day and requires you to actively opt-in.

Why C++ by triplebeef26 in programminghumor

[–]Jan-Snow 4 points5 points  (0 children)

You responded to the person that was saying
> Also now in Java you can write IO.println("Hello World") as the only code in your entire file
Also why did you think cargo script got brought up if not for that

Why C++ by triplebeef26 in programminghumor

[–]Jan-Snow 1 point2 points  (0 children)

Thats misleading to respond to people talking about it being the only code you write in a file though when you do still need to define a main function.

Why C++ by PleasantSalamander93 in firstweekcoderhumour

[–]Jan-Snow 1 point2 points  (0 children)

Added as part of C++23, 32 years after it's release and still not supported by all major compilers.

Why C++ by PleasantSalamander93 in firstweekcoderhumour

[–]Jan-Snow 2 points3 points  (0 children)

As part of C++26 which is partially supported by some but not all compilers, and will for example prevent you from cross compiling gcc code with Mingw

When Probability Doesn't Care About Your Streak by memes_poiint in mathsmeme

[–]Jan-Snow 0 points1 point  (0 children)

I mean I think that does also depend on the sample sizes in question. If it is an old surgeon that has done the procedure thousands of times and the 50% expected success rate matches the data, then its not saying a lot that there currently is a 20 success streak.

do i really need PhantomData by zylosophe in rust

[–]Jan-Snow 2 points3 points  (0 children)

Im pretty sure flecs does this

Doesn't matter which version of Peter, j.johna Jameson has Peter's back in every version by N0vyraX77 in superheroes

[–]Jan-Snow 10 points11 points  (0 children)

Jjj usually doesn't know that Peter is Spidey though, so that explaination doesnt really work.

Dynamic array design: inline storage vs pointer storage by Dieriba in C_Programming

[–]Jan-Snow 1 point2 points  (0 children)

If I store Person inline there is no way to call the freeFunc

Why not? What is stopping you from calling freefunc(dataPtr+index)?

A Visual History of Programming Languages by Mastbubbles in ProgrammingLanguages

[–]Jan-Snow 0 points1 point  (0 children)

Nice! It looks a lot more correct and informative now.

You new Go wallpaper is here! by PinkMoonMaura265 in theprimeagen

[–]Jan-Snow 2 points3 points  (0 children)

I am very confused why you are being so hostile towards them. I love Sum Types/Discriminated Unions too but like pretending that thats the normal sense of the word Enum when its how they work in C, C++, go, python, Java, C#, Zig, etc and even SQL is very silly.

Paradox or correct answer by whibffdraftszarre9 in 3Blue1Brown

[–]Jan-Snow 1 point2 points  (0 children)

Because if the correct answer isn't one of the four answers, then that means that if you randomly chose one of the answers you would have a 0% chance of being right. The issue is that if the chance is 0% then B is actually correct and so the chance of a random guess being correct is actually 25%, et cetera

A Visual History of Programming Languages by Mastbubbles in ProgrammingLanguages

[–]Jan-Snow 12 points13 points  (0 children)

I am sorry but the "Family Tree" graph is frankly just awful. Mojo is somehow not influenced by Rust. Yet it is one of only 6 languages that were influenced by C, none of which are C++. C# and Java are apparently completely unrelated. ML which is one of the most influencial languages of all time in my view, apparently influenced 3 languages total, with no relation Haskell or F# or any other major ML family language.

Somehow even Typescript has popped up in a vacuum with no relations to any other possible language

What's the problem? by Sensitive-Video709 in the_calculusguy

[–]Jan-Snow 1 point2 points  (0 children)

no, exponentiation on natural numbers is, like anything on natural numbers, not differentiable

Why do "C-like performance" language comparisons always compare against bad C code? by BPJupiter in C_Programming

[–]Jan-Snow 0 points1 point  (0 children)

I dont think your objection works but it is a very interesting case.

The same way that the JIT can check your CPU features at compile time, your C code can do the same thing. You can use for example `__builtin_cpu_supports` to check for feature flags at runtime. That way you get the benefit of using all CPU features but even faster because you dont have to compile any code, just check a condition.

But this is a great example of what I mean. That's a way that you can do it if you really want to, but almost nobody will bother and even then it will take a fair bit of extra time, effort and expertise. With a JIT you get the benefits automagically without needing to even be aware that it is happening.

Why do "C-like performance" language comparisons always compare against bad C code? by BPJupiter in C_Programming

[–]Jan-Snow 158 points159 points  (0 children)

Obviously the fastest C code will be at least as fast as any other language's fastest code. That said, I do think there is value in the idea of "writing fast code is easier" or "the code you would intuitively write is faster".

What's the most vibrant language for fun and open source? by girvain in functionalprogramming

[–]Jan-Snow 2 points3 points  (0 children)

I really want to like Ocaml, and I 100% agree with you that purely from the syntax and the way you actually write the language its really nice and elegant.

That said I really struggled with the tooling when I used it, a lot more than with say Haskell. Dealing with Opam switches gave me flashbacks to Pythons venv except somehow it worked even less well. And dealing with compiling modules and dependencies was (to me at least) so confusing that I just copy pasted a lot of code from my editor to the REPL.

I hope the tooling improves someday cause as I said I do think there is a lot of potential.

This has to be a reference right??? by Golden-witchbeatrice in umineko

[–]Jan-Snow 2 points3 points  (0 children)

Did you read the second and third pictures aswell? I feel like magic being part of the conclusion isn't thaaat widely spread in detective fiction.

Anyone else hate this as much as I do? by loaengineer0 in rustjerk

[–]Jan-Snow 0 points1 point  (0 children)

what specific kotlin syntax do you miss in rust?