00:27:04 | * | gsingh93_ joined #nim |
01:12:21 | * | dddddd quit (Remote host closed the connection) |
01:20:11 | * | flaviu quit (Remote host closed the connection) |
01:20:58 | * | CodeVance joined #nim |
01:24:21 | * | CodeVance1 joined #nim |
01:24:22 | * | CodeVance1 left #nim (#nim) |
01:25:53 | * | CodeVance quit (Ping timeout: 248 seconds) |
01:44:56 | * | farribeiro[m] joined #nim |
02:15:36 | * | CodeVance1 joined #nim |
02:17:33 | * | CodeVance1 quit (Client Quit) |
02:17:56 | * | CodeVance1 joined #nim |
02:19:21 | * | CodeVance1 is now known as CodeVance |
02:20:11 | * | kicking_tires quit (Remote host closed the connection) |
02:30:52 | * | CodeVance left #nim (#nim) |
02:38:41 | * | m712 quit (Ping timeout: 276 seconds) |
02:40:31 | * | m712 joined #nim |
02:43:31 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
02:46:08 | * | gsingh93_ quit (Quit: Connection closed for inactivity) |
03:16:01 | * | flaviu joined #nim |
03:24:09 | * | Shivelight joined #nim |
03:32:17 | * | yglukhov[i] joined #nim |
03:37:37 | * | yglukhov[i] quit (Ping timeout: 248 seconds) |
04:14:23 | * | arecaceae quit (Read error: Connection reset by peer) |
04:14:48 | * | arecaceae joined #nim |
04:19:21 | * | Kaynato joined #nim |
04:19:53 | Kaynato | Hello all! |
04:20:27 | Kaynato | I've been recently getting into nim and had a lot of trouble getting includes and linker to work properly. Is it alright if I could ask someone for some help? |
04:29:14 | * | Entropic joined #nim |
04:30:47 | * | Entropic quit (Changing host) |
04:30:47 | * | Entropic joined #nim |
04:33:03 | flaviu | Kaynato: Just ask, I'm sure someone will see your question :) |
04:35:10 | Kaynato | I'm trying to get CUDA + OpenGL interop going, and for a preliminary test I am trying to convert one of the NVIDIA examples to nim, and run it. I've gotten the example to work via VS2017. However, I've run into a problem where nimcuda, a library I am using, can't include the cuda.h. I am wondering if there is any way to specify the options passed to the compiler from within the script - I feel that I've seen it a while before. |
04:37:19 | FromGitter | <kinkinkijkin> hmm, how should I turn a seq of strings into a seq of ints? |
04:38:04 | Entropic | hey guys |
04:38:14 | Entropic | so i'm facing trouble with Tables |
04:38:38 | Entropic | i'm trying to pass a {"key":"value"} pair as a proc parameter |
04:38:59 | Entropic | so what type do i specify when i declare the proc? |
04:55:03 | flaviu | Kaynato: does --cincludes do what you want? https://nim-lang.org/docs/nimc.html |
04:56:22 | flaviu | kinkinkijkin: https://nim-lang.org/docs/sequtils.html#map,openArray[T],proc(T) and https://nim-lang.org/docs/strutils.html#parseInt,string ? |
04:56:33 | * | lainon quit (Ping timeout: 248 seconds) |
04:58:17 | flaviu | Entropic: Table[string, string] should do the trick for a table with string keys and values |
05:02:04 | Kaynato | Hm, I'm getting a different error but maybe I'm not doing this correctly at all |
05:02:34 | Kaynato | It forces me to use -r [file] so now my command is looking like |
05:02:56 | Kaynato | nim c -r [target file] --cincludes:"[path]\include" |
05:07:33 | Kaynato | No, that was backwards, but now I'm getting another different issue. I am working off of https://forum.nim-lang.org/t/3171#20029 |
05:08:07 | Kaynato | It is apparently trying to get gcc to find nimcache\kernel.o for some reason... |
05:22:19 | flaviu | Kaynato: Can you upload the log to pastebin or something? |
05:22:43 | FromGitter | <kinkinkijkin> hmm, so I'm reading /proc/stat for cpu usage monitoring right, and for some reason my cpu usage monitor quickly reduces from 34% to -NaN |
05:24:11 | flaviu | kinkinkijkin: dividing by zero somewhere? My /proc/stat doesn't include any floats |
05:25:23 | FromGitter | <kinkinkijkin> https://i.imgur.com/Gu57edH.png this is what the proc looks like |
05:25:26 | FromGitter | <kinkinkijkin> idk what's going on |
05:33:48 | * | Shivelight quit (Quit: Connection closed for inactivity) |
05:35:55 | flaviu | kinkinkijkin: no idea either. try printing data throughout the function to see were the nan shows up |
05:48:18 | FromGitter | <kinkinkijkin> oh it just needed a procstat.flush |
05:48:25 | FromGitter | <kinkinkijkin> now I know what this is used for |
07:04:34 | FromGitter | <faustinoaq> @kinkinkijkin Oh!, your code theme looks nice, What font-family and theme setup are you using in you editor? |
07:35:40 | * | yglukhov[i] joined #nim |
07:46:23 | * | nsf joined #nim |
07:54:51 | * | dddddd joined #nim |
08:05:05 | * | gmpreussner quit (Ping timeout: 260 seconds) |
08:05:53 | * | gmpreussner joined #nim |
08:06:21 | * | xet7 joined #nim |
08:12:56 | * | clyybber joined #nim |
08:35:40 | * | xkapastel quit (Quit: Connection closed for inactivity) |
08:39:42 | FromGitter | <notTito> prostat.flush() |
08:41:24 | FromGitter | <notTito> why uninitialised NimNodes have return kind nnkNilLit ? |
08:41:56 | FromGitter | <notTito> does kind() return nnkNilLit when node == nil? |
08:45:52 | FromGitter | <notTito> but a nil in ast also returns nnkNilLit and thats confusing |
08:46:18 | FromGitter | <notTito> so I need to return nnkNone? |
08:46:40 | FromGitter | <notTito> great rubber duck talk I found it lol |
08:53:09 | FromGitter | <notTito> but why kind doesnt return nnkNone though? |
09:04:32 | * | miran joined #nim |
09:10:54 | * | yglukhov[i] quit (Remote host closed the connection) |
09:14:22 | * | Vladar joined #nim |
09:36:47 | * | nsf quit (Quit: WeeChat 2.1) |
10:07:50 | * | xkapastel joined #nim |
11:04:39 | * | rokossovsky joined #nim |
11:14:25 | * | farribeiro[m] left #nim ("User left") |
11:14:29 | * | tzekid joined #nim |
11:43:07 | * | NimBot joined #nim |
12:12:50 | FromGitter | <mratsim> @Kaynato this is my config for cuda: https://github.com/mratsim/Arraymancer/blob/master/nim.cfg#L49-L55 |
12:13:15 | FromGitter | <mratsim> you can also use {.passC: -I/opt/cuda/include.} in your .nim file |
12:13:56 | FromGitter | <mratsim> changing the gcc compiler to nvcc is required if you use custom .cu or embedded cuda code |
12:14:13 | FromGitter | <mratsim> and if using nvcc on .nim files you need to pass the —x cu flag |
12:15:11 | FromGitter | <mratsim> so that it interprets nim .cpp files as .cu as well (otherwise it refuses call cuda_kernel_foo<<<X, Y>>>(param1, param2) |
12:29:52 | * | yglukhov[i] joined #nim |
12:34:05 | * | yglukhov[i] quit (Ping timeout: 240 seconds) |
12:49:00 | * | miran quit (Ping timeout: 245 seconds) |
12:49:13 | * | miran joined #nim |
13:04:22 | * | tzekid quit (Ping timeout: 256 seconds) |
13:15:40 | * | xkapastel quit (Quit: Connection closed for inactivity) |
13:18:54 | * | gb00s quit (Remote host closed the connection) |
13:44:19 | FromGitter | <razuit> hi there, is there any way to pass Unicode strings without having them go through newWideCString? If anyone here familiar with wide strings on MSVC, they are declared with an L like this L”This is a wide string" |
13:45:34 | FromGitter | <Varriount> @razuit Well, you could use the non-utf8 Windows API calls. Also, if you know the contents ahead of time, you could use a constant |
13:46:08 | FromGitter | <Varriount> Sorry, non-utf16 calls |
13:46:51 | FromGitter | <razuit> yes, that’s exactly the use case. I am trying to pass some L”” constants to Windows API calls and was hoping to find a way to have the Nim compilar output the wide strings as constants directly to feed to the Windows API, without having to get them through newWideCString |
13:48:50 | FromGitter | <Varriount> If you can write a procedure or macro that takes a string and outputs an array, that would work. |
13:49:26 | * | dddddd quit (Remote host closed the connection) |
13:49:26 | FromGitter | <Varriount> Why are you trying to avoid newWideCString? |
13:55:13 | * | clyybber quit (Ping timeout: 248 seconds) |
14:02:07 | FromGitter | <razuit> trying out Nim as a more-expressive alternative to writing vanilla C/C++ and it bothers me that wide strings are not supported natively by Nim, i mean.. every string had to go through newWideCString |
14:05:35 | Yardanico | you can just do something like |
14:05:50 | Yardanico | template wc(data: string): untyped = newWideCString(data) |
14:06:09 | Yardanico | and then use it like myproc(wc"hello") |
14:06:16 | Yardanico | (maybe I've made some error in the code here, but you got the point) |
14:08:16 | * | yglukhov[i] joined #nim |
14:14:53 | FromGitter | <razuit> I see. So no way to make the Nim compiler emit L”Hello” directly? |
14:17:37 | FromGitter | <diegogub> Hi guys, I have one program that compiles ok in mac, but fails in linux |
14:17:40 | FromGitter | <diegogub> ... stdlib_locks.c:(.text+0x1f): undefined reference to `pthread_mutex_trylock' |
14:18:17 | Yardanico | what compiler do you use on linux? |
14:18:46 | FromGitter | <diegogub> gcc |
14:21:32 | Yardanico | very strange |
14:22:09 | Yardanico | https://stackoverflow.com/questions/2009625/undefined-reference-to-pthread-mutex-trylock says that you need -pthread |
14:22:18 | Yardanico | can you try to compile your program with --threads:on ? |
14:22:38 | * | yglukhov[i] quit (Remote host closed the connection) |
14:26:29 | FromGitter | <diegogub> well, solved first issue..but now I get ... lib/pure/asyncmacro.nim(361, 31) Error: 'matchIter' is not GC-safe as it accesses 'estore' which is a global using GC'ed memory |
14:31:05 | Yardanico | ah, you use async |
14:31:21 | Yardanico | then I think you would need to add "-pthread" to your linker options manually |
14:33:56 | * | yglukhov[i] joined #nim |
14:34:08 | Yardanico | do you use this posix proc directly from posix module? |
14:35:02 | FromGitter | <diegogub> no, dont think so. Im using jester... |
14:35:59 | FromGitter | <diegogub> had to remove --threads:on in OSX to make it work.. and avoid using spawn for background works. |
14:40:27 | * | miran quit (Ping timeout: 240 seconds) |
14:50:08 | FromGitter | <diegogub> nim c -l:-pthread src/trk |
14:50:26 | FromGitter | <diegogub> with that command compiles |
14:51:43 | * | Snircle joined #nim |
14:53:03 | FromGitter | <diegogub> Is this a bug? |
15:00:56 | FromGitter | <notTito> hey can you publish a article I made in the Nim blog? |
15:01:00 | * | CodeVance joined #nim |
15:01:13 | Yardanico | @notTito make a PR to website |
15:01:20 | FromGitter | <notTito> ok |
15:01:56 | Yardanico | @notTito https://github.com/nim-lang/website |
15:02:56 | FromGitter | <notTito> under jekyll/posts alright |
15:04:08 | Yardanico | !eval from strutils import nil; strutils.repeat("string", 3) |
15:04:09 | NimBot | Compile failed: in.nim(1, 42) Error: expression 'repeat("string", 3)' is of type 'string' and has to be discarded |
15:04:16 | Yardanico | !eval from strutils import nil; echo strutils.repeat("string", 3) |
15:04:18 | NimBot | stringstringstring |
15:04:53 | * | CodeVance quit (Read error: Connection reset by peer) |
15:09:55 | * | CodeVance joined #nim |
15:12:53 | * | ahmed____ joined #nim |
15:17:25 | * | CodeVance quit (Quit: Leaving.) |
15:17:44 | * | CodeVance joined #nim |
15:18:44 | * | CodeVance left #nim (#nim) |
15:22:00 | * | CodeVance1 joined #nim |
15:23:59 | * | CodeVance1 quit (Client Quit) |
15:24:30 | * | CodeVance joined #nim |
15:24:54 | * | CodeVance left #nim (#nim) |
15:31:05 | * | yglukhov[i] quit (Ping timeout: 240 seconds) |
15:32:36 | * | yglukhov[i] joined #nim |
15:40:02 | * | edcragg quit (Quit: ZNC - http://znc.in) |
15:40:22 | * | edcragg joined #nim |
15:46:25 | * | nsf joined #nim |
15:47:18 | dom96 | hi guys |
15:48:50 | * | yglukhov_ joined #nim |
15:49:17 | FromDiscord | <treeform> hi dom |
15:51:45 | * | yglukhov[i] quit (Ping timeout: 260 seconds) |
15:56:07 | dom96 | hey treeform. How's things? :) |
15:57:18 | FromDiscord | <treeform> thinking about windows issue, is there a call to get the "real" case of the file? Like I give it FOOBAR.BAZ and it tells me that no actually its "FooBar.baz" ? |
16:01:43 | gmpreussner | is there a way to configure nim such that build artefacts always end up in /packageroot/nimcache, regardless from where within the package's folder hierarchy the compiler is invoked? |
16:02:39 | gmpreussner | i'm trying to prevent my project hierarchy from getting littered with nimcache directories |
16:03:21 | gmpreussner | it looks like relative paths in nim.cfg are relative to the invocation directory, not the location of the nim.cfg, so having a single nim.cfg in the root doesn't work |
16:03:42 | gmpreussner | i also don't want to have nim.cfg in every single subdirectory |
16:06:58 | * | lainon joined #nim |
16:07:04 | * | lainon quit (Remote host closed the connection) |
16:07:13 | * | yglukhov_ quit (Remote host closed the connection) |
16:11:11 | * | craigger quit (Quit: bye) |
16:11:21 | * | craigger joined #nim |
16:11:50 | * | lainon joined #nim |
16:15:24 | dom96 | treeform: there is probably some sort of stat() call for that |
16:15:58 | dom96 | gmpreussner: afraid not |
16:17:18 | gmpreussner | hmmz ok |
16:17:44 | gmpreussner | i still find the project configuration management in Nim incredibly frustrating and confusing |
16:18:38 | gmpreussner | nim, nimble, nim.cfg, config.nims, some traverse upwards, some don't, relative pathing all over the place... it's crazy town |
16:21:39 | gmpreussner | it seems that VSCode + Nim extension can alleviate at least some of the pain though |
16:22:37 | gmpreussner | placing a single nim.cfg into the root does the right thing. guess i'll retire Sublime for now :/ |
16:24:09 | gmpreussner | i feel like --out is pretty useless, too. what we need is --outdir to place all compiled binaries into a specific directory to prevent littering the sub-directories |
16:24:18 | Kaynato | Thank you so much mratsim! I was actually looking at your code and arraymancer, I really love your work. |
16:24:22 | gmpreussner | i had that implemented a couple years ago, but lost the pull request :/ |
16:28:04 | dom96 | gmpreussner: Yeah, it is a bit messy I agree. Everybody uses Nim differently, so you will likely run into some rough edges like this. Please polish them :) |
16:34:09 | * | rokossovsky quit (Ping timeout: 260 seconds) |
16:37:00 | Kaynato | Trying to get cuda kernels from nim using https://forum.nim-lang.org/t/3171#20029 as reference - I can link and include cuda but do not know how to properly point nvcc to the cuda kernel. https://pastebin.com/nZPDCTsp |
16:48:26 | * | yglukhov[i] joined #nim |
16:53:26 | * | yglukhov[i] quit (Ping timeout: 276 seconds) |
17:06:32 | * | find0x90 joined #nim |
17:06:42 | * | yglukhov[i] joined #nim |
17:06:47 | * | yglukhov[i] quit (Remote host closed the connection) |
17:14:01 | * | find0x90 quit (Quit: find0x90) |
17:17:37 | * | find0x90 joined #nim |
17:22:29 | * | ahmed____ quit (Quit: Connection closed for inactivity) |
17:23:49 | * | miran joined #nim |
17:27:36 | * | find0x90 quit (Quit: find0x90) |
17:29:22 | * | kicking_tire joined #nim |
17:33:35 | Yardanico | today I found out that there's nim-lang.ru (it contains small brief manual about nim types, procedures, etc.), but it's not the best (grammar is very bad), but I contacted the creator of this website, so everything is good :) |
17:34:08 | Yardanico | @data-man you may be interested - https://github.com/opqx/NimRusTutorial (original repo), https://github.com/Yardanico/NimRusTutorial (my fork), https://yardanico.github.io/NimRusTutorial/ (github pages) |
18:14:11 | FromGitter | <data-man> @Yardanico Maybe :) ⏎ https://github.com/exercism/nim/issues/76 - Where are the Nim communities and enthusiasts? |
18:15:37 | Yardanico | @dom96 https://github.com/exercism/nim/issues/76 |
18:21:15 | FromGitter | <Varriount> @dom96: https://github.com/nim-lang/Nim/pull/7948 |
18:23:19 | miran | @Varriount why "iota"? |
18:23:55 | FromGitter | <Varriount> miran: https://en.wikipedia.org/wiki/Iota |
18:24:17 | FromGitter | <Varriount> "The lowercase iota symbol is sometimes used to write the imaginary unit" |
18:25:04 | Yardanico | http://mentoring.exercism.io |
18:25:13 | miran | i must say i'm familiar with complex numbers, but this is the first time i hear about iota |
18:25:17 | Yardanico | (we can become nim mentors :P) |
18:25:29 | Yardanico | but it will happen as exercism v2 will be released |
18:25:51 | FromGitter | <Varriount> miran: Well, I really dislike "im" as a name for that constant. |
18:26:25 | miran | imo, you should write the reasoning as a comment in that PR, i'm sure there are also other who didn't know about iota |
18:26:36 | * | dddddd joined #nim |
18:31:45 | FromGitter | <Varriount> miran: Done. |
18:32:38 | dom96 | Yardanico: Cool. You should help turn nim-lang.ru into a great resource :) |
18:32:45 | Yardanico | :D |
18:32:48 | Yardanico | yeah, I will |
18:33:07 | Yardanico | I'm thinking about translating tut1 and tut2 |
18:33:12 | FromGitter | <Varriount> I can see it now... "Nim becomes top programming language in Russia" :P |
18:33:51 | dom96 | Varriount: https://irclogs.nim-lang.org/02-06-2018.html#23:21:42 |
18:34:12 | dom96 | Yardanico: I saw that mentoring exercism thing |
18:34:19 | dom96 | Would be nice if somebody replies to it :) |
18:34:56 | Yardanico | well, I completed it and they just automatically invite you to their slack server |
18:35:17 | FromGitter | <Varriount> dom96: Ah, that was my mistake. I didn't see araq's comment. |
18:35:30 | FromGitter | <Varriount> I'll go and fix that as well. |
18:37:56 | FromGitter | <Varriount> @dom96 https://github.com/nim-lang/Nim/pull/7949 |
18:38:06 | dom96 | heh, I guess I'm the community manager |
18:38:37 | dom96 | Varriount: No need for a PR for this stuff, just edit the file :) |
18:39:23 | dom96 | I wonder, do we get points for answering those exercism questions so quickly? |
18:39:28 | dom96 | Thanks for answering them guys |
18:39:31 | FromGitter | <Varriount> dom96: It's bad form for someone to accept their own pull requests. |
18:39:42 | Yardanico | @Varriount just directly edit the file :) |
18:39:49 | dom96 | I expected other languages to answer them even faster |
18:40:12 | Yardanico | well, still not all questions are answered :) |
18:40:29 | dom96 | Rust answered quickly too |
18:40:39 | dom96 | but all others I've looked at are empty |
18:40:40 | FromGitter | <data-man> https://github.com/nim-lang/Nim/blob/devel/lib/impure/db_sqlite.nim#L34 |
18:41:08 | dom96 | Wish we had a community team |
18:42:19 | dom96 | Somebody should create a newsletter for Nim :) |
18:44:20 | Araq | my long silence is over. |
18:45:38 | Yardanico | yah, hi! |
18:48:32 | Araq | so ... anything that demands my immediate action? |
18:48:48 | FromGitter | <arnetheduck> Exceptions! |
18:48:53 | FromGitter | <arnetheduck> :) |
18:49:01 | * | edcragg quit (Ping timeout: 256 seconds) |
18:49:13 | * | edcragg joined #nim |
18:57:05 | Araq | did we decide on an RFC/path? |
18:58:39 | FromGitter | <data-man> https://github.com/nim-lang/Nim/pull/7944 memfile's bugfixes |
19:11:26 | Yardanico | libman[m] Hi, can you please remove duplicates from your youtube Nim playlist (thanks for it a lot btw!) https://www.youtube.com/playlist?list=PLXIivpcMlfwAevvA4IvLIiYOujqSuyyKY |
19:17:42 | Araq | data-man ... so what does your improved system.nim contain? |
19:19:08 | Yardanico | I think he's not pinged without @ (because he's on Gitter) @data-man |
19:24:25 | FromGitter | <zetashift> @Araq missed you good ol BDFL |
19:24:44 | Araq | thanks. |
19:34:15 | Araq | @data-man: what does your improved system.nim contain? |
19:35:19 | * | xkapastel joined #nim |
19:37:40 | * | miran_ joined #nim |
19:38:21 | * | miran quit (Ping timeout: 240 seconds) |
19:39:03 | Yardanico | Araq oh, yes, I forgot - https://forum.nim-lang.org/t/3879 :D |
19:39:11 | Yardanico | (you've probably already seen it) |
19:39:18 | Araq | I'm replying. |
19:43:45 | FromGitter | <kayabaNerve> Wait. How is .. and SPACE..SPACE different? |
19:44:04 | FromGitter | <kayabaNerve> Don't most languages only require spaces between keywords? |
19:44:46 | FromGitter | <kayabaNerve> !eval if 0>-1:echo 1 else:echo2 |
19:44:47 | NimBot | Compile failed: in.nim(1, 5) Error: undeclared identifier: '>-' |
19:44:54 | FromGitter | <kayabaNerve> if 0> -1:echo 1 else:echo2 |
19:45:13 | FromGitter | <kayabaNerve> Forgot !eval.... I'll get it working and come back |
19:45:44 | FromGitter | <mratsim> because you can create any infix operator, >- and > - are different |
19:45:51 | FromGitter | <kayabaNerve> Oh. Just forgot a space between echo and 2 |
19:45:53 | FromGitter | <kayabaNerve> Yeah. I got that |
19:45:58 | FromGitter | <kayabaNerve> if 0> -1:echo 1 else:echo 2 works |
19:46:04 | FromGitter | <kayabaNerve> That's... minified. |
19:46:16 | FromGitter | <kayabaNerve> Now if add a space between 0 and >, the code changes? |
19:46:25 | Araq | no. |
19:46:25 | FromGitter | <kayabaNerve> That's what's happening with .. and SPACE..SPACE lol |
19:46:26 | FromGitter | <mratsim> no |
19:46:36 | FromGitter | <kayabaNerve> Not this. In the case of .. specifically |
19:47:09 | FromGitter | <kayabaNerve> Or is the forum post wrong/I'm missing something? |
19:47:54 | FromGitter | <mratsim> it’s wrong |
19:47:56 | FromGitter | <kayabaNerve> I'm not saying there's not a reason for this. I would believe there is. I'm just curious what the differences with spaces/no spaces is for .. and why. Someone quoted ..SPACE< and that's an error, just as you can't do > =. That I get. |
19:48:04 | FromGitter | <kayabaNerve> Got it. Sorry for the big discussion then :P |
19:48:05 | FromGitter | <mratsim> unary < was killed to avoid that |
19:48:29 | FromGitter | <kayabaNerve> @mratsim I got a Nim UInt lib that works on stable. I wanted to tell you |
19:48:31 | FromGitter | <mratsim> before we had <2 = 1 |
19:48:36 | FromGitter | <kayabaNerve> Where have you been the past few days? |
19:48:52 | FromGitter | <mratsim> I’m doing competitive data science :p |
19:49:13 | FromGitter | <mratsim> finished 44/350 for “The best data scientist of France” competition |
19:49:25 | FromGitter | <mratsim> and I have a 3 months competition going on as well. |
19:49:26 | Yardanico | Congrats! |
19:49:42 | FromGitter | <kayabaNerve> Congrats! |
19:50:18 | FromGitter | <mratsim> thanks! |
19:51:26 | FromGitter | <kayabaNerve> So, ttmath has fixed, but any, sized ints, right? |
19:51:35 | FromGitter | <mratsim> yes |
19:51:42 | FromGitter | <mratsim> power of 2* |
19:51:52 | FromGitter | <kayabaNerve> And STint is just a better wrapper around the Nim wwrapper of TTMath? |
19:52:04 | FromGitter | <mratsim> stint is rewritten from the ground up |
19:52:04 | FromGitter | <kayabaNerve> Also built by Status |
19:52:17 | FromGitter | <mratsim> with proper tests |
19:52:18 | FromGitter | <kayabaNerve> Oh. I thought it had a ttmath dependency? |
19:52:29 | FromGitter | <mratsim> the dependency is just for testing actually |
19:52:42 | FromGitter | <mratsim> but I can’t make optional test dependencies in nimble so …. |
19:53:02 | FromGitter | <kayabaNerve> got it |
19:53:08 | FromGitter | <kayabaNerve> But it is also fixed size, right? |
19:53:39 | FromGitter | <mratsim> yes |
19:54:41 | FromGitter | <kayabaNerve> IMath isn't, and that's what I made my wrapper around. I'm sure STInt/TTMath is better for Ethereum/Cryptography but that wasn't my reason for getting big numbers (entirely/mainly) |
19:54:52 | FromGitter | <mratsim> Btw somehow Colvin is using ttmath to benchmark geth, and parity: https://github.com/gcolvin/evm-drag-race |
19:55:08 | FromGitter | <kayabaNerve> I may use IMath for some small stuff or to transfer numbers but not to do operations |
19:56:11 | FromGitter | <mratsim> The main reason I use fixed size is that I don’t need arbitrary integers, and also fixed size can be allocated on the stack which is much better for resource constrained devices. |
19:56:30 | FromGitter | <mratsim> and it’s faster as well. |
19:56:31 | FromGitter | <kayabaNerve> Oh. And the IMath does work on stable :P ⏎ ⏎ https://github.com/kayabaNerve/Currency/tree/master/src/lib BN.nim and the BN folder. |
19:56:44 | FromGitter | <kayabaNerve> Yeah. I get that. Different use cases. I just thought you may want to look it over |
19:59:22 | FromGitter | <mratsim> wow I never came across this lib, even though I thought I did an in-depth check of all the implementations I could find. |
20:00:45 | FromGitter | <notTito> can you merge ? ;) https://github.com/nim-lang/website/pull/90 |
20:02:24 | Yardanico | @notTito it will need some review first :) |
20:02:30 | Yardanico | ah, nvm |
20:03:03 | FromGitter | <notTito> yeah sure |
20:03:46 | FromGitter | <notTito> i am just bringing attention bc the other one is there for 3 months lol |
20:05:50 | Yardanico | there's another pending post too (but yeah, it's very big) |
20:06:02 | FromGitter | <notTito> you might want this one because it covers directly a nim topic and it is not about something irrelevant |
20:06:35 | FromGitter | <notTito> steam on wine in linux (crazy example i came up with just now) |
20:06:45 | FromGitter | <notTito> :P |
20:09:10 | dom96 | Welcome back Araq |
20:09:31 | FromGitter | <mratsim> quick, clean up the house! |
20:12:40 | FromGitter | <kayabaNerve> @mratsim I spent hours. Some didn't play nice with Nim, some needed devel, some weren't easily on Windows, boost was too big... |
20:13:07 | FromGitter | <kayabaNerve> We're talking likely 10 hours and 3 nim wrappers before I settled |
20:19:02 | Yardanico | why didn't you just install devel? :D |
20:20:13 | FromGitter | <kayabaNerve> @mratsim Was it devel plus a patch or just devel? |
20:21:15 | FromGitter | <kayabaNerve> Yardanico: Because it's devel for a reason, stable is stable for a reason, and even though the language is devel, people who use the download links will generally get stable |
20:21:30 | FromGitter | <kayabaNerve> And my code isn't for me but for a future group who will likely depend on stable, not devel |
20:21:44 | Yardanico | well, next stable will contain code from devel :) |
20:22:02 | FromGitter | <kayabaNerve> Oh. And in this case, I think it's not just an issue with stable. It's an issue that needs a patch not even in devel. |
20:22:11 | FromGitter | <kayabaNerve> Yardanico: All stable code was once unstable? :P |
20:22:19 | Yardanico | yes :) |
20:22:34 | FromGitter | <kayabaNerve> There's more unstable code in the world then stable code |
20:22:43 | FromGitter | <kayabaNerve> Unstable code is mass typed; stable is hand picked |
20:23:03 | Yardanico | it's very unlikely that something added to devel will be removed before next stable release |
20:23:11 | Yardanico | of course it happens, but it's very unlikely |
20:29:05 | Kaynato | Hello mratsim, could I ask how you managed to call cuda kernels from nim? |
20:32:10 | Yardanico | If you want to mention him - use @, he's on Gitter |
20:32:11 | Yardanico | @mratsim |
20:56:34 | * | TheLemonMan joined #nim |
20:57:44 | TheLemonMan | yo, I have a `ptr cint` in a struct coming from a C library, is there a way to deference the elements of the int array? |
20:58:38 | dom96 | cast[array[len, cint]](thePointer) |
20:59:13 | Araq | cast[ptr UncheckedArray[cint]](thePointer) |
20:59:29 | Araq | is the modern variant, dom96 :-) |
20:59:54 | dom96 | Better to show people the safer variant anyway :P |
21:00:11 | dom96 | in case they happen to know the length statically |
21:00:42 | TheLemonMan | damn, that's quite lenghty |
21:03:33 | dom96 | Might be better to update the wrapper to use the type Araq showed |
21:03:33 | * | Vladar quit (Quit: Leaving) |
21:04:00 | Araq | yeah, the wrapper is actually wrong. |
21:04:13 | Araq | the type it not "pointer to int", it's "pointer to an array of ints" |
21:14:27 | TheLemonMan | hmm, am I blind or ..< and .. ranges aren't documented in the Nim Manual? |
21:15:58 | * | find0x90 joined #nim |
21:20:11 | * | find0x90 quit (Client Quit) |
21:25:38 | * | miran_ quit (Quit: Konversation terminated!) |
21:27:14 | * | find0x90 joined #nim |
21:29:13 | * | SenasOzys joined #nim |
21:32:39 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
21:38:20 | * | find0x90 quit (Quit: find0x90) |
21:44:29 | * | xkapastel quit (Quit: Connection closed for inactivity) |
21:46:33 | * | nsf quit (Quit: WeeChat 2.1) |
21:46:56 | FromGitter | <Varriount> Hm, what's the new "module" to import standard library modules from? `std`? |
21:48:00 | dom96 | yes |
21:48:10 | dom96 | but you shouldn't use it unless necessary |
21:48:14 | dom96 | to disambiguate |
22:03:06 | FromGitter | <Varriount> @genotrance I'm about to use nimgen to re-wrap linenoise. :D |
22:12:29 | * | Kaynato quit (Read error: Connection reset by peer) |
22:12:51 | * | Kaynato joined #nim |
22:21:26 | FromGitter | <Yardanico> https://www.theverge.com/2018/6/3/17422752/microsoft-github-acquisition-rumors |
22:22:12 | FromGitter | <Yardanico> I hope it won't have any effect on GitHub functionality |
22:27:22 | dom96 | Yeah... this is gonna be interesting |
22:27:51 | FromGitter | <zetashift> prolly need to change telemetry in an obscure settings panel they'll add hehe |
22:29:14 | * | kicking_tire quit (Quit: Leaving) |
22:29:28 | FromGitter | <Yardanico> Also there's GitLab ready to transfer your repositories with issues, labels, pull requests :D |
22:36:38 | dom96 | or we just write our own GitHub ;) |
22:36:44 | dom96 | in Nim :D |
22:41:03 | FromGitter | <Yardanico> Like gogs written in Go? |
23:00:09 | dom96 | yep |
23:00:18 | dom96 | but better |
23:04:16 | Araq | this incremental compilation feature is killing me... had to add a whole new stdlib module to support it properly |
23:05:20 | Araq | oh well, at least it's sound and previously it was madness |
23:05:25 | Araq | good night. |
23:05:41 | FromGitter | <Varriount> Araq: You are (indirectly) helping me a great deal right now. |
23:06:19 | FromGitter | <Varriount> I'm writing a small bash-like program in Nim for a summer course, and I'm using the Nim compiler to show me how things like parsing and tokenization are done (in Nim). |
23:11:16 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
23:18:03 | shashlick | @varriount - way to go! Once you're done, I'll add it to the nimgen test cases and upload docs to nimgen.genotrance.com |
23:46:16 | FromGitter | <Yardanico> Hah, github.microsoft.com already exists (404 for now) |
23:51:02 | * | craigger quit (Quit: bye) |
23:53:33 | * | craigger joined #nim |
23:54:59 | * | ftsf joined #nim |
23:56:37 | FromGitter | <Varriount> shashlick: Do you know why the sections for nimgen's config have the 'n.' prefix? |