*(char*)0 = 0;
-
Here is the most interesting entertaining C++ talk I've seen since Corona. It aint short, but was worth it for me. *(char*)0 = 0; - YouTube[^]
"If we don't change direction, we'll end up where we're going"
Have them write it up and I might give it a read. (I probably won't.)
-
Here is the most interesting entertaining C++ talk I've seen since Corona. It aint short, but was worth it for me. *(char*)0 = 0; - YouTube[^]
"If we don't change direction, we'll end up where we're going"
I guess YouTube has gone to all commercials...fuck em!
I don't think before I open my mouth, I like to be as surprised a everyone else. PartsBin an Electronics Part Organizer - Release Version 1.3.0 JaxCoder.com Latest Article: SimpleWizardUpdate
-
Here is the most interesting entertaining C++ talk I've seen since Corona. It aint short, but was worth it for me. *(char*)0 = 0; - YouTube[^]
"If we don't change direction, we'll end up where we're going"
Nice, I like intellectual mast**bation.
CI/CD = Continuous Impediment/Continuous Despair
-
Here is the most interesting entertaining C++ talk I've seen since Corona. It aint short, but was worth it for me. *(char*)0 = 0; - YouTube[^]
"If we don't change direction, we'll end up where we're going"
I've been coding for 37 years. I learned something about C++ in the first 4 minutes of this video. Thank you. I might actually sit through this one. :-D
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
Here is the most interesting entertaining C++ talk I've seen since Corona. It aint short, but was worth it for me. *(char*)0 = 0; - YouTube[^]
"If we don't change direction, we'll end up where we're going"
-
*lol*, what is more important now? Understanding more or less crypted syntax of this and that language or understanding the business :doh: :laugh:
To be fair, a lot of the talk is about what happens when that code (which tries to write 0 using a null pointer) is compiled and executed. The code looks like it was written by a C hacker, so how would it be written in modern C++? What will the compiler generate? How will the operating system react? How do virtual memory, memory protection, and caching work? All of this is technical but useful in certain situations. I agree that understanding one's domain and use cases is generally more important. I assume that's what you mean by "understanding the business". But don't get me started on motherelephanting pieces of elephant who run The Business™--one whose products require a lot of software development--but who couldn't care less about fostering a culture of software excellence, which means having people versed in this kind of arcane knowledge.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
Here is the most interesting entertaining C++ talk I've seen since Corona. It aint short, but was worth it for me. *(char*)0 = 0; - YouTube[^]
"If we don't change direction, we'll end up where we're going"
What's the gist of the talk?
Jeremy Falcon
-
*lol*, what is more important now? Understanding more or less crypted syntax of this and that language or understanding the business :doh: :laugh:
Both are... but specialized knowledge will become much, much less important as machines just do it themselves and companies look to save money. Most coders don't really learn squat anyway, so it's not like much will change in that regard. :laugh: This is just the short-term mind you. Pretty sure in 300 years from now AI will be so advanced no human will ever be able to figure it out anymore.
Jeremy Falcon
-
To be fair, a lot of the talk is about what happens when that code (which tries to write 0 using a null pointer) is compiled and executed. The code looks like it was written by a C hacker, so how would it be written in modern C++? What will the compiler generate? How will the operating system react? How do virtual memory, memory protection, and caching work? All of this is technical but useful in certain situations. I agree that understanding one's domain and use cases is generally more important. I assume that's what you mean by "understanding the business". But don't get me started on motherelephanting pieces of elephant who run The Business™--one whose products require a lot of software development--but who couldn't care less about fostering a culture of software excellence, which means having people versed in this kind of arcane knowledge.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.Great point man. There's a case for both types of peeps. Although AI will definitely move the needle in regard to how much arcane knowledge is needed. To his point however, typically (and I'm generalizing) most of the super hardcore devs have serious social issues. Not that crappy devs don't too. But, what if the hardcore dev makes the wrong thing or doesn't think outside the box to see if it's even needed? Arcane or not it's just wasting time. Or what if he/she isn't a team player? So, while knowing what you're doing is super, duper important. I guess I'm just replying for the heck of it to say soft skills be important too. :laugh:
Jeremy Falcon
-
Nice, I like intellectual mast**bation.
CI/CD = Continuous Impediment/Continuous Despair
Ha ha ha. Truth bombs yo.
Jeremy Falcon
-
I guess YouTube has gone to all commercials...fuck em!
I don't think before I open my mouth, I like to be as surprised a everyone else. PartsBin an Electronics Part Organizer - Release Version 1.3.0 JaxCoder.com Latest Article: SimpleWizardUpdate
We're not in a recession. Inflation is good for you. That's what the media tells us. What's worse is that the public will soon forget to and go back to believing what they see on TV.
Jeremy Falcon
-
What's the gist of the talk?
Jeremy Falcon
How a single "obscure" line of code can lead to a rabbit's hole of a discussion It goes from the
*(char*)0 = 0;
to a modern C++ representation and how it can be executed on a near physical CPU Thrue memory mapping from Virtual Space to Physical Space and page tables walking. In the end, it's more like an interview question and see how a potential candidate can talk about this. And as the speaker says, it's more a question for people that will work really low level (compilers, hardware ... )CI/CD = Continuous Impediment/Continuous Despair
-
How a single "obscure" line of code can lead to a rabbit's hole of a discussion It goes from the
*(char*)0 = 0;
to a modern C++ representation and how it can be executed on a near physical CPU Thrue memory mapping from Virtual Space to Physical Space and page tables walking. In the end, it's more like an interview question and see how a potential candidate can talk about this. And as the speaker says, it's more a question for people that will work really low level (compilers, hardware ... )CI/CD = Continuous Impediment/Continuous Despair
Maximilien wrote:
Thrue memory mapping from Virtual Space to Physical Space and page tables walking.
Crap, now I have to watch the video because I'm not connecting the dots of how
(char)0 = 0
turns into talking about protected memory, etc. Unless the title is trying to sound fancy and has nothing to do with that? :~Jeremy Falcon
-
We're not in a recession. Inflation is good for you. That's what the media tells us. What's worse is that the public will soon forget to and go back to believing what they see on TV.
Jeremy Falcon
Pay no attention to the man behind the curtain. :) If you tell people something enough times they will eventually believe it. And as far as media there is no longer a source for real news, It's all either right or left and the news people just spit out what they're told.
I don't think before I open my mouth, I like to be as surprised a everyone else. PartsBin an Electronics Part Organizer - Release Version 1.3.0 JaxCoder.com Latest Article: SimpleWizardUpdate
-
Maximilien wrote:
Thrue memory mapping from Virtual Space to Physical Space and page tables walking.
Crap, now I have to watch the video because I'm not connecting the dots of how
(char)0 = 0
turns into talking about protected memory, etc. Unless the title is trying to sound fancy and has nothing to do with that? :~Jeremy Falcon
Writing through a pointer whose address is out of bounds to your process, like a null pointer, results in a trap because of memory protection.
SIGSEGV
on *nix systems and0xC0000005
on Windows.Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
Writing through a pointer whose address is out of bounds to your process, like a null pointer, results in a trap because of memory protection.
SIGSEGV
on *nix systems and0xC0000005
on Windows.Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.That makes sense sure, just never seen anyone write to a null pointer. Then again, anything can happen I guess. :laugh:
Jeremy Falcon
-
That makes sense sure, just never seen anyone write to a null pointer. Then again, anything can happen I guess. :laugh:
Jeremy Falcon
In the video, he mentions that maybe someone wanted to do it on purpose! And indeed, I have code that does it (actually using an invalid pointer, not a null one) to test the ability to recover, instead of aborting, when it happens.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.