General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Vitaly L
Low Level
comments
Comments by "Vitaly L" (@vitalyl1327) on "how NASA writes space-proof code" video.
@RAINE____ you don't really need dynamically sized anything. It's just a bad habit, a convenience for programmers who did not want to think before coding.
1
@jonassattler4489 wrong. You should not be allowed anywhere near any mission-critical or real-time code with such an attitude. Stick to coding CRUD in javascript.
1
@RAINE____ you don't need any of such things, really. And if you really need for some weird reason (trust me, you won't find real reasons), do your own dynamic allocation on top of a pre-allocated static array. Just like we did in fortran77 times.
1
@anon_y_mousse we're talking about NASA code that runs in spacecraft. They don't need web or crud crap.
1
@jonassattler4489 I wrote a text editor in Fortran77 once. Poor ne, how did I manage without dynamic allocation?
1
@jonassattler4489 ever heard of overlays? Dynamic allocation makes some sense in a multi-process environment where processess cooperate and share the limited RAM. It is a crappy solution only suitable for primitive desktop kind of uses, where nobody cares if OOM killer start slaughtering random processes. When you care about availability, you canmot afford it. You must guarantee that every process will get ad much as they will ever need at the worst case load. Meaning, split the RAM between all users, pre-allocate once and never allow to change. Same goes for CPU time in real-time systems. The way code monkeys are used to code is extremelt destructive and have no place in any remotely professional environment. Forget browsers and other primitive crap, they have no place anywhere where there are real world consequences.of software errors.
1
@jonassattler4489 well, we're in a thread about NASA. So it is sort of funny when crud coders come here with their very valuable commens about "how can you even code without dynamic allocation?!?".
1
@jonassattler4489 again, you absolutely can (and, likely, should) write pretty much anything without a dynamic allocation. Dynamic allocation is about how processes cooperate with the OS and each other. If you don't care about the other processes, you can statically pre-allocate enough and live with it. Use overlays if enough is not enough. This is how things were for a very long time.
1
@jonassattler4489 again, you absolutely can write a browser without dynamic allocation. It'd even make sense, given how uncontrollable browsers are in eating up memory anyway. Why not just legalize this state of affairs and eat up all the memory straight away?
1
@jonassattler4489 why? You PC runs it just fine. And all other processes suffer. Just legalise it, give it 30 out of 32GB of RAM, as it'll take it all anyway. But then you'll know the remaining 2GB are all yours.
1
@jonassattler4489 just allocate enough at the startup, and never use more and never pretend you can use less. You little kiddies do not realise that it's how we ised to write software before dynamic allocation. And it worked, better than your bloated slow crap these days. There was no dynamic allocation in Fortran.
1