<< 03-06-2018 >>

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:53KaynatoHello all!
04:20:27KaynatoI'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:03flaviuKaynato: Just ask, I'm sure someone will see your question :)
04:35:10KaynatoI'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:19FromGitter<kinkinkijkin> hmm, how should I turn a seq of strings into a seq of ints?
04:38:04Entropichey guys
04:38:14Entropicso i'm facing trouble with Tables
04:38:38Entropici'm trying to pass a {"key":"value"} pair as a proc parameter
04:38:59Entropicso what type do i specify when i declare the proc?
04:55:03flaviuKaynato: does --cincludes do what you want? https://nim-lang.org/docs/nimc.html
04:56:22flaviukinkinkijkin: 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:17flaviuEntropic: Table[string, string] should do the trick for a table with string keys and values
05:02:04KaynatoHm, I'm getting a different error but maybe I'm not doing this correctly at all
05:02:34KaynatoIt forces me to use -r [file] so now my command is looking like
05:02:56Kaynatonim c -r [target file] --cincludes:"[path]\include"
05:07:33KaynatoNo, 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:07KaynatoIt is apparently trying to get gcc to find nimcache\kernel.o for some reason...
05:22:19flaviuKaynato: Can you upload the log to pastebin or something?
05:22:43FromGitter<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:11flaviukinkinkijkin: dividing by zero somewhere? My /proc/stat doesn't include any floats
05:25:23FromGitter<kinkinkijkin> https://i.imgur.com/Gu57edH.png this is what the proc looks like
05:25:26FromGitter<kinkinkijkin> idk what's going on
05:33:48*Shivelight quit (Quit: Connection closed for inactivity)
05:35:55flaviukinkinkijkin: no idea either. try printing data throughout the function to see were the nan shows up
05:48:18FromGitter<kinkinkijkin> oh it just needed a procstat.flush
05:48:25FromGitter<kinkinkijkin> now I know what this is used for
07:04:34FromGitter<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:42FromGitter<notTito> prostat.flush()
08:41:24FromGitter<notTito> why uninitialised NimNodes have return kind nnkNilLit ?
08:41:56FromGitter<notTito> does kind() return nnkNilLit when node == nil?
08:45:52FromGitter<notTito> but a nil in ast also returns nnkNilLit and thats confusing
08:46:18FromGitter<notTito> so I need to return nnkNone?
08:46:40FromGitter<notTito> great rubber duck talk I found it lol
08:53:09FromGitter<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:50FromGitter<mratsim> @Kaynato this is my config for cuda: https://github.com/mratsim/Arraymancer/blob/master/nim.cfg#L49-L55
12:13:15FromGitter<mratsim> you can also use {.passC: -I/opt/cuda/include.} in your .nim file
12:13:56FromGitter<mratsim> changing the gcc compiler to nvcc is required if you use custom .cu or embedded cuda code
12:14:13FromGitter<mratsim> and if using nvcc on .nim files you need to pass the —x cu flag
12:15:11FromGitter<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:19FromGitter<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:34FromGitter<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:08FromGitter<Varriount> Sorry, non-utf16 calls
13:46:51FromGitter<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:50FromGitter<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:26FromGitter<Varriount> Why are you trying to avoid newWideCString?
13:55:13*clyybber quit (Ping timeout: 248 seconds)
14:02:07FromGitter<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:35Yardanicoyou can just do something like
14:05:50Yardanicotemplate wc(data: string): untyped = newWideCString(data)
14:06:09Yardanicoand then use it like myproc(wc"hello")
14:06:16Yardanico(maybe I've made some error in the code here, but you got the point)
14:08:16*yglukhov[i] joined #nim
14:14:53FromGitter<razuit> I see. So no way to make the Nim compiler emit L”Hello” directly?
14:17:37FromGitter<diegogub> Hi guys, I have one program that compiles ok in mac, but fails in linux
14:17:40FromGitter<diegogub> ... stdlib_locks.c:(.text+0x1f): undefined reference to `pthread_mutex_trylock'
14:18:17Yardanicowhat compiler do you use on linux?
14:18:46FromGitter<diegogub> gcc
14:21:32Yardanicovery strange
14:22:09Yardanicohttps://stackoverflow.com/questions/2009625/undefined-reference-to-pthread-mutex-trylock says that you need -pthread
14:22:18Yardanicocan you try to compile your program with --threads:on ?
14:22:38*yglukhov[i] quit (Remote host closed the connection)
14:26:29FromGitter<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:05Yardanicoah, you use async
14:31:21Yardanicothen I think you would need to add "-pthread" to your linker options manually
14:33:56*yglukhov[i] joined #nim
14:34:08Yardanicodo you use this posix proc directly from posix module?
14:35:02FromGitter<diegogub> no, dont think so. Im using jester...
14:35:59FromGitter<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:08FromGitter<diegogub> nim c -l:-pthread src/trk
14:50:26FromGitter<diegogub> with that command compiles
14:51:43*Snircle joined #nim
14:53:03FromGitter<diegogub> Is this a bug?
15:00:56FromGitter<notTito> hey can you publish a article I made in the Nim blog?
15:01:00*CodeVance joined #nim
15:01:13Yardanico@notTito make a PR to website
15:01:20FromGitter<notTito> ok
15:01:56Yardanico@notTito https://github.com/nim-lang/website
15:02:56FromGitter<notTito> under jekyll/posts alright
15:04:08Yardanico!eval from strutils import nil; strutils.repeat("string", 3)
15:04:09NimBotCompile failed: in.nim(1, 42) Error: expression 'repeat("string", 3)' is of type 'string' and has to be discarded
15:04:16Yardanico!eval from strutils import nil; echo strutils.repeat("string", 3)
15:04:18NimBotstringstringstring
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:18dom96hi guys
15:48:50*yglukhov_ joined #nim
15:49:17FromDiscord<treeform> hi dom
15:51:45*yglukhov[i] quit (Ping timeout: 260 seconds)
15:56:07dom96hey treeform. How's things? :)
15:57:18FromDiscord<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:43gmpreussneris 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:39gmpreussneri'm trying to prevent my project hierarchy from getting littered with nimcache directories
16:03:21gmpreussnerit 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:42gmpreussneri 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:24dom96treeform: there is probably some sort of stat() call for that
16:15:58dom96gmpreussner: afraid not
16:17:18gmpreussnerhmmz ok
16:17:44gmpreussneri still find the project configuration management in Nim incredibly frustrating and confusing
16:18:38gmpreussnernim, nimble, nim.cfg, config.nims, some traverse upwards, some don't, relative pathing all over the place... it's crazy town
16:21:39gmpreussnerit seems that VSCode + Nim extension can alleviate at least some of the pain though
16:22:37gmpreussnerplacing a single nim.cfg into the root does the right thing. guess i'll retire Sublime for now :/
16:24:09gmpreussneri 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:18KaynatoThank you so much mratsim! I was actually looking at your code and arraymancer, I really love your work.
16:24:22gmpreussneri had that implemented a couple years ago, but lost the pull request :/
16:28:04dom96gmpreussner: 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:00KaynatoTrying 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:35Yardanicotoday 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:08Yardanico@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:11FromGitter<data-man> @Yardanico Maybe :) ⏎ https://github.com/exercism/nim/issues/76 - Where are the Nim communities and enthusiasts?
18:15:37Yardanico@dom96 https://github.com/exercism/nim/issues/76
18:21:15FromGitter<Varriount> @dom96: https://github.com/nim-lang/Nim/pull/7948
18:23:19miran@Varriount why "iota"?
18:23:55FromGitter<Varriount> miran: https://en.wikipedia.org/wiki/Iota
18:24:17FromGitter<Varriount> "The lowercase iota symbol is sometimes used to write the imaginary unit"
18:25:04Yardanicohttp://mentoring.exercism.io
18:25:13mirani must say i'm familiar with complex numbers, but this is the first time i hear about iota
18:25:17Yardanico(we can become nim mentors :P)
18:25:29Yardanicobut it will happen as exercism v2 will be released
18:25:51FromGitter<Varriount> miran: Well, I really dislike "im" as a name for that constant.
18:26:25miranimo, 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:45FromGitter<Varriount> miran: Done.
18:32:38dom96Yardanico: Cool. You should help turn nim-lang.ru into a great resource :)
18:32:45Yardanico:D
18:32:48Yardanicoyeah, I will
18:33:07YardanicoI'm thinking about translating tut1 and tut2
18:33:12FromGitter<Varriount> I can see it now... "Nim becomes top programming language in Russia" :P
18:33:51dom96Varriount: https://irclogs.nim-lang.org/02-06-2018.html#23:21:42
18:34:12dom96Yardanico: I saw that mentoring exercism thing
18:34:19dom96Would be nice if somebody replies to it :)
18:34:56Yardanicowell, I completed it and they just automatically invite you to their slack server
18:35:17FromGitter<Varriount> dom96: Ah, that was my mistake. I didn't see araq's comment.
18:35:30FromGitter<Varriount> I'll go and fix that as well.
18:37:56FromGitter<Varriount> @dom96 https://github.com/nim-lang/Nim/pull/7949
18:38:06dom96heh, I guess I'm the community manager
18:38:37dom96Varriount: No need for a PR for this stuff, just edit the file :)
18:39:23dom96I wonder, do we get points for answering those exercism questions so quickly?
18:39:28dom96Thanks for answering them guys
18:39:31FromGitter<Varriount> dom96: It's bad form for someone to accept their own pull requests.
18:39:42Yardanico@Varriount just directly edit the file :)
18:39:49dom96I expected other languages to answer them even faster
18:40:12Yardanicowell, still not all questions are answered :)
18:40:29dom96Rust answered quickly too
18:40:39dom96but all others I've looked at are empty
18:40:40FromGitter<data-man> https://github.com/nim-lang/Nim/blob/devel/lib/impure/db_sqlite.nim#L34
18:41:08dom96Wish we had a community team
18:42:19dom96Somebody should create a newsletter for Nim :)
18:44:20Araqmy long silence is over.
18:45:38Yardanicoyah, hi!
18:48:32Araqso ... anything that demands my immediate action?
18:48:48FromGitter<arnetheduck> Exceptions!
18:48:53FromGitter<arnetheduck> :)
18:49:01*edcragg quit (Ping timeout: 256 seconds)
18:49:13*edcragg joined #nim
18:57:05Araqdid we decide on an RFC/path?
18:58:39FromGitter<data-man> https://github.com/nim-lang/Nim/pull/7944 memfile's bugfixes
19:11:26Yardanicolibman[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:42Araqdata-man ... so what does your improved system.nim contain?
19:19:08YardanicoI think he's not pinged without @ (because he's on Gitter) @data-man
19:24:25FromGitter<zetashift> @Araq missed you good ol BDFL
19:24:44Araqthanks.
19:34:15Araq@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:03YardanicoAraq oh, yes, I forgot - https://forum.nim-lang.org/t/3879 :D
19:39:11Yardanico(you've probably already seen it)
19:39:18AraqI'm replying.
19:43:45FromGitter<kayabaNerve> Wait. How is .. and SPACE..SPACE different?
19:44:04FromGitter<kayabaNerve> Don't most languages only require spaces between keywords?
19:44:46FromGitter<kayabaNerve> !eval if 0>-1:echo 1 else:echo2
19:44:47NimBotCompile failed: in.nim(1, 5) Error: undeclared identifier: '>-'
19:44:54FromGitter<kayabaNerve> if 0> -1:echo 1 else:echo2
19:45:13FromGitter<kayabaNerve> Forgot !eval.... I'll get it working and come back
19:45:44FromGitter<mratsim> because you can create any infix operator, >- and > - are different
19:45:51FromGitter<kayabaNerve> Oh. Just forgot a space between echo and 2
19:45:53FromGitter<kayabaNerve> Yeah. I got that
19:45:58FromGitter<kayabaNerve> if 0> -1:echo 1 else:echo 2 works
19:46:04FromGitter<kayabaNerve> That's... minified.
19:46:16FromGitter<kayabaNerve> Now if add a space between 0 and >, the code changes?
19:46:25Araqno.
19:46:25FromGitter<kayabaNerve> That's what's happening with .. and SPACE..SPACE lol
19:46:26FromGitter<mratsim> no
19:46:36FromGitter<kayabaNerve> Not this. In the case of .. specifically
19:47:09FromGitter<kayabaNerve> Or is the forum post wrong/I'm missing something?
19:47:54FromGitter<mratsim> it’s wrong
19:47:56FromGitter<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:04FromGitter<kayabaNerve> Got it. Sorry for the big discussion then :P
19:48:05FromGitter<mratsim> unary < was killed to avoid that
19:48:29FromGitter<kayabaNerve> @mratsim I got a Nim UInt lib that works on stable. I wanted to tell you
19:48:31FromGitter<mratsim> before we had <2 = 1
19:48:36FromGitter<kayabaNerve> Where have you been the past few days?
19:48:52FromGitter<mratsim> I’m doing competitive data science :p
19:49:13FromGitter<mratsim> finished 44/350 for “The best data scientist of France” competition
19:49:25FromGitter<mratsim> and I have a 3 months competition going on as well.
19:49:26YardanicoCongrats!
19:49:42FromGitter<kayabaNerve> Congrats!
19:50:18FromGitter<mratsim> thanks!
19:51:26FromGitter<kayabaNerve> So, ttmath has fixed, but any, sized ints, right?
19:51:35FromGitter<mratsim> yes
19:51:42FromGitter<mratsim> power of 2*
19:51:52FromGitter<kayabaNerve> And STint is just a better wrapper around the Nim wwrapper of TTMath?
19:52:04FromGitter<mratsim> stint is rewritten from the ground up
19:52:04FromGitter<kayabaNerve> Also built by Status
19:52:17FromGitter<mratsim> with proper tests
19:52:18FromGitter<kayabaNerve> Oh. I thought it had a ttmath dependency?
19:52:29FromGitter<mratsim> the dependency is just for testing actually
19:52:42FromGitter<mratsim> but I can’t make optional test dependencies in nimble so ….
19:53:02FromGitter<kayabaNerve> got it
19:53:08FromGitter<kayabaNerve> But it is also fixed size, right?
19:53:39FromGitter<mratsim> yes
19:54:41FromGitter<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:52FromGitter<mratsim> Btw somehow Colvin is using ttmath to benchmark geth, and parity: https://github.com/gcolvin/evm-drag-race
19:55:08FromGitter<kayabaNerve> I may use IMath for some small stuff or to transfer numbers but not to do operations
19:56:11FromGitter<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:30FromGitter<mratsim> and it’s faster as well.
19:56:31FromGitter<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:44FromGitter<kayabaNerve> Yeah. I get that. Different use cases. I just thought you may want to look it over
19:59:22FromGitter<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:45FromGitter<notTito> can you merge ? ;) https://github.com/nim-lang/website/pull/90
20:02:24Yardanico@notTito it will need some review first :)
20:02:30Yardanicoah, nvm
20:03:03FromGitter<notTito> yeah sure
20:03:46FromGitter<notTito> i am just bringing attention bc the other one is there for 3 months lol
20:05:50Yardanicothere's another pending post too (but yeah, it's very big)
20:06:02FromGitter<notTito> you might want this one because it covers directly a nim topic and it is not about something irrelevant
20:06:35FromGitter<notTito> steam on wine in linux (crazy example i came up with just now)
20:06:45FromGitter<notTito> :P
20:09:10dom96Welcome back Araq
20:09:31FromGitter<mratsim> quick, clean up the house!
20:12:40FromGitter<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:07FromGitter<kayabaNerve> We're talking likely 10 hours and 3 nim wrappers before I settled
20:19:02Yardanicowhy didn't you just install devel? :D
20:20:13FromGitter<kayabaNerve> @mratsim Was it devel plus a patch or just devel?
20:21:15FromGitter<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:30FromGitter<kayabaNerve> And my code isn't for me but for a future group who will likely depend on stable, not devel
20:21:44Yardanicowell, next stable will contain code from devel :)
20:22:02FromGitter<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:11FromGitter<kayabaNerve> Yardanico: All stable code was once unstable? :P
20:22:19Yardanicoyes :)
20:22:34FromGitter<kayabaNerve> There's more unstable code in the world then stable code
20:22:43FromGitter<kayabaNerve> Unstable code is mass typed; stable is hand picked
20:23:03Yardanicoit's very unlikely that something added to devel will be removed before next stable release
20:23:11Yardanicoof course it happens, but it's very unlikely
20:29:05KaynatoHello mratsim, could I ask how you managed to call cuda kernels from nim?
20:32:10YardanicoIf you want to mention him - use @, he's on Gitter
20:32:11Yardanico@mratsim
20:56:34*TheLemonMan joined #nim
20:57:44TheLemonManyo, 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:38dom96cast[array[len, cint]](thePointer)
20:59:13Araqcast[ptr UncheckedArray[cint]](thePointer)
20:59:29Araqis the modern variant, dom96 :-)
20:59:54dom96Better to show people the safer variant anyway :P
21:00:11dom96in case they happen to know the length statically
21:00:42TheLemonMandamn, that's quite lenghty
21:03:33dom96Might be better to update the wrapper to use the type Araq showed
21:03:33*Vladar quit (Quit: Leaving)
21:04:00Araqyeah, the wrapper is actually wrong.
21:04:13Araqthe type it not "pointer to int", it's "pointer to an array of ints"
21:14:27TheLemonManhmm, 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:56FromGitter<Varriount> Hm, what's the new "module" to import standard library modules from? `std`?
21:48:00dom96yes
21:48:10dom96but you shouldn't use it unless necessary
21:48:14dom96to disambiguate
22:03:06FromGitter<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:26FromGitter<Yardanico> https://www.theverge.com/2018/6/3/17422752/microsoft-github-acquisition-rumors
22:22:12FromGitter<Yardanico> I hope it won't have any effect on GitHub functionality
22:27:22dom96Yeah... this is gonna be interesting
22:27:51FromGitter<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:28FromGitter<Yardanico> Also there's GitLab ready to transfer your repositories with issues, labels, pull requests :D
22:36:38dom96or we just write our own GitHub ;)
22:36:44dom96in Nim :D
22:41:03FromGitter<Yardanico> Like gogs written in Go?
23:00:09dom96yep
23:00:18dom96but better
23:04:16Araqthis incremental compilation feature is killing me... had to add a whole new stdlib module to support it properly
23:05:20Araqoh well, at least it's sound and previously it was madness
23:05:25Araqgood night.
23:05:41FromGitter<Varriount> Araq: You are (indirectly) helping me a great deal right now.
23:06:19FromGitter<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:03shashlick@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:16FromGitter<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:37FromGitter<Varriount> shashlick: Do you know why the sections for nimgen's config have the 'n.' prefix?