General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Toby
Low Level
comments
Comments by "Toby" (@toby9999) on "Low Level" channel.
Ads on YouTube are now way over the top. Scams pushed to viewers every few minutes. Ads at the start of videos, throughout videos, and at the end of videos. Ads when the phone ap starts up. Ads when the ap resets after being paused. And if I'm writing a comment, an ad pops up and blows away what I wrote. Sometimes multiple ads... and most ads are just plain garbage.
11
And mine. It all performs very well. I'm not worried about it. I also use a VPN, so there's some extra security.
2
Yeah, that's generally not a good idea. A pointer should be initialised to memory or the address of an object such as an int variable, etc..
2
It would make more sense to improve C++ compilers, and mabye add static analysys to flag "unsafe" code than to learn a whole new language and to rewrite whole code bases.
2
It might seem crazy, but I think it is the best way to create an understanding of what's really happening
2
To deal with memory addresses. C was very broadly speaking and conceptually a higher level assembler. The next step up in a way. Memory address are fundamental in assembly language because we're dealing with the cpu and other hardware items directly, hence memory addresses in assembly and pointers in C.
2
You don't need $30 billion to follow guidelines. It's not hard.
2
The heap manager or whatever the implementation uses will store that information during the allocation in something like a header area.
2
@helloitsme7553 Not really. There are an infinite number of real numbers but there is not infinite memory. There are other methods for achieving higher precision, but they're all compromises in some way.
2
That information is typically stored as overhead in a header area or some such. Could be implementation specific. It's 15 years since I had to deal with that stuff but yes, the system knows how much memory was allocated for each.
2
The syntax is bs. Why they couldn't have followed existing languages I'll never understand.
2
I learned Assembly in 1977 and feel the same way about it. But I hate the x86 language.
1
What you said about %d is correct, but in this example, he is not printing a pointer anyway.
1
Not really.
1
It's a reasonable question, but I wish people would stop talking about whether this or that is "safe". We should focus more on skills and the ability to create bug-free code. A blunt knife is safer than a sharp one, but which one is more useful? Safety is often counterproductive.
1
Did you find it difficult to transition to Java after learning and using C? I also dabbled in Assembly way back in the 70s and 80s. Subsequently, I've been a C/ C++ developer for 25 years but completely failed at transitioning to Java. I hate the language literally and conceptually and I hated the whole java ecosystem. We're forced to use the Eclipse IDE. And what a peice of unstable bloated crap that is. And since our dev team has been moving away from C++ toward Java, I'm effectivelly being forced into early retirement.
1
I find Java daunting.C and C++ not.
1
@ScibbieGames Header files do work well with classes in C++
1
I have an intel i7 4790 that has been working solidly for 10 years.
1
12th gen are good.
1
12th gen are pretty good already.
1
C is a language designed to get close to the hardware level. Memory addresses are effectively void* on the CPU. It makes sense. For those who want a higher level abstraction, C is the wrong tool.
1
That would be a useless video.
1
Do you understand what "scope" means?
1
Hexadecimal is a base 16 counting system using 16 symbols.... 0...9 and a...f Example: 1a hexadecimal is equal to 26 in decimal. The advantage is that two hex digits fit into one byte. A 16 bit value would typically be written something like 0xe8b2, where the 0x prefix indicates a hexadecimal number, and the e8b2 equals 59,570 in decimal.
1
You can do x=y;
1
Not really. The most common reasons are to prevent the copying of large structures or as a form of pass by reference. There wouldn't be any pointless searching. Everything is available in the compiler's symbol table or in the object files, effectively hard coded. Remember, at the machine level, it's effectivelly all pointers. What you said is more likely to be true of an interpreted language.
1
Isn't being able to do whatever I want an advantage? I would rather be limited by my owm imagination than be limited by the compiler. I mean "dangerous code" OMG. Driving cars is dangerous but we still do it.
1
So is C.
1
Strictly speaking it's not part of the type per se. The declaration consists of two components conceptually... e.g. int x,*y; The 'int' declares the data storage type to be 'int'. The * says y is a ponter.
1
The C language does not have pass by reference i.e. &. At least not the last time I checked. That's why pointers are used.
1
A memory address with no type.
1
In what way?
1
How exactly is MS telling you what to do any more than some Linux distro tells you what to do? I use Windows every day and MS doesn't tell me what to do. Im any cae, I don't want to Linux as a desktop. Ive tried that pile of junk more than once and it was an unstable piece of annoyance... that's when it actually installed (which it never did for me). I had to get a 3rd party to install it for me through work. Tried it for a few weeks and dumped it. Hated it. Then our IT dept switched us over to Linux to save money. I hated it. They switched us back after a few months as it was a failure. My son got Linux working on his laptop in Feb after two days of cursing. Meanwhile, I installed Windows 10 clean on an old box in 30 mins for my wife. It simply installed and worked, unlike the Linux crapshoot my son and II suffered. So the moral of the story is mileage differs. I think Linux sucks. You think Windows sucks. Windows is the industry standard for desktop. There's a reason for that.
1
C is not bloated.
1
Java sucks big time.
1
I love programming. Been doing it for 30 years. Once you understand the concepts it will be easy.
1
A memory address with some type information.
1
C++ is a normal language. It's probably the most widely used language of the past 40 years.
1
Some of your comments re C are just silly.
1
I use Intel i7 12700 and an Nvidia GPU. I don't touch AMD.
1
AMD have had their problems. Intel won't be going away any time soon. I wouldn't buy another AMD CPU. Been dissapointed too many times with them. I've had 5 AMD CPUs. No more.
1
Unlike C++, the C language does not provide for pass by reference. In order to have a function modify an object or variable passed in (such as person), one has to pass a pointer. That pointer will be dereferenced by the function with operator -> The other reason for passing a pointer would be for efficiency.
1
That's too pedantic.
1
Yeah, but microcode executes inside the CPU, right? It's not software. It's not external. It's actually inside the CPU hardware.
1
I'd just wait until 15th gen CPUs are released.
1