Talula
It was a joy... he would be happy for days.
Bader
Imagine how happy that person would be when he did it?
yeah true haha, I'd be over the mooon
Bader
Inside the CPU
then transistors? lol
olli
does Linux still use int 80 to perform syscalls?
Bader
awesome thanks guys, low levelstuff is really interesting
Talula
I cracked my first program when I was 12... in assembly code... I was so happy I ran all around the home... shouting... YES!!! my mom thought I had lost my brain.
Bader
I wrote an iOS app that calcuated all sorts of Highschool math. that was so fun
Bader
never finished it though :(
Dima
lol Wolframalpha exists tho
Bader
I know, but it was the experience
olli
I think yes
that's unfortunate .. imo
Mat
But i didn't look out for it, i just never read something else
Avezy
Basically in modern c++ you rarely use raw pointers the cppcoreguidelines are a good place to Start
Mat
Wait someone into it
olli
primitive types are not :)
Talula
Unlike Java or C# you don't create object but in C++ you create pointer to the class.
Talula
Objective-C sucked like that too
olli
I don't consider this right, since you can create an object class foo{}; foo f;
olli
f is neither a reference, nor a pointer
Avezy
Basically a pointer is a value pointing at a specific adress in Memory
Mat
does Linux still use int 80 to perform syscalls?
https://en.wikibooks.org/wiki/X86_Assembly/Interfacing_with_Linux#syscall Maybe this will help you
Avezy
So yeah if you See it that way everything that does not fit Into a register uses a pointer somewhere
Avezy
But thats more well a asm point of view than a c++ point of view
Ludovic 'Archivist'
Ludovic 'Archivist'
And that is true for every programming language
Ludovic 'Archivist'
C++ is just memory aware
Avezy
^this Its in the end all just a layer of abstraction
Talula
Everything is just memory
Not really pointers are different from objects... point is address to which your variable points to as start...
Talula
While object is copy of that class.
Mat
While object is copy of that class.
An Object is an instance of a class
Talula
An Object is an instance of a class
I used what they really are, you're saying it in techinical term.
Ludovic 'Archivist'
Objects are typed instances
Ludovic 'Archivist'
Pointers are typed addresses
Talula
I'm embedded developer.
Talula
Program the microcontrollers.
Talula
Copy is just wrong imho
You're right about that.
John
Program the microcontrollers.
Examples? What do you mean?
Talula
Examples? What do you mean?
Simplest example would be programming arduino for example... you program it using C/C++/Java like programming language thought it's C++ but it's kinda mixed.
Talula
Or you could use pure C for microcontrollers from microchip.
Talula
Or program ARM using C/C++
John
I dont get it
John
What is the end product?
Talula
Like your router...
Talula
Router has to have a microcontroller to do the processes, it has all the layers for TCP/IP and everything but it needs to even display information using HTTP... that is all done in embedded programming.
Talula
Embedded means programming the processor directly... it's not much different from what normal programming is these days but it doesn't have to have OS thought these days people use RTO (real time OS)
Talula
So it's more and more like programming a PC but you control GPIO...
John
So you just write functions right?
Talula
Yeah use functions or write functions... depends... as I said like normal programming... but you control IO or GPIO... that is actual pins on microcontrollers...s
John
I got it
John
I think
Talula
Pin 1 could be connected to let us say a button... and that button would have a function like if pressed it should light up LED or something.
Talula
That is the basic difference...
Talula
But if you wanna start with embedded system programming using Raspberry Pi is good idea as it's mix of both normal SBC (single board computer) and with many GPIO.
John
I have raspberry pi
Talula
Cool you can use it's GPIO and that'll make it embedded programming actually.
John
But Don't know what to do with it
Talula
You could use them to let us say control a LED or to get input from a push button... but you have to know a little electronics for it.
John
I dont know if it's bored
Talula
https://www.youtube.com/watch?v=J9cEAGTLaC8
BinaryByter
https://www.youtube.com/watch?v=J4_pbat8Urg
Anonymous
Hi
Anonymous
if I'm not mistaken, all of our C, C++, JS, whatever gets down to this right?
Lookup.the difference between interpreted langs and compiled langs
Talula
I have to train some school teachers on python today... it’s annoying.
Talula
Training people who don’t know anything about programming, programming.
Samrat
klimi
.