<< 30-07-2015 >>

00:00:44fowlfilwit, thanks, i dont know for sure that overloading deref works anyways
00:03:11dom96filwit: is 5 valid syntax?
00:03:16dom96*line 5
00:07:44*NimBot joined #nim
00:39:54*Kingsquee joined #nim
00:58:28*wb_ joined #nim
00:58:50filwitdom96: eh.. one sec let me look
00:59:29filwitdom96: yeah? what looks wrong about line 5?
00:59:50*wb quit (Ping timeout: 240 seconds)
01:23:41*wuehlmaus quit (Quit: Lost terminal)
01:30:14*wb_ quit (Ping timeout: 272 seconds)
02:00:30*brson joined #nim
02:20:34*bogen quit (Quit: Leaving.)
02:20:55*bogen joined #nim
02:50:36*filwit quit (Quit: Leaving)
02:51:41Varriountreactormonk: ping
03:03:31*Varriount quit (Read error: Connection reset by peer)
03:13:50*brson quit (Ping timeout: 240 seconds)
03:15:03*brson joined #nim
03:19:07*flaviu quit (Ping timeout: 256 seconds)
03:22:27*brson quit (Ping timeout: 260 seconds)
03:23:00*darkf joined #nim
03:23:19*brson joined #nim
03:24:04*flaviu joined #nim
03:54:01porglezompIs there a heap / priority queue in the standard library?
03:58:07*fowl is now known as notfowl
04:01:19renesacporglezomp: http://forum.nim-lang.org/t/1244
04:02:32*strcmp1 quit (Quit: Leaving)
04:20:19*xificurC quit (Ping timeout: 256 seconds)
04:28:12*vegansk joined #nim
04:28:47*Kingsquee quit (Read error: Connection reset by peer)
04:29:14*Kingsquee joined #nim
04:42:46*brson quit (Ping timeout: 240 seconds)
04:56:54*vendethiel joined #nim
04:59:48*Demon_Fox quit (Quit: Leaving)
05:04:28*bogen quit (Read error: Connection reset by peer)
05:08:54*Demon_Fox joined #nim
05:11:14*boopisaway is now known as boop
05:11:16*boop is now known as boopisaway
05:21:09*zaquest quit (Quit: Leaving)
05:21:51*vendethiel quit (Ping timeout: 255 seconds)
05:40:29*bogen joined #nim
06:13:33*yglukhov joined #nim
06:15:55*yglukhov quit (Remote host closed the connection)
06:19:52*kas joined #nim
06:28:31*yglukhov joined #nim
06:30:16*jszymanski joined #nim
07:08:56*Ven joined #nim
07:28:00*porglezomp quit (Ping timeout: 264 seconds)
07:33:03*xificurC joined #nim
07:58:01*kas quit (Ping timeout: 244 seconds)
07:59:57*coffeepot joined #nim
08:28:52*dalarmmst quit (Ping timeout: 272 seconds)
08:30:29*wuehlmaus joined #nim
08:40:37*Trustable joined #nim
08:40:39*wb joined #nim
08:43:31*BitPuffin|osx quit (Ping timeout: 260 seconds)
08:58:37*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:14:45*gimireh joined #nim
09:15:38*bogen quit (Read error: Connection reset by peer)
09:18:27*Demon_Fox quit (Quit: Leaving)
09:20:30Araqhi gimireh welcome
09:23:07*ChrisMAN quit (Ping timeout: 265 seconds)
09:27:40federico3hi infinity0
09:30:18*MatrixBridge quit (Ping timeout: 272 seconds)
09:33:34*MatrixBridge joined #nim
09:42:36*gimireh quit (Remote host closed the connection)
09:43:50*gimireh joined #nim
09:44:06*gimireh quit (Remote host closed the connection)
09:44:55*gimireh joined #nim
09:45:07*gimireh quit (Remote host closed the connection)
09:45:26coffeepotis there any function about that converts a unicode rune to a widechar (aka utf16)?
09:46:07coffeepotI mean, I don't think I can just cast it, not quite sure how to do it :/
09:46:30Araqdunno, there is unicode.nim and encodings.nim
09:47:06Araqwidechar is a disease
09:47:22coffeepottell that to sql server ;)
09:47:41AraqwideCstrings are utf-16 based
09:47:41coffeepotat first glance looks like encodings.nim is what I want :)
09:48:53coffeepotI am trying to put a seq[rune] into a buffer than expects widestring
09:49:23AraqI told you to not use seq[rune], use string instead and convert it iva newWideCString
09:49:48Araqnothing uses seq[rune] anyway
09:52:24coffeepotokay, i'll see how it goes with just string. I just wish sql server could deliver utf8 like every other db
09:53:07*xcombelle joined #nim
09:56:38*Ven joined #nim
10:03:19*gokr joined #nim
10:06:37*Ven quit (Remote host closed the connection)
10:08:42*Ven joined #nim
10:12:26*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
10:14:04*coffeepot joined #nim
10:48:35*bogen joined #nim
11:06:50*xet7 quit (Quit: Leaving)
11:21:43infinity0federico3: hi
11:33:16infinity0Araq: how are you picking platform names in compiler/platform.nim? from any specific published standards, or just making them up?
11:33:52infinity0specifically, the CPU names
11:44:44*boopisaway is now known as boop
12:07:09*dalarmmst joined #nim
12:12:01infinity0gonna try building nim on hurd-i386, lol
12:14:01*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:16:14*vegansk quit (Quit: Ухожу я от вас (xchat 2.4.5 или старше))
12:16:35Araqinfinity0: it's been a long time since I picked the names, cannot remember
12:17:30AraqI guess I made them up, but amd64 is from some linux guys who argued it should give credit to amd
12:19:23*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
12:19:42*coffeepots joined #nim
12:22:01*Ven joined #nim
12:25:12infinity0Araq: i see ok thanks
12:26:29infinity0getting this debian package to build on multiple architectures, i guess i'll just use a manual translation table for now
12:26:52infinity0federico3: got another version, tested on kfreebsd-amd64 https://mentors.debian.net/package/nim but hopefully also works on arm etc
12:27:13infinity0also pushed it to git, please sponsor https://anonscm.debian.org/cgit/collab-maint/nim.git/log/?h=_volatile_rc
12:35:30*coffeepots quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
12:36:10*dalarmmst quit (Ping timeout: 240 seconds)
12:40:12*Ven quit (Read error: No route to host)
12:44:40*FedeOmoto joined #nim
12:45:16*Ven joined #nim
12:51:11*coffeepot joined #nim
12:52:28*strcmp1 joined #nim
12:54:52*porglezomp joined #nim
12:56:09*dalarmmst joined #nim
12:59:33*wb quit (Read error: Connection reset by peer)
13:57:59*Ven quit (Remote host closed the connection)
14:11:10*polde quit (Ping timeout: 258 seconds)
14:11:48*Demos joined #nim
14:15:06*Ven joined #nim
14:16:34*strcmp1 quit (Ping timeout: 272 seconds)
14:17:12*polde joined #nim
14:22:43*Kingsquee quit (Quit: Konversation terminated!)
14:45:01*Demon_Fox joined #nim
14:58:50*gokr left #nim (#nim)
15:27:22*Ven is now known as Guest11249
15:27:51*Guest11249 is now known as Ven_
15:29:22*mikolalysenko quit (Remote host closed the connection)
15:29:22*eventualbuddha quit (Remote host closed the connection)
15:33:51*UberLambda joined #nim
15:36:15*jszymanski quit (Ping timeout: 265 seconds)
15:37:18*jszymanski joined #nim
15:42:25*jszymanski quit (Quit: computer sleeps...)
15:42:36*eventualbuddha joined #nim
15:47:37*yglukhov_ joined #nim
15:50:11*Demos quit (Remote host closed the connection)
15:50:57*yglukhov quit (Ping timeout: 255 seconds)
15:52:12*yglukhov_ quit (Ping timeout: 272 seconds)
15:55:56*DecoPerson quit (Remote host closed the connection)
15:55:56*TylerE_ quit (Remote host closed the connection)
16:01:41*ChrisMAN joined #nim
16:01:45*kas joined #nim
16:04:28*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:28:17*mikolalysenko joined #nim
16:30:32*TylerE_ joined #nim
16:36:48*Demos joined #nim
16:41:29*NimBot joined #nim
16:42:23*darkf quit (Quit: Leaving)
16:47:33*yglukhov joined #nim
16:48:48*UberLambda quit (Ping timeout: 250 seconds)
16:51:17*Demon_Fox quit (Quit: Leaving)
16:51:41*yglukhov quit (Ping timeout: 252 seconds)
16:52:28*DecoPerson joined #nim
16:53:36*Demon_Fox joined #nim
16:57:17*strcmp1 joined #nim
16:58:12*rgv151 joined #nim
17:06:38*yglukhov joined #nim
17:08:09federico3yay for the nim-robot
17:08:29*UberLambda joined #nim
17:12:18*Demos_ joined #nim
17:12:38*Demos_ quit (Remote host closed the connection)
17:12:56*Demos quit (Read error: Connection reset by peer)
17:13:18*Demos joined #nim
17:14:37*stubbZ joined #nim
17:25:53*UberLambda quit (Quit: GTG)
17:35:17*unclechu joined #nim
17:38:54*drewsrem joined #nim
17:47:29*gmpreussner|mobi joined #nim
17:48:26renesacthe RST reference link is dead: http://nim-lang.org/docs/docgen.html
17:48:52renesacwhere I can find it?
17:55:52*filcuc joined #nim
17:59:15*gmpreussner|mobi quit (Quit: Bye)
18:00:50*Demos_ joined #nim
18:02:23*Demos_ quit (Read error: Connection reset by peer)
18:02:30*Demos__ joined #nim
18:03:06*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:04:38*Demos quit (Ping timeout: 250 seconds)
18:26:57Araqrenesac: works for me
18:28:22renesacah, right, it is filtering sourceforge addresses here because "badware risk"
18:28:47*xet7 joined #nim
18:32:20*filcuc_ joined #nim
18:33:52*clone1018_ joined #nim
18:34:41*rgv151 quit (Ping timeout: 240 seconds)
18:34:42*clone1018 quit (Ping timeout: 240 seconds)
18:34:43*DecoPerson quit (Ping timeout: 240 seconds)
18:34:45*filcuc quit (Ping timeout: 240 seconds)
18:37:20*vendethiel joined #nim
18:38:18*clone1018_ is now known as clone1018
18:42:58*DecoPerson joined #nim
18:47:09*drewsrem quit (Quit: Leaving)
18:58:01*jszymanski joined #nim
19:02:13*Ven joined #nim
19:06:17*Demos__ quit (Remote host closed the connection)
19:08:35*Ven quit (Read error: Connection reset by peer)
19:09:20*Demos joined #nim
19:12:27*xcombelle quit (Remote host closed the connection)
19:14:22*askatasuna joined #nim
19:29:09*UberLambda joined #nim
19:42:09*yglukhov quit (Remote host closed the connection)
19:48:29*UberLambda quit (Quit: GTG)
19:56:08*Ven joined #nim
19:56:29*ggVGc left #nim (#nim)
19:56:48*Ven quit (Client Quit)
20:03:55*Raimondi joined #nim
20:06:30*Jesin joined #nim
20:16:18*kas quit (Ping timeout: 272 seconds)
20:42:33*zahary joined #nim
20:42:45Araqhey zahary
20:42:46*yglukhov joined #nim
20:42:55zaharyhi Araq
20:42:55Araqthe people need staticT
20:43:45zaharyI rebased the fix you reverted, but there are few regressed test cases I think and I still haven't been able to look at them
20:44:29Araqaha, good to see you back at work anyway
20:45:12zaharywell, this has been already one week ago, but I hope to finish it this weekend
20:45:39zaharyalso, I made my atom plugin vastly better if anyone is intersted
20:45:49*brson joined #nim
20:47:20*yglukhov quit (Ping timeout: 244 seconds)
20:47:39zaharyhow did it go at oscon btw?
20:48:08Araqpeople said it was very good
20:48:23skyfexHmm, how does one do mutually recursive procs?
20:48:50Araqskyfex: via a forward decl. sux, we know, we know
20:49:02skyfex:'(
20:50:58skyfexWhy is there no & operator for arrays? Shouldn't it be possible to define one now?
20:51:26*ringrong joined #nim
20:53:46Araqskyfex: you mean to produce a static size of N+M?
20:53:56skyfexAraq: yeah
21:04:11federico3It finally happened:
21:04:14federico3apt-get install nim
21:04:58skyfex^_^
21:05:24*stubbZ quit (Ping timeout: 250 seconds)
21:05:25*cazov quit (Ping timeout: 250 seconds)
21:05:27*cazov_ joined #nim
21:07:14def-federico3: It's in debian unstable? great news!
21:10:10avsejhow I can convert bytebuffer represented by pointer and size to sequence of the bytes?
21:10:50federico3def-: next - it will be nimble
21:17:21*jszymanski quit (Quit: computer sleeps...)
21:20:05Araqavsej: newSeq + copyMem
21:24:34*filcuc_ quit (Quit: Konversation terminated!)
21:28:18dom96federico3: awesome!
21:30:18dom96https://twitter.com/nim_lang/status/626867416803491840
21:31:24federico3 \o/
21:31:49*BlaXpirit joined #nim
21:33:55*unclechu quit (Remote host closed the connection)
21:34:21*askatasuna quit (Ping timeout: 244 seconds)
21:35:01*BlaXpirit quit (Client Quit)
21:45:12*ringrong quit (Quit: leaving)
21:47:50*Trustable quit (Remote host closed the connection)
21:55:04*Demos_ joined #nim
21:58:38*Demos quit (Ping timeout: 244 seconds)
21:59:32*Demos_ quit (Ping timeout: 265 seconds)
22:01:45*Jesin quit (Quit: Leaving)
22:04:25*Jesin joined #nim
22:15:46*boop is now known as boopisaway
22:25:34*zahary quit (Read error: Connection reset by peer)
22:25:52*zahary joined #nim
22:36:56*flaviu quit (Remote host closed the connection)
22:38:13*vendethiel quit (Ping timeout: 246 seconds)
22:50:59*brson quit (Quit: leaving)
23:03:04*Demos joined #nim
23:07:25*Demos quit (Ping timeout: 256 seconds)
23:18:23Araqzahary, dom96 btw I will get rid of var v = closureIterator
23:18:48Araqinstead it will be something like var v = start(closureIterator)
23:30:04zaharybut doesn't var v = closureIterator just initialize the closure, the code inside will start executing only when you call the v() variable for the first time
23:31:23Araqyeah perhaps 'start' is the wrong term
23:31:30dom96Araq: why?
23:31:31zaharywe've talked about the inconsistency between the iterator types before. normal iterators are like factories for Iterator[T] objects and the closure iterators are the Iterator[T] object themself
23:32:18Araqdom96: cause it's too weird and right now the compiler can instantiate it too often
23:32:49Araqalso we have system.finished for iterators, so why not a start?
23:33:07dom96sure
23:33:11dom96will we also get a restart? :P
23:33:29AraqI think that's just 'start' as well
23:37:48def-Araq: maybe 'init'?
23:38:05def-and I welcome this change, sounds reasonable
23:41:09Araqyeah 'init' and 'finished' why not
23:42:45Araqor maybe even 'new'?
23:43:03Araqit calls new under the hood anyway
23:43:52dom96new is typically called with the variable you are initialising as its param though
23:44:20Araqyou never used the typedesc version of it, did you? ;-)
23:44:48*gokr joined #nim
23:45:05dom96I did say 'typically'
23:45:30dom96But closureIterator is not a type
23:45:38dom96it's a procedure
23:45:57Araqyeah, but overloading resolution can handle that
23:46:00Araq(I think)
23:46:49dom96My thoughts are with the human reader
23:46:57dom96whether it'll be confusing for the programmer
23:47:32AraqI've accepted the fact that programmers are the most confused beings on this planet
23:47:43Araqand are confused by everything all the time
23:49:33*Demos joined #nim
23:49:55Demosis there a way to detect what backend is in use at compile time
23:50:14Demosfor example to expose one version of a wrapper when in c mode and another when in c++
23:50:23dom96defined(cpp) IIRC
23:50:27Araqwhen defined(cpp)
23:50:27Demosthanks
23:50:33*Varriount joined #nim
23:53:29*dom96_ joined #nim
23:55:11Araqbut we can also name it newClosureIterator
23:55:30Araqit's long but it's so rarely used that it doesn't matter
23:56:10renesacby the way, is there any way to independently advance an iterator inside a loop?
23:56:47Varriountrenesac: What do you mean?
23:56:53Araqnot really you can only call it and then check for finished
23:57:01renesacright now usually this means a while loop plus indexing
23:58:18dom96_a closure iterator? or a normal iterator?
23:59:06renesacVarriount: an example where it would be useful
23:59:07renesachttps://github.com/nim-lang/Nim/blob/master/lib/pure/strutils.nim#L289
23:59:41renesacwell, not exacly, but basically when you have a loop inside another
23:59:57renesacthe inside one advancing the same thing the outer one is working