00:06:45 | * | fjvallarino joined #nim |
00:14:23 | * | donlzx joined #nim |
00:17:27 | * | user1101 quit (Ping timeout: 268 seconds) |
00:19:08 | * | user1101 joined #nim |
00:27:27 | * | dddddd quit (Read error: Connection reset by peer) |
00:32:32 | * | PMunch quit (Quit: Leaving) |
00:37:01 | * | gmpreussner_ quit (Quit: kthxbye) |
00:41:50 | * | user1101 quit (Ping timeout: 276 seconds) |
00:51:39 | * | fjvallarino quit (Remote host closed the connection) |
00:52:27 | * | rockcavera quit (Remote host closed the connection) |
01:28:18 | * | fjvallarino joined #nim |
01:31:10 | * | find0x90 joined #nim |
01:33:49 | * | user1101 joined #nim |
01:44:41 | dvn | Araq: if nim doesn't care, then any idea where the error could be coming from, or at least how to get that path '/gnu/st' to expand? |
02:24:39 | * | arecaceae quit (Remote host closed the connection) |
02:25:31 | * | arecaceae joined #nim |
02:35:16 | * | arecaceae quit (Read error: Connection reset by peer) |
02:35:41 | * | arecaceae joined #nim |
03:03:25 | FromGitter | <kayabaNerve> Still need help install Nim devel on my Windows machine :P |
03:03:37 | FromGitter | <kayabaNerve> koch.nim(24, 3) Error: cannot open 'os' |
03:15:10 | FromGitter | <kayabaNerve> NVM. Found the error. Sorry. |
03:30:25 | * | gangstacat quit (Quit: Ĝis!) |
03:33:05 | * | lompik joined #nim |
03:42:14 | FromGitter | <kayabaNerve> @Varriount I switched to nimcrypto. I am now on devel. Same issue |
03:45:54 | * | user1101 quit (Quit: user1101) |
03:46:53 | * | Elronnd\srn is now known as Elronnd |
03:47:38 | FromGitter | <metasyn> hi nimsters~ ⏎ ⏎ @mratsim was suggesting adding a prefix sum to arraymancer, and it made me dig a little more into how parallelism works with nim... I have a feeling I'm doing something completely wrong... I tried to implement a prefix sum here: https://gist.github.com/metasyn/187d6676960f982149f7bf55d99095fc but it ends up being considerably slower than a naive for loop |
03:53:27 | FromGitter | <metasyn> I wasn't sure how to use a parallel block here ^ since I was getting an error that it can't check the array bounds. I'm tried to dig into what `||` actually does, and I realized I might have to add an annotation to it |
03:54:20 | FromGitter | <metasyn> anyhow any pointers or examples of other people doing things in parallel in nim would be appreciated :) |
03:54:27 | FromGitter | <kayabaNerve> @Varriount I tried Windows, Clang, Nim Devel, Nimcrypto |
03:54:28 | FromGitter | <kayabaNerve> Same |
03:54:30 | FromGitter | <kayabaNerve> Issue |
03:56:20 | FromGitter | <kayabaNerve> The current repo, and config in it, is what I'm using. I'm compiling solely via `nim c -r src/main.nim`. |
04:06:42 | * | gangstacat joined #nim |
04:23:04 | shashlick | kabayaNerve: a gist might help |
04:26:30 | FromGitter | <kayabaNerve> shashlick: I've had this issue for 2 days. It works for Varriount as is. I switched to his environment, ignoring possibly OS. It doesn't work for me. |
04:26:50 | FromGitter | <kayabaNerve> Here's the file: https://github.com/kayabaNerve/Ember/blob/master/src/Wallet/Address.nim |
04:27:25 | FromGitter | <kayabaNerve> Traceback (most recent call last) ⏎ main.nim(8) main ⏎ Wallet\PublicKey.nim(31) $ ⏎ Nim\lib\system\gc.nim(475) newObj ⏎ Nim\lib\system\alloc.nim(768) rawAlloc ... [https://gitter.im/nim-lang/Nim?at=5b38582c81816669a42601aa] |
04:27:37 | FromGitter | <kayabaNerve> As far as I can tell, it's from the string concatenation. |
04:28:27 | zacharycarter | maybe run it through a debugger? |
04:28:30 | FromGitter | <kayabaNerve> verbosity 2 says that the dec(digits) in Base58.nim is not GC safe, and those warnings are cascading up to this, but as far as I can tell it is, and that's not the issue. |
04:30:57 | zacharycarter | dec is compiler magic |
04:31:08 | zacharycarter | not sure if it's gcsafe |
04:31:17 | zacharycarter | it doesn't raise any side effects |
04:32:44 | FromGitter | <kayabaNerve> I compiled with --debuginfo and it GDB says No source file named `src\Wallet\PublicKey.nim`. I first tried PublicKey.nim |
04:33:04 | FromGitter | <kayabaNerve> I just use it because there's no -- and it's better than writing -= 1 |
04:35:39 | zacharycarter | ``` |
04:35:46 | * | zacharycarter sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/CMuBihnyRBEEdIxoaDyUWeLv > |
04:35:46 | zacharycarter | compiles though |
04:48:27 | * | mitai quit (Ping timeout: 240 seconds) |
04:49:27 | * | barelyMalicious joined #nim |
04:49:47 | barelyMalicious | @kayabaNerve looks like a gc bug to me |
04:50:01 | * | brainproxy quit (Ping timeout: 268 seconds) |
04:50:04 | barelyMalicious | because it works with `gc=markandsweep` in the nim.cfg |
04:50:06 | * | find0x90 quit (Quit: find0x90) |
04:54:48 | * | barelyMalicious quit (Quit: Page closed) |
04:55:09 | zacharycarter | you should add a nimble file to your project to make it easier to compile |
04:55:55 | zacharycarter | or something - I can't satisfy the nimcrypto depencency without it throwing up at me when I try to compile |
04:56:29 | * | barelyMalicious joined #nim |
04:57:02 | barelyMalicious | zacharycarter: `nimble install nimcrypto` and then change `import nimcrypto/nimcrypto` to `import nimcrypto` |
04:57:27 | barelyMalicious | in src/lib/sha512.nim |
04:58:02 | barelyMalicious | same for SECP256K1 in `SECP256K1Wrapper.nim` |
04:59:25 | zacharycarter | runs fine on my machine |
04:59:45 | zacharycarter | Varriount and I are both on OSX FYI |
05:00:05 | barelyMalicious | I am on windows, and it works on --gc=markandsweep only |
05:00:26 | zacharycarter | I doubt it's a gc bug |
05:00:51 | zacharycarter | I'd be curious to see a stacktrace / more error information |
05:01:31 | zacharycarter | kayabaNerve: you need to compile with debug and lineinfo flags |
05:02:19 | barelyMalicious | ``` |
05:02:39 | barelyMalicious | https://pastebin.com/Shpbftg0 |
05:02:54 | * | donlzx quit (Quit: Leaving) |
05:02:56 | zacharycarter | ``` ✘ zachcarter@A-TX39FHTD6 ~/projects/Ember master ● nim c --debuginfo --lineDir:on foo.nim``` |
05:03:48 | zacharycarter | I dunno I need more info than that |
05:04:05 | zacharycarter | like where in the program's execution is that happening |
05:04:20 | zacharycarter | I'll try to compile this on openbsd |
05:04:21 | barelyMalicious | gdb gives - https://pastebin.com/Shpbftg0, https://pastebin.com/8WbfPrTY |
05:04:26 | zacharycarter | actually nm |
05:05:19 | barelyMalicious | zacharycarter: The second link has backtrace ^^^ |
05:05:35 | zacharycarter | what OS are you running this on? |
05:05:43 | barelyMalicious | Windows 10 x64 |
05:05:55 | barelyMalicious | using default gc |
05:06:08 | barelyMalicious | and nim latest from devel |
05:06:52 | zacharycarter | I don't think the GC has anything to do with it - it's not uncommon to run into errors like these when you are binding with C |
05:07:03 | zacharycarter | you need to check all your proc signatures / type declarations |
05:08:26 | zacharycarter | if you're not wrapping any C - if you're calling Nim code that does - make sure you're passing in the right parameters |
05:09:07 | zacharycarter | and since it appears the code works on OSX - I'd find out the differences between what code is executing on OSX vs Windows |
05:09:17 | zacharycarter | because obviously - there's an issue there |
05:10:16 | zacharycarter | Or - if you don't care about what GC you use - just use markandsweep |
05:10:20 | zacharycarter | since that seems to be fine |
05:11:18 | zacharycarter | although I'm sure there's something waiting to explode somewhere regardless of the GC implementation you're using :P |
05:12:00 | FromGitter | <Varriount> barelyMalicious: Did you use c2nim to create the C binding? |
05:12:08 | * | donlzx joined #nim |
05:13:14 | zacharycarter | Varriount: I rode my new toy around today - https://onewheel.com/ - that thing |
05:14:22 | barelyMalicious | @Varriount I just cloned his repo |
05:19:18 | FromGitter | <Varriount> zacharycarter: I guess my first question would be how it compares to just riding an electric bike. |
05:19:52 | zacharycarter | I think it's like riding an electric snowboard |
05:20:00 | zacharycarter | mixed with a segway |
05:20:11 | zacharycarter | it's weird |
05:20:22 | * | brainproxy joined #nim |
05:20:53 | zacharycarter | but very fun |
05:20:57 | zacharycarter | I dropped off a curb earlier - felt just like skateboartding |
05:21:02 | zacharycarter | I dropped off a curb earlier - felt just like skateboarding |
05:22:34 | FromGitter | <Varriount> barelyMalicious == Luke Parker ? |
05:23:43 | FromGitter | <Varriount> @kayabaNerve Did you get your git setup fixed? Or the nimcrypto install working? |
05:24:40 | barelyMalicious | Varriount: yes |
05:24:52 | zacharycarter | @varriount I might ride it to work on Monday 😀 |
05:25:29 | barelyMalicious | AFAICT the issue resides in `src/lib/RNG.nim` inside `when defined(windows)` |
05:25:36 | FromGitter | <Varriount> zacharycarter: Just be careful of pedestrians. |
05:25:49 | zacharycarter | lol |
05:26:07 | zacharycarter | well - it goes offroad |
05:26:11 | zacharycarter | on grass and dirt |
05:26:15 | FromGitter | <Varriount> barelyMalicious: Let me look at that code, one second. |
05:26:23 | zacharycarter | so I can just get real close to them - and then swerve out of the way |
05:26:34 | FromGitter | <Varriount> zacharycarter: How fast does it go? |
05:26:53 | zacharycarter | up to 20 mph |
05:26:59 | FromGitter | <Varriount> Not bad. |
05:27:03 | zacharycarter | err sory |
05:27:05 | zacharycarter | 19 mph |
05:27:09 | zacharycarter | yeah |
05:27:11 | FromGitter | <Varriount> I'd probably prefer an electric bike though. |
05:27:26 | FromGitter | <Varriount> (For long range, non-care commute) |
05:27:29 | zacharycarter | yeah - they're also very cool but way more $ |
05:27:32 | FromGitter | <Varriount> *non-car |
05:27:39 | zacharycarter | and this is more of a toy I can take to the beach and stuff |
05:27:41 | zacharycarter | or snow |
05:27:49 | barelyMalicious | Varriount: I have the code which reproduces the issue here https://pastebin.com/TaY0P0GV |
05:27:50 | zacharycarter | and also ride to work :D |
05:28:12 | FromGitter | <Varriount> barelyMalicious: Thankfully I also have a Windows laptop, though it doesn't have Nim on it yet. |
05:28:38 | FromGitter | <Varriount> zacharycarter: What have you been up to? |
05:29:54 | zacharycarter | selling my house |
05:30:13 | zacharycarter | and went on a few camping trips |
05:30:16 | zacharycarter | that's been eating up all my time :/ |
05:30:32 | zacharycarter | I'm currently playing with OpenBSD and thinking about moving the Nim playground to it - instead of using Docker |
05:30:36 | zacharycarter | how about you? |
05:31:02 | FromGitter | <Varriount> Well, I've been working on an independent study course for my college. |
05:31:05 | zacharycarter | Did your finals go well? |
05:31:14 | FromGitter | <Varriount> Essentially you meet with a professor, agree on a project, then do it. |
05:31:20 | * | Trustable joined #nim |
05:31:23 | zacharycarter | oh cool |
05:31:26 | FromGitter | <Varriount> Yeah, they went well. Only one more course of German to go. |
05:31:32 | zacharycarter | have you picked yours yet? |
05:31:38 | FromGitter | <Varriount> For my project, I'm writing a command line shell. |
05:32:08 | FromGitter | <Varriount> Nothing as full-featured as bash, but something that does basic command execution, file redirection, and possibly functions. |
05:32:09 | zacharycarter | awesome :D |
05:32:18 | zacharycarter | sounds fun |
05:32:28 | FromGitter | <Varriount> Yeah, I'm a bit behind on it though. |
05:33:03 | FromGitter | <Varriount> barelyMalicious: It looks like the Windows wrappers for those functions may be inaccurate. |
05:33:21 | FromGitter | <codenoid> how to install nim in OpenBSD |
05:33:59 | zacharycarter | Just install it? |
05:34:17 | zacharycarter | I can get Nim installed on OpenBSD fine - I just can't get Nimble or Choosenim or any tooling installed :/ |
05:34:32 | FromGitter | <codenoid> the openbsd package is outdated version |
05:34:33 | FromGitter | <codenoid> 1) 16 |
05:34:39 | FromGitter | <codenoid> it so old,, |
05:34:47 | zacharycarter | compile it from source |
05:34:52 | FromGitter | <Varriount> zacharycarter: Why won't the tooling work? |
05:34:52 | zacharycarter | there are instructions on the github repo |
05:35:17 | zacharycarter | dunno :/ with devel nimble fails to install because it can't find compiler/ast |
05:35:29 | zacharycarter | choosenim fails for some other reason |
05:35:32 | zacharycarter | I've tried installed nim in /usr/local/lib/nim |
05:35:51 | zacharycarter | as well as where I usually install it on nix and tried setting the env var NIM_PREFIX_DIR or whatever |
05:35:54 | zacharycarter | nothing seems to work :/ |
05:37:25 | * | brainproxy quit (Ping timeout: 256 seconds) |
05:38:35 | zacharycarter | NIM_LIB_PREFIX |
05:41:04 | barelyMalicious | Varriount: Yeah looks like that. But then why is it running on markandsweep? I have no idea. Anyone experienced with winapi and nim's gc look at this issue. |
05:42:03 | FromGitter | <Varriount> barelyMalicious: When things like memory corruptions occur, whether they actually cause a program to crash depends on a number of things. |
05:42:21 | barelyMalicious | Varriount: barelyMalicious == Luke Parker ? No. barelyMalicious == (barelyMalicious (or nc-x or alpha)) && kayabaNerve == Luke Parker. I was just trying to debug |
05:42:35 | FromGitter | <Varriount> Especially code layout and what is currently on the heap and stack. |
05:42:45 | * | Vladar joined #nim |
05:42:52 | FromGitter | <Varriount> Ah, ok. |
05:42:54 | barelyMalicious | Well i gtg. Will be back later. |
05:43:05 | * | barelyMalicious quit (Quit: Page closed) |
05:55:46 | FromGitter | <Varriount> barelyMalicious, @kayabaNerve : https://gist.github.com/Varriount/d729f16913750a3f935790d5a1f125b3 |
06:02:33 | FromGitter | <Varriount> Hrm, Nim's osproc module doesn't appear to allow passing file handles directly to the subprocess. |
06:13:24 | * | miran joined #nim |
06:23:43 | * | Elronnd quit (Quit: leaving) |
06:23:58 | * | elronnd joined #nim |
06:24:05 | * | elronnd is now known as Elronnd |
06:36:09 | * | brainproxy joined #nim |
06:57:05 | * | brainproxy quit (Ping timeout: 248 seconds) |
07:02:01 | * | Trustable quit (Remote host closed the connection) |
07:40:57 | * | nkaramolegos[m] left #nim ("User left") |
07:43:32 | * | themagician joined #nim |
07:53:37 | * | matic joined #nim |
07:54:38 | * | brainproxy joined #nim |
07:56:35 | * | dddddd joined #nim |
08:22:27 | * | brainproxy quit (Ping timeout: 240 seconds) |
08:34:19 | * | TakeYourFreedom joined #nim |
08:46:25 | * | matic quit (Quit: Leaving) |
08:49:35 | * | brainproxy joined #nim |
09:01:37 | * | rauss quit (Read error: Connection reset by peer) |
09:04:59 | * | rauss joined #nim |
09:11:12 | * | gangstacat quit (Remote host closed the connection) |
09:18:46 | * | brainproxy quit (Ping timeout: 265 seconds) |
09:19:15 | * | arecaceae quit (Remote host closed the connection) |
09:19:39 | * | arecaceae joined #nim |
09:21:49 | * | gangstacat joined #nim |
09:48:38 | * | brainproxy joined #nim |
09:50:24 | * | TakeYourFreedom quit (Quit: Page closed) |
10:17:32 | * | brainproxy quit (Ping timeout: 255 seconds) |
10:29:05 | * | Ven`` joined #nim |
10:33:23 | * | Ven`` quit (Client Quit) |
10:44:34 | * | elrood joined #nim |
10:45:37 | Yardanico | Hmm, is this a regression or just new behaviour? https://gist.github.com/Yardanico/29551ba4c6c5d05989df39610d890689 |
10:46:05 | Yardanico | array is defined as "array[uint8.high, int]", so indexes are of type uint8, right? but error message says "Error: type mismatch: got <array[0..254, int], int, int literal(0)>" |
10:49:12 | Yardanico | and this code worked before :P |
10:49:16 | Yardanico | (it's from nimgame2) |
10:50:37 | * | brainproxy joined #nim |
10:52:47 | FromGitter | <Araq> regression, yummy. |
10:53:48 | Yardanico | it can be shortened to two lines |
10:54:47 | Yardanico | or not, hmm |
10:55:21 | skrylar | so gi18n.h contains some wierd names like _() and NC_() which are not entirely valid nim identifiers; how should the gettext markers be dealt with |
10:55:39 | Yardanico | it doesn't work in 0.18.0 either, that's probably not a bug (or I don't know) |
10:55:58 | * | yglukhov[i] joined #nim |
10:57:14 | FromGitter | <Araq> it's a bug |
11:03:51 | * | gb00s quit (Remote host closed the connection) |
11:09:10 | * | yglukhov[i] quit (Remote host closed the connection) |
11:19:45 | zacharycarter | Should I file a bug for nimble failing to install on obsd on devel nim? - https://gist.github.com/zacharycarter/313f528bbd6f66651d39f18e73d3144c |
11:20:00 | zacharycarter | nimsuggest also fails apparently |
11:22:50 | * | brainproxy quit (Ping timeout: 260 seconds) |
11:27:28 | * | brainproxy joined #nim |
11:31:06 | dom96 | zacharycarter: What directory are you running that in? |
11:32:34 | zacharycarter | well I've tried cloning nim to where I usually do on nix |
11:32:41 | * | mitai joined #nim |
11:32:41 | zacharycarter | ~/projects/nim |
11:32:50 | zacharycarter | but I've also tried cloning it to /usr/local/lib/nim |
11:33:05 | zacharycarter | runing ./koch nimble from either place seems to have no effect |
11:33:13 | zacharycarter | I've also tried setting the NIM_LIB_PREFIX env variable - or whatever it is |
11:33:22 | zacharycarter | no joy that way either |
11:35:18 | dom96 | What's inside ~/projects/nim? |
11:35:25 | dom96 | Is it a clone of the Nim repo? |
11:35:28 | zacharycarter | yeah |
11:35:29 | zacharycarter | devel branch |
11:36:01 | * | brainproxy quit (Ping timeout: 248 seconds) |
11:36:02 | dom96 | weird |
11:36:41 | zacharycarter | yeah :( |
11:45:35 | FromGitter | <Araq> OpenBSD? |
11:45:52 | FromGitter | <Araq> maybe os.getAppDir() fails on it |
11:46:06 | FromGitter | <Araq> try it please for. |
11:46:14 | FromGitter | <Araq> a short example program. |
11:46:17 | zacharycarter | sure |
11:47:34 | zacharycarter | seems to run fine |
11:48:14 | FromGitter | <Araq> add Nim to the PATH |
11:48:34 | zacharycarter | okay |
11:55:50 | * | gb00s joined #nim |
11:56:20 | * | Perkol joined #nim |
12:02:05 | * | TheLemonMan joined #nim |
12:02:51 | TheLemonMan | Yardanico, uint8.high returns a uint8 and you can't implicitly convert a int index to uint8 (see isConvertibleToRange) |
12:03:13 | Yardanico | TheLemonMan, but @Araq says this is a bug, so I'm confused :) |
12:03:25 | Yardanico | at least it's a bug with error messages |
12:05:21 | TheLemonMan | uh, yeah, the range should really print out the type of the endpoints |
12:07:10 | Perkol | Processes started by osproc.startProcess is ended after starting exe is killed. Is there a way to create processes which stay even after starting exe is killed? |
12:10:51 | zacharycarter | hrm - tried adding nim to path and making sure my terminal emulator was run as login shell - no difference |
12:11:14 | zacharycarter | I did notice that if I tried to run `koch nimble` from outside the nim directory, I got very different errors |
12:16:53 | FromGitter | <gogolxdong> @shalick yes, I missed ./koch boot -d:release ,it works. |
12:17:41 | FromGitter | <Araq> hey, TheLemonMan, you're doing superb work :-) |
12:18:17 | FromGitter | <Araq> (if you're LemonBoy) |
12:18:57 | TheLemonMan | that's a safe bet heh thank you for putting up with my slew of PRs :) |
12:21:14 | TheLemonMan | I wish I could find out why #8095 fails on the CI, I ran out of ideas |
12:24:16 | zacharycarter | well - I got it to compile |
12:24:27 | zacharycarter | nimble that is - not sure what the trick was - but at least it's built now :D |
12:33:14 | FromGitter | <Araq> I'll look at #8095 tonight or tomorrow |
12:37:11 | * | brainproxy joined #nim |
12:44:31 | dom96 | Perkol: Good question. I don't think that's possible with `osproc`, but you can probably use osproc + POSIX/WinAPI to achieve it |
12:44:44 | dom96 | If you create a forum thread you might get some more pointers |
12:46:11 | miran | @mratsim are you here maybe? |
12:46:58 | * | themagician quit () |
12:49:44 | * | SenasOzys joined #nim |
12:50:56 | * | SenasOzys quit (Remote host closed the connection) |
12:51:16 | * | SenasOzys joined #nim |
13:01:46 | FromGitter | <Araq> dom96: there is an RFC/feature request to enable this for osproc. |
13:08:47 | * | brainproxy quit (Ping timeout: 276 seconds) |
13:10:34 | * | yglukhov[i] joined #nim |
13:14:23 | * | yglukhov[i] quit (Remote host closed the connection) |
13:14:42 | * | yglukhov[i] joined #nim |
13:14:53 | * | yglukhov[i] quit (Remote host closed the connection) |
13:30:04 | * | skrylar quit (Remote host closed the connection) |
13:31:06 | * | yglukhov[i] joined #nim |
13:38:52 | * | yglukhov[i] quit (Remote host closed the connection) |
13:39:01 | * | brainproxy joined #nim |
14:00:27 | * | arecaceae quit (Remote host closed the connection) |
14:00:50 | * | arecaceae joined #nim |
14:04:51 | * | brainproxy quit (Ping timeout: 240 seconds) |
14:07:59 | * | Perkol quit (Remote host closed the connection) |
14:20:12 | * | dddddd quit (Ping timeout: 256 seconds) |
14:23:28 | * | codevance[m] sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/MOctwfEsEDcGhIIKNglrWcrl > |
14:28:29 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
14:29:11 | FromGitter | <Araq> no. |
14:31:00 | * | dorelix joined #nim |
14:32:32 | codevance[m] | T_T |
14:40:25 | * | brainproxy joined #nim |
15:00:45 | dom96 | gokr: your gitlab instance is dead/dying https://gitlab.3dicc.com/gokr/lapp |
15:02:46 | * | brainproxy quit (Ping timeout: 264 seconds) |
15:11:19 | * | ashleyk quit (Remote host closed the connection) |
15:11:39 | * | ashleyk joined #nim |
15:17:40 | * | find0x90 joined #nim |
15:34:57 | FromDiscord | <Epictek> Any Karax experts here? |
15:35:08 | dom96 | Epictek: sure |
15:36:09 | FromDiscord | <Epictek> I made a dom but I want to add the data-initial parameter to it like this `figure(class = "avatar avatar-lg", data-initial="XY")` |
15:36:41 | dom96 | `data-initial` |
15:36:53 | FromDiscord | <Epictek> `By doing that I get the error Error: Expected a node of kind nnkIdent, got nnkInfix` |
15:37:45 | FromDiscord | <dom> \`data-initial\` |
15:37:56 | FromDiscord | <dom> possibly |
15:38:10 | FromDiscord | <dom> if that's not the problem then I need to see more of your code |
15:38:20 | * | fjvallarino quit (Remote host closed the connection) |
15:38:26 | * | fjvallarino joined #nim |
15:38:26 | * | brainproxy joined #nim |
15:40:01 | * | edcragg quit (Quit: ZNC - http://znc.in) |
15:40:16 | FromDiscord | <Epictek> By doing that I get the error `Error: Expected a node of kind nnkIdent, got nnkInfix` |
15:40:59 | * | edcragg joined #nim |
15:41:39 | FromGitter | <Araq> use the backticks like Dom is trying to tell you. |
15:42:11 | Yardanico | @Araq dom told Epictek to use backticks in the first message, but Discord uses `backticks` for markdown |
15:42:16 | FromDiscord | <dom> or you can try `"data-initial"` too |
15:42:38 | dom96 | FromDiscord really sucks btw |
15:42:46 | dom96 | That second message was Epictek just editing his original |
15:42:57 | miran | btw, i regularly use backticks even on irc to denote the code |
15:43:13 | miran | i had no idea that dom96 was trying to say to use the backticks |
15:43:23 | Yardanico | dom96, FromGitter doesn't even send edits :D |
15:43:23 | FromGitter | Yardanico, I'm a bot, *bleep, bloop*. I relay messages between here and https://gitter.im/nim-lang/Nim |
15:43:55 | dom96 | Epictek: Here is an example: https://github.com/nim-lang/nimforum/blob/master/src/frontend/postbutton.nim#L138 |
15:45:34 | FromDiscord | <Epictek> Ah that backticks worked, thanks @dom |
15:47:53 | FromDiscord | <Epictek> @Yardanico what ever happened to that Discord bot you were making? |
15:48:04 | Yardanico | FromDiscord, well, it's still in progress :) |
15:49:19 | dom96 | This is what summer time is for. Shut all your windows, doors and curtains. Work on Nim until you can't stay awake no more, wake up, repeat ;) |
15:50:20 | miran | that either means we'll see v1.0 in autumn, or you'll get veeeery sidetracked :D :D |
15:50:40 | miran | unfortunately, the latter option seems much more probable :D |
15:50:46 | FromDiscord | <Epictek> Yardanico: Is the code public to help contribute to or are you waiting for it to finished first? |
15:50:58 | FromDiscord | <Epictek> *to be |
15:51:03 | Yardanico | FromDiscord, it's not yet public sadly |
15:51:15 | FromDiscord | <Epictek> Fair enough |
15:51:46 | Yardanico | dom96, I'm still waiting for the results for my last exam (physics) |
15:51:55 | dom96 | Why? |
15:52:43 | Yardanico | because I've done it on 20th of June and almost every 11th-grader in russia does them at the same day (that's why it's USE - United State Exam) |
15:53:04 | dom96 | Okay, but is that a reason to not do some Nim coding? |
15:53:14 | Yardanico | dom96, well, of course I can do some nim coding :) |
15:53:20 | FromDiscord | <2vg> lel |
15:53:27 | miran | btw. Yardanico, shouldn't you be watching the football game right now? |
15:53:49 | Yardanico | miran, it was in background but I'm not really a football fan :) |
15:55:50 | * | dom96 graduated yesterday :) |
15:56:25 | Yardanico | dom96, hopefully I'll graduate 4 years later :) |
15:56:26 | FromDiscord | <2vg> awesome |
15:57:08 | miran | congrats dom96! welcome to the grown-ups world! :) |
15:57:16 | dom96 | Thanks :) |
15:57:25 | miran | what now? |
15:57:31 | dom96 | Not looking forward to being old though :P |
15:57:55 | miran | dom96: well, you'll become old in 2026. until then, enjoy your youth |
15:58:31 | dom96 | My plan is to move to London at the end of August and work at FB |
15:58:54 | Yardanico | you want to replace PHP+HHVM with Nim? ( ͡° ͜ʖ ͡°) |
15:58:59 | miran | ...but the real plan is to get FB to sponsor nim, right? :D |
15:59:04 | dom96 | In the meantime, I'll probably be chasing Nim 1.0 and maybe some other fun Nim projects :) |
15:59:37 | dom96 | Yardanico: I'll certainly try to replace their C++/Python backends |
15:59:41 | FromDiscord | <2vg> sponser...! |
15:59:47 | Yardanico | sposner? :) |
15:59:47 | dom96 | Facebook isn't all PHP nowadays |
15:59:55 | Yardanico | @2vg sponser? what? :) |
16:00:42 | dom96 | ooh, almost 400 survey responses |
16:00:51 | shashlick | dom96: please squeeze in some time on choosenim so that I can continue work on it before the next release 😁 |
16:01:19 | * | brainproxy quit (Ping timeout: 256 seconds) |
16:02:20 | shashlick | My biweekly #nag contribution |
16:11:34 | * | ashleyk_ joined #nim |
16:14:21 | * | ashleyk quit (Remote host closed the connection) |
16:28:53 | * | brainproxy joined #nim |
16:41:49 | FromGitter | <xmonader> @dom96 for FB at what position? do u wanna tell me a bit about ur prepration process? |
16:43:15 | FromGitter | <rayman22201> Congratulations @dom96! |
16:44:43 | * | donlzx quit (Remote host closed the connection) |
16:46:00 | FromGitter | <ephja> I'm trying to think of ways to reduce the chances of accidental pointer buffer writes. I currently have a (len, buf) view type, as well as a (len, readOnlyBuf) read only type. it will be difficult to write to the buffer accidentally with a name like that. write tracking on imported functions would be useful. you wouldn't be able to verify the semantics, but the alternative is having no write information |
16:46:40 | * | nsf joined #nim |
16:51:06 | FromGitter | <rayman22201> @ephja would this work? https://nim-lang.org/docs/manual.html#effect-system-tag-tracking |
16:51:50 | * | brainproxy quit (Ping timeout: 260 seconds) |
16:52:57 | FromGitter | <rayman22201> The tagging would |
16:53:28 | FromGitter | <rayman22201> Be at the procedure level not the type level. Which isn't ideal |
16:57:21 | FromGitter | <ephja> yeah it's not granular enough, but it's a start |
17:02:41 | FromGitter | <xmonader> From the pascal infulence on nim, and it was written in pascal first, do you guys think rad tool like lazarus or even consumption of lcl is a good idea? |
17:08:28 | codevance[m] | Are you talking about gui builders? |
17:09:23 | FromGitter | <xmonader> I don't like the old way of generating specific code, i prefer glade/qtdesigner of xml way, but sure |
17:09:50 | FromGitter | <xmonader> actually the relation with pascal was one of the reasons i wanted to give nim a try |
17:15:08 | FromGitter | <mratsim> @metasyn, Data Parallel computing like for tensors with openMP is very different from other form of parallel computing (especially task parallelism like you can do with threadpool). ⏎ ⏎ Y ou are probably hitting false sharing / bank conflicts like here: https://github.com/mratsim/Arraymancer/issues/134 |
17:31:18 | dvn | okay in my struggle to get nim packaged for Guix, i'm having trouble manipulating the internal search path |
17:31:28 | dvn | it seems to stick to the directory it was installed in |
17:31:30 | dvn | which is not good |
17:33:36 | FromGitter | <ephja> are things like gcc not in your path? |
17:35:30 | * | miran quit (Quit: Konversation terminated!) |
17:36:01 | FromGitter | <ephja> pretty much every package managers installs binaries in directories that are in the path by default, so I'm not sure what causes your issues |
17:37:43 | dvn | gcc is in my path, but it doesn't seem to matter -- it looks like it's getting unset |
17:38:59 | * | brainproxy joined #nim |
17:40:22 | dvn | why does the path get unset and reset at compile time? |
17:41:23 | * | yglukhov[i] joined #nim |
17:43:01 | dvn | Error: invocation of external compiler program failed. File exists |
17:43:04 | dvn | Additional info: Could not find command: '/gnu/st'. OS error: No such file or directory 17 |
17:43:17 | dvn | that's the error i'm getting from nim |
17:43:27 | dvn | why is that path getting cut off? |
17:43:34 | dvn | this one: '/gnu/st' |
17:47:50 | * | yglukhov_ joined #nim |
17:48:08 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
17:48:40 | FromGitter | <ephja> so running "gcc" from the prompt works, and it's symlinked to that? |
17:52:57 | * | fjvallarino quit (Remote host closed the connection) |
17:53:02 | dvn | the prompt == my shell? |
17:53:10 | FromGitter | <ephja> don't you think it's an issue with the package manager or something? |
17:53:11 | FromGitter | <ephja> yes |
17:53:46 | FromGitter | <ephja> anyway, I've installed GuixSD in case you want me to test something |
17:56:41 | dvn | well boths sides benefit from the package working |
18:02:04 | dvn | so the real issue is that after building nim, glibc + gcc are not in the path nim is using |
18:02:11 | dvn | they are in my user's path |
18:02:16 | dvn | just as nim is |
18:03:15 | dvn | i mean, this is my second day to work on this, but as far as I understand it, from looking a bit at the source and "nim dump", nim wants to achieve some kind of reliable path by setting it for themselves |
18:03:45 | dvn | and with this, you are assuming that every system is created equal |
18:04:37 | dvn | whereas the path at build and and runtime are different in Guix (and in Nix, for that matter) |
18:05:53 | * | brainproxy quit (Ping timeout: 248 seconds) |
18:08:44 | * | dddddd joined #nim |
18:11:53 | dvn | i think we will just have to read more of nim's source to understand it |
18:12:31 | dvn | the bit i said about the path being different at build and runtime is a bit of a red herring actually. it's more like the path is being reset at runtime for some reason |
18:12:36 | dvn | and i have yet to figure that out from reading the source |
18:18:00 | * | brainproxy joined #nim |
18:20:40 | * | askatasuna joined #nim |
18:23:09 | * | brainproxy quit (Ping timeout: 264 seconds) |
18:25:14 | FromGitter | <kayabaNerve> Thanks zacharycarter barelyMalicious @Varriount for all your help. I really appreciate it. ⏎ ⏎ I did try disabling threads in the config. That didn't make a difference. Just referring to the GDB pastebins... ⏎ ⏎ I don't care what GC I use. I just care it works on all problems. ... [https://gitter.im/nim-lang/Nim?at=5b391c8aa99e1e52b70d3e27] |
18:29:04 | * | fjvallarino joined #nim |
18:33:22 | * | yglukhov_ quit (Remote host closed the connection) |
18:33:23 | * | find0x90 quit (Quit: find0x90) |
18:39:34 | * | yglukhov[i] joined #nim |
18:46:18 | * | yglukhov_ joined #nim |
18:46:18 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
18:47:19 | * | brainproxy joined #nim |
18:52:27 | * | brainproxy quit (Ping timeout: 256 seconds) |
18:56:53 | * | CcxWrk quit (Remote host closed the connection) |
19:11:28 | * | lompik quit (Ping timeout: 256 seconds) |
19:15:01 | * | nsf quit (Quit: WeeChat 2.1) |
19:18:22 | * | fjvallarino quit (Remote host closed the connection) |
19:18:29 | * | fjvallarino joined #nim |
19:23:36 | * | Vladar quit (Quit: Leaving) |
19:28:28 | * | brainproxy joined #nim |
19:28:45 | FromGitter | <Varriount> @kayabaNerve Since you're using Windows, you must be using something like msys2 or msysgit? |
19:29:12 | FromGitter | <kayabaNerve> I get cygwin errors |
19:29:16 | FromGitter | <kayabaNerve> I never installed cygwin |
19:29:24 | FromGitter | <kayabaNerve> *missing cygwin dll |
19:29:26 | FromGitter | <kayabaNerve> I installed cygwin |
19:29:35 | FromGitter | <kayabaNerve> Missing DLL. I copied the DLLs over... |
19:30:37 | FromGitter | <Varriount> If you want, we could set up a screen sharing session of some kind this week, and I could try to fix the issue. I'm fairly experienced with the nuances of these programs. |
19:30:38 | FromGitter | <ephja> was it for the right architecture? |
19:30:45 | FromGitter | <ephja> DLL issues are such a ** |
19:31:05 | FromGitter | <kayabaNerve> I've found slightly buggy peace using GitHub Desktop and manual repo cloning. |
19:31:23 | FromGitter | <kayabaNerve> TBH I should just move the folders I have in my repo to the Nimble folder. Solve that. |
19:31:42 | FromGitter | <kayabaNerve> And I'm using SCM Git. |
19:31:51 | FromGitter | <kayabaNerve> https://git-scm.com |
19:32:12 | FromGitter | <Varriount> @kayabaNerve You can download the repositories manually and use `nimble install` on them |
19:35:05 | FromGitter | <kayabaNerve> Good to know |
19:35:12 | FromGitter | <kayabaNerve> I just manually installed them |
19:35:23 | FromGitter | <kayabaNerve> Oh. And I'm moving to nimcrypto sysrand |
19:38:27 | FromGitter | <Quelklef> So, in a `macro f(n: int): untyped = for i in 0 .. n: ...`, I'm being yelled at that `n` is a `NimNode`. |
19:38:57 | FromGitter | <Quelklef> but if I do `for i in 0 .. n.intVal`, assuming that `n` is a `NimNode` with kind `nnkIntLit`, I'm told that n has no intVal |
19:39:15 | FromGitter | <Quelklef> I can't even `assert(n.kind is nnkIntLit)` because n has no kind |
19:39:27 | FromGitter | <Quelklef> This seems to be contradictory. Is it a NimNode, or not? |
19:40:58 | FromGitter | <GULPF> if you want normal parameters in a macro you should use `static[int]` instead of `int`. No idea why intVal doesn't work though |
19:41:57 | FromGitter | <Quelklef> I'm an idiot, I think it's because I forgot to import macros |
19:42:03 | FromGitter | <Quelklef> thank you for the `static[]` tip |
19:43:16 | * | Perkol joined #nim |
19:43:35 | FromGitter | <Varriount> I use msys2 rather than cygwin, and even that's not being used as much due to the Bash on Windows feature. |
19:44:28 | Perkol | Hello. Anyone knows how on windows prevent executables from spawning command windows? |
19:44:59 | FromGitter | <Quelklef> ...in general, or with some Nim application? |
19:47:24 | Yardanico | Perkol, yes |
19:47:29 | FromGitter | <kayabaNerve> @Varriount I think I have both installed at this point... ⏎ ⏎ I switched to nimcrypto rand. I don't like the random function as much since array's are compile time sized and I have to cast[ptr array[0]], but it works with the regular GC. ⏎ ⏎ I also moved my Nimble packages out of lib. Anyone who gets my code will no longer have to edit my imports. [https://gitter.im/nim-lang/Nim?at=5b392fd160c387078354c178] |
19:47:43 | Yardanico | Perkol, --app:gui |
19:47:55 | FromGitter | <kayabaNerve> I really appreciate everyone's help. It means a lot so many people bothered to actually clone my code and work off it. |
19:48:15 | Yardanico | Perkol, also afaik you'll need to link user32 |
19:48:31 | Yardanico | because Nim will use windows GUI boxes for error messages (and stack traces) |
19:54:03 | FromGitter | <kayabaNerve> @Varriount Tell me if you want an ember vanity address *max vanity of one character*. |
19:54:05 | * | brainproxy quit (Ping timeout: 240 seconds) |
19:54:58 | * | yglukhov_ quit (Ping timeout: 264 seconds) |
19:58:55 | * | brainproxy joined #nim |
19:59:04 | * | sz0 joined #nim |
20:00:46 | * | SenasOzys quit (Ping timeout: 256 seconds) |
20:01:05 | * | yglukhov[i] joined #nim |
20:03:44 | * | brainproxy quit (Ping timeout: 256 seconds) |
20:04:33 | Perkol | Thanks, but it show error messages in window. Is there a way to make it completely quiet. |
20:04:35 | Perkol | ? |
20:04:58 | FromGitter | <kayabaNerve> try catch your entire program |
20:05:13 | FromGitter | <kayabaNerve> Don't ever use pointers of any kind in order to never cause any segfaults. |
20:06:25 | FromGitter | <kayabaNerve> (jokes aside, I don't know, it doesn't look to be possible) |
20:11:24 | * | SenasOzys joined #nim |
20:20:04 | * | yglukhov_ joined #nim |
20:22:14 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
20:26:20 | FromGitter | <Quelklef> How can I find the result of a bugged macro? |
20:26:24 | Yardanico | ehm? |
20:26:31 | FromGitter | <Quelklef> i.e. when `expandMacros` isn't applicable |
20:30:07 | dom96 | Perkol: You mean stack traces? |
20:32:06 | * | nsf joined #nim |
20:33:05 | FromGitter | <kayabaNerve> --stackTrace:on --excessiveStackTrace:on |
20:33:16 | FromGitter | <ephja> tried to link statically with a C library again. the C ecosystem is just too archaic for this |
20:33:21 | FromGitter | <kayabaNerve> Just referring to how to turn stack traces on; not if that's what you need. |
20:33:37 | FromGitter | <kayabaNerve> dom96: Congrats on graduating! High School or College? |
20:33:41 | dom96 | excessiveStackTrace? |
20:33:45 | dom96 | is that a thing? |
20:33:51 | FromGitter | <kayabaNerve> It's an option I found on the docs |
20:33:53 | dom96 | kayabaNerve: University |
20:34:10 | FromGitter | <ephja> @Quelklef try echoing the result |
20:34:19 | * | brainproxy joined #nim |
20:34:42 | FromGitter | <kayabaNerve> @ephja I find it best to write a C wrapper for what I need and then use Nim with that. No idea how that plays in with a statically linked dll though. |
20:34:44 | FromGitter | <ephja> possible after passing it to repr first. maybe there's a better way nowadays. things change fast |
20:35:15 | FromGitter | <ephja> then there's macros.treeRepr, macros.lispRepr etc |
20:35:20 | FromGitter | <kayabaNerve> dom96: Congrats again! I'm also strangely happy to hear you're not a 17 year old. |
20:35:53 | dom96 | kayabaNerve: Thanks :) |
20:36:30 | * | yglukhov_ quit (Ping timeout: 245 seconds) |
20:37:50 | federico3 | dom96: congrats! |
20:38:01 | FromGitter | <ephja> it usually doesn't take a long time to wrap everything, but doing that is nothing compared to linking statically and then trying to figure out the dependencies and their dependencies and so on, for every platform |
20:40:26 | FromGitter | <Quelklef> @ephja Inside the macro, or outside? Trying to echo inside the macro yells at me |
20:40:31 | * | skrzyp joined #nim |
20:41:53 | FromGitter | <kayabaNerve> dom96: https://nim-lang.org/docs/nimc.html |
20:41:58 | FromGitter | <kayabaNerve> excessive is on there. |
20:42:08 | FromGitter | <kayabaNerve> `stack traces use full file paths` |
20:42:30 | dom96 | That flag could use a better name |
20:43:27 | FromGitter | <kayabaNerve> I would merge it in with stack traces. |
20:43:54 | FromGitter | <kayabaNerve> It seems like a minor feature to have a whole flag for and there doesn't seem to be a reason not to want it, unless full means /home/user/Desktop... |
20:43:57 | FromGitter | <ephja> @Quelklef inside. pass any of those procs the node that you've constructed |
20:44:15 | dom96 | kayabaNerve: yes, that's what it means |
20:44:21 | FromGitter | <ephja> possibly the return value (result) |
20:44:48 | FromGitter | <kayabaNerve> In which case, if it's already printing project relevant names, it's pretty much pointless unless working with broken Nimble packages while they're inside the Nimble folder, which is pointless. |
20:44:58 | FromGitter | <kayabaNerve> But I don't have enough experience to really weigh in. |
20:45:51 | FromGitter | <Quelklef> @ephja Come again, about the procs? But I get an error "false Invalid node kind nnkIdentDefs for macros.``$``" when trying to echo one of my values |
20:47:23 | FromGitter | <ephja> @kayabaNerve right. sometimes I want to look at the source but I'm not sure where the module is located |
20:49:01 | FromGitter | <ephja> @Quelklef and if you echo node.repr? |
20:50:25 | FromGitter | <Quelklef> @ephja Not sure what you mean by "pass any ... constructed". But I wasn't using `.repr`, it's now working. Thank you! |
20:51:23 | FromGitter | <ephja> @kayabaNerve whether or not the stack trace is excessive is subjective :p |
20:51:44 | FromGitter | <kayabaNerve> But it says excessive in the name |
20:52:04 | FromGitter | <ephja> exactly. it's subjectively named :D |
20:52:31 | * | yglukhov[i] joined #nim |
20:52:33 | FromGitter | <kayabaNerve> But it objectively says excessive in the name |
20:52:38 | FromGitter | <kayabaNerve> Did it... lie to me? |
20:53:08 | FromGitter | <kayabaNerve> How do I sue Mr. Nim over this betrayal of trust? |
20:53:17 | FromGitter | <kayabaNerve> *I'll stop* |
20:55:22 | * | Perkol quit (Remote host closed the connection) |
20:58:41 | * | Entropic quit (Ping timeout: 248 seconds) |
20:58:48 | * | Entropic joined #nim |
20:59:13 | FromGitter | <Quelklef> ```code paste, see link``` ⏎ ⏎ Is this a bug? [https://gitter.im/nim-lang/Nim?at=5b3940a19b82c6701b99e66a] |
21:00:31 | FromGitter | <ephja> that does not compile for me |
21:00:44 | FromGitter | <Quelklef> huh |
21:00:46 | FromGitter | <Quelklef> what version? |
21:00:53 | FromGitter | <Quelklef> im 0.18.1 |
21:01:07 | FromGitter | <Quelklef> git hash bb23d903b6741c1697ac55f8ee54ff30a9b2cc49 |
21:01:22 | FromGitter | <kayabaNerve> Question. How do you get the git hash? |
21:01:23 | FromGitter | <ephja> very recent development version |
21:01:44 | FromGitter | <Quelklef> Me as well, less than a week... |
21:01:48 | FromGitter | <Quelklef> @kayabaNerve `nim -v` |
21:02:09 | FromGitter | <kayabaNerve> Compiles for me. I built from Github yesterday. |
21:02:21 | FromGitter | <Quelklef> Behaviour for you? |
21:02:36 | FromGitter | <kayabaNerve> > nim -v ⏎ Nim Compiler Version 0.18.1 [Windows: amd64] ⏎ Compiled at 2018-06-30 ⏎ Copyright (c) 2006-2018 by Andreas Rumpf ⏎ ... [https://gitter.im/nim-lang/Nim?at=5b39416c3d8f71623d53f333] |
21:02:42 | FromGitter | <kayabaNerve> No hash. |
21:03:04 | FromGitter | <kayabaNerve> As you said. ["b", "c"] |
21:03:14 | FromGitter | <Quelklef> Might be linux only...? |
21:03:20 | FromGitter | <kayabaNerve> I'm Windows. |
21:03:27 | FromGitter | <ephja> wait "Compiled at 2018-05-22" 🤔 |
21:03:30 | FromGitter | <Quelklef> Yeah I'm linux that'd what I'm saying |
21:03:31 | FromGitter | <ephja> time flies.. |
21:03:45 | FromGitter | <Quelklef> oh shoot it has compile date |
21:03:48 | FromGitter | <kayabaNerve> I've gotten git hashes before. Just not anymore. |
21:03:54 | FromGitter | <Quelklef> that'd really nice! im 06-27 |
21:04:00 | FromGitter | <Quelklef> Huh @kayabaNerve |
21:04:08 | FromGitter | <kayabaNerve> Yeah. Mine was yesterday lol. I get the same as yours. ["b", "c"] |
21:04:16 | FromGitter | <kayabaNerve> Is it automatically applying $? |
21:04:18 | FromGitter | <Quelklef> no |
21:04:29 | FromGitter | <Quelklef> it's the same with `varargs[string, ``$``]` though |
21:04:42 | FromGitter | <kayabaNerve> Why is it printing the array at all then? |
21:04:47 | FromGitter | <kayabaNerve> Shouldn't it be a type error? |
21:05:17 | FromGitter | <Quelklef> That's what I was thinking |
21:05:34 | FromGitter | <Quelklef> well I was actually expecting python-esque behavior, but was surprised it didn't error at me |
21:05:44 | FromGitter | <Quelklef> when it didn't do the expected behavior |
21:05:58 | FromGitter | <kayabaNerve> I added for y in x: ⏎ ⏎ ``` echo(y)``` [https://gitter.im/nim-lang/Nim?at=5b3942363c5abf52b6336913] |
21:06:09 | FromGitter | <kayabaNerve> See if $x was just printing the array due to a $ error or something |
21:06:16 | FromGitter | <Quelklef> And |
21:06:17 | FromGitter | <kayabaNerve> But that only prints b, c |
21:06:26 | FromGitter | <kayabaNerve> The varargs is ONLY that array |
21:06:33 | FromGitter | <kayabaNerve> Not just printing as that array |
21:06:36 | FromGitter | <Quelklef> I think I'm gonna open a bug report |
21:08:07 | FromGitter | <Quelklef> perhaps it's related to https://github.com/nim-lang/Nim/issues/7914? |
21:08:28 | FromGitter | <Quelklef> seems different enough for its own issue |
21:09:35 | FromGitter | <kayabaNerve> No. That seems like the same thing depending on how $[] works |
21:10:01 | FromGitter | <kayabaNerve> Stringifying the array fixed it |
21:10:19 | FromGitter | <kayabaNerve> That's the same issue just with an array, not a seq |
21:10:43 | FromGitter | <Quelklef> Well ofc stringifying the array fixed it |
21:11:06 | FromGitter | <Quelklef> then it goes from `f(string, array[n, string])` to `f(string, string)` which is consistent with the varargs type |
21:11:16 | FromGitter | <ephja> yes because then you pass it a varargs with one argument: the string representation of the array |
21:15:58 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
21:17:22 | * | yglukhov[i] joined #nim |
21:25:42 | FromGitter | <kayabaNerve> I'm not saying that wouldn't fix it. I'm saying if that did fix it, it's the same issue |
21:26:09 | FromGitter | <kindlychung> what is the equivalent of `import something as s` in python? |
21:26:25 | FromGitter | <Quelklef> @kindlychung pretty sure it's also `import something as s` |
21:28:43 | FromGitter | <kindlychung> Thanks. |
21:28:48 | FromGitter | <Quelklef> yup |
21:29:05 | * | yglukhov[i] quit (Ping timeout: 248 seconds) |
21:29:05 | * | dddddd quit (Ping timeout: 240 seconds) |
21:30:06 | * | dddddd joined #nim |
21:30:17 | FromGitter | <kayabaNerve> Yep |
21:30:38 | FromGitter | <kayabaNerve> Know that because sometimes my types with the same name as my file act up... There's also export and include. |
21:33:33 | FromDiscord | <Epictek> I've been having a lot of fun with Karax today but I realised I should focus on some of the backend for my project, then I realised that there are almost no ORMs for nim 😦 I don't want to write sql code if I can help it |
21:35:07 | dom96 | Then be the first to write a usable ORM package :) |
21:35:37 | FromDiscord | <Epictek> I wish I was competent enough to do that lol |
21:35:40 | FromGitter | <kayabaNerve> dom96: But he doesn't want to write SQL |
21:35:53 | FromGitter | <kayabaNerve> Actual Q. Nim web server versus, say, Express. |
21:35:57 | FromGitter | <kayabaNerve> (NodeJS) |
21:36:57 | * | yglukhov[i] joined #nim |
21:38:08 | FromDiscord | <Epictek> Tbh writing an ORM so I don't have to write a single line more of SQL is the kind of thing I'd do but only after a few beers |
21:38:50 | FromDiscord | <Epictek> Woot someone forked ormin a few days ago to add postgresql support |
21:39:14 | * | yglukhov_ joined #nim |
21:40:44 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
21:41:15 | FromGitter | <ephja> I've only used sqlalchemy I think. some things took ages to figure out. it's quite complex though but I'm sure a little static typing would have helped |
21:42:22 | FromDiscord | <Epictek> Flask_sqlalchemy is all I have ever used for a while now |
21:54:57 | * | nsf quit (Quit: WeeChat 2.1) |
21:57:39 | * | fjvallarino quit (Remote host closed the connection) |
22:02:04 | FromGitter | <deech> A number of the functions in the standard lib (eg. `parseIpAddress` in `os.nim`) state in the documentation that they raise an exception (`EInvalidValue` in this case). Why don't they use the Exception tracking pragma? |
22:02:09 | * | yglukhov_ quit (Remote host closed the connection) |
22:02:24 | * | sz0 quit (Quit: Connection closed for inactivity) |
22:08:01 | FromGitter | <ephja> @deech the exceptions were renamed some time ago. EInvalidValue is now deprecated and is aliased to ValueError, which os.parseIpAddress raises according to the documentation |
22:09:18 | FromGitter | <deech> @ephja Yes I see that. But my question was why that's not part of the type signature. |
22:12:01 | * | skrzyp quit (Read error: Connection reset by peer) |
22:13:07 | FromGitter | <ephja> @deech it can be, or it can be inferred by the compiler if possible |
22:14:30 | FromGitter | <deech> @ephja Ah cool! So if I call that function from one that's tagged with `{.raises:[].}` I'll get a compiler error? |
22:18:18 | FromGitter | <Quelklef> How do I make a macro run before typing, as opposed to after, or the other way around? |
22:18:37 | FromGitter | <ephja> @deech let me try that for the first time ever... yes is the answer! :-) |
22:19:03 | FromGitter | <deech> Yay! |
22:19:14 | FromGitter | <Quelklef> `untyped` vs `NimNode`, right? |
22:19:43 | FromGitter | <ephja> Don't let the fact that I'm a member of the github organization fool you. All I had to do was contribute to some official library that is now dead :-P |
22:21:49 | Araq | in the docs click on the {. to see the exceptions |
22:22:11 | Araq | probably we need a decent button for this so that people notice it's clickable... |
22:23:16 | FromGitter | <Quelklef> oh gee yeah @Araq I always thought that was just explicitly noting that it had no pragmas.. |
22:23:42 | Araq | no, it's "dot dot" aka "expand me" :P |
22:24:06 | Araq | I thought it was clever. lesson learned, don't be clever. |
22:24:33 | FromGitter | <Quelklef> doesn't help that it matches the actual syntax :P |
22:24:49 | FromGitter | <Quelklef> if you made it `...` instead and changed the style a little I think it'd be more noticable |
22:25:07 | Araq | be my guest |
22:25:20 | FromGitter | <Quelklef> oh gee |
22:25:25 | FromGitter | <Quelklef> sure, I'll try, hah |
22:28:53 | FromGitter | <ephja> may the force be with you |
22:36:00 | FromGitter | <deech> Araq, wow never thought to click that. Thanks, very useful! :) |
22:38:47 | * | fjvallarino joined #nim |
22:39:02 | FromGitter | <ephja> cleverness *= 70 div 100 |
22:43:50 | Araq | who uses nimpretty now? |
22:45:03 | * | sz0 joined #nim |
22:54:28 | FromGitter | <ephja> used it half-assedly before. tried it again. did it not change the original file before but does so now? |
22:57:03 | * | find0x90 joined #nim |
23:01:59 | * | find0x90 quit (Quit: find0x90) |
23:04:43 | codevance[m] | Araq . Is nimpretty formatting correctelly now? |
23:04:54 | codevance[m] | last I've checked it made my comments weird |
23:06:11 | * | donlzx joined #nim |
23:08:34 | FromGitter | <ephja> "set the output file (default: overwrite the .nim file)" nvm |
23:09:57 | * | elrood quit (Remote host closed the connection) |
23:31:28 | FromGitter | <honewatson> Is the scope of nimpretty to also perform some kind of code correction? |
23:31:46 | FromGitter | <honewatson> ```{.pragmaHereWrongCurlyEnd.} =``` |
23:31:52 | FromGitter | <honewatson> I notice this in the tests |
23:32:28 | FromGitter | <ephja> 4 indentation errors in 4 different files. some bodies are on the same indentation level as the signature. it might have to do with the fact that I sometimes do "proc(...):\n <return type> =..." |
23:38:02 | FromGitter | <ephja> yes that was the case for 3/4 syntax errors. another syntax error is triggered when this pattern is rewritten `foo = (0hhh, "......" & <newline><+1 indentations>"...")` |
23:38:57 | FromGitter | <ephja> "hhh" shouldn't be there |
23:39:02 | FromGitter | <ephja> has anyone reported any issues? I couldn't really find many |
23:49:54 | FromGitter | <ephja> I thought more people were reporting on issues. I'll read through the one issue I found |
23:56:44 | * | fjvallarino quit (Remote host closed the connection) |
23:56:51 | * | fjvallarino joined #nim |
23:57:25 | * | dddddd quit (Remote host closed the connection) |