Details
-
SkillsC, x86/x64/AVR Assembly, other processors and libs
Joined devRant on 1/22/2019
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
-
Avoid ACPICA if at all possible. It's one garbage tier cluster fuck of bad design, horrible documentation and downright misleading and wrong code
It's meant to consist of an ASL compiler, disassembler, debugger, dumper, various user space utitilies and a kernel resident OSPM implementation *if* you can figure out what belongs to what. Even just compiling this pile of trash is a mystery in itself. Think you need the source files in source/common? EEEEH, wrong. Well, at least partially since most of them seem to be for the user space stuff..? Other ones *are* needed on the other hand. At least the disassembler and/or debugger and/or dumper components seem to reference them. Not that I could figure out how to compile those anyways. The real path to your goal seems to be to ignore a seemingly arbitrary subset of source and header files until your linker stops complaining
There's also a bunch of configuration defines, some of which *you* define, some defined *for* you, based on again others. Of course most of them do stupid shit. Enabling the debugger automatically enables debug logging. Enabling the disassembler force enables debug allocation tracking... What?
The code itself isn't of much help either. Looking in "os_specific/service_layers" you find what looks to be reference implementations of acpica functions in certain os' like windows and unix. Of course I had a look because AcpiOsReadMemory is supposed to read physical memory and I don't know how I would even implement that. But hey, osunixxf.c (xf for interface... of course) should tell me. I'll let you see for yourself in the attached image. Apparently it does fuck all and just returns AE_OK. No error, no logging, no nothing. Just ok. As you can imagine, AcpiOsWriteMemory doesn't do much more either.
...okay so maybe physical memory accesses aren't actually used and these functions are some sort of relic from past times? Nope! They are absolutely necessary for doing low level device interaction. WTF. So finally I went to the linux source and checked how *they* implemented them, and just as I thought, these functions are anything but no-ops...
...So for what fucking reason do these stupid interface implementations even exist but to purposefully mislead you?? They aren't used for fucking anything! As far as I know Windows doesn't even *use* ACPICA and Linux have their own fork with working implementations... They just sit there, just to tell you how to NOT do it
So that's some of my thoughts about ACPICA. Note that I haven't even used it as a library yet, I just got it to compile and link and it already fucked with me this much.
There's also so much more I didn't mention like that you *have* to modify the acpica source in order to get your own platform header working (else #error) eventhough the docs explicitely instruct you not too but you get the point
Don't use ACPICA if you don't have to. Save your sanity for something that's worth it -
I HATE NETBEANS.
Why the fuck is it's interface so out of date.
I just had to increase its font size and took me half an hour just to find the option to do that.20 -
So, at my company we are migrating from "master" branch on github.
It's good to know we are defeating racism.51 -
<Email thread>
Manager: Hey @iiii, please, create stories for {things that shall be done}. You will be responsible for that implementation next sprint.
Me: *procrastinating like a bitch*
**several hours later**
Dev from another team: Actually, we discussed that with {upper management guy} and it seems like those things are unapplicable for current project, so we'll send a letter to {client} to remove those requirements.
Manager: @iiii, don't create stories.
</Email thread>
Me: *welp, good thing I did exactly nothing so far*6 -
Such a stressful night.
Laptop's battery seems to have died.
Why? Whyyyyyyyyy? Why? 😭😭😭😭
Why me? Why now? Why these stuff always happen at the worst times?15 -
Some senior developers add in useless review comments just to pause merging.
When it happens, its tough. -
Got feedback after job interview #33:
Yeah we don’t think you have enough corporate experience...
YOU COULD HAVE READ THAT IN MY RESUME BITCH! STILL YOU SPEND MY FUCKING TIME AND GAS!3 -
This supposed to be a rant but I have no words to describe in how big fucking mess I am right now while looking for a new workplace...
It’s most unorganized experience that I am part of...
It’s worse then looking for lost key using bare hands in a shit hole....
With last one at least you know what to expect and you have some chances to make some decisions. The hiring otherwise it’s like lottery...
There are no words to describe it.
Fuck...
Let everyone looking for a job right now have my condolences... -
Not a co-worker but a personal friend, I am still developing with the dude. He is absolutely AMAZING when it comes to reverse engineering he knows much more than me in this area of computer science. Actually one of my first friends who actually geeks out over this shit.10
-
My tech lead (or senior). I had been unmotivated with my dev life until I joined their team. He lit the fire in me by inspiring me and challenging me with my work. Sadly he left the team after 3 months but I'm thankful because he saved me from burn out.2
-
Nothing destroys work flow like management idiots deciding on features and design that they just pulled out of their asses.6
-
My mentor from my very first dev job. He was also a junior dev as well and used to say crazy things in conversations ar our desks like ‘The pope is the devil’ and ‘We are all going to get mouth herpes’.
I called him “Rogue { lastName }” because he used to dev in production like an animal.
He taught me a lot about coding though.
Miss that guy1 -
Wanna mess with users? Take
“OK” and “Cancel”.
You know what looks visually the same but means the opposite?
“NO” and “Confirm”.
Deploy that little ui update overnight and watch the world burn.20 -
MANAGER: "Hey Slug, I just got off the phone with $partner about $issue and they want to have a meeting with us to discuss it. Send them an email and schedule something for Thursday morning."
WHAT THE HECK DO YOU THINK I AM, YOUR PERSONAL SECRETARY!!??? If you're the one who has a specific day and time of day that works this week, and if you were talking to them anyway, then how about YOU schedule the meeting????? And of course $partner comes back with "Does 10:30 work?" and so now I'm just playing middle-man. Who could have seen THAT coming.........6 -
Automation always fascinated me. Not only it looks and behaves like a life form, it also can perform billions of calculations without making a single mistake while I can’t even multiply double-digit numbers with my double-digit IQ.
If you pick the right components, you can make an immortal, perfect machine that can do its job for centuries, even millennia without a single mistake. There is nothing else on earth that can do this.
There is a robot surgeon and its hands never shake. It’s just flawless. If it fucks up, there is only you to blame, the flawed, pathetic operator.
And now it’s time to remember that it was just a 40s technology all along. And now it’s time to remember that now there is machine learning. A whole new perspective isn’t it. All the mistakes that machines make are sitting in front of the monitors.
No wonder I decided to be an engineer.17 -
Devrant should have a feature to unsubscribe notifications on a rant + notifications should say from which rant it came from. These would be much appreciated improvements.8
-
Energy star ⭐ logo always remind me an old computer (boot logo) back in 90s and of course the games doom and duke nukem 3D ... The first things I saw and played on a computer .
You guys, what do you remember every time you see the logo ?9 -
Recent VM/Emulation Adventures:
The goal was to get TCP/IP and SSH running on whatever weird VM/emulated machine, and connect to the chatroom at chat.tcp.direct successfully.
Longhorn, somewhere late pre-reset: Crashes right after installer begins "Starting Windows", 0x7b from sum-match ISO. Fail.
TempleOS (well, Shrine, but y'know): Dear god. No. No, I am not writing SSH in HolyC myself *fuck that,* fail.
Slackware: oh ffs i gotta use fdisk to partition this damn thing? and it's not even the good fdisk? Oh, wait... it hangs. Fail.
WinME: shockingly, was *fairly* stable... until it hung up WASAPI and the hypervisor two frames into desktop rendering. Fail.
Mac OS 7: First-boot after install, immediate unknown trap. Just works, eh? Fail.
Amiga: After about 85 resets and 7 hours of constant fighting with WinUAE, I finally got TCP/IP working. (Required 10MB of total RAM and an FPU to connect.) Success!
Win98FE: just... PuTTY and done. Easy. (This was the warmup.) Success...
Other people's achievements so far:
- Minecraft using the new QEMU interface mod thing.
- Hacked smart fridge.
- iPhone, from custom initramfs.6 -
When working with hardware some mistakes can be literally painful. Thankfully this was all during undergrad and I'm only around computer hardware now lol.
>Misprogrammed a software kill switch so a sensor that should not have been sending data was actually sending data which caused the system to activate a piston that went WHAM! into the face of a teammate working on replacing some part of it...
>Misprogrammed a controller so it drew too much power from the supply and the puny supply wires literally burst into flame and fell across my arm.
>Spun a 9000rpm CNC spindle the wrong way and caused an attached screw to go rocketing upwards instead of downwards and almost break the (pretty expensive) thing (uh...we were trying to use it as a power screwdriver essentially but I set the rpm to about 100x what I wanted and the direction wrong so yeah).
>Switched a -1 with a +1 in a robot's control system sending it careening into a teammate's leg... let's just say mecanum wheels are paaaainful.6