00:02:00 | * | RyanKnack19 joined #nim |
00:06:37 | * | RyanKnack19 quit (Remote host closed the connection) |
00:09:25 | shashlick | does Nim support `proc abc(param: string|int)` |
00:09:41 | shashlick | then you can do `if param is string`? |
00:11:50 | * | noonien quit (Quit: Connection closed for inactivity) |
00:19:57 | * | zachk quit (Quit: Leaving) |
00:30:43 | * | rorx13 joined #nim |
00:31:16 | * | rorx13 quit (Remote host closed the connection) |
00:38:30 | FromGitter | <gogolxdong> attempting to call undeclared routine: 'threadvar' |
00:45:14 | * | vivus quit (Quit: Leaving) |
00:48:09 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
00:49:44 | FromGitter | <citycide> slashlick: yes but do `when param is string` instead of `if` |
00:55:53 | * | vosper joined #nim |
00:57:18 | * | vosper quit (Client Quit) |
00:57:37 | FromGitter | <retsyo> @tim-st @data-man I have just learned that for unicode regex, at least `(*UTF8)` should be used, which is mentioned on `nre` document page |
01:01:43 | * | ziddey10 joined #nim |
01:02:46 | * | pwntus quit (Ping timeout: 256 seconds) |
01:03:33 | * | ziddey10 quit (Killed (Unit193 (Spam is not permitted on freenode.))) |
01:15:33 | * | pwntus joined #nim |
01:21:25 | shashlick | @citycide: thanks! |
01:22:06 | shashlick | @gogolxdong: --threads:on + import threading? |
01:28:55 | FromGitter | <gogolxdong> import threading? |
01:29:15 | FromGitter | <gogolxdong> which module. |
01:36:08 | AlexMax | Oof |
01:36:22 | AlexMax | UFCS doesn't mix with fully-qualified names |
01:36:38 | AlexMax | you can't do var x = 4.0.glm.GLfloat |
01:37:12 | AlexMax | erm |
01:37:35 | AlexMax | you can't do var x = 4.0.opengl.GLfloat |
01:38:06 | FromGitter | <timotheecour> see https://github.com/nim-lang/Nim/issues/8013#issuecomment-413332220 for my proposal to allow it in UFCS |
01:39:55 | ltr_ | hello everyone, I'm playing right now with nimble and i would like to pass some flags/switches to the compiler in the "build" stage, how can that be archived? |
01:40:01 | ltr_ | for example --passL |
01:41:10 | AlexMax | I actually found that polluting the global namespace actually kinda sorta makes sense in some cases, and I used the "feature" a lot sooner than I had anticipated |
01:41:39 | AlexMax | all of the gl functions and the constants like GLfloat look kind of silly if they're namespaced |
01:42:06 | AlexMax | .....except they are kinda....already namespaced, aren't they? That's what the 'gl' and 'GL' are, after all |
01:54:50 | * | endragor joined #nim |
01:55:09 | FromGitter | <zetashift> @ltr_ I think you use a nim.cfg or something but this post says nimscript: https://forum.nim-lang.org/t/3603 |
01:58:18 | * | vosper joined #nim |
01:59:26 | * | endragor quit (Ping timeout: 256 seconds) |
01:59:59 | * | JesseOor joined #nim |
02:00:27 | * | JesseOor quit (Remote host closed the connection) |
02:09:10 | * | kaushalmodi_ joined #nim |
02:11:06 | FromGitter | <kaushalmodi> IRC experts/admin: Any idea why my kaushalmodi nick on IRC is banned? |
02:13:54 | FromGitter | <kaushalmodi> As it's banned on #nim, I cannot switch to that nick on any other channel too |
02:14:39 | FromGitter | <kaushalmodi> Pinging PMunch, dom96. Please see above ^ |
02:16:37 | FromGitter | <kayabaNerve> nim.cfg or FILE_NAME.nims |
02:21:02 | * | pwntus quit (Ping timeout: 272 seconds) |
02:22:57 | * | pwntus joined #nim |
02:25:05 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
02:41:31 | * | violet7 joined #nim |
02:41:49 | * | violet7 quit (Killed (Unit193 (Spam is not permitted on freenode.))) |
02:42:25 | * | vosper joined #nim |
02:48:32 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
02:49:19 | * | vosper joined #nim |
02:50:00 | * | pskosinski14 joined #nim |
02:50:21 | * | pskosinski14 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
02:51:21 | ltr_ | zetashift: ill look into that |
02:55:02 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
03:09:37 | * | madprops2 joined #nim |
03:12:17 | * | madprops2 quit (Killed (Unit193 (Spam is not permitted on freenode.))) |
03:26:08 | shashlick | @kaushalmodi: probably not banned but muted |
03:26:14 | shashlick | Are you logged in? |
03:44:53 | * | Selfsigned joined #nim |
03:47:05 | * | Selfsigned quit (Killed (Unit193 (Spam is not permitted on freenode.))) |
04:05:53 | * | thomasross_ is now known as thomasross |
04:28:47 | * | kaushalmodi_ quit (Quit: Connection closed for inactivity) |
04:44:45 | * | RyZum joined #nim |
04:45:25 | * | RyZum quit (Killed (Unit193 (Spam is not permitted on freenode.))) |
05:16:22 | * | dddddd quit (Remote host closed the connection) |
05:18:29 | * | vosper joined #nim |
05:24:57 | * | vosper quit (Ping timeout: 240 seconds) |
05:42:08 | * | rockcavera quit (Read error: Connection reset by peer) |
05:42:24 | * | rockcavera joined #nim |
05:42:24 | * | rockcavera quit (Changing host) |
05:42:24 | * | rockcavera joined #nim |
05:58:18 | * | nsf joined #nim |
06:06:14 | * | karstensrage15 joined #nim |
06:06:36 | * | karstensrage15 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
06:07:04 | * | naos2 joined #nim |
06:08:41 | * | Vladar joined #nim |
06:10:56 | * | naos2 quit (Remote host closed the connection) |
06:25:41 | * | vosper joined #nim |
06:31:16 | * | Trustable joined #nim |
07:01:04 | FromGitter | <tim-st> is it expected that `repr(var)` adds no newline suffix but `repr(addr(var))` does? |
07:07:00 | * | nsf quit (Quit: WeeChat 2.2) |
07:07:58 | * | nsf joined #nim |
07:09:18 | * | raynold joined #nim |
07:14:54 | * | raynold quit (Ping timeout: 272 seconds) |
07:21:20 | FromGitter | <tim-st> another question: Is there a reason why `algorithm.sort` doesn't has default value `cmp=system.cmp`? |
07:22:04 | FromGitter | <timotheecour> this was previously asked; could u please file a bug? I think it’s a valid point |
07:22:20 | FromGitter | <tim-st> ok |
07:22:50 | FromGitter | <timotheecour> after that, optionally, maybe try to search in forum or IRC log to link to it :-) |
07:23:21 | FromGitter | <tim-st> yes, I do at the moment |
07:23:59 | FromGitter | <timotheecour> it was like in the past 2 to 3 days at most IIRC |
07:24:01 | FromGitter | <tim-st> also some easy algorithms are needed like bubblesort, shellsort |
07:24:23 | FromGitter | <tim-st> I remember it is asked at least every 2 months |
07:24:27 | FromGitter | <tim-st> in chat |
07:25:03 | FromGitter | <timotheecour> Meh, i think there are bigger priorities than bubble sort; do we at least have these: quicksort, timsort? |
07:25:50 | FromGitter | <tim-st> yes, we have a good one based on merge sort, but if I know that my element has length always in 0..20 it is much faster to use n^2 sort |
07:25:54 | FromGitter | <tim-st> insitu |
07:26:31 | FromGitter | <timotheecour> Ok that’s a very valid point. is bubble sort really state of the art for small n ??? |
07:27:39 | FromGitter | <tim-st> I dont know state of the art, I think in timsort there is a explicit check for small n and fall back, we should look there, I think in java code it is used too |
07:29:00 | FromGitter | <timotheecour> looking at D implementation for `sort` could be a good start; it’s pretty complete IIRC (see https://dlang.org/phobos/std_algorithm_sorting.html) |
07:30:31 | FromGitter | <tim-st> ok, thanks |
07:40:25 | Araq | for small N "insertion sort" is the state of art |
07:40:42 | Araq | or hardcoding the decision tree with ifs+swap |
07:44:29 | Araq | and no, we don't need every sort algorithm in the stdlib, quicksort() has O(n^2) worst case and is not a stable sort |
07:45:59 | Araq | you can fix all of its problems but the result is not pretty and nobody knows if it's still "quicker" than its competitors |
07:52:21 | * | pwntus quit (Ping timeout: 244 seconds) |
07:52:39 | * | pwntus joined #nim |
07:56:05 | FromGitter | <tim-st> yes, I also found out about insertion sort, and already finished the nim implementation at this moment^^ |
07:56:39 | * | echotangoecho joined #nim |
07:57:12 | FromGitter | <tim-st> Araq: was there a reason for not having `system.cmp` as default? |
07:57:22 | FromGitter | <tim-st> (for algorithm.sort) |
08:03:21 | * | gmpreussner_ quit (Quit: kthxbye) |
08:04:13 | * | gmpreussner joined #nim |
08:13:26 | * | gmpreussner quit (Ping timeout: 256 seconds) |
08:16:28 | Araq | tim-st: tbh it was a workaround for a Nim bug :-) |
08:18:31 | FromGitter | <tim-st> ok, with the current devel vesion setting a default argument works, though I'm not sure if all test cases still work then |
08:18:53 | FromGitter | <tim-st> currently I get the following error: `Error: internal error: expr(nkClosedSymChoice); unknown node kind` dont know why |
08:22:44 | FromGitter | <tim-st> Oh, I found the solution: when already one param has a default value, the next one is not allowed (I mean it's obvious, but the error lets me search for minutes) |
08:23:00 | FromGitter | <tim-st> *is not allowed to be without default |
08:26:08 | Araq | it is allowed when you use keyword arguments |
08:26:47 | FromGitter | <tim-st> hm, when I changed the signature the error was gone |
08:39:08 | * | pwntus quit (Ping timeout: 272 seconds) |
08:44:11 | * | echotangoecho quit (Quit: Lost terminal) |
08:51:46 | * | baweaver0 joined #nim |
08:54:31 | * | baweaver0 quit (Read error: Connection reset by peer) |
09:02:13 | * | guardian3 joined #nim |
09:03:01 | FromGitter | <tim-st> keyword was exactly the reason for the crash :) |
09:05:15 | * | pwntus joined #nim |
09:09:51 | * | guardian3 quit (Ping timeout: 244 seconds) |
09:10:58 | * | xet7 joined #nim |
09:12:19 | * | quicksilver10 joined #nim |
09:14:22 | * | nsf quit (Quit: WeeChat 2.2) |
09:17:27 | * | papabear69 joined #nim |
09:18:09 | * | lbft27 joined #nim |
09:20:56 | * | ski77776 joined #nim |
09:21:26 | * | quicksilver10 quit (Ping timeout: 256 seconds) |
09:22:15 | * | Shrooms19 joined #nim |
09:22:59 | * | lbft27 quit (Read error: Connection reset by peer) |
09:24:50 | * | papabear69 quit (Ping timeout: 256 seconds) |
09:25:09 | * | Shrooms19 quit (Remote host closed the connection) |
09:27:40 | * | ski77776 quit (Ping timeout: 256 seconds) |
09:27:58 | FromGitter | <timotheecour> @tim-st maybe you can submit a issue “sort should have a default” so we don’t keep asking the same stuff over and over in IRC :-) ; it’s a lot more visible/searchable in github. If you want you can also link in issue your WIP to your private branch so we can all help if needed |
09:28:26 | FromGitter | <mratsim> Lambda the ultimate: https://github.com/nim-lang/Nim/issues/8675 https://github.com/nim-lang/Nim/issues/8678 https://github.com/nim-lang/Nim/pull/8679 |
09:28:52 | * | alienated joined #nim |
09:29:57 | * | alienated quit (Remote host closed the connection) |
09:31:25 | FromGitter | <mratsim> @timotheecour for your variadic map, you can have a look into loop-fusion: https://github.com/numforge/loop-fusion |
09:36:12 | * | fxrh3 joined #nim |
09:37:41 | * | sparklefarkle joined #nim |
09:44:21 | FromGitter | <tim-st> @timotheecour I will do, but currently I have an issue open for `insertionSort` that will exactly affect `algorithm.sort` because it will have the same signature, unless the latest issue is not fixed I cannot address `algorithm.sort` |
09:44:57 | * | fxrh3 quit (Ping timeout: 240 seconds) |
09:45:35 | * | sparklefarkle quit (Ping timeout: 240 seconds) |
09:45:53 | FromGitter | <tim-st> well, I can already create the issue :) |
09:50:24 | * | april joined #nim |
09:51:47 | * | april quit (Remote host closed the connection) |
09:53:51 | * | wildlander quit (Quit: Konversation terminated!) |
10:02:10 | * | abm joined #nim |
10:10:23 | * | abm quit (Read error: Connection reset by peer) |
10:14:18 | * | stefanos82 joined #nim |
10:17:19 | stefanos82 | with the latest repo updates, ./koch tools breaks https://www.pastery.net/rubqeg/ |
10:18:05 | * | rockcavera quit (Ping timeout: 240 seconds) |
10:19:40 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:25:07 | * | vosper joined #nim |
10:35:31 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:43:36 | * | quarks joined #nim |
10:52:08 | * | quarks quit (Ping timeout: 272 seconds) |
11:11:21 | * | ms78216 joined #nim |
11:14:09 | * | ms78216 quit (Remote host closed the connection) |
11:17:18 | * | nsf joined #nim |
11:29:21 | * | BitPuffin joined #nim |
11:31:03 | FromGitter | <Clyybber> @timotheecour Wouldn't it be better to fix the implementation of `=>` rather than special case map/map2 ? |
11:55:13 | * | PMunch joined #nim |
12:00:22 | * | nkk71 joined #nim |
12:03:54 | * | nkk71 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
12:04:30 | PMunch | @dom96: http://ix.io/1ky0 |
12:11:46 | * | leorize quit (Quit: WeeChat 2.2) |
12:21:11 | * | dddddd joined #nim |
12:23:06 | * | e15 joined #nim |
12:23:10 | * | PMunch quit (Quit: leaving) |
12:27:04 | * | e15 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
12:36:45 | * | codebam23 joined #nim |
12:40:26 | * | codebam23 quit (Remote host closed the connection) |
12:52:21 | Araq | so ... how can I add ~/.cache/nim to my VSCode workspace? |
12:53:27 | Araq | I don't know how anybody can stay productive with these "best practice" hidden folders |
12:53:56 | Araq | it's bullshit, don't hide directories |
13:00:02 | * | idn1 joined #nim |
13:00:15 | * | idn1 quit (Remote host closed the connection) |
13:03:14 | * | Vladar quit (Ping timeout: 272 seconds) |
13:07:17 | Xe | does the nim frontend stuff have some ability for complicated web applications? |
13:07:44 | Xe | also is there a protocol buffer generator for nim yet? |
13:08:24 | FromDiscord | <awr> i believe there is a capn proto library in nimble |
13:08:53 | Xe | i need normal protobufs though |
13:09:09 | FromDiscord | <awr> also there is https://github.com/PMunch/protobuf-nim |
13:09:38 | Xe | that's not a normal code generator though |
13:10:27 | FromDiscord | <awr> what do you mean by generate? do you mean convert an arbitrary nim object to protobuf? |
13:10:43 | FromDiscord | <awr> apologies if i'm confused, i'm slightly more familiar with capn proto |
13:11:38 | FromDiscord | <awr> https://github.com/oswjk/nimpb ? |
13:12:32 | Araq | xet7: does nim's forum count as a complicated web app? |
13:12:57 | Xe | Araq: does it have a router that i can attach pages to? |
13:13:08 | Xe | or some kind of similar abstraction? |
13:13:51 | Araq | Karax supports routing, yes. Not sure what kind of abstraction you need |
13:14:28 | Araq | mapping strings to functions is not what I consider abstraction worthy |
13:16:07 | FromGitter | <data-man> @Araq: When you have time: https://github.com/nim-lang/c2nim/pull/134 |
13:16:40 | Araq | data-man: awesome :-) |
13:17:40 | Xe | Araq: I see, that's actually better, thanks. |
13:18:49 | FromDiscord | <awr> wow i was just going to ask about the removal of nilable seqs and strings lol |
13:19:30 | FromDiscord | <awr> what is going to be better style going forward? `a == ""/@[]` or `a.len == 0`? |
13:19:46 | FromDiscord | <awr> i suppose the latter is more generic |
13:19:57 | FromGitter | <tim-st> len == 0 is better I think |
13:20:22 | Araq | len == 0 is better. |
13:21:25 | Araq | maybe we should get isEmpty(), it's handy for compressed data structures |
13:22:12 | FromDiscord | <awr> i guess that sort of thing should be clarified in NEP-1 |
13:22:57 | * | soahccc joined #nim |
13:23:05 | * | soahccc quit (Killed (Sigyn (Spam is off topic on freenode.))) |
13:25:24 | Araq | also called the "style guide" |
13:25:48 | Araq | interestingly every other "NEP" is called "RFC"... |
13:27:17 | FromDiscord | <awr> Nim Improvement Manifesto |
13:29:34 | Araq | lol |
13:29:53 | FromDiscord | <awr> do we still use the experimental pragma? if so `{.reorder: on.}` should probably be made experimental for the time being |
13:30:19 | Araq | awr: indeed, but I think 'reorder' is not even documented anywhere |
13:30:40 | * | sophiya joined #nim |
13:31:13 | * | Vladar joined #nim |
13:31:19 | FromDiscord | <awr> yeah i noticed an issue with it and I couldn't find it in the manual |
13:32:07 | * | sophiya quit (Remote host closed the connection) |
13:35:13 | * | nsf quit (Quit: WeeChat 2.2) |
13:57:17 | * | noonien joined #nim |
13:59:59 | * | ascheel27 joined #nim |
14:00:05 | * | KindOne29 joined #nim |
14:00:46 | * | KindOne29 quit (Remote host closed the connection) |
14:08:02 | * | ascheel27 quit (Remote host closed the connection) |
14:10:32 | FromGitter | <tim-st> Should my lib with c sources work with `nim cpp -r lib.nim` too? |
14:10:50 | FromGitter | <tim-st> I tried to compile it but it seems to hang without error |
14:11:05 | FromGitter | <gogolxdong> Have anyone noticed nimble suffers regression from nil? |
14:23:50 | * | pwntus quit (Ping timeout: 268 seconds) |
14:25:14 | * | d__b joined #nim |
14:28:56 | * | d__b quit (Remote host closed the connection) |
14:33:53 | * | pwntus joined #nim |
14:48:23 | * | Algernop28 joined #nim |
14:52:27 | * | Algernop28 quit (Read error: Connection reset by peer) |
14:58:56 | * | deadman5 joined #nim |
15:03:11 | * | bgnnr joined #nim |
15:08:02 | dom96 | PMunch: weird, bug report |
15:28:32 | * | nsf joined #nim |
15:29:50 | xet7 | Araq: I did read through nim's forum code. It's not any "hello world" app, but a advanced real-world app, but code is so understandable, and not so long in length, so I would not count is as complicated. It is easier to understand than php forum code I have read. |
15:31:11 | xet7 | I did read nim's forum code some days ago. |
15:32:57 | * | xynashi16 joined #nim |
15:33:00 | * | PrimHelios joined #nim |
15:33:44 | xet7 | forum code could be improved by splitting big code file to smaller files that would have file names describing their functionality. |
15:33:53 | * | xynashi16 quit (K-Lined) |
15:36:52 | * | nirel joined #nim |
15:39:05 | * | nirel quit (Remote host closed the connection) |
15:40:28 | * | leorize joined #nim |
15:44:43 | * | Matrixiumn joined #nim |
15:45:56 | * | PrimHelios quit (Quit: Leaving) |
15:48:59 | shashlick | Araq: does this syntax still work? |
15:49:11 | shashlick | `{.compile: ("./libui/common/*.c", "common_$#.obj").}` |
15:49:34 | shashlick | I tried and it doesn't |
15:50:36 | shashlick | Figured Nim has an issue with overwriting object files if file name is identical across directories |
15:51:38 | shashlick | dom96 ^^ since you've worked in this too |
15:52:35 | * | Matrixiumn quit (Ping timeout: 276 seconds) |
15:57:08 | Araq | shashlick: it still works |
16:01:07 | FromDiscord | <treeform> I have added selection and picking to my typography text font library: |
16:01:09 | FromDiscord | <treeform> |
16:01:09 | FromDiscord | <treeform> https://cdn.discordapp.com/attachments/371759389889003532/480405800628518912/unknown.png |
16:02:54 | * | bgnnr left #nim ("Textual IRC Client: www.textualapp.com") |
16:03:04 | shashlick | Araq: ok I'll check, it's not documented so |
16:03:19 | shashlick | But is it known that object files will get overwritten? |
16:03:33 | shashlick | Shouldn't Nim complain or rename it something |
16:18:41 | * | NSCLRP-1 joined #nim |
16:25:18 | * | NSCLRP-1 quit (Ping timeout: 256 seconds) |
16:29:49 | * | leorize quit (Quit: WeeChat 2.2) |
16:32:47 | * | interd0me joined #nim |
16:34:00 | Araq | yeah well... let's better fix it |
16:35:35 | shashlick | What's the right thing to do? Rename the object file and not bother user? |
16:39:30 | Araq | yeah |
16:39:47 | ltr_ | evenings!, quick question, can i get the value of a C enum member from nim with {.importc? |
16:40:21 | ltr_ | or just import an enum |
16:40:49 | Araq | nah, c2nim can do that though, maybe |
16:41:03 | * | interd0me quit (Ping timeout: 260 seconds) |
16:41:15 | dom96 | treeform: niceee :) |
16:54:01 | * | Jesin joined #nim |
16:54:38 | * | Jesin quit (Remote host closed the connection) |
16:59:03 | * | Steinsplitter16 joined #nim |
16:59:29 | * | Steinsplitter16 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
16:59:56 | * | Jesin joined #nim |
17:00:13 | * | NimBot joined #nim |
17:04:42 | * | voiceftp quit (Remote host closed the connection) |
17:05:06 | * | voiceftp joined #nim |
17:06:07 | federico3 | any Mastodo user? |
17:07:24 | * | xeroks5 joined #nim |
17:08:12 | * | xeroks5 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
17:12:37 | FromGitter | <zetashift> mastodo or mastodon? |
17:25:00 | federico3 | mastodon :) |
17:35:09 | Araq | masturbatodo |
17:36:12 | * | leorize joined #nim |
17:36:36 | dom96 | https://mastodon.social/@dom96 |
17:37:02 | dom96 | Mastodon really needs a trending list |
17:40:32 | * | elrood joined #nim |
17:46:25 | * | wildlander joined #nim |
17:50:37 | * | elrood quit (Quit: Leaving) |
17:52:40 | * | sh4nks29 joined #nim |
17:53:17 | * | sh4nks29 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
17:57:44 | stefanos82 | why are we still depending on hosts? :/ with p2p technologies, can't we have a direct p2p connection between us, much like how magnet links work? |
18:09:34 | * | leorize quit (Ping timeout: 260 seconds) |
18:11:28 | * | leorize joined #nim |
18:13:52 | * | ktr12 joined #nim |
18:14:35 | * | ktr12 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
18:16:45 | * | andries9 joined #nim |
18:17:15 | FromGitter | <tim-st> is there a link where nims proc overloading rules are clearly defined? Some things are suprising to me |
18:19:15 | FromGitter | <tim-st> it says: `How this overloading resolution algorithm works exactly is not discussed here (it will be specified in the manual soon). ` https://nim-lang.org/docs/tut1.html#procedures-named-arguments |
18:21:58 | * | kaniini_ joined #nim |
18:22:23 | * | zachk joined #nim |
18:22:44 | * | zachk quit (Changing host) |
18:22:44 | * | zachk joined #nim |
18:23:27 | Araq | tim-st: it is in the manual |
18:25:27 | FromGitter | <tim-st> thanks, it's just surprising that multiple set default values for one proc dont work when not all are set for the call |
18:25:59 | * | andries9 quit (Ping timeout: 276 seconds) |
18:28:35 | * | kaniini_ quit (Ping timeout: 240 seconds) |
18:32:57 | shashlick | I think I have some issue with comctl32.dll, not able to load it on runtime |
18:33:11 | shashlick | But on two machines so wondering what's going on |
18:33:25 | shashlick | Everything compiles and links fine |
18:42:53 | * | edcragg quit (Excess Flood) |
18:42:56 | * | alehander42 joined #nim |
18:43:04 | * | edcragg joined #nim |
18:47:25 | * | drdanick17 joined #nim |
18:52:07 | * | drdanick17 quit (Remote host closed the connection) |
19:01:33 | * | leorize quit (Quit: WeeChat 2.2) |
19:12:33 | * | Metacity28 joined #nim |
19:17:20 | * | Jesin quit (Remote host closed the connection) |
19:17:58 | * | Metacity28 quit (Ping timeout: 244 seconds) |
19:29:34 | * | Blendify_i5 joined #nim |
19:37:05 | * | Blendify_i5 quit (Ping timeout: 240 seconds) |
19:48:32 | * | echotangoecho joined #nim |
19:50:27 | * | labviking joined #nim |
19:51:59 | * | labviking quit (Remote host closed the connection) |
19:53:55 | * | Guest43845 joined #nim |
19:55:06 | * | Guest43845 quit (Remote host closed the connection) |
19:55:17 | * | vosper joined #nim |
19:58:16 | stefanos82 | Araq or dom96: did you guys see my message about an error that takes place during ./koch tools building procedure? |
19:58:17 | stefanos82 | https://www.pastery.net/rubqeg/ |
20:04:21 | dom96 | https://github.com/nim-lang/nimble/issues/520 |
20:17:55 | * | KanerixWolfe joined #nim |
20:20:22 | * | KanerixWolfe quit (Killed (Sigyn (Spam is off topic on freenode.))) |
20:24:27 | stefanos82 | dom96: so what am I supposed to do? All I did was first fetch the latest repo updates, then run ./koch boot -d:release and then ./koch tools; that's all |
20:27:35 | * | Trustable quit (Remote host closed the connection) |
20:32:31 | stefanos82 | dom96: ah...I didn't rebuild koch -_- |
20:32:35 | stefanos82 | now it works as expected |
20:35:33 | zachk | whats the most up to date or preffered sdl2 library for nim? the nimble install sdl2 doesnt seem to work with the lastest SDL2_gfx |
20:43:54 | FromDiscord | <awr> i use this one because the other one has gaps |
20:43:57 | FromDiscord | <awr> https://github.com/Vladar4/sdl2_nim |
20:44:32 | FromDiscord | <awr> by gaps i mean missing a lot of stuff |
20:44:34 | zachk | awr, does it include SDL2_gfx in it? |
20:44:47 | FromDiscord | <awr> looks like it |
20:45:10 | zachk | thank you |
20:46:11 | * | alehander42 quit (Ping timeout: 255 seconds) |
20:46:12 | FromDiscord | <awr> you may want to uninstall the other one, they might conflict |
20:46:20 | FromDiscord | <awr> when you import them at least |
20:47:35 | FromDiscord | <awr> i dont use SDL2_gfx but has anything changed with it recently? |
20:54:54 | * | stefanos82 quit (Quit: Quitting for now...) |
20:59:46 | Araq | please patch the existing official SDL2 wrapper |
21:05:15 | * | nsf quit (Quit: WeeChat 2.2) |
21:09:53 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:11:43 | * | Vladar quit (Remote host closed the connection) |
21:13:28 | * | Our joined #nim |
21:14:57 | * | BitPuffin quit (Ping timeout: 240 seconds) |
21:16:43 | * | Our quit (Killed (Sigyn (Spam is off topic on freenode.))) |
21:21:51 | * | xet7 quit (Quit: Leaving) |
21:21:53 | * | deadman5 quit (Ping timeout: 265 seconds) |
21:25:13 | dom96 | Vladar4's sdl package should be updated to not conflict |
21:25:23 | dom96 | This is precisely why Nimble gives warnings during its installation |
21:25:42 | dom96 | Conflicts shouldn't be possible and that's why Nimble will simply make that an error soon |
21:26:14 | shashlick | okay so at least I'm not crazy - just tried nim-lang/ui and controlgallery.nim and I run into the same error |
21:26:27 | FromGitter | <kayabaNerve> What's the best dependency manager for Nim projects? |
21:26:35 | * | xet7 joined #nim |
21:26:56 | * | deadman5 joined #nim |
21:26:59 | FromGitter | <kayabaNerve> Nimble doesn't meet my needs as it only handles dependencies for packages and this is not a package in any form. |
21:27:09 | shashlick | `The procedure entry point TaskDialog could not be located in the dynamic link library c:\....\controlgallery.exe` |
21:27:23 | shashlick | why does it act like the exe is a link library |
21:28:55 | shashlick | TaskDialog is in comctl32.dll but 32-bit program gets linked to the comctl32.dll in winsxs for some reason |
21:29:32 | dom96 | kayabaNerve: what? |
21:29:39 | dom96 | You want a dependency manager that handles what then? |
21:32:24 | FromGitter | <kayabaNerve> Installing Nimble packages/running some Git commands but not installing the project as a Nimble package |
21:33:10 | FromGitter | <kayabaNerve> Nimble develop and install both try to install the project as a package. AFAIK, there's no other way to get Nimble to install dependencies. The project isn't structured according to Nimble rules and shouldn't be installed as a Nimble package. |
21:50:35 | * | pwntus quit (Ping timeout: 240 seconds) |
21:51:29 | dom96 | Every package management system expects some sort of structure |
21:51:38 | dom96 | You can just use git submodules if you want |
21:53:49 | * | Lausefuchs15 joined #nim |
21:55:04 | * | Lausefuchs15 quit (Remote host closed the connection) |
21:55:20 | * | PrimHelios joined #nim |
22:06:40 | * | vosper joined #nim |
22:07:30 | shashlick | this is pointless, unless I get some useful input, this libui wrapper is dead - I cannot even get the official nim-lang/ui wrapper working |
22:10:46 | * | pwntus joined #nim |
22:11:03 | FromGitter | <kayabaNerve> ```git submodule update --init ⏎ nimble install stint nimcrypto secp256k1 nimx``` [https://gitter.im/nim-lang/Nim?at=5b789976157b9d34efa6fa5f] |
22:11:44 | FromGitter | <kayabaNerve> Those are the commands I have to run. I just wanted to know if there's a prominent Nim tool that will handle that for whoever downloads the code. |
22:12:19 | FromGitter | <DanielSokil> Are there any official of unofficial code style formatters for Nim? |
22:15:16 | * | xet7 quit (Quit: Leaving) |
22:15:17 | dom96 | kayabaNerve: That's what you would use a .nimble file for |
22:16:24 | dom96 | if you're writing a binary program then you don't even need to care about any structure |
22:16:30 | * | echotangoecho quit (Quit: Lost terminal) |
22:17:25 | dom96 | https://github.com/nim-lang/nimforum/blob/master/nimforum.nimble#L35 |
22:19:13 | FromGitter | <kayabaNerve> So you use a task > nimble install/develop. Got it |
22:19:23 | dom96 | kayabaNerve: no |
22:19:30 | FromGitter | <kayabaNerve> Nope. |
22:19:35 | dom96 | I was replying to zacharycarter[m] |
22:19:35 | FromGitter | <kayabaNerve> Yep. Just looked over it more. |
22:19:52 | FromGitter | <kayabaNerve> Sorry |
22:19:59 | dom96 | You just need requires "stint"; requires "nimcrypto" etc. |
22:20:22 | dom96 | zacharycarter[m]: Yes, docs can always be improved/extended |
22:21:01 | FromGitter | <kayabaNerve> Yep... that's the part I have an issue with because it tries to install it as a package. Also, his messages aren't being relayed to Gitter. |
22:21:15 | dom96 | Nimble isn't a black box. If you don't understand what it's doing check out its source code, or run with `--debug` or `--verbose` |
22:22:14 | zacharycarter[m] | I'm not blaming nimble - I'm really blaming nimscript and the lack of documentation b/w the two |
22:22:23 | dom96 | This spamming situation is really annoying |
22:22:46 | zacharycarter[m] | I'm in riot - :shrug: |
22:23:02 | dom96 | zacharycarter[m]: You're unmuted now |
22:23:31 | zacharycarter[m] | thanks - I'm in riot - so not sure how I got muted |
22:23:59 | dom96 | As much as you might be on Riot you are connected to IRC |
22:24:11 | dom96 | And you're not identified/registered so you're muted by default |
22:24:24 | zacharycarter[m] | I think there's a disconnect / lack of explanation regarding how you can use nimble much like NPM to create a set of tasks for managing a product |
22:24:49 | zacharycarter[m] | ah - okay, thank you - I need to set up auto-register w/ nickserv I guess or just get a IRC client, because this does suck |
22:25:08 | zacharycarter[m] | sorry I meant project not product |
22:27:26 | dom96 | It's fine, just don't change your nickname and you'll be fine |
22:27:39 | dom96 | In fact, let me just exempt all of matrix.org |
22:29:34 | dom96 | Okay, hopefully that works |
22:29:51 | zacharycarter[m] | 👍thank you |
22:33:26 | * | Guest81029 joined #nim |
22:37:48 | * | Guest81029 quit (Remote host closed the connection) |
22:39:40 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:44:27 | * | Cork28 joined #nim |
22:45:29 | * | Cork28 quit (Remote host closed the connection) |
22:46:11 | * | smt quit (Ping timeout: 244 seconds) |
22:48:53 | * | zeroed joined #nim |
22:53:11 | * | janus19 joined #nim |
22:55:05 | * | zeroed quit (Ping timeout: 276 seconds) |
23:01:05 | * | janus19 quit (Ping timeout: 240 seconds) |
23:03:39 | * | weaksauce15 joined #nim |
23:06:49 | zachk | im getting this error "could not load: SDL2_gfx.dll" when I use the sdl_gfx from sdl2 or sdl2_nim, im using msys2, I have sdl2_gfx installed manually from source, I also tried the pacman version, I even downloaded the dll and put it different places, how do I get it working? |
23:10:10 | * | luke-jr6 joined #nim |
23:11:30 | * | luke-jr6 quit (Read error: Connection reset by peer) |
23:11:53 | * | weaksauce15 quit (Ping timeout: 260 seconds) |
23:28:14 | * | okdas joined #nim |
23:29:52 | * | okdas quit (Killed (Sigyn (Spam is off topic on freenode.))) |
23:32:42 | * | acronix8 joined #nim |
23:33:27 | * | pwntus quit (Ping timeout: 240 seconds) |
23:33:57 | * | pwntus joined #nim |
23:38:35 | * | acronix8 quit (Ping timeout: 240 seconds) |
23:39:13 | * | Cthalupa quit (Ping timeout: 248 seconds) |
23:40:23 | FromDiscord | <exelotl> zachk: have you tried putting it in the same folder as your compiled executable? is the name correct (SDL2_gfx.dll not libSDL2_gfx.dll)? could it be a 32 bit vs 64 bit issue? |
23:40:51 | zachk | not sure, I tried the same directory gave a slightly different complaint |
23:40:51 | zachk | night |
23:40:55 | * | zachk quit (Quit: Leaving) |
23:46:40 | * | shentino20 joined #nim |
23:48:47 | * | shentino20 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
23:50:02 | * | poxifide24 joined #nim |
23:53:24 | * | dp315 joined #nim |
23:53:57 | * | poxifide24 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
23:55:01 | * | dp315 quit (Remote host closed the connection) |