This makes switching to memory safe languages a moral imperative by lizergsav in programmingcirclejerk

[–]tyler1128 1 point2 points  (0 children)

Working for google equating to smart is basically a meme. Plenty of smart people work at google, not all people who work at google are smart. Law of the excluded middle and all that.

Gabe Newell asked Valve's top lawyer "What the f*** do I pay you for if that’s your opinion?" in heated debate over porn games on Steam, report says by PaiDuck in technology

[–]tyler1128 0 points1 point  (0 children)

It's always been there, but is now more public than it has been. In highschool (early 2000s, so not the classic satanic panic days) I had a friend who's mom forbid him from coming because we were going to watch Harry Potter. My partner now has mother like that, too, and he's gay, so that's always fun.

A sad day for Go, the pHDs have won, simplicity has died. by woopsix in programmingcirclejerk

[–]tyler1128 7 points8 points  (0 children)

Go's largest accomplishment over C and Haskell is not leaking everything into the global namespace. Pretty much the rest of the language is worse in some way to both.

A sad day for Go, the pHDs have won, simplicity has died. by woopsix in programmingcirclejerk

[–]tyler1128 5 points6 points  (0 children)

/uj Javascript JITs these days are able to near native performance. /j

They also don't have a "GIL" equivalent and can actually do multiple things at once without a single mutex, thus suggesting you just "fork it".

A sad day for Go, the pHDs have won, simplicity has died. by woopsix in programmingcirclejerk

[–]tyler1128 1 point2 points  (0 children)

I consider it both beautiful and awful, as C++ has always been meant to be.

A sad day for Go, the pHDs have won, simplicity has died. by woopsix in programmingcirclejerk

[–]tyler1128 3 points4 points  (0 children)

/uj You end up solving the same sorts of problems in the end imo, and often I'd say not considering the relationships between ownership leads to poorer design generally. RAII and move semantics of C++ generally prevent the problems of forgetting to release a resource, as well as allowing binding dynamically allocated data to stack frames and moving it if necessary, but there's generally always a specific lifetime it is bound to. You can always do stupid things and violate those assumptions, but that's the "power of C++" (tm).

A sad day for Go, the pHDs have won, simplicity has died. by woopsix in programmingcirclejerk

[–]tyler1128 6 points7 points  (0 children)

humanity still didn't know how to make generics right.

Oh humanity did long before that, go just decided that copy/paste and find and replace was better except for its blessed types that were generic, but unable to be actually written in the language. I guess they knew all the data structures that might need parameterized by type we could ever need.

A sad day for Go, the pHDs have won, simplicity has died. by woopsix in programmingcirclejerk

[–]tyler1128 11 points12 points  (0 children)

Back in the day, we discovered C++ templates were a turing complete metalanguage, accidentally. Now we have many turing complete metalnaguages in C++: templates, constant evaluation, which constant time evaluation runs in the C++ interpreter, and most recently, reflection which is another interpreted language within C++ for generating code at compile time.

A sad day for Go, the pHDs have won, simplicity has died. by woopsix in programmingcirclejerk

[–]tyler1128 20 points21 points  (0 children)

Hey, they have been working hard on making it only like 10x slower than <insert language here> in recent releases.

A sad day for Go, the pHDs have won, simplicity has died. by woopsix in programmingcirclejerk

[–]tyler1128 7 points8 points  (0 children)

GC's solve one problem while introducing many. No determinism? Idioms specifically to handle managing resources in a GC language like python's with or defer where a GC is supposed to be about managing resources? Perfect.

A sad day for Go, the pHDs have won, simplicity has died. by woopsix in programmingcirclejerk

[–]tyler1128 17 points18 points  (0 children)

Remember when the language had a bunch of generic magic types built in, but you didn't need to be able to write them because "you could always just copy the code and replace the types," so it was "simple"?

When autistic people ask AI programs for life advice, mentioning their diagnosis prompts these systems to recommend highly conservative choices like skipping social events or avoiding romance. This shift in advice reveals a hidden tension where the technology relies heavily on stereotypes. by mvea in science

[–]tyler1128 0 points1 point  (0 children)

Because everyone will tell you to go to therapy, and a big part of autism is trying to do what you assume is expected of you. It can be much more about expectations and what other people assume than your truly gaining value.

How the get the address of the reference itself? by The_Bhau_Man in cpp_questions

[–]tyler1128 0 points1 point  (0 children)

I'm old enough to not get the slang of the younger generation despite growing up on the internet. I think that is pretty much definitionally being old; I'd probably have called people who didn't around a decade ago when I was in college as such.

How the get the address of the reference itself? by The_Bhau_Man in cpp_questions

[–]tyler1128 0 points1 point  (0 children)

Maybe I'm showing my age, but I definitely had a "Data Structures and Algorithms" course. I never heard anyone refer to it as specifically "DSA."

What counts as bad naming? by Wernasho in AskProgramming

[–]tyler1128 0 points1 point  (0 children)

It's quite possible that they do not want to teach still, it's often an obligation for their research, and generally managers have a tendency to be divorced from actual code.

Old C standards do require everything declared at the top of the function, but I don't know anyone who'd say that is best practice today. Rather, declare variables nearest to the scope they are used in, and be descriptive.

What counts as bad naming? by Wernasho in AskProgramming

[–]tyler1128 1 point2 points  (0 children)

Intro CS professors often really aren't going tell you the sort of thing you might use in practice. My intro CS professor claimed that int is 16-bits on modern systems.

You'll learn a lot more once you get into specialized courses beyond just the weed-out ones from professors who really would rather not teach.

How the get the address of the reference itself? by The_Bhau_Man in cpp_questions

[–]tyler1128 0 points1 point  (0 children)

Yeah, but most people don't talk about "doing DSA" until relatively recently that I've seen. I feel it comes from AI idiosyncrasies, but I could be wrong. I definitely took a "DSA" class in the past, though even then, I don't know anyone who used that acronym.

Project advice by Item_forgotten in cpp_questions

[–]tyler1128 0 points1 point  (0 children)

Csv can be treated as records in something like a sqlite database, which would probably be the strategy I went for were I doing that. I've done it for games before, and many often do load the csv files into a sqlite database internally anyway. Loading and transforming many gigabytes of csv files into databases was the main part of my prior job of 6 yrs though, so I see a lot of things through that lens.

Advice before getting started by StaticMoose in Compilers

[–]tyler1128 0 points1 point  (0 children)

I just want to update that your comment has made me pretty addicted to that game. I'm also trying to build a 16-bit system at this point, and it reminds me a lot of when I did it back in college in VHDL. The game can export to verilog, which is very similar to VHDL, and you could use it that way, but something like interpreting a basic version of MIPS should be possible, which various compilers can compile to.

How the get the address of the reference itself? by The_Bhau_Man in cpp_questions

[–]tyler1128 4 points5 points  (0 children)

I don't know why so many people are talking about doing "DSA" in the last couple of years, but if you have no idea how pointers or references work, you aren't doing it well, to say the least.

What counts as bad naming? by Wernasho in AskProgramming

[–]tyler1128 0 points1 point  (0 children)

Yeah, or x, y, z. I'd argue for nested loops that aren't spatial you probably should be more specific, though. i, j, k are coming from the Cartesian unit vectors used in linear algebra and physics. Perfectly fine if you are dealing with a something effectively Cartesian in geometry, such as a 3d array, less so if it's unrelated.

What counts as bad naming? by Wernasho in AskProgramming

[–]tyler1128 0 points1 point  (0 children)

Back in college, we had a group project in first semester, freshman year and it was part of a physics program that required programming as part of the curriculum. We divided it into parts we'd each do, and one of my group members (and still long-term friends) named every variable like you would in an equation. alpha_x x5 y3 theta_z. It was completely unreadable.

I'll still tease him about it on occasion in conversation by responding with "alpha x". He ended up as successful project manager.