Minetest logo

IRC log for #minetest-dev, 2021-04-01

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

All times shown according to UTC.

Time Nick Message
01:32 specing_ joined #minetest-dev
04:00 MTDiscord joined #minetest-dev
06:03 T4im joined #minetest-dev
06:17 T4im joined #minetest-dev
06:21 T4im joined #minetest-dev
06:23 T4im joined #minetest-dev
06:28 T4im joined #minetest-dev
06:42 T4im joined #minetest-dev
07:16 proller joined #minetest-dev
08:00 ShadowNinja joined #minetest-dev
09:11 calcul0n_ joined #minetest-dev
09:13 hlqkj joined #minetest-dev
09:17 Fixer joined #minetest-dev
09:25 tech_exorcist joined #minetest-dev
10:43 olliy joined #minetest-dev
12:27 proller joined #minetest-dev
13:32 specing_ joined #minetest-dev
14:08 thePalindrome joined #minetest-dev
14:36 Fixer_ joined #minetest-dev
16:08 hlqkj_ joined #minetest-dev
16:19 appguru joined #minetest-dev
16:48 absurb joined #minetest-dev
17:03 Fixer joined #minetest-dev
17:36 Krock sfan5: what's the difference between connect_timeout and timeout in cURL?
17:37 sfan5 --connect-timeout <seconds> Maximum time in seconds that you allow curl's connection to take.
17:37 sfan5 -m, --max-time <seconds> Maximum time in seconds that you allow the whole operation to take.
17:37 sfan5 (quoted from manpage but also applies to libcurl, you can probably guess which is which)
17:38 Krock alright I see
17:39 Krock does the client media downloader no longer need a timeout in case connection is lost?
17:40 Krock nvm
17:40 Krock it's now hardcoded in HTTPFetchRequest
17:42 Fleckenstein joined #minetest-dev
17:43 Krock thanks for the explanation
17:44 Krock now the code only needs to compile properly
18:20 numzero joined #minetest-dev
18:24 proller joined #minetest-dev
19:17 TechDude joined #minetest-dev
19:34 tech_exorcist_ joined #minetest-dev
19:39 tech_exorcist joined #minetest-dev
19:47 nerzhul_ joined #minetest-dev
21:28 Taoki joined #minetest-dev
21:46 tech_exorcist joined #minetest-dev
21:47 olliy joined #minetest-dev
22:02 sfan5 merging #10803, #11135, #11136 in 15m
22:02 ShadowBot https://github.com/minetest/minetest/issues/10803 -- Add `math.round`; fix `vector.round` by v-rob
22:02 ShadowBot https://github.com/minetest/minetest/issues/11135 -- Sort out cURL timeouts and increase default by sfan5
22:02 ShadowBot https://github.com/minetest/minetest/issues/11136 -- CGUITTFont optimizations by sfan5
22:25 pgimeno 10803 is yucky, it doesn't round 0.49999999999999994 and -0.49999999999999994 properly, for a good 'round to nearest or even' see https://stackoverflow.com/a/58411671/2428487
22:28 sfan5 this would've been better to know before merge
22:28 pgimeno if I knew that the PR existed I would have tweeted :)
22:29 sfan5 sure I'm not blaming you
22:30 pgimeno 15m is not enough for me to check the chan and see what's being merged
22:30 sfan5 you don't have any obligation to do that, was just a general comment
22:33 MTDiscord <appguru> pgimeno: would math.floor(num +  0.49999999999999994) not work?
22:33 pgimeno it returns 1, which is incorrect
22:33 pgimeno er, sorry
22:35 pgimeno I need to give that some thinking; anyway, round to nearest or even is the best rounding method
22:35 Andrey01 joined #minetest-dev
22:38 Andrey01 Core devs: #10924 ! Please consider it again, all requested changes have already been made by me long ago
22:38 ShadowBot https://github.com/minetest/minetest/issues/10924 -- Add modslist formspec for /mods command. by Andrey2470T
22:39 pgimeno Andrey01: there was a recent discussion that I think you have missed
22:40 Andrey01 Hmm
22:40 Andrey01 When was it?
22:40 pgimeno https://irc.minetest.net/minetest-dev/2021-03-24#i_5802196
22:41 pgimeno it starts there, but it extends for a while
22:46 pgimeno @appguru: it seems it would work (it's delicate because the corner cases need to be carefully examined), as long as the CPU uses round to nearest/even, which is the same case where 0.49999999999999994 fails when using round(num+0.5).
22:47 pgimeno s/CPU/FPU/
22:49 pgimeno and if you're depending on the FPU's rounding mode for correct results, the algorithm I posted rounds to nearest or even, which is better than rounding to nearest or away from zero.
22:51 pgimeno "I suggest not following Python's example" <- Python actually does it right
22:54 pgimeno hm, but #6774 has a very specific requirement: a round function "that matches engine rounding"
22:54 ShadowBot https://github.com/minetest/minetest/issues/6774 -- Add a new vector.round type function that matches engine rounding
22:55 sfan5 in that case it might be just right
22:56 pgimeno not sure if that was actually tested or it worked by chance
22:58 Andrey01 What about my PR, if there are objections, then I suggest to add maybe special options for that command which would output it in the plaintext-form and formspec without producing new cmds
22:59 Andrey01 e.g. option '-f' denotes to output formspec, '-p' - chat text correspondingly
22:59 pgimeno I'd say keep `/mods` without arguments as is, and add e.g. `/mods table` for the format you suggest
23:00 pgimeno note I'm not a core dev though, so that's just an idea, not a request
23:00 Andrey01 I'd prefer with arguments both
23:01 Andrey01 Because it is unclear in which format it will output
23:01 proller joined #minetest-dev
23:13 pgimeno as long as it outputs text by default when typing `/mods` I'm happy
23:13 pgimeno and that one always has the option of outputting text
23:13 MTDiscord1 joined #minetest-dev
23:14 MTDiscord1 <Jonathon> it would make stuff inconsistent
23:15 sfan5 stuff probably already is inconsistent
23:15 MTDiscord <Jonathon> true
23:16 MTDiscord <Jonathon> id still say it should show the formspec, since its arguably better, as long as it sends a text version if the player is not in game
23:16 MTDiscord <Jonathon> if a game or mod wants they can override that

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