Time Nick Message 02:01 MTDiscord I think I will just start learning c++ on w3schools 02:25 MTDiscord Hmm, the semicolon requirement is going to be an interesting learning curve. 02:26 muurkha I wouldn't recommend learning anything on W3Schools 02:27 muurkha my girlfriend has found freecodecamp pretty great, but I'm not sure if they have a C++ module 02:28 MTDiscord why not on w3schools? 02:28 muurkha shitty site full of misinformation 02:28 MTDiscord huh 02:28 MTDiscord its been working for so far with cin and cout 02:29 MTDiscord pretty interesting stuff 02:29 muurkha when your program doesn't work you don't want to have to wonder whether it's because the tutorial you're following is wrong 02:29 MTDiscord https://www.freecodecamp.org/news/learn-c-with-free-31-hour-course/ 02:30 muurkha the outline sounds pretty reasonable 02:31 muurkha may be a bit slow-paced if you already know how to program 02:31 MTDiscord I can code lua 02:31 MTDiscord and I found out geany builds and runs c++ fine for me 02:32 muurkha you'll probably breeze through chapters 5, 6, and 7 then 02:32 muurkha I think the "31 hours" is a bit misleading; that's the amount of video footage 02:32 muurkha probably you'll need to spend several times that doing the exercises 02:32 MTDiscord or playing around with the code on my own 02:33 muurkha (I'm assuming there are exercises!) 02:33 muurkha yeah 02:33 MTDiscord I am playing around with cin and cout and variables 02:33 MTDiscord pretty fun stuff for a basic calculator 02:51 Blockhead256[m] stream operators are overrated, printf works fine 06:35 comrad you dont learn C in 31h.... you can learn the syntax in 1 day but how to do things will take years 06:50 muurkha not C, C++ 06:50 muurkha nobody has ever learned the syntax of C++ 06:51 muurkha I mean, yes, 30 years ago, but that was a much simpler language than what we call C++ today 06:51 muurkha despite all that, you can totally do productive things in C++ within a few hours 06:57 comrad the syntax of c++ is fixed as well and available after a few days. 06:57 comrad the stl on the other hand - i still learn about new methods and classes 06:58 comrad and compared to Java, C# and stuff the way to work with C++ feels very archaic 06:59 comrad Split a String? Well, have fun with these iterators and npos and oh noes a template error! 07:01 muurkha ~, 07:02 muurkha oops 07:03 muurkha the syntax of C++ is not fixed; they just added a bunch of new crap to it in C++20 07:03 muurkha if you think you know it, it's only because you've never tried to write a C++ compiler 07:03 comrad New Syntax? They've added some chrono-stuff and constexpr and stuff, what do you mean syntax specific? 07:06 muurkha designated initializers, for example: T t { .p = 3, .q = 4 }; 07:07 comrad oh those, yeah, i kind of try to avoid that 07:07 comrad i once read that in order to work efficiently with c++ you should not try to use all the features ^^ 07:07 comrad which is kinda the opposite of what every other language tells you 07:08 muurkha lambda expressions with type parameters: [](T x, auto y) { return x + y; } 07:10 muurkha bit field initializers: struct C { int f : 3 { 1 }; }; 07:10 muurkha those three are new in C++20, but there's another dozen or so 07:10 comrad please stop 07:10 comrad this all looks weird 07:10 muurkha it *is* weird! but that's not what's wrong with it 07:12 muurkha there's a nice list at https://github.com/AnthonyCalandra/modern-cpp-features#c20-language-features 07:14 muurkha C++ is a very expedient language for many purposes, but you should not expect to know its syntax. Even the standards-committee members don't 07:14 comrad and its not implemented every the same, i had to work with MSVC, GCC and some proprietary rtos compiler. very tiny detailed differences... 07:15 muurkha ugh, yes 07:15 muurkha that's an excellent idea to stay away from new langauge features 07:15 muurkha Rust has weird syntax too, and it's not a small language like C, but it's a relatively manageable language, not a monstrosity like C++ 07:15 muurkha and maybe it will replace C++ at some point 07:16 muurkha (for new code!) 07:16 comrad we started a new project 2 years ago with C++ (instead of C) 07:16 comrad with C++17 it was okay and nice, to some point at least 07:36 Blockhead256[m] so is it really not possible to build minetestserver without install libjpeg, libpng, opengl etc. all that graphical stuff, just because irrlichtmt requires it? 08:02 Blockhead256[m] never mind, apparently with the right cmake invocation to only build the server it skips irrlichtmt entirely? 08:02 lissobone Hello. 08:02 lissobone Hi. 08:02 lissobone Greetings. 08:02 lissobone Howdy. 15:18 MTDiscord I was doing amusing stuff (at least imo) within an hour from reading and watching the video about c++ 15:18 MTDiscord currently, I have a useless calculator that has 3 unused functions (-, x, /) and the addition and main function 15:19 MTDiscord what I really want to learn is how to make it output a log to a text file, that would be fun. 15:19 MTDiscord oh well, Im getting there. 15:34 MTDiscord dup2 15:39 muurkha dup2 is not especially helpful for that 15:41 muurkha you can open an iostream on a text file, or you can open a cstdio FILE*, or you could open() a raw file descriptor, or use something more exotic like sfio or substdio 15:41 MTDiscord well, you can just redirect stdout to the text file 15:42 MTDiscord that said, if you want a log separate from stdout, of course dup2 won't help 15:42 muurkha of these options I prefer cstdio but possibly that is because I am old 15:42 MTDiscord you could also redirect stderr though 15:42 muurkha you could, yes 17:57 MTDiscord The blog post has dropped: https://blog.minetest.net/2023/02/16/January/ 18:00 muurkha I hope it doesn't break 20:33 mazes_83 about the pathfinding offered by API, I think the answer is no, but does it consider "climbable" nodes as valid ?