Details
-
AboutAAAAAAAAAAAAAAAAAAA
-
SkillsRust and other things
-
Locationhere
-
Website
Joined devRant on 12/8/2018
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
-
Okay screw it, I was always a python hater but I'm just gonna admit it:
I LOVE PYTHON!
It's so nice for quick scripts 😌5 -
Still funny to me how -O2 consistently produces smaller binaries than -Os for me
And -Oz is always worse still!
How does that even happen...6 -
I don't know why but vendoring a dependency locally so I can change whatever I want feels so powerful
Oh, you made all fields private? How about screw you, now they are all public! hehe7 -
Final benchmark for now. I think I've invested (wasted :P) enough time optimizing this
Finally got it below 100 ms on my system:
***benchmarking***
Time C: 0.82965087890625
[src/main.rs:407:2] num_threads = 24
[src/main.rs:408:2] num_cores = 24
Time Rust: 0.09551429748535156
Time CPP: 0.4009711742401123
Time Borded CPP: 0.6333107948303223
Time Jest Rust: 0.28380441665649414
***end benchmark***
And ignore the two debug prints. For some god forsaken reason, removing them makes it slower by like 5% for..... reasons..... idk lol12 -
Been working on my Rust isspam version and now it's looking like it should again :P
Rust back on top, baby (☞⌐▀͡ ͜ʖ͡▀ )☞
***benchmarking***
Time C: 0.836021900177002
Time Rust: 0.12235116958618164
Time CPP: 0.39263033866882324
Time Borded CPP: 0.6284189224243164
Time Jest Rust: 0.27682042121887207
***end benchmark***7 -
Nothing worse than having to wrangle multiple coordinate systems for model files and your engine. Extra points when one is left handed and one right handed
I actually want to die5 -
Fuck, maybe some of ostreams retardation is rubbing off on me but I'm watching stuff about monsanto right now and I need to stop myself imagining doing a "little tomfoolery" to their management and ceo
Am I turning into a reactionary libtard? Maybe its not so bad after all...8 -
I don't know how coffee and black tea makes me sleepy but as soon as I drink even one sip of red bull i am *locked* the fuck in5
-
Oh my goooooooooood vibe coding is sooo bad
Holy fucking shit I'm actually losing my mind
Cursor is nothing but a glorified slop generator. It just fucking yaps and yaps and it generates shit upon shit. Yet NOTHING works properly
It all looks impressive but its all a shallow house of cards of bullshit
To be fair, I'm trying to make it write a simple compiler with an x86 JIT backend. Absolutely not a simple task, but come oonnnnnnn. It just goes in circles, over and over and over
It's exactly as I imagined. Just like ChatGPT, if it failed 2 times, it will never recover and you should just start a new conversation to clear the poisoned context. For a half hour I've been trying to get to compile a program which prints hello world. It just can't do it. No matter what, the compiled program just always returns 42 and nothing else (or segfaults)
It's just fucking AI slop. It LOOKS impressive until you actually go a bit deeper and you realize its all vapid bullshit14 -
It's so gay that zen1 and zen2 have giga slow microcoded implementations for the pdep and pext instructions
So slow (~140 cycles latency) that manually implementing their behavior via handfuls of other instructions is actually faster
On intel they take literally 1 cycle...3 -
Trying to flash a windows iso on a usb stick from linux is making me wanna fucking kill myself
IS THERE ONE FUCKING SOFTWARE WHICH CAN FLASH A FUCKING WINDOWS ISO SUCESSFULLY??
From the 4 ive tried so far none of them worked. What the actual fuck is wrong with desktop linux sometimes
Ive already wasted 1 and half hour of this shit. On windows I would have done this in literally 3 minutes
Holy shit fuck me19 -
Okay I'm about to do something diabolical
Anybody knows if reading beyond the bounds of an allocation is UB in llvm when I'm doing the read via inline assembly? 👀5 -
I just wrote some escape sequence parsing code for my shell and throwing it into godbolt shows that ~170 lines of pretty nice generic/abstracted code (multiple loops + multiple functions) results in only ~80 instructions
Oh my god im actually about to cum2 -
Unix is so incredibly beautiful. Everyday I discover something new that makes me fall even deeper in love with it.
For real, I've become a huge YAGNI fan over the last few years and Unix is pure yagni. It's so beautifully pragmatic and simple yet flexible and powerful14 -
aaaaaand it's back
Didn't even take a day and people were already posting melodramatic goodbye posts lul7 -
Everybody is being so melancholic
"bye everybody"
"i guess this is the end"
lol, like devRant didn't have its quirks for years. At some point it'll get fixed and then we can have our shizo responses back.
Ya don't have to be so dramatic1 -
Yeah turns out writing a shell is a whole lot more work than I thought
Fuck man, why can't I just find a cool project that is actually doable in a normal lifetime3 -
I've just learned that some unicode codepoints (like 𘀀) are wider than 1 cell in a normal monospace terminal
Yay, i hecking love unicode
(i want to die)1 -
Working on some linux shell/terminal stuff and chatgpt really is both a saint and a curse
It's super helpful but like half the stuff it tells me is just flat out wrong
Never forget to double check guys! -
I don't care, skeuomorphism like iOS 6 or window 7 aero was the peak of design and you can't convince me otherwise3
-
Reactive state tracking in JS frontend frameworks is just ridiculous
This is a language that encourages you to create huge trees of objects but from what I can tell most frameworks have real trouble detecting any change more complex than a direct assignment
Am I missing something? I have a reactive list of objects of which fields get updated. I have no idea how to make that trigger UI updates.... This is just torture8 -
Don't you love it when the docs say that RTCDataChannel is a transferable object and then you try to send it to a service worker and your browser tells you it isn't transferable
I hecking looove web development 😇🔫3 -
Doing some JavaScript right now and holy moly is this one spaghetti ass language
Promises referencing closures referencing local variables referencing message handlers referencing resolve callbacks referencing ... 😵💫16 -
Just had a thought: Instead of LLVM modeling and optimizing an IR and then backends having to optimize again for actual machine code lowering, wouldn't it be possible to unite both under one unified system?
If you model everything as one huge and complex state machine with a bunch of predefined "micro ops", couldn't you write an optimizer which lowers to the mathmatical presentation of the target platform's instructions?
I.e. the actual identities of the instructions don't matter. What matters is that the input ir is `(x + 3) & 0xff` and the optimizer tries to fit a sequence of instructions to that so that it "solves the system". It doesn't know x86 `andb`; it knows that `andb` takes an input, maybe truncates it, does a bitwise or, and stores the output into a reg
That way you wouldn't have to write complex target dependent backends. Just declare the sequence of actiosn each instruction does and llvm would automatically be able to produce very high quality machine code
I think there's a phd worth of research here but helllll no I'm not touching compilers again lol

