<< 09-05-2015 >>

00:05:15*Matthias247 quit (Read error: Connection reset by peer)
00:10:55*loz1 quit (Ping timeout: 255 seconds)
00:13:40*drewsrem quit (Quit: Leaving)
00:14:13*dalarmmst quit (Ping timeout: 264 seconds)
00:15:44*saml_ joined #nim
00:18:44*dalarmmst joined #nim
00:23:51*gsingh93 quit (Ping timeout: 244 seconds)
00:28:54*loz1 joined #nim
00:30:21*TEttinger joined #nim
00:38:32*saml__ joined #nim
00:38:49*vendethiel quit (Ping timeout: 264 seconds)
00:41:00*saml__ quit (Client Quit)
00:48:24*loz1 quit (Ping timeout: 256 seconds)
00:58:36*flaviu quit (Read error: Connection reset by peer)
01:02:40*johnsoft quit (Ping timeout: 255 seconds)
01:03:03*johnsoft joined #nim
01:09:01*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:12:26*MightyJoe joined #nim
01:13:20*cyraxjoe quit (Ping timeout: 256 seconds)
01:13:27*MightyJoe is now known as cyraxjoe
01:25:12*jholland quit (Quit: Connection closed for inactivity)
01:40:09*gsingh93 joined #nim
01:50:42*vikaton joined #nim
02:05:37*darkf joined #nim
02:23:33*vikaton quit ()
02:44:49*gsingh93 quit (Ping timeout: 245 seconds)
02:46:59*dddddd quit (Ping timeout: 246 seconds)
02:47:15*ChrisMAN quit (Remote host closed the connection)
02:51:32*anthony joined #nim
02:51:39*anthony quit (Client Quit)
02:54:37*darkf_ joined #nim
02:56:41*darkf quit (Disconnected by services)
02:56:42*darkf_ is now known as darkf
03:11:06*vikaton joined #nim
03:18:54*gyeates joined #nim
03:26:06*yglukhov___ joined #nim
03:30:14*yglukhov___ quit (Ping timeout: 245 seconds)
03:31:36*JinShil joined #nim
03:33:57*ddl_smurf quit (Quit: ddl_smurf)
03:57:46*vendethiel joined #nim
04:04:16*gyeates quit (Ping timeout: 265 seconds)
04:18:53*ChrisMAN joined #nim
04:20:14*saml_ quit (Quit: Leaving)
04:45:34reactormonkgot an idea how to help nimsuggest find the correct main file in the compiler source tree? It's rather ugly in there.
04:56:13*yglukhov___ joined #nim
05:14:19*wb quit (Ping timeout: 256 seconds)
05:16:37*vendethiel quit (Ping timeout: 264 seconds)
05:29:13*ChrisMAN quit (Ping timeout: 264 seconds)
06:18:06*BlaXpirit joined #nim
06:20:54*BlaXpirit_ joined #nim
06:20:54*BlaXpirit quit (Killed (barjavel.freenode.net (Nickname regained by services)))
06:20:54*BlaXpirit_ is now known as BlaXpirit
06:22:15*bjz quit (Excess Flood)
06:23:22*bjz joined #nim
06:42:27*nikomil joined #nim
06:42:38*d3m1gd joined #nim
06:46:20*nikomil quit (Quit: nikomil)
07:21:56*yglukhov___ quit (Quit: Be back later ...)
07:25:51*vendethiel joined #nim
07:26:28*vendethiel quit (Client Quit)
07:34:35reloc0moin
07:43:05*zahary joined #nim
08:06:26dalarmmstCan I accomplish this somehow? http://pastebin.com/BAuQNL04 , I get Error: value of type 'RegType' has to be discarded. (get8bitRegister and getRegister returns a 'RegType')
08:07:56Araqdalarmmst: else: (quit("foo"); RegType.SomethingtoPleaseTheTypeChecker)
08:08:39BlaXpiritthat's lucky, but what if it was a return/break/continue?
08:08:53Araqit's a commonly requested feature that 'raise' yields a type that's compatible so that can work
08:09:20*wb joined #nim
08:09:39dalarmmstAraq: Thanks!
08:10:04*BlaXpirit quit (Quit: Quit Konversation)
08:10:48Araqbbl
08:12:24*banister joined #nim
08:13:25*Matthias247 joined #nim
08:15:21*allan0 quit (Quit: WeeChat 1.1.1)
08:16:06synthmeatwow, nim vim file plugin, together with syntastic plugin is the best vim coding experience of any other language i've tried
08:17:22synthmeatzahary: i'm gonna assume you're the one responsible for that? ('zah' on github)
08:17:24synthmeatawesome job
08:19:08zaharyadd https://github.com/tpope/vim-unimpaired and it will get even better - it adds commands for jumping between the errors
08:19:51*synthmeat goes to check it out
08:22:20synthmeatzahary: pretty cool. gonna try to use it this weekend and see how that goes. you should rename the repo to nim.vim asap :)
08:34:20*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:36:42TEttingervniimm
08:39:35synthmeattut1 & tut2 on nim-lang.org are incosistent in use of parentheses. somewhere you have echo(whatever()) and somewhere echo whatever(). procedures calls only, though
08:43:59*def- quit (Ping timeout: 244 seconds)
08:48:53*d3m1gd quit (Ping timeout: 246 seconds)
08:51:39synthmeatoh, so this "side-effects" (encountered this mostly reading up on functional paradigms) is "all that procedure does excluding returning value"?
08:51:52synthmeatwrtf "discard" in nim
08:51:56synthmeat*wrt
08:52:43*loz1 joined #nim
08:56:00synthmeata question - can a proc "know" if it's being called with discard?
08:57:45*HakanD__ joined #nim
09:02:58*grncdr joined #nim
09:05:22*loz1 quit (Ping timeout: 272 seconds)
09:06:44*loz1 joined #nim
09:07:28*MyMind joined #nim
09:09:49*Sembei quit (Ping timeout: 245 seconds)
09:10:56synthmeatalso, does "echo" use "$" in its implementation or something else?
09:11:41*def- joined #nim
09:12:05*buupisaway is now known as buup
09:13:46*Demon_Fox quit (Quit: Leaving)
09:18:00synthmeatwow, i can even mix up pragmas while overloading. sweet.
09:18:24*fowl quit (Ping timeout: 256 seconds)
09:19:53*filcuc joined #nim
09:20:49*grncdr quit (Ping timeout: 255 seconds)
09:21:16*grncdr joined #nim
09:30:50*yglukhov___ joined #nim
09:33:00*notfowl joined #nim
09:35:33*yglukhov___ quit (Ping timeout: 256 seconds)
09:36:48*yglukhov___ joined #nim
09:40:26*HakanD__ quit (Quit: Be back later ...)
09:41:28*yglukhov___ quit (Ping timeout: 272 seconds)
09:55:32*banister joined #nim
10:24:24*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:25:08*ingsoc joined #nim
10:33:07*yglukhov___ joined #nim
10:37:02*grncdr quit (Quit: Leaving.)
10:52:08*dddddd joined #nim
10:52:31*d3m1gd joined #nim
11:02:05*Kingsquee quit (Quit: Konversation terminated!)
11:02:23*banister joined #nim
11:06:48*filcuc quit (Ping timeout: 252 seconds)
11:15:04*Trustable joined #nim
11:18:12*ddl_smurf joined #nim
11:20:48*buup is now known as buupisaway
11:21:10*buupisaway is now known as buup
11:22:04*gokr left #nim (#nim)
11:27:30*Matthias247 quit (Read error: Connection reset by peer)
11:28:11*ingsoc1 joined #nim
11:28:57*ingsoc quit (Ping timeout: 240 seconds)
11:35:39*notfowl quit (Excess Flood)
11:35:49*akiradeveloper joined #nim
11:36:29*akiradeveloper quit (Client Quit)
11:36:54*notfowl joined #nim
11:42:25*arnetheduck joined #nim
11:52:19*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:10:48*dddddd21 joined #nim
12:11:31*dddddd21 quit (Client Quit)
13:03:37*saml_ joined #nim
13:06:03*gyeates joined #nim
13:10:53*gyeates quit (Ping timeout: 256 seconds)
13:26:57*Trustable quit (Remote host closed the connection)
13:30:36*TEttinger quit (Ping timeout: 272 seconds)
13:40:27*ddl_smurf quit (Read error: Connection reset by peer)
13:46:30*filcuc joined #nim
13:47:41*johnsoft quit (Read error: Connection reset by peer)
13:48:00*johnsoft joined #nim
13:58:33*filcuc quit (Ping timeout: 240 seconds)
14:02:48*ingsoc joined #nim
14:03:06*ingsoc quit (Client Quit)
14:03:32*ingsoc1 quit (Ping timeout: 272 seconds)
14:11:50*BlaXpirit joined #nim
14:21:42renesacsynthmeat: I don't think a proc can know if it is being called with discard, though the compiler may inline it in it's optimization pass
14:22:02renesacif that is your question
14:22:43renesacand you can use the pragma {.discardable.} from the proc if you don't want to force your caller to write discard to discard the result
14:23:13renesacbut still want to return a result just in case
14:42:29*darkf quit (Quit: Leaving)
14:44:12*gyeates joined #nim
14:46:56*Onward_Euler joined #nim
14:49:56*OnwardEuler quit (Ping timeout: 240 seconds)
15:10:57*gyeates quit (Ping timeout: 240 seconds)
15:12:50*dalarmmst quit (Ping timeout: 276 seconds)
15:17:34*banister joined #nim
15:24:58*dalarmmst joined #nim
15:41:26*loz1 quit (Ping timeout: 276 seconds)
15:41:30*gsingh93 joined #nim
15:42:44*gyeates joined #nim
15:54:44*gokr joined #nim
15:57:00*BitPuffin|osx joined #nim
15:58:13*loz1 joined #nim
15:58:22*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:08:52*allan0 joined #nim
16:09:32*gyeates quit (Ping timeout: 246 seconds)
16:11:36*saml_ quit (Ping timeout: 272 seconds)
16:12:51*BlaXpirit quit (Remote host closed the connection)
16:14:51*BlaXpirit joined #nim
16:18:07*jjjjjggggg quit (Ping timeout: 246 seconds)
16:23:33*johnsoft quit (Ping timeout: 256 seconds)
16:24:25*johnsoft joined #nim
16:29:06synthmeatrenesac: oh, compiler can make it discardable at its own discretion as optimization?
16:29:38synthmeatthen its useless for proc to know about it being discardable or not, cool.
16:30:28*johnsoft quit (Ping timeout: 272 seconds)
16:30:49*johnsoft joined #nim
16:36:02*dddddd quit (Ping timeout: 276 seconds)
16:44:27*banister joined #nim
16:44:32*banister quit (Max SendQ exceeded)
16:50:22*Matthias247 joined #nim
16:58:15reactormonkany idea how to support nimsuggest in the nim compiler tree? it's rather ugly in there. Somehow gotta find the project main file
17:01:44*grncdr joined #nim
17:04:10reactormonkhm, lemme just hardcode it.
17:04:38*loz1 quit (Ping timeout: 276 seconds)
17:06:45*loz1 joined #nim
17:07:16*gsingh93 quit (Ping timeout: 265 seconds)
17:18:53*BitPuffin|osx quit (Ping timeout: 265 seconds)
17:26:40*grncdr quit (Quit: Leaving.)
17:28:39*banister joined #nim
17:37:13reactormonkNow I have a slightly WTF problem with nimsuggest... first time, it works fine. second time, it takes 10 seconds. third time, it returns nothing.
17:39:19*OOOOOO joined #nim
17:40:27*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:52:49BlaXpiritD:
18:08:08*zahary1 joined #nim
18:08:08*zahary quit (Read error: Connection reset by peer)
18:10:34*gsingh93 joined #nim
18:11:48*d3m1gd quit (Ping timeout: 244 seconds)
18:13:45*banister joined #nim
18:31:49*OOOOOO quit (Ping timeout: 246 seconds)
18:35:01*grncdr joined #nim
18:37:07*Strikecarl joined #nim
18:37:19StrikecarlI know this might be a dumb question, but how come this:
18:37:20Strikecarlproc Test(x: string):
18:37:20Strikecarl echo x, "LOL"
18:37:23StrikecarlDoesnt work
18:37:28Strikecarlbut echo("Hey ", "LOL") does
18:40:09notfowlProc test(x: string) =
18:40:22notfowlNote the =
18:40:46Strikecarloh lmao
18:40:51Strikecarlwow
18:40:53Strikecarlwoooooooooooooooooow
18:41:08Strikecarlfuck this i need sleep
18:41:10*Strikecarl quit (Client Quit)
18:43:05*BBBBBBBBBB joined #nim
18:43:45notfowlNot his fault. The error you get when you do that sucks
18:48:58*notfowl is now known as unclefowl
18:50:49renesacsynthmeat: there is no guarantee that it will be optimized, but this is one of the micro-optimizations where you should profile first, and if necessary make another proc that don't returns anything
18:51:29renesacbut if the call is inlined, the return value will be optimized away
18:52:12*unclefowl quit (Excess Flood)
18:52:28*notfowl joined #nim
18:52:33*gokr_ joined #nim
18:55:53XeIs there a better way to parse configuration files than this? http://puu.sh/hHife/8fc5ff3405.png
18:59:37*Matthias247 quit (Read error: Connection reset by peer)
19:00:29renesacXe: it is probably possible to do a macro, as the variable names are known at compile time and most of the time equal to what is written in the config file
19:00:53gokr_there is Lapp and Blaxpirits port of...
19:01:08renesacdocopt?
19:01:12renesacthat is a different thing
19:01:15gokr_no wait, config file? sorry
19:01:21gokr_my bad
19:01:29renesacyeah, but the idea is similar
19:02:03gokr_isnt there an ini file parser in nim somewhere
19:02:33renesacit seems he is using one
19:04:22gokr_oh, i am on a phone sorry
19:04:40renesacsee my enchancement idea for BlaXpirit docopt for some inspiration: https://github.com/docopt/docopt.nim/issues/7
19:06:48renesacI never wrote a nim macro though, I'm not sure of what is easy or not
19:12:34*d3m1gd joined #nim
19:20:16*aboisvert quit (Quit: aboisvert)
19:20:41*aboisvert joined #nim
19:35:30*wan joined #nim
19:43:51*vendethiel joined #nim
19:44:31*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:44:58*BitPuffin|osx joined #nim
19:50:48*notfowl quit (Changing host)
19:50:48*notfowl joined #nim
19:50:48*notfowl quit (Changing host)
19:50:48*notfowl joined #nim
19:51:06*grncdr quit (Quit: Leaving.)
19:53:50*grncdr joined #nim
19:55:54*dddddd joined #nim
19:57:36*ingsoc joined #nim
19:59:32*grncdr quit (Quit: Leaving.)
20:07:53*banister joined #nim
20:12:46*def- quit (Ping timeout: 252 seconds)
20:14:41BlaXpiritXe, toml?
20:14:56XeBlaXpirit: link to it?
20:15:02BlaXpirithttps://github.com/judofyr/toml.nim
20:15:21BlaXpiritnvm
20:15:23BlaXpiritXe, https://github.com/ziotom78/parsetoml
20:16:10BlaXpiritalthough i don't think the code would get much better
20:18:52*Strikecarl joined #nim
20:19:02Strikecarlis there a Replace proc associated with parsing strings?
20:19:15Strikecarllike Replace(string, "A", "B")
20:19:26Strikecarland it replaces every A in the string with B?
20:22:46notfowlProbably in re
20:24:39renesacsee strutils too
20:28:04StrikecarlStrutils has one, but it doesn't do the job
20:28:12StrikecarlI was trying to make a Caeser cypher system
20:28:24Strikecarlso, a goes as b, b goes as c, etc.
20:29:50dom96there is a replace which replaces characters but not whole strings in strutils IIRC
20:30:30Strikecarlirrc? :c
20:30:32Strikecarliirc*
20:32:53BlaXpiritwrite a loop, gee
20:34:59*JinShil quit (Quit: Konversation terminated!)
20:36:38*no_name quit (Remote host closed the connection)
20:36:38*devzerp quit (Remote host closed the connection)
20:38:29*ingsoc quit (Quit: Leaving.)
20:38:39*Kingsquee joined #nim
20:38:41*ingsoc joined #nim
20:41:00*grncdr joined #nim
20:41:48*def- joined #nim
20:45:40*no_name joined #nim
20:45:40*devzerp joined #nim
20:55:58*d3m1gd quit (Ping timeout: 256 seconds)
20:56:42*Kingsquee quit (Quit: Konversation terminated!)
20:59:59*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:01:11*banister joined #nim
21:06:26*dalarmmst quit (Ping timeout: 276 seconds)
21:17:58*Strikecarl quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
21:18:44*dalarmmst joined #nim
21:19:24*Kingsquee joined #nim
21:22:40*Demon_Fox joined #nim
21:22:41*brson joined #nim
21:28:40*saml_ joined #nim
21:36:07*brson quit (Quit: leaving)
21:50:22dalarmmsthttp://pastebin.com/uy9n7WEh why doesn't the second case work?
21:51:25*MyMind quit (Ping timeout: 250 seconds)
21:52:04BlaXpiritdalarmmst, that's just invalid
21:52:05*Pisuke joined #nim
21:52:12BlaXpiritno need for this complex example to see
21:52:24BlaXpiritlet rex = 5 reg = 6
21:52:27*gsingh93 quit (Ping timeout: 264 seconds)
21:53:36*gsingh93 joined #nim
21:53:49*Trustable joined #nim
21:54:18dalarmmstI don't see the difference in indentation in my previous example, and this http://pastebin.com/xnCHgH0S (which works)
21:55:22dalarmmstSorry.. I'm tired
21:55:24dalarmmstNever mind
21:55:26BlaXpirit. . .
21:55:49dalarmmstI forgot to add rex to a new line
21:57:20ldleworkrenesac: hey
21:57:49ldleworkfor macros have you read, http://blog.ldlework.com/2015/05/01/a-cursory-look-at-meta-programming-in-nim/
21:58:14renesacldlework: I've read it, indeed a good introduction
21:58:22renesacbut I didn't try to practice
21:58:24renesac^^"
21:58:30ldleworkthanks
21:59:23*davidhq joined #nim
22:02:06*aboisvert quit (Quit: aboisvert)
22:02:13*gsingh93 quit (Ping timeout: 264 seconds)
22:06:54*loz1 quit (Ping timeout: 245 seconds)
22:24:52*loz1 joined #nim
22:28:28*jbomo joined #nim
22:28:43*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
22:33:39*yglukhov___ quit (Quit: Be back later ...)
22:35:18*yglukhov___ joined #nim
22:39:51*yglukhov___ quit (Ping timeout: 264 seconds)
22:41:23*ingsoc quit (Quit: Leaving.)
22:54:02*OnO joined #nim
22:58:44*Trustable quit (Remote host closed the connection)
22:58:49*grncdr quit (Quit: Leaving.)
23:03:46*gyeates joined #nim
23:12:43*buup is now known as buupisaway
23:14:20*vikaton quit ()
23:15:08*gyeates quit (Ping timeout: 276 seconds)
23:15:22*brson joined #nim
23:28:31*ChrisMAN joined #nim
23:37:41*OnO quit (Quit: My iMac has gone to sleep. ZZZzzz…)
23:38:03*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:43:37*vikaton joined #nim
23:50:13*xificurC quit (Remote host closed the connection)
23:50:39*loz1 quit (Ping timeout: 245 seconds)
23:50:47*xificurC joined #nim
23:52:43*so joined #nim
23:54:41*BlaXpirit quit (Quit: Quit Konversation)
23:54:44*OnO joined #nim
23:54:44*OnO quit (Client Quit)