| 00:03:20 | * | shanoaice quit (Quit: The Lounge - https://thelounge.chat) |
| 00:03:52 | * | shanoaice joined #nim |
| 01:39:55 | * | SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev) |
| 02:12:14 | * | SchweinDeBurg joined #nim |
| 02:12:30 | * | SchweinD1 joined #nim |
| 02:16:18 | * | SchweinDeBurg quit (Ping timeout: 248 seconds) |
| 02:19:18 | * | hygo quit (Ping timeout: 256 seconds) |
| 02:19:59 | * | hygo joined #nim |
| 02:21:26 | * | hygo quit (Max SendQ exceeded) |
| 02:21:54 | * | hygo joined #nim |
| 02:33:22 | * | rockcavera quit (Remote host closed the connection) |
| 03:44:35 | * | karolyi_ joined #nim |
| 03:44:45 | * | _________ quit (Ping timeout: 244 seconds) |
| 03:45:16 | * | karolyi quit (Ping timeout: 244 seconds) |
| 03:47:03 | * | _________ joined #nim |
| 04:03:29 | FromDiscord | <nevillegg> In reply to @karolyi "<@1178997991697305641>: I don't know": nimlsp "just works" |
| 05:18:32 | FromDiscord | <nevillegg> @planetis_m hey planetis. How do I do window flags in your nim naygui? |
| 05:18:41 | FromDiscord | <nevillegg> I can't seem to do it. |
| 05:49:27 | * | xet7 quit (Quit: Leaving) |
| 05:51:48 | * | hygo quit (Ping timeout: 256 seconds) |
| 05:58:08 | * | hygo joined #nim |
| 06:05:29 | * | xet7 joined #nim |
| 06:53:58 | * | Skippy8 joined #nim |
| 08:09:06 | FromDiscord | <planetis_m> In reply to @nevillegg "I can't seem to": What do you mean? Isn't window flags part of raylib? |
| 08:27:22 | * | beholders_eye joined #nim |
| 09:58:57 | * | pmp-p joined #nim |
| 10:07:23 | * | robertmeta quit (Ping timeout: 252 seconds) |
| 10:07:44 | * | adigitoleo quit (Read error: Connection reset by peer) |
| 10:07:51 | * | tmpod quit (Ping timeout: 246 seconds) |
| 10:08:12 | * | casaca quit (Ping timeout: 246 seconds) |
| 10:08:18 | * | ursa-major quit (Ping timeout: 248 seconds) |
| 10:08:39 | * | johuck quit (Ping timeout: 245 seconds) |
| 10:09:22 | * | Freneticks quit (Ping timeout: 248 seconds) |
| 10:09:22 | * | mronetwo quit (Ping timeout: 248 seconds) |
| 10:09:44 | * | noeontheend quit (Read error: Connection reset by peer) |
| 10:10:19 | * | whereiseveryone quit (Ping timeout: 245 seconds) |
| 10:12:21 | * | tmpod joined #nim |
| 10:19:42 | * | ursa-major joined #nim |
| 10:19:53 | * | casaca joined #nim |
| 10:20:08 | * | noeontheend joined #nim |
| 10:21:10 | * | Freneticks joined #nim |
| 10:21:26 | * | whereiseveryone joined #nim |
| 10:21:40 | * | robertmeta joined #nim |
| 10:22:42 | * | johuck joined #nim |
| 10:22:52 | * | adigitoleo joined #nim |
| 10:26:57 | * | mronetwo joined #nim |
| 11:25:38 | * | Skippy8 quit (Ping timeout: 248 seconds) |
| 11:37:31 | * | ursa-major quit (Read error: Connection reset by peer) |
| 11:37:31 | * | whereiseveryone quit (Ping timeout: 250 seconds) |
| 11:37:31 | * | johuck quit (Ping timeout: 246 seconds) |
| 11:37:35 | * | Freneticks quit (Ping timeout: 252 seconds) |
| 11:38:14 | * | mronetwo quit (Ping timeout: 245 seconds) |
| 11:38:39 | * | tmpod quit (Ping timeout: 248 seconds) |
| 11:38:59 | * | johuck joined #nim |
| 11:38:59 | * | Freneticks joined #nim |
| 11:39:32 | * | noeontheend quit (Read error: Connection reset by peer) |
| 11:40:20 | * | casaca quit (Ping timeout: 252 seconds) |
| 11:41:39 | * | adigitoleo quit (Ping timeout: 276 seconds) |
| 11:45:00 | * | casaca joined #nim |
| 11:45:45 | * | adigitoleo joined #nim |
| 11:45:52 | * | tmpod joined #nim |
| 11:47:29 | * | ursa-major joined #nim |
| 11:47:40 | * | whereiseveryone joined #nim |
| 11:50:16 | * | noeontheend joined #nim |
| 11:51:08 | * | mronetwo joined #nim |
| 13:30:41 | FromDiscord | <nevillegg> In reply to @planetis_m "What do you mean?": I can't do it. |
| 13:30:46 | FromDiscord | <nevillegg> Show me how you do it |
| 13:31:43 | FromDiscord | <nevillegg> FLAG_WINDOW_RESIZABLE↵Does not exist this one. |
| 13:31:49 | FromDiscord | <nevillegg> (edit) "exist" => "exist," |
| 13:33:49 | FromDiscord | <nevillegg> This one exists in nim↵↵WindowResizable |
| 13:33:54 | FromDiscord | <nevillegg> But how do I even use it |
| 13:59:11 | strogon14 | https://planetis-m.github.io/naylib/raylib.html#setConfigFlags%2CFlags%5BConfigFlags%5D |
| 13:59:25 | FromDiscord | <crochubourbier> sent a long message, see https://pasty.ee/ScWgkBcE |
| 13:59:27 | FromDiscord | <crochubourbier> (edit) "https://pasty.ee/QVEYIyNv" => "https://pasty.ee/IcmFnNEG" |
| 13:59:38 | FromDiscord | <crochubourbier> (edit) "https://pasty.ee/rxXMLDEp" => "https://pasty.ee/JblToIzY" |
| 13:59:52 | FromDiscord | <crochubourbier> (edit) "https://paste.rs/GxxwZ" => "https://pasty.ee/tGtJbbSK" |
| 14:05:35 | FromDiscord | <crochubourbier> sent a code paste, see https://play.nim-lang.org/#pasty=MswzWaMz |
| 14:48:26 | FromDiscord | <mratsim> In reply to @crochubourbier "Hello, I know that": if you manage to get lent to not insult you, yes it will insult you if you make a mistake |
| 14:48:49 | FromDiscord | <mratsim> In reply to @crochubourbier "Also, if I do": yes it will prevent copies |
| 14:49:28 | FromDiscord | <mratsim> In reply to @crochubourbier "Hello, I know that": You also have the {.byaddr.} pragma implemented somewhere in the stdlib to have lvalue-references |
| 14:50:18 | FromDiscord | <mratsim> In reply to @crochubourbier "Hello, I know that": in general I rely on this and I notice quickly went it doesn't happen |
| 14:50:38 | * | beholders_eye quit (Ping timeout: 250 seconds) |
| 14:50:55 | FromDiscord | <crochubourbier> In reply to @mratsim "You also have the": Thanks, so that means that if I don't use `{.byaddr.}` the argument may be passed as reference, but may also be passed as value ? |
| 14:51:35 | FromDiscord | <crochubourbier> or is it just for non-object types to be passed as ref ? eg: `foo {.byaddr.}: int` |
| 14:52:23 | FromDiscord | <mratsim> In reply to @crochubourbier "Hello, I know that": https://github.com/nim-lang/Nim/issues/16897 |
| 14:52:39 | FromDiscord | <mratsim> and I had the same issue on iterators and options |
| 14:52:39 | FromDiscord | <crochubourbier> In reply to @mratsim "yes it will prevent": Then if I want to make sure that my object is passed by reference everywhere I can just make `=copy` error, no need for byaddr, right ? |
| 14:52:51 | FromDiscord | <crochubourbier> (edit) "In reply to @mratsim "yes it will prevent": Then if I want to make sure that my object is passed by reference everywhere I can just make `=copy` error, no need for byaddr, right ? ... " added "Assuming that it's a no-copy type" |
| 14:53:16 | FromDiscord | <mratsim> In reply to @crochubourbier "Thanks, so that means": the rule is more than 24 bytes = by reference, always. Unless for ffi you use {.bycopy.} |
| 14:54:03 | FromDiscord | <mratsim> or for ffi you can use {.byref.} but in general parameter passing is something that Nim does right, contrary to Rust or C / C++ |
| 14:54:53 | FromDiscord | <crochubourbier> In reply to @mratsim "the rule is more": it's wierd because I just tested with an object with a single int inside and it is passed by reference, but it's less than 24 bytes |
| 14:55:28 | FromDiscord | <crochubourbier> In reply to @mratsim "or for ffi you": Rust also does it right, but you have to be more explicit |
| 14:56:06 | FromDiscord | <crochubourbier> (edit) "explicit" => "explicit, and rust params are sink by default" |
| 14:56:13 | FromDiscord | <mratsim> In reply to @crochubourbier "it's wierd because I": var param, lent and sink are always by pointer |
| 14:56:37 | FromDiscord | <crochubourbier> In reply to @mratsim "var param, lent and": it was just a regular let parameter |
| 14:56:43 | FromDiscord | <crochubourbier> on a proc |
| 14:57:15 | FromDiscord | <mratsim> In reply to @crochubourbier "Rust also does it": interesting, I had perf issues with large object constructions (576 bytes) |
| 14:57:49 | FromDiscord | <mratsim> In reply to @crochubourbier "it was just a": if you can minimize it it would be interesting to look into, might be a bug |
| 14:58:32 | FromDiscord | <crochubourbier> oh I see, it may be because my object inherits from RootObj |
| 15:00:01 | FromDiscord | <crochubourbier> yeah, it was that |
| 15:00:44 | FromDiscord | <crochubourbier> if you inherit from RootObj, it is guaranteed to be passed by reference, not sure if it's a bug or feature though |
| 15:01:38 | FromDiscord | <crochubourbier> sent a code paste, see https://play.nim-lang.org/#pasty=ILsIMGaM |
| 15:02:29 | FromDiscord | <crochubourbier> (edit) "https://play.nim-lang.org/#pasty=akMICRPy" => "https://play.nim-lang.org/#pasty=CdJaFLhM" |
| 15:03:31 | strogon14 | note that the playground can't run code atm. some issue with disk space. |
| 15:03:34 | FromDiscord | <crochubourbier> But anyways thanks, `byref` is what I was looking for |
| 15:13:07 | FromDiscord | <nevillegg> In reply to @strogon14 "https://planetis-m.github.io/naylib/raylib.html#set": thanks I will check it |
| 15:15:37 | FromDiscord | <spotlightkid> sent a code paste, see https://play.nim-lang.org/#pasty=CPJwTXZf |
| 15:15:44 | FromDiscord | <planetis_m> In reply to @nevillegg "But how do I": Read the raylib-examples repo. You will find it immediatetly |
| 15:22:14 | FromDiscord | <nevillegg> sent a code paste, see https://play.nim-lang.org/#pasty=ZVEKKeKb |
| 15:22:17 | FromDiscord | <nevillegg> Finally |
| 15:22:20 | FromDiscord | <nevillegg> I was wanting THIS |
| 15:22:32 | FromDiscord | <nevillegg> thanks |
| 15:27:13 | * | beholders_eye joined #nim |
| 15:28:23 | FromDiscord | <crochubourbier> Are there string views in the language ? I saw that split returns new strings and hoped to find an alternative but I don't see anything about string views in the manual, should we just use a cstring ? |
| 15:28:50 | FromDiscord | <crochubourbier> (edit) "Are there string views in the language ? I saw that split returns new strings and hoped to find an alternative ... but" added "that return views" |
| 15:28:58 | FromDiscord | <crochubourbier> (edit) "return" => "returns" |
| 15:37:15 | FromDiscord | <spotlightkid> Not sure what you want to achieve, but there is https://nim-lang.org/docs/system.html#toOpenArray%2Cseq%5BT%5D%2Cint%2Cint↵This is only for parameter passing, though. See https://nim-lang.org/docs/manual.html#types-open-arrays |
| 15:43:05 | FromDiscord | <nevillegg> Now can we do SOA dod design in nim? |
| 15:43:10 | FromDiscord | <nevillegg> structure of arrays |
| 15:46:34 | * | beholders_eye quit (Ping timeout: 245 seconds) |
| 15:56:04 | FromDiscord | <crochubourbier> In reply to @spotlightkid "Not sure what you": openArray is a view over a seq or array, what I want is a view over a string |
| 15:56:46 | FromDiscord | <crochubourbier> the main example that comes to mind would be a split function that returns a seq of views instead of creating a bunch of new strings |
| 16:06:31 | FromDiscord | <crochubourbier> Ok, maybe I can use seq[openArray[char]] for my split |
| 16:48:57 | FromDiscord | <planetis_m> I any case I am not personal assistant for raylib issues, I have clearly stated that I dont wish to maintain it, so do not ping me. |
| 17:03:43 | * | beholders_eye joined #nim |
| 17:16:51 | Amun-Ra | openArray is ever a view over a string |
| 17:16:58 | Amun-Ra | even* |
| 17:42:48 | * | mronetwo quit (*.net *.split) |
| 17:42:48 | * | noeontheend quit (*.net *.split) |
| 17:42:48 | * | casaca quit (*.net *.split) |
| 17:42:48 | * | johuck quit (*.net *.split) |
| 17:42:48 | * | pmp-p quit (*.net *.split) |
| 17:42:48 | * | SchweinD1 quit (*.net *.split) |
| 17:42:58 | * | casaca joined #nim |
| 17:42:59 | * | mronetwo joined #nim |
| 17:42:59 | * | noeontheend joined #nim |
| 17:43:07 | * | SchweinDeBurg joined #nim |
| 17:44:07 | * | pmp-p joined #nim |
| 17:44:11 | * | johuck joined #nim |
| 17:45:28 | FromDiscord | <crochubourbier> In reply to @Amun-Ra "openArray is ever a": Yeah, my bad, `openArray[char]` is basically a string view, I figured it out |
| 17:45:55 | Amun-Ra | mhm |
| 17:50:03 | FromDiscord | <crochubourbier> In reply to @Amun-Ra "mhm": I mean it's not literally a string view, but it can be used as a string view |
| 18:00:02 | * | Skippy8 joined #nim |
| 18:11:12 | * | beholders_eye quit (Ping timeout: 244 seconds) |
| 19:18:55 | * | Skippy8 quit (Ping timeout: 264 seconds) |
| 19:36:31 | * | xutaxkamay quit (Quit: ZNC 1.9.1+deb2+b3 - https://znc.in) |
| 19:38:35 | * | xutaxkamay joined #nim |
| 19:45:56 | * | xutaxkamay_ joined #nim |
| 19:47:04 | * | xutaxkamay quit (Ping timeout: 256 seconds) |
| 19:47:04 | * | xutaxkamay_ is now known as xutaxkamay |
| 20:12:09 | * | Skippy8 joined #nim |
| 20:18:49 | * | Skippy8 quit (Ping timeout: 248 seconds) |
| 20:35:10 | * | Skippy8 joined #nim |
| 20:39:56 | * | Skippy8 quit (Ping timeout: 265 seconds) |
| 20:46:25 | * | karolyi_ quit (Remote host closed the connection) |
| 20:47:03 | * | Skippy8 joined #nim |
| 20:53:41 | * | karolyi joined #nim |
| 21:09:35 | * | xutaxkamay quit (Ping timeout: 252 seconds) |
| 21:27:02 | * | rockcavera joined #nim |
| 21:37:28 | * | xutaxkamay joined #nim |
| 21:40:57 | * | xutaxkamay quit (Client Quit) |
| 21:45:06 | * | xutaxkamay joined #nim |
| 21:45:20 | * | Skippy8 quit (Ping timeout: 250 seconds) |