<< 14-03-2019 >>

00:04:05*Jesin quit (Quit: Leaving)
00:07:05*chimez joined #nim
00:09:59*zyklon joined #nim
00:13:00*lritter quit (Ping timeout: 272 seconds)
00:15:20Araq--debugger:native implies --debuginfo
00:16:51*rnrwashere joined #nim
00:21:24*rnrwashere quit (Ping timeout: 252 seconds)
00:21:35shashlickhmm, then no idea what got debugging working again
00:23:38*neceve quit (Remote host closed the connection)
00:24:18*stefanos82 quit (Remote host closed the connection)
00:27:27*rnrwashere joined #nim
00:27:35*Jesin joined #nim
00:31:03*ng0 quit (Ping timeout: 256 seconds)
00:37:57*rnrwashere quit (Remote host closed the connection)
00:41:46*theelous3_ quit (Ping timeout: 244 seconds)
00:44:28*ng0 joined #nim
00:44:31*rnrwashere joined #nim
00:52:11*chimez quit (Quit: chimez)
00:58:38*banc quit (Ping timeout: 246 seconds)
01:03:31*banc joined #nim
01:28:38*ng0 quit (Quit: Alexa, when is the end of world?)
01:43:17FromGitter<arnetheduck> fwiw, stacktrace/linetrace are incredibly slow.. --debuginfo carries no perf overhead, but does give you the same fancy call stacks as easily
01:44:37*xaxisx quit (Ping timeout: 245 seconds)
01:46:56*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
01:50:55*xaxisx joined #nim
02:01:50*xaxisx quit (Ping timeout: 250 seconds)
02:06:00*xaxisx joined #nim
02:42:06*ftsf joined #nim
02:44:52*xaxisx quit (Read error: Connection reset by peer)
02:45:31ryukopostingyo so where is the code for nimble.directory, I want to give its readme view the ability to show my gitlab readme
02:45:38ryukopostingcause it only shows readmes for github rn
02:52:23*rnrwashe_ joined #nim
02:53:12*rnrwashere quit (Ping timeout: 252 seconds)
02:59:15*rnrwashere joined #nim
03:00:37*theelous3_ joined #nim
03:00:43*rnrwash__ joined #nim
03:02:33*rnrwashe_ quit (Ping timeout: 252 seconds)
03:02:41*banc quit (Quit: Bye)
03:03:39*rnrwashere quit (Ping timeout: 252 seconds)
03:09:25*rnrwash__ quit (Remote host closed the connection)
03:10:09*rnrwashere joined #nim
03:18:54*theelous3_ quit (Read error: Connection reset by peer)
03:23:40*banc joined #nim
03:28:22*rnrwashere quit (Remote host closed the connection)
03:29:20*rnrwashere joined #nim
03:42:40*dddddd quit (Remote host closed the connection)
03:45:12ryukopostingwait so if I tricked the compiler into calling c2nim instead of gcc, could I make an infinite compilation loop
03:54:48*rnrwashere quit (Remote host closed the connection)
03:54:51*ftsf quit (Ping timeout: 252 seconds)
04:24:50*nsf joined #nim
04:26:09*chemist69 quit (Ping timeout: 252 seconds)
04:28:09*chemist69 joined #nim
04:46:47*ftsf joined #nim
04:59:49*flaviu joined #nim
05:45:44*seerix quit (Remote host closed the connection)
05:52:27*Jjp137 quit (Read error: Connection reset by peer)
05:52:57*Jjp137 joined #nim
05:54:46*chimez joined #nim
05:55:53*narimiran joined #nim
06:00:30*tiorock joined #nim
06:00:30*tiorock quit (Changing host)
06:00:30*tiorock joined #nim
06:00:30*rockcavera is now known as Guest37646
06:00:30*Guest37646 quit (Killed (asimov.freenode.net (Nickname regained by services)))
06:00:31*tiorock is now known as rockcavera
06:09:42*disruptek quit (Ping timeout: 250 seconds)
06:13:52*disruptek joined #nim
06:16:25*flaviu quit (Remote host closed the connection)
06:19:04*chimez quit (Quit: chimez)
06:42:39*solitudesf joined #nim
07:00:00*gmpreussner quit (Quit: kthxbye)
07:04:42*gmpreussner joined #nim
07:13:42*ftsf quit (Quit: Leaving)
07:38:09*jjido joined #nim
07:43:22*Vladar joined #nim
08:11:31*solitudesf quit (Ping timeout: 252 seconds)
08:12:18*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:20:08*ftsf joined #nim
08:28:01*PMunch joined #nim
08:35:53*stefanos82 joined #nim
08:48:25*ftsf quit (Read error: Connection reset by peer)
08:59:25*ng0 joined #nim
09:02:09*floppydh joined #nim
09:07:18*neceve joined #nim
09:15:34*leorize quit (Quit: WeeChat 2.3)
09:29:31*leorize joined #nim
09:43:44*Vladar quit (Remote host closed the connection)
09:47:54*leorize quit (Ping timeout: 252 seconds)
09:48:02*Vladar joined #nim
09:50:05*leorize joined #nim
09:53:05*abm joined #nim
09:55:26*kapil____ joined #nim
10:19:31*solitudesf joined #nim
10:22:19*dom96_w joined #nim
10:26:22FromGitter<mratsim> @ryukoposting it's somewhere in @FedericoCeratto repos
10:33:58*JustASlacker joined #nim
10:35:13*bobby quit (Ping timeout: 246 seconds)
10:41:13*bobby joined #nim
11:00:08*dom96_w quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:09:54*dom96_w joined #nim
11:13:01*enow joined #nim
11:13:03enowHi
11:13:14enowI don't understand how to deal with the guard pragma in nim
11:13:32enow 8 var fp_lock : TLock
11:13:32enow 9 var freq_prof {.guard: fp_lock.} = newTable[system.string,CountTable[system.string]]()
11:14:19enow 22 acquire(fp_lock);
11:14:19enow 23 {.locks: [fp_lock]}:
11:14:19enow 24 var k = freq_prof.hasKey(xs)
11:14:28enowShould be Lock and not TLock at line 8
11:14:38enowstill gives me
11:14:39enowmessenger.nim(12, 6) Warning: 'procString' is not GC-safe as it accesses 'freq_prof' which is a global using GC'ed memory [GcUnsafe2]
11:15:37Araqthis will never work without --newruntime
11:17:38Araqthe problem is not the .guard or your lock
11:18:05Araqthe problem is that the lock doesn't help as all of newTable[system.string,CountTable[system.string]]() uses a thread local heap
11:19:50enowoh of course how stupid of me
11:20:11enowhow can I fix that should I send it as a pointer or what?
11:29:24*vlad1777d quit (Ping timeout: 272 seconds)
11:29:29Araqone easy way out is to use a single thread that you send requests to
11:30:19Araqthreadpool uses a "distinguished" thread concept for that
11:32:07Araqsorry, I'm too busy to gist an example.
11:37:25*Snircle joined #nim
11:46:01enowno worries, you've helped a lot already
11:49:40*dddddd joined #nim
12:14:29*couven92 joined #nim
12:16:06*nsf quit (Quit: WeeChat 2.4)
12:24:58FromGitter<deech> @Araq: Do you have any opinions on the Go compilation model vs. compiling to C/C++ as Nim currently does?
12:41:31*cgfuh joined #nim
12:46:06Araqdeech: you mean we should compile Nim to Go?
12:48:44FromGitter<deech> @Araq: No just that Go has a pretty different way of compiling to machine code. It has a completely bespoke toolchain so Go binaries don't even depend on libc.
12:49:23Araqwe will get rid of the libc dependency too, eventually.
12:50:01Araqalready have our own allocator and IO is now factored out into system/io.nim
12:51:40Araqbut compiling to C is one our strengths too, Nim runs on devices that LLVM doesn't
12:52:45*dom96_w quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:53:26FromGitter<deech> Cool! Did not know about the allocator.
12:54:09shashlickI like that fact too
12:54:43shashlickAnd building on an old libc with holy build box is pretty easy
12:55:45Araqwe have an awesome O(1) allocator. And then we have a bunch of shitty GCs on top.
13:00:24FromGitter<mratsim> BTW AFAIK Nim methods are supposed to be O(1) according to the multimethods constant time paper
13:01:05FromGitter<mratsim> But are they, it doesn't seem like it
13:05:35*dom96_w joined #nim
13:12:20Araqwhat paper?
13:17:44*chimez joined #nim
13:17:44*chimez quit (Client Quit)
13:28:10*lritter joined #nim
13:51:02avanderneutI tried to move a working compiler option `--path:/home/anthon/src/nim/lib` to my `nim.cfg` which did not work ( Error: argument for command line option expected: '--path' ). It took me quite a bit of time to realise that in the config file you need to quote the path (--path:"/home/anthon/src/nim/lib" ).
13:51:17avanderneutDid I miss something in the documentation that states this?
13:59:42*waleee joined #nim
14:00:24Araqthe nim.cfg uses Nim's lexer if that helps you
14:01:28*neceve quit (Read error: Connection reset by peer)
14:04:59*neceve joined #nim
14:09:56avanderneutFromDiscord: I could probably have traced the source to that point, but it was a bit unexpected. And there being no example nim.cfg in the section on where to put it didn't really help.
14:14:07Araqmy config/nim.cfg is over 300 lines and uses every feature it offers
14:15:28Araqand my config is the default config. you don't have to trace the source to the point, simply reading the existing one would have sufficed ;-)
14:24:17FromGitter<mratsim> @Araq this paper: https://hal.inria.fr/inria-00073798/document
14:25:07FromGitter<mratsim> Efficient Dispatch of Multimethods in Constant Time ⏎ Using Dispatch Trees
14:25:43*FromGitter quit (Remote host closed the connection)
14:35:11Araqyeah we don't use that, in fact, there is now a PR to turn methods into single methods
14:35:53narimiran(for those who are gonna search for it: it is not yet published PR, but it is in the works)
14:38:44*JustASlacker quit (Quit: Leaving)
14:42:32avanderneutAraq: Because of the way I installed nim, the nim.cfg was not in /etc/nim I never realised I had a (i.e. your) full nim.cfg to look at %-)
14:58:48*rnrwashere joined #nim
15:02:26*rnrwashere quit (Remote host closed the connection)
15:07:17*rnrwashere joined #nim
15:07:58*rnrwashere quit (Remote host closed the connection)
15:14:24*kapil____ quit (Quit: Connection closed for inactivity)
15:15:36*vlad1777d joined #nim
15:16:06*PMunch quit (Remote host closed the connection)
15:24:14*ryukoposting quit (Quit: WeeChat 1.6)
15:26:29*Jesin quit (Quit: Leaving)
15:29:07enowSay I have an object FB = ref object
15:29:08enowand then run
15:29:14enowspawn fb.scan()
15:29:22enowwould this create a new copy of the FB object
15:31:08*nsf joined #nim
15:34:18Araqyes
15:34:27shashlickis cligen in the list of nimble packages being tested
15:34:31*Jesin joined #nim
15:34:32shashlickit is broken again with devel
15:34:59Araqpkg "cligen", "nim c -o:cligenn cligen.nim"
15:35:08Araqyes, it is in the list.
15:36:06shashlick... /tmp/nimble_27847/githubcom_cblakecligengit_0.9.17/cligen.nim(673, 14) template/generic instantiation of `dispatchGen` from here
15:36:06shashlick ... /tmp/nimble_27847/githubcom_cblakecligengit_0.9.17/cligen/argcvt.nim(8, 24) Error: undeclared identifier: '$'
15:36:56*floppydh quit (Quit: WeeChat 2.4)
15:37:26Araq$ is now in system/dollars.nim
15:39:42shashlickhow come this wasn't caught by CI
15:41:08AraqI don't know. we test 'nim c -o:cligenn cligen.nim'
15:41:22narimiran...and that passes, i've just tried it
15:42:22shashlickhttps://github.com/c-blake/cligen/issues/91
15:44:16shashlickcligen.nim has no main method, don't think any tests are run
15:44:19leorizecligen is a macro construction, so I don't think it's wise to test it without actually invoking the dispatch macro
15:45:19shashlickif you run ./test.sh, it will fail
15:46:49Araqwhy would we run ./test.sh, we have nimble tests targets
15:47:46shashlickthat's how the dev tests his stuff
15:48:19shashlickif you run nimble test, it says all tests passed, it doesn't run anything
15:49:36narimiranthere is no `nimble test` for cligen
15:49:54narimiranthat's why we're doing that `nim c ....` for that packages and several others
15:55:22Araqwell we should add $ back to typetraits
15:56:40narimiranbefore it was `include "system/helpers"` (which are now gone) and then `export system.$` :/
15:57:51Araqit was in typetraits, it should be in typetraits, forwarded or not
16:00:05narimiranok
16:02:35narimiranjust `export system.$` seems to do the trick
16:06:35Araqshashlick: we test the Nimble packages on appveyor, we can't run Posix shell scripts
16:09:45Araqor at least we don't want to. :P
16:12:31narimiranshashlick: i've pushed it, that "from typetraits import `$`" line should be fine now
16:22:14*noeontheend joined #nim
16:35:53*jxy quit (Ping timeout: 245 seconds)
16:42:58*jxy joined #nim
16:58:02shashlickthanks!
17:21:03*gangstacat quit (Quit: Ĝis!)
17:37:19*dom96_w quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:42:52shashlickis it possible to use cligen to parse any string instead of the command line
17:44:54*waleee quit (Quit: WeeChat 2.4)
17:47:05*kapil____ joined #nim
17:48:55Araqshashlick: I don't know
17:50:08*gangstacat joined #nim
18:04:20*MyMind joined #nim
18:05:57*Sembei quit (Ping timeout: 244 seconds)
18:08:21shashlicki'm using parseCmdLine() from os - works well
18:22:42*arecacea1 quit (Remote host closed the connection)
18:23:00*arecacea1 joined #nim
18:39:52avanderneutshashlick: you can redefine mergeParams() before calling dispatch, with that you can commandline parameters from any source, even if the real commandline is empty.
18:40:08*rayman22201 quit (Quit: Connection closed for inactivity)
18:40:29avanderneut^can^can insert^
18:54:56shashlickok - for now, i'll stick to parseCmdLine()
18:55:08shashlickhave basic searching working in feud
19:09:36*jjido joined #nim
19:15:11*MyMind quit (Ping timeout: 246 seconds)
19:35:39*rayman22201 joined #nim
19:53:54*narimiran_ joined #nim
19:56:08*narimiran quit (Ping timeout: 246 seconds)
19:59:01*Vladar quit (Remote host closed the connection)
20:14:15*rnrwashere joined #nim
20:20:53*nsf quit (Quit: WeeChat 2.4)
20:21:28*joshbaptiste quit (Ping timeout: 246 seconds)
20:22:07*joshbaptiste joined #nim
20:22:13Zevvdid someone say parse?!
20:23:22CalinouAraq: one could rewrite the script in PowerShell if it's not too long
20:23:29Calinou(technically, it'd work on Linux even :P)
20:37:01*enow quit (Quit: leaving)
20:37:02*noeontheend quit (Read error: Connection reset by peer)
20:38:59*ryukoposting joined #nim
20:39:20ryukoposting`parsejson.nim(186, 8) Error: interpretation requires too many iterations; if you are sure this is not a bug in your code edit compiler/vmdef.MaxLoopIterations and rebuild the compiler`
20:39:44ryukopostingwat
20:39:56*rnrwashere quit (Remote host closed the connection)
20:40:36*rnrwashere joined #nim
20:41:12jjidoAre you doing compile-time looping?
20:41:40ryukopostingwell, the stdlib json parser is apparently
20:42:06ryukopostingit's just strange because it failed on the smaller of the two files im parsing
20:42:25ryukopostingthe bigger one is over 23,000 lines, this one is only ~11400
20:45:09*rnrwashere quit (Ping timeout: 252 seconds)
20:47:20*Trustable joined #nim
20:49:12*rnrwashere joined #nim
20:49:16*rnrwashere quit (Remote host closed the connection)
20:50:19shashlicki believe @krux02 added support for that recently in devel
20:51:03ryukopostingyeah, im using it
20:51:29ryukopostingi was actually the one who was asking for it initially lol
21:06:45*Trustable quit (Remote host closed the connection)
21:36:01*narimiran_ quit (Ping timeout: 246 seconds)
21:44:38*abm quit (Ping timeout: 246 seconds)
22:04:59*abm joined #nim
22:05:22*abm quit (Read error: Connection reset by peer)
22:23:54*abm joined #nim
22:37:16*solitudesf quit (Ping timeout: 250 seconds)
22:44:38*stefanos82 quit (Remote host closed the connection)
23:34:23*kapil____ quit (Quit: Connection closed for inactivity)
23:39:35*rnrwashere joined #nim
23:39:40*vlad1777d quit (Ping timeout: 250 seconds)
23:42:16*sealmove joined #nim
23:44:23*sealmove quit (Client Quit)
23:44:40*sealmove joined #nim
23:57:36*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)