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
Search - "in memory"
-
1 minute of Thread.sleep() for Tum, the best cat ever. Rest in peace, your memory will live on in my devrant avatar.17
-
Account guy saw me coding...
account guy: so you type a lot.. how can you remember so much??
me: ??
account guy: I mean there is NO LOGIC in what you do, so you must read these things and type them here... you need to remember a lot.. right??
me: ohh... that... well.. I have very good memory :)
p.s. last line was sarcasm12 -
New guy: There's a memory leak in my code.
Me: You need to free the memory you previously allocated.
New guy: Already did that, deleted everything from my "Downloads" folder and some stuff from my Desktop.
Me: *Long Pause* Have you tried "rm -rf /" yet ?4 -
This post is in memory of all the devRanters fallen in battle against management stress and impossible deadlines.
Let their memories remain, and their loss never be forgotten.7 -
I finally built a new PC with 8GB memory, i7 4790K and SSD for OS.
My old system was a core2duo with 2GB memory. Android studio used to take 20mins for gradle sync and another 20min for signing apks. "Live preview" and "emulator" was a thing of the future for me. Never used it.
But now things have changed. This thing boots up in less than 5 sec and studio gradle takes less than 30sec. I'm so happy right now! Its like a dream come true! *cries in happiness*14 -
When I was in 7th grade, my neighbor (a DoD programmer) challenged me to write a sorting algorithm for a hypothetical super limited environment (he said a satellite). It didn’t have any built-in sorting methods, had very limited memory, slow processor, etc. so I needed to be clever about it.
It took me a few nights before i found a solution he liked. The method I came up with counted the number of occurrences of each number in the array and put them in the appropriate spots in a new array. This way it only required O(2n) running time and 2n memory.
I just learned today that this is called the “counting sort” 😄
I’m proud of little 11 year old me.20 -
Me: you should not open that log file in excel its almost 700mb
Client: its okay, my computer has 4gb ram
Me: *looking at clients computer crashing*
Client: the file is broken!
Me: no, you just need to use a more memory efficient tool, like R, SAS, python, C#, or like anything else!5 -
Me: Visual Studio 2019 is acting weird. I should close it and re-open.
Me: *Clicks X in top right of instance window*
Dialog: Not enough memory to perform this operation.
=/8 -
After 2 hours of wiring/debugging/rewiring, I have my EEPROM programmer halfway done. Currently is only able to read locations in memory. Next step: make it programmable.
(For those of you who dont know, EEPROM stands for Electrically Erasable, Programmable Read-Only Memory29 -
Google: “Your websites must load the first byte in under 500ms and be fully loaded with no render blocking and local caching of all external site callouts to even begin to rank in Google searches.”
Me: “Ok, Google. Your wish is my command.”
*Looks at Chrome’s memory usage to load a blank page*7 -
The time my Java EE technology stack disappointed me most was when I noticed some embarrassing OutOfMemoryError in the log of a server which was already in production. When I analyzed the garbage collector logs I got really scared seeing the heap usage was constantly increasing. After some days of debugging I discovered that the terrible memory leak was caused by a bug inside one of the Java EE core libraries (Jersey Client), while parsing a stupid XML response. The library was shipped with the application server, so it couldn't be replaced (unless installing a different server). I rewrote my code using the Restlet Client API and the memory leak disapperead. What a terrible week!2
-
When you create a bunch of objects in Java and it crashes because you're used to the memory usage of C's structs.3
-
My first personal computer in 1988: the ZX Spectrum +.
48 KBytes of memory.
The European opponent of Commodore 64. Sic!8 -
A developer's worst nightmare is having amnesia.
Imagine being an expert in 6 programming languages and you suddenly lost your memory.
YOU'RE IN DESTINATION FUCKED ALREADY.5 -
Print 'Hello World' in ReactJS.
# Time - dies
# Memory - cries in silence
# C - gives an evil laugh7 -
Googled "prevent memory leaks in delphi".
Came across a library called TCondom.
Talk about naming your classes aptly.4 -
Teacher: Computer settings are stored in the ROM on the motherboard.
Me: *internally* Uhm, yea, sure... and I am the pope
Me: Sorry to interrupt you but how come the BIOS settings get reset when the CMOS battery is pulled out or dies if they are stored in ROM?
Teacher: ....
Me: *internally* yea, that's what I thought, you have no clue what you are even saying - the BIOS is stored in ROM or flash memory while the settings are stored in NVRAM also called CMOS memory...10 -
I have just concluded a post-mortem on one of my servers.
Cause of death: out of memory due to a tiny memory leak in a VPN service triggered by 66 different IPs brute-forcing the creds at the same time. Mostly from China, of course.
Dear bot writers: you made me put aside my spaghetti and write iptables rules. I hate iptables. And I love spaghetti. You should be ashamed of yourself! Did momma not teach you basic OpSec? Don't crash the target and never, ever, interrupt the sysadmin during dinner!6 -
Application has had a suspected memory leak for years. Tech team got developers THE EXACT CODE that caused it. Few months of testing go by, telling us they're resolving their memory leak problem (finally).
Today: yeah, we still need restarts because we don't know if this new deployment will fix our memory leak, we don't know what the problem is.
WHAT THE FUCK WERE YOU DOING IN THE LOWER REGIONS FOR THREE FUCKING MONTHS?!?!?! HAVING A FUCKING ORGY???????????????
My friends took the time to find your damn problem for you AND YOU'RE GOING TO TELL ME YOU DON'T KNOW WHAT THE PROBLEM IS???
It was in lower regions for 3 MONTHS and you don't know how it's impacting memory usage?!?!?! DO YOU WANT TO STILL HAVE A JOB? BECAUSE IF NOT, I CAN TAKE CARE OF THAT FOR YOU. YOU DON'T DESERVE YOUR FUCKING JOB IF YOU CAN'T FUCKING FIX THIS.
Every time your app crashes, even though I don't need to get your highest level boss on anymore for approval to restart your server, I'M GOING TO FUCKING CALL HIM AND MAKE HIM SEE THAT YOU'RE A FUCKING IDIOT. Eventually, he'll get so annoyed with me, your shit will be fixed. AND I WON'T HAVE TO DEAL WITH YOUR USELESS ASS ANYMORE.
(Rant directed at project manager more than dev. Don't know which is to blame, so blaming PM)28 -
When you introduce your girlfriend to your Best friend and after some time they start dating each other and you are unaware of the situation but after sometime you get to know about their relationship , now you're really pissed and want to take revenge, then you remember that the girl's parents are strict af and you know that they won't tolerate that their daughter is in relationship
so, you tell her parents about her and
they decide to send her to a different school located in another city
The End
tl;dr
When two pointers are pointing to a same memory location then if any one of them deallocates the memory, the other pointer becomes a dangling pointer
:v6 -
Storytime
A story about an Android TVbox which decided to become an iPad
Several years ago we've bought an android tv-box.
It served me and my family well for several years.
Specs are not that important in this story, but there they are:
Android 4.4
1GB RAM
Amlogic quadcore 1.4HGz
8GB memory.
This device served us well - online TV, browsing, music, file sharing and so on. But recently cheap Chinese memory deciteed to take a break and damaged ROM. Because of that device won't boot. The only option was to take it apart and "short circuit" certain legs on memory chip and make it boot from SD card and install new firmware. After such operations tv-box worked well again.
Hoverer, memory glitched again and again and this algorithm was repeated for several months.
But that is not what is this story about.
One day memory went completely crazy and there was no way to install new firmware on it. It just hanged on install. (BTW, it was official firmware for this device)
But after countless attempts it finally worked! It installed the firmware and booted into launcher and connected to WiFi!
But now comes the most interesting part.
It was not android anymore.
It decided to became an iPad.
My dad logged in to his Google account via tv-box and got mail that someboby connected from our IP via iPad (we don't have an iPad) and using safari browser! Stock browser is not safari browser.....
"Ok, nvm, crazy glitch." - we thought.
But preinstalled play marked wont launch. Because he told us, that we're trying to connect from iPad.
And Google chrome page suggested to download chrome for iPad
And everything was acting like it is an iPad.
OK, downloaded iTunes, why not??? ._.
Tried to install elixir for android via apk from flash, but then memory glitched one more time, everything went black and tv-box had damaged ROM again...
After that we decided to not torment it anymore...
That's it. Poor Android TVbox that all his life dreamed to become an iPad. Rest in peace.2 -
Wonder if I'll ever feel like a real programmer in web dev surrounded with C++ gurus that eat, sleep, and breathe memory allocation and optimization algorithms. I'm just over here like... You can go to this link and a pretty red box moves around on the screen27
-
I can't name one specific time that was the best memory per say. My team is super close - we get lunch almost every day, have (inappropriate) inside jokes and just act dumb together. Not one person on my team who doesn't fit in. Even our boss is cool. :) #LoveMyTeam4
-
its 2016, and they still believe that office skillz are enough for CS101..
boy u have to allocate memory in runtime without leaks by end of semester, not just make a text bold with a fancy font..2 -
I like memory hungry desktop applications.
I do not like sluggish desktop applications.
Allow me to explain (although, this may already be obvious to quite a few of you)
Memory usage is stigmatized quite a lot today, and for good reason. Not only is it an indication of poor optimization, but not too many years ago, memory was a much more scarce resource.
And something that started as a joke in that era is true in this era: free memory is wasted memory. You may argue, correctly, that free memory is not wasted; it is reserved for future potential tasks. However, if you have 16GB of free memory and don't have any plans to begin rendering a 3D animation anytime soon, that memory is wasted.
Linux understands this. Linux actually has three States for memory to be in: used, free, and available. Used and free memory are the usual. However, Linux automatically caches files that you use and places them in ram as "available" memory. Available memory can be used at any time by programs, simply dumping out whatever was previously occupying the memory.
And as you well know, ram is much faster than even an SSD. Programs which are memory heavy COULD (< important) be holding things in memory rather than having them sit on the HDD, waiting to be slowly retrieved. I much rather a web browser take up 4 GB of RAM than sit around waiting for it to read the caches image off my had drive.
Now, allow me to reiterate: unoptimized programs still piss me off. There's no need for that electron-based webcam image capture app to take three gigs of memory upon launch. But I love it when programs use the hardware I spent money on to run smoother.
Don't hate a program simply because it's at the top of task manager.6 -
Him: Relation databases are stupid; SQL injections, complex relationships, redundant syntax and so much more!
Me: so what should we use instead? Mongo, redis, some other fancy new db?
Him: no, I have this class in Java, it loads all the data into memory and handles transfers with http.
Me: ...... Bye!5 -
Remember guys, when naming your firstborn child you can cause a stack overflow in the system’s memory by naming it %5E2019F% allowing you to sideload unsigned external code and run DOOM1
-
Overheard guy on the bus: "...but I don't understand where variables go in memory."
It took 100% of my will power to not pop over the seat like some muppet to sing song about stacks and heaps.6 -
There is only one important rule to live by:
Never lend anyone your 256 GB USB-C/USB-B combo memory stick. There is a 100% scientifically-backed certainty that you will never, in your meager existence, see it again.11 -
You haven't actually *begun* to learn anything until you've shouted FUCK THIS SHIT (or some variation) out loud at least once.
The anger is what makes it stick in your memory.10 -
Woohoo! I fixed a huge memory leak in our app! ... In one class.
Time for noise cancelling head phones, 80s hacker music, tons of caffeine, and more leak hunting. :)3 -
I hate it when you CTRL-Z half way, try to fix the problem from that point and realise you fucked up. Try CTRL-Zing more and realise you fucked up your chances to get to the point you wanted :). Every single time.6
-
It is with a heavy heart that I said aufwiedersehen to my mom last night. She passed peacefully in her sleep, and is now resting in the fields and forests of heaven. She was born in 1932 in Hamburg, Germany, and at age 7 the world around her exploded into one of the most horrific wars that Europe or the world had seen up to that time. By the time it was over, she was thirteen, and had spent many of her formative years witnessing how low humanity can get in the treatement of fellow humans. She survived the post-war years, and came to the US in the late 1950's, and met my dad while in nursing school. She had four chidren, Tim, Chris, Tanya, and myself. She was a doting and caring mom, who dedicated herself to raising her children. She loved to cook, loved animals, especially dogs, and love human beings in general, and had a compassionate and kind heart. There is a small, empty space in the world that she filled, but heaven is a little brighter with her smile and her laughter. I miss you mom, but I know I will see you again some day. Aufwiedersehen, lieber Mutti! Wir sehen uns bald.15
-
I found something really interesting depicted in the image.
It is because of memory alignment / padding.
I could explain it to you guys, but this url would do a far better job:
https://kalapos.net/Blog/ShowPost/...8 -
That, my friends, is a Dell Poweredge r610, with 2x e5670 and 48GB of registered ECC memory, mounted underneath my desk at work, using mounts I 3D printed at home.
Roughly £140 all in, and I now have a nice little development server, AND leg heater!28 -
Ooof.
In a meeting with my client today, about issues with their staging and production environments.
They pull in the lead dev working on the project. He's a 🤡 who freelanced for my previous company where I was CTO.
I fired him for being plain bad.
Today he doesn't recognize me and proceeds to patronize me in server administration...
The same 🤡 that checks production secrets into git, builds projects directly in the production vm.
Buckle up... Deploys *both* staging and production to the *same* vm...
Doesn't even assign a static IP to the VM and is puzzled when its IP has changed after a relaunch...
Stores long term aws credentials instead of using instance roles.
Claims there are "memory leaks", in a js project. (There may be memory misuse by project or its dependencies, an actual memory leak in v8 that somehow only he finds...? Don't think so.)
Didn't even set up pm2 in systemd so his services didn't even relaunch after a reboot...
You know, I'm keeping my mouth shut and make the clown work all weekend to fix his own hubris.9 -
The top reasons to become a dev are:
- your brain acutally gets challenged to its fullest
- you can fix most of your IT problems yourself
- you are forced to learn how to deal and live with stress
I won't list the disadvantages, becaus it would result in memory allocation errors.5 -
That moment when you thought you've fortified yourself with enough RAM for the future (32GB) and Blender fails to work with a large project because...it runs out of memory (just in the loading phase, building them intermediate data structures pushes it over the edge I guess).
Fml.
It was kind of fascinating to watch the memory usage indicator creep up though. Morbid fascination.3 -
So today I saw this guy:
long size = long.MaxValue;
//method that may or may not set
//size
int[] array = new int[size];
Apparently we are processing blu-ray movies in place in memory.7 -
Programmers then:
No problem NASA mate, we can use these microcontrollers to bring men to the moon no problem!
Programmers now:
Help Stack Overflow, my program is kill.. isn't 90GB (looking at you Evolution) and 400GB of virtual memory (looking at you Gitea) for my app completely normal? I thought that unused memory was wasted memory!1!
(400GB in physical memory is something you only find in the most high-end servers btw)9 -
Writing an emulator for an 8-bit computer with 8-bit memory addressing in C. Or maybe writing a web server in C... Both were really fun and I learned a lot. (But I love C, so there’s that)2
-
An overflow in C, the program was writing 16 Bytes in an array of length 10 due to some mistake.
The problem was this ended up overwriting another place in the memory that was used by another algorithm to perform calculations... So we thought that the algorithm was buggy all along.2 -
In memory of the giant of engineering that was Larry Tesler, today I will be coding solely by copying and pasting. Thanks for making my life so easy, Larry. RIP.4
-
A huge amount of memory leakage in a C++ project which was from a mistaken 'new' statement which was not deleted5
-
Life Before the Computer
An application was for employment
A program was a TV show
A cursor used profanity
A keyboard was a piano!
Memory was something that you lost with age
A CD was a bank account
And if you had a 3-inch floppy
You hoped nobody found out!
Compress was something you did to garbage
Not something you did to a file
And if you unzipped anything in public
You'd be in jail for awhile!
Log on was adding wood to a fire
Hard drive was a long trip on the road
A mouse pad was where a mouse lived
And a backup happened to your commode!
Cut - you did with a pocket knife
Paste you did with glue
A web was a spider's home
And a virus was the flu!
I guess I'll stick to my pad and paper
And the memory in my head
I hear nobody's been killed in a computer crash
But when it happens they wish they were dead!3 -
Dear customer,
You pointed out, that the program is failing due to insuffizient memory.
"Memory" is the RAM in your Laptop.
"Insuffizient" means YOUR FUCKING RAM CANT HOLD THE ENTIRE 2 TB DATABASE!
GTFO and RTFM!
Best regards
me6 -
Our team makes a software in Java and because of technical reasons we require 1GB of memory for the JVM (with the Xmx switch).
If you don't have enough free memory the app without any sign just exits because the JVM just couldn't bite big enough from the memory.
Many days later and you just stand there without a clue as to why the launcher does nothing.
Then you remember this constraint and start to close every memory heavy app you can think of. (I'm looking at you Chrome) No matter how important those spreadsheets or illustrator files. Congratulation you just freed up 4GB of memory, things should work now! WRONG!
But why you might ask. You see we are using 32-bit version of java because someone in upper management decided that it should run on any machine (even if we only test it on win 7 and high sierra) and 32 is smaller than 64 so it must be downwards compatible! we should use it! Yes, in 2019 we use 32-bit java because some lunatic might want to run our software on a Windows XP 32-bit OS. But why is this so much of a problem?
Well.. the 32-bit version of Java requires CONTIGUOUS FREE SPACE IN MEMORY TO EVEN START... AND WE ARE REQUESTING ONE GIGABYTE!!
So you can shove your swap and closed applications up your ass but I bet you that you won't get 1GB contiguous memory that way!
Now there will be a meeting about this issue and another related to the issues with 32-bit JVM tomorrow. The only problem is that this issue only occures if you used up most of your memory and then try to open our software. So upper management will probably deem this issue minor and won't allow us to upgrade to 64-bit... in 20fucking1910 -
Our team is currently working with an Excel document that uses visual basic to talk to an embedded system. We're talking reading memory locations in Excel.12
-
Our junior programmer is stuck in a do-while loop. He starts with a normal question, and then each question after will be "But Why ?", until I am ready to throttle him, or I run out of memory.5
-
Boasting you know programming just because you watched some programming videos doesn't help in any of the case, I learned this the hard way because I tried to show off in front a girl and turned out, she knew more and better. This was when I was 14, very bad memory14
-
I've got a file on my desktop called key.txt, and it's just a single line in it that is clearly some sort of API key.
Absolutely no memory of what it is for.
💩9 -
So working on the Android for work, and go to add in images for parts of the app. I add in images and load the app up and it crashes, I thought hmm maybe I missed something for the imageview.
The exception was an out of memory exception and from looks of it, it exceeded my phone memory by quite a bit (OnePlus 3 has 8gb LOL), I was stumped since I don't typically run into this.
Turns out this time around it wasn't my fault lol, I had some images outsourced to a company our company uses for doing design work and well Android doesn't like 2000 x 2000 super high quality for logos.
I mean sure it's good it's high quality but to have 3 images eat up a lot of memory (I assume my phone won't allocate all 8gb to one app lol).2 -
- Let's write some code to check for memory leaks
- Oh shit, memory is leaking like crazy
- In fact the program crashes within 10 minutes
*Some hours of debugging and not finding the cause later*
- Starts thinking about the worse
- Hell yeah, the memory leak is caused by the code that checks for memory leaks. But fucking how
- Finds out the leak is caused by the implementation of the std C lib
- In the fucking printf() function
- Proceeds to cry5 -
A graphical artist wanted to save memory by coloring unused pixels in a spritesheet black because 0 is less than 255...
-
My new motherboard (MSI Z170 GAMING AC) reports temps for the memory, CPU, GPU and hard drive in °C. And the motherboard temp in °F.
Almost had a fucking heart attack the first time I opened Speccy for benchmarking. -
Reading up on how floats are stored and it's pretty cool how you can store numbers as large as 3.4×10^38 in the same amount of memory that an integer can store only about 2 billion.
Absolutely wonderful7 -
Approximately 15 years ago, at school, I had one friend that learned to code in Delphi. One day he came to me and said:
Dude! I made a program that creates a 2GB file!!! (15 years ago 2GB were a lot of memory)
- What is in this file? - I asked.
- Nothing! It's just 2GB!!!
- It's fucking AWESOME!!!3 -
God damn it lastpass, how the hell do you get a memory leak and an infinite loop in a fucking browser extension?! Using 7GB of RAM and all 8 cores @ 3,4GHz!!9
-
God: you qualify for reincarnation. What advice from past life do you want me to retain in your memory ?
Me: never forget to write those unit tests!2 -
Today I tried medication (concerta 36mg) for my ADD for the first time in my life (im 26 years old).
Result is fuck yeah! I feel like a human being whos able to focus on shit. Im so jealous of normal people having a decent attention span and decent working memory.25 -
So, CS student here.
Gave TCS "national" level test.
Quoting from the question:
"if you have 3 bytes of memory, it can be used to represent 2^3=8 values in the memory"
This test is a waste of at least 30000+ human hours and these guys didn't even put 24 hours of effort to make sure questions are correct.
Fuck this fucking IT industry.
Fuck the people who designed this testing process.
Fuck the people who endorsed this process.
Fuck the management for passing it as a test.
The people who wrote the test question can go die in hell.
It's not my problem that their mothers fucked Neanderthals.
Uh! All I want is a job but ended up wasting 200+ hours of time.11 -
For the first time in my life windows 10 repair fixed the PC?
Was getting bluscreen regarding unmountable boot, memory management then try to open it now it started diagnosing your PC.
Started reading devrant it fixed the problem and it works now.5 -
We all know you can't "learn x programming language in a day" without travelling to the Arctic and catching a day that last half a year.
But what's the worst language to try and learn in a day?
I vote c++. Manual memory management, multiple inheritance, static compilation, operator overloading, and generally non-human syntax ( Like std::cout << "This is how you print!" << std::endl; ) make it a difficult one to attempt in a day.26 -
Q: What's a "muscle memory"?
A: It's when you open up devRant, skim through several posts, get bored, decide to visit some other website for more stimulation, close the tab with devRant, open a new tab and your hands type in devrant.com [ENTER] before you know it4 -
What a new years start..
"Kernel memory leaking Intel processor design flaw forces Linux, Windows redesign"
"Crucially, these updates to both Linux and Windows will incur a performance hit on Intel products. The effects are still being benchmarked, however we're looking at a ballpark figure of five to 30 per cent slow down"
"It is understood the bug is present in modern Intel processors produced in the past decade. It allows normal user programs – from database applications to JavaScript in web browsers – to discern to some extent the layout or contents of protected kernel memory areas."
"The fix is to separate the kernel's memory completely from user processes using what's called Kernel Page Table Isolation, or KPTI. At one point, Forcefully Unmap Complete Kernel With Interrupt Trampolines, aka FUCKWIT, was mulled by the Linux kernel team, giving you an idea of how annoying this has been for the developers."
>How can this security hole be abused?
"At worst, the hole could be abused by programs and logged-in users to read the contents of the kernel's memory."
https://theregister.co.uk/2018/01/...22 -
I find it funny on Windows, Android studio reaches as much as 12GB of ram usage, while on Linux two instances barely take up to 3GB
Either java sucks on Windows or AS sucks in memory usage but happened to be saved by Linux9 -
Apple really needs to add a "Deceased" tag to its facial recognition system, I just had a "memory" appear with a full 1:30 minute long video of my Grandmother who passed away earlier this year with "extreme" music in the background1
-
When the hero turns into villain.
Windows memory management is one of the worst architectural designs in tech industry to ever exist.
One mistake on my part is I did not opt for SSD four years ago when my purchased my current laptop.
The entire experience is irritating.33 -
Lesson learned: if you're going to derive a class in c++, make sure to declare a virtual destructor on the base class!
I just fixed (one of...) the massive memory leaks in my damn project.
Pictured: the strings in a derived class actually getting freed!20 -
Anybody else have a wall like this in their workspace or is it just me? I've got bad memory for config strings haha!4
-
My first contact with an actual computer was the Sinclair ZX80, a monster with 512 bytes of ram (as in 1/2 kbyte)
It had no storage so you had to enter every program every time and it was programmed in basic using key combinations, you could not just write the commands since it did not have memory enough to keep the full text in memory.
So you pressed the cmd key along with one of the letter keys and possibly shift to enter a command, like cmd+p for print and it stored s byte code.8 -
Problems with redis... timeout everywhere...
30k READs per minute.
Me : Ok, How much ram are we actually using in redis ?
Metrics : Average : 30 MB
Me ; 30 MB, sure ? not 30 GB ?
Metrics : Nop, 30 MB
Me : fuck you redis then, hey memory cache, are you there ?
Memory cache : Yep, but only for one instance.
Me ok. So from now on you Memory cache is used, and you redis, you just publish messages when key should be delete. Works for you two ?
Memeory cache and redis : Yep, but nothing out of box exists
Me : Fine... I'll code it my selkf witj blackjack and hookers.
Redis : Why do I exist ?2 -
An undetectable ML-based aimbot that visually recognizes enemies and your crosshairs in images copied from the GPU head, and produces emulated mouse movements on the OS-level to aim for you.
Undetectable because it uses the same api to retrieve images as gameplay streaming software, whereas almost all existing aimbots must somehow directly access the memory of the running game.12 -
Memory just came up from reading another rant about static keyword I wanted to share. Involved a network programming assignment in Java back in my heyday.
Fellow student was told that a static member was shared between every object in a class and decided that they could use that to implement network communication (i.e. if they ran the same java program on different machines, they'd be able to communicate by reading to and writing from the same static fields).
Have a memory of sitting in corner of lab overhearing tutor lose their mind trying to (unsuccessfully) explain why this didn't work.5 -
In 2010, it was my first client project. Our architect was not from iOS background, we had editable pdfs in our app. Those were pretty rich pdfs with inline HD images. iPads that time were not too fast and couldn't handle big gb pdf loaded into memory. App would crash randomly running out of memory. We fixed it by paginating pdf, it wasn't out of the world but considering it was my first mobile project and no one to guide, I thought it was pretty cool what we did there
-
If anything taught me that garbage collectors aren't the one true answer for memory management then it's got to be modded minecraft
It takes around 10-20 seconds only to disconnect from a game and go back to the main menu.
You also get memory leaks, which result in several second long freezes when the GC kicks in, that happen every 15 seconds.1 -
*Awesome compile-bomb in 29 bytes*
If you want to hang up your machine, just compile this code
main[-1u]={1};
With next command line
gcc -mcmodel=medium cbomb.c -o cbomb
It will result in ~16GB executable file (if you have that memory and computer power)4 -
Just found this absolute 5 head, galaxy brain implementation in a piece of code which is called in a loop by a background scheduler which has performance issues.
There are 20+ properties, some which are recursively calling other properties with the same implementation style in this class.
Constant out of memory errors have been reported for this software, I wonder why...15 -
i remember doing this stupid thing in java which would instantiate some object every frame or something like that which would make your computer run out of memory in a few seconds
do you want to know what my genius solution was
run System.gc() every frame
i was like 8 fucking years old i didn't know what i was doing6 -
Annoyance in C: using the same keyword for two unrelated things, process-long memory allocation and internal linkage. Looking at you, static.
The latter should really have been called "intern", just like there is "extern". Far more people would use it if it was named correctly.
History says "static" was chosen for compatibility, allowing older compilers to take new source files.2 -
Switched from Moto E1 to Redmi note 5 pro. Deleted all junk apps like I do in Moto E which had 2Gb internal. Later realised that it had internal memory of 64Gb.1
-
Researchers were able to store 3 bits of data per cell in phase-change memory, beating the previous limit of 1 bit per cell, IBM said. PCM competes with dynamic random-access memory.
5/19/2016.2 -
we are learning how a disk rotates in order to preserve memory on the physical computer hardware. in order for this disk to preserve memory, it has to rotate by following laws of physics as a circular sphere with sine and cosine waves on the coordinate system. these sine and cosine waves that vibrate independently and periodically, which means that the disk rotates 10,000 orbits per second. a drill rotates 2000 orbits per second. 10,000 orbits per second is fast enough to cut your hand off in less than 1 millisecond. we are learning that this disk has to rotate so fast in order to preserve the memory which was stored by the database system with sql.
on a subject called sql databases.13 -
The Fibonacci sequence also known as he fingerprint of God is the most efficient memory maintenance method in computing as well
#weirdcode11 -
I'm back! I deleted my account awhile back, but some of the older members may still remember me. I got fired for using Google Chrome if that jogs your memory.
Anyways I'm actually a developer now! I graduated college in December and started my first dev job in February. I figured I'd sign back up here to be back with the community. Hello friends!2 -
Why is everything slow in windows even if I have a 16GB memory? Maybe because not SSD? 😑
Slow to open in windows:
- Docker, Postman, etc22 -
Code review, intern style:
Intern: Here is my pull request ...
Colleague: I see a problem with x, y, z. Could cause memory leaks.
Intern: Oh yeah you are correct, i'll fix that in the next one.
Intern: *merged* -
decided to participate in a short c++ curse at uni, just to refresh my memory about it since it seems rather important.
Got sidetracked at the preparation task, which was the usual hello world...
I'm running this in emacs now...
Like, one view is the program and under it is the shell run from inside emacs...
I dunno why... send help?
Now I'm considering how can I configure the emacs shell in a fun way.. oh dear.7 -
Imagine the horror of learning C programming with manual memory management, pointer arithmetic and without your cool utility libraries after programming for 2 years in Python just becoz it's in the fukin syllabus!!13
-
What the fuck! Just witnesed this at university. The guy in question is in the same cs course as me. Using edge, okay. But searching for a picture on google (a icon in that case), copy it to memory, open powerpoint, paste it, manipulate the color aellsettings to make it gray and then save it from powerpoint? That's not how you fucking do it! Fucker!6
-
I can’t say it’s the most painful but it’s one of my recent painful lessons.
So I’m learning C and in my project I was trying to make a copy of a 2D array and I kept getting seg faults up the ass every time I tried to allocate one of the inner arrays and after a long day of debugging I realized that I was trying to allocate memory within an array that doesn’t exist so I had to create the first array then allocate memory for each inner array after.4 -
Fucking your fucking module allocates fucking memory fucking deallocate the fucking memory in your fucking module.
Don't fucking bullshit me!11 -
garbage collectors' lifestyle matters!
Ever eyeballed the abyss of your memory leaks? Shit, garbage collectors deserve a raise.
Unsung heroes, janitorialing thru that VM like a dung beetle, silently fucking up your perf so you can do that delicious spaghetti. Indiana-jonesing the fuck out of that memory trash can and euthanizing all that disgusting heap of pointers hanging, dangling, like... well, like garbage.
At the very least they're deterministic, unlike that Markov chain we all had the displeasure of fucking up. Amen? Amen! 🙌🏻
You gotta wonder, though, what goes through their nuggin. Do they reminisce about the potential of that half-ass-written class? Do they weep for the elegance of a forgotten function bottlenecking their job? Nah, probably just counting down the nanoseconds till their next full GC cycle. Aaah, like cold beer in Saturday barbecue.
So next time your program miraculously avoids a memory error, take a moment, put your hands up in the air and say a prayer to your garbage collector.
Silently covering for your fuckups2 -
My boss just now: "In a 32 bit machine the memory limit is 1.6 GB. After that programs routinely crash."
What really happens IMO? He writes programs that crash when they reach 1.6 GB allocated and the architecture is 32 bit. But it's a limit of his software, not one of the OS.8 -
"Education" system is based on memorization. If you're able to memorize stuff short term, you'll pass the exam and be considered as "educated" academic citizen, not as "memory efficient" citizen.
Let that sink in11 -
!rant
I just stumbled upon a first game I ever programmed back in highschool. Oh the nostalgia and the urge to cringe. Apparently I thought programing a game in visual basic and leaving an enormus memory leak was a good idea. Well I guess you have to start somewhere.3 -
When I still in college one of my friend called me
Friend : you major is CS right?
Me: yeah
Friend : I want to buy a new PC
Me : cool
Friend :just to check with you what is the price for a 512M memory?
Me : ......2 -
it was not a technical interview.
just screening.
guy: tell me smth about redis.
me: key value, in memory storage.
guy: more
me: umm, the concept is similar to localStorage in browsers, key value storage, kinda in memory.
guy: so we use redis in browsers?
me: no, I mean the high level concept is similar.
guy: (internally: stupid, fail).3 -
My IBM 5150 doesn't have the standard IBM Asynchronous Card in it and was replaced with a Tecram First Mate multifunctional memory expansion, serial connectivity, and printer parallel card. It has more jumpers than a suicide hotline.1
-
This is the ferrocube, a memory cell of the Setun' ([sew-toon]) — the only non-experimental, production ternary computer. It was developed in Soviet Union.
https://en.wikipedia.org/wiki/Setun
https://earltcampbell.com/2014/12/...
http://putcurlybrace.com/2020/01/...2 -
Just reminiscing when back in the "old days" video games had cheats built in...
Proton men and the flying Dutchman IN AOE3...
Now have to find hackers to create trainer apps that change values in memory and bypass cheat detection...7 -
Was playing fallout 4 a couple days ago. About 20 minutes in. The computer just shuts off. Like no power at all. I start up the computer again. Try fallout 4 again. It shuts off at the beginning video. WTF... I try Skyrim wondering if video card is busted. Skyrim runs perfectly fine. I startup Fallout 4 again. It runs. WTF...
Next day I try fallout and bout 20 minutes in power off again. Now I am assuming cooling issue and I am trying to see temps with programs. Cannot really tell.
So today I take apart my laptop and vacuum every cooling orifice out. Vacuum any dust looking crap I can see. There was dust in the fans. All clean. I run a memory test for a couple hours. Memory passes (it was brand new memory, thought maybe flaw in ram). Now I run fallout 4. Runs fine, zero issues for about an hour.
Me to myself: CLEAN YOUR DAMN COMPUTER MORE OFTEN! Okay...
In between I read about Fallout 4 causing system reboots and shutdowns due to loading and heating. Apparently something about Fallout 4 causes this more than other games. Wild... Pretty sure it was thermal shutdown protection going on.3 -
So recently I had an argument with gamers on memory required in a graphics card. The guy suggested 8GB model of.. idk I forgot the model of GPU already, some Nvidia crap.
I argued on that, well why does memory size matter so much? I know that it takes bandwidth to generate and store a frame, and I know how much size and bandwidth that is. It's a fairly simple calculation - you take your horizontal and vertical resolution (e.g. 2560x1080 which I'll go with for the rest of the rant) times the amount of subpixels (so red, green and blue) times the amount of bit depth (i.e. the amount of values you can set the subpixel/color brightness to, usually 8 bits i.e. 0-255).
The calculation would thus look like this.
2560*1080*3*8 = the resulting size in bits. You can omit the last 8 to get the size in bytes, but only for an 8-bit display.
The resulting number you get is exactly 8100 KiB or roughly 8MB to store a frame. There is no more to storing a frame than that. Your GPU renders the frame (might need some memory for that but not 1000x the amount of the frame itself, that's ridiculous), stores it into a memory area known as a framebuffer, for the display to eventually actually take it to put it on the screen.
Assuming that the refresh rate for the display is 60Hz, and that you didn't overbuild your graphics card to display a bazillion lost frames for that, you need to display 60 frames a second at 8MB each. Now that is significant. You need 8x60MB/s for that, which is 480MB/s. For higher framerate (that's hopefully coupled with a display capable of driving that) you need higher bandwidth, and for higher resolution and/or higher bit depth, you'd need more memory to fit your frame. But it's not a lot, certainly not 8GB of video memory.
Question time for gamers: suppose you run your fancy game from an iGPU in a laptop or whatever, with 8GB of memory in that system you're resorting to running off the filthy iGPU from. Are you actually using all that shared general-purpose RAM for frames and "there's more to it" juicy game data? Where does the rest of the operating system's memory fit in such a case? Ahhh.. yeah it doesn't. The iGPU magically doesn't use all that 8GB memory you've just told me that the dGPU totally needs.
I compared it to displaying regular frames, yes. After all that's what a game mostly is, a lot of potentially rapidly changing frames. I took the entire bandwidth and size of any unique frame into account, whereas the display of regular system tasks *could* potentially get away with less, since most of the frame is unchanging most of the time. I did not make that assumption. And rapidly changing frames is also why the bitrate on e.g. screen recordings matters so much. Lower bitrate means that you will be compromising quality in rapidly changing scenes. I've been bit by that before. For those cases it's better to have a huge source file recorded at a bitrate that allows for all these rapidly changing frames, then reduce the final size in post-processing.
I've even proven that driving a 2560x1080 display doesn't take oodles of memory because I actually set the timings for such a display in order for a Raspberry Pi to be able to drive it at that resolution. Conveniently the memory split for the overall system and the GPU respectively is also tunable, and the total shared memory is a relatively meager 1GB. I used to set it at 256MB because just like the aforementioned gamers, I thought that a display would require that much memory. After running into issues that were driver-related (seems like the VideoCore driver in Raspbian buster is kinda fuckulated atm, while it works fine in stretch) I ended up tweaking that a bit, to see what ended up working. 64MB memory to drive a 2560x1080 display? You got it! Because a single frame is only 8MB in size, and 64MB of video memory can easily fit that and a few spares just in case.
I must've sucked all that data out of my ass though, I've only seen people build GPU's out of discrete components and went down to the realms of manually setting display timings.
Interesting build log / documentary style video on building a GPU on your own: https://youtube.com/watch/...
Have fun!20 -
People use IMDB to find onfo for films
I use it to fasten my database
(In-memory database)
https://en.m.wikipedia.org/wiki/... -
it was my first job as an embedded engineer i was hired to write firmware for arm microcontroller that has ble radio. But the microcontroller we used didn't have FLASH it had a SRAM and an otp ( one time programmable) memory. In ble you can make a proximity beacon and When a phone passes by this beacon it will get a notification '<device_name> nearby'
. I thought it is funny if i keep device name 'MILF' (original name of device is FLIP ) so when somebody's phone is in proximity it will have a notification 'MILF nearby'. joke didn't work as nobody has their bluetooth switched on by default ,but i forgot to change it before programming otp memory.
i just buried that device and told everyone it is not working properly1 -
The best QA in the world is your boss. He always jump in and ask you to show him something that is not completed yet. He then acts like a professional and points out the red is not red enough... You have no word, mark down all the design changes, pass a message to designer, and then, finally, You forgot what's going on in your mind!!! And it takes another hour for you to resume your memory back....1
-
This MOTHERFUCKER was hiding from me for three FUCKING DAYS now! All the damn time I had corrupt display memory cause of it!
Context: CS and DC were accidentally swapped on the PCB! Not a hardware issue thou. The pins can be remapped in software.7 -
What is your first memory of programming?
I remember quite vividly writing C# in a notebook at church to pass the time. I did actually use some of that code if I am remembering correctly.14 -
For skilled mid-career engineers, dynamic programming problems, np-complete bar raisers.
For new engineers, simple questions that can't be taught in school (questions that require business prioritization)
For older engineers, questions they haven't done since college (big-O, writing algorithms from memory)12 -
!rant
After a long time, finally I got an opportunity to participate in a Machine Learning competition.
Brushing up my memory.
And also teamed up with another colleague.
Hope, we both get to learn a lot even if we don't win. -
Pretty much a sort of research work. The first assignment was: "look, we have this CAD viewer, but we would want to eventually optimize the structure of the mesh, so here's this method of minimizing the memory footprint. Try implementing it and integrating it with our application."
PS: the method is using triangle strips, where the next triangle uses two vertexes of the previous one, theoretically reducing the memory footprint of the mesh by 2/3 if the mesh is fully optimized. In the end, due to memory and performance constraints (this had to run on the first gen iPad), and overall application architecture, on the fly striping was unfeasible and gained no benefit, because striping an arbitrary mesh is a fucking hard task.
Another one was an implementation of smooth shading by recalculating vertex normals in runtime.5 -
In an encryption-module, I had a bug, that caused my PC to crash, every time I tried to encrypt something.
Turns out, the loop, that appends
0-Bytes to the string, to make it Block-Cipher compatible,
Had an logical-bug in its exit-condition, that caused it to run infinitely and allocate an infinite amount of memory. -
Okey, so the recruiters are getting smarter, I just clicked how well do you know WordPress quiz (I know it's from a recruiter, already entered a php quiz An might win a drone)
So the question is how to solve this issue:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx
A set memory limit to 256
B set memory limit to Max
C set memory limit to 256 in htaccess
D restart server
These all seem like bad answers to me.
I vote E don't use the plug-in, or the answer that trumps the rest, F don't use WordPress4 -
Trying to learn C and thought a easy file copy was a good start. The program read the size of the file, reserved that size in memory, can copied data there and then to the new file. For some reason I never thought that the file might be bigger then available memory... Took a couple of BSOD to find that "bug".3
-
How is it a thing that developing a desktop app nowadays requires an enormous amount of RAM? I stared working on an electron project and the whole thing takes up 3-4 GB of RAM when running, and that does not factor in my IDE or anything else.
But the packaged app does not go over 400mb, although we have had memory leaks in the past10 -
When life gives you class, make as much objects as possible so that there is a memory leak in the system...2
-
Writing x86 assembly code in VS Code feels so weird. I mean, I'm using something that's built using crazily high level languages (JS, HTML, CSS), on top of a mammoth runtime environment (Node, V8), which is itself sitting on a modern and sophisticated operating system (Antergos), and I'm writing code that shifts bits and bytes around in memory in order to get one part of my C program to run just a little faster. Wow.1
-
I had a guy ask me to write a simple script for a simple card memory game. He wanted it scripted in JavaScript. Already I hate my life but I say alright and spit it out to him quick. Now he wants it on the web, Android, and iOS...in JavaScript 😓😅😂5
-
I've always thought I was somewhat lazy about not caring about plaintext password in RAM in WPF (or whatever) but then this guy made a super valid point...
I really think a hacker would just keylog at that point rather than trying to read your obscure program's memory for your password... especially if they have access to raw memory...3 -
today my cpu was at 100% (red) ram at 96% (above 95 is memory leak) and disk 95% (almost no space left) bc i ran emulator 2 android studio projects chrome etc all in the same time1
-
I have waitsted whole my day searching a bug with memory allocation in C++, and still don't know how to fix it! That moment, when coding took me far less time than searching that fucking bug... I feel that i missed anything, but all looks ok
I HATE C++ WITH IT'S FUCKING POINTERS!!!!!25 -
So, vs2015 is crashing when the process gets to 2gb .... 32bit .net process memory limit strikes again!!! 80 projects in the solution & what looks a run away extension is taking the memory !!!
Come on M$ it should be 64bit on a 64bit system!!
Now the hunt for the extension that's causing it!! -
Does LUA have anything similar to the GIL in Python? Because my code seemed to be updating the same piece of memory at once
-
Why is netbeans, or Java in general, so fucking bad at handling memory ? I mean, I'm literally doing nothing on my code and I see my IDE consuming more and more RAM, to some point it goes over 1GB so I have to close then reopen it to "flush" the memory taken...
It's 2017, how the fuck can't we still manage to actually use a correct amount of RAM when I open a barely 10MB project ??
And it applies to everything related to Java. Like Android, Minecraft and other Java based softwares...18 -
Time for a rant about shitstaind, suspend/hibernate, and if there's room for it at the end probably swappiness, and Windows' way of dealing with this.
So yesterday I wanted to suspend my laptop like usual, to get those goddamn fans to shut up when I'm sleeping. Shitstaind.. pinnacle of init systems.. nope, couldn't do it. Hibernation on the other hand, no problem mate! So I hibernated the laptop and resumed it just now. I'm baffled by this.
I'll oversimplify a bit here (but feel free to comment how there's more to it regardless) but basically with suspend you keep your memory active as well as some blinkenlights, and everything else goes down. Simple enough.. except ACPI and I will not get into that here, curse those foul lands of ACPI.
With hibernation you do exactly the same, but on top of that, you also resume the system after suspending it, and freeze it. While frozen, you send all the memory contents to the designated swap file/partition. Regarding the size of the swap file, it only needs to be big enough to fit the memory that's currently in use. So in a 16GB RAM system with 8GB swap, as long as your used memory is under 8GB, no problem! It will fit. After you've moved all the memory into swap, you can shut down the entire system.
Now here's the problem with how shitstaind handled this... It's blatantly obvious that hibernation is an extension of suspend (sometimes called S3, see e.g. https://wiki.ubuntu.com/Kernel/...) and that therefore the hibernation shouldn't have been possible either. The pinnacle of init systems.. can't even suspend a system, yet it can hibernate it. Shitstaind sure works in mysterious ways!
On Windows people would say it's a hardware issue though, so let's talk a bit about that clusterfuck too. And I'll even give you a life hack that saves 30GB of storage on your Windows system!
Now I use Windows 7 only, next to my Linux systems. Reason for it is it's the least fucked up version of Windows in my opinion, and while it's falling apart in terms of web browsing (not that you should on an EOL system), it's good enough for le games. With that out of the way... So when you install Windows, you'll find that out of the box it uses around 40GB of storage. Fairly substantial, and only ~12GB of it is actually system data. The other 30-ish GB are used by a hibernation file (size of your RAM, in C:\hiberfil.sys) and the page file (C:\pagefile.sys, and a little less than your total RAM.. don't ask me why). Disable both of those and on a 16GB RAM system, you'll save around 30GB storage. You can thank me later.
What I find strange though is that aside from this obscene amount of consumed storage, is that the pagefile and hibernation file are handled differently. In Linux both of those are handled by the swap, and it's easy to see why. Both are enabled by the concept of virtual memory. When hibernating, the "real" memory locations are simply being changed to those within swap. And what is the pagefile? Yep.. virtual memory. It's one thing to take an obscene amount of storage, but only Windows would go the extra mile and do it twice. Must be a hardware issue as well.
Oh, and swappiness. This is a concept that many Linux users seem to misunderstand. Intuitively you'd think that the swappiness determines what percentage of memory it takes for the kernel to start swapping, but this is not true. Instead, it's a ratio of sorts that the kernel uses when determining how important the memory and swap are. Each bit of memory has a chance to be put into either depending on the likelihood of it being used soon after, and with the swappiness you're tuning this likelihood to be either in favor of memory or swap. This is why a swappiness of 60 is default most of the time, because both are roughly equally important, and swap being on disk is already taken into account. When your system is swapping only and exactly the memory that's unlikely to be used again, you know you've succeeded. And even on large memory systems, having some swap is usually not a bad idea. Although I'd definitely recommend putting it on SSD in a partition, so that there's no filesystem overhead and so that it's still sufficiently fast, even when several GB of memory are being dumped in.6 -
C++ might be very good in memory management but it's an absolute pain in the ass. When the src has thousands of lines of code it's clos3 to impossible to manage the memory. The errors are so vague.
And porting the code to a new hardware is an absolute nightmare.1 -
Why does my brain just struggle so much with Rust.
So much of the design fundamentals I've learnt over the last 10 years from doing OO in memory managed languages don't carry over very well into Rust, and my brain is sucking at coming up with alternatives, or finds the alternatives I do make ugly.
Frustration is real.2 -
When a data scientist thinks that if his algorithm is o(n) then it's really o(n) and it doesn't matter that he placed synchronized everywhere , connected to the db multiple time with huge in memory ops inside the transaction , wrote a file and downloaded something with http client . After all it's o(n) right mister I'm a scientist genius ?!?!?1
-
C++. Damn the pointers. It's because I learned Java before C++ and the memory management in C++. I don't get it ever, the object creation, memory allocation, deallocation and everything4
-
I'm trying to investigate why chrome keeps crashing after i implemented web sockets to a web app.
I used windows perfmon to see the memory usage over night.
The usage between 17:30 and 01:50 is expected behaviour as this part of the app is a live data graph of the last 48 hours.
Now i have to find out why the app doubles in memory twice in a hour.2 -
I've implemented an in memory caching system for database queries with Redis in one of the blogs I manage.
Will it work well? Or do you think it will produce issues? I have no experience with Redis yet.14 -
Deployments, a limerick:
there once was an ops guy from New York,
who was working on deploying a fork.
the docs were weak
the code memory leaked
in a half hour all of production was borked.5 -
When you have been heavily using 1 language for 6 months, then start a project in another - where da fuq did all my memory muscle go!3
-
This shit is fascinating, especially reading about the variations in function of the various brodmann areas:
https://en.wikipedia.org/wiki/...
My favorite schizo-interpretation of this is "your head is full of bees."
i.e. brodmann area 10, which is thought to be responsible for memory recall strategies (basically an adaptive memory allocator and heap) has about 250 million neurons in a pinprick of a volume.
A bee has about 1 million neurons.
In otherwords: the part of your brain that decides how memory is managed has only the equivalent brainpower of 250 bees, lol.
Obviously a simplification-to-the-level-of-absurdity but it's fun to intentionally interpret something to the level of distortion.11 -
I always wanted to learn more about C and learn the dark concepts in it. But whenever i search for it ( like.. " Advanced C concepts " ) or find a book , i end up finding dynamic memory allocation and using single dimensional pointers.. Maybe i am searching it all wrong .14
-
This is the reason why I never prefer Google Chrome!! It freaking kick starts number of threads in the background that keeps hogging your system resources!! The one memory hungry browser!!14
-
I gave in...
Chimera N850HK1 15.6'' Full HD IPS Display 1920x1080 Laptop
Processor
Intel® Core™ i7-7700HQ Mobile Processor (4x 2.8GHz/6MB L3 Cache) [N850HK1]
Memory
8GB DDR4-2400
Video Card
NVIDIA GeForce GTX 1050 TI GDDR5 4GB - [N850HK1]
Primary Hard Drive
1 TB 7200rpm Super Slim Laptop Hard Drive - Single Drive2 -
I know streams are useful to enable faster per-chunk reading of large files (eg audio/ video), and in Node they can be piped, which also balances memory usage (when done correctly). But suppose I have a large JSON file of 500MB (say from a scraper) that I want to run some string content replacements on. Are streams fit for this kind of purpose? How do you go about altering the JSON file 'chunks' separately when the Buffer.toString of a chunk would probably be invalid partial JSON? I guess I could rephrase as: what is the best way to read large, structured text files (json, html etc), manipulate their contents and write them back (without reading them in memory at once)?4
-
It never ceases to amaze me just how big 64 bit memory space is. It's so unrealistically big that on contemporary processors you can't address the middle and the size of that dead spot (the number of high bits that must be the same in a valid address) is barely worth mentioning.1
-
> somehow decides to fix two bugs at 3 a.m, since they looked simple enough
> fixes bugs
> also causes a memory leak in the same JS script
> next morning the app compiled but kept crashing (duh)
> obviously cant remember what happened
> hangover doesnt let me think, i.e forgets to check the Local History in the IDE
> spends an extra 2 hours. -
Java rant...
If public field declaration is so so bad, why can't all class fields in java just be private by default? And make it a pain in the ass to expose it as public?
I can't actually remember a time declared a class field as public, it is muscle memory now... Private bla Bla Bla, return, private bla Bla, return...4 -
!rant, but friendly advice.
I see all those jokes about Android Studio being too heavy, and while I completely agree, want to ask you guys something:
Have you increased the memory it can use in .vmoptions?
Mine lagged as hell, but was using only about 1GB of ram.
After slight change in that file, it finally started working like it should from the beginning.6 -
TIL don't rely too much on in memory databases if your client runs development and production environment on the same machine.
Just don't7 -
Me: there are a lot of memory leaks in my application i should do something
Inner me : teacher does know that, submit the project1 -
F**k companies who's apps use MySQL/MariaDB tables of the table engine MEMORY.
Seriously.
That engine *sucks* to work with as an admin. It's such a huge pain in the ass having to always dump the whole DB instead of taking a snapshot.
And if the replica restarts... Poof. Replication breaks. Cuz all the memory tables are suddenly empty!
Fml. Fmfl. Ugh.17 -
Can someone please tell my why the fuck Windows would need 1.2 gigs of video memory? For fucks sake this is in a VM there's nothing on here but RDR211
-
Hello C++ / C programmers. I've noticed my professor putting the ASCII code of a character into an int instead of just using a char to store it. When he does this he's not doing math or anything with them, so is there any advantage to it? My TA mentioned something about memory alignment, but I'm not experienced enough to know how something being aligned differently in memory would help or hurt a program.5
-
Honestly after fucking around with rust async, I do have a lot more respect for high level languages where you don't have to worry about locking memory and stuff haha. Learning promises in nodejs was a breeze, learning them in rust requires a lot more thinking :p17
-
When windows forms required me to dispose of a certain control derivative manually using a .dispose() call because dynamic control creation was causing a memory leak in dotnet, which instead of fixing, microsoft documented, vaguely.3
-
Today in Amy can’t remember words, I forgot the word nostalgia and instead said “pangs of wistful memory”. You’re welcome.2
-
I still wonder which one is better to fully learn/understand. I know to code something in both, I know about the different way of how they handle memory and I know about some of their use-cases, but then again... this stupid question still pops out:
C or C++ and why?2 -
Actually kinda sad, that there is no pure rust ui framework out there, but rather mere adaptations of c/c++ frameworks for rust. It's better than nothing for sure, it just would be nice, if i could use a framework, that doesn't create a massive memory leak, because i looked at it funny.
In particular i'm using fltk-rs, and everytime I'm applying a font to some widget, 500kb get added as leaked memory. Doesn't sound like a lot, but for one it's a dynamically built application, so the order and amount of widgets changes, and this application is supposed to run days, if not weeks.
thanks to heaptrack i was able to pinpoint that to libpango, which i'm not even interacting with directly, but rather indirectly through the api.
Annoying, that i chose to use a language for actively preventing leaks and dangling pointers and stuff, but end up leaking memory because of a dependency somewhere.7 -
Today I felt like the grinch explaining to my team that you can have memory leaks in a garbage collected language if they keep leaving live references.
-
How about incompetent management? Company absolutely murders any possible increase in productivity. Laptop provided? Slow as balls. Takes minutes to log in. I get a Mac for mobile development and that's OK. SSD and adequate memory but I'm primarily a .NET Dev. Can't get on the network with a virtual machine. They won't I stall even a managed image. So can't use databases because they're all AD authenticated. Got a virtual desktop environment and that sucks worse in performance than the laptop. Add the Assault on local administration rights and the monitoring software that constantly thrashers any memory and hard drive usage and im about to quit over all this... All this decided by a non developer and not asked for our opinions. Yay large Enterprises
-
Lately programs have been crashing a lot on my pc, I've tried different things like disabling SWAP for a sec, BIOS changes, remove firefox and use Google Chrome, try different commands, it kept happening.
Obviously along the way I started investigating what was causing these crashes, looking through bug reports and my syslog. There was no consistency, except for 1 thing: SIGENV. Everything that crashed had a segmentation fault, now I'm not an expect and I don't know what this means or how to fix it, so I went to Google to ask for answers.
Then I downloaded memtest and ran a memory test, error palooza. Then I went to Windows and ran memory check, error palooza.
This is week 3 of this high-end gaming pc which was a huge investment AND IT HAS BEEN FUCKING WITH ME BECAUSE OF BAD MEMORY HOW THE FUCK DOES THIS HAPPEN I ALMOST STARTED TO DOUBT UBUNTU BUT IT WAS A FUCKING FAULT IN BRAND NEW MEMORY MODULES WHAT THE FUCK.
Obviously I'm pissed off. Today I'm gonna call the store that assembled it to voice my complaints.
Thank you for listening to my TedTalk.13 -
Well ... a few minutes ago i tried to make a discord script wich is changing my status from idle to dnd to online and so on, in an infinite loop, all good until i checked Task manager and saw how much memory is using. my bad i guess in the way i wrote everything
-
The other day the "big boss" came to us asking for a feature.
During he speaking to a colleague I saw this guy whitening in the face.
So after some time I asked him what happens..
"He just told me to deallocate some memory (to achieve this, and do that..)"
...
We are writing in Python. -
Started learning Android development in Kotlin.
My first impressions:
- Kotlin is good, but class syntax is not very appealing
- Overall it seems to be quite easy, at least the basic stuff
- Android Studio is a fucking memory hog, RIP my RAM
- As good IntelliJ is as bad is Android Studio somehow
- Emulator seems to be really advanced which I like8 -
when you're struggling to build small sized firmware on your 512Kb IoT Device resulting in bootloop every time... Then you see in the manual, that you have the 4Mb model and you frashed the rom to the wrong memory address for 2 weeks resulting in a bootloop... FML
-
Production goes down because there's a memory leak due to scale.
When you say it in one sentence, it sounds too easy. Being developers we know how it all goes. It starts with an alert ping, then one server instance goes down, then the next. First you start debugging from your code, then the application servers, then the web servers and by that time, you're already on the tips of your toes. Then you realize that the application and application servers have been gradually losing memory over a period of time. If the application is one that don't get re-deployed ever so often, the complexity grows faster. No anomaly / change detection monitor can detect a gradual decrease of memory over a period of months.2 -
"NO! I will not download your stupid app! That will boat my memory and chunk my battery! Just to get to that one bit of content from a service I use once in a blue moon!"
-
Can anyone help me with this theory about microprocessor, cpu and computers in general?
( I used to love programming when during school days when it was just basic searching/sorting and oop. Even in college , when it advanced to language details , compilers and data structures, i was fine. But subjects like coa and microprocessors, which kind of explains the working of hardware behind the brain that is a computer is so difficult to understand for me 😭😭😭)
How a computer works? All i knew was that when a bulb gets connected to a battery via wires, some metal inside it starts glowing and we see light. No magics involved till now.
Then came the von Neumann architecture which says a computer consists of 4 things : i/o devices, system bus ,memory and cpu. I/0 and memory interact with system bus, which is controlled by cpu . Thus cpu controls everything and that's how computer works.
Wait, what?
Let's take an easy example of calc. i pressed 1+2= on keyboard, it showed me '1+2=' and then '3'. How the hell that hapenned ?
Then some video told me this : every key in your keyboard is connected to a multiplexer which gives a special "code" to the processer regarding the key press.
The "control unit" of cpu commands the ram to store every character until '=' is pressed (which is a kind of interrupt telling the cpu to start processing) . RAM is simply a bunch of storage circuits (which can store some 1s) along with another bunch of circuits which can retrieve these data.
Up till now, the control unit knows that memory has (for eg):
Value 1 stored as 0001 at some address 34A
Value + stored as 11001101 at some address 34B
Value 2 stored as 0010 at some Address 23B
On recieving code for '=' press, the "control unit" commands the "alu" unit of cpu to fectch data from memory , understand it and calculate the result(i e the "fetch, decode and execute" cycle)
Alu fetches the "codes" from the memory, which translates to ADD 34A,23B i.e add the data stored at addresses 34a , 23b. The alu retrieves values present at given addresses, passes them through its adder circuit and puts the result at some new address 21H.
The control unit then fetches this result from new address and via, system busses, sends this new value to display's memory loaded at some memory port 4044.
The display picks it up and instantly shows it.
My problems:
1. Is this all correct? Does this only happens?
2. Please expand this more.
How is this system bus, alu, cpu , working?
What are the registers, accumulators , flip flops in the memory?
What are the machine cycles?
What are instructions cycles , opcodes, instruction codes ?
Where does assembly language comes in?
How does cpu manipulates memory?
This data bus , control bus, what are they?
I have come across so many weird words i dont understand dma, interrupts , memory mapped i/o devices, etc. Somebody please explain.
Ps : am learning about the fucking 8085 microprocessor in class and i can't even relate to basic computer architecture. I had flunked the coa paper which i now realise why, coz its so confusing. :'''(14 -
Concatenation of strings in a loop (in C#). Seriously. It's just so easy and unless you are doing something memory intensive or awful (in which case I am sorry) it really doesn't do much harm if any.
-
C is love, C is life.
Great language.
I genuinely don't get why so many people are struggling with pointers, considering it's a pretty straightforward concept. I understand that they can be complex in simplicity, but the concept itself is much easier to understand than say, references in OOP languages(despite being the same thing under the hood).
I mean it's just a number like any other number, except that number is treated as a memory address, and the star(* - dereference operator) just takes a value, goes to the memory address that is the value, and takes a value from there.
I feel like most explanations and tutorials just try to over complicate it for no reason.27 -
Why somebody would think that allocate huge amount of objects in the static memory make any sense?? Why??? You need to allocate a bloody database context and all the allocation of your IOC containers and keep increasing!!!
-
Does any of you know, what happens to Go-routines, when they are deadlocked by waiting on a channel and the channel isn't reachable anymore?
I'd assume they get garbage-collected since they'd just a few KB of memory when not in use but I can't find anything on it online.2 -
Back at my game engine asset system and thought of a way to store images and recreate them in memory programatically rather than 'unpacking' them... Bu turned a 256kb image into 4MB... How the fuck does this keep happening?!?!
Ugh this shit is going to drive me fucking mental!11 -
Client wants me to document the updated patch in the system... In detail. I just want to upgrade their server memory but noooooo. They want me to detail it all in step-by-step, including change impact, description task, expected time duration, back-out plan.
The first time I had to do this, it was cute. But now it's FUCKING ANNOYING ON HOW DETAIL THEY WANT ME TO PUT IN!!!
Client: "OK, so you wanna upgrade the server memory. What do you need to bring into the data centre?"
Me: "Just my laptop. I'm just configuring your underutilised server memory and upgrade it."
Client: "Good. Put that in the document, including your laptop serial #, make and model."
Me: *Screaming internally* -
Friendly reminder to trim your services list with msconfig if using Windows. Services that are STOPPED are not DISABLED, and they can be brought back up when just stopped, sometimes remotely.
(This reduces chances of being bitten by malware that uses the Fax service or similar, as there are a few that have in past used often-unused services to propagate. It also reclaims a small bit of memory, and the more real memory you have, the less you page out when compiling or similar, which is slow as fuck.)
also for the love of god stop using RDP and use something that's more penetration-proof than a paper plate...11 -
I remember when I first heard about the general concept of a stack, I wasn't quite sure how you would use it.
Now im learning about stacks in java algorithms class as well as learning about how the memory stack works in assembly class. This probably seems small to you pro devs, but ngl, it kinda blew my mind how useful this structure can be.1 -
Just rebooted.. nothing running, windows claims I'm using 99% memory, but task manager shows 211MB of 16GB being the most in use4
-
So I have this code written in node:
Function connect(){
const client = net.blahblah
client.on('close', () => {
Connect()
}
}
As the connect is called from within the close call back, it wouldn't be recursive right? Like if it disconnected a million times, it shouldn't throw a recursion error or use up a bunch of memory right? Or am I thinking about it wrong?2 -
https://github.com/mozilla/pdf.js/...
Buffer *is* Uint8Array (there's literary "Buffer extends Uint8Array" in NodeJS lib/internal/buffer.js), why would there be a need to wrap it? But thanks to this bullshit error, I have to copy my buffer to a plain Uint8Array, quote, "which essentially means creating a copy of the data and thus increasing memory usage."5 -
So to give you a feel for what evil, clusterfuck code it was in: this projects largest part was coded by a maniac, witty physicist confined in the factory for a month, intended as a 'provisional' solution of course it ran for years. The style was like C with a bit of classes.. and a big chunk of shared memory as a global mud of storage, communication and catastrophe. Optimistic or no locking of the memory between process barriers, arrays with self implemented boundary checks that would give you the zeroth element on failure and write an error log of which there were often dozens in the log. But if that sounds terrifying already, it is only baseline uneasyness which was largely surpassed by the shear mass of code, special units, undocumented madness. And I had like three month to write a simulator of the physical factory and sensors to feed that behemoth with the 'right' inputs. Still I don't know how I stood it through, but I resigned little time afterwards.
Well, lastly to the bug: there was some central map in that shared memory that hold like view of the central customer data. And somehow - maybe not that surprisingly giving the surrounding codebase - it sometimes got corrupted. Once in a month or two times a day. Tried to put in logging, more checks - but never really could pinpoint the problem... Till today I still get the haunting feeling of a luring memory corruption beneath my feet, if I get closer to the metal core of pure C.1 -
"Draw lines, young man, many lines; from memory or from nature – it is in this way you will become a good artist. (said to Edgar Degas)" - Jean Auguste Dominique Ingres1
-
My browser tabs in firefox and chrome crashes frequently in ubuntu? Is there any issue with the memory module, because other programs also show segmentation fault in the crash logs?3
-
I actually don't understand why most people like saying bad things about electron-js been a memory hog. I am not denying the fact that it sucks up system resources. Placing all the blame on electron-js is irrational because most apps built untop of electron-js does not hug memory (vscode is a living testimony to that). When you use bloated frameworks and/or libraries you are bound to have memory issues. When you don't understand how to manage memory effectively (in higher level language - you still have to do something for your value to be garbage collected) you are bound to be held captive in the chains of memory consumption.
Don't hate electron8 -
I feel like whenever they are pretending you need to know all the patterns by memory, testing you on that, it's a nonsense and it even makes me stop wanting to enter the place.
Im not supposed to know them instantly, i use tools like the internet. Test my ability to solve problems, comnunicate, work in groups, but, specific stuff by memory? Why?5 -
Grrrrrr!! Wtf,.. my younger brother uninstalled the mighty devrant app coz of memory issue to get space just to install a shitty BBM app!! How can I live without this awesome community. I have just banned him indefinately from getting near my fon... still thinking of grounding him!! How can he do that... undeniably in love with this community2
-
aaargggggghh, some fucker thought its clever to allocate memory in a tight loop..and do a switch/case in it as well. the size and branch taken was known beforehand -.-
preallocating and thinking about the code for a second is really hard for some ppls brains it seems.. -
Feel dirty writing in c. How do people even deal with unsafe pointer type casting/memory allocation/free? The codebase is plagued with memory leaks and there is no test.
I will just pretend I can't read c code and play dumb when shit happens13 -
sooo, new job. more complex stuff to do. i thought. turns out some project have memory probs. guess what, it's sharepoint! *sigh*... very hard to find the code in trouble.
learn sharepoint and it WILL come back to haunt you!2 -
So I’m reading this book called Hacking: The art of exploitation and I’ve got to admit. It’s one of my favourite books I’ve read. It really gets into the nitty gritty of how programs are laid out in memory and goes over how assembly works, among some other low level concepts. Highly recommend.1
-
One day (maybe) I will understand how the "bestest IDE in the world" (cit.) can consume over 10Gb of memory just... for being open while not editing any file or anything.
Just in case you're wondering I'm talking about VsCode and yes I know it's not an IDE just in case you want to point out :-) It's just I see more and more people referring to it as it was one.11 -
My non-tech cousin just asked me if he can use the second SIM slot in his phone as a slot for inserting a SD card since he doesn't have a second SIM and the phone does not have a memory card slot. I said yes 😂😝7
-
I'm a full stack developer, I have been using windows all my life but I purchased a new laptop recently, it has only 4gigs of RAM and I will upgrade it in the future but that's gonna take a while but mean while its running windows and its a pain in the ass! Memory is always almost full, disk(HDD 5400rpm) usage is 100% when I don't expect it to be. Chrome and VSCode hogs my memory and the laptop lags like crazy because of that webstorm and pycharm are all out of the question. I'd like to switch to a Linux distro, dual boot it since my windows is a genuine copy. Which Linux distro would be the best for me?9
-
Customer: your app is not returning all the objects in my bucket
Support: check console log 500 server error, ssh into box check logs exhausted memory limit.
Sudo vim /etc/php.ini search memory limit
Update to a high number restart Apache sit back and think fuck did I set it to high will it blow up my server.
Only time will tell!!! Sorted out the issue until the next user with millions of objects in their buckets -
Windows Phone might be well dead, but their memory still lives in Bing Rewards! 🤣
(Info: French version of tile to promote the MSN News app - I'm using it already, so everyone's happy 😉)4 -
WE: javaagent-based monitoring, as seen in this screenshot <attached>, is reporting full old-gen, full young-gen, full one of the survivors and a sky-rocketing full GC right before the service outage.
WE: container monitoring in this screenshot <attached> shows that the application peaked its memory very suddenly to MAX values and platoed on that. Then container monitoring is blank, suggesting a complete outage of a few minutes. After that monitoring starts again with memory usage reported at low levels and immediatelly spiking back to MAX again, suggesting the container crashed and had been respawned by an orchestrator. This repeats a few times throughout the day.
they: I did not find any evidence of application running out of memory. Maybe our monitoring is not working correctly?
we: *considering updating our resumes* -
Back in game dev final year, working on GameCube kits, I encountered a weird rendering bug: half the screen was junk.
I was following the professors work and was bewildered that mine was broken.
The order of the class (c++) was different...
I think there was a huge leak somewhere and the order of the class meant memory was leaking into VRAM. I never had the chance to bug hunt to the core of it... Took a while to realise it was that...
It opened my eyes to respect memory haha.2 -
Silly question, but why is it that in this age of 64-bit computing and gigabytes of RAM applications still have trouble with text files/SQL dumps over 1MB in size? Surely for something so simple it should be able to store it all in memory without any issues, no?9
-
I think the Golang serialization API is utter garbage.
By convention it usually looks like this,
MarshalFormat() ([]byte,error)
UnmarshalFormat([]byte) error
This means that all serialization and deserialization is done on, heap allocated, in memory buffers ( technically also mmaped files, but thats not cross platform).
As the Go GC is ruthlessly optimized for minimum latency, this can potentially cause memory leaks in long running applications.
I think we need a new serialization API that looks more like
SerializeFormat(io.Writer) error
DeserializeFormat(io.Reader) error3 -
A database fetch. All rows at once. Not that many rows, maybe 50.
But oh boy when someone forgot that the repository is wired to magically inject SQL that joins other tables and does ineffective loops to create thousands of objects in the background.
Been fun finding memory hogs in the codebase. -
A beginner in learning java. I was beating around the bushes on internet from past a decade . As per my understanding upto now. Let us suppose a bottle of water. Here the bottle may be considered as CLASS and water in it be objects(atoms), obejcts may be of same kind and other may differ in some properties. Other way of understanding would be human being is CLASS and MALE Female be objects of Class Human Being. Here again in this Scenario objects may differ in properties such as gender, age, body parts. Zoo might be a class and animals(object), elephants(objects), tigers(objects) and others too, Above human contents too can be added for properties such as in in Zoo class male, female, body parts, age, eating habits, crawlers, four legged, two legged, flying, water animals, mammals, herbivores, Carnivores.. Whatever.. This is upto my understanding. If any corrections always welcome. Will be happy if my answer modified, comment below.
And for basic level.
Learn from input, output devices
Then memory wise cache(quick access), RAM(runtime access temporary memory), Hard disk (permanent memory) all will be in CPU machine. Suppose to express above memory clearly as per my knowledge now am writing this answer with mobile net on. If a suddenly switch off my phone during this time and switch on.Cache runs for instant access of navigation,network etc.RAM-temporary My quora answer will be lost as it was storing in RAM before switch off . But my quora app, my gallery and others will be on permanent internal storage(in PC hard disks generally) won't be affected. This all happens in CPU right. Okay now one question, who manages all these commands, input, outputs. That's Software may be Windows, Mac ios, Android for mobiles. These are all the managers for computer componential setup for different OS's.
Java is high level language, where as computers understand only binary or low level language or binary code such as 0’s and 1’s. It understand only 00101,1110000101,0010,1100(let these be ABCD in binary). For numbers code in 0 and 1’s, small case will be in 0 and 1s and other symbols too. These will be coverted in byte code by JVM java virtual machine. The program we write will be given to JVM it acts as interpreter. But not in C'.
Let us C…
Do comment. Thank you6 -
I bought a computer awhile back off Kijiji (Canada's craigslist) for a really good price. Today, decided I was going to upgrade the ram since I got a sick deal on some corsair vengence 8gb sticks online...
And just before installing it, I realize the fucker decided to use low profile RAM in his build for a reason: he (for some fucking reason) decided to route the airflow for the system by placing the cooling fan directly over the first 2 memory slots.
Guess who's 5 minute memory upgrade just turned into an hour of re-routing all the airflow in the PC and having to redo all the fan wiring.
I shouldn't complain, I mean I got this computer a couple years back for like $400, but still, wtf man...4 -
I just had a ptsd (not real ptsd) attack cause I remembered in one of my first jobs we had gulp, grunt AND webpack to build our angularjs project.
Did I fix that mess? Sure!
Will the memory of it stalk me until new year? Absolutely.1 -
When someone decides the customer should be allowed execute Jython scripts in the same JVM as your project executes that is already using all the memory due to other poor design choices
-
I literally don't understand the purpose of a "higher half kernel"
What does it matter where my kernel is mapped in virtual memory?
"It is traditional and generally good to have your kernel mapped in every user process" what the hell does that even mean??
Mapping my kernel into userspace is something is explicitely don't want to do. Like at all. Ever
And in physical memory it matters even less where it is.
I'm so confused right now3 -
That moment that you realize that you have more experience than your college teacher...
Me: Can you tell me why a tail recurcive function in a functional programming language the stack and memory do not increase?
Teacher: I don't know what is a tail recursive function...
Me: Ok....
I feel like I am wasting time... -
Goodbye, cruel wairld:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 123736064 bytes) in /var/www/vhosts/hexicalapp/public_html/Classes/Services/Devrant/SearchService.php on line 1741 -
Using memcpy() instead of copy_to_user() in a kernel module. One could overwrite kernel space memory, by passing a kernel space address as destination address.
-
Microsoft announced a new security feature for the Windows operating system.
According to a report of ZDNet: Named "Hardware-Enforced Stack Protection", which allows applications to use the local CPU hardware to protect their code while running inside the CPU's memory. As the name says, it's primary role is to protect the memory-stack (where an app's code is stored during execution).
"Hardware-Enforced Stack Protection" works by enforcing strict management of the memory stack through the use of a combination between modern CPU hardware and Shadow Stacks (refers to a copies of a program's intended execution).
The new "Hardware-Enforced Stack Protection" feature plans to use the hardware-based security features in modern CPUs to keep a copy of the app's shadow stack (intended code execution flow) in a hardware-secured environment.
Microsoft says that this will prevent malware from hijacking an app's code by exploiting common memory bugs such as stack buffer overflows, dangling pointers, or uninitialized variables which could allow attackers to hijack an app's normal code execution flow. Any modifications that don't match the shadow stacks are ignored, effectively shutting down any exploit attempts.5 -
I never thought in my life that I would say this sentence one day - but:
Today I switched back to VS Code because it uses less memory than IntelliJ.
Context: Only temporary, very resource hungry dev environment, TypeScript, IntelliJ used >4.5 GB of ram and started lagging.5 -
I was recently reading about memory leaks and profiling and found a really excellent article for people new to c# or best practices. It's a great article and well worth the read if you're still learning.
https://michaelscodingspot.com/find...6 -
reading the project's code, following "save" callback in jvascript, i find this comment "IMPORTANT : this is a workaround to solve memory leak" and below it code that basically removes all elements from th DOM and adds them again.
so basically, someone could not find a cause to a memory leak and decided "solve it" in a specific place by reloading almost an entire page -
They tried to mark him, they even tried compacting him and his children, but this old generation instance is not going down without a fight. He’s in a big heap of trouble, and he’s running out of time. You better count your references, because this summer’s stop-the-world event will have you staying at work all night: Memory Leak: Production is in your code NOW
-
When was the last time you dealt with an evasive memory leak in JavaScript? How complicated was it and how long did it take to resolve?1
-
Thank you, .NET Framework, for keeping your GC from destroying my DynamicMethod instance after I've accessed its function pointer!
Unlike another runtime that caused me to waste my weekend hunting a memory corruption bug in a managed language because of a minimal behavioral difference...
/tableflip -
How did mid-2000s computer users get along with just 1 GB of RAM or less?
As of today, anything less than 8 GB of RAM seems impractical. A handful of tabs in a web browser and file manager can quickly fill that up.
Shortly after booting, 2 GB of RAM are already eaten up on today's operating systems.
When I occasionally used an older laptop computer with 6 GB of RAM (because it has more ports and better repairability than today's laptops; before upgrading the memory), most of the time over 5 GB were in use, and that did not even include disk caching.
It appears that today's web browsers are far more memory-intensive than 2000s web browsers, even if we do similar things people did in the 2000s: browsing text-based pages with some photos here and there, watching videos, messaging and mailing, forum posting, and perhaps gaming. Tabbed browsing already was a thing in the 2000s. Microsoft added tabs to their pre-installed browser in 2006, back when an average personal computer had 1 GB of RAM, and an average laptop 512 MB!
Perhaps a difference is that people today watch in 720p or 1080p whereas in the 2000s, people typically watched at 240p, 360p, or 480p, but that still does not explain this massive difference. (Also, I pick a low resolution anyway when mostly listening to a video in background.)
One could create a swap file to extend system memory, though that is not healthy for an SSD in the long term. On computers, RAM is king.14 -
Visual Studio Code and xdebug: my saviors to finally not have to put up with NuSphere PhpEd constantly shitting itself over memory limit issues in my 3,704 file PHP project.
-
So I am looking at top on our embedded system. I notice the memory amounts are in KiB. Then I thought to myself: "We are not far from this being in MiB units."
I am excited for Terahertz optical cpus and Petabyte storage drives.5 -
It's pain in the ass, when you finally managed to free enough memory to keep your android os up-to-date and just a few minutes after update restart getting a message that there is an os update, which needs another 200mb.
It's a never-ending torture..4 -
Remember, with both an in memory and a distributed app cache before hitting the database, you too can be wronger faster!
I am having a party with Redis today :D4 -
Question: which is better approach?
1. Use push notifications to tell react website that new data is available
OR
2. Use SignalR (similar to socket.io) and push data in real time?
The down side of SignalR is server needs to map connections --> use more memory while push notifications doesn't require that12 -
For someone not deep-into-security, can someone tell me why "encrypted"/"non-compromised" communication is hard?
Wouldn't a private server that holds conversation in-memory (imagine Dictionary holding U2U GUID-GUID list of 'msg' objs) suffice?
Incoming IP info is disregarded and nothing gets written on-disk ever
Need to erase everything? just reboot the server, it's all in memory anyway
To avoid man-in-the-middle, pre-handshake check cert integrity by exposing the certificate-fingerprint by another endpoint, if the fingerprints match, proceed to switch to websocket
Wouldn't this be wayyyy more secure for actual anti-establishment talks than all the fancy probably-backdoored software that exists today? .-.
Hell it's easy enough that someone could make it go live in a few days, keep it up accessible if you know the IP and port to communicate and close-and-delete when done16 -
So, like, why doesn't Java let me do manual memory management? In C# if I want to screw up the code-base and everyone that comes after me with my half-informed experiments it totally lets me.21
-
Can anyone recommend a good vps/dedicated server hoster for east us? I looking for a machine with 8 cores, 32gb memory and 2x 1,9tb nvme ssds. AWS, Azure and Google are way too expencive. In Germany we use the ax61-nvme instance of hetzner which costs around 100$.
Thanks for any advises✌️5 -
PC component idea: a component that has build in memory that you can load up with a disc image file and have a software or hardware switch that you can use to have your BIOS detect whether it is in a DVD drive mode or Floppy risk drive mode so you can virtually mount ISO images for example and boot off of that device...
Niece but pls someone make7 -
I wasted fukcing 30 minutes to find out the right editor for plantuml on os x. I do not like atom because it eats up memory, and brackets was not ready to install plantuml extension. in the end, I used atoms to finish a five minute job. #FML
It seems, mostly we waste our time in deciding which weapon to use !!! Any one who faced the same issues ???2 -
if anyone is familiar with immer js or immutable js:
if the producer copies the base state to nextState, and nextState is a const, doesnt that defeat the purpose?
I mean you're going for immutability, which is great for say an undo function, or for finding bugs, but what are you doing with all these immutable values now hanging around in memory?
I assume each new state returned is being pushed onto an array? (because you cant stuff it into nextState because nextState is immutable).
Wont this lead to memory usage increasing over a user session, the longer the session lasts?
I feel like I'm misunderstanding some core concept here.
edit: also what the hell is structural sharing?18 -
!rant
I made an android game a while back based on mental math, memory and quick reactions. This is the first game I actually finished and published so I would love some feedback from people that actually know what they're doing. Made in Unity with C#.
https://play.google.com/store/apps/...
<35 -
Aaaaand all tabs and windows go to bitches again.. sigh.. did closed tabs and windows in feierfox EVER work for anyone? I have noticed restore session works. But after closing gracefully, feiafax just don't bother saving shit. Somehow I have less patience when it comes to browsers. Fuck you feuercocks! Suck my balls you memory hungry, wannabe free hippie hippo. Done, deleted, die!!9
-
Progressive Web apps :
In chrome you can use <6% of the free memory to store things.
Now imagine this situation :
Let's assume you have x amount of free memory in the system.
For first application : 0.06x
For second app : 0.06(x-0.06x)
And it goes on.
So for the thousandth developer,
It's a total fuckall.
How is this helping developers! -
Swear to God I've changed the type definition of the same variable (in SSIS) three times already.
Microsoft has a worse memory than me!
Ffs. -
GLFW is the cleanest, well documented, most convinient API for creating and handling windows in Linux and Windows I've ever used.
The only thing that bugs me is that valgrind detects memory leaks on it.4 -
Why is it a big deal that arrays start att zero and the length att One? It's logical... Arrays as an index in memory and length as the... Length of the array (numbers of possible objects in the array)4
-
A prayer from a colleague:
Our silicone god which art in the SSD
Italic be thy name
Thy computing come
Thy bus be done
On the screen
As it is on the hdd
Give us this day our daily blue screen
And forgive us our keystrokes, as we
forgive our keyboards.
And lead us not into restarts, but
deliver us from memory leaks: For thine is the
memory, and the cpu, and the
bus, for ever. Amen
Beautiful is it not :) -
In Italian we call ROM the Roma ethnic group.
Italian premier wants a census of this people.
Today I found this comic strip.
"From now CD and DVD will be no more ROM"
"ROM will be called Read Only Memory"
"EEPROM will be called EEP" -
tips on how to retain something in memory for a long time? especially if it is something difficult , unpleasant and rarely occurring event like usage of differential calculus or dsa/ leetcode questions ?5
-
I need to monitor the off heap memory of a spark on yarn application (executors, mostly) running in Java. Any tool/method that someone could suggest?
-
Who the fuck invented recursive😡, it sucks in numerical computation, it takes excessive amount of memory, recomputation and fffffffuck😡. To calculate fibonacci of 50, it feels like MARK I. fuck they do nothing more than calling, like Peter calling Peter...😡8
-
That feeling you get when all seems well and you've been running your application in production for months, only to learn it's been soaking up memory like a sponge and frequently paging the ops team after hours...
-
When you get an assignment by mail,
- you do those changes exactly as being asked, albeit one insignificant extra visual thing,
- you send back exactly what's changed (which is exactly what was being asked, but naming things as they are, clearer than I can ever explain changes),
- you go to the person that has assigned the very thing, explain it, he seems to get it,
...
Then.. a few hours later.. you get a reply via mail:
"Come explain what you're saying here, because I don't get it."
🤨 -
Does the Go GC move heap-objects?
I found some articles that say it does, but in the sync package, there is the copyChecker type, which could only work if the GC never moves memory.6 -
In JS/Node, is there a performance and memory cost to nested functions?
I.e.
function handle(req, res)
{
var x = 5, y = 10;
function add() { return x + y; }
function multi() { return x*y; }
res.send(add() + multi());
}
As opposed to taking out the 2 functions and making them accept x,y as parameters.6 -
so I spent an entire day tracking a major memory leak (10mb/s!!!). when I find it, it turns out that It's in a deep part of C++ code that I'm not allowed to touch. now I live in fear of just crashong my 16gb machine every time I debug.
-
We got a whole semester (≈70 hours actual time), let's do a MMO ..a little one maybe.
..We did a Memory in WPF -
TL;DR When talking about caching, is it even worth considering try and br as memory efficient as possible?
Context:
I recently chatted with a developer who wanted to improve a frameworks memory usage. It's a framework creating discord bots, providing hooks to events such as message creation. He compared it too 2 other frameworks, where is ranked last with 240mb memory usage for a bot with around 10.5k users iirc. The best framework memory wise used around 120mb, all running on the same amount of users.
So he set out to reduce the memory consumption of that framework. He alone reduced the memory usage by quite some bit. Then he wanted to try out ttl for the cache or rather cache with expirations times, adding no overhead, besides checking every interval of there are so few records that should be deleted. (Somebody in the chat called that sort of cache a meme. Would be happy , if you coukd also explain why that is so😅).
Afterwards the memory usage droped down to 100mb after a Around 3-5 minutes.
The maintainer of the package won't merge his changes, because sone of them really introduce some stuff that might be troublesome later on, such as modifying the default argument for processes, something along these lines. Haven't looked at these changes.
So I'm asking myself whether it's worth saving that much memory. Because at the end of the day, it's cache. Imo cache can be as big as it wants to be, but should stay within borders and of course return memory of needed. Otherwise there should be no problem.
But maybe I just need other people point of view to consider. The other devs reasoning was simple because "it shouldn't consume that much memory", which doesn't really help, so I'm seeking you guys out😁 -
ioctl with FIONREAD as request
it returns size of bytes ready to read, but to store that size it requires pointer to int passed in va_args
when i want to malloc a memory using that size i need variable of type size_t which is 8 bytes on 64-bit system
why do this types mismatch? if ioctl returns size with FIONREAD request it should accept pointer to size_t variable in va_args -
I think the Franz platform has the weirdest bug I have ever seen on frontend. For the unknowings, Franz is basically a wrapper for chrome instances that lets you gather up all your teams, slacks, emails and the like into a single desktop application (and it eats your memory like the memory monster).
Anyways, when I type a message somewhere, the input will sometimes lose focus and focus on another input in another chrome instance. So for example, I type a message on slack, the input loses focus (which I don't immediately notice) and the rest of the message is typed out in teams instead.5 -
Backend wise
After a year and a half of working with what i love (nodejs microservices and bit of python) I have to update my php skills and refresh my memory with latest Laravel 😕 (I used it as an authentication/authorisation and REST backend for a react native app early 2016 and did not touch it since)
Passive Job hunting sux and yes PHP ain't my thing anymore 😔 i mean i have next to 6-8 years exp in it but given the choice... 😒
I used to love it (so many good memory with cakephp 😌🙄it teached me a lot early in my carrer) before I discover functional programming paradigm and got deep understanding of JS -
"Well GPU main memory is L2. CPU main memory is L3. Which is why GPUs are so much faster." - cs major in my college.
Someone please confirm if this is a common opinion.2 -
Calling C a "high level language" is complete bullshit. 99,9% of all code is written in C or higher level languages than C.
What a "high level language" is not objectively definable. So this arbitrary division divides programming languages in two halves of astronomically different sizes.
It may have been a good decision in the 70s but it's completely off nowadays. I propose to draw the line between languages with manual and languages with automatic memory management.10 -
My first tech blog about an issue I faced with arch. Your inputs please !
http://simplysanad.com/blog/2016/...3 -
Tried running our selenium test suite on Firefox during the nightly build. Came in this morning with no nighly build. Turns out the tear downs weren't killing the firefox drivers and they used up all the memory on the build server. 😐
-
I still a memory, i was to install a distro of linux and got zorin, the installation perfect but not connect to internet cause the driver to red card not found, i search in my smartphone and say the apt-get needs internet to download, yes my life is a circle.
-
!rant
can you give me/point me to some good example problem/exercise for multithreading? as in, something that's small in scope, but actually requires dealing with most of the multithreading issues & complications? race conditions, synchronization, locks, shared memory access, cross-thread calls/callbacks, etc?2 -
Working on a batch image editor in python as my most recent time killer project. Started out using PIL for py2. Port over to pillow on py3, and one of the core pillow functions exploded my computer.
It memory leaked and took every last kb of unused memory!
Guess Im stuck using py2 -
Does anyone know a good source for learning the Damerau-Levenshtein distance(i'm trying to implement a simple spell corrector) and i haven't really found anything detailed on google yet. And also how does Damerau-Levenshtein distance fair to Levenshtein distance in terms of memory or time cost?1
-
Pff today I start 400 threads in python initialized in a for loop, one thread per record, each record initialize a heavy process, Memory Limit Exceeded, I'm frustrated with this shit!
How to run 400 records doing a heavy task preventing the CPU to close the task executed by timeout limit exceeded, or how to run multiple threads to end before reach timeout limit each task without exceeding the memory limit.
☠💩🐱💻9 -
how do you learn some concept in programming/dev? am not talking about the understanding, but rather the remembrance part, like retaining in memory in a way that you could remember to recognise/use it , the next time you see it or need it?
do you prefer :
- writing on pen and paper(ie creating notes)
- writing a personal/public online blog
- implementing it in a project that depends on it/ some sample project
- or something else?11 -
debian:jessie has lot many old libraries that cause memory leaks, which gets solved in future releases of these libraries. Yet, debian fails to accommodate these new releases. They do this to make jessie 'stable' they say. I am quite curious if these instabilities faced is what they call stability. Example: glib
-
Have you ever need "modify/edit" button in your real world in talking??!
I told my GF a memory which I had with my frnds. It was about drinking and hangOver. She said "You didn't tell that to me!!" I said "I said that before! " again she said "No you didn't!!!" At that moment I was just looking for a modify/edit button!!!😒😒 -
Image implementing angular universal which for it self is quite painful... Timeinvestment 8hours
Testing local 12 hours by the team
.. deploying to Google app engine because we need a nodejs server and we do don't have one yet ... Server crashing 24/7 with random errors most are memory related spend 3 days almost rewriting everything ... trying to find the memory leak
Then when I was about to give up stumble over a GitHub issue where someone is saying something about tiers on app engine.
Me going wtf there are tiers everywhere it just says automatically scaling instances ...
Googling .. setting to highest tier .. app works. Apparently I was in lowest tier which only has 156 MB ram app needs 150- 250 MB. Me now crying in corner about my wasted 4 days. -
Not sure if a valid cause for a rant; but my memory stick went bad after being used for just 6 months. Bought this memory kit this summer on computeruniverse. Now Windows reports that there are damaged pages on the 1st stick; though the 2nd stick is fine. Patriot Viper with small heatsinks...
What to say... In ye olde days DDR3 worked for years and never went bad 🤔1 -
Remember in the Matrix how they learned things just by scanning a memory chip into their brain?
I think that's how learning programming languages should be...the technology should exist to make that happen :(1 -
That point where you start to think about decalring variables once globaly to save space in memory ...1
-
When underscore.js is embedded so hard in your muscle memory that you use return to continue a for loop because you're used to _.each()
-
One nightmarish project that was doomed from the beginning, had me as the sole developer. I could hardly sleep when we began testing on a separate test system, but with (nearly) all the config stored in shared memory and copied from the production system, I dreaded, half awake, that the production server data base connection was still configured in the test system and that it was shooting all it's test data repeatedly to prod.
Finally drove to company in middle of the night at 4 o'clock. Checked everything was OK, tried to sleep 3 hours before the start of the work day.
This system also had the most hideous memory corruption in some shared memory that was used across several processes and should have been thoroughly protected by a mutex, but somehow, sometimes this crucial map, that was used to speed up the access to all the customer data just contained garbage.
Still haunts me to that day. (Like xkcd's unresolved tension of a non-matching parenthesis - an unresolved bug. -
Though I'm being affected by an suggestion based in a memory forgotten and consequently just recalled the second time seems people who have to push through life don't slow down as fast
Though sleep is good not what I'm talking about1 -
`const someNumber: int = 1337;`
Why doesn't it work?
Gnarf!
`const someNumber: number = 1337;`
I stopped counting how often I made that typo /o\ My phpdoc is still in my muscle memory.