Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Making python 2x faster by replacing enums with literal values.
Pros, it's faster, cons, it's unreadable.
God I miss compiled languages. At least optimizing them requires intelligent problem solving.
It's a text parser state machine transition so it's a code hot spot, so this kind of optimization is worthwhile. But it's kinda annoying.
Next is get rid of any semblance of readability and replace the match with an array index...31 -
New idea: Fuck raytracing for global illumination because you just need too many rays for it to converge
What if we do surfels (to keep the number of probes down and relevant to our scene) and we update the 4x4-ish sized hemisphere irradiance maps not by tracing a single ray per frame per surfel. I have a fast as shit compute shader rasterizer... What if I just raster each surfel each frame? Should be around the same number of pixels as the primary visibility so totally feasible....
Each frame just jitter the projection a bit and voila. Should have extremely high quality diffuse global illumination at well below 1 ms. Holy shit this might just work3 -
I got a song that I like a lot but it's made by a kid for kids. Therefor, youtube doesn't let you add it to a playlist since it's "Kid content". When I saw that message, I've felt treated like a freaking pedo. What the hell do those fuckers think about the general population? Who is evil, sees evil. And like if this is a solution to anything. You can just bookmark it in your browser.
Sick shit, how negative can you be YouTube. Judgemental fuckers87 -
Why do I program everything myself in C, even a rest service? By writing everything yourself in C you make simple things complex to make complex things simple.
Writing a rest service for example learns you a part of http protocol, how sockets work, how to create a parser (in this case json). Three thing's you would miss if I used python.
On top, your rest service uses WAY lesser resource than written in python for example. Especially for CPU usage.
Allocating and free-ing still often have issues there, but I consider it a skill problem / discipline issue. Not blaming C for that. The rules are clear.10 -
Amazing! My joke functionality worked and the server delivered it's content successfully to the client. The joke: malloc is wrapped to give that message and retry IMMEDIATELY. Expectation is that the computer that was already in panic mode gets even fucked up more because it's out of memory. My malloc is literally while((ptr=malloc()} == NULL) { show_warning()
;malloc();}. Imagine if it didn't give that warning, I would've never known that a malloc failed. Who checks their freaking malloc result? You should, but i do not see much people doing it.
The previous crash on screen is what happens if you're doing a get instead of a post. I just declare my server app indestructible btw. Ffs!5 -
Okay so my last idea has one big problem: I need to project vertices into a single space which encompasses an entire hemisphere. AND straight lines need to remain straight when projected.
That's not something a typical projection matrix can do. Damn. I'm thinking maybe something like octahedral projection? [1]
But I'm not sure there's an answer. Else I would have to chop up the hemisphere into parts and try rastering each tri for each view. Ugh, that sucks
[1] https://researchgate.net/figure/...9 -
Whenever I see a website ask
1. Accept all cookies
2. Customize selection
I can see what they're really saying...
1. Accept! and I'll fuck off out of your way and let you read.
2. So you wanna read the content heh? Step into our office. Ok then, lets go through them one-by-one and you can explain to me why you think you don't need that cookie. and then MAYBE we'll fuck off our of your face so you can read the scant few lines of text standing between you and finishing your homework/job/whatever.18 -
Here's an idea: starting my own botfarm to automatically downvote obnoxious adbots that simply won't stop tickling our collective fucking testicle sax with unrequited love stories and crypto bullshit.
To detect the sheeit, just look for idiot giving contact info in a rant about hacking the device of your unfaithful spouse/treacherous cyber girlfriend who also ran a bitcoin scam and fucked you in the ass with a welding torch. That should do the trick, I can give you that power with a perl script, because fuck you that's why.
But since there is no moderation in this bitch, daring to offer me sufficient knowledge to the inner workings of such a construct would be exceptionally perilous to your asshole. That is to say, nothing could then stop me from redirecting said botfarm to target my enemies and anally assault their every rant and comment.
Indubitably, this would in turn quickly spiral into digital warfare of cyberfeudal lords pitting their automated fake accounts against each other. Millions will die. Upside being hexical gets to pull the plug without guilt.
What do you say? Should we begin the apocalypse?20 -
I made test library a bit happier. Rainbows, fires and happy faces. Before the happy faces i had traditional dots. This is more cancer. I like it. My applications looks much more modern now.
The emoticon list is made by gpt but i've added a simple search function that finds an emoticon if you put a part of the description. It doesn't have to be exact. printf("%s",remo_get("books")) for example.
I need a life12 -
My manager has sucked the soul out of me. I feel drained, anxious , highly demotivated and I have lost hope in life. He has a toxic way of managing people. The team is always micromanaged and even in that he keeps scolding people for not completing tasks in the timeline which he thinks is right. I am always filled with multiple tasks on my board and he wants me to complete all of it in one day irrespective of complexity. We have a standup that is scheduled for 30 minutes but goes on for 1 hour 30 minutes and all he does in that meeting is tell people they have not done enough even while we have done far above our levels. And there is a meeting again in the evening to update on the tasks where he again starts scolding everybody. Few of my teammates say that whatever we do we will get scolded. We have never really celebrated any success as a team. He expects the team to be always available like 24*7 and work for atleast 14 hours a day and sometimes overnight for like more than 20 hours a day. And we have alternating 6 days work week even when ceo has approved 5day work week for tech. My manager doesn't treat anybody as humans , we are all just machines to drive his deliverables. He values only deliverables. It's very difficult to get holidays. But the problem is he has inflated my salary a lot and I have un-vested esops which is holding me back at the company.5
-
So I have this dude I work with that I will call Jim. When I take a walk at 3pm I will often see Jim outside on his phone. I have started making "pssst" sound every time I see Jim. Many times I have snuck up on Jim and made the "pssst" sound and scared the crap out of him. He in-kind tries to scare me. He is not very good at it. I realized today I may be creating a Pavlov response in Jim to the "pssst" sound. He always makes the "pssst" sound back at me. He "has" to make the "pssst" sound when I do it. I think in addition he may be getting the conditioned response of being scared to the "pssst" sound.
TLDR; I love scaring the "pssst" out of Jim.4 -
[Blue pill]
stay in my current workplace [approaching the 10yrs mark], with an agreed salary and seniority raise, with a high probability of losing my current project [which is really fun!] in Feb next year and having to switch to another one, but keep all the benefits
[Red pill]
switch full-time to contracting with a potential to reap big bucks [x2-x4] and be free to juggle as many clients as I like, dictate my terms, become a shareholder, but lose all that warm and cozy certainty guaranteed by my current employer1 -
The license for assets on epics new asset store is insane:
For any Content licensed to you under a Standard License, you may not:
i. attempt to reverse engineer, decompile, translate, disassemble, or derive source code or data from the Content;
HOW IN GODS NAME AM I SUPPOSED TO USE ASSETS I BOUGHT WHEN I CAN'T EVEN DERIVE FUCKING DATA FROM THEM???? Like how in hell am I supposed to load textures and meshes when the only thing I'm allowed to do is to maybe look at them
They DO know graphics cards can do sweet fuck all with a JPG texture, right? Like I /genuinely/ have to translate that thing into a proper format for it to have any use12 -
People say "Never attribute to malice that which is adequately explained by stupidity."
However, I think companies can and will create anxiety in a product to get you to buy something else, or something more expensive. This would fit with planned obsolescence. You need to update to Windows 11 because Windows 10 will not have support of updates. Fear the viruses!!!
Also, perhaps companies are purposely hiring incompetent people to head up products? So malicious incompetence?
I think the enshitification of tech is on purpose for various reasons. One of them being to create anxiety in people so they accept shittier solutions for all facets of life. Not just tech solutions.
A tech example of this is searches. They want you using AI. What is the end game goal of AI? Is it easier to hide bias?38 -
I try to pay attention to my moods. So when I have strong feelings I will tell my wife about them. I was talking to her on the phone on the way home.
me: It is the horny time of the month.
her: Oh, okay, thanks.
me: Yeah, it comes and goes...
her: <sigh>
At this point I realized I had made a really dirty dad joke.
me: Oh, that was bad wasn't it?
her: Yeah, it was bad.
me: I have ascended to subconscious dad joke competence.
her: Okay, sure.
me: Was it funny?
her: No.
me: Really?
her: I just like to tell you I think it's not funny.
me: You are trolling me?
her: Yes.
me: Damn it! -
Please don't get triggered by stupid little things on the internet, just shutdown your internet device and go outside and get some fresh air
I've read some answers on forums on the internet and some people that answer ends up making another problem, because the user said something or whatever
If you want to help, then follow these rules:
1) Read the problem that the user has
2) Read what they have tried to fix it
3) If you know about that problem then answer it
4) If you don't know... just move on
Just learn to shut the fuck up!13 -
Update to my "I broke prod" rant:
- I managed to unfuck it on the same evening.
- Worked fine for one day
- Crashed today morning
- Can't fix it because I had surgery yesterday and am on sick leave currently
=> Probably gonna result in me VPNing into the comp network and RDPing into the prod instance to analyse the failure
Yep, ladies and gents, more open heart surgery on the menu!8 -
I once wanted to make easy money by becoming a professional poker player. I did this by programming a poker simulator and calculate chances with certain cards and stuff. To assure you have 6.**% winning (mathematical chance calculated) of a hand takes around 3k simulations to cancel out the luck. So don't trust to much on your math.
That went well, but that wasn't all that there was to learn, you could even consider a small start. Long story short, I became quite a good player and won a lot with Appeak Poker (Great app! No adverts!). Now, I opened a while ago an account at the Holland Casino to make some money. But they were playing on such low wages that it was just not interesting and I quitted. Today I realized I had still an account with money on it and thought "let's get over wit it" so i did aggressive betting on red (1:st 40% all in, lost, 2nd 100% all in won) in a roulette game. In the end I had a few euro profit so the gambling adventure never costed me money.
Another reason the poker carreer ended is because I realized it's not a quick way to make money at all and the gambling factor was too high. I expected poker a bit to be more strategy.
I even consider the best poker spelers maybe to just be lucky bastards in some cases. Poker stars is fun to see on youtube tough, they're bullshitting a lot.
I consider gambling for losers. Poker, you can become really good in it, but still some luck is required. Not bad luck at least. You can lose with a multiple of quite good hands.
Fact: one of the best poker players is actually a software developer17 -
In the saga of the unnamed SAAS I've talked about before, LOOK AT THEM USER-SESSIONS XD
And this is only from Android-App embeds since web-embed isnt even open to public yet, so no google-crawller false-positives
The country I'm in, has only 8 sessions waayyyy down below so my code isn't messing up the numbers :3
I'm still too much of a bitch to face this product head-on and "launch" it damn this feels good 😤🤘4 -
We need a list of functions with an associated string, keyed by a sequential int. Neither can change between program versions. In fact, any changes align perfectly to program versions.
The datastructure: a list of string and func with statically known parameters
The solution my PO insists on: a class with static methods that have an attribute for specifying the number, and a database table of number to string. Whenever you need to pass around the list, you pass around a Type object of the class.6 -