Oh, this is a good one.
JATth
I mean no harm.
- 1 Post
- 38 Comments
No mention of KDevelop? ;__;
I like it because it is the pretty much only FOSS graphical IDE where the edit-compile-debug cycle works. I’m been using it for last 10y for C/C++/Python, and it recently gained LSP support. (ported from Kate)
JATth@lemmy.worldto Programmer Humor@programming.dev•Python needs an actual default functionEnglish5·1 month agoI intended this an sarcastic example; I think it’s worse than putting the main outside of the branch because of the extra indent-level. It does have an upside that the
main()
doesn’t exist if you try import this as an module.
JATth@lemmy.worldto Programmer Humor@programming.dev•Python needs an actual default functionEnglish1·1 month agoBtw,
ld.so
is a symlink told-linux-x86-64.so.2
at least on my system. It is an statically linked executable. Theld.so
is, in simpler words, an interpreter for the ELF format and you can run it:ld.so --help
Entry point address: 0x1d780
Which seems to be contained in the only executable
sectionsegment ofld.so
LOAD 0x0000000000001000 0x0000000000001000 0x0000000000001000 0x0000000000028bb5 0x0000000000028bb5 R E 0x1000
Edit: My understanding of this quite shallow; the above is a segment that in this case contains the entirety of the
.text
section.
JATth@lemmy.worldto Programmer Humor@programming.dev•Python needs an actual default functionEnglish18·1 month agoI would put my code in a
def main()
, so that the local names don’t escape into the module scope:if __name__ == '__main__': def main(): print('/s') main()
(I didn’t see this one yet here.)
Holy hell, thats rough. :D
Do you know about ortho/para-H2O? It only gets weirder.
Send it through the earth, you can reduce it theoretically to 42.5ms
This isn’t as ridiculous as it sounds and you just need a neutrino-beam… which has a horrible bandwidth (of 0.1 bits/s) plus the ridiculous upfront cost of running two particle-accelerators for a full-duplex link. (Google it up, this exists.)
My favorite so far:
$ gdb -ex 'file /bin/gdb' run corrupted double-linked list Thread 1 "gdb" received signal SIGABRT, Aborted.
I once wrote
bind_front()
andmove_only_function
likes in C++17. This nearly drove me mad because you cannot refer to a overload set by a name.On the otherhand, I can now decipher the template error mess that the (g++) C++ compiler spews out.
what the actual fuck. 🤮
$ gdb -ex 'file /bin/gdb' run corrupted double-linked list Thread 1 "gdb" received signal SIGABRT, Aborted.
Yeah, try debug that.
JATth@lemmy.worldto Programmer Humor@programming.dev•Something something case-insensitive file something...2·7 months agoA kernel was released that changed how the hash value got computed for casefolded filenames. (used for better windows compatibility) That kernel then went into production. This unfortunately split some file-systems that supported this into two incompatible versions, breaking the kernel rule 1.
There might now exist file-systems were created/modified with this bug present that the old/fixed kernels can’t understand.
JATth@lemmy.worldOPto Programmer Humor@programming.dev•Removing API dependency from a plugin.2·8 months agoI was reluctant to take this project, knowing well I would end up deleting nearly all existing code I would have to touch, all while having just mediocre skill writing its successor, if it ever becomes one.
I can no longer escape from this project, nor do have I will to.
JATth@lemmy.worldOPto Programmer Humor@programming.dev•Removing API dependency from a plugin.12·8 months agodeleted by creator
The point when the AI hallucinations become useful is the point where I raise my eye brows. This not one of those.
JATth@lemmy.worldto Programmer Humor@lemmy.ml•I live in a constant state of fear and misery6·9 months agoI do this exact same expression when I’m forced to gain knowledge of something potentially personally catastrophic…
JATth@lemmy.worldto Programmer Humor@programming.dev•I redid the meme with what hurts me17·10 months agoPython is just a pile of dicts/hashtables under the hood. Even the basic
int
type is actually a dict of method names:x = 1 print(dir(x)) ['__abs__', '__add__', '__and__', '__bool__', '__ceil__', '__class__', '__delattr__', '__dir__', ... ]
PS: I will never get away from the fact that user-space memory addresses are also basically keys into the page table, so it is hashtables all the way down - you cannot escape them.
JATth@lemmy.worldto Linux@lemmy.ml•I got SWAT'ed and handcuffed live while Linux development streaming!26·10 months agoThis was truly a wtf moment of the month.
Last time I spent time watching him was when he freaking fixed the kexec syscall for IBM PowerPCs. for free
Two new hobbies to keep me in the realitytm.
for the twisted
It’s just art and music. Plus a likely revival of old skill.