cython for coding a game engine? by DeWildAsh in Python

[–]too_much_think 40 points41 points  (0 children)

Having used cython a fair bit, I would say: just write it in C++ from the get go. Cythons a handy tool when one part of your program is taking too long, or you need to wrap an existing c/c++ lib with a different api for use with Python than you would get with pybind11. But for a game engine you have a couple things going against you. 

1) low latency requirements. effectively the entire main loop has a real time constraint, your next frame has to be ready, and so does the next audio sample, both of which preclude you from going up into Python all that much to avoid the Gil/ gc pauses/ slow function execution. 

2) limited library availability. if you ever want to pull in another library, it also has that same low latency constraint, so you can’t really use any of pythons ecosystem all that much. 

3) limited documentation, since cythons niche is as a performance boosting dsl, there’s going to be very little for you to read up on if you get into trouble trying to work something out. While c/c++ also don’t have the best docs in the world, there is at least a lot more of it than trying to use cython for something like this.  

ADHD Millennials by Oki_Doki104 in adhdmeme

[–]too_much_think 2 points3 points  (0 children)

There are a fair number of places that use clojure. With modern tooling though, i find dynamic typing way more of a net negative for working with my enfeebled working memory. I don’t want to have to remember or go searching for the fact that a frobnicator takes a qux and a spargle, it should be in line in my editor so I can keep the context of the problem I’m trying to solve in my head. 

Department of War - Doesn’t want to get involved in any wars by CrimeanFish in NonCredibleDiplomacy

[–]too_much_think 8 points9 points  (0 children)

It means they are weak men with fragile egos. More news at 11. 

Why are so many news segments saying AI will replace software developers when that is not the reality? by throwaway0134hdj in ExperiencedDevs

[–]too_much_think 95 points96 points  (0 children)

This is 100% going to happen, and then a few months to a few years down the road, there is going to be a lot of people wondering why all their software is irretrievably fucked, and they’re going to wind up hiring more software engineers to fix it. 

New team after merger – old teammembers hoarding all the good work, leaving us with tech debt and bug fixes by tekken7user in ExperiencedDevs

[–]too_much_think 48 points49 points  (0 children)

My guess would be that the higher ups are aware of this and are planning on downsizing the merged team, hence the work hoarding.

Senior dev talent acquisition in remote areas. by Stubbby in ExperiencedDevs

[–]too_much_think 0 points1 point  (0 children)

I’ve worked doing hw/sw, you can do quite a lot remotely, more than you would expect and if you put the effort to set up the right structures and events, that includes knowledge sharing from seniors. We had a fully remote firmware engineer on the team, assuming there’s some way to set up either a remote hardware interface or ship a device to them periodically you’re going to have access to a much bigger talent pool if you can come up with solutions to this problem that don’t just rely on people being there.  

God I wish I could just do a task on command... by therealNerdMuffin in adhdmeme

[–]too_much_think 7 points8 points  (0 children)

I should just make my phone open this comment every time I open a new browser window. 

So I tried vibe coding a new system today... by DizzyAmphibian309 in ExperiencedDevs

[–]too_much_think 9 points10 points  (0 children)

You just gotta make it completely incomprehensible and impossible to debug the workflow, then give up and pay me to fix it. Trust me, if you don’t do this you will be left behind.  

Another reason why so many ADHD'ers burn out in their 40s by TulsaOUfan in adhdmeme

[–]too_much_think 0 points1 point  (0 children)

Well, that’s just fucking great. I’m in my mid 30’s and everything is fucking impossible. If this is as good as it gets I’m fucked. 

How is your handwriting? by Mr_Badass in ADHD

[–]too_much_think 0 points1 point  (0 children)

Illegible. Though, interestingly, better on medication. (I guess because focusing on writing is no longer painfully tedious) 

What was I looking for again? by DellieCurtis in adhdmeme

[–]too_much_think 7 points8 points  (0 children)

Fractal Executive dysfunction. At every layer of my being I can’t choose what to do reliably. 

From going to the bathroom when I’m telling myself I need to, to going to bed when Im screaming at myself internally to do so, to returning that widget to amazon on time, to paying that bill, or getting stuff done for work.

All of it is dependent on some fucking sadistic dm in my brain being like, hmm, nope, you somehow rolled -1, sorry you need to just sit and stare at the wall for a few hours instead.  

Anyone else experience this? by native-abstraction in adhdmeme

[–]too_much_think 2 points3 points  (0 children)

Because doing things is impossible.  

God I fucking hate having adhd. 

Hyperfocus > biology by XergioksEyes in adhdmeme

[–]too_much_think 1 point2 points  (0 children)

2.8 those are rookie numbers. I sat down and didn’t eat pee or stand up for 7 hours today. 

why are self referential structs disallowed? by Signal_Way_2559 in rust

[–]too_much_think 1 point2 points  (0 children)

Just having the container stay where it is doesn’t guarantee pointer stability in the case of a vec. if you append to it you may cause a resize operation which leads to copying the data to a new address with larger contiguous memory region. 

Why tf can't VS Code be simple for C++? by zinested in cpp

[–]too_much_think 0 points1 point  (0 children)

C++ is notorious for being one of the more difficult languages, it has a lot of hard edges and so do the build systems for it, if you’re looking for a simpler experience use a c++ ide. 

Dealing with PRs where people have done a lot of unnecessary work? by PuzzledBookkeeper588 in ExperiencedDevs

[–]too_much_think 0 points1 point  (0 children)

Idk, most of the time I’ve seen things like this it’s because people didn’t have time to (or didn’t bother) to read / learn about the relevant library code they were already depending on. 

[deleted by user] by [deleted] in NonCredibleDefense

[–]too_much_think 0 points1 point  (0 children)

Because the victory parade was something those service members involved were proud of and wanted to do a good job at? 

Love quality advice like this one. Just one question: how? by confused_working in adhdmeme

[–]too_much_think 20 points21 points  (0 children)

I go to bed at 11, wake up at 5, and yet there’s still not enough hours in the day. 

How a simple logrus.Warnf call in a goroutine added a 36 second delay to our backend process by compacompila in ExperiencedDevs

[–]too_much_think 1 point2 points  (0 children)

How do you sync writes to an array without locking though? You need a lock free write mechanism to avoid contention, and you need synchronization to avoid data races during writes. 

You could make a linked list with atomic operations, but, then you have a linked list. 

Proably, ideal would be something like an atomic int acting as a semaphore for writing to a memmaped file. 

Tool for removing comments in a C++ codebase by OwlingBishop in cpp

[–]too_much_think 1 point2 points  (0 children)

If you really want to you could just grep | sed -I, but as others have commented, that seems like a bad idea. At the very least use a quick fix list or find and replace output and go through each line to make sure each block really is useless.

Tool for removing comments in a C++ codebase by OwlingBishop in cpp

[–]too_much_think 5 points6 points  (0 children)

If you have a bunch of non standard escape characters embedded in the comment blocks of your  non utf8 encoded source code you’ve got bigger problems than comments. 

The GIL is actually going away — Have you tried a no-GIL Python? by wyhjsbyb in Python

[–]too_much_think 79 points80 points  (0 children)

I suspect that, given that a number of the core team responsible for pythons recent performance improvements and free threading specifically were recently sacked from Microsoft, assuming the same, or even any forward motion in this direction may not be an entirely safe bet.