Mar!o
It's faster than both not because it's written in C but because of the requirements of the input languages JS is a hell to optimize
But Lua too It’s also dynamically typed And the only data structures it has are tables which are effectively hash maps That’s also really hard!
Mar!o
I‘m working on a tree based auto vectorizer for luajit If it’s done it will beat other VMs even more using SSE or AVX SIMD Code 😉
Danya🔥
But Lua too It’s also dynamically typed And the only data structures it has are tables which are effectively hash maps That’s also really hard!
JS has a lot of underlying mechanisms that are not usually seen unless you go deep into the standard Also, only float numbers is a nightmare But I'm talking more about how objects work in JS
Danya🔥
Yet it's offtop so we should stop
Danya🔥
Let's just conclude that I hate C and try not to use it
Mar!o
Let's just conclude that I hate C and try not to use it
Let’s conclude that C has it‘s uses but C++ is the better choice in most cases 😝
Azadi
But for really low level stuff I either prefer C or reduced C++
What feature of C++ is not good for direct access to hardware while C has a better version for that? PS: I don't use C (and never used it)
ж
no
Anonymous
Hi! Guys. I have a question. I have the following exercise which asks me to compress a vector.eliminating positions with null values. This is my code simplified: ............................................................. std::vector <int> n{2,10,0,12,0,0,55}; for(auto it = n.begin(); it != n.end(); ++it){ if( *it == null){ n.erase(it); } } ................................................................. the program just deletes only one element. type in this case index 2 and 4 will be dropped, but index 5 will not. Apparently the erase function does not erase consecutive zeros. Please help🙏
Mar!o
What feature of C++ is not good for direct access to hardware while C has a better version for that? PS: I don't use C (and never used it)
move semantics RAII (because you never know if an object ctor/dtor allocates) templates the main reasons are the hidden memory allocations it's seldom a problem but there are cases in C you know a call to malloc allocates in C++ some << operator might allocate in C you know what the code does immediately which is a benefit if needed but for most cases C++ is more than enough
Mar!o
Uh c++ is superset of c, so do we even have anything that c can do but c++ can't??
yes C has some nice initializers which of some are not supported in C++ and some since c++20 C also has the restrict keyword which is not in C++ and C has VLAs and some semantics are different regarding unions and some more stuff...
Talentless guy
do you can show some books about itdw
Talentless guy
i decided start now, so i dont have the way to follow this is so hard
Pavel
hardware is so important?
Well, important in which context? If you want to do frontend, it is not important If you do video games or server applications, it is semi-important If you write for microcontrollers, it is very important
Talentless guy
so i just wanna learn but i dont have a goal about
Talentless guy
it is so surface
Pavel
so i just wanna learn but i dont have a goal about
Maybe you have something that you're passionate about. But in general you don't need to know deeply about hardware in first like.. 5 years Unless you do C I guess, or assembly
Talentless guy
nah i wanna be a ethical hacker. maybe
Talentless guy
so i don t know thw way
Talentless guy
Talentless guy
i am a little sad because i am not smart enough
Talentless guy
what is your goal with programming?
Anonymous
Does anyone have seen this course is it good? https://youtu.be/8jLOx1hD3_o
Anonymous
It's. 31 hr beginner to advanced in c++ if anyone have seen this tell me is it good?
Anonymous
Jose
Means?
This is not for complete beginners, as the course says. You must need prior concepts like what a yaml or json is, what is visual studio code... In the 0.27 (27 seconds), shows erroneous concepts, like "advanced OOP" or "Dark theme VS code". OOP is one of the four core points of C++, and that means is not advanced, is the core of C++. In the 5:10 (5 minutes, 10 seconds), shows the first bad habit: using namespace. 11:35 -> Install this thing you don't know anything of it. Install it! Believe me! It's a sacred thing every religious people who are an arcane codist like me must use (but you don't know why) There is no explanation about what means "compilation", what is "code" or what is a "compiler" to this point. But, hey! The IDEs are the most important thing! 12:12 -> Those things are the supported features. Believe them, I don't teach you what a feature is, is just magic words 14:19 -> Winlibs and mingw64 (the nightmare!). The same. A magic word I don't have time to explain. Hurry and install things you don't understand! 18:10 -> Modify environment variables because f**k you, that's why. What is an environment variable, please? And why is related with mingw64 and not use cygwin? (the same problem, different approach, not to install/modify environment variables) 20:50 -> Install more apps! Now it's time for visual studio 2022 (preview, outdated video). Forget about it costs money! Just use the community edition (even if you are planning to use it in a commercial use, just like the video-yes, the terms and conditions forbid in USA to use in any kind of commercial use) 22.35 -> Just check all the points, even if you don't use any of them in your life. What are those GBs of hard drive if there are not meant to be used? 27:20 -> Install this plugin. Just only believe in me, I just don't have any time to explain to a complete beginner what a plugin is or why is needed. Just install it and shut up! 30:05 -> Your first program. K&R authistic mode kicks in! Why "include", why the hashtag, why the "angle brackets" and not less than, more than, what is int, why main, why those parentheses and the curved thingies... Just why? I'm a complete beginner, explain me why just at the time you are using it! For sure, the rest of the course could be-or not- a great course, but the beginning is not meant for complete beginners. You must be a coder to start coding with this course. Only the first half hour analyzed. This is, for sure, NOT BEGINNER FRIENDLY.
Jose
Your first code MUST NOT BE an allegory of a cat walking through a keyboard of strange symbols you've never see in your life #include <iostream> int main(){ auto result = (10 <=> 20) > 0; std::cout << result << std::endl; } For sure this NOT will be the first thing you want to show to a complete beginner.
Anonymous
This is not for complete beginners, as the course says. You must need prior concepts like what a yaml or json is, what is visual studio code... In the 0.27 (27 seconds), shows erroneous concepts, like "advanced OOP" or "Dark theme VS code". OOP is one of the four core points of C++, and that means is not advanced, is the core of C++. In the 5:10 (5 minutes, 10 seconds), shows the first bad habit: using namespace. 11:35 -> Install this thing you don't know anything of it. Install it! Believe me! It's a sacred thing every religious people who are an arcane codist like me must use (but you don't know why) There is no explanation about what means "compilation", what is "code" or what is a "compiler" to this point. But, hey! The IDEs are the most important thing! 12:12 -> Those things are the supported features. Believe them, I don't teach you what a feature is, is just magic words 14:19 -> Winlibs and mingw64 (the nightmare!). The same. A magic word I don't have time to explain. Hurry and install things you don't understand! 18:10 -> Modify environment variables because f**k you, that's why. What is an environment variable, please? And why is related with mingw64 and not use cygwin? (the same problem, different approach, not to install/modify environment variables) 20:50 -> Install more apps! Now it's time for visual studio 2022 (preview, outdated video). Forget about it costs money! Just use the community edition (even if you are planning to use it in a commercial use, just like the video-yes, the terms and conditions forbid in USA to use in any kind of commercial use) 22.35 -> Just check all the points, even if you don't use any of them in your life. What are those GBs of hard drive if there are not meant to be used? 27:20 -> Install this plugin. Just only believe in me, I just don't have any time to explain to a complete beginner what a plugin is or why is needed. Just install it and shut up! 30:05 -> Your first program. K&R authistic mode kicks in! Why "include", why the hashtag, why the "angle brackets" and not less than, more than, what is int, why main, why those parentheses and the curved thingies... Just why? I'm a complete beginner, explain me why just at the time you are using it! For sure, the rest of the course could be-or not- a great course, but the beginning is not meant for complete beginners. You must be a coder to start coding with this course. Only the first half hour analyzed. This is, for sure, NOT BEGINNER FRIENDLY.
Bro see the comments and click on the video time line for chapter he has explained everything
Anonymous
This is not for complete beginners, as the course says. You must need prior concepts like what a yaml or json is, what is visual studio code... In the 0.27 (27 seconds), shows erroneous concepts, like "advanced OOP" or "Dark theme VS code". OOP is one of the four core points of C++, and that means is not advanced, is the core of C++. In the 5:10 (5 minutes, 10 seconds), shows the first bad habit: using namespace. 11:35 -> Install this thing you don't know anything of it. Install it! Believe me! It's a sacred thing every religious people who are an arcane codist like me must use (but you don't know why) There is no explanation about what means "compilation", what is "code" or what is a "compiler" to this point. But, hey! The IDEs are the most important thing! 12:12 -> Those things are the supported features. Believe them, I don't teach you what a feature is, is just magic words 14:19 -> Winlibs and mingw64 (the nightmare!). The same. A magic word I don't have time to explain. Hurry and install things you don't understand! 18:10 -> Modify environment variables because f**k you, that's why. What is an environment variable, please? And why is related with mingw64 and not use cygwin? (the same problem, different approach, not to install/modify environment variables) 20:50 -> Install more apps! Now it's time for visual studio 2022 (preview, outdated video). Forget about it costs money! Just use the community edition (even if you are planning to use it in a commercial use, just like the video-yes, the terms and conditions forbid in USA to use in any kind of commercial use) 22.35 -> Just check all the points, even if you don't use any of them in your life. What are those GBs of hard drive if there are not meant to be used? 27:20 -> Install this plugin. Just only believe in me, I just don't have any time to explain to a complete beginner what a plugin is or why is needed. Just install it and shut up! 30:05 -> Your first program. K&R authistic mode kicks in! Why "include", why the hashtag, why the "angle brackets" and not less than, more than, what is int, why main, why those parentheses and the curved thingies... Just why? I'm a complete beginner, explain me why just at the time you are using it! For sure, the rest of the course could be-or not- a great course, but the beginning is not meant for complete beginners. You must be a coder to start coding with this course. Only the first half hour analyzed. This is, for sure, NOT BEGINNER FRIENDLY.
That starting was just overview
Anonymous
At 9hrs some min he talks about pointers then after that function template for 2hrs then he say about i think classes about 3 hrs
Anonymous
This is not for complete beginners, as the course says. You must need prior concepts like what a yaml or json is, what is visual studio code... In the 0.27 (27 seconds), shows erroneous concepts, like "advanced OOP" or "Dark theme VS code". OOP is one of the four core points of C++, and that means is not advanced, is the core of C++. In the 5:10 (5 minutes, 10 seconds), shows the first bad habit: using namespace. 11:35 -> Install this thing you don't know anything of it. Install it! Believe me! It's a sacred thing every religious people who are an arcane codist like me must use (but you don't know why) There is no explanation about what means "compilation", what is "code" or what is a "compiler" to this point. But, hey! The IDEs are the most important thing! 12:12 -> Those things are the supported features. Believe them, I don't teach you what a feature is, is just magic words 14:19 -> Winlibs and mingw64 (the nightmare!). The same. A magic word I don't have time to explain. Hurry and install things you don't understand! 18:10 -> Modify environment variables because f**k you, that's why. What is an environment variable, please? And why is related with mingw64 and not use cygwin? (the same problem, different approach, not to install/modify environment variables) 20:50 -> Install more apps! Now it's time for visual studio 2022 (preview, outdated video). Forget about it costs money! Just use the community edition (even if you are planning to use it in a commercial use, just like the video-yes, the terms and conditions forbid in USA to use in any kind of commercial use) 22.35 -> Just check all the points, even if you don't use any of them in your life. What are those GBs of hard drive if there are not meant to be used? 27:20 -> Install this plugin. Just only believe in me, I just don't have any time to explain to a complete beginner what a plugin is or why is needed. Just install it and shut up! 30:05 -> Your first program. K&R authistic mode kicks in! Why "include", why the hashtag, why the "angle brackets" and not less than, more than, what is int, why main, why those parentheses and the curved thingies... Just why? I'm a complete beginner, explain me why just at the time you are using it! For sure, the rest of the course could be-or not- a great course, but the beginning is not meant for complete beginners. You must be a coder to start coding with this course. Only the first half hour analyzed. This is, for sure, NOT BEGINNER FRIENDLY.
I am a beginner coder Done python basics and in ds till queues And done c basics
Jose
Bro see the comments and click on the video time line for chapter he has explained everything
I told I analyzed the first 30 minutes. This is, by far, almost the double of the time a person has a complete attention to something. If the course has a bad adversitement, it's not my fault. Only the first 30 minutes are enough to understand it's not meant to beginners.
Jose
That starting was just overview
All the course is a course. If you enter a kitchen and the chef says "grab a potato and peel it", you must know what a potato is, what tool you must use to peel it and how/where to peel it. The most important thing is: what I'm doing with the peeled potato and its peel?
Jose
Ohk U have watched it right now?
Yes, I'm wasted my time to ensure it's a bad course for beginners. The title is incorrect -> the course is incorrect
Jose
All the course is a course. If you enter a kitchen and the chef says "grab a potato and peel it", you must know what a potato is, what tool you must use to peel it and how/where to peel it. The most important thing is: what I'm doing with the peeled potato and its peel?
Introduction to concepts are more important than "just grab your keyboard and smash it until you are done!" approach. This is simply erroneous. The rule of thumb is: don't assume ANYTHING. Even your pupil couldn't know what a keyboard is!
Jose
Ok I will do c++ from somewhere else and then revise the concepts from here
The languages foundation of C++ are: OOP - STL - C - C preprocessor Most of the usual time you attack a problem using STL. The teaching who knows you know Python would use an analogy to easily introduce you new concepts, just the Python lists, sets or tuples, and lead you, from there, to go here. It's a really bad idea to teach C first, and OOP at chapter 17, just like Kate Gregory said in the CppCon 2015
Jose
https://www.youtube.com/watch?v=YnWhqhNdYyk The talk about that point
Anonymous
zelika
https://pastebin.ubuntu.com/p/Yd7grWn4gb/ good day. The code fails the test ( Assertion failed: M[5] == 'A' ) I wonder where did I go wrong
Azadi
https://pastebin.ubuntu.com/p/Yd7grWn4gb/ good day. The code fails the test ( Assertion failed: M[5] == 'A' ) I wonder where did I go wrong
Codes like this are considered long and it has low readability (to me). Try running it through a debugger first. It seems that you're dereferencing the end iterator on line 53 for the first insert.
Azadi
Also declaring testIntervalMap() as a friend function doesn't make sense well to me.
Ибраги́м
Shit gets funnier
Anonymous
Danya🔥
How to learn C++ in 21 days
Pavel
Shit gets funnier
I don't get it, I mean what is the problem?
April
For operating system kernel development, is it necessary to learn C++?
April
or it is enough just to learn asm C or rust
Mahdiy
For operating system kernel development, is it necessary to learn C++?
I recommend the book "Modern Operating Systems".
April
thank you
Mahdiy
or it is enough just to learn asm C or rust
Learn what exactly operating systems do first!
April
you are right
Mahdiy
Learn what exactly operating systems do first!
than choose programming language like C or something
April
Which is more suitable for debugging the x86 kernel, Qemu or Bochs?
April
If I use bochs, whenever I want some new virtualization hardware, I may need to recompile bochs and add commands during configuration