00:49:58 | * | fredrikhr quit (Ping timeout: 265 seconds) |
00:59:43 | * | njoseph quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
01:00:03 | * | njoseph joined #nim |
01:24:57 | FromDiscord | <Chem> @Clonkk Hey, just wanted to stop by and say thanks -- I got it working after your advice = D |
01:25:00 | FromDiscord | <Chem> https://media.discordapp.net/attachments/371759389889003532/829889601560117278/unknown.png |
01:26:13 | FromDiscord | <Chem> π |
01:26:18 | FromDiscord | <Chem> sent a code paste, see https://paste.rs/n60 |
01:40:41 | * | Tlangir joined #nim |
01:55:30 | FromDiscord | <Chem> One thing I'm not entirely clear on -- by the `bycopy` pragma means the `ReaperPluginInfoT` type should be passed by-value, instead of by reference.β΅If this is a pointer to a struct that is being passed in from the external program to my script's entry function, wouldn't `byref` make more sense since it would be a reference to the struct? |
02:07:15 | * | sixtyten joined #nim |
02:37:02 | * | a_chou joined #nim |
02:40:39 | FromGitter | <gogolxdong> Is nim-libp2p going to get rid of p2pd? |
02:52:32 | * | rockcavera quit (Remote host closed the connection) |
03:24:27 | ForumUpdaterBot | New thread by Niminem: Testing/Feedback for Neel 0.4.0 development, see https://forum.nim-lang.org/t/7764 |
03:28:23 | * | spiderstew_ joined #nim |
03:29:43 | * | spiderstew quit (Ping timeout: 258 seconds) |
03:34:55 | FromDiscord | <Tuatarian> Is there an equivalent to libmpeg2 in bin? |
03:34:58 | FromDiscord | <Tuatarian> nim |
03:37:06 | FromDiscord | <ElegantBeef> There is https://github.com/treeform/mpeg though alternatively you could wrap libmpeg2 yourself π |
03:40:04 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
03:41:51 | * | a_chou quit (Remote host closed the connection) |
03:52:24 | * | leorize joined #nim |
04:12:12 | * | goblinslayer[m] joined #nim |
04:23:44 | * | shmorgle joined #nim |
05:03:44 | * | wasted_youth2 quit (Quit: Leaving) |
05:09:40 | * | narimiran joined #nim |
05:54:38 | * | hyiltiz quit (Ping timeout: 268 seconds) |
05:57:12 | * | hyiltiz joined #nim |
05:57:12 | * | hyiltiz quit (Changing host) |
05:57:12 | * | hyiltiz joined #nim |
06:16:57 | FromDiscord | <Clonkk> In reply to @Chem "One thing I'm not": Nice. If you pass a pointer bycopy only the pointer gets copied so it's not an issue |
06:20:56 | FromDiscord | <ElegantBeef> Clonkk now on discord? Ruh roh the proprietary software is winning! |
06:21:19 | Clonkk[m] | Why not both? |
06:22:28 | Clonkk[m] | The reason being Tha the discord / Matrix bridge o' the main channel is different than on the science Channe and it's difficult to read code snippet for this Channel |
06:23:56 | FromDiscord | <ElegantBeef> ah |
06:57:03 | * | PMunch joined #nim |
06:58:57 | * | Vladar joined #nim |
07:02:47 | * | fredrikhr joined #nim |
07:14:15 | FromDiscord | <hamidb80> oes any implementation of lisp let you to walk into AST ( something like Nim) ? |
07:14:19 | FromDiscord | <hamidb80> (edit) "oes" => "does" |
07:14:54 | FromDiscord | <ElegantBeef> Nim's macros are inspired by lisp's |
07:16:39 | FromDiscord | <hamidb80> In reply to @ElegantBeef "Nim's macros are inspired": but i didn't see AST manipulation in lisp ( for e.g. change varaibles names ,... ) |
07:17:31 | FromDiscord | <hamidb80> (edit) "change" => "changing" |
07:17:38 | FromDiscord | <hamidb80> (edit) "varaibles" => "variable" |
07:17:45 | FromDiscord | <hamidb80> (edit) "names ,..." => "name, ..." |
07:18:37 | FromDiscord | <hamidb80> did you see them in any kinds of lisp? |
07:18:56 | FromDiscord | <hamidb80> (edit) "kinds" => "implementations" |
07:19:30 | FromDiscord | <hamidb80> In reply to @Chem "": what's that |
07:32:29 | * | motersen quit (Remote host closed the connection) |
07:33:13 | * | motersen joined #nim |
07:34:52 | FromDiscord | <konsumlamm> s-expressions already are the lisp AST |
07:42:00 | FromDiscord | <Varriount> Can anyone illuminate this PR for me? https://github.com/nim-lang/Nim/pull/13582#issuecomment-816483101 |
07:43:08 | ForumUpdaterBot | New thread by Stefan_Salewski: Tables and hashes, see https://forum.nim-lang.org/t/7765 |
07:43:52 | Clonkk[m] | <FromDiscord "<Varriount> Can anyone illuminat"> If I understand correctly, this is to improve speed while keeping stacktrace but if you want to optimize for speed you sually remove stacktrace anyway |
07:58:31 | * | robertmeta quit (*.net *.split) |
07:58:31 | * | fowl quit (*.net *.split) |
07:58:31 | * | phatnael[m] quit (*.net *.split) |
07:58:31 | * | FlammableDuck[m] quit (*.net *.split) |
07:58:32 | * | JStoker quit (*.net *.split) |
07:58:32 | * | zopsi quit (*.net *.split) |
07:58:32 | * | icebattle quit (*.net *.split) |
07:58:32 | * | sknebel quit (*.net *.split) |
07:58:32 | * | Ekho quit (*.net *.split) |
07:58:33 | * | astronavt quit (*.net *.split) |
07:58:33 | * | oz quit (*.net *.split) |
07:58:34 | * | Mister_Magister quit (*.net *.split) |
07:58:34 | * | threenp quit (*.net *.split) |
07:58:34 | * | cornfeedhobo quit (*.net *.split) |
07:58:34 | * | sacredfrog quit (*.net *.split) |
07:58:35 | * | DannyHpy[m] quit (*.net *.split) |
07:58:35 | * | Fish-Face quit (*.net *.split) |
07:58:35 | * | Jjp137 quit (*.net *.split) |
07:58:35 | * | Clonkk[m] quit (*.net *.split) |
07:58:35 | * | ShalokShalom[m] quit (*.net *.split) |
07:58:36 | * | Avahe[m] quit (*.net *.split) |
07:58:36 | * | antholop[m] quit (*.net *.split) |
07:58:37 | * | lnxw37d4 quit (*.net *.split) |
07:58:37 | * | motersen quit (*.net *.split) |
07:58:37 | * | leorize quit (*.net *.split) |
07:58:38 | * | Benjamin[m]11 quit (*.net *.split) |
07:58:39 | * | k0mpjut0r quit (*.net *.split) |
07:58:39 | * | stefantalpalaru quit (*.net *.split) |
07:58:40 | * | jfondren[m] quit (*.net *.split) |
07:58:40 | * | BitPuffin quit (*.net *.split) |
07:58:40 | * | euantorano quit (*.net *.split) |
07:58:41 | * | mids quit (*.net *.split) |
07:58:41 | * | crem quit (*.net *.split) |
07:58:41 | * | Northstrider[m] quit (*.net *.split) |
07:58:41 | * | Jeff[m] quit (*.net *.split) |
07:58:41 | * | fbpyr[m] quit (*.net *.split) |
07:58:42 | * | j-james[m] quit (*.net *.split) |
07:58:42 | * | unclechu quit (*.net *.split) |
07:58:42 | * | liblq-dev quit (*.net *.split) |
07:58:42 | * | GitterIntegratio quit (*.net *.split) |
07:58:42 | * | d10n-work quit (*.net *.split) |
07:58:42 | * | dom96 quit (*.net *.split) |
07:58:43 | * | Vladar quit (*.net *.split) |
07:58:43 | * | MightyJoe quit (*.net *.split) |
07:58:43 | * | blueberrypie quit (*.net *.split) |
07:58:43 | * | ForumUpdaterBot quit (*.net *.split) |
07:58:44 | * | antranigv quit (*.net *.split) |
07:58:45 | * | D_ quit (*.net *.split) |
07:58:45 | * | skelett quit (*.net *.split) |
07:58:45 | * | Yardanico quit (*.net *.split) |
07:58:45 | * | kinkinkijkin quit (*.net *.split) |
07:58:45 | * | teiresias quit (*.net *.split) |
07:58:45 | * | mahlon quit (*.net *.split) |
07:58:46 | * | Adeon quit (*.net *.split) |
07:58:46 | * | grobe0ba quit (*.net *.split) |
07:58:46 | * | vqrs quit (*.net *.split) |
07:58:46 | * | npgm quit (*.net *.split) |
07:58:46 | * | nickster quit (*.net *.split) |
07:58:46 | * | MTRNord quit (*.net *.split) |
07:58:47 | * | Simon[m]7 quit (*.net *.split) |
07:58:47 | * | asdflkj quit (*.net *.split) |
07:58:48 | * | GaveUp quit (*.net *.split) |
07:58:48 | * | ecs quit (*.net *.split) |
07:58:48 | * | raboof quit (*.net *.split) |
07:58:48 | * | rayman22201 quit (*.net *.split) |
07:58:48 | * | saem quit (*.net *.split) |
07:58:48 | * | notchris quit (*.net *.split) |
07:58:48 | * | nisstyre quit (*.net *.split) |
07:58:48 | * | beatmox- quit (*.net *.split) |
07:58:48 | * | fredrikhr quit (*.net *.split) |
07:58:48 | * | sixtyten quit (*.net *.split) |
07:58:49 | * | dgb quit (*.net *.split) |
07:58:49 | * | kitech1 quit (*.net *.split) |
07:58:49 | * | blackpawn quit (*.net *.split) |
07:58:49 | * | blitzworks quit (*.net *.split) |
07:58:49 | * | madnight quit (*.net *.split) |
07:58:50 | * | ebb quit (*.net *.split) |
07:58:50 | * | l1x quit (*.net *.split) |
07:58:50 | * | ormiret quit (*.net *.split) |
07:58:50 | * | Cadey quit (*.net *.split) |
07:58:50 | * | ee7[m] quit (*.net *.split) |
07:58:50 | * | hsh quit (*.net *.split) |
07:58:50 | * | oprypin quit (*.net *.split) |
07:58:50 | * | GreaseMonkey quit (*.net *.split) |
07:58:51 | * | FromGitter quit (*.net *.split) |
07:58:51 | * | nikki93 quit (*.net *.split) |
07:58:51 | * | zielmicha__ quit (*.net *.split) |
07:58:51 | * | Prestige quit (*.net *.split) |
07:58:51 | * | idxu quit (*.net *.split) |
07:58:51 | * | r4vi quit (*.net *.split) |
07:58:51 | * | hoek quit (*.net *.split) |
07:58:51 | * | d10n quit (*.net *.split) |
07:58:51 | * | CcxWrk quit (*.net *.split) |
07:58:51 | * | Cthalupa quit (*.net *.split) |
07:58:52 | * | qwertfisch quit (*.net *.split) |
07:58:52 | * | hpyc9 quit (*.net *.split) |
07:58:52 | * | surma quit (*.net *.split) |
07:58:52 | * | vicfred quit (*.net *.split) |
07:58:52 | * | letto_ quit (*.net *.split) |
07:58:53 | * | casaca quit (*.net *.split) |
07:58:53 | * | junland quit (*.net *.split) |
07:58:53 | * | Kaivo quit (*.net *.split) |
07:58:53 | * | joast quit (*.net *.split) |
07:58:53 | * | narimiran quit (*.net *.split) |
07:58:54 | * | clemens3 quit (*.net *.split) |
07:58:54 | * | literal quit (*.net *.split) |
07:58:54 | * | johnnynitwits quit (*.net *.split) |
07:58:54 | * | jxy quit (*.net *.split) |
07:58:55 | * | deepend quit (*.net *.split) |
07:58:55 | * | PMunch quit (*.net *.split) |
07:58:55 | * | ddevault quit (*.net *.split) |
07:58:55 | * | m4r35n357 quit (*.net *.split) |
07:58:55 | * | xace quit (*.net *.split) |
07:58:56 | * | Q-Master quit (*.net *.split) |
07:58:56 | * | Amun_Ra quit (*.net *.split) |
07:58:56 | * | federico3 quit (*.net *.split) |
07:58:56 | * | conkker quit (*.net *.split) |
07:58:56 | * | pauwel_kwak quit (*.net *.split) |
07:58:56 | * | giaco__ quit (*.net *.split) |
07:58:57 | * | kaliy quit (*.net *.split) |
07:58:57 | * | voidpi quit (*.net *.split) |
07:58:57 | * | Eyess quit (*.net *.split) |
07:58:57 | * | fmaruki quit (*.net *.split) |
07:58:58 | * | Araq quit (*.net *.split) |
07:58:59 | * | Tlangir quit (*.net *.split) |
07:58:59 | * | ozzz quit (*.net *.split) |
07:58:59 | * | shodan45 quit (*.net *.split) |
07:58:59 | * | FromDiscord quit (*.net *.split) |
07:58:59 | * | revere quit (*.net *.split) |
07:58:59 | * | ldlework quit (*.net *.split) |
07:58:59 | * | lain quit (*.net *.split) |
07:58:59 | * | Oddmonger quit (*.net *.split) |
07:59:00 | * | acidx quit (*.net *.split) |
07:59:00 | * | jken quit (*.net *.split) |
07:59:00 | * | Technisha[m] quit (*.net *.split) |
07:59:00 | * | anoj[m] quit (*.net *.split) |
07:59:00 | * | sekao[m] quit (*.net *.split) |
07:59:00 | * | guelosk[m] quit (*.net *.split) |
07:59:00 | * | YovelKey-Cohen[m quit (*.net *.split) |
07:59:00 | * | Zoom[m] quit (*.net *.split) |
07:59:00 | * | stisa quit (*.net *.split) |
07:59:00 | * | m33[m] quit (*.net *.split) |
07:59:00 | * | leorize[m] quit (*.net *.split) |
07:59:00 | * | Avatarfighter[m] quit (*.net *.split) |
07:59:00 | * | reversem3 quit (*.net *.split) |
07:59:01 | * | blackbeard420 quit (*.net *.split) |
07:59:01 | * | EastByte quit (*.net *.split) |
07:59:01 | * | bozaloshtsh quit (*.net *.split) |
07:59:02 | * | xet7 quit (*.net *.split) |
07:59:02 | * | def- quit (*.net *.split) |
07:59:02 | * | fredsted quit (*.net *.split) |
07:59:02 | * | Gustavo6046 quit (*.net *.split) |
07:59:02 | * | mal`` quit (*.net *.split) |
07:59:03 | * | beenz quit (*.net *.split) |
07:59:03 | * | mwbrown quit (*.net *.split) |
07:59:03 | * | Lord_Nightmare quit (*.net *.split) |
07:59:03 | * | so_ quit (*.net *.split) |
07:59:03 | * | shmorgle quit (*.net *.split) |
07:59:03 | * | spiderstew_ quit (*.net *.split) |
07:59:03 | * | jess quit (*.net *.split) |
07:59:04 | * | Onionhammer quit (*.net *.split) |
07:59:04 | * | arecaceae quit (*.net *.split) |
07:59:04 | * | goblinslayer[m] quit (*.net *.split) |
07:59:04 | * | koltrast_ quit (*.net *.split) |
07:59:04 | * | qwr quit (*.net *.split) |
08:02:43 | * | watzon quit (Ping timeout: 260 seconds) |
08:05:56 | * | Araq joined #nim |
08:05:56 | * | fmaruki joined #nim |
08:05:56 | * | Eyess joined #nim |
08:05:56 | * | voidpi joined #nim |
08:05:56 | * | kaliy joined #nim |
08:05:56 | * | so_ joined #nim |
08:05:56 | * | Lord_Nightmare joined #nim |
08:05:56 | * | beenz joined #nim |
08:05:56 | * | mal`` joined #nim |
08:05:56 | * | Gustavo6046 joined #nim |
08:05:56 | * | fredsted joined #nim |
08:05:56 | * | def- joined #nim |
08:05:56 | * | xet7 joined #nim |
08:05:56 | * | dom96 joined #nim |
08:05:56 | * | d10n-work joined #nim |
08:05:56 | * | Northstrider[m] joined #nim |
08:05:56 | * | qwr joined #nim |
08:05:56 | * | koltrast_ joined #nim |
08:05:56 | * | arecaceae joined #nim |
08:05:56 | * | Onionhammer joined #nim |
08:05:56 | * | jess joined #nim |
08:05:56 | * | spiderstew_ joined #nim |
08:05:56 | * | shmorgle joined #nim |
08:05:56 | * | antranigv joined #nim |
08:05:56 | * | ForumUpdaterBot joined #nim |
08:05:56 | * | blueberrypie joined #nim |
08:05:56 | * | MightyJoe joined #nim |
08:05:56 | * | Vladar joined #nim |
08:05:56 | * | Guest53880 joined #nim |
08:05:56 | * | oz joined #nim |
08:05:56 | * | astronavt joined #nim |
08:05:56 | * | sknebel joined #nim |
08:05:56 | * | Ekho joined #nim |
08:05:56 | * | icebattle joined #nim |
08:05:56 | * | zopsi joined #nim |
08:05:56 | * | JStoker joined #nim |
08:05:56 | * | fowl joined #nim |
08:05:56 | * | robertmeta joined #nim |
08:05:56 | * | crem joined #nim |
08:05:56 | * | mids joined #nim |
08:05:56 | * | euantorano joined #nim |
08:05:56 | * | BitPuffin joined #nim |
08:05:56 | * | stefantalpalaru joined #nim |
08:05:56 | * | sacredfrog joined #nim |
08:05:56 | * | threenp joined #nim |
08:05:56 | * | Mister_Magister joined #nim |
08:05:56 | * | cornfeedhobo joined #nim |
08:06:07 | * | BitPuffin quit (Ping timeout: 245 seconds) |
08:06:09 | * | beatmox- joined #nim |
08:06:09 | * | nisstyre joined #nim |
08:06:09 | * | notchris joined #nim |
08:06:09 | * | saem joined #nim |
08:06:09 | * | rayman22201 joined #nim |
08:06:09 | * | raboof joined #nim |
08:06:09 | * | GaveUp joined #nim |
08:06:09 | * | asdflkj joined #nim |
08:06:09 | * | ecs joined #nim |
08:06:09 | * | nickster joined #nim |
08:06:09 | * | npgm joined #nim |
08:06:09 | * | vqrs joined #nim |
08:06:09 | * | grobe0ba joined #nim |
08:06:09 | * | Adeon joined #nim |
08:06:09 | * | mahlon joined #nim |
08:06:09 | * | teiresias joined #nim |
08:06:09 | * | kinkinkijkin joined #nim |
08:06:09 | * | Yardanico joined #nim |
08:06:09 | * | skelett joined #nim |
08:06:09 | * | D_ joined #nim |
08:06:09 | * | giaco__ joined #nim |
08:06:09 | * | pauwel_kwak joined #nim |
08:06:09 | * | conkker joined #nim |
08:06:09 | * | federico3 joined #nim |
08:06:09 | * | Amun_Ra joined #nim |
08:06:09 | * | Q-Master joined #nim |
08:06:09 | * | xace joined #nim |
08:06:09 | * | m4r35n357 joined #nim |
08:06:09 | * | ddevault joined #nim |
08:06:09 | * | PMunch joined #nim |
08:06:09 | * | Jjp137 joined #nim |
08:06:09 | * | Fish-Face joined #nim |
08:06:09 | * | narimiran joined #nim |
08:06:09 | * | clemens3 joined #nim |
08:06:09 | * | johnnynitwits joined #nim |
08:06:09 | * | literal joined #nim |
08:06:09 | * | jxy joined #nim |
08:06:09 | * | deepend joined #nim |
08:06:09 | * | fredrikhr joined #nim |
08:06:09 | * | sixtyten joined #nim |
08:06:09 | * | dgb joined #nim |
08:06:09 | * | kitech1 joined #nim |
08:06:09 | * | blackpawn joined #nim |
08:06:09 | * | blitzworks joined #nim |
08:06:09 | * | madnight joined #nim |
08:06:09 | * | ebb joined #nim |
08:06:09 | * | l1x joined #nim |
08:06:09 | * | ormiret joined #nim |
08:06:09 | * | Cadey joined #nim |
08:06:09 | * | hsh joined #nim |
08:06:09 | * | oprypin joined #nim |
08:06:09 | * | GreaseMonkey joined #nim |
08:06:09 | * | FromGitter joined #nim |
08:06:09 | * | nikki93 joined #nim |
08:06:09 | * | zielmicha__ joined #nim |
08:06:09 | * | Prestige joined #nim |
08:06:09 | * | idxu joined #nim |
08:06:09 | * | hoek joined #nim |
08:06:09 | * | r4vi joined #nim |
08:06:09 | * | d10n joined #nim |
08:06:09 | * | CcxWrk joined #nim |
08:06:09 | * | Cthalupa joined #nim |
08:06:09 | * | qwertfisch joined #nim |
08:06:09 | * | hpyc9 joined #nim |
08:06:09 | * | surma joined #nim |
08:06:09 | * | blackbeard420 joined #nim |
08:06:09 | * | EastByte joined #nim |
08:06:09 | * | bozaloshtsh joined #nim |
08:06:20 | * | fredsted quit (Max SendQ exceeded) |
08:06:21 | * | giaco__ quit (Max SendQ exceeded) |
08:06:21 | * | npgm quit (Ping timeout: 258 seconds) |
08:06:22 | * | raboof quit (Ping timeout: 258 seconds) |
08:06:33 | * | Guest53880 is now known as lain |
08:06:34 | * | vicfred joined #nim |
08:06:34 | * | letto_ joined #nim |
08:06:34 | * | casaca joined #nim |
08:06:34 | * | junland joined #nim |
08:06:34 | * | Kaivo joined #nim |
08:06:34 | * | joast joined #nim |
08:06:44 | * | mwbrown joined #nim |
08:07:09 | * | hoek quit (Ping timeout: 250 seconds) |
08:08:15 | * | motersen joined #nim |
08:08:15 | * | leorize joined #nim |
08:08:25 | * | giaco__ joined #nim |
08:08:57 | * | d10n-work quit (Ping timeout: 252 seconds) |
08:09:26 | * | fredsted joined #nim |
08:09:43 | * | kwilczynski quit (Ping timeout: 260 seconds) |
08:11:47 | * | raboof joined #nim |
08:12:00 | * | kwilczynski joined #nim |
08:12:28 | * | npgm joined #nim |
08:13:57 | * | Oddmonger joined #nim |
08:14:40 | * | hoek joined #nim |
08:15:26 | * | d10n-work joined #nim |
08:15:43 | * | Oddmonger quit (Changing host) |
08:15:43 | * | Oddmonger joined #nim |
08:20:05 | * | npgm quit (Changing host) |
08:20:05 | * | npgm joined #nim |
08:20:05 | * | hoek quit (Changing host) |
08:20:05 | * | hoek joined #nim |
08:20:05 | * | d10n-work quit (Changing host) |
08:20:05 | * | d10n-work joined #nim |
08:29:07 | * | vicfred quit (Quit: Leaving) |
08:32:16 | * | jess quit (Quit: Changing server) |
08:34:05 | * | jess joined #nim |
08:40:43 | * | BitPuffin joined #nim |
08:49:05 | * | ozzz joined #nim |
08:49:05 | * | shodan45 joined #nim |
08:49:05 | * | FromDiscord joined #nim |
08:49:05 | * | revere joined #nim |
08:49:05 | * | ldlework joined #nim |
08:49:05 | * | acidx joined #nim |
08:49:05 | * | jken joined #nim |
08:58:14 | Yardanico | also btw narimiran not everyone has daylight savings, so for some 3pm UTC is different than before :) i mean regarding https://forum.nim-lang.org/t/7760 |
09:07:34 | narimiran | Yardanico: ah |
09:18:14 | FromDiscord | <dom96> Why don't we add a link like: https://time.is/compare/1600_9_Apr_2021_in_Germany π |
09:18:40 | FromDiscord | <dom96> (edit) "https://time.is/compare/1600_9_Apr_2021_in_Germany" => "https://time.is/compare/1700_9_Apr_2021_in_Germany" |
09:21:05 | PMunch | Yeah that'd be a good idea |
09:21:23 | FromDiscord | <konsumlamm> why do i discover another nim bug every other day ;-; |
09:21:39 | * | Vladar quit (Remote host closed the connection) |
09:21:53 | PMunch | What did you do now? |
09:21:53 | FromDiscord | <ElegantBeef> You're using it wrong |
09:22:38 | FromDiscord | <konsumlamm> i tried making an anonymous iterator in a template |
09:22:54 | FromDiscord | <konsumlamm> In reply to @ElegantBeef "You're using it wrong": that's how we're calling internal errors now, eh |
09:22:58 | Prestige | source? |
09:23:23 | FromDiscord | <ElegantBeef> In reply to @konsumlamm "that's how we're calling": I wouldnt consider me "we" i'm just a numpty with a hammer |
09:24:23 | * | unclechu joined #nim |
09:24:23 | * | reversem3 joined #nim |
09:24:24 | * | watzon joined #nim |
09:24:24 | * | j-james[m] joined #nim |
09:24:24 | * | goblinslayer[m] joined #nim |
09:24:24 | * | stisa joined #nim |
09:24:24 | * | m33[m] joined #nim |
09:24:24 | * | liblq-dev joined #nim |
09:24:24 | * | fbpyr[m] joined #nim |
09:24:24 | * | DannyHpy[m] joined #nim |
09:24:24 | * | Avatarfighter[m] joined #nim |
09:24:25 | * | Avahe[m] joined #nim |
09:24:25 | * | MTRNord joined #nim |
09:24:25 | * | antholop[m] joined #nim |
09:24:25 | * | jfondren[m] joined #nim |
09:24:25 | * | lnxw37d4 joined #nim |
09:24:25 | * | GitterIntegratio joined #nim |
09:24:25 | * | Benjamin[m]2 joined #nim |
09:24:25 | * | leorize[m] joined #nim |
09:24:25 | * | k0mpjut0r joined #nim |
09:24:29 | * | anoj[m] joined #nim |
09:24:29 | * | FlammableDuck[m] joined #nim |
09:24:29 | * | solitudesf joined #nim |
09:24:30 | * | Jeff[m]2 joined #nim |
09:24:30 | * | Zoom[m] joined #nim |
09:24:30 | * | Clonkk[m] joined #nim |
09:24:31 | * | YovelKey-Cohen[m joined #nim |
09:24:31 | * | ee7[m] joined #nim |
09:24:31 | * | phatnael[m] joined #nim |
09:24:31 | * | Technisha[m] joined #nim |
09:24:31 | * | Simon[m]5 joined #nim |
09:24:31 | * | guelosk[m] joined #nim |
09:24:31 | * | sekao[m] joined #nim |
09:24:31 | * | ShalokShalom[m] joined #nim |
09:26:29 | * | Vladar joined #nim |
09:27:36 | FromDiscord | <konsumlamm> https://play.nim-lang.org/#ix=2Vtp |
09:27:59 | FromDiscord | <Rika> Is that why thereβs all these horribly placed screws on these planks |
09:28:03 | FromDiscord | <Rika> Was that you |
09:28:24 | FromDiscord | <ElegantBeef> Hey when the only tool you have is a hammer everything you cant put in looks like a screw |
09:28:33 | FromDiscord | <Rika> Nail |
09:28:38 | FromDiscord | <Rika> You donβt hammer in screws |
09:29:15 | FromDiscord | <ElegantBeef> Oh |
09:29:30 | FromDiscord | <ElegantBeef> What do you know about spaceship design?! |
09:32:46 | * | tane joined #nim |
09:34:00 | FromDiscord | <konsumlamm> Nim just feels very immature when i find bugs all the time... |
09:38:24 | Prestige | was that a bug? |
09:40:27 | FromDiscord | <Varriount> In reply to @konsumlamm "Nim just feels very": Have they been reported? |
09:42:35 | narimiran | "Why don't we add a link like...." --> everybody can post a comment in that thread ;) |
09:43:18 | narimiran | but for the next time, i might add a link like that in the announcement, yes |
09:45:53 | PMunch | Hmm I'm trying to bisect something in the Nim repo but it keeps failing with the weirdest issues.. |
09:46:42 | PMunch | Stuff like this: http://ix.io/2Vtt |
09:48:00 | PMunch | But then building it right after works just fine.. |
09:48:12 | Prestige | PMunch: paste removed (malware) (please dont do this) |
09:48:29 | PMunch | Huh? |
09:48:33 | Prestige | look at the paste |
09:48:41 | PMunch | Yeah, looks fine to me.. |
09:49:10 | Prestige | Weird |
09:49:18 | Prestige | That's the message I got when I viewed it |
09:49:37 | PMunch | Hmm, weird |
09:49:47 | PMunch | http://ix.io/2Vtv try that one |
09:49:55 | Prestige | Cool that works |
09:49:58 | PMunch | It's the two runs bad and good back to back |
09:51:32 | ForumUpdaterBot | New thread by Jhgalino: Parsecsv strangeness, see https://forum.nim-lang.org/t/7766 |
09:52:51 | FromDiscord | <konsumlamm> In reply to @Varriount "Have they been reported?": some of them |
09:53:19 | FromDiscord | <konsumlamm> In reply to @Prestige "was that a bug?": are you legit asking wether an internal error is a bug? |
09:53:43 | Prestige | I'm just curious if the code you wrote should be valid |
09:53:56 | FromDiscord | <Rika> I donβt see why not |
09:54:30 | FromDiscord | <konsumlamm> idk if it should, but that doesn't change the fact rhat it's a bug |
10:00:06 | PMunch | Yeah a compiler crash is always a bug |
10:04:32 | ozzz | Solved issue with my code. in 1.4.4 something changed in GC behavior, I don't really know yet what exactly |
10:06:17 | ozzz | what you think, can --gc:arc result with more responsive "fast" results for webapp server? |
10:07:07 | ozzz | or it's all about latency tolerances for realtime? now I have --gc:boehm turned on |
10:10:46 | * | m4r35n357 quit (Ping timeout: 240 seconds) |
10:12:21 | * | m4r35n357 joined #nim |
10:14:53 | * | leorize quit (Remote host closed the connection) |
10:15:20 | * | leorize joined #nim |
10:23:43 | * | krux02 joined #nim |
10:35:51 | * | narimiran quit (Ping timeout: 268 seconds) |
10:53:54 | PMunch | @ozzz, I believe ARC should be good for that |
10:54:07 | PMunch | Why are you using boehm? |
10:59:03 | PMunch | Should I report this on GitHub? https://forum.nim-lang.org/t/7329#49352 |
11:00:08 | ozzz | PMunch, smth wrong in my code, I got segfaults if GC not supports shared heap |
11:00:20 | PMunch | Ah right |
11:01:21 | ozzz | I suppose the reason is that I pass pointer to the C lib functions |
11:02:08 | ozzz | with enabled arc I get segfaults too |
11:02:14 | PMunch | A pointer to Nim managed memory? |
11:02:39 | ozzz | for example to the threadvar |
11:04:15 | * | lritter joined #nim |
11:41:13 | * | waleee-cl joined #nim |
12:05:31 | * | rockcavera joined #nim |
12:11:11 | * | wasted_youth2 joined #nim |
12:11:49 | FromDiscord | <Mr Axilus> Do any of the popular physics simulation libraries (bullet, etc.) have Nim bindings yet? |
12:13:20 | FromDiscord | <zetashift> https://github.com/matkuki/chipmunk7_demos/ chipmunk maybe? |
12:15:01 | FromDiscord | <Mr Axilus> That could work, any 3D ones? |
12:17:51 | federico3 | https://itnext.io/modern-storage-is-plenty-fast-it-is-the-apis-that-are-bad-6a68319fbc1a |
12:25:22 | PMunch | fowl appears to have wrapped Bullet: https://github.com/fowlmouth/nimlibs/blob/master/fowltek/bullet.nim |
12:25:26 | PMunch | Although its really old |
12:29:45 | FromDiscord | <clyybber> In reply to @mraxilus "That could work, any": I have ported libccd which is used by bullet; https://github.com/Clyybber/nimccd It handles collision of convex objects, you can build physics around that |
12:46:18 | FromDiscord | <inv> How is it possible to add grp: static in the line (not in comment π ) ? https://github.com/inv2004/streamfix/blob/main/src/streamfix.nim#L27 |
12:46:47 | FromDiscord | <inv> I would also like try to replace GroupSet with GroupDesc, and it does not work also |
12:48:32 | FromDiscord | <inv> sent a code paste, see https://play.nim-lang.org/#ix=2VuL |
12:49:32 | * | narimiran joined #nim |
12:50:03 | ForumUpdaterBot | New thread by FabienPRI: String concat I don't understand, see https://forum.nim-lang.org/t/7767 |
12:51:32 | FromDiscord | <inv> But it compiles in playground. WTF |
12:56:53 | FromDiscord | <inv> https://play.nim-lang.org/#ix=2VuQ |
12:57:43 | PMunch | @inv, check the Nim version? |
12:57:49 | PMunch | Windows vs. Linux? |
12:58:31 | PMunch | For me it doesn't compile on the playground though.. |
12:59:29 | FromDiscord | <inv> I think it was because there was not main |
13:02:20 | FromDiscord | <inv> another minimal version: https://play.nim-lang.org/#ix=2VuV |
13:03:09 | PMunch | Unable to load ix paste, file too large, or download is too slow |
13:03:34 | FromDiscord | <inv> hm, just 162 lines |
13:03:40 | PMunch | When I load it on the playground.. |
13:03:47 | PMunch | Maybe someone is hitting it hard with something |
13:07:14 | FromDiscord | <inv> Yep, something is not so good with playground |
13:08:28 | PMunch | I'm doing maintenance on it right now |
13:08:39 | FromDiscord | <inv> (edit) "Yep, something is not so good with ... playground" added "the" |
13:09:43 | * | Gustavo6046 quit (Quit: ZNC 1.8.2 - https://znc.in) |
13:10:07 | * | Gustavo6046 joined #nim |
13:13:26 | FromDiscord | <inv> where is --asm output ? |
13:13:38 | PMunch | In nimcache I guess? |
13:16:57 | FromDiscord | <inv> Found it. thank you |
13:18:33 | FromDiscord | <inv> https://godbolt.org/z/brGbfs94f |
13:19:23 | FromDiscord | <inv> I am trying to optimize it |
13:31:52 | PMunch | Seems like the playground had accumulated images again |
13:32:02 | PMunch | I'm deleting them now, but that takes ages |
13:40:00 | * | letto_ is now known as letto |
13:50:40 | FromDiscord | <Mr Axilus> In reply to @Clyybber "I have ported libccd": Cool, I take it that's a lot more involved, any good learning resources you know of? |
13:57:29 | Clonkk[m] | Is it possible to use ``borrow`` with a generic distinct type ? |
14:01:22 | leorize[m] | technically yes, practically no since the compiler is broken in this aspect |
14:01:48 | Clonkk[m] | I guess it explains why my code doesn't compile then π |
14:01:58 | leorize[m] | I already filed a bug for this on github |
14:02:14 | leorize[m] | there are no walkarounds atm :( |
14:02:33 | Clonkk[m] | Well there is: writing proc manually ^^ |
14:03:32 | Clonkk[m] | But yeah, it's a bit annoying |
14:04:21 | leorize[m] | https://github.com/nim-lang/Nim/issues/17322 <- it's sorta impossible for my case |
14:10:55 | * | m4r35n357 quit (Ping timeout: 252 seconds) |
14:12:12 | * | m4r35n357 joined #nim |
14:28:20 | FromDiscord | <Yardanico> ~30 minutes before the meeting~ |
14:32:46 | * | haxscramper joined #nim |
14:35:05 | Clonkk[m] | Does Nim supports varargs as middle argument position ? I'm talking ``proc a[T: SomeNumber](x: X, varargs[int], T: val)`` |
14:36:45 | FromDiscord | <haxscramper> yes - `proc varg(a: varargs[int], b: float) = discard` |
14:37:11 | * | xet7 quit (Ping timeout: 240 seconds) |
14:37:23 | Clonkk[m] | Even if the last argument is an int as well ? |
14:37:29 | FromDiscord | <haxscramper> `proc varg(a: varargs[int], b: int) = echo a, "::", b` |
14:37:29 | Clonkk[m] | (since my last argument is a generic) |
14:37:33 | Clonkk[m] | Nice ! |
14:37:34 | Clonkk[m] | Thanks |
14:37:43 | FromDiscord | <haxscramper> You can always try it for yourself on playground |
14:38:26 | FromDiscord | <haxscramper> Though I honestly thought it wouldn't work with `varargs[T], T` case |
14:38:28 | Clonkk[m] | Yeah I know I should, but I'm lazy π |
14:50:18 | PMunch | @haxscramper, can't do it on the playground right now :P |
14:52:30 | FromDiscord | <haxscramper> https://play.nim-lang.org/#ix=2VvD |
15:03:33 | narimiran | https://meet.jit.si/NimDevMeet - starting now! |
15:47:10 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
15:52:45 | ForumUpdaterBot | New thread by Miran: Release candidates for 1.4.6 and 1.2.12, see https://forum.nim-lang.org/t/7768 |
16:02:01 | * | fredrikhr quit (Ping timeout: 252 seconds) |
16:21:06 | * | sixtyten quit (Quit: Leaving) |
16:22:52 | * | waleee-cl joined #nim |
16:29:24 | FromDiscord | <dom96> PMunch: I might be able to join later to continue the discussion if you'd like, or we can chat here π |
16:42:11 | FromDiscord | <Chem> sent a code paste, see https://paste.rs/RgF |
16:43:09 | FromDiscord | <Chem> (edit) "https://play.nim-lang.org/#ix=2Vw7" => "https://play.nim-lang.org/#ix=2Vw6" |
16:48:51 | ForumUpdaterBot | New thread by Bung: Chronos problem, my client-server test randomly fails on windows and macOS, see https://forum.nim-lang.org/t/7769 |
16:49:33 | * | leorize quit (Ping timeout: 240 seconds) |
16:49:58 | * | leorize joined #nim |
16:50:29 | FromDiscord | <Clonkk> In reply to @Chem "What does this mean,": https://nim-lang.org/docs/manual.html#threads-gc-safety |
17:06:16 | FromDiscord | <theSherwood> In reply to @Yardanico "~30 minutes before the": Are any recordings made of these meetings? I'm not able to meet synchronously, but it would be great to hear the latest. |
17:06:29 | FromDiscord | <Yardanico> of course, I've been recording them since the first meeting :) |
17:06:38 | FromDiscord | <Yardanico> the first one is already live on the nim youtube channel |
17:06:49 | FromDiscord | <Yardanico> not sure about the second one, I'm not the one uploading them to there |
17:07:11 | FromDiscord | <Yardanico> https://www.youtube.com/watch?v=xZQ-Z98q5r4 |
17:07:16 | FromDiscord | <theSherwood> I had no idea. Fantastic news! Thanks |
17:14:57 | ForumUpdaterBot | New thread by Taufeeqmowzer01: Issue with Nim Manual on Windows Chrome, see https://forum.nim-lang.org/t/7770 |
17:16:52 | * | PMunch quit (Quit: leaving) |
17:18:21 | FromDiscord | <Chem> In reply to @SneakyBaguette "https://nim-lang.org/docs/manual.html#threads-gc-sa": I had read that but maybe I'm just a bit dull, I wasn't sure I entirely understood it |
17:18:44 | FromDiscord | <Chem> It's not a problem, it's just saying that the call isn't GC safe, but that's not an issue because of Nim's GC right/ |
17:18:46 | FromDiscord | <Chem> (edit) "right/" => "right>" |
17:18:47 | FromDiscord | <Chem> (edit) "right>" => "right?" |
17:22:30 | * | leorize quit (Remote host closed the connection) |
17:22:57 | * | leorize joined #nim |
17:27:58 | FromDiscord | <Clonkk> In reply to @Chem "I had read that": Basically gcSafe if whether or not your proc interact with memory that is not localized in the heap of your thread |
17:28:12 | FromDiscord | <Clonkk> This is different if oyu use --gc:arc because --gc:arc does not use head per thread |
17:29:17 | FromDiscord | <Chem> Ahh I see, ty = D |
17:29:38 | FromDiscord | <Yardanico> In reply to @SneakyBaguette "This is different if": although the compiler doesn't disable gc safety warnings with arc/orc, since they're still valid in some cases :) |
17:29:45 | FromDiscord | <Clonkk> (edit) "head" => "heap" |
17:46:54 | FromDiscord | <hamidb80> i'm trying to implement `pop` with rangesβ΅but i got error in delete proc https://media.discordapp.net/attachments/371759389889003532/830136700520235029/unknown.png |
17:47:22 | FromDiscord | <Yardanico> what's the error? |
17:48:02 | FromDiscord | <hamidb80> sent a code paste, see https://play.nim-lang.org/#ix=2Vwj |
17:48:27 | FromDiscord | <Yardanico> In reply to @hamidb80 "it does work for": well as the error says there's no delete proc which takes a HSlice at all |
17:54:13 | * | blackpawn quit (Ping timeout: 252 seconds) |
17:56:52 | * | vicfred joined #nim |
17:57:23 | FromDiscord | <hamidb80> sent a code paste, see https://play.nim-lang.org/#ix= |
17:57:43 | FromDiscord | <hamidb80> (edit) "https://play.nim-lang.org/#ix=" => "https://play.nim-lang.org/#ix=2Vwo" |
17:57:52 | FromDiscord | <hamidb80> (edit) |
17:58:02 | FromDiscord | <hamidb80> π€ |
17:59:26 | FromDiscord | <hamidb80> it hangs for ever π |
18:18:09 | FromDiscord | <DavidKunz> Hi, just wanted to tell you that the nim playground seems to be down: https://play.nim-lang.org/ |
18:19:49 | FromDiscord | <DavidKunz> never mind, seems to work again! |
18:20:08 | FromDiscord | <exelotl> oh yeah it's a bit temperamental sometimes :( |
18:21:16 | FromDiscord | <exelotl> Uuh, so I have a custom assignment operator https://media.discordapp.net/attachments/371759389889003532/830145348470439987/Screenshot_from_2021-04-09_19-20-56.png |
18:23:11 | FromDiscord | <exelotl> sent a code paste, see https://paste.rs/GpQ |
18:23:52 | FromDiscord | <exelotl> instead, it calls this "sink" version of the assignment operator https://media.discordapp.net/attachments/371759389889003532/830146002900090980/Screenshot_from_2021-04-09_19-23-24.png |
18:23:57 | FromDiscord | <haxscramper> IIRC dup works for procedure calls, and uses ast matching to determine what should be duplicated |
18:24:12 | FromDiscord | <haxscramper> So I'm not sure if dup even triggers here |
18:24:41 | FromDiscord | <haxscramper> I might be wrong though |
18:24:47 | * | hyiltiz quit (Ping timeout: 260 seconds) |
18:25:22 | * | xet7 joined #nim |
18:25:31 | FromDiscord | <exelotl> I don't think dup is the culprit, just the fact that I assigned a short-lived value so it was able to infer a sink |
18:27:46 | * | hyiltiz joined #nim |
18:45:26 | FromDiscord | <hamidb80> sent a code paste, see https://play.nim-lang.org/#ix=2VwG |
18:45:39 | FromDiscord | <hamidb80> any idea? |
18:46:32 | FromDiscord | <exelotl> weird π€ |
18:46:58 | FromDiscord | <hamidb80> (edit) "https://paste.rs/jhN" => "https://paste.rs/jcM" |
18:48:41 | FromDiscord | <haxscramper> You can explicitly use `'i64` on first element. |
18:49:03 | FromDiscord | <haxscramper> I think this error is due to first value being in range of `int32` so it gets parsed like this |
18:49:17 | FromDiscord | <haxscramper> https://github.com/nim-lang/RFCs/issues/364 |
18:50:39 | FromDiscord | <hamidb80> sent a code paste, see https://play.nim-lang.org/#ix=2VwM |
18:51:33 | FromDiscord | <hamidb80> In reply to @haxscramper "I think this error": wow |
18:51:42 | * | beshr joined #nim |
18:51:54 | FromDiscord | <haxscramper> In reply to @hamidb80 "this code also doesn't": `0x3c6ef372'int64` |
18:51:56 | FromDiscord | <haxscramper> (edit) "`0x3c6ef372'int64`" => "`0x3c6ef372'i64`" |
18:52:26 | FromDiscord | <haxscramper> adding type constraint to variable does not make the rhs literal have different type |
18:52:42 | FromDiscord | <haxscramper> Unless it is a primitive like 12 |
19:16:41 | FromDiscord | <Chem> Does overriding `compileTmpl` in `config.nims` or compile command not work π€ |
19:17:07 | FromDiscord | <Chem> sent a code paste, see https://play.nim-lang.org/#ix=2VwQ |
19:17:30 | FromDiscord | <Chem> the `cc` doesn't actually get added to the compile template, it uses the base one, though the other settings seem to work fine |
19:17:54 | FromDiscord | <Chem> https://github.com/nim-lang/Nim/blob/8ccde68f132be4dba330eb6ec50f4679e564efac/compiler/extccomp.nim#L75 |
19:22:18 | FromDiscord | <Chem> sent a code paste, see https://play.nim-lang.org/#ix=2VwS |
19:22:38 | FromDiscord | <Chem> even if I change the `compileTmpl` to be like `monkey banana` it doesn't actually appear to do anything ;swe |
19:22:41 | FromDiscord | <Chem> (edit) ";swe" => "π
" |
19:23:11 | * | blackpawn joined #nim |
19:23:49 | FromDiscord | <Yardanico> to fix that I just create a simple script wrapper which has no spaces in the name |
19:24:36 | FromDiscord | <Chem> Ah, that's a bit hacky but that's probably the easiest solution. I filed an issue asking if there could be some kind of `--verbatim` flag for the compiler binary so it doesn't break on Windows |
19:24:48 | FromDiscord | <Chem> or if overriding `compileTmpl` would work, that would solve everything |
19:27:45 | FromDiscord | <Chem> In reply to @Yardanico "to fix that I": Hey, how would this work on Windows, since it's going to invoke an `.exe`? |
19:28:12 | FromDiscord | <Chem> I was thinking I would just make `./zigcc` that's a shell script but on Windows don't think you can do thsi |
19:28:14 | FromDiscord | <Chem> (edit) "thsi" => "this" |
19:28:24 | FromDiscord | <AmjadHD> sent a code paste, see https://play.nim-lang.org/#ix=2VwU |
19:28:30 | FromDiscord | <AmjadHD> How do I fix it ? |
19:28:33 | FromDiscord | <Chem> I could make a Zig command line application that literally just calls `zig cc $@` π ? |
19:28:40 | FromDiscord | <Chem> (edit) "application" => "binary `.exe`" |
19:31:15 | FromDiscord | <lamersc> Is there any way in nim to force case sensitive? |
19:31:31 | FromDiscord | <Chem> In reply to @lamersc "Is there any way": No, I'm almost 100% certain that's in the Nim github WIKI FAEW |
19:31:33 | FromDiscord | <Chem> (edit) "FAEW" => "FAQ" |
19:32:01 | FromDiscord | <Chem> https://github.com/nim-lang/Nim/wiki/Unofficial-FAQ#why-is-it-caseunderscore-insensitive |
19:33:00 | FromDiscord | <ElegantBeef> I do know the compiler complains if you dont type symbols exactly, so could look at that π |
19:33:49 | FromDiscord | <ElegantBeef> Ponders if `--styleCheck:error` is what does that |
19:34:12 | * | Gustavo6046 quit (Ping timeout: 265 seconds) |
19:37:48 | FromDiscord | <Chem> Ah that's a smart idea -- yeah you can probably use the NEP1 style guide check at compile time to fake case-sensitivity |
19:37:50 | FromDiscord | <Chem> do that |
19:39:44 | * | Gustavo6046 joined #nim |
19:40:49 | FromDiscord | <Hi02Hi> in the unofficial faq, what is up withβ΅"However, if you insist on using tabs in your code, putting this at the top of your code will change the tabs into spaces when compiling `#? replace(sub = "\t", by = " ")`" |
19:42:11 | FromDiscord | <Chem> Compile "code filter" AFAIK |
19:42:30 | FromDiscord | <Chem> https://nim-lang.org/docs/filters.html |
19:45:30 | ForumUpdaterBot | New thread by Thewilliamc15: Headless Nim Executable App Option?, see https://forum.nim-lang.org/t/7771 |
19:49:15 | * | shmorgle quit (Quit: [TalkSoup] via NEXTSPACE) |
19:59:51 | * | ozzz quit (Ping timeout: 260 seconds) |
20:00:33 | ForumUpdaterBot | New post on r/nim by dullbananas: For WebAssembly, is Nim noticably slower than Rust?, see https://reddit.com/r/nim/comments/mnpc3v/for_webassembly_is_nim_noticably_slower_than_rust/ |
20:01:01 | * | narimiran quit (Ping timeout: 260 seconds) |
20:01:42 | FromDiscord | <krisppurg> In Nim what would be equal to the same as `b'\x00\x00\xff\xff'` (python)? |
20:02:42 | FromDiscord | <haxscramper> !eval echo @"\x00\xFF" |
20:02:48 | NimBot | @['\x00', '\xFF'] |
20:02:58 | FromDiscord | <haxscramper> Nim strings are byte sequences |
20:03:19 | FromDiscord | <haxscramper> Or you can create an array, or a sequence |
20:03:31 | FromDiscord | <krisppurg> alright |
20:13:59 | * | beshr quit (Remote host closed the connection) |
20:15:45 | FromDiscord | <clyybber> In reply to @mraxilus "Cool, I take it": I would try looking at the source codes/solvers of bullet, react or any other physics engine you can think of |
20:15:56 | FromDiscord | <clyybber> (edit) "think" => "know" |
20:21:00 | FromDiscord | <ElegantBeef> In reply to @AmjadHD "I want to make": What do you expect it to print values out of order? |
20:21:49 | * | lf_ joined #nim |
20:38:41 | FromDiscord | <mrotaru> my nim program uses a native lib and it gives me back a `ptr`; how can echo the contents of that ptr ? |
20:40:40 | FromDiscord | <AmjadHD> sent a code paste, see https://play.nim-lang.org/#ix=2Vxn |
20:41:12 | FromDiscord | <haxscramper> In reply to @mrotaru "my nim program uses": You can do `echo yourPtr[]` to print dereferenced version of the pointer |
20:41:28 | FromDiscord | <haxscramper> Alternatively you might try `repr yourPtr` |
20:43:46 | FromDiscord | <haxscramper> `[]` is a dereference operator |
20:44:06 | FromDiscord | <mrotaru> Actually even `echo foo` works, but not for all fields. Here is what i actually get: `(path: "/home/mihai/code/fstest/foo/4913", time_t: 1618000959, flags: ..., flags_num: 1)` |
20:44:20 | FromDiscord | <haxscramper> Alternatively, if type pointed to has a complex structure you can define `$` operator for your type |
20:44:25 | FromDiscord | <mrotaru> So `flags` is `...` ? |
20:44:28 | FromDiscord | <haxscramper> `flags:` is a pointer/ref? |
20:44:50 | FromDiscord | <mrotaru> ` fsw_event_flag {.size: sizeof(cint).} = enum` |
20:45:36 | FromDiscord | <mrotaru> ` flags: ptr fsw_event_flag` |
20:46:21 | FromDiscord | <haxscramper> Yes, default string conversion operator does no traverse pointers |
20:46:53 | FromDiscord | <haxscramper> Because it can create duplicate or even cyclic structures in memory and it is not entirely clear how to print them in general case |
20:47:12 | FromDiscord | <mrotaru> That makes sense. So i have to deref manually or smth ? |
20:48:19 | FromDiscord | <haxscramper> You need to implement your own `$` operator. You might do this for `ptr fsw_event_flag`, but I'm not sure if it would work (i.e. you might need to imeplement `$` for `fsw_cevent` type) |
20:49:33 | FromDiscord | <mrotaru> Hmm, just tried ` echo event.flags[]` and it does indeed give me the pretty-printed enum value - and i don't see `$ |
20:49:42 | FromDiscord | <mrotaru> (edit) "`$" => "`$` implemented for it" |
20:49:50 | FromDiscord | <haxscramper> https://play.nim-lang.org/#ix=2Vxr |
20:50:13 | FromDiscord | <haxscramper> In reply to @mrotaru "Hmm, just tried `": All default types have `$` automatically implemented |
20:50:31 | FromDiscord | <haxscramper> Or rather default implementation of the `$` is generic and works for almost anything |
20:51:08 | FromDiscord | <haxscramper> Except when you have `ptr`/`ref` fields - in this case `...` is placed instead |
20:51:22 | FromDiscord | <mrotaru> Got it, cheers ! |
20:51:36 | FromDiscord | <haxscramper> https://github.com/nim-lang/Nim/blob/version-1-4/lib/system/dollars.nim#L123 |
20:52:15 | FromDiscord | <haxscramper> Actually I was wrong - `...` is placed when `$` does not work for a type |
20:52:46 | FromDiscord | <haxscramper> And there is no `$` implemented for pointer types so that's why it does not print events |
20:53:12 | FromDiscord | <haxscramper> The effect is still the same but the reason is slightly different |
20:53:48 | FromDiscord | <mrotaru> What does `compiles` mean here: `when compiles($value):` ? |
20:54:49 | FromDiscord | <haxscramper> literally check is code complies |
20:55:09 | FromDiscord | <haxscramper> when $value compiles `compiles` evaluates to true, otherwise it is false |
20:55:15 | FromDiscord | <haxscramper> (edit) "$value" => "`$value`" |
20:55:28 | FromDiscord | <haxscramper> !eval compiles(1 + "123") |
20:55:32 | FromDiscord | <haxscramper> !eval 1 + "123" |
20:55:33 | NimBot | Compile failed: /usercode/in.nim(1, 9) Error: expression 'false' is of type 'bool' and has to be used (or discarded) |
20:55:35 | NimBot | Compile failed: /usercode/in.nim(1, 3) Error: type mismatch: got <int literal(1), string> |
20:55:56 | FromDiscord | <mrotaru> zealous bots π |
20:56:01 | FromDiscord | <haxscramper> !eval echo compiles(1 + "123") |
20:56:05 | NimBot | false |
20:57:15 | FromDiscord | <mrotaru> this `!eval` thingie is a discord plugin or something ? Or is it part of Nim ? |
20:58:16 | FromDiscord | <haxscramper> it is an IRC bot written in nim https://github.com/nim-lang/nimbot |
21:09:35 | FromDiscord | <ElegantBeef> In reply to @AmjadHD "it's running synchronously, i": the error is due to the runforever, dont think it's needed |
21:13:56 | FromDiscord | <j-james> Does a more functional replacement for `nim secret` exist? |
21:14:11 | FromDiscord | <ElegantBeef> `inim` |
21:14:38 | FromDiscord | <krisppurg> sent a code paste, see https://paste.rs/m7m |
21:16:26 | FromDiscord | <krisppurg> (edit) "https://play.nim-lang.org/#ix=2VxI" => "https://paste.rs/F39" |
21:16:32 | FromDiscord | <j-james> Ah, thank you |
21:16:42 | FromDiscord | <j-james> I had heard of something but didn't know where to find it |
21:17:36 | * | haxscramper quit (Remote host closed the connection) |
21:22:13 | FromDiscord | <ElegantBeef> @AmjadHD well i dont use async much but this seems to hit the goal you wanted https://play.nim-lang.org/#ix=2VxN |
21:22:21 | FromDiscord | <ElegantBeef> Someone that knows better might have smarter solution |
21:34:24 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
21:36:34 | * | Lord_Nightmare joined #nim |
21:37:27 | * | Vladar quit (Quit: Leaving) |
21:43:14 | * | beshr joined #nim |
21:46:14 | * | lritter quit (Quit: Leaving) |
21:52:45 | FromDiscord | <dom96> huh, we've reached a point where GitHub just cuts off our packages.json file https://github.com/nim-lang/packages/blob/master/packages.json |
21:52:50 | FromDiscord | <dom96> confused the hell out of me |
21:53:43 | FromDiscord | <Avatarfighter> if you look at the raw file it's good |
21:53:58 | ForumUpdaterBot | New Nimble package! aur - A client for the Arch Linux User Repository (AUR), see https://github.com/hnicke/aur.nim |
21:55:22 | FromDiscord | <dom96> also I figured out why GitHub was still showing Travis |
21:55:37 | FromDiscord | <dom96> The branch protection rules had a Travis entry |
21:58:16 | * | wastedyouth3 joined #nim |
22:01:54 | * | wastedyouth3 quit (Client Quit) |
22:02:39 | * | wasted_youth2 quit (Quit: Leaving) |
22:28:27 | FromDiscord | <exelotl> sent a code paste, see https://play.nim-lang.org/#ix=2Vy9 |
22:30:20 | FromDiscord | <exelotl> template that returns an array, but the length of the array isn't known until after the template has been expanded |
22:31:26 | * | lf_ quit (Quit: lf_) |
22:58:49 | FromDiscord | <ElegantBeef> What's the issue? |
23:02:00 | FromDiscord | <exelotl> sent a code paste, see https://play.nim-lang.org/#ix=2Vyx |
23:02:43 | FromDiscord | <ElegantBeef> https://play.nim-lang.org/#ix=2Vyz |
23:02:53 | FromDiscord | <ElegantBeef> If you cache that static block into a const you can return the data |
23:04:49 | FromDiscord | <ElegantBeef> Oh turns out that's not even needed π |
23:04:59 | * | tiorock joined #nim |
23:04:59 | * | tiorock quit (Changing host) |
23:04:59 | * | tiorock joined #nim |
23:04:59 | * | rockcavera is now known as Guest30222 |
23:04:59 | * | Guest30222 quit (Killed (verne.freenode.net (Nickname regained by services))) |
23:04:59 | * | tiorock is now known as rockcavera |
23:05:31 | FromDiscord | <ElegantBeef> Wait it is, ugh ran code in playground π |
23:07:43 | * | tane quit (Quit: Leaving) |
23:07:59 | * | NimBot joined #nim |
23:08:43 | FromDiscord | <ElegantBeef> Dont know if what i suggested double copies the data, it might |
23:08:57 | FromDiscord | <exelotl> ah that's perfect though, thanks |
23:09:25 | FromDiscord | <exelotl> this is satisfying lolβ΅https://play.nim-lang.org/#ix=2VyB |
23:11:06 | FromDiscord | <ElegantBeef> Yea especially since it's not casting |
23:12:32 | FromDiscord | <exelotl> but can't char -> byte overflow? |
23:14:47 | FromDiscord | <exelotl> or rather, underflow |
23:15:11 | FromDiscord | <exelotl> or is a conversion to any unsigned type unchecked, in addition to operations on unsigned types being unchecked |
23:15:55 | FromDiscord | <ElegantBeef> i mean a char is a byte |
23:16:20 | FromDiscord | <exelotl> are they not signed or is that just a C thing? |
23:16:24 | FromDiscord | <ElegantBeef> they're both 0-255 values |
23:16:43 | FromDiscord | <ElegantBeef> That's just a C thing afaik |
23:18:25 | FromDiscord | <carpal> In reply to @haxscramper "!eval echo compiles(1 +": lol |
23:18:53 | FromDiscord | <carpal> what's the purpose of this macro? |
23:24:12 | FromDiscord | <ElegantBeef> Exposing code when there is some type of compilation dependant logic |
23:24:39 | FromDiscord | <ElegantBeef> `when compiles(1 + "123"):` let's you assume that you have `int + string` so you could do something with it |
23:25:00 | * | fredrikhr joined #nim |
23:50:34 | * | beshr quit (Remote host closed the connection) |