00:01:55 | * | kenran joined #nim |
00:06:14 | * | endragor quit (Ping timeout: 256 seconds) |
00:06:35 | * | kenran quit (Ping timeout: 240 seconds) |
00:08:16 | FromDiscord | <Hearthstone> Ooof |
00:08:38 | FromDiscord | <Hearthstone> Does anyone know any up-to-date Raylib bindings for nim? |
00:08:49 | FromDiscord | <Hearthstone> !repo raylib |
00:08:49 | disbot | https://github.com/Skrylar/raylib-nim -- 9raylib-nim: 11Raylib bindings for Nim. 15 7⭐ 2🍴 7& 6 more... |
00:08:54 | FromDiscord | <Hearthstone> Hm |
00:09:01 | FromDiscord | <Hearthstone> Not up-to-date though- |
00:09:11 | FromDiscord | <Clyybber> theres a website that wraps them |
00:09:13 | FromDiscord | <Hearthstone> Preferably the ones that have been updated |
00:09:16 | FromDiscord | <Hearthstone> Really? |
00:09:18 | disruptek | !requires raylib |
00:09:19 | disbot | raylib: 11irskep[aylibtest,3raynim], 11define-private-public/3raylib-Nim, 11MajorHard/3nimraylib, 11oswjk/3nimraylib, 11tomc1998/3nim-raylib 76 total |
00:09:23 | FromDiscord | <Clyybber> https://github.com/Guevara-chan/Raylib-Forever |
00:09:45 | FromDiscord | <Hearthstone> Oh thanks! |
00:17:09 | ForumUpdaterBot | New thread by Alexeypetrushin: Can't convert time series to / from JSON, see https://forum.nim-lang.org/t/6737 |
00:21:16 | FromDiscord | <Hearthstone> Is there a hjson lib in Nim?- |
00:21:21 | FromDiscord | <Hearthstone> !repo hjson |
00:21:23 | disbot | https://github.com/hjson/hjson -- 9hjson: 11Hjson, a user interface for JSON 15 2044⭐ 46🍴 7& 29 more... |
00:21:30 | FromDiscord | <Hearthstone> Hm- |
00:22:25 | FromDiscord | <Hearthstone> Can't find it there |
00:31:17 | FromDiscord | <Anuke> ~~I was considering writing an hjson library, never really got around to doing it~~ |
00:34:44 | shashlick | @disruptek try an older version of Nim |
00:34:57 | shashlick | -std=c11 has been around since day one |
00:35:24 | shashlick | Unless clang on osx doesn't have this issue |
00:35:28 | disruptek | but that's the option i need to elide from treesitter/api.nim. |
00:35:37 | disruptek | it doesn't because it's guarded to linux. |
00:35:42 | shashlick | But note that nimarchive was just tested two days ago on arm just fine |
00:36:08 | shashlick | Maybe cause that's gcc and not clang |
00:36:29 | FromDiscord | <Hearthstone> > ~~I was considering writing an hjson library, never really got around to doing it~~↵A) Hi Anuke-↵B) Maybe I'll write a wrapper for one of the existing libs in C or C++ |
00:36:38 | disruptek | maybe, but the point is, clang-10 on linux cannot build it. |
00:36:48 | disruptek | even without that option. |
00:37:03 | disruptek | which clang are you using? |
00:38:00 | FromDiscord | <Hearthstone> I'll probably wrap https://github.com/hjson/hjson-cpp if i can actually get bothered |
00:39:00 | shashlick | I've not tested with clang on Linux |
00:39:15 | shashlick | What if we remove the -std |
00:39:16 | disruptek | i know. but which one is used on osx? |
00:39:40 | disruptek | it doesn't build on clang/linux even w/o -std=c11 |
00:39:44 | FromDiscord | <Hearthstone> No idea |
00:40:23 | shashlick | eh |
00:40:36 | shashlick | how do you pick clang with gcc |
00:40:59 | FromDiscord | <Hearthstone> Wdym? |
00:41:06 | disruptek | very carefully. |
00:41:18 | shashlick | how do you tell nim to use clang |
00:41:27 | shashlick | come on, help a lazy coder |
00:41:57 | shashlick | --cc |
00:42:00 | disruptek | --cc:clang |
00:42:07 | FromDiscord | <Hearthstone> Oh |
00:42:34 | disruptek | hearthstone has clang aliased to gcc, but also, set cc = clang in a global nim.cfg. |
00:42:47 | shashlick | just built fine with clang v6.0.0 on ubuntu after commenting out the -std |
00:43:41 | FromDiscord | <Hearthstone> I'm using clang |
00:43:44 | FromDiscord | <Hearthstone> By default |
00:43:47 | FromDiscord | <Hearthstone> In Termux |
00:43:55 | FromDiscord | <Hearthstone> `gcc`, calls `clang` |
00:47:30 | disruptek | i built it with clang-9. |
00:47:41 | disruptek | oh wait. |
00:48:01 | FromDiscord | <Hearthstone> I'm using clang 10 on Termux |
00:48:06 | FromDiscord | <Hearthstone> That's what comes by default |
00:48:11 | disruptek | yah. |
00:48:18 | disruptek | it doesn't work with clang-9 either. |
00:48:34 | FromDiscord | <Hearthstone> Oof |
00:48:54 | shashlick | what's the error |
00:49:34 | disruptek | home/adavidoff/nims/lib/core/macros.nim:550:14: error: cannot initialize a variable of type 'NCSTRING' (aka 'char *') with an rvalue of type 'const char *' |
00:49:48 | shashlick | nimph? |
00:49:53 | disruptek | toast. |
00:50:36 | disruptek | /home/adavidoff/git/nimph/deps/pkgs/nimterop-0.6.8/nimterop/toastlib/tshelp.nim:46:12: error: cannot initialize a variable of type 'NCSTRING' (aka 'char *') with an rvalue of type 'const char *' |
00:51:52 | shashlick | man, where do you get this stuff |
00:51:57 | shashlick | updating nim devel |
00:52:21 | disruptek | i'm on 8/26 about to upgrade. |
00:52:32 | * | endragor joined #nim |
00:52:36 | shashlick | probably cause i have an old clang, it's easier to fool |
00:53:51 | disruptek | do you have anything newer than 6? |
00:54:07 | disruptek | oh, i have 6 7 and 8. |
00:55:17 | shashlick | no room on my machine, meh |
00:55:23 | shashlick | have to install 470mb |
00:55:42 | disruptek | hmm, 6 doesn't work for me, though. |
00:56:12 | shashlick | do you have some random stuff in your global nim.cfg |
00:56:17 | shashlick | enforcing some strict mode or something |
00:56:22 | disruptek | nah. |
00:57:03 | shashlick | you trying nim c or nim cpp |
00:57:08 | disruptek | cpp |
00:57:38 | disruptek | i'm not sure i'm successfully changing the clang version though. |
00:58:14 | shashlick | just use nim c |
00:58:17 | shashlick | that works for me |
00:58:27 | disruptek | that's fine. |
00:58:31 | disruptek | clang-6 |
00:58:52 | disruptek | works in clang-10, too. |
00:58:58 | disruptek | why did you tell us cpp? pffbt. |
00:59:17 | shashlick | i told you that there's cpp code in toast - it is linked by g++/clang++ |
00:59:26 | shashlick | but it is nim c in the nimble file |
00:59:39 | shashlick | sorry :~( |
00:59:46 | disruptek | no biggie. |
01:00:01 | shashlick | i could recreate the issue |
01:00:10 | shashlick | seems like a nim issue that it generates invalid c++ code |
01:00:31 | shashlick | i'l push a fix for the -std=c11 |
01:00:33 | disruptek | well, now the question is whether hearthstone can make it work in c mode. |
01:01:35 | shashlick | https://github.com/nimterop/nimterop/tree/std - testing the change |
01:01:45 | * | endragor quit (Ping timeout: 240 seconds) |
01:01:50 | FromDiscord | <Hearthstone> :P |
01:03:17 | * | theelous3 quit (Read error: Connection reset by peer) |
01:10:08 | * | thomasross joined #nim |
01:16:02 | * | endragor joined #nim |
01:25:52 | FromDiscord | <impbox> hmm can I hash a ref object by address somehow? |
01:26:37 | FromDiscord | <impbox> i'd like to create a hash set of some of my ref objects |
01:37:05 | leorize[m] | yes, just cast the refs to pointer :p |
01:37:23 | FromDiscord | <Hearthstone> @impbox ^^^ |
01:37:35 | leorize[m] | I mean implement a hash proc that does that |
01:37:45 | FromDiscord | <impbox> ok, are you being serious? ( :p ) suggests you're not |
01:38:11 | leorize[m] | (if one isn't already exists in hashes module, that is) |
01:39:07 | FromDiscord | <Elegant Beef> He's being serious↵https://play.nim-lang.org/#ix=2vs4 |
01:39:17 | FromDiscord | <impbox> ok, thanks! |
01:39:25 | * | apahl quit (Ping timeout: 240 seconds) |
01:41:35 | * | synshroud quit (Quit: ZNC 1.7.5 - https://znc.in) |
01:41:45 | * | apahl joined #nim |
01:41:52 | * | synshroud joined #nim |
02:01:55 | disruptek | Zevv: seems like clyybber's fix doesn't fix cps. 😢 |
02:13:16 | shashlick | pushed the nimterop -std change |
02:18:48 | * | audiofile quit (Quit: Default Quit Message) |
02:21:28 | ForumUpdaterBot | New thread by Shashlick: Nimble package structure and interop changes, see https://forum.nim-lang.org/t/6738 |
02:21:50 | * | endragor quit (Ping timeout: 256 seconds) |
02:22:17 | * | muffindrake quit (Ping timeout: 272 seconds) |
02:24:13 | * | muffindrake joined #nim |
02:25:41 | * | synshroud quit (Quit: ZNC 1.7.5 - https://znc.in) |
02:28:27 | * | synshroud joined #nim |
02:32:10 | FromGitter | <halloleo> Staring out with NIm - and really loving the UFCS syntax: It's sooo versatile! :-) |
02:35:27 | FromDiscord | <Elegant Beef> It's one of my favourite features aswell |
02:39:37 | FromDiscord | <impbox> yep, it's really nice! |
02:40:28 | FromDiscord | <Elegant Beef> being able to inline call type conversions and call procs on the converted is just so nice 😄 |
02:50:26 | * | endragor joined #nim |
02:52:12 | * | bunbunbunbunny joined #nim |
02:54:52 | * | endragor quit (Remote host closed the connection) |
02:54:58 | * | endragor joined #nim |
02:55:33 | ForumUpdaterBot | New thread by Halloleo: Best way to parse CSV data with the JS backend, see https://forum.nim-lang.org/t/6739 |
03:07:16 | FromDiscord | <Hearthstone> Discord partner applications have opened up again |
03:07:35 | disruptek | wtf does that mean? |
03:07:39 | FromDiscord | <Hearthstone> If someone wants to ping a mod or the person who created the server about it- |
03:07:41 | FromDiscord | <Hearthstone> Basically |
03:07:48 | FromDiscord | <Hearthstone> You have an official badge |
03:07:50 | disruptek | ugh i don't even wanna know. |
03:07:55 | FromDiscord | <Hearthstone> And 3rd tier of nitro level- |
03:08:03 | FromDiscord | <Hearthstone> xD |
03:08:03 | FromDiscord | <Rosen> You are preaching discord shenanigans to the irc user |
03:08:09 | FromDiscord | <Hearthstone> True- |
03:08:14 | FromDiscord | <Hearthstone> I don't know what i expected tbh |
03:08:16 | FromDiscord | <Hearthstone> Lmao |
03:08:18 | disruptek | discord makes my balls throb. |
03:08:25 | FromDiscord | <Rosen> in a good or bad way |
03:08:33 | disruptek | it's not great, i'll be honest. |
03:09:44 | disruptek | everyone be quiet so i can finally fix this bug. |
03:10:49 | FromDiscord | <Hearthstone> xD |
03:10:59 | disruptek | sssshhhhh |
03:11:21 | FromDiscord | <Hearthstone> ;-;- |
03:11:30 | disruptek | look, do you want skiplists or not? |
03:11:34 | disruptek | !repo skiplists |
03:11:34 | disbot | https://github.com/disruptek/skiplists -- 9skiplists: 11generic skip list implementations💃 15 1⭐ 0🍴 |
03:11:40 | disruptek | cha cha cha |
03:11:44 | FromDiscord | <Hearthstone> Tbh idek what that is xD |
03:12:20 | FromDiscord | <Hearthstone> Is there any discord mod who'll want to apply as a partner for this server? I remember that being talked about a while ago |
03:12:52 | disruptek | Yardanico gets off on that shit. |
03:13:12 | FromDiscord | <Hearthstone> Lmao |
03:14:06 | FromDiscord | <Hearthstone> @Yardanico discord partnerships are open again |
03:14:12 | FromDiscord | <Hearthstone> If you want to apply- |
03:14:19 | FromDiscord | <Yardanico> Are they? |
03:14:23 | FromDiscord | <Hearthstone> Mhm |
03:14:35 | FromDiscord | <Yardanico> I don't think they are |
03:14:39 | FromDiscord | <Yardanico> Maybe you read the blog post |
03:14:47 | FromDiscord | <Yardanico> They said they'll be opening them soon |
03:14:50 | FromDiscord | <Hearthstone> A friend of mine is applying for his server right now |
03:14:52 | FromDiscord | <Yardanico> https://discord.com/verification still paused |
03:15:17 | FromDiscord | <Yardanico> Well, where did he send a request? |
03:15:19 | FromDiscord | <Hearthstone> Oh alright |
03:15:22 | FromDiscord | <Hearthstone> Nevermind |
03:15:43 | FromDiscord | <Hearthstone> : |
03:15:46 | FromDiscord | <Hearthstone> :P* |
03:17:56 | FromDiscord | <Hearthstone> @Yardanico that's different apparently |
03:17:58 | FromDiscord | <Hearthstone> https://discord.com/partners |
03:18:04 | FromDiscord | <Hearthstone> For partnership programs |
03:18:06 | FromDiscord | <Yardanico> Yeah that's a different thing |
03:18:14 | FromDiscord | <Hearthstone> Made for community-led servers |
03:18:59 | disruptek | it's fixed. |
03:19:03 | disruptek | thanks for being so quiet. |
03:19:09 | FromDiscord | <Hearthstone> xD |
03:19:15 | FromDiscord | <Hearthstone> No worries~ |
03:27:51 | * | Epikur joined #nim |
03:47:45 | Zevv | I did my best |
03:48:54 | Zevv | I usually snore about 3.2 on the Richter scale |
03:49:02 | Zevv | but for you I made an exception |
03:49:09 | disruptek | thanks, buddy. |
03:50:45 | * | thomasross quit (Ping timeout: 240 seconds) |
03:56:43 | * | vicfred quit (Quit: Leaving) |
04:01:04 | * | hyiltiz_ quit (Quit: hyiltiz_) |
04:02:24 | * | hyiltiz joined #nim |
04:02:24 | * | hyiltiz quit (Changing host) |
04:02:24 | * | hyiltiz joined #nim |
04:03:42 | * | kenran joined #nim |
04:06:01 | * | supakeen quit (Quit: WeeChat 2.9) |
04:06:34 | * | supakeen joined #nim |
04:08:25 | * | kenran quit (Ping timeout: 240 seconds) |
04:09:19 | disruptek | Zevv: clyybber let us down. |
04:09:27 | disruptek | proc params are still untyped. |
04:14:53 | * | narimiran joined #nim |
04:21:49 | * | bunbunbunbunny quit (Quit: leaving) |
04:30:54 | * | endragor quit (Remote host closed the connection) |
04:31:21 | * | endragor joined #nim |
04:35:54 | * | endragor quit (Ping timeout: 256 seconds) |
04:37:23 | * | synshroud quit (Quit: ZNC 1.7.5 - https://znc.in) |
04:37:52 | * | endragor joined #nim |
04:38:10 | * | synshroud joined #nim |
04:43:04 | * | endragor quit (Remote host closed the connection) |
04:43:10 | * | endragor joined #nim |
04:44:06 | * | Epikur quit (Quit: Leaving.) |
04:59:42 | ForumUpdaterBot | New thread by Leorize: Brainstorming ideas to improve Nim's landing page, see https://forum.nim-lang.org/t/6740 |
05:03:49 | * | ptdel joined #nim |
05:04:54 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
05:13:11 | Zevv | dude |
05:13:25 | Zevv | and there he was, boasting that all was well and merged |
05:13:37 | Zevv | why am i not even surprised |
05:17:02 | * | Lord_Nightmare2 joined #nim |
05:17:13 | * | Lord_Nightmare quit (Ping timeout: 265 seconds) |
05:18:11 | * | Lord_Nightmare2 is now known as Lord_Nightmare |
05:18:25 | FromGitter | <matrixbot> `ergpopler` hi |
05:19:12 | FromGitter | <matrixbot> `ergpopler` is it possible to translate something directly into binary in nim |
05:21:23 | FromDiscord | <Elegant Beef> What is the something? |
05:23:58 | FromDiscord | <Elegant Beef> https://play.nim-lang.org/#ix=2vsM |
05:24:16 | FromGitter | <matrixbot> `ergpopler` well, say a string |
05:24:23 | FromGitter | <matrixbot> `ergpopler` like "hello" or "l" |
05:25:44 | FromDiscord | <Elegant Beef> well a string is already really just a seq of bytes |
05:26:24 | FromGitter | <matrixbot> `ergpopler` yes, but like to display it in binary |
05:26:45 | FromGitter | <matrixbot> `ergpopler` like for my "a" to display as 01000001 |
05:28:26 | FromGitter | <matrixbot> `ergpopler` and to modify the binary so like i can turn a variable that holds "a" which is 01000001 and change it to 01000010 which would be "b" |
05:29:35 | FromDiscord | <Elegant Beef> just store a sequence of bytes then, and if you want the string convert it to a string |
05:29:51 | FromDiscord | <Elegant Beef> Idk someone might suggest something better |
05:30:34 | FromGitter | <matrixbot> `ergpopler` well i want it for doing compression which requires me to modify bits directly |
05:30:50 | FromGitter | <matrixbot> `ergpopler` * well i want it for doing compression/encryption which requires me to modify bits directly |
05:33:47 | FromDiscord | <Elegant Beef> https://play.nim-lang.org/#ix=2vsN i mean you can do something like this |
05:36:30 | FromDiscord | <Elegant Beef> And then if you want to live dangerously you can just use a converter https://play.nim-lang.org/#ix=2vsP |
05:44:48 | * | arecacea1 quit (Remote host closed the connection) |
05:45:16 | * | arecacea1 joined #nim |
05:46:55 | * | kenran joined #nim |
05:48:57 | FromDiscord | <Rika> @ergpopler: https://play.nim-lang.org/#ix=2vsS |
05:49:34 | FromDiscord | <Rika> this makes a string that shows the binary representation |
05:49:46 | FromDiscord | <Elegant Beef> Yea i was going to send another link with that |
05:50:08 | FromDiscord | <Elegant Beef> But they want to be able to easily change the binary stream which is just weird, that's why we have hex |
05:53:58 | FromDiscord | <Rika> thats a bit difficult |
05:54:27 | FromDiscord | <Elegant Beef> Well it's reading a bin stream as if it's full of bytes |
05:57:05 | * | solitudesf joined #nim |
06:06:08 | FromDiscord | <Elegant Beef> It's not too bad though↵https://play.nim-lang.org/#ix=2vsU |
06:06:13 | FromDiscord | <Elegant Beef> I still wouldnt suggest it |
06:06:30 | FromDiscord | <Elegant Beef> you can get all the info you want from bitwis operations |
06:09:01 | FromDiscord | <Elegant Beef> There is even the `bitops` module to enable it |
06:12:54 | FromDiscord | <Rika> kinda wish channels in nim were two way |
06:13:01 | FromDiscord | <Rika> wait i think they are |
06:13:05 | FromDiscord | <Rika> might be delusional |
06:13:27 | FromDiscord | <Elegant Beef> They are... arent they? |
06:13:51 | * | synshroud_ joined #nim |
06:14:11 | FromDiscord | <Rika> well technically yeah |
06:15:08 | * | synshroud quit (Ping timeout: 256 seconds) |
06:15:24 | FromDiscord | <Elegant Beef> You'd need two channels to do what you want to safely i assume |
06:15:29 | FromDiscord | <Rika> yeah |
06:16:12 | FromDiscord | <Elegant Beef> Make a new `TwoWay` which has `in,out: Channel` then abstract everything away 😛 |
06:17:03 | FromDiscord | <Rika> yeah but i only need it for this one instance so ill leave that to someone else |
06:23:29 | * | letto quit (Quit: Konversation terminated!) |
06:28:49 | * | letto joined #nim |
06:37:12 | * | ptdel quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
06:40:12 | * | PMunch joined #nim |
07:10:53 | * | synshroud joined #nim |
07:13:13 | * | synshroud_ quit (Ping timeout: 265 seconds) |
07:33:25 | PMunch | Do the Nim basic set type (not hash sets) require the GC? |
07:34:29 | FromDiscord | <Elegant Beef> Arent they just bit flags? |
07:35:05 | FromDiscord | <lakmatiol> a non-resizable bit field probably does not need a GC, but I never actually checked |
07:35:17 | PMunch | That's what I was thinking |
07:35:28 | PMunch | They shouldn't require it, but I'm not sure about the implementation |
07:36:50 | FromDiscord | <Elegant Beef> `Note how the set turns enum values into powers of 2.` Yea seems it's just a fancy int 😛 |
07:37:27 | FromDiscord | <Rika> ~~also the int16 set is 8 kibibytes big~~ |
07:40:48 | * | Vladar joined #nim |
07:44:50 | PMunch | Hmm, that is unfortunate.. |
07:45:22 | PMunch | Not sure if 0..256 is a big enough range, but 0..65536 is definitely more than I need. |
07:46:42 | PMunch | Annoyingly there shouldn't be anything wrong with defining a set over a range (at least one that is divisible by 8) |
07:48:30 | PMunch | As contains should pretty much just be proc contains[T](mySet: set[T], value: T): bool = mySet.data[value div 8] and (1 shr value mod 8) |
07:49:20 | FromDiscord | <lakmatiol> they work over ranges fine, I use it for essentially sparse arrays, but not sure if they work across not multiples of 8 |
07:50:12 | FromDiscord | <Elegant Beef> Yea pmunch it's not an overly difficult thing to implement |
07:50:50 | PMunch | @lakmatiol, they do? |
07:51:16 | FromDiscord | <Elegant Beef> You cant set a range, but the enum sets scale |
07:51:34 | FromDiscord | <Elegant Beef> if you only have the first 8 values it's only 1 byte 😄 |
07:53:26 | PMunch | Oh, it actually does work properly over a range! |
07:53:45 | PMunch | That should probably be mentioned in the manual.. |
07:53:48 | FromDiscord | <Elegant Beef> *Context please* 😄 |
07:54:00 | PMunch | I was about to implement my own.. |
07:54:40 | PMunch | Well, I have an array of "items" in my game. I want the player to be able to pick up these items, if an item it shouldn't be visible and it shouldn't be possible to pick it up again |
07:54:44 | FromDiscord | <Elegant Beef> I see `set[0..100]` works |
07:55:03 | PMunch | So I want to create a set[0..items.len] and incl the items I've picked up |
07:55:29 | FromDiscord | <Elegant Beef> How DOD of you not to have it on the object |
07:55:40 | FromDiscord | <lakmatiol> I am somewhat sure you can do `set[items]` |
07:55:44 | PMunch | Because memory is super limited... |
07:56:07 | FromDiscord | <Elegant Beef> Oh right gameboy game? |
07:56:11 | PMunch | Arduboy |
07:56:21 | PMunch | Arduino Leonardo essentially |
07:56:21 | FromDiscord | <Elegant Beef> close enough |
07:56:38 | PMunch | Not really, a ROM cartridge for the GameBoy is roomy compared to this |
07:57:11 | FromDiscord | <lakmatiol> ah no, it does not |
07:57:15 | FromDiscord | <lakmatiol> (edit) 'it does not' => 'you cannot' |
07:57:34 | PMunch | Yeah it does work |
07:58:12 | PMunch | I created a set[uint8] and memory usage went up by 32 bytes, then I tried a set[0..128] and memory usage only went up by 16 bytes. |
07:58:29 | FromDiscord | <lakmatiol> but not over an array directly. I guess an array is indeed not ordinal |
07:58:36 | PMunch | Ah no |
07:58:48 | PMunch | But I have the size of the array, so that's no biggie |
08:00:31 | FromDiscord | <Elegant Beef> Sorta suprised no one turned the arduboy into a arcade cabinet |
08:01:44 | PMunch | Oooh, I have a friend here who is currently building an arcade cabinet and is a huge Arduboy fan |
08:01:54 | FromDiscord | <Elegant Beef> lol, what have i done 😄 |
08:02:24 | FromDiscord | <Elegant Beef> I still really want to make an arcade cabinet and make a game for it with nico, but money is required for that |
08:02:39 | * | natrys joined #nim |
08:03:06 | FromDiscord | <haxscramper> When I try to register on the nimforum I get 'Too many messages have been sent to this email address recently.' even though I haven't used this email on forum /at all/. |
08:03:46 | FromDiscord | <lakmatiol> note that `set[0..128]` includes 128 |
08:05:21 | FromDiscord | <Elegant Beef> Have you tried a seperate browser hax? |
08:06:16 | * | bunbunbunbunny joined #nim |
08:06:21 | FromDiscord | <haxscramper> Yes, same result |
08:07:09 | * | hnOsmium0001 quit (Quit: Connection closed for inactivity) |
08:09:22 | FromDiscord | <haxscramper> When I try to use different email I just get 'Unknown error occurred'. I had account before but on the completely wrong email, so I decided to change it. When I changed email I got 'email unconfirmed' status and could not save changes, so I decided it is easier to just remove account and create a new one with the same name but just on correct email. |
08:17:29 | PMunch | @Elegant, my friend got the wood for free at the local wood store (what are those called?) because they had been used to package floorboards with :P |
08:17:43 | FromDiscord | <Elegant Beef> lumberyards? |
08:17:56 | PMunch | Used an old computer screen and an old machine |
08:18:03 | PMunch | So really only needed the buttons and such |
08:18:11 | PMunch | Well it's not really a proper lumberyard |
08:18:40 | PMunch | They don't produce anything there, they just sell pre-cut lengths and such |
08:18:43 | FromDiscord | <Elegant Beef> Building material supplier 😄 |
08:18:50 | PMunch | Well, I guess you can buy cuts from them |
08:18:52 | FromDiscord | <Elegant Beef> I still consider that a lumberyard |
08:18:56 | PMunch | Yeah I guess that would apply |
08:19:17 | FromDiscord | <Elegant Beef> Since i call it a lumber mill that chops trees to their nomial dimensions |
08:19:24 | PMunch | Hmm, I guess it's just because we call them different things in Norwegian that I think there's a distinction :P |
08:22:24 | FromDiscord | <Ricky Spanish> this community is amazing, sometimes just open the chat and have to check im still in the correct server before scrolling up to figure out how we reached a certain point |
08:22:54 | bung | can I run nimble test without outputs Verifying and Info ? |
08:23:04 | PMunch | Haha, yeah we tend to sway a bit off-topic from time to time :P |
08:23:56 | FromDiscord | <Elegant Beef> Eh small community where very few people need help 😄 |
08:24:06 | PMunch | bung `nimble build > /dev/null` :P |
08:25:07 | bung | then `nimble test` it will not try to re-compile? |
08:26:11 | PMunch | @haxscramper, yeah the mail system on the forum isn't the greatest.. Try to ping dom96, he can usually sort it out manually |
08:26:12 | bung | no it will |
08:26:40 | PMunch | bung, yeah that just pipes the output of Nimble to not be displayed |
08:27:11 | * | MarderIII joined #nim |
08:29:12 | bung | it's anoying me when I have mutiple test files. |
08:30:21 | PMunch | You can run only a single test |
08:30:28 | PMunch | nimble test <name of test> |
08:30:30 | PMunch | IIRC |
08:31:02 | bung | yeah, that need write nimble task run it one by one .. |
08:31:03 | FromDiscord | <haxscramper> sent a long message, see http://ix.io/2vtl |
08:31:26 | FromDiscord | <haxscramper> I have a solution for nimble verbosity - just wait a second, i need to find this script |
08:31:57 | bung | haxscramper thank you! |
08:32:36 | FromDiscord | <haxscramper> I'm assuming you are on linux though |
08:34:07 | bung | yeah,right |
08:35:02 | FromDiscord | <haxscramper> Here - it is not pretty though, since I just used it for myself https://gist.github.com/haxscramper/cb636295f6c71200925275b405b7c64c what it does is basically runs separate test suit each time you made change in any file in the repository. When you start it uses `fzf` to automatically find all unit tests in the current nimble package |
08:35:26 | PMunch | Surprising amount of Nim users are on Linux, especially consider Araq uses Windows |
08:35:41 | FromDiscord | <haxscramper> it does not solve problem of running all tests at once, but if you want to work on particular tests suite it is a good solution |
08:35:59 | bung | araq and dom96 are window users. |
08:36:13 | FromDiscord | <haxscramper> I need to rewrite it nim though - there is a filesystem watcher module which can be used |
08:36:38 | FromDiscord | <haxscramper> > Surprising amount of Nim users are on Linux, especially consider Araq uses Windows↵Just better operating system, that's all :) |
08:36:47 | bung | I only use windows playing games |
08:37:23 | * | arecacea1 quit (Remote host closed the connection) |
08:37:26 | FromDiscord | <Elegant Beef> I only use windows for a single game that has EAC |
08:37:30 | FromDiscord | <Elegant Beef> Windows poo poo |
08:38:11 | * | arecacea1 joined #nim |
08:38:36 | bung | that's a expensive game. |
08:38:51 | bung | within your pc price. |
08:39:02 | FromDiscord | <Elegant Beef> What? |
08:39:18 | PMunch | He means it's an expensive game if you factor in the Windows license :P |
08:39:28 | PMunch | If that's the only thing you use Windows for |
08:39:32 | FromDiscord | <Elegant Beef> I dont have a windows license |
08:39:40 | bung | okay |
08:40:07 | PMunch | Wasn't there a ruling in the EU that you were entitled for a refund if you didn't want the Windows license that came with the machine? |
08:40:35 | FromDiscord | <Elegant Beef> Plaussibly |
08:40:49 | FromDiscord | <Elegant Beef> Im in a country that doesnt have many consumer rights 😛 |
08:41:53 | PMunch | Which one? |
08:42:02 | FromDiscord | <Elegant Beef> Wow you also forget im in Canada |
08:42:08 | FromDiscord | <Elegant Beef> *No one likes me clearly* |
08:42:29 | FromDiscord | <iWonderAboutTuatara> I'm sort of bound to windows |
08:42:30 | FromDiscord | <Elegant Beef> I've told Varriount about 10 times, and i've clearly mentioned it to you atleast 5 😄 |
08:42:45 | * | MarderIII quit (Ping timeout: 240 seconds) |
08:42:57 | FromDiscord | <iWonderAboutTuatara> I need proprietary apps |
08:43:03 | PMunch | Wait, you've mentioned it to me? |
08:43:05 | FromDiscord | <iWonderAboutTuatara> And I need stuff for available on Linux |
08:43:24 | FromDiscord | <Elegant Beef> Pmunch i've talked about my eather and jokingly moving to norway |
08:43:30 | FromDiscord | <Elegant Beef> (edit) 'eather' => 'weather' |
08:43:36 | PMunch | Oh yeah, I remember that! |
08:43:56 | FromDiscord | <Elegant Beef> I've compared my explictly stated "In Canada" weather to yours fairly often |
08:43:59 | PMunch | You're just on so often when I'm on I assumed you were Europe based |
08:44:12 | FromDiscord | <Elegant Beef> No im just a useless human |
08:44:29 | PMunch | Haha, only reason why I'm up at the moment is that I have to go to work :P |
08:44:35 | FromDiscord | <Elegant Beef> @iWonderAboutTuatara what proprietary apps? |
08:44:48 | FromDiscord | <iWonderAboutTuatara> Premiere |
08:44:53 | FromDiscord | <iWonderAboutTuatara> Photoshop |
08:45:04 | FromDiscord | <iWonderAboutTuatara> After effects also |
08:45:11 | FromDiscord | <Elegant Beef> Davinci Resolve runs on linux 😛 |
08:45:21 | PMunch | My natural rhythm seems to slowly drift if I don't watch it.. At one point I ended up with a 12 hour difference in my schedule |
08:45:24 | FromDiscord | <iWonderAboutTuatara> It's really bad for my type of editing |
08:45:33 | PMunch | Got up at 8PM and went to bed around lunch |
08:45:42 | FromDiscord | <iWonderAboutTuatara> You can't ease in/out position keyframes without going into fusion and defining s custom spline curve |
08:45:45 | FromDiscord | <iWonderAboutTuatara> Which is stupid |
08:45:51 | FromDiscord | <iWonderAboutTuatara> And it makes resolve unusable for me |
08:46:03 | FromDiscord | <Elegant Beef> Yea audio/video production on linux really is subpar |
08:46:04 | FromDiscord | <iWonderAboutTuatara> On top of that, it performs really really bad compared to premiere |
08:46:16 | FromDiscord | <iWonderAboutTuatara> There's a lot of stuff on Linux that isn't quite there |
08:46:25 | FromDiscord | <iWonderAboutTuatara> It's much more of a compromise than people like to say |
08:46:50 | FromDiscord | <iWonderAboutTuatara> I run it on my laptop, because I don't need this stuff on laptop and all I do on it is write code pretty much |
08:46:56 | FromDiscord | <iWonderAboutTuatara> Also it's old and bad |
08:47:04 | FromDiscord | <iWonderAboutTuatara> Can't handle windows |
08:47:21 | FromDiscord | <iWonderAboutTuatara> But I wouldn't use it for a medium lower or higher desktop/laptop |
08:47:29 | FromDiscord | <Elegant Beef> It's really not a compromise for me |
08:47:46 | FromDiscord | <Elegant Beef> What do i lose, visual studio, oh shucks! |
08:48:06 | FromDiscord | <iWonderAboutTuatara> If you don't play any intensive games or need anything that doesn't exist in good form for Linux you're good |
08:48:10 | FromDiscord | <Elegant Beef> Lol |
08:48:13 | FromDiscord | <Elegant Beef> I play arma on linux |
08:48:19 | FromDiscord | <Elegant Beef> The issue isnt intensive, the issue is anticheat |
08:48:27 | FromDiscord | <iWonderAboutTuatara> That too |
08:48:32 | FromDiscord | <Elegant Beef> I played doom eternal on release without tinkering |
08:48:34 | FromDiscord | <iWonderAboutTuatara> Idc about anti cheat |
08:48:41 | FromDiscord | <Elegant Beef> Like it's really a non issue performance wise |
08:48:45 | FromDiscord | <iWonderAboutTuatara> It's just more of a hassle |
08:48:52 | FromDiscord | <Elegant Beef> I literally hit play |
08:48:56 | FromDiscord | <iWonderAboutTuatara> Doom is a game that runs extremely well |
08:49:11 | FromDiscord | <iWonderAboutTuatara> Doom is optimized to anlebel that almost no other game id |
08:49:17 | FromDiscord | <iWonderAboutTuatara> *a level |
08:49:24 | FromDiscord | <Elegant Beef> I mean it still is a AAA game that ran day 1 without tinkering |
08:49:31 | FromDiscord | <Elegant Beef> Same with remnant from the ashes |
08:49:43 | FromDiscord | <iWonderAboutTuatara> That's nice, but ime that doesn't work for everything |
08:49:56 | FromDiscord | <Elegant Beef> The "hassle" is not a very contemporary idea |
08:49:57 | FromDiscord | <iWonderAboutTuatara> Especially DRM gets really upset |
08:50:05 | FromDiscord | <Elegant Beef> Steam Proton removes a ton of hassle |
08:50:20 | FromDiscord | <iWonderAboutTuatara> True, but from what I've seen it's not quite there yet |
08:50:22 | FromDiscord | <Elegant Beef> Most games run as if they were native |
08:50:31 | FromDiscord | <Elegant Beef> atleast in my experience |
08:51:01 | FromDiscord | <iWonderAboutTuatara> And you're just jumping through more hoops for a similar/slightly worse experience, at least in regard to this |
08:51:35 | FromDiscord | <iWonderAboutTuatara> The only real benefit imo is terminal |
08:51:40 | FromDiscord | <iWonderAboutTuatara> Which I love |
08:51:47 | FromDiscord | <Elegant Beef> I mean performance wise it's measurably worse in most cases(in some it's better), but being able to actually control my system is a fair trade |
08:51:53 | FromDiscord | <Elegant Beef> Having my choice of DE/WM |
08:52:00 | FromDiscord | <iWonderAboutTuatara> I don't care that much |
08:52:12 | FromDiscord | <Elegant Beef> Not having shitty windows updates, defender,edge |
08:52:29 | FromDiscord | <iWonderAboutTuatara> That stuff is overstated by linuxers |
08:52:35 | FromDiscord | <Elegant Beef> I use i3-gaps |
08:52:36 | FromDiscord | <iWonderAboutTuatara> Windows updates are fine nowadays |
08:52:39 | FromDiscord | <Elegant Beef> No they arent |
08:52:46 | FromDiscord | <iWonderAboutTuatara> Shut your computer down at night and it'll manage it for you |
08:52:59 | FromDiscord | <iWonderAboutTuatara> I've not had an issue with them for literally years |
08:53:06 | FromDiscord | <Elegant Beef> I dual boot windows and it's often updated whilst i return/leave |
08:53:10 | FromDiscord | <Elegant Beef> It's a pain i dont need |
08:53:16 | PMunch | Kdenlive is pretty nice, nothing like Premiere or Sony Vegas, but enough for the little bit of editing I have to do |
08:53:18 | FromDiscord | <Elegant Beef> Let me turn it off |
08:53:24 | FromDiscord | <Elegant Beef> Same pmunch |
08:53:27 | FromDiscord | <iWonderAboutTuatara> I don't know how often you boot into windows |
08:53:38 | FromDiscord | <iWonderAboutTuatara> Kdenlive was super unusable and unstable lsst I tried |
08:53:40 | FromDiscord | <Elegant Beef> I mean it can be months inbetween |
08:53:42 | FromDiscord | <iWonderAboutTuatara> Might have improved |
08:53:54 | FromDiscord | <iWonderAboutTuatara> That's probably a part of why |
08:54:04 | PMunch | I think Doom actually runs faster on Linux in many cases |
08:54:09 | FromDiscord | <Elegant Beef> Yep |
08:54:09 | FromDiscord | <iWonderAboutTuatara> If you use your computer reasonably regularly you're good |
08:54:23 | FromDiscord | <iWonderAboutTuatara> Edge gets out of the way very easily |
08:54:32 | * | MarderIII joined #nim |
08:54:39 | FromDiscord | <Elegant Beef> The point is edge installed without my permission |
08:54:40 | FromDiscord | <iWonderAboutTuatara> Just change default browser |
08:54:51 | FromDiscord | <iWonderAboutTuatara> That's a weird hill to die on imo |
08:54:55 | FromDiscord | <iWonderAboutTuatara> It's not a big deal at all |
08:55:18 | FromDiscord | <iWonderAboutTuatara> Also you can uninstall it |
08:55:20 | FromDiscord | <Elegant Beef> Well im not dying, im providing reasons to why i think windows is as i previously said "poo poo", i dont lose anything using linux |
08:55:58 | FromDiscord | <Elegant Beef> So your solution to my problem of "Windows installs software" is "Uninstall it dummy" |
08:56:10 | FromDiscord | <iWonderAboutTuatara> What I meant by that is that it's a weird thing to get hung up on |
08:56:23 | FromDiscord | <iWonderAboutTuatara> I mean yeah generally if you don't want edge you can remove it |
08:56:24 | FromDiscord | <Elegant Beef> It's not the only thing |
08:56:31 | FromDiscord | <Elegant Beef> It's a compounding issue |
08:56:39 | FromDiscord | <iWonderAboutTuatara> I don't mind any of it |
08:56:43 | FromDiscord | <iWonderAboutTuatara> It doesn't get in the way |
08:56:54 | FromDiscord | <iWonderAboutTuatara> Some of it is legitimately nice to have |
08:57:09 | PMunch | I guess it's a difference in philosophy |
08:57:10 | FromDiscord | <iWonderAboutTuatara> The default apps are all pretty solid |
08:57:12 | FromDiscord | <Elegant Beef> The original reason i actually left windows was it suddenly decided to go "Hey windows defender needs to take 40% of your cpu" whilst i was playing a game, so i decided, well how about you have 0% |
08:57:27 | PMunch | I don't want a bunch of crap I never asked for, and I definitely don't want to pay for it when buying a new laptop |
08:57:34 | FromDiscord | <iWonderAboutTuatara> Windows defender is like that |
08:57:38 | FromDiscord | <iWonderAboutTuatara> Yeah I wouldn't pay for it |
08:57:47 | FromDiscord | <iWonderAboutTuatara> You can use it completely fine unactivated |
08:57:51 | PMunch | But you are paying for it |
08:58:14 | PMunch | If you buy a laptop, good luck finding one without a Windows license bundled in the price and pre-installed |
08:58:17 | * | bunbunbunbunny quit (Quit: Lost terminal) |
08:58:17 | FromDiscord | <Elegant Beef> The fact is windows doesnt honour explict user control, and it's annoying |
08:58:45 | FromDiscord | <iWonderAboutTuatara> I'm honestly ok with that |
08:58:48 | FromDiscord | <Ricky Spanish> the only downside i find on moving away from windows is usually that if youre developing at some point you need to test your stuff on windows, then it decends into dual booting or having another pc or using remote pcs and then copying stuff and thats assuming youre cross-compiling successfully....windows is hard to escape |
08:59:04 | FromDiscord | <iWonderAboutTuatara> I think Linux users in general make this out to be way bigger of a nuisance than it is in reality |
08:59:08 | FromDiscord | <Elegant Beef> I mean i have a ntfs partition mounted specifically for my windows "Swap" |
08:59:13 | FromDiscord | <iWonderAboutTuatara> It's all in the background the grand majority of the time |
08:59:20 | FromDiscord | <Elegant Beef> And i think you make it a way smaller issue that it is in reality |
08:59:22 | PMunch | Yeah that's a bit of a pain |
08:59:25 | FromDiscord | <Elegant Beef> See how that didnt progress anything |
08:59:36 | FromDiscord | <iWonderAboutTuatara> Windows doesn't play nice with file formats |
08:59:43 | FromDiscord | <iWonderAboutTuatara> That I agree |
08:59:49 | FromDiscord | <iWonderAboutTuatara> I don't think it's a huge deal though |
08:59:51 | FromDiscord | <Kiloneie> Actually i find a lot of laptops with free dos and linux here |
08:59:53 | PMunch | I mean my big reason for switching to Linux was being able to do anything I wanted with my computer |
09:00:02 | PMunch | It's the freedom of it that pulled me in |
09:00:11 | FromDiscord | <iWonderAboutTuatara> That's well and good, but I don't need that |
09:00:13 | PMunch | Really @Kiloneie? |
09:00:17 | FromDiscord | <Elegant Beef> Well it's not the main reason i swapped, but now freedom is the best |
09:00:19 | PMunch | Where do you live? |
09:00:19 | FromDiscord | <iWonderAboutTuatara> I think many feel similar to me |
09:00:32 | FromDiscord | <Elegant Beef> I know Dell/Lenovo ship with linux on their higher end machines |
09:00:33 | FromDiscord | <iWonderAboutTuatara> I don't care for that customization, the win10 workflow is completely fine for me |
09:00:46 | FromDiscord | <iWonderAboutTuatara> All I want is a package manager and I'm golden |
09:01:07 | FromDiscord | <Elegant Beef> I completely accept that as an opinion and dont disregard it. But you've acknowledged that everything i said is an issue but "Not big" so we arent too different |
09:01:09 | PMunch | Well yeah, most people obviously don't care |
09:01:25 | FromDiscord | <Kiloneie> Yes, and i tried figuring out how much windows adds to the cost of a laptop and its toos 100€ here. Its not the absurd 300€ you have to pay if you buy it on its own |
09:01:31 | FromDiscord | <Elegant Beef> Freedom is super important |
09:01:41 | FromDiscord | <Elegant Beef> And if you dont believe me look at apple vs. epic 😄 |
09:01:42 | FromDiscord | <Kiloneie> Slovenia btw |
09:02:00 | FromDiscord | <iWonderAboutTuatara> @Elegant Beef in the sense that yes, it's not ideal, but it's a very minor annoyance and I'm not ready to switch over it |
09:02:04 | FromDiscord | <Kiloneie> I hope Epic wins that lawsuit |
09:02:08 | FromDiscord | <iWonderAboutTuatara> Slovenia is a nice country |
09:02:55 | FromDiscord | <iWonderAboutTuatara> Maybe not to live in though, I've never lived there, but info want to visit lljujujjujiana at some point |
09:03:02 | FromDiscord | <iWonderAboutTuatara> Idk |
09:03:18 | FromDiscord | <Ricky Spanish> depends, some people genuinely dont need or benefit from the freedom of linux, even though im a linux fanboy most of my friends just want steam to play games and wouldnt really use much of the features linux really is offering imo they just want os go brrrrrr |
09:03:19 | FromDiscord | <Elegant Beef> I mean i dont hope they do cause i hate epic, but i hope it forces apple to open their hardware |
09:03:31 | FromDiscord | <iWonderAboutTuatara> I don't understand the epic hate |
09:03:39 | FromDiscord | <iWonderAboutTuatara> I hear it a lot |
09:03:42 | FromDiscord | <iWonderAboutTuatara> But I don't get it |
09:03:54 | FromDiscord | <iWonderAboutTuatara> It's an inherently unequal playing field |
09:03:58 | FromDiscord | <Elegant Beef> They're a company that wants to have competition but explictly harmed consumers by buying exclusivity |
09:04:09 | FromDiscord | <iWonderAboutTuatara> Why would anyone use epic if the game is available on steam? |
09:04:16 | FromDiscord | <iWonderAboutTuatara> Excl is their best option |
09:04:24 | FromDiscord | <Elegant Beef> It's also the least consumer friendly method to go |
09:04:30 | FromDiscord | <Elegant Beef> So as a consumer, fuck them |
09:04:30 | FromDiscord | <iWonderAboutTuatara> I disagree |
09:04:34 | FromDiscord | <Ricky Spanish> epic gives away free stuff like a local drug dealer to get you hooked mostly |
09:04:37 | FromDiscord | <Elegant Beef> Exclusivity is a monopoly |
09:04:44 | FromDiscord | <Elegant Beef> Monopolies are bad, and can die |
09:04:53 | FromDiscord | <iWonderAboutTuatara> It's better they exist as a legitimate competition to steam than steam exists as a monopoly |
09:05:00 | FromDiscord | <Kiloneie> epic game store has given me a few free games such as gta 5, civilization 5 |
09:05:01 | PMunch | Still @Kiloneie, 100€ is a lot for something I'll literally never use |
09:05:15 | FromDiscord | <iWonderAboutTuatara> The reason steam doesn't do this stuff is because they are practically a monopoly |
09:05:18 | FromDiscord | <iWonderAboutTuatara> They don't need to bother |
09:05:19 | FromDiscord | <Kiloneie> epic game store is a good competition to steam |
09:05:23 | FromDiscord | <Elegant Beef> Steam isnt a monopoly though, it's the most popular platform which allows you to distribute everywhere |
09:05:28 | PMunch | I didn't even boot my last laptop into Windows before I inserted a live USB and installed Linux on it |
09:05:34 | FromDiscord | <iWonderAboutTuatara> It's effectively a monopoly |
09:05:39 | FromDiscord | <Elegant Beef> Steam doesnt have exclusivity, so it's not |
09:05:57 | FromDiscord | <Elegant Beef> It is the #1 in a field, but make a monopoly it does not |
09:05:59 | FromDiscord | <iWonderAboutTuatara> It has exclusivity, but valve doesn't need to pay the devs for it |
09:06:01 | FromDiscord | <Rika> "effectively a monopoly" doesnt exist |
09:06:08 | FromDiscord | <Elegant Beef> It doesnt |
09:06:18 | FromDiscord | <Elegant Beef> There is nothing in the contract that publishers sign that forces a monopoly |
09:06:19 | FromDiscord | <iWonderAboutTuatara> Not a native speaker, effectively may have been the wrong word |
09:06:22 | FromDiscord | <Rika> exclusivity has to be from valve |
09:06:25 | FromDiscord | <Kiloneie> Also Slovenia to live in ? Well besides the few major cities(still tiny compared to other european ones) is a ton of villages with a lot of green), My house(my mum's) is like 3 meters away from a creek xD... |
09:06:30 | FromDiscord | <iWonderAboutTuatara> No, not at all |
09:06:33 | FromDiscord | <Elegant Beef> If publishers dont want to push to other publishing platforms, it's on them |
09:06:35 | FromDiscord | <Rika> "exclusivity but not paid for" isnt exclusivity at all |
09:06:39 | FromDiscord | <iWonderAboutTuatara> Have you guys heard of a natural monopoly? |
09:06:51 | FromDiscord | <iWonderAboutTuatara> YouTube is indisputably monpolistic |
09:06:54 | FromDiscord | <Rika> those are non issues then are they not? since theyre natural after all |
09:06:55 | FromDiscord | <iWonderAboutTuatara> That's not even in question |
09:07:09 | FromDiscord | <iWonderAboutTuatara> Yet they don't pay people to upload only to their site |
09:07:18 | FromDiscord | <Elegant Beef> I mean steam is the biggest kid on the block with the coolest features and actively is pro consumer |
09:07:26 | FromDiscord | <Kiloneie> Have you seen Steam in it's infancy coupled with half life 2 and what a graveyard that was ? Then out of nowhere everyone is using steam ? Lol it suprised the heck out of me. |
09:07:29 | FromDiscord | <Elegant Beef> Is it really bad that they're the monopoly you call them? |
09:07:32 | FromDiscord | <Rika> maybe im just confused |
09:07:39 | FromDiscord | <iWonderAboutTuatara> Yes |
09:07:51 | FromDiscord | <iWonderAboutTuatara> Natural monpoly/not actively anti consumer monpoly is still bad |
09:07:55 | FromDiscord | <iWonderAboutTuatara> At best they're stagnant |
09:08:00 | FromDiscord | <iWonderAboutTuatara> Which steam is |
09:08:06 | FromDiscord | <Kiloneie> I am still shocked how Steam became so dominant... guess noone tried a shop like that... |
09:08:19 | FromDiscord | <Rika> well then the only way to fix that is to be a better competitor is it not? |
09:08:26 | FromDiscord | <Elegant Beef> Ah yes remote play(together), proton |
09:08:32 | FromDiscord | <Rika> its unfair to force a company to gimp their platform |
09:08:38 | FromDiscord | <iWonderAboutTuatara> But that's the thing, it's an inherently uneven playing field |
09:08:41 | FromDiscord | <Elegant Beef> Stagnation by enabling consumers to have more abillities to use their products |
09:08:53 | FromDiscord | <Kiloneie> Epic is giving games for free for a whole month every now and there, very popular games that is. |
09:08:55 | FromDiscord | <iWonderAboutTuatara> Steam has a massive advantage over epic just by virtue of being so much bigger |
09:09:03 | FromDiscord | <Rika> yes but what is there to do |
09:09:06 | FromDiscord | <Elegant Beef> Yes the entire reason they do that is to build a user base |
09:09:09 | FromDiscord | <iWonderAboutTuatara> Excl |
09:09:25 | FromDiscord | <iWonderAboutTuatara> That's the idea |
09:09:41 | FromDiscord | <Elegant Beef> What is steam supposed to be doing? |
09:09:43 | FromDiscord | <Kiloneie> Epic still has a sht ton of money to throw at marketing(what do you think Fortnite was ? the biggest marketing campaign ever) |
09:09:57 | FromDiscord | <iWonderAboutTuatara> I didn't say they were supposed to be doing anything |
09:10:04 | FromDiscord | <iWonderAboutTuatara> I didn't ascribe blame to valve at all |
09:10:09 | FromDiscord | <Elegant Beef> You said they're stagnat |
09:10:11 | FromDiscord | <iWonderAboutTuatara> This is just how markets work |
09:10:23 | FromDiscord | <iWonderAboutTuatara> They definitely are more stagnant than a competitive market would be |
09:10:28 | FromDiscord | <Kiloneie> Steam isn't that pro consumer btw( they had a terrible refund policy until recently) |
09:10:33 | FromDiscord | <Rika> okay then its just bad but no action can be taken |
09:10:47 | FromDiscord | <iWonderAboutTuatara> Epic is taking the action |
09:10:49 | FromDiscord | <iWonderAboutTuatara> That's the idea |
09:11:04 | FromDiscord | <Kiloneie> Which came to light with games like no man's sky, Alien colonial marines, which prompted massive refunds |
09:11:07 | FromDiscord | <iWonderAboutTuatara> That's why excl is ok, its only goal is levelling the playing field |
09:11:08 | FromDiscord | <Ricky Spanish> to be fair im just happy its aint uplay that is doing it since they couldnt even secure their little website and had a fairly significant data breach so epic, valve whatever just be happy it aint ubisoft or EA origins |
09:11:08 | FromDiscord | <Rika> but apple's garden is forced monopoly |
09:11:20 | FromDiscord | <iWonderAboutTuatara> Uplaybis so bad |
09:11:23 | FromDiscord | <iWonderAboutTuatara> Oh man |
09:11:37 | FromDiscord | <iWonderAboutTuatara> This isn't about apple though @Rika |
09:11:43 | FromDiscord | <iWonderAboutTuatara> Apple bad I agree |
09:11:44 | FromDiscord | <Elegant Beef> Their publisher contract states you must update your product within 30 days of any other platform, they've released features so you can play your products remotely, on linux, and remotely with outhers. All without an explict cent |
09:11:57 | Araq | this is offtopic |
09:12:03 | FromDiscord | <iWonderAboutTuatara> True |
09:12:07 | FromDiscord | <iWonderAboutTuatara> I'll stop |
09:12:08 | FromDiscord | <Rika> yes it is |
09:12:14 | FromDiscord | <Elegant Beef> Pack it up, time to go home |
09:12:20 | FromDiscord | <iWonderAboutTuatara> Lmoa |
09:12:36 | FromDiscord | <Rika> using locks, what does this (C) error mean? `error: ‘pthread_mutex_t’ has no member named ‘abi’` |
09:12:56 | FromDiscord | <Rika> its happening in object creation (init function) |
09:13:05 | FromDiscord | <Rika> object contains lock (is that not allowed?_ |
09:13:07 | FromDiscord | <Rika> (edit) 'allowed?_' => 'allowed?)' |
09:13:53 | FromDiscord | <Rika> (edit) 'locks,' => 'locks module,' |
09:14:37 | bung | you make it member of a object ? |
09:14:45 | FromDiscord | <Rika> yes |
09:15:26 | bung | maybe it does not know how to automaticly init a object has pthread_mutex_t member |
09:16:23 | bung | try {.noInit.} and manually init your object I guess |
09:16:42 | FromDiscord | <Rika> okay thanks |
09:17:29 | * | Vladar quit (Remote host closed the connection) |
09:19:34 | FromDiscord | <Kiloneie> Mass off topic debate out of nowhere xD |
09:19:55 | FromDiscord | <Kiloneie> People got bored apparently D: |
09:20:56 | PMunch | Hehe, tends to happen here |
09:21:12 | PMunch | Sometimes the offtopic channel is more ontopic than the main channel |
09:23:45 | * | awe00 joined #nim |
09:24:55 | * | awe00_ quit (Ping timeout: 240 seconds) |
09:26:12 | * | Vladar joined #nim |
09:26:30 | PMunch | Hmm, if I create a template that returns a tuple and unpack it directly, does that create considerably worse code than a {.dirty.} template or an {.inject.} template with regards to execution speed and program size? |
09:26:31 | FromDiscord | <haxscramper> General question of mapping C/C++ types to nim types -in C++ immutability is a property of type, not variables. Is it necessary to handle things like `pointer-to-const` vs `const-pointer-to` differently or I can just map it to 'mutable or immutable' |
09:27:43 | FromDiscord | <haxscramper> There is no way to completely map it, but thints like `int &` vs `const int&` could be mapped to var-non-var |
09:27:53 | FromDiscord | <Rika> pointers can become mutable or immutable depending on where you dereference it into |
09:28:03 | FromDiscord | <Rika> im not sure if i answered any of your questions |
09:28:26 | FromDiscord | <Rika> pointers have no var or non-var, all pointers are "var" data |
09:28:49 | FromDiscord | <Rika> let a: ptr int↵means the pointer cannot change, but theres no guarantee for data |
09:29:30 | FromDiscord | <Rika> same thing for ref (but there are proposals too making a `ref var T` kind of declaration or something |
09:30:09 | FromDiscord | <Rika> (edit) 'non-var,' => 'non-var data,' |
09:30:38 | FromDiscord | <haxscramper> Okay, so I can do `int* => ptr[int]`, `const int => int`, `int& => var int`. It is not possible to understand if pointer is mutated or not, so I just assume it will be |
09:31:14 | FromDiscord | <haxscramper> And since I generate `proc`, not `func` I don't provide deep immutability guarantees for arguments anyway. |
09:31:22 | FromDiscord | <Rika> okay |
09:38:25 | Araq | actually you kind of do as .noSideEffect is inferred. XD |
09:39:19 | Araq | in retrospect it wasn't the wisest move but we can fix it. |
09:47:59 | FromDiscord | <Clyybber> Araq: Reverted the result = "" changes in https://github.com/nim-lang/Nim/pull/14777 |
09:48:00 | disbot | ➥ Cleanup |
09:48:11 | FromDiscord | <Clyybber> And good morning :) |
10:01:26 | FromDiscord | <XxDiCaprioxX> Is there a way to get all the keys in a table? |
10:01:49 | * | hackePelle joined #nim |
10:02:03 | FromDiscord | <Rika> table.keys ? |
10:02:46 | FromDiscord | <XxDiCaprioxX> Okay, perfect |
10:03:32 | * | hackePelle quit (Client Quit) |
10:52:07 | Araq | beware, that's an iterator |
10:59:38 | Zevv | aaand good morning clyybber! |
11:02:05 | FromDiscord | <Clyybber> o/ |
11:02:26 | FromDiscord | <Clyybber> Araq: Is it good to go? |
11:05:23 | Araq | dunno need to review it once again |
11:06:54 | * | MarderIII quit (Quit: Leaving) |
11:08:33 | * | NimBot joined #nim |
11:09:17 | FromDiscord | <Clyybber> Araq: Should I remove compiler/forloops.nim? |
11:17:20 | * | abm joined #nim |
11:35:19 | FromDiscord | <Hearthstone> Because of Nim, i prefer `camelCase` over snake_case`- |
11:35:25 | FromDiscord | <Hearthstone> (edit) 'snake_case`-' => '`snake_case`-' |
11:36:32 | FromDiscord | <Hearthstone> When snake case used to be my favourite- |
11:36:47 | FromDiscord | <ache of head> camelCase is okay but there's always trouble with lookalike characters |
11:36:54 | FromDiscord | <Hearthstone> Mhm |
11:37:03 | FromDiscord | <ache of head> likelnThisIine |
11:37:23 | FromDiscord | <ache of head> oof i wrote `line` uncapitalized hehe |
11:38:02 | FromDiscord | <Idefau> ```likeInThisLine``` |
11:38:08 | FromDiscord | <Idefau> looks fine in monospace :p |
11:38:15 | FromDiscord | <ache of head> some fonts don't but |
11:38:18 | FromDiscord | <ache of head> that* |
11:38:23 | FromDiscord | <ache of head> what? lmao |
11:38:26 | FromDiscord | <ache of head> some fonts don't do that* |
11:38:27 | FromDiscord | <ache of head> is what i meant |
11:38:30 | FromDiscord | <Idefau> fair |
11:38:42 | FromDiscord | <ache of head> and sometimes they're not the same |
11:38:46 | FromDiscord | <ache of head> but they're just similar |
11:38:53 | FromDiscord | <ache of head> and it can kind of blend at small sizes |
11:39:05 | FromDiscord | <ache of head> that doesn't mean i prefer snake_case though |
11:39:14 | FromDiscord | <ache of head> that one takes up more space |
11:39:55 | FromDiscord | <Idefau> ```gluedcase``` |
11:40:17 | FromDiscord | <ache of head> haha |
11:44:41 | PMunch | hoRrORcaSe ftw! |
11:45:53 | FromDiscord | <Idefau> 1337_c4s3 |
11:47:14 | FromDiscord | <haxscramper> `lisp-kebab-case` |
11:47:54 | FromDiscord | <ache of head> it's basically like snake_case but the line is higher up |
11:48:39 | FromDiscord | <Rika> so whos making the next case with inverted underscores |
11:50:21 | FromDiscord | <haxscramper> !eval proc `hello▔▔world`() = echo "2" |
11:50:23 | NimBot | <no output> |
11:50:36 | FromDiscord | <Idefau> oof |
11:50:45 | FromDiscord | <Hearthstone> . |
11:50:50 | FromDiscord | <ache of head> hehe |
11:50:52 | FromDiscord | <Idefau> tho we all know that the language with the best case is brainfuck |
11:50:58 | FromDiscord | <Hearthstone> Yes- |
11:51:15 | FromDiscord | <Hearthstone> `BrainFuck == bestLang` too- |
11:53:20 | FromDiscord | <Idefau> yes |
11:54:00 | bung | can I turn a string to a identifier in template ? |
11:54:24 | Araq | bung, you need a macro for that iirc |
11:55:04 | Araq | but usually it doesn't come up as you can never pass a string that is only known at runtime to anything |
11:55:21 | FromDiscord | <Clyybber> Araq: Should I remove compiler/forloops too? |
11:57:10 | bung | hmm, macro hard to managed |
11:59:45 | alehander92 | mate look at it as function |
11:59:53 | alehander92 | it just takes a NimNode and returns one |
12:00:07 | alehander92 | nothing much harder than other libs |
12:01:44 | bung | I need remeber wired name nnk* |
12:03:16 | FromDiscord | <Rika> quote exists |
12:04:19 | bung | oh that one may helps |
12:05:37 | Araq | clyybber: ok |
12:06:01 | * | supakeen quit (Quit: WeeChat 2.9) |
12:06:40 | * | supakeen joined #nim |
12:10:26 | PMunch | Zevv, fixedpoint lacks - :P |
12:21:10 | alehander92 | bung yeah :) |
12:21:17 | Zevv | sure it lacks about everything |
12:21:43 | Zevv | it was not as fun as i thought it would be |
12:21:57 | Zevv | is that a good excuse for doing things half baked, again and again and again? |
12:27:18 | * | noonien quit (Quit: Connection closed for inactivity) |
12:28:45 | Zevv | I feel the possibility to mix & match types and sizes would be the power over this implementation over any other |
12:28:53 | Zevv | but the implemenation will have a lot of repetition |
12:29:01 | Zevv | so I'm looking into how to clean that up |
12:29:11 | Zevv | that does not mean you'll have something that is actually *usable* anytime soon |
12:29:37 | PMunch | Haha, it actually seems to work quite well already |
12:29:45 | PMunch | To get around the no minus thing I just add a negative number |
12:30:52 | Zevv | typing as we speak |
12:32:09 | FromDiscord | <Clyybber> Zevv: What problem do you have with your FixedPoint lib? |
12:33:02 | FromDiscord | <Clyybber> If typing FixedPoint[...] all over again constantly, just put an example in the readme that aliases the type |
12:33:50 | FromDiscord | <Clyybber> Oh, I wasn't up to date on your lib, so discard that |
12:33:55 | Zevv | clyybber: the only problem I have is https://github.com/nim-lang/Nim/issues/15225 |
12:33:56 | disbot | ➥ Generic converter: cannot instantiate ; snippet at 12https://play.nim-lang.org/#ix=2vdA |
12:34:12 | Zevv | and that it's a lot of work to type it all in :) |
12:34:22 | Zevv | and probably also a lot of work to make it even correct |
12:34:55 | Zevv | I want it to be able to mix different T,W types in all or most operators |
12:35:50 | Zevv | I whish I saved a copy of the repo of this fixedpoint implemetation I did for a customer |
12:36:01 | Zevv | it never made it into a product, but I got a long way, most of the gonio stuff was in there |
12:36:04 | Zevv | sqrts, pow, exp |
12:37:11 | FromDiscord | <Clyybber> could steal from https://github.com/christides11/FixedPointy |
12:37:22 | Zevv | yeah but then I need to understand other peoples code |
12:37:23 | Zevv | that's hard work |
12:37:33 | Zevv | I can steal from a zillion implementations |
12:38:00 | Zevv | This is my fixedpointlib. There are many more like it, but this one is mine. |
12:38:31 | Zevv | That kind of lost its haikuness during translation :/ |
12:39:58 | FromDiscord | <Rika> ~~considering that haiku are based on morae (japanese equivalent of letters) rather than syllables~~ |
12:41:02 | Zevv | who caaaares |
12:42:06 | Zevv | these are haiku for dummies |
12:46:35 | Zevv | oh man now I want to make the overflow checks and rounding also explicit in the type |
12:47:37 | * | dddddd quit (Ping timeout: 264 seconds) |
12:48:04 | FromDiscord | <Clyybber> I mean why not |
12:48:17 | FromDiscord | <Clyybber> after all people can just alias the type afterwards for convinience |
12:48:41 | FromDiscord | <Clyybber> what do you want to do with rounding though? |
12:49:27 | Zevv | well, doing rounding is overhead, and not always needed |
12:49:44 | Zevv | just like overflow checking |
12:49:53 | FromDiscord | <Clyybber> what exactly do you mean by rounding? |
12:50:05 | Zevv | so intead of making this configurable for the lib as a whole, I could make it a per-type property |
12:50:18 | Zevv | so you can added types with overflow check to other types with overflow checks |
12:50:23 | Zevv | or non-checks to non-checks |
12:50:43 | * | xace quit (Remote host closed the connection) |
12:50:52 | FromDiscord | <Clyybber> do you mean rounding as in you put in a FP[32], FP[16] and get out a FP[16] or a FP[32] depending on the rounding behaviour? |
12:51:08 | * | xace joined #nim |
12:51:28 | Zevv | no, it's just for the conversions. When converting float to fixed or the other way around |
12:51:39 | Zevv | truncating is cheap, otherwise you always have to add half the LSB |
12:52:31 | Zevv | clyybber: how do you mean 'aliases the type' |
12:53:54 | Zevv | oh dang and saturating as well |
12:53:58 | Zevv | tooo many permutations |
12:56:34 | FromDiscord | <Clyybber> I mean no matter how complicated the type gets, just say its idiomatic to go type MyFP = FixedPoint[...........] |
12:56:52 | Zevv | Oh sure, that's the whole point |
12:59:57 | Zevv | that's how you define your custom type where you work with, a a user |
13:01:43 | lbart | Clyybber Zevv FYI I writed a fixed point library (not yet released) https://gitlab.com/lbartoletti/fpn |
13:04:00 | Zevv | aah see PMunch, someone made it already for you \o/ |
13:04:22 | PMunch | Zevv, that's the same one we were looking at the other day |
13:04:34 | PMunch | The one that had the statically defined types and such |
13:04:40 | Zevv | PMunch: oooh it is. I was on mobile so missed the "larger picture" |
13:04:50 | PMunch | I like your library better :) But it is missing some bits and pieces :P |
13:05:10 | PMunch | And what was the deal with `set` over `=`? |
13:05:19 | Zevv | make the `=` work for me please |
13:05:26 | Zevv | then you know the deal |
13:05:29 | FromDiscord | <Clyybber> lbart: Interesting |
13:06:56 | FromDiscord | <Clyybber> Araq: Should there be parantheses around https://github.com/nim-lang/Nim/blob/devel/compiler/semtypinst.nim#L395 just like in the line above?? |
13:07:39 | * | audiofile joined #nim |
13:07:52 | lbart | Clyybber Zevv PMunch it was a try for me to learn and write something in Nim. It's a one shot. Any contributions and improvements are obviously welcome :) |
13:09:10 | * | dddddd joined #nim |
13:10:23 | PMunch | What?! "Error: signature for '=' must be proc[T: object](x: var T; y: T)" |
13:10:36 | PMunch | What kind of limitation is that.. |
13:10:41 | Zevv | PMunch: soo, now try a converter, because that would be the logical next step, right |
13:11:16 | Zevv | ooh lbart, you nested your generic types. smart. |
13:11:39 | Zevv | well, the only thing my lib would bring over this is working with mixed types |
13:12:28 | PMunch | Yeah.. Cannet instantiate.. |
13:12:38 | lbart | Zevv: yep, thanks to Yardanico ;) |
13:12:46 | lbart | Zevv: we can merge our lib if you want |
13:13:14 | Zevv | Hm not sure, mine was just for toying around to see how far i could get with types |
13:13:32 | Zevv | I'm not adding overflow/saturation handling and rounding into the type as well |
13:13:35 | Zevv | to make the code 100% unreadable |
13:14:00 | Zevv | So you define you type as `uint16 based, 4 bits after the comma, saturate on overflow, do rounding` |
13:14:29 | Zevv | total overenginerding |
13:19:10 | PMunch | Hmm, tried a term rewriting macro |
13:19:15 | PMunch | But I couldn't get it to work.. |
13:19:32 | Zevv | been that, done there |
13:19:49 | PMunch | haha :P |
13:20:13 | lbart | I don't understand, it's not in the type |
13:31:58 | * | endragor quit (Remote host closed the connection) |
13:33:49 | * | endragor joined #nim |
13:34:16 | * | bung quit (Ping timeout: 258 seconds) |
13:34:55 | PMunch | Well that's a new one: Error: unhandled exception: 'floatVal' is not accessible using discriminant 'kind' of type 'TFullReg' [FieldDefect] |
13:35:14 | PMunch | Was passing something to a macro that expected a float |
13:35:28 | FromDiscord | <Clyybber> Yep, the compiler tried to access the float |
13:35:36 | FromDiscord | <Clyybber> but the node kind is not a nkFloat |
13:35:39 | FromDiscord | <Clyybber> so it fails |
13:36:37 | FromDiscord | <exelotl> > signature for '=' must be proc[T: object](x: var T; y: T)↵Man I would *really* love for that limitation to go away for some of my GBA stuff. |
13:36:50 | FromDiscord | <exelotl> Example cases: Can better achieve the "write only" semantics of some of the GBA's registers by letting you assign from A to B but not B to A. |
13:36:52 | FromDiscord | <exelotl> Can assign from a struct S without padding to a struct P with extra padding, without clobbering the extra padding, and without first converting the S to a P |
13:37:15 | FromDiscord | <Clyybber> Maybe it will, if we rename the current `=` to `=copy` |
13:39:34 | * | endragor quit (Ping timeout: 256 seconds) |
13:39:40 | * | waleee-cl joined #nim |
13:41:26 | FromDiscord | <Clyybber> then `=` can be an operator like every other |
13:55:08 | PMunch | Clyybber, yeah I got why, I was just surprised I didn't get a type error |
14:04:03 | * | bung joined #nim |
14:11:03 | disruptek | clyybber: typed proc params. 😢 |
14:11:36 | * | PMunch quit (Quit: Leaving) |
14:12:00 | FromDiscord | <Clyybber> disruptek: on it |
14:12:07 | disruptek | woohoo |
14:12:16 | FromDiscord | <Clyybber> if you already have a minimal example that'd be fine |
14:12:32 | disruptek | cps/tock.nim is what i check. |
14:12:37 | FromDiscord | <haxscramper> Where is `importcpp` pragma language parser is in compiler? I mean what file implementaiton is in |
14:12:46 | disruptek | --define:cpsTree dumps it and i can see Idents where i wanna see Syms. |
14:14:20 | disruptek | and it might actually work when you've fixed it, whereas it doesn't at the moment. |
14:14:43 | disruptek | haxscramper: sorry, i dunno where importcpp is. |
14:15:05 | FromDiscord | <mratsim> behind you |
14:15:26 | disruptek | i thought i felt something verbose... |
14:17:11 | FromDiscord | <haxscramper> * muffled sounds of `(new '*0#@)` in the background * |
14:20:26 | FromDiscord | <Clyybber> haxscramper: ccgcalls:genPatternCall |
14:21:53 | FromDiscord | <Clyybber> disruptek: Aight, btw can we merge typed into master? |
14:22:08 | disruptek | the boss says `no` because it's too disturbing. |
14:22:33 | FromDiscord | <Clyybber> but everything works? |
14:22:34 | FromDiscord | <Clyybber> right? |
14:22:38 | disruptek | no way. |
14:22:54 | disruptek | it has been pending blockers. |
14:23:16 | FromDiscord | <Clyybber> in short: poggers |
14:23:45 | * | Kaivo quit (Quit: WeeChat 2.9) |
14:24:35 | disruptek | peckers. |
14:25:12 | FromDiscord | <Clyybber> i shall remove myself |
14:25:48 | disruptek | but i'm told you're the guy to go to for pecker relief. |
14:28:41 | FromDiscord | <Clyybber> oh, I'm already gone |
14:28:44 | FromDiscord | <Clyybber> but not in tock.nim |
14:32:27 | * | arecacea1 quit (Remote host closed the connection) |
14:32:40 | FromDiscord | <Clyybber> undeclared identifier count |
14:32:57 | * | arecacea1 joined #nim |
14:33:01 | disruptek | yeah, it's a proc arg that we cannot grok because it's not a sym. |
14:33:32 | FromDiscord | <Clyybber> ok |
14:34:12 | disruptek | when you --define:cpsTree you'll see the original tree and then the transformed stuff. each is marked off. it's easy to check. |
14:34:37 | disruptek | i use the tock.nim test because it's a single transform versus our larger suite. |
14:34:38 | FromDiscord | <Clyybber> the tree won't be printed |
14:34:49 | FromDiscord | <Clyybber> because the error occurs before the printing I think |
14:34:55 | disruptek | no, it will. |
14:35:44 | FromDiscord | <Clyybber> but it doesn't |
14:35:45 | FromDiscord | <Clyybber> not for me |
14:35:50 | disruptek | wut |
14:36:35 | disruptek | --define:cpsDebug also. |
14:36:41 | * | Amun_Ra quit (Quit: brb) |
14:36:42 | FromDiscord | <Clyybber> gotcha |
14:36:48 | disruptek | my bad. it's in my cfg. |
14:37:19 | disruptek | === .cps. on tock(original) === /home/adavidoff/git/cps/tests/tock.nim(4, 0) |
14:37:57 | FromDiscord | <Clyybber> is $config in a .cfg the location of the config? |
14:38:05 | disruptek | yep. |
14:38:11 | FromDiscord | <Clyybber> why not use .? |
14:38:16 | FromDiscord | <Clyybber> its shorter |
14:38:27 | disruptek | to me it's ambiguous. |
14:38:39 | FromDiscord | <Clyybber> its always relative to the config file |
14:38:57 | disruptek | it is if the parser sets the path correctly. |
14:39:08 | disruptek | but anyway, to me it's ambiguous for the reader. |
14:40:18 | * | Amun_Ra joined #nim |
14:40:20 | disruptek | $config is an absolute path in my code. i dunno if that's a good thing. |
14:40:21 | FromDiscord | <Clyybber> I pushed a small fix |
14:40:29 | disruptek | does it work? |
14:40:34 | FromDiscord | <Clyybber> no a path fix |
14:40:42 | FromDiscord | <Clyybber> so I don't have to write --path:.. everytime |
14:40:54 | Zevv | clyybber, he's not harassing you or being a pain, is he? |
14:41:08 | FromDiscord | <Clyybber> its the other way around |
14:41:17 | FromDiscord | <Clyybber> I probably just overwrote his autogenerated .nims |
14:41:17 | Zevv | disruptk, he's not harassing you or being a pain, is he? |
14:41:32 | disruptek | clyybber, zevv's harassing me. |
14:41:53 | Zevv | mooomm he's doing it agaaaaainn |
14:42:11 | FromDiscord | <Clyybber> disruptek: https://github.com/disruptek/cps/commit/931b68fe703a419a35bc57d133bb505d5d9f30bd does this make you throb? |
14:42:24 | disruptek | only a little. |
14:42:34 | disruptek | ufcs is really tough, stylistically. |
14:42:45 | FromDiscord | <Clyybber> I take it you nimble developed your cps |
14:42:47 | * | Epikur joined #nim |
14:42:58 | disruptek | nimble? what's that? |
14:43:05 | FromDiscord | <dom96> Hmm, there /may/ be kids in this channel. Hope you realise that |
14:43:11 | FromDiscord | <dom96> May wanna keep it more kid friendly |
14:43:22 | FromDiscord | <Clyybber> disruptek: I have to confess I was thinking about doing "path".switch something |
14:43:32 | FromDiscord | <Clyybber> @dom96 huh? What was non-kid friendly? |
14:43:35 | disruptek | how do you do, fellow kids. |
14:43:47 | disruptek | lol |
14:43:48 | FromDiscord | <dom96> "does this make you throb?" |
14:43:56 | disruptek | yes, dom96. |
14:44:01 | disruptek | you know me so well. |
14:44:26 | FromDiscord | <Clyybber> hmm, I explicitly left out the balls, but I see it isn't much SFW either way |
14:44:32 | disruptek | let us not speak of the clusterfuck that is nimble. there /may/ be children present. |
14:44:47 | Zevv | ok guys concentrate on the matter |
14:44:49 | disruptek | anyway, i'm glad you spared me that ufcs. |
14:44:51 | Zevv | fooocus |
14:45:18 | FromDiscord | <dom96> disruptek: why be like that? |
14:45:38 | disruptek | dom96: i'm just teasing you. |
14:45:57 | FromDiscord | <Clyybber> for real though, is throbbing itself really NSFW? |
14:46:09 | disruptek | you have no idea. |
14:46:21 | FromDiscord | <dom96> would you say it at work? |
14:46:26 | disruptek | of course. |
14:46:31 | disruptek | where do you think i am right now? |
14:46:34 | FromDiscord | <Clyybber> I dunno, if a hammer fell on my toe or something |
14:46:43 | FromDiscord | <Clyybber> my toe would throb, no? |
14:46:49 | disruptek | do you do a lot of work with hammers? |
14:46:56 | FromDiscord | <Clyybber> sometimes |
14:47:05 | FromDiscord | <Rika> you can use throbbing in a way to make it "romantic" but you have to explicitly state that its the heart that throbs |
14:47:15 | disruptek | the smallest hammer in my shop is called the "female" hammer. |
14:47:19 | disruptek | does that make me sexist? |
14:47:37 | FromDiscord | <Clyybber> mine is called disruptek |
14:47:43 | FromDiscord | <Recruit_main707> 🔥 |
14:47:49 | disruptek | you're asking for a pounding. |
14:48:04 | disruptek | nailed it. |
14:48:05 | Zevv | in for a penny, in for a pounding |
14:48:09 | Zevv | can we now fix cps! |
14:48:11 | FromDiscord | <Clyybber> now it would be appropriate to say "I'm throbbing" |
14:48:18 | FromDiscord | <Clyybber> Zevv: sure |
14:48:19 | FromDiscord | <dom96> maybe it's time we create an #adults-only channel and auto-redirect disruptek and the gang in there 😛 |
14:48:19 | disruptek | got head? |
14:48:23 | FromDiscord | <Clyybber> lol |
14:48:35 | FromDiscord | <Recruit_main707> this is off topic guys... |
14:48:41 | FromDiscord | <Clyybber> @dom96 call it #adult-cps |
14:49:06 | FromDiscord | <dom96> @Recruit_main707 it's not, it's about Nim's community. It fits in here. |
14:49:12 | FromDiscord | <Clyybber> never explain the abbreviation |
14:50:03 | disruptek | Zevv: clyybber is working on it. |
14:50:34 | FromDiscord | <Clyybber> as you can tell :p |
14:50:38 | FromDiscord | <Clyybber> pfff |
14:50:54 | Zevv | i know, he's always doing that. *just* when i am about to go fix things myself, *poof* clyybber is jumping ahead and stealing all the fun work from me |
14:51:10 | FromDiscord | <Clyybber> oh, no you do it then |
14:51:17 | disruptek | too late now. |
14:51:17 | FromDiscord | <Clyybber> or *we* |
14:51:25 | disruptek | you already scrubbed in. |
14:51:32 | Zevv | really, I was just going through the symgem ast conversion typeimpl stack reversal thingy |
14:51:45 | disruptek | Zevv: look what i added for you: |
14:51:48 | disruptek | !repo frosty |
14:51:48 | disbot | https://github.com/disruptek/frosty -- 9frosty: 11Serialize native Nim objects via Streams and Sockets ⛄ 15 10⭐ 0🍴 |
14:51:54 | disruptek | a nice green rectangle. |
14:51:56 | Zevv | this week i learned there are hidden fields in NimNodes |
14:52:00 | Zevv | that no one ever toldme about |
14:52:02 | disruptek | shhh |
14:53:15 | FromDiscord | <Clyybber> Zevv: YOu mean nodeflags and such stuff? |
14:53:36 | Zevv | i forgot which, id have to grep the irc logs to find my complaining |
14:53:50 | disruptek | the hidden fields will remain hidden. |
14:53:56 | Zevv | but i wanted the genericParms of a type that was aliased by a short name |
14:55:46 | FromDiscord | <Clyybber> disruptek :What makes you think that they should be syms? |
14:55:51 | FromDiscord | <Clyybber> are they syms in other cases? |
14:55:59 | disruptek | other cases? |
14:56:36 | * | awe00_ joined #nim |
14:57:12 | disruptek | Zevv: iirc you were whining about getTypeImpl or something. |
14:57:17 | Zevv | theres a "symbol" field in NimnNode which I can get on my getTypeInst to do a getImpl on |
14:57:20 | Zevv | right |
14:57:33 | disruptek | not exactly hidden. |
14:57:35 | Zevv | i found that in a github response from krux somewhere |
14:57:38 | Zevv | its not in the docs |
14:57:44 | FromDiscord | <Clyybber> disruptek: other cases where there are syms as params, not idents |
14:57:56 | FromDiscord | <Clyybber> or is it idents everywhere? |
14:57:59 | disruptek | what does that have to do with it? |
14:58:08 | Zevv | clyybber: why should they *not* be syms?! |
14:58:09 | disruptek | they should be symbols. |
14:58:14 | Zevv | its the only logical thing |
14:58:25 | * | awe00 quit (Ping timeout: 264 seconds) |
14:58:27 | FromDiscord | <Clyybber> I'm wondering if its a bug or a undesigned thing |
14:58:49 | Zevv | undesigned bugs are a thing also |
14:59:11 | disruptek | ~bugs is undesigned bugs are a thing |
14:59:11 | disbot | bugs: 11undesigned bugs are a thing |
14:59:14 | Zevv | given that we found the other bug which you now fixed, anything can happen here |
14:59:25 | disruptek | the sky is the proverbial limit. |
14:59:46 | Zevv | like mratsim said, when doing things with macro sometimes you feel as if you stumble into a completely empty room |
14:59:51 | disruptek | ~bugs is intelligent design does not apply to bugs. |
14:59:52 | disbot | bugs: 11intelligent design does not apply to bugs. |
15:00:14 | disruptek | that's a good analogy. |
15:00:42 | disruptek | or, the room isn't empty but the couch is missing. |
15:00:55 | Araq | once again, 'typed' ASTs are unspecified |
15:01:08 | disruptek | don't be rude. i'm specifying them quite clearly. |
15:01:14 | Zevv | i was slightly intoxicated the other day, and thinking to myself. if you would want to make this feature of working with AST from scratch with the knowldge you have now, how would you do that? would there still be macros? |
15:01:15 | Araq | we knew this for v1, couldn't fix it |
15:01:36 | disruptek | Zevv: i've said many times that macros should not exist. |
15:01:46 | Zevv | whats the alternative |
15:01:57 | Araq | they should exist, they should be simpler to use |
15:02:20 | FromDiscord | <Clyybber> we should adopt PMunchs macroutils into the stdlib |
15:02:46 | Zevv | its a nice improvement in some areas, really |
15:02:48 | * | endragor joined #nim |
15:02:58 | Araq | of course alternatively we can built into the language: a DSL for HTML generation. for serialization. for 'dup', for 'strformat'... |
15:03:23 | Araq | for Matrix handling |
15:03:43 | disruptek | i just want to write nim in nim. i'm not saying i don't want abstraction. |
15:03:58 | disruptek | homoiconicity. |
15:04:02 | FromDiscord | <haxscramper> I think the main issue of working with macros is a little-too-verbose AST construction and matching. Everything else is just right. Macroutils deal with first part quite nicely, ast-pattern-matching works for second one. |
15:04:19 | disruptek | i don't want to have to switch back and forth between macro-ast and nim-ast. |
15:04:32 | FromDiscord | <Clyybber> macro ast is nim ast... |
15:04:48 | disruptek | nk versus nnk. |
15:05:37 | FromDiscord | <haxscramper> You can use both nk and nnk in the same code. Requires some jumps with generics but this is pretty easy honestly |
15:05:41 | FromDiscord | <Clyybber> the compiler was written before the first macro, so thats why macros have to use two ns |
15:06:57 | FromDiscord | <Clyybber> disruptek, Zevv: So back to the issue; Have you encountered cases where the args are syms? |
15:07:12 | disruptek | how could we? |
15:07:24 | * | bouzu_ joined #nim |
15:07:28 | disruptek | they are syms in the procs we construct. does that help? |
15:08:34 | Zevv | disruptek: btw do we have a nim issue on this thing already? |
15:08:53 | disruptek | !issue proc params untyped |
15:08:54 | disbot | https://github.com/nim-lang/Nim/issues/14847 -- 3create a new function definitions got Internal error: environment misses: 7& 20 more... |
15:08:59 | disruptek | !issue proc params untyped author:disruptek |
15:09:00 | disbot | no results 😢 |
15:09:00 | Zevv | ah thanks |
15:09:01 | FromDiscord | <Clyybber> ok, its not a sym in the most simple case |
15:09:04 | FromDiscord | <Clyybber> so its not a bug |
15:09:24 | disruptek | that really depends upon perspective. |
15:09:29 | FromDiscord | <Clyybber> in the sense of "the code exists but doesn't fire" |
15:09:56 | FromDiscord | <Clyybber> but in the sense of "features start in the unfortunate .." you know the rest |
15:10:02 | disruptek | ~features |
15:10:03 | disbot | features: 11begin in the unfortunate state of /unimplemented/ -- disruptek |
15:10:15 | FromDiscord | <Clyybber> why is it attributed to you? |
15:10:30 | FromDiscord | <Clyybber> quote plagiarism! |
15:10:32 | disruptek | because it's hard to get araq to operate the bot. |
15:10:32 | Zevv | he's a lying narcist |
15:10:45 | Zevv | oh because it's hard to get ar4q to operate the bot |
15:11:13 | Zevv | disruptek: you can tweak that in your sqlite, I bet |
15:11:32 | disruptek | json, i'm not a masochist. |
15:11:36 | * | natrys quit (Quit: natrys) |
15:11:37 | * | narimiran quit (Ping timeout: 246 seconds) |
15:11:44 | Zevv | also cool |
15:11:46 | FromDiscord | <Clyybber> disruptek: This: https://play.nim-lang.org/#ix=2vuM is a minimal example |
15:11:48 | FromDiscord | <Clyybber> not tock.nim :p |
15:15:57 | Zevv | clyybber: http://ix.io/2uht/nim |
15:16:29 | FromDiscord | <Clyybber> oh, right that one |
15:17:55 | * | endragor quit (Ping timeout: 240 seconds) |
15:20:25 | * | bung quit (Ping timeout: 240 seconds) |
15:21:11 | disruptek | !repo disbot |
15:21:13 | disbot | https://github.com/atomicptr/disbot -- 9disbot: 11Hubot Adapter for discord.js 15 2⭐ 2🍴 7& 29 more... |
15:21:16 | disruptek | damnit. |
15:24:04 | Zevv | so, it seems we're hitting "unspecified" grounds. Which is actually not bad news, if we're the first to arrive here, we can plant the flag and say how we want this to work |
15:25:46 | FromDiscord | <Clyybber> yeah |
15:27:55 | * | def- quit (Ping timeout: 240 seconds) |
15:30:15 | FromDiscord | <Clyybber> now lets see how the flag shall look |
15:30:48 | FromDiscord | <Clyybber> disruptek, Zevv: I think the proc types params should still be idents not syms, wdyt |
15:30:58 | FromDiscord | <Clyybber> but for the proc itself they should be sym |
15:32:07 | FromDiscord | <Clyybber> or maybe they should be for the type too... |
15:43:33 | * | synshroud_ joined #nim |
15:44:01 | * | synshroud quit (Ping timeout: 264 seconds) |
15:47:00 | * | pezhead9000 joined #nim |
15:48:33 | disruptek | why would they be idents? |
15:50:40 | * | bung joined #nim |
15:55:25 | * | bung quit (Ping timeout: 264 seconds) |
15:59:49 | Zevv | are there any other things in typed macros that are only idents? |
16:02:14 | Araq | probably |
16:02:24 | Araq | enum declarations |
16:02:37 | Araq | or object declarations |
16:03:27 | * | hnOsmium0001 joined #nim |
16:03:33 | Araq | write an RFC already how you want the AST to look like, I will also contribute |
16:07:34 | disruptek | clyybber: i still don't understand what you're asking. |
16:12:19 | FromDiscord | <Clyybber> I'm asking how the AST should look |
16:12:58 | * | awe00_ quit (Ping timeout: 256 seconds) |
16:13:35 | * | synshroud joined #nim |
16:13:57 | FromDiscord | <Clyybber> But yeah, all this needs to be written down somewhere |
16:14:01 | * | synshroud_ quit (Ping timeout: 264 seconds) |
16:18:22 | FromDiscord | <Clyybber> disruptek: And we should be consistent. So the question is if the type of the proc itself should store its arguments as syms too |
16:18:43 | disruptek | oh, a proc type. |
16:18:48 | FromDiscord | <Clyybber> Yeah |
16:18:55 | disruptek | i would say no. they aren't symbols there. |
16:19:04 | disruptek | they are merely names. |
16:19:37 | * | awe00_ joined #nim |
16:23:06 | FromDiscord | <Clyybber> It gets tricky with default values |
16:23:31 | FromDiscord | <Clyybber> The question is should default values be part of the type? |
16:23:48 | FromDiscord | <Clyybber> Right now they are.. in a way. |
16:23:54 | disruptek | good question. |
16:26:01 | FromDiscord | <Clyybber> https://play.nim-lang.org/#ix=2vva |
16:28:18 | FromDiscord | <Clyybber> As you can tell, right now they are part of the type, which makes sense since it puts the responsibility on the caller |
16:29:11 | disruptek | lovely. |
16:29:34 | disruptek | this seems slightly related to my recent mangling problem. |
16:29:47 | Araq | https://github.com/nim-lang/Nim/pull/15232 bikeshed about the name |
16:29:48 | disbot | ➥ typetraits: add rangeof(T), a shortcut for low(T)..high(T) |
16:29:52 | Araq | sliceof vs rangeof |
16:30:17 | FromDiscord | <Clyybber> IMO it should be neither of those |
16:30:29 | FromDiscord | <Clyybber> it should be validValuesOf or something like that |
16:30:55 | FromDiscord | <Clyybber> sliceof/rangeof is just sugar for low(T)..high(T) |
16:30:58 | * | bung joined #nim |
16:31:15 | FromDiscord | <Clyybber> but validValuesOf could return a set of valid enums when given an enum |
16:31:31 | FromDiscord | <Clyybber> allowing one to perform a castability check for enums with holes |
16:32:35 | FromDiscord | <Clyybber> or if we want to go one step higher, a isConvertible |
16:32:47 | FromDiscord | <Clyybber> which in the previous PR was the contains proc |
16:32:54 | * | bouzu_ quit (Quit: Leaving) |
16:33:05 | disruptek | i think you're ascribing too much specific use-case to a general proc. |
16:33:38 | disruptek | sliceof makes the most sense to me, except for the fact that i don't have to know anything about Slice to use it all over the stdlib. |
16:34:08 | * | pezhead9000 is now known as agent0x00 |
16:35:11 | FromDiscord | <Clyybber> It should at least error for enums with holes then |
16:35:21 | FromDiscord | <Clyybber> or maybe even just warn |
16:35:26 | disruptek | slice is not sparse. to me, that's the key distinction. |
16:37:21 | * | endragor joined #nim |
16:39:00 | * | eery quit (Quit: leaving) |
16:40:37 | FromDiscord | <Clyybber> Araq: Reverted the remaining result = "" from your reviews. |
16:43:19 | FromDiscord | <Clyybber> Araq: sink openArray doesn't make much sense does it? |
16:43:35 | FromDiscord | <Clyybber> Its a bit like saying `sink lent` |
16:46:29 | kinkinkijkin | psa: i was looking for .len, not .sizeof |
16:46:47 | FromDiscord | <Clyybber> disruptek: The fact that default params belong to the type hints that they should all be syms |
16:47:16 | FromDiscord | <Clyybber> In fact they must be. You could have a proc definition nested inside a default param of a proc type |
16:47:25 | * | apahl quit (Ping timeout: 272 seconds) |
16:47:57 | * | apahl joined #nim |
16:48:14 | FromDiscord | <Clyybber> Those could have parameters with the same names that get referenced in default values |
16:48:24 | FromDiscord | <Clyybber> it just makes much more sense to have that be syms I think |
16:48:29 | disruptek | the sigmatch is breaking my brain, though. |
16:49:08 | FromDiscord | <Clyybber> sigmatch doesn't concern itself with the values of the default values I think |
16:49:24 | disruptek | but doesn't it have to? |
16:49:27 | FromDiscord | <Clyybber> no |
16:49:41 | FromDiscord | <Clyybber> it only needs to know if they have a default param or not |
16:49:47 | FromDiscord | <Clyybber> (edit) 'param' => 'value' |
16:49:56 | FromDiscord | <Clyybber> unless I'm missing something |
16:53:22 | disruptek | i'm thinking of generics and typeclasses, but if it's already working, then obviously we have nothing to lose by making everything typed. |
16:53:34 | disruptek | it gets typed eventually. |
16:55:17 | * | Epikur quit (Quit: Leaving.) |
16:57:19 | * | vicfred joined #nim |
16:57:25 | * | Zectbumo joined #nim |
16:57:31 | FromDiscord | <Clyybber> The only issue is that if the a in proc(a: int, b = a) already is a sym, and we inject it into the calling expression |
16:58:02 | FromDiscord | <Clyybber> we end up with p(a, a) for example |
16:58:14 | FromDiscord | <Clyybber> and the a is the a from the type |
16:58:20 | FromDiscord | <Clyybber> but should it really be the same sym? |
16:58:29 | disruptek | what else? |
16:58:33 | FromDiscord | <Clyybber> should we allow reusing syms |
16:58:42 | disruptek | oh. |
16:58:45 | FromDiscord | <Clyybber> you could have two calls to p(a, a) |
16:58:53 | * | superbia1 joined #nim |
16:58:57 | FromDiscord | <Clyybber> and they would share the sym |
16:59:02 | disruptek | i would say yes, but what if one is mutable and the other isn't. |
16:59:04 | FromDiscord | <Clyybber> but the sym might even have a different type |
16:59:34 | FromDiscord | <Clyybber> because you can have something like proc(a: T, b: T = a) |
17:03:12 | disruptek | it's basically a rewrite to proc ... let b = a, right? |
17:03:12 | disruptek | shouldn't we treat it this way? |
17:03:12 | FromDiscord | <Clyybber> yeah we should |
17:03:13 | * | superbia quit (Ping timeout: 240 seconds) |
17:03:13 | disruptek | that should answer these questions, right? |
17:03:13 | FromDiscord | <Clyybber> no |
17:03:13 | FromDiscord | <Clyybber> it doesn't |
17:03:13 | FromDiscord | <Clyybber> what is a |
17:03:13 | FromDiscord | <Clyybber> is a the sym from the type? |
17:03:13 | disruptek | T 😁 |
17:03:13 | * | a_b_m joined #nim |
17:03:13 | FromDiscord | <Clyybber> a *has* the *type* T |
17:03:13 | disruptek | it's a sym, yes. |
17:03:13 | FromDiscord | <Clyybber> with the type T |
17:03:13 | * | Zectbumo quit (Read error: Connection reset by peer) |
17:03:13 | disruptek | what else? |
17:03:14 | FromDiscord | <Clyybber> but now we instantiate p two times |
17:03:14 | FromDiscord | <Clyybber> with a different T |
17:03:14 | FromDiscord | <Clyybber> now we have one sym |
17:03:14 | * | Zectbumo joined #nim |
17:03:14 | FromDiscord | <Clyybber> with two types |
17:03:14 | FromDiscord | <Clyybber> that can't work |
17:03:14 | disruptek | they need their own instances, but i'm not bothered. |
17:03:14 | FromDiscord | <Clyybber> so we need to split it on generic instantiation |
17:03:14 | disruptek | i don't see any way around that. |
17:03:32 | disruptek | i would expect nothing less, i mean. they are symbols of two different types that happen to share the same name. it's two procs that have named arguments that share the same identifier. big deal. |
17:04:05 | * | abm quit (Ping timeout: 240 seconds) |
17:04:19 | kinkinkijkin | gles2 wants unchecked arrays so im writing a small data helper library for converting seqs to uncheckedarrays |
17:04:19 | * | snowolf quit (Remote host closed the connection) |
17:04:32 | FromDiscord | <Clyybber> disruptek: Hmm, its actually easy |
17:04:35 | FromDiscord | <Clyybber> we need to gensym it |
17:04:36 | kinkinkijkin | and other data help |
17:04:47 | FromDiscord | <Clyybber> disruptek: Like we do with templates |
17:04:55 | disruptek | oh joy. |
17:05:06 | FromDiscord | <Clyybber> A template body might contain `var a` and a is already a sym in the body |
17:05:20 | FromDiscord | <Clyybber> but when we expand it we gensym it and a is its own thing now |
17:05:27 | * | snowolf joined #nim |
17:05:31 | FromDiscord | <Clyybber> so we can do t() ;t() |
17:05:53 | FromDiscord | <Clyybber> and generics are basically templates :) |
17:06:00 | * | Epikur joined #nim |
17:06:01 | disruptek | if they show up as gensyms, i wonder if that will break my cps code's brain. |
17:06:11 | FromDiscord | <Clyybber> it should not |
17:06:24 | FromDiscord | <Clyybber> because then you shouldn't need to look at idents anymore |
17:06:27 | disruptek | doesn't matter either way, i just may be making some assumptions... |
17:06:34 | FromDiscord | <Clyybber> all I see are sym gensym and sym |
17:06:57 | disruptek | it's cleaner than it was, certainly. |
17:09:38 | * | awe00_ quit (Ping timeout: 256 seconds) |
17:13:36 | * | synshroud_ joined #nim |
17:13:46 | * | synshroud quit (Ping timeout: 256 seconds) |
17:28:38 | * | synshroud_ quit (Quit: ZNC 1.7.5 - https://znc.in) |
17:33:07 | * | a_b_m quit (Quit: Leaving) |
17:34:14 | * | audiofile quit (Quit: Default Quit Message) |
17:38:07 | * | moerm joined #nim |
17:38:15 | moerm | Hello everyone ;) |
17:38:28 | FromDiscord | <Idefau> hello |
17:39:03 | FromDiscord | <ache of head> hiya! |
17:41:55 | * | Vladar quit (Ping timeout: 240 seconds) |
17:42:26 | * | agent0x00 quit (Quit: Leaving) |
17:43:52 | kinkinkijkin | dangit that data helper didnt helper |
17:44:54 | FromDiscord | <Hearthstone> Is there a way to make a sequence accept any data type? |
17:45:03 | FromDiscord | <Hearthstone> I know i asked this a while ago |
17:45:08 | FromDiscord | <Hearthstone> But I'm really curious |
17:48:36 | kinkinkijkin | also, i just dropped this application's init time by not using concat() while initializing it |
17:49:18 | kinkinkijkin | using a fixed number of .add()s every loop cut the init time from 2 and a half minutes to 10 seconds |
17:49:36 | kinkinkijkin | despite not moving less data |
17:50:00 | moerm | Have a good time, bye |
17:50:06 | * | moerm quit (Quit: Leaving) |
17:50:09 | kinkinkijkin | oh |
17:51:12 | * | bung quit (Quit: Lost terminal) |
17:52:45 | kinkinkijkin | is .concat() normally this slow? |
17:53:05 | kinkinkijkin | 2 and a half minutes is a --d:release benchmark btw |
17:53:14 | kinkinkijkin | was more like 7 minutes on --d:debug |
17:57:52 | FromDiscord | <Rika> @Hearthstone why? |
17:57:55 | * | FromDiscord quit (Remote host closed the connection) |
18:03:35 | * | FromDiscord joined #nim |
18:09:35 | Prestige | kinkinkijkin: how many concat calls? |
18:10:30 | alehander92 | concat creates a new sequence, no? |
18:11:16 | alehander92 | i have no idea if a = a.concat(b) is optimized down tho |
18:12:08 | * | andinus quit (Quit: reconnecting) |
18:14:33 | * | tane joined #nim |
18:14:59 | * | synshroud joined #nim |
18:17:46 | FromDiscord | <XxDiCaprioxX> How do I declare a seq of strings? |
18:19:05 | FromDiscord | <Hearthstone> You want to be able to add values to it in run time @XxDiCaprioxX? |
18:19:07 | Yardanico | var a: seq[string] |
18:19:22 | FromDiscord | <XxDiCaprioxX> yes |
18:19:34 | FromDiscord | <Hearthstone> > var a: seq[string] |
18:19:43 | FromDiscord | <Hearthstone> As Yardanico said :P |
18:19:46 | FromDiscord | <XxDiCaprioxX> ah, i tried var a: @[string] |
18:19:50 | FromDiscord | <XxDiCaprioxX> thanks |
18:20:05 | Yardanico | well, if you have values already, you can do var a = @[mystr, myotherstr] |
18:20:10 | Yardanico | if these are existing variables |
18:20:11 | FromDiscord | <Hearthstone> Yup |
18:20:14 | Yardanico | or var a = @["hello", "world"] |
18:20:20 | FromDiscord | <XxDiCaprioxX> and how do I initialize? an empty one? |
18:20:24 | Yardanico | you don't need to |
18:20:26 | FromDiscord | <XxDiCaprioxX> (edit) 'initialize?' => 'initialize' |
18:20:30 | * | audiofile joined #nim |
18:20:42 | FromDiscord | <XxDiCaprioxX> I have a sequence as an object parameter |
18:20:48 | Yardanico | you still don't need to |
18:20:53 | FromDiscord | <Hearthstone> `var a: seq[string]` |
18:21:00 | FromDiscord | <Hearthstone> To make an empty sequence |
18:21:09 | Yardanico | can you post more code? |
18:21:29 | FromDiscord | <XxDiCaprioxX> sent a code paste, see https://play.nim-lang.org/#ix=2vvP |
18:21:30 | FromDiscord | <Rika> ```type MyType = object↵ aField: seq[string]↵``` |
18:21:43 | Yardanico | @XxDiCaprioxX yes just like that |
18:21:44 | FromDiscord | <XxDiCaprioxX> sent a code paste, see https://play.nim-lang.org/#ix=2vvQ |
18:21:47 | kinkinkijkin | prestige alehander one call for every line in this 4mb obj containing a vertex |
18:21:49 | FromDiscord | <Rika> all fields in a regular `object` default to empty or 0 |
18:21:56 | FromDiscord | <XxDiCaprioxX> ``` discard newOpening("sicilian", "Hi", initTable[string, Variation](), ) ``` |
18:22:06 | FromDiscord | <XxDiCaprioxX> What goes behind the comma in the last line of code I posted? |
18:22:31 | Yardanico | https://play.nim-lang.org/#ix=2vvR |
18:22:38 | Yardanico | and then the seq is optional |
18:22:41 | Yardanico | and it'll be empty by default |
18:23:01 | FromDiscord | <XxDiCaprioxX> okay thanks |
18:46:03 | disruptek | i'm working on improvements so seqs isn't empty. |
18:46:08 | disruptek | it's hard, though. very hard. |
18:46:28 | FromDiscord | <Clyybber> disruptek: What do you eman? |
18:47:22 | * | tane quit (Quit: Leaving) |
18:51:46 | disruptek | empty seqs is kinda like a bad smell. it follows me wherever i go. |
18:56:11 | Yardanico | disruptek with his strange jokes again :P |
19:02:38 | * | tane joined #nim |
19:06:13 | * | tane quit (Client Quit) |
19:07:18 | * | tane joined #nim |
19:10:50 | * | narimiran joined #nim |
19:14:21 | FromDiscord | <XxDiCaprioxX> sent a code paste, see https://play.nim-lang.org/#ix=2vwb |
19:19:45 | FromDiscord | <XxDiCaprioxX> nevermind+ |
19:22:18 | FromDiscord | <XxDiCaprioxX> What happens when I try .parseInt() one a string that contains no ints? |
19:24:56 | disruptek | i cannot imagine. |
19:25:01 | disruptek | TELL US |
19:25:06 | Yardanico | @XxDiCaprioxX you'll get a runtime error |
19:25:15 | disruptek | you know what's weird? |
19:25:37 | disruptek | i'm having trouble making miran's btree faster than a normal table. |
19:25:38 | FromDiscord | <XxDiCaprioxX> And if I try `if string.parseInt() = nil: ` does that work? |
19:25:46 | disruptek | why would it? |
19:25:48 | disruptek | ~manual |
19:25:48 | disbot | manual: 11the Nim Manual is https://nim-lang.org/docs/manual.html -- disruptek |
19:25:52 | Yardanico | @XxDiCaprioxX no |
19:26:09 | FromDiscord | <XxDiCaprioxX> so how can I check if a string contains an int? |
19:26:19 | disruptek | it's one of the great mysteries. |
19:26:31 | FromDiscord | <XxDiCaprioxX> are you mocking me |
19:26:33 | FromDiscord | <XxDiCaprioxX> ? |
19:26:34 | disruptek | yes. |
19:26:34 | Yardanico | he is ;) |
19:26:44 | Yardanico | well, because really a lot of it is covered in different tutorials |
19:26:51 | Yardanico | but you can e.g. https://nim-lang.org/docs/strutils.html#parseInt%2Cstring and catch the ValueError |
19:27:22 | FromDiscord | <XxDiCaprioxX> and how do I do that? |
19:27:53 | Yardanico | try: discard parseInt(mystr) except ValueError: echo "not an int!" |
19:28:09 | FromDiscord | <XxDiCaprioxX> can I leave out the echo part? |
19:28:12 | Yardanico | yes |
19:28:16 | Yardanico | we need more context |
19:28:20 | Yardanico | for why do you need to check if it's an int |
19:28:58 | FromDiscord | <XxDiCaprioxX> because I have an input where the user can decide between directly putting in a key or the index of the key in the eky list |
19:29:07 | FromDiscord | <XxDiCaprioxX> *key list |
19:30:06 | leorize[m] | the compiler is smarter than I expect :P https://forum.nim-lang.org/t/6733#41874 |
19:30:45 | leorize[m] | either we need a way to lax {.noSideEffect.} with strictFuncs or turn `add()` back into `proc` |
19:33:08 | * | bung joined #nim |
19:41:41 | FromDiscord | <XxDiCaprioxX> And is there a way to set only the first letter of a string to upper case? |
19:42:26 | * | agent0x00 joined #nim |
19:43:27 | * | ofelas joined #nim |
19:44:07 | FromDiscord | <Rika> `astr[0] = astr[0].toUpperAscii`? |
19:44:27 | FromDiscord | <XxDiCaprioxX> okay, thanks |
19:45:05 | FromDiscord | <XxDiCaprioxX> nope |
19:45:14 | FromDiscord | <XxDiCaprioxX> astr[0] can not be assigned to |
19:45:32 | FromDiscord | <Rika> your string is not var |
19:45:38 | FromDiscord | <XxDiCaprioxX> ah |
19:45:39 | FromDiscord | <Rika> astr == your string variable |
19:45:40 | FromDiscord | <XxDiCaprioxX> idiot me |
19:46:38 | FromDiscord | <Rika> @XxDiCaprioxX there is also https://nim-lang.org/docs/strutils.html#capitalizeAscii,string |
19:47:43 | FromDiscord | <XxDiCaprioxX> Ah nice thx |
19:52:06 | disruptek | leorize[m]: if you don't know, don't sweat it, but do you know of an environmental variable i can look for to see if i'm running on github actions? i used to use TRAVIS_COMPILER iirc. that sort of thing. i just want my tests to be less exhaustive when run locally. |
19:57:19 | FromDiscord | <Rika> disruptek: https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables ? |
19:57:35 | disruptek | yeah, i'm reading it now. thanks 😉 |
20:14:38 | * | solitudesf quit (Read error: Connection reset by peer) |
20:15:23 | * | solitudesf joined #nim |
20:16:40 | * | superbia1 quit (Quit: WeeChat 2.9) |
20:18:59 | Araq | leorize[m], oh |
20:19:16 | Araq | *now* I understand, bummer |
20:19:27 | Araq | heh, it's smarter than me |
20:20:04 | disruptek | uh oh. this is how it starts. |
20:24:31 | bung | how to know a commit merge into what nim version ? |
20:24:40 | Yardanico | check in the commit history? |
20:24:42 | * | sagax quit (Remote host closed the connection) |
20:24:43 | Yardanico | give the commit hash :) |
20:27:23 | disruptek | shashlick: i dunno if it matters, but i can build toast with v0.6.9 and clang (10), however it doesn't work when i try to actually compile nimph. http://ix.io/2vwq |
20:29:22 | bung | oh, browser that version's repo find system.nim |
20:31:33 | disruptek | os.nim is throwing an ICE on devel on windows. |
20:31:46 | disruptek | this is arc/danger. |
20:32:06 | disruptek | https://github.com/disruptek/frosty/runs/1043158911 |
20:38:30 | FromDiscord | <ache of head> xD https://media.discordapp.net/attachments/371759389889003532/749005003506581634/Zrzut_ekranu_2020-08-28_o_22.38.21.png |
20:38:38 | Yardanico | yes |
20:38:45 | Yardanico | this is biased though :P |
20:38:59 | FromDiscord | <ache of head> is Nimph that good? |
20:39:05 | disruptek | better. |
20:39:06 | FromDiscord | <ache of head> I mean, I know I'm typing next to its creator |
20:39:16 | FromDiscord | <ache of head> nice |
20:39:32 | FromDiscord | <ache of head> i'm not working with Nim at the moment but when I will be I'll see about switching |
20:40:04 | shashlick | Looks like some bug |
20:40:27 | disruptek | why aren't you working with nim? |
20:40:43 | disruptek | is it the rude language in #nim? |
20:40:43 | FromDiscord | <ache of head> as in, I have Nim projects that I'm working on |
20:40:53 | FromDiscord | <ache of head> I mean that at the moment I'm working on something different |
20:41:42 | disruptek | you know what's hard about writing bug-free code? |
20:41:53 | FromDiscord | <Clyybber> the bug-free part |
20:41:55 | disruptek | convincing everyone that your bugs are features. |
20:42:06 | FromDiscord | <Clyybber> let me convince you |
20:42:11 | disruptek | try. |
20:42:13 | FromDiscord | <Clyybber> that proc params being idents is a feature |
20:42:23 | FromDiscord | <Clyybber> i'm kidding |
20:42:30 | FromDiscord | <Clyybber> but can't you actually work around that in cps ? |
20:42:32 | disruptek | must be; that's araq's code. |
20:42:45 | FromDiscord | <Clyybber> while I'm fixing it I mean |
20:43:10 | disruptek | i wanna add remove() to skiplists and then i need to work around concepts being "unspecified" |
20:43:38 | FromDiscord | <Clyybber> are your skiplists still pointer fest trees? |
20:43:59 | disruptek | the initial impl is, yes, because, /that's what i wanted/. |
20:44:45 | FromDiscord | <Clyybber> oh, and can you report that <= issue? |
20:44:52 | FromDiscord | <Clyybber> so that we don't forget it |
20:45:11 | disruptek | maybe, i haven't tried to minimize it. |
20:45:24 | disruptek | it's so ridiculous. |
20:45:31 | FromDiscord | <Clyybber> maybe its not even our bug :P |
20:45:34 | disruptek | nothing like nim to make me feel like an idiot. |
20:45:46 | FromDiscord | <Clyybber> but minimizing it should reveal the light |
20:45:47 | shashlick | looks like preprocessor output is different in clang |
20:45:58 | disruptek | no doubt. |
20:46:19 | disruptek | i guess we already have lock-in on osx and we didn't even know. |
20:46:55 | * | narimiran quit (Ping timeout: 240 seconds) |
20:47:18 | * | agent0x00 quit (Quit: WeeChat 1.9.1) |
20:48:11 | disruptek | clyybber: it's probably ref equality semantics getting picked up from system.<= |
20:48:26 | FromDiscord | <Clyybber> oh yeah |
20:48:43 | FromDiscord | <Clyybber> <= for refs should be removed IMO |
20:49:22 | disruptek | it's the second time i've spent too long chasing this problem. |
20:57:15 | shashlick | dang i reproduced it and now its gone |
21:02:30 | Prestige | I'm used to async/await in js, in nim it looks like I should be using waitFor. I don't understand the docs for `await` - can someone explain? |
21:02:52 | disruptek | waitfor is used outside of .async. procs while await is used inside. |
21:02:55 | disruptek | otherwise identical. |
21:03:04 | Prestige | oh neat |
21:06:23 | alehander92 | yeah |
21:07:14 | FromDiscord | <Rika> Are all procedures that can be stored in a variable or object or whatever closure procedures? |
21:07:39 | shashlick | disruptek: able to test a branch? |
21:07:48 | disruptek | yeah. |
21:08:23 | shashlick | made a prepro branch - simple fix |
21:08:34 | disruptek | "prepro"? |
21:08:51 | shashlick | nimterop branch named prepro - since it's a bug in the preprocessing step |
21:09:08 | * | NimBot joined #nim |
21:09:09 | shashlick | basically folks who aren't pro quite yet |
21:09:13 | disruptek | that's me. |
21:09:14 | leorize[m] | I'm wondering if there's any interest for a Nim matrix room separated from the #nim IRC channel |
21:09:27 | FromDiscord | <Clyybber> no? |
21:09:30 | FromDiscord | <Rika> Why? |
21:09:31 | FromDiscord | <Clyybber> I mean pls no |
21:09:37 | disruptek | yes yes |
21:09:47 | shashlick | too many rooms man |
21:10:09 | leorize[m] | because matrix to irc via matrix.org bridge is horrendously slow :P |
21:10:25 | leorize[m] | in fact I'm chatting with y'all using matrix and irclogs.nim-lang.org |
21:10:26 | FromDiscord | <Clyybber> then don't use matrix /shrug |
21:10:34 | FromDiscord | <Clyybber> lol |
21:10:47 | disruptek | i admit i don't really follow the logic, either. |
21:10:59 | FromDiscord | <Rika> Don't use the matrix.org bridge maybe lol |
21:11:26 | disruptek | shashlick: seems to work, buddy. |
21:11:26 | * | leorize[m] left #nim ("User left") |
21:11:31 | shashlick | cool |
21:11:56 | * | leorize[m]1 joined #nim |
21:11:56 | disruptek | that's pretty rapid turnaround. 😀 |
21:12:58 | FromDiscord | <Clyybber> my cat just brought me a living intestine.. |
21:13:08 | disruptek | i have a couple of those. |
21:13:26 | FromDiscord | <Clyybber> normal cats stay inside when its raining buckets |
21:13:29 | disruptek | cat gut is the key to some of the finest guitar work. |
21:13:49 | FromDiscord | <Clyybber> my cat sees the opportunity because the mices caves are getting flooded |
21:14:16 | FromDiscord | <Clyybber> third mouse she brought since it started raining today |
21:14:42 | disruptek | stew tonight, huh? |
21:15:09 | shashlick | any other easy bugs? else i'm logging off |
21:15:29 | disruptek | sorry man, that's all i found. |
21:16:00 | FromDiscord | <Clyybber> cee ya |
21:18:18 | leorize[m]1 | @Rika yea, you're right, swapped to kde bridge |
21:20:23 | leorize[m]1 | @Clyybber if your cat keeps bringing food to you then it probably thinks you're not eating enough :P |
21:21:04 | * | krux02 joined #nim |
21:21:15 | FromDiscord | <Clyybber> heh :D she eventually eats them herself, but she leaves the bits that are too ~~tasty~~ disgusting like the liver |
21:24:01 | * | Epikur left #nim (#nim) |
21:40:40 | FromDiscord | <Clyybber> disruptek: I have something for you to try out |
21:41:10 | FromDiscord | <Clyybber> Try my semytiped branch |
21:59:37 | * | solitudesf quit (Ping timeout: 264 seconds) |
22:25:28 | * | krux02 quit (Ping timeout: 260 seconds) |
22:28:50 | * | vicfred quit (Quit: Leaving) |
22:40:39 | * | tane quit (Quit: Leaving) |
22:41:01 | disruptek | oh yeah? |
22:41:25 | FromDiscord | <Clyybber> did the playground just went offline? |
22:41:43 | FromDiscord | <Clyybber> ah, its back |
22:41:58 | disruptek | does it work? |
22:42:09 | disruptek | semi-typed sounds interesting. |
22:42:55 | disruptek | how come nim doesn't have more heavy-hitters? |
22:43:28 | disruptek | yay, syms! |
22:43:50 | * | Zectbumo quit (Read error: Connection reset by peer) |
22:43:53 | disruptek | what does this break? |
22:44:37 | disruptek | oh there's no pr? |
22:45:07 | bung | can I pass discard as expr to template param |
22:45:20 | bung | it used inside template else branch |
22:45:51 | disruptek | yes. |
22:46:22 | disruptek | clyybber: everything looks good except for my code. |
22:46:43 | bung | Error: expression expected, but found 'keyword discard' |
22:47:03 | disruptek | your template is typed? |
22:47:24 | bung | params is process:untyped |
22:47:34 | disruptek | can i see? |
22:47:45 | disruptek | i use discard in templates w/o and issues. |
22:47:50 | bung | `template fetchResultset(conn:typed, pkt:typed, result:typed, onlyFirst:typed, isTextMode:static[bool], process:untyped): untyped =` |
22:48:03 | bung | `conn.fetchResultset(pkt, result, onlyFirst = false,isTextMode = true,discard)` |
22:48:15 | FromDiscord | <Clyybber> you have to use the code block syntax |
22:48:17 | disruptek | use : |
22:48:21 | disruptek | yeah. |
22:48:53 | disruptek | fetchResultset conn, pkt, result, onlyFirst, isTextmode: discard |
22:49:12 | bung | oh , thanks ! thant works |
22:49:42 | disruptek | clyybber: does this pass tests? |
22:49:50 | disruptek | compiler tests. |
22:49:54 | FromGitter | <gogolxdong> Is there any package has implemented Raft distributed consensus? |
22:50:03 | FromDiscord | <Clyybber> disruptek: Didn't try yet |
22:50:16 | FromDiscord | <Clyybber> but typesrenderer isn't adapted yet |
22:50:45 | disruptek | i've missed working on cps. 😍 |
22:50:51 | FromDiscord | <Clyybber> :D |
22:51:05 | FromDiscord | <Clyybber> can you try it with generic procs? |
22:51:29 | bung | gogolxdong no |
22:51:51 | disruptek | clyybber: just, any ol' generic? |
22:51:53 | bung | it's huge code base |
22:52:44 | disruptek | clyybber: works for skiplists, testes, gram, frosty. |
22:54:08 | * | sagax joined #nim |
22:54:20 | disruptek | frosty has a weird bug with arc+windows+danger. |
22:54:40 | FromDiscord | <Clyybber> cool beans |
22:56:27 | disruptek | only on devel, which is even stranger. |
22:56:38 | FromDiscord | <Clyybber> whats the bug look like? |
22:56:44 | FromDiscord | <Clyybber> compiletime? |
22:57:11 | FromDiscord | <Hearthstone> Does c2nim work well for wrapping C++ libs? |
22:57:12 | disruptek | https://github.com/disruptek/frosty/runs/1043158911 |
22:57:18 | disruptek | hearthstone: no. |
22:57:24 | FromDiscord | <Hearthstone> Oh alright |
22:58:34 | FromDiscord | <Hearthstone> So how does c++ imports work? And do they work in the C backend too? |
22:58:50 | disruptek | usually, yes. |
22:59:28 | disruptek | c2nim is for practically converting the interface automatically, but it will require some manual massaging usually. |
22:59:33 | disruptek | just like me! |
22:59:39 | disruptek | clyybber: it's weird, right? |
23:00:34 | disruptek | you've earned a break though. let's put clyybber back in his box until the next bug. |
23:01:15 | FromDiscord | <Hearthstone> Oh alright |
23:01:41 | FromDiscord | <Clyybber> disruptek: Hmm, yeah. At least its compile time |
23:01:49 | disruptek | there are c++ libs that have been wrapped and/or converted that you can find. |
23:01:54 | FromDiscord | <Clyybber> Can you try to minimize it? |
23:02:07 | disruptek | yeah. |
23:02:14 | FromDiscord | <Clyybber> thanks <3 |
23:02:16 | disruptek | but, it's hard because i don't have a windows machine. |
23:02:22 | FromDiscord | <Clyybber> oh wait |
23:02:28 | FromDiscord | <Clyybber> only windows eh? |
23:02:45 | disruptek | yeah. only windows/devel/arc. |
23:02:48 | FromDiscord | <Hearthstone> > there are c++ libs that have been wrapped and/or converted that you can find.↵@disruptek I'm trying to wrap https://github.com/hjson/hjson-cpp for use in Nim |
23:02:51 | FromDiscord | <Clyybber> thats ugh.. fucked? |
23:03:03 | disruptek | it's surprising. i ran ci twice though. |
23:03:09 | FromDiscord | <Hearthstone> I don't want to rewrite it completely :P |
23:03:48 | disruptek | hearthstone: it looks like nimterop could wrap it. |
23:04:00 | disruptek | i'm just guessing because i think you can ignore some of this c++ crap. |
23:04:17 | FromDiscord | <Clyybber> disruptek: Maybe try passing -d:windows to it? |
23:04:29 | FromDiscord | <Hearthstone> Oh? |
23:04:45 | FromDiscord | <Hearthstone> Remember i had an issue with Nimterop.. |
23:04:51 | FromDiscord | <Hearthstone> I can't install it for some reason |
23:04:54 | disruptek | clyybber: i'll mess with it. don't sweat it. |
23:05:11 | disruptek | hearthstone: oh right. one of those issues was fixed today, though. |
23:05:30 | FromDiscord | <Hearthstone> Oh? |
23:05:38 | FromDiscord | <Hearthstone> I'll try again in a bit then |
23:06:07 | disruptek | if you are feeling adventurous. you might need to use shashlick's prepro branch specifically, i dunno if he cut a new release. |
23:06:53 | disruptek | clyybber: yeah, that doesn't work for c_fcntl reasons 😁 |
23:07:20 | disruptek | --os:windows repros it. |
23:07:37 | FromDiscord | <Clyybber> nice |
23:08:01 | FromDiscord | <Hearthstone> Oh? |
23:08:59 | disruptek | clyybber: it's basically fstat code. |
23:09:07 | * | synshroud quit (Quit: ZNC 1.7.5 - https://znc.in) |
23:09:21 | * | synshroud joined #nim |
23:09:43 | disruptek | is leorize's range stuff in yet? |
23:10:41 | leorize[m]1 | nope, I disagree with Araq about the naming so that's gonna take awhile :P |
23:11:31 | disruptek | Error: internal error: expr(nkRange); unknown node kind |
23:11:42 | disruptek | nkRange? nevah herd of it. |
23:21:11 | disruptek | it's a {foo..bar} (set const) getting converted into stmt(:tmp=range(a, b)) |
23:21:46 | disruptek | i mean, that's what the set constructor is receiving. |
23:27:18 | disruptek | works in a9a9860b0b5171487fae100010a18ad71f5d5f6d |
23:28:16 | bung | can nim doc generated as index.html ? |
23:28:29 | disruptek | it is by default. |
23:29:08 | bung | I use nim doc src/amysql.nim it out as src/htmldocs/amysql.html |
23:30:05 | disruptek | oh, it should write theindex.html if you do --project ... at least i think that's what it does. |
23:30:19 | disruptek | you may have to rename that file for reasons. |
23:33:28 | bung | ah I see --project will generate a extro index page and some search related files |
23:34:28 | shashlick | I pushed that branch to master |
23:50:24 | FromGitter | <deech> Does `--gc:arc` imply `--gc:destructors`? I think it does but just wanted to confirm. |
23:50:29 | disruptek | yes. |
23:50:50 | FromGitter | <deech> Thanks! |
23:54:12 | * | bung quit (Ping timeout: 265 seconds) |