General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Lepi Doptera
Core Dumped
comments
Comments by "Lepi Doptera" (@lepidoptera9337) on "Core Dumped" channel.
Previous
1
Next
...
All
Is this an AI generated video? This is complete bullshit. ;-)
2
Usually, but that's not where you are losing the big bucks on modern CPUs. Your real problem are cache misses. Where your variable is in memory is far more important than what it is.
2
The most simple memory management strategy that solves 99.9% of all such problems is to pre-allocate the most memory that the program will ever need. I do not understand what is supposed to be hard about that. It's extremely simple. Also very cheap. 64GB of DDR 4 can be had for less than hundred fifty bucks these days. How many hours of memory optimized programming can you perform for that much money? Kids... no sense for economics these days. :-)
1
@michaelutech4786 A program that needs infinite memory will never terminate. In practice any program that exceeds the limits of the L2 cache with random access patterns basically reduces the performance of the CPU to roughly 1% of its maximum or less these days. Dude, you are just making a fool of yourself here. :-)
1
@michaelutech4786 Dude, you seriously need to read up on computing. It's a HARDWARE thing. Nobody can run a program in any language on that theoretical ideal computer that seems to be blocking your brain from thinking rationally about computing. :-) What guarantees that you aren't getting cache misses is YOUR algorithm. What guarantees that you don't need a page file is YOUR algorithm. There are strategies for both, but nothing that you mention and that is built into the language, compiler, library or even OS level does this for YOU. YOU have to start thinking. And if what you want to do does not work on the piece of hardware that you have, then YOU need to build a piece of hardware on which it does work. :-)
1
That is correct, however, if your web browser allocates two gigabytes of memory for every web page the user opens, then most people will stop using your web browser after approx. five minutes.
1
Yes, he told you that you don't know how your computer words and you thought that's a good thing. ;-)
1
It's only being stored in your source code and then implicitly in the instruction flow of the compiled program. There is nothing in a compiled C program that will tell you explicitly what type of variable resides where and what its original name was. You can, if you want, include debug information in your program, then those tables will be included, together with the real names of your functions. But why make it easy for hackers to decompile your code, right?
1
It doesn't. The compiler makes sure that whatever instruction flow accesses that memory location only uses float32 instructions to process it UNLESS you specify otherwise. There is nothing to stop you from pointing at your float's location with an int pointer and then the real fun begins. You can even give the same memory location multiple names and types with a union.
1
Previous
1
Next
...
All