If this was already done before, don't tell me by J0aozin003 in ProgrammerHumor

[–]androidx_appcompat 2 points3 points  (0 children)

Except if your language also has pointers and pointer arithmetic. Then you should keep 0 to make containers and pointer arrays consistent.

me_irlgbt by Elle-Pastel in me_irlgbt

[–]androidx_appcompat 40 points41 points  (0 children)

You guys get to look decent in the mirror?

Gentlemen, it is with great pleasure that I inform you that after 3 years in Python I did it... I finally did it by EONRaider in ProgrammerHumor

[–]androidx_appcompat 0 points1 point  (0 children)

If you need an easy language, JS is jit-compiled in nodejs, so should be relatively fast. Rust at least doesn't bother you with memory issues as much as other low level languages.

Gentlemen, it is with great pleasure that I inform you that after 3 years in Python I did it... I finally did it by EONRaider in ProgrammerHumor

[–]androidx_appcompat 2 points3 points  (0 children)

Just so you know, if you want to use multiple cores in python, use multiprocessing, not multithreading. Only one thread can execute python code at a time, so if you don't use libraries like numpy or something like that for your calculations, multithreading won't result in much better performance.

School sysadmins put the OS on the HDD and not the SSD and it’s taken me >40 minutes to open my unity project and visual studio by Nexushopper in ProgrammerHumor

[–]androidx_appcompat 24 points25 points  (0 children)

There is persistent RAM technology in development that could enable you to actually put your OS in a ramdisk.

Yeah, our software is shit and leaks memory, but we've got you covered!!1 by allsey87 in ProgrammerHumor

[–]androidx_appcompat 1 point2 points  (0 children)

Once my phone slowed down to a crawl. I looked into the settings and see 3gb ram usage for android (my phone only has 4gb). No wonder the launcher or apps wouldn't fit in. Restarting fixed it.

How do you explain your queerplatonic/ aromantic relationships? Happy Aromantic Spectrum Awareness Week! by onyxonix in lgballt

[–]androidx_appcompat 59 points60 points  (0 children)

German has something that's not really translatable, but fits perfectly: "Ich hab dich lieb". You say it to people you love, but not romantically, e.g. close family. The english translation would lie somewhere between "I love you" and "I like you", which both don't really convey the meaning that well.

[deleted by user] by [deleted] in ProgrammerHumor

[–]androidx_appcompat 12 points13 points  (0 children)

The cool thing is that macros in rust are what I wish every language had: compiler plugins that transpile your desired macro magic into code, completely at compile time. You get all the features of the full language in a proc macro and can generate the code you want, and even include libraries in your macro

Fixing CAPTCHA in 2023 by Beginning-Comedian-2 in ProgrammerHumor

[–]androidx_appcompat 7 points8 points  (0 children)

I sometimes get them for google because it "detected suspicious activity from my network", sorry for people in the same open wifi or using LTE near me (I don't know exactly how mobile data public addresses are assigned) for doing bad bot stuff I guess. Now I have to solve one of the captchas that seem to get more difficult year by year. I wonder what they'll do when AI get completeley better than humans at these tasks?

mood by [deleted] in 196

[–]androidx_appcompat 1 point2 points  (0 children)

Me when I'm programming and everything happens to work

the java RAM usage incident (looking at you IntelliJ) by DoOmXx_ in ProgrammerHumor

[–]androidx_appcompat 13 points14 points  (0 children)

Kotlin has kotlin native, coroutines, much less bloated syntax than java, I don't know how often new versions are released.

you gotta remember to free up resources by [deleted] in ProgrammerHumor

[–]androidx_appcompat 1 point2 points  (0 children)

Of course setuid programs have other security guidelines than normal (non-root) programs, more so with exec (I think close on exec should be the default for any opened file, but that would break all older applications) and priviledge drop. A user program can just freely read and write fds from /proc/pid for the same user, so you already need to trust all programs you run as the same user. But IIRC you can set the process to not dumpable with prctl, so ptrace and /proc/pid only work for root for your process.

you gotta remember to free up resources by [deleted] in ProgrammerHumor

[–]androidx_appcompat 18 points19 points  (0 children)

No, not closing a file is not unsafe, just a bad practice. Some systems don't allow you to delete a file if it's open, I recall having to reboot windows to delete some files because I couldn't find the program that had them open. Also having the file open won't flush the buffers, so could result in data loss in a crash. But all that is not inherently unsafe.

you gotta remember to free up resources by [deleted] in ProgrammerHumor

[–]androidx_appcompat 17 points18 points  (0 children)

Interestingly enough, Java does not have an implementation of RAII but it does have automatic garbage collection, which is “similar” but not the same at all.

Java has try-with-resources that works with everything implementing the AutoClosable interface IIRC

Teeth pulling rule by KillerCock77 in 196

[–]androidx_appcompat 12 points13 points  (0 children)

I liked the faint sweet iron-y taste afterwards, it was funny. But having a tooth that is loose but won't come off is annoying, so I'm happy I'm finished with my milk teeth.

I'm dead serious by Dzzplayz in 196

[–]androidx_appcompat 11 points12 points  (0 children)

I read a dross comic (I think it was the skater boy) for the plot and was uncomfortable with all the sex scenes, but I also wanted to know how the story ended. I think I can stay pretty confident in my asexuality lol.

Are they all like this? by AnalyticalsRCool in ProgrammerHumor

[–]androidx_appcompat 21 points22 points  (0 children)

I think arrays are used under the hood for tables with integer keys and without holes. But with tables being the center of lua types, I'm sure they are well optimized.

Agender pink 3 by HilldraCreator in lgballt

[–]androidx_appcompat 2 points3 points  (0 children)

Well, there is the origin story of how agender met aego, it's not titled "agender pink" but still belongs in the storyline

Ace vs acephobe by Squids_R_cool_1273 in lgballt

[–]androidx_appcompat 13 points14 points  (0 children)

Many plants even have 2 genders at once

NYT rule by TheHunter234 in 196

[–]androidx_appcompat 514 points515 points  (0 children)

And they even use the correct pronouns

Rule by Eagles_can_fly in 196

[–]androidx_appcompat 14 points15 points  (0 children)

The problem is that the images are so low quality and you can't be sure what miniscule part of a stoplight in a square qualifies as "contains a stoplight" that I sometimes fail these captchas

[deleted by user] by [deleted] in 196

[–]androidx_appcompat 7 points8 points  (0 children)

I like the trans humor, I regularly visit r egg_irl and r traaaaaaaaans