Minetest logo

IRC log for #minetest, 2023-02-16

| Channels | #minetest index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:09 Thermoriax joined #minetest
00:25 zimreg joined #minetest
00:55 A_Dragon joined #minetest
01:04 smk joined #minetest
01:28 MiniontobyPI joined #minetest
01:37 Lesha_Vel joined #minetest
01:38 fossdev2 joined #minetest
02:01 MTDiscord <PrairieWind> I think I will just start learning c++ on w3schools
02:25 MTDiscord <PrairieWind> 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 <PrairieWind> why not on w3schools?
02:28 muurkha shitty site full of misinformation
02:28 MTDiscord <PrairieWind> huh
02:28 MTDiscord <PrairieWind> its been working for so far with cin and cout
02:29 MTDiscord <PrairieWind> 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 <PrairieWind> 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 <PrairieWind> I can code lua
02:31 MTDiscord <PrairieWind> 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 <PrairieWind> 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 <PrairieWind> I am playing around with cin and cout and variables
02:33 MTDiscord <PrairieWind> pretty fun stuff for a basic calculator
02:51 Blockhead256[m] stream operators are overrated, printf works fine
03:03 MiniontobyPI joined #minetest
03:16 fossdev2 joined #minetest
03:47 Thermoriax joined #minetest
04:05 Trifton joined #minetest
04:50 sometalgoo joined #minetest
05:00 MTDiscord joined #minetest
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 TomTom joined #minetest
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: []<class T>(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?
07:43 calcul0n joined #minetest
07:55 Lesha_Vel joined #minetest
08:02 Blockhead256[m] never mind, apparently with the right cmake invocation to only build the server it skips irrlichtmt entirely?
08:02 lissobone joined #minetest
08:02 lissobone Hello.
08:02 lissobone Hi.
08:02 lissobone Greetings.
08:02 lissobone Howdy.
08:23 Talkless joined #minetest
09:01 Talkless joined #minetest
09:56 Talkless joined #minetest
11:18 Sven_vB joined #minetest
12:29 definitelya joined #minetest
12:30 Sven_vB joined #minetest
12:45 zimreg joined #minetest
13:11 Sven_vB joined #minetest
13:40 Sven_vB_ joined #minetest
14:48 calcul0n_ joined #minetest
15:07 fluxionary joined #minetest
15:18 MTDiscord <PrairieWind> I was doing amusing stuff (at least imo) within an hour from reading and watching the video about c++
15:18 MTDiscord <PrairieWind> currently, I have a useless calculator that has 3 unused functions (-, x, /) and the addition and main function
15:19 MTDiscord <PrairieWind> 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 <PrairieWind> oh well, Im getting there.
15:34 MTDiscord <luatic> 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 <luatic> well, you can just redirect stdout to the text file
15:42 MTDiscord <luatic> 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 <luatic> you could also redirect stderr though
15:42 muurkha you could, yes
15:47 lemonzest joined #minetest
16:44 mrkubax10 joined #minetest
16:57 DeepThgt joined #minetest
17:23 peterz joined #minetest
17:54 zimreg joined #minetest
17:57 MTDiscord <MisterE> The blog post has dropped: https://blog.minetest.net/2023/02/16/January/
18:00 muurkha I hope it doesn't break
18:02 Kilroy joined #minetest
19:18 gxt joined #minetest
19:26 Sven_vB joined #minetest
19:36 zimreg joined #minetest
20:33 mazes_83 about the pathfinding offered by API, I think the answer is no, but does it consider "climbable" nodes as valid ?
20:47 YuGiOhJCJ joined #minetest
21:18 proller joined #minetest
23:01 Sven_vB joined #minetest
23:24 Lesha_Vel joined #minetest

| Channels | #minetest index | Today | | Google Search | Plaintext