Anonymous
#learn
Anonymous
I know i can't
Anonymous
Its takes months to be perfect
How can i learn c++?
What a personal question
> dni9
Its takes months to be perfect
so u want to be a perfect cpp programmer in 1 day ??
Anonymous
@hir0protag0nist you might discuss more on that in PM, purging the chat for the moment
Allanitomwesh
Allanitomwesh
It's like riding a bike
Allanitomwesh
You fall alot the early days but then after a while you are doing backflips and stunts 😂
Anonymous
How can i learn c++?
learn ASM first
Anonymous
this way you learn C
Anonymous
and from C you have all you want from C++ minus a few things
Anonymous
C is just a portable Assembler
Asdf
Is a too long ride to learn c++ I think is not necessary if you need do something in a hardware lever is useful but just for start programming is unnecessary
Allanitomwesh
If you get really good at C++ you won't need kiddy tools like Cordova for crossplatform
Aadarshhh
http://cpp.sh/7iuno
Asdf
If you get really good at C++ you won't need kiddy tools like Cordova for crossplatform
I'm sure if I do a ndk is more than 100 times more difficult to do that using Cordova or ionic. Maybe if use Qt can do the same as Cordova in just the some time
Anonymous
learn ASM first
Gosh really? I just learned C++ without C and Asm
Anonymous
Gosh really? I just learned C++ without C and Asm
yes really because otherwise you write shit code
Anonymous
yes really because otherwise you write shit code
I've been writing ASM free code since 1.5 years and no tester could say my code had shit in it
Anonymous
You are a Trump voter, no?
Shitt 😂😂😂😂
Anonymous
You are a Trump voter, no?
yes but i live in Canada and helped Doug Ford win the Ontario election
Anonymous
and i did all my data analytic tools all in C
Anonymous
no C++ involved
Anonymous
no C++ involved
Ow.. I find C++ more efficient
Anonymous
but now i am stepping it up so i might end up adding in Haskell
Anonymous
Ow.. I find C++ more efficient
there are certain times C++ optimizations are SLIGHTLY faster
Артём
Hello everyone. Please help me, in which directory does #include<somefile> search somefile? I'm using Linux.
Anonymous
but a GOOD C programmer will be able to make those optimizations themselves
Anonymous
use -I path_to_include_folder
Anonymous
to specify which one
Anonymous
Anonymous
I'm thinking of building a simple OS
Anonymous
Could you tell me about ASM Like how to learn
depends which architecture, i am an Electrical engineer so i was lucky and forced to learn how the computer is structured before i learned ASM
Anonymous
which makes your life easier
Артём
to specify which one
No, I don't want to specify other catalog. I want to add my files to the standart directory.
Anonymous
if you know how to implement an adder you know the process that happens in the CPU when you preform an add
Anonymous
but this is stupid
Anonymous
Right?
Anonymous
i mean in terms of logic gates
Anonymous
or if you are masochistic in terms of transistors
Anonymous
but typically for ASM they pick a simple RISC controller and have you code up for this, as RISC is simpler to learn
Asdf
or if you are masochistic in terms of transistors
Why is better use xor to initialize a register to zero ??
Anonymous
Anonymous
Why is better use xor to initialize a register to zero ??
more portable that is the main reason but there are other reasons
Anonymous
X86
x86 or x86_64
Anonymous
What is the main difference? X86_64 is for 32 and 64 bits right?
Anonymous
pxor is slightly better and what gcc uses
Anonymous
there is also the fact that xor and pxor keep a smaller executable size as compared to mov
Anonymous
there are a bunch of different reasons, one time i tried doing it with mov eax 0 for one of my OS designs and that just fucked me over
Anonymous
gave me some weird bugs
Anonymous
but 64 bit os is a nightmare to code up
Anonymous
the ASM is actually VERY counter intiutive
Anonymous
especially the linker scripts for 64 bits
Anonymous
you might want to look into something like FreeRTOS as well
Anonymous
for ideas on how to do this
Anonymous
what terms of better?
for vector registers
Anonymous
it is worse for normal registers
olli
well you cant use pxor for non-xmm registers
Anonymous
yep
olli
such as u cant use xor for xmm registers
olli
still, pxor has a higher latency
Anonymous
oh ya also it slightly takes less energy to use XOR then to do a mov instruction
Anonymous
well you cant use pxor for non-xmm registers
you probably could but it would be a nightmare making that work
olli
how?
Anonymous
how?
no clue yet
Anonymous
but i am sure there are some weird ways of making it work