<< 29-02-2016 >>

00:07:30*jaco60 quit (Ping timeout: 268 seconds)
00:10:38*Amrykid quit (Changing host)
00:10:38*Amrykid joined #nim
00:11:09*Matthias247 quit (Read error: Connection reset by peer)
00:13:20*vendethiel joined #nim
00:13:26*sora joined #nim
00:14:36*jaco60 joined #nim
00:14:50*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
00:17:43*darkf joined #nim
00:19:48SysIs there a procedure for replacing a letters in a string with another letter? For instance if I want to replace all T's in my string with U's
00:20:15Sysis it just .replace?
00:23:40def-Sys: yep, myString.replace('T', 'U') should work
00:26:05Sysdef-: I'm getting a attempting to call undeclared routine: 'replace' error
00:27:46def-Sys: import strutils
00:27:52Sys*facepalm*
00:29:05*jaco60 quit (Ping timeout: 268 seconds)
00:30:10Sysdef-: type string: has to be discarded
00:30:43*jaco60 joined #nim
00:31:35dom96Sys: You need to do something with the result
00:31:37def-Sys: oh right, it creates a new string
00:31:55dom96either assign it to a variable or discard it explicitly with the 'discard' keyword
00:33:45Sysvar t: string {.discardable.} = "string" would work fine?
00:34:14def-nono, just: var t = myString.replace('T', 'U')
00:34:23def-and then the new string is in t
00:34:33*vendethiel quit (Ping timeout: 246 seconds)
00:35:41SysI was able to solve the problem by assigning the new .replace string to a new variable, was just curious about how to solve it by discarding the old t string variable
00:35:59def-ah: discard myString.replace('T', 'U')
00:36:06def-but that makes no sense because you don't get the result then
00:36:57Sysbut couldn't i do discard myString to discard the old string?
00:37:02SysOr is that not what the error is saying?
00:37:21def-nope, the error is telling you that replace returns a value and you're not doing anything with it
00:37:30def-so you either need to store it in a variable or discard it
00:37:39SysGotcha! Makes more sense now
00:42:06Sysdef-: Question: for this example https://gist.github.com/def-/1c7210ff7858d2d20374 lets say that I have a file that contains the string, I want to make the script robust so that it can read in a file instead of me having to manually type out the string. Would something like var data = openFile(myfile) work?
00:42:33Sysor do I need to specify something like var data: string = openFile(myfile)_
00:42:48def-close: let data = readFile(myfile)
00:43:08def-but then you read the entire file into memory which could be a problem for big files
00:43:16*space-wizard joined #nim
00:43:27*space-wizard quit (Client Quit)
00:45:44*jaco60 quit (Ping timeout: 268 seconds)
00:45:58SysThese files themseleves aren't huge, but I will be working with larger data. How do you read only only a part of a file into memory?
00:46:04Syssomething like import streams?
00:47:00def-there is indeed a streams module that you could use. but it also works without importing anything: var file = open(myFile)
00:47:19def-and then: while not endOfFile(file): let letter = readChar(file)
00:49:39SysExcellent, worked like a charm. Thank you both very much! I appreciate it!
00:50:16def-you're welcome. always great to see new people trying out nim
00:52:18SysWelp time for me to bug out. Will be on tommorow, thanks again!
00:52:26*Sys quit (Quit: Page closed)
00:52:42*jaco60 joined #nim
00:55:46*pregressive joined #nim
01:16:51*sora quit (Ping timeout: 248 seconds)
01:17:17*sora joined #nim
01:23:21*jaco60 quit (Ping timeout: 268 seconds)
01:30:07*jaco60 joined #nim
01:31:41*pregressive quit (Remote host closed the connection)
01:32:06*kulelu88 quit (Quit: Leaving)
01:42:08*sora quit (Remote host closed the connection)
01:52:42*PMunch quit (Ping timeout: 260 seconds)
01:53:25*yglukhov joined #nim
01:57:51*yglukhov quit (Ping timeout: 246 seconds)
02:04:48*desophos joined #nim
02:04:51*jaco60 quit (Ping timeout: 246 seconds)
02:07:13*jaco60 joined #nim
02:07:21*brson quit (Quit: leaving)
02:44:24*pregressive joined #nim
02:54:50*Kingsquee joined #nim
02:57:56*gunn joined #nim
03:04:09*pregressive quit (Remote host closed the connection)
03:08:02*francisl joined #nim
03:17:12*francisl quit (Quit: francisl)
03:53:23*zepolen quit ()
03:54:56*yglukhov joined #nim
03:59:52*yglukhov quit (Ping timeout: 260 seconds)
04:03:49*Varriount joined #nim
04:05:50*desophos quit (Read error: Connection reset by peer)
04:07:39VarriountAraq: I've opened a new PR for Nimsuggest. Before you start complaining about code size increase, a good portion of it is whitespace and comments.
04:08:18*brson joined #nim
04:10:36*endragor joined #nim
04:24:27onionhammerwhoaaa this a big one
04:30:19Varriountonionhammer: ?
04:37:36onionhammerthe pr
04:37:38onionhammer;)
04:51:54*vendethiel joined #nim
05:08:51*mahasamoot__ quit (Ping timeout: 248 seconds)
05:15:09*vendethiel quit (Ping timeout: 276 seconds)
05:49:55*MightyJoe is now known as cyraxjoe
05:56:24*yglukhov joined #nim
06:01:12*yglukhov quit (Ping timeout: 260 seconds)
06:15:35GangstaCatlet variable = spawn aProc() resulting in Error: undeclared identifier: 'spawn'
06:16:58samdorandid you import threadpool?
06:18:10GangstaCatno
06:19:07samdoranah, well that's what implements it, as far as I am aware
06:19:17GangstaCatsamdoran, that works now, thanks
06:27:56*lxdong joined #nim
06:30:50*samdoran quit (Quit: Page closed)
06:36:44*bjz joined #nim
06:36:50*pregressive joined #nim
06:45:50*Matthias247 joined #nim
06:46:11*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
06:53:25*pregressive quit (Remote host closed the connection)
06:55:52*Matthias247 quit (Read error: Connection reset by peer)
06:58:45*brson quit (Quit: leaving)
07:01:19*bjz joined #nim
07:08:30*pregressive joined #nim
07:09:23*bjz quit (Ping timeout: 248 seconds)
07:11:13*bjz joined #nim
07:22:54*pregressive quit (Remote host closed the connection)
07:28:11*vendethiel joined #nim
07:36:24*endragor quit (Remote host closed the connection)
07:40:31*endragor joined #nim
07:52:03*vendethiel quit (Ping timeout: 248 seconds)
08:02:39*alexsystemf joined #nim
08:06:37*Varriount_ joined #nim
08:06:37*Varriount quit (Disconnected by services)
08:09:56*pafmaf joined #nim
08:12:48*lxdong quit (Quit: Page closed)
08:20:27*Trustable joined #nim
08:35:58*yglukhov joined #nim
08:44:16*miko__ joined #nim
08:44:50*Arrrr joined #nim
08:44:50*Arrrr quit (Changing host)
08:44:50*Arrrr joined #nim
08:56:00*Arrrr quit (Quit: WeeChat 1.4)
08:56:20*Arrrr joined #nim
08:56:20*Arrrr quit (Changing host)
08:56:20*Arrrr joined #nim
09:37:04*vendethiel joined #nim
10:11:13*vendethiel quit (Ping timeout: 268 seconds)
10:30:20*apotheon quit (Ping timeout: 268 seconds)
10:30:29*jaco60 quit (Ping timeout: 260 seconds)
10:30:55*jaco60 joined #nim
10:37:00*jaco60 quit (Ping timeout: 250 seconds)
10:39:25*jaco60 joined #nim
10:40:44*endragor quit (Remote host closed the connection)
10:41:44*apotheon joined #nim
10:42:03*Kingsquee quit (Ping timeout: 268 seconds)
10:43:06*Kingsquee joined #nim
10:54:57*filwit joined #nim
10:55:53*arnetheduck joined #nim
11:11:18Araqso ... somebody should fix our json module regressions. def- ?
11:12:09*boopsiesisaway is now known as boopsies
11:22:45*Xe quit (Ping timeout: 268 seconds)
11:25:28dom96We find out whether we got into GSoC today!
11:26:15*vendethiel joined #nim
11:30:19federico3dom96: are you aware of https://github.com/nim-lang/Nim/issues/3910 ?
11:31:36dom96federico3: nope
11:32:18dom96looks like a simple tarball gen bug
11:32:27dom96You could probably fix it
11:32:52federico3yup, but are you guys going to release a new tarball shortly?
11:33:39dom96That's up to Araq
11:33:40*PMunch joined #nim
11:34:14federico3then it will be 2020 :(
11:35:29dom96We really need a tool that builds a release for us
11:37:26federico3besides, are coroutines disabled by default?
11:37:37dom96yes
11:39:19*M-max quit (Remote host closed the connection)
11:41:21*endragor joined #nim
11:41:42Arrrr2020 is not that far
11:43:20AraqI can ... hmmm so you want me to re-release 0.13 right?
11:44:08federico3jeez, no. It should be named 0.13.1
11:44:40*M-max joined #nim
11:45:39*endragor quit (Ping timeout: 248 seconds)
11:47:06*vendethiel quit (Ping timeout: 276 seconds)
11:51:43*Xe joined #nim
11:55:44Araqfederico3: hmm fair enough, but it's just 0.13 with this installation problem fixed?
11:56:54federico3yep, the missing lib/pure/arch
11:57:52*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
11:58:20*Kingsquee joined #nim
12:00:47*boopsies is now known as boopsiesisaway
12:06:44dom96just backport the fix to master
12:19:36*endragor joined #nim
12:26:36*M-max quit (Quit: node-irc says goodbye)
12:28:16*M-Quora joined #nim
12:44:20*vendethiel joined #nim
12:46:29*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
13:06:21*vendethiel quit (Ping timeout: 268 seconds)
13:21:45federico3dom96: nimble requires some *code* from the compiler to be built: are these libraries that the compiler should install somewhere?
13:23:21dom96federico3: I'm thinking that Nim should have its own Nimble package directory. That directory should then contain the compiler sources, which itself form a 'compiler' package.
13:24:30federico3merging Nimble into Nim then? Any solution in the meantime?
13:32:49Araqfederico3: hmm? install_nimble script in the Nim repo?
13:33:41federico3uh?
13:48:59*endragor quit (Ping timeout: 250 seconds)
13:49:31Araqfederico3: that's how I build nimble.
13:49:56Araqbecause Nimble is part of Nim, albeit it its own repo so that it has its own issue tracker etc.
13:50:30federico3if it's part of Nim already, is it included in the Nim tarball?
13:50:41*lxdong joined #nim
13:53:50Araqno, what would that gain us?
13:54:20Araqbut hmm I get what you're after
13:54:31Araqthat might be good idea indeed.
13:57:39*pafmaf quit (Quit: Verlassend)
14:01:59*francisl joined #nim
14:06:38*Kingsquee joined #nim
14:17:10*lxdong quit (Ping timeout: 252 seconds)
14:17:33*Jesin quit (Quit: Leaving)
14:24:12*francisl quit (Quit: francisl)
14:25:39def-Araq: I narrowed the JS problem down a bit. it happens when you use x.fields["foo"], it is used as if it's x["foo"]. any idea where to look for the cause of that?
14:26:39Araqdef-: hmm, not sure what you mean
14:27:08def-Nim code x.fields["foo"] gets transformed to JS x["foo"] instead of x.fields["foo"]
14:29:48def-at least in some cases, i think it has to do with object variants: https://gist.github.com/def-/e8183e5516c57babbe20
14:30:13federico3Araq: that Nim should build from the nim tarball and Nimble should build from the nimble tarball, just that (unless they build from the same tarball)
14:31:23*Sys joined #nim
14:42:02*vendethiel joined #nim
14:45:05dom96federico3: I think that the Nim installation tarballs (and installers) should include Nimble.
14:47:20Araqdom96: the windows installers do that but only ship the .exe, not the source of nimble
14:47:22SysIs there a built in reverse proc for strings?
14:47:56def-Sys: algorithm.reverse
14:48:00*endragor joined #nim
14:48:05dom96Araq: That's fine. But in the future they should ship the Nimble source code, as it itself is a package.
14:48:48Sysdef-: Thanks!
14:49:44dom96Araq: They should install it into a "global Nimble pkg" directory, which may just as well be in C:\Program Files\Nim\nimble
14:50:00dom96pretty sure that's how Python's packaging works too
14:50:26dom96then you would include the compiler sources in there too
14:51:02dom96but I need to think about how global nimble pkg dirs will be implemented in Nimble first
14:52:24*lompik quit (Ping timeout: 246 seconds)
14:52:40*francisl joined #nim
14:56:13def-Araq: hm, to me it seems object variants are just not supported in JS yet
14:57:10Araqthey are supported but don't generate field checks
14:57:16federico3what? that means that Windows users cannot build the same EXEs from the tarball at the moment.
14:57:37def-Araq: ok, because i searched for the field checks in jsgen and didn't find them
15:00:22SysSorry for interrupting: Could I get a bit of help here? (https://gist.github.com/c-guzman/8708817c478fa90e436c) it seems the replace proc isn't working
15:00:42SysSorry not the replace proc, it's the reverse proc
15:01:20def-Sys: reverse() reverses the string inplace
15:01:38def-it doesn't return anything so you can just call: reverse(s)
15:01:57*miko__ quit (Ping timeout: 260 seconds)
15:02:29dom96federico3: sorry, i'm not sure what you mean?
15:03:15*vendethiel quit (Ping timeout: 246 seconds)
15:03:50federico3dom96: right now the Nim tarball does not contain Nimble while the EXE files on http://nim-lang.org/download.html do
15:04:16dom96federico3: yes. We need to fix that.
15:04:23federico3is there a bug open for this?
15:06:18dom96federico3: Don't think so, but please check the ones tagged 'installation'
15:06:52Araqfederico3: I didn't consider it a problem since the .exe is provided for convenience.
15:07:36def-Sys: also, strutils.replace does not exactly do what you want, I'd write my own proc to do that: https://gist.github.com/def-/19feec0a66d350f9fcf9
15:08:42SysAhh I see, I had actually tried creating a case proc before, but I was trying to use the .replace which is why it was not working
15:08:44SysThis makes more sense
15:08:48SysThank you
15:08:51def-Araq: oh well, looks like yglukhov fixed it while I was still trying to figure out the bug
15:09:13*Jesin joined #nim
15:10:22cheatfate_dom96 is it possible to pass parameters in future callback without any modification to existing asyncdispatch code?
15:10:32Sysdef-: Could you explain the .mitems?
15:10:55dom96cheatfate_: it's a closure so you can capture variables in its enclosing scope
15:11:40def-Sys: mitems is an iterator that gives you characters that you can modify directly: http://nim-lang.org/docs/system.html#mitems.i,openArray[T]
15:11:56*saml joined #nim
15:12:36*endragor quit (Remote host closed the connection)
15:14:25federico3https://github.com/nim-lang/Nim/issues/3918 bug opened
15:14:41def-Sys: i updated the code with another version that uses the index instead of mitems
15:16:01dom96federico3: thank you
15:16:02SysThank you!
15:16:07*francisl quit (Quit: francisl)
15:18:10*sora joined #nim
15:19:53*francisl joined #nim
15:20:11Araqyglukhov: I fail to see the correctness of your fix
15:20:54yglukhovAraq: jsgen.nim, line 897.
15:21:00yglukhovall the rest is just tests
15:21:09Araqyes, I know.
15:21:39Araqgen() doesn't do the right thing, it produces the value, not its address
15:21:53AraqgenCheckedFieldAddr() should produce an address
15:24:05cheatfate_dom96: could you please watch it? https://gist.github.com/cheatfate/33c6387c13c5276535a5
15:24:47*zepolen joined #nim
15:29:59dom96cheatfate_: hrm, i'm not sure. But doesn't this line block anyway? https://gist.github.com/cheatfate/33c6387c13c5276535a5#file-asyncdispatch-L48
15:31:06*francisl quit (Quit: francisl)
15:31:21Araqyglukhov: well? any explanation on why that (a) fixes the bug and (b) doesn't introduce new problems?
15:31:52yglukhovAraq: give me a couple of mins pls
15:32:13Araqsure, no problem
15:32:25cheatfate_dom96: refresh please, i post full error trace log
15:33:43Syshttps://gist.github.com/c-guzman/c4fbf9ebf438d0141cc8 how do I iterate over a second string in a if function?
15:34:24*arnetheduck quit (Ping timeout: 260 seconds)
15:34:26def-Sys: what do you want to do?
15:34:44def-Sys: ah, you want to iterate over s and t at the same time and compare them?
15:34:44SysEvery time the letters do not match between the two strings, I want to increase mutation count by 1
15:34:53SysYes essentially sorry if the comments werent clear
15:35:03def-I should've read the comments^^
15:35:17Sys:p
15:36:41def-I would do it like this: https://gist.github.com/def-/24b0e2e4371d50847cd8
15:41:18yglukhovAraq: ok, you're right. It should be genAddr(m) instead of gen(m[0]). That sound more correct to you?
15:42:12*francisl joined #nim
15:42:49Araqnot really, why is genFieldAddr(p, m.sons[0], r) not correct in the first place?
15:43:03Sysdef-: for i in 0 .. min(s.high, t.high) does this just iterate over the number of smallest length between s, and t?
15:43:14def-yes
15:43:21def-well, s.high is s.len-1
15:44:00yglukhovgenFieldAddr is not the right choice for non-etyBaseIndex objects. for such objects genFieldAccess should be used.
15:45:03dom96cheatfate_: Sorry, i'm not sure what the problem is. And I have to go.
15:45:11Sysright right, the if statement for the different lengths is just there to let me know the strings aren't identical right? It doesn't break out of the program, and it will still calculate mutations to whatever the lowest length of the two strings is?
15:45:25yglukhovand in my fix genChecked would redirect to gen nkDotExpr and it would do the right thing.
15:45:58yglukhovgenAddr does handle nkDots correctly as well. by checking for etyBaseIndex
15:46:12yglukhovso i would vote for genAddr =)
15:46:14*endragor joined #nim
15:48:00*darkf_ joined #nim
15:49:06Sysdef-: this is good, i wasn't aware you could run if statements like this, thank you!
15:49:21Sysfor*
15:50:27def-Sys: right
15:50:52def-Sys: but you can try it out, that helps
15:51:00*endragor quit (Ping timeout: 268 seconds)
15:51:12SysI did, I just want to make sure I have the idea behind it right
15:51:18SysThank you for all the help
15:51:30*darkf quit (Ping timeout: 276 seconds)
15:52:48*vendethiel joined #nim
15:53:27*darkf_ quit (Ping timeout: 276 seconds)
15:54:30Araqyglukhov: ok, so use genAddr
15:54:38yglukhovdone
15:54:43*francisl quit (Quit: francisl)
15:54:50Araqat least this way it's not obviously wrong.
15:56:46*francisl joined #nim
16:09:12*Jessin joined #nim
16:09:59Arrrryay https://github.com/nim-lang/Nim/blob/devel/tests/misc/tupcomingfeatures.nim
16:10:36*francisl quit (Quit: francisl)
16:10:47*Jesin quit (Ping timeout: 260 seconds)
16:11:42*sora quit (Remote host closed the connection)
16:12:45SysIs there a 'man' or 'help' command for built-in procs? Or is that something you'd have to look into the manual for now?
16:13:48Arrrrhttp://nim-lang.org/docs/lib.html
16:14:08*darkf joined #nim
16:14:22SysArrrr: Thank you
16:14:45*sorakun joined #nim
16:22:49*Xe quit (Ping timeout: 260 seconds)
16:22:55*samdoran joined #nim
16:28:18AraqArrrr: he, I am in love with 'using'
16:28:49Araqcuts boilerplate and yet doesn't introduce ever more complex type inference rules
16:29:56AraqSys: there is also http://nim-lang.org/docs/theindex.html
16:31:14*darkf quit (Quit: night)
16:31:18SysAraq: this is great also, thank you, more to read the better
16:32:22AraqSys: the index is not for reading, it's for your browser search
16:32:33Araq(usually control+F)
16:32:58SysAraq: I'm aware, I guess I meant to say that the more I can read when looking for answers the better
16:34:00*Xe joined #nim
16:35:04*vendethiel quit (Ping timeout: 260 seconds)
16:39:51Araqyglukhov: er, why is it genAddr(p, m, r) and not genAddr(p, m[0], r) ?
16:42:10yglukhovm[0] is mDotExpr. genAddr(a) checks for a[0] to be mDotExpr to make a choice between genFieldAddr or genFieldAccess.
16:43:14Araqthat's strange, but ok
16:45:39Araqyglukhov, def- what else is broken with Json and tables? I heard the default size of 4 doesn't work reliably?
16:46:22*[CBR]Unspoken quit (*.net *.split)
16:46:22*vegansk quit (*.net *.split)
16:46:22*asdf quit (*.net *.split)
16:48:27ArrrrAraq, this makes the compiler boom http://pastebin.com/wmxxL85y
16:48:34ArrrrYour partial type is partially implemented
16:52:16*samdoran quit (Ping timeout: 252 seconds)
16:53:16*vegansk joined #nim
16:54:22*[CBR]Unspoken joined #nim
16:55:41*asdf joined #nim
16:55:49*pregressive joined #nim
16:56:04*asdf is now known as Guest60962
16:58:33*space-wizard joined #nim
16:59:24*space-wizard quit (Max SendQ exceeded)
17:00:08*space-wizard joined #nim
17:09:50*mahasamoot joined #nim
17:11:38*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:14:22*yglukhov quit (Ping timeout: 260 seconds)
17:17:14*vendethiel joined #nim
17:18:36*w0lfb0ne joined #nim
17:23:11*w0lfb0ne quit (Quit: WeeChat 1.4)
17:29:25*brson joined #nim
17:37:29*Jessin quit (Quit: Leaving)
17:42:26AraqArrrr: damn, but thanks
17:42:58AraqI intend to use it pretty extensively soon enough so I hope I can get it stable
17:44:36ArrrrWhat's the benefit of using partial?
17:44:50ArrrrThe use cases
17:45:18*mahasamoot quit (Ping timeout: 246 seconds)
17:46:14*allan0 quit (Ping timeout: 260 seconds)
17:50:54*allan0 joined #nim
17:51:58*ap_ joined #nim
17:52:21*ap_ is now known as Guest15389
17:52:35*sorakun quit (Read error: Connection reset by peer)
17:56:22*[CBR]Unspoken quit (Ping timeout: 260 seconds)
17:56:48*Guest15389 quit (Ping timeout: 252 seconds)
18:00:27*vendethiel quit (Ping timeout: 260 seconds)
18:09:41*[CBR]Unspoken joined #nim
18:13:00*yglukhov joined #nim
18:17:12*yglukhov quit (Ping timeout: 250 seconds)
18:19:50*vendethiel joined #nim
18:21:05*mahasamoot joined #nim
18:21:06*Matthias247 joined #nim
18:23:04AraqArrrr: cleaner frontend vs backend separation in the compiler
18:23:09*space-wizard joined #nim
18:23:18Araqbetter for graphics engines
18:23:43Araqyou can add fields to the scene graph nodes
18:24:15Araqplenty of use cases if we can get it to work
18:26:47ldleworklooks cool but syntax is gross :P
18:26:56*ldlework runs away
18:27:17Araqldlework: I like the syntax fwiw
18:28:05ldleworkPragma?
18:28:09Araqwhat's wrong with it?
18:28:11ldleworkWhy not "= partial"
18:28:31Araqbecause our policy is to introduce features via pragmas first, if reasonable
18:28:40ldleworkpragmas should be for things you have no other place for
18:28:46ldleworknot the default place new features go :/
18:29:00ldleworkits language design as an after thought :(
18:29:06Arrrrbut partial seems to me a niche feature
18:29:10*Jesin joined #nim
18:29:13Araqwhen it works well enough and we're certain we can support it, we can add a new keyword to the language for it
18:29:13ldleworkso?
18:29:36Arrrrso it deserves the ugly sintax
18:29:52ldleworkArrrr: so are you the one we ask to determine whether something is niche going forward, or...?
18:30:07ArrrrNo, im the one that gave his opinion
18:30:52Araqshould I nilly willy reserve new words instead for features that might go away again?
18:32:08ldleworkYeah I think some forethought could really benefit Nim's disparate feature interoperability that's all.
18:32:41ldleworkBut I understand what you're saying, its just experimental.
18:33:58*zepolen quit (Remote host closed the connection)
18:33:59Araqtype Foo = partial object
18:34:01Araqor
18:34:06Araqtype Foo = partial
18:34:07Araq?
18:34:33ldleworkdunno, just wanted to observe you have this huge sytnax structure available for objects might as well stick the word there instead of the pragma :D
18:35:36*AnonCat joined #nim
18:35:36Arrrrtype Foo = partial ref object of Bar
18:35:51*GangstaCat quit (Ping timeout: 250 seconds)
18:35:51ldlework'partial object' reads a bit nicer, but power-users will probably appreciate the shorter form - but I'm just guessing since I have no idea what is niche or not in a language with no sense of usage statistics or anything like that.
18:36:22ldleworkArrrr: that looks nice
18:36:28*AnonCat is now known as GangstaCat
18:39:12*mahasamoot quit (Ping timeout: 246 seconds)
18:40:32ArrrrI'd take into account macros, but anyway i dont think it's going to matter for the 95%.
18:41:07ldleworksorry for coming off as an ass
18:41:20ldleworkor just being one
18:45:46*sora joined #nim
18:54:46*cheatfate joined #nim
18:55:28*cheatfate_ quit (Quit: Page closed)
18:59:18cheatfateAraq, i have a little problem with closures could you help me avoid it?
19:01:16Araqcheatfate: can you gist it?
19:01:34cheatfatehttps://gist.github.com/cheatfate/33c6387c13c5276535a5#file-asyncdispatch-L48
19:02:08cheatfatemaybe my last comment can explain my situation
19:04:34Araqer ... it took us weeks to get async into its current state
19:04:51Araqwhy not use it?
19:05:14Araqdo you think this OVERLAPPED stuff is trivial to do?
19:06:47cheatfateNot use what? sleepAsync() ? because it too slow
19:07:04cheatfatei'm trying to implement more fast variants of timeouts
19:07:06*yglukhov joined #nim
19:07:16cheatfatealready done this for linux
19:07:27cheatfatenow trying this for windows
19:07:38cheatfatebut this closure feature or bug?
19:08:02cheatfateis this normal for closure to work as i described?
19:08:26cheatfateif you say yes, i will continue to search another variants
19:11:38AraqI have no idea what it has to do with closures.
19:13:29Araqdom96: please have a look
19:18:45*mat4 joined #nim
19:18:48mat4hello
19:25:41*yglukhov quit (Remote host closed the connection)
19:26:06*yglukhov joined #nim
19:27:05cheatfatehaha, i have passed it
19:31:39*yglukhov quit (Remote host closed the connection)
19:36:37*tb joined #nim
19:37:00*tb is now known as Guest61627
19:37:50cheatfateAraq, I think closures can't build normal environment if you have decleared "var" in proc body
19:38:04cheatfatedecleared = declared sorry
19:38:27*tob joined #nim
19:38:32tobtob
19:38:51*tob is now known as Guest49951
19:40:56*Guest61627 quit (Ping timeout: 252 seconds)
19:41:10*test joined #nim
19:41:33*test is now known as Guest2540
19:42:46*Guest49951 quit (Ping timeout: 252 seconds)
19:44:28*testing joined #nim
19:44:51*testing is now known as Guest82269
19:48:16*Guest2540 quit (Ping timeout: 252 seconds)
19:52:48Guest82269tototoott
19:55:14*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
19:56:12*samdoran joined #nim
19:56:22def-hi Guest82269
19:56:54Guest82269hi
19:58:30ldleworkhi
20:02:34*samdoran quit (Ping timeout: 252 seconds)
20:06:17SysThis might be found later on in dom96's book as i'm going through it, but I have a question. What's the difference between nim c -r CODE.nim and nim -d:release CODE.nim?
20:10:39*yglukhov joined #nim
20:13:28*samdoran joined #nim
20:13:47*samdoran quit (Client Quit)
20:14:40*Guest82269 quit (Ping timeout: 252 seconds)
20:26:10*miko__ joined #nim
20:28:21*mahasamoot joined #nim
20:34:41*Arrrr quit (Quit: WeeChat 1.4)
20:34:49zielmichaSys: -d:release defines "release" flag, which, by default, enable compiler optimization and removes various checks (also disables stacktraces) resulting in faster code
20:35:28Syszielmicha: appreciate it!
20:37:05*Guest60962 is now known as asdf
20:37:50*space-wizard joined #nim
20:45:51*zepolen joined #nim
20:50:06*zepolen quit (Ping timeout: 246 seconds)
20:50:19*dorei joined #nim
20:55:04*boopsiesisaway is now known as boopsies
21:09:10*yglukhov quit (Remote host closed the connection)
21:09:14*ics joined #nim
21:16:31*zepolen joined #nim
21:29:17*yglukhov joined #nim
21:33:20ldleworkbtw, -r isn't shorthand for -release
21:34:08SysIt's shorthand for run I know
21:34:25ldleworkok :)
21:35:21SysI was just curious whether the exectuables created by both differ, as in if I did nim c -r code.nim whether that requires dependencies or not
21:37:16*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:37:48*xaoz_ joined #nim
21:39:34*filwit quit (Ping timeout: 250 seconds)
21:40:39*dorei quit (Ping timeout: 268 seconds)
21:42:38*xaoz_ quit ()
21:43:02*dorei joined #nim
21:57:31*mat4 quit (Quit: Leaving)
22:00:09*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
22:03:00*space-wizard joined #nim
22:17:16*mahasamoot quit (Ping timeout: 250 seconds)
22:24:57Sysdom96: I'm heading out for a bit, just finished chapter two of your book. It's great so far.
22:25:46*Sys quit (Quit: Page closed)
22:37:17*boopsies is now known as boopsiesisaway
22:51:56*miko__ quit (Ping timeout: 250 seconds)
22:52:58*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
22:57:07*space-wizard joined #nim
22:57:45*space-wizard quit (Client Quit)
23:01:42*space-wizard joined #nim
23:02:02*space-wizard quit (Client Quit)
23:03:44federico3dom96: http://nimbench.firelet.net/ the sources are published, see link at the bottom
23:04:17*pregressive quit (Remote host closed the connection)
23:07:53*mahasamoot joined #nim
23:08:12*space-wizard joined #nim
23:08:55*space-wizard quit (Max SendQ exceeded)
23:09:46*space-wizard joined #nim
23:12:04federico3someone good with CSS?
23:12:31ldleworkno one is 'good' with CSS
23:12:48ldleworkthere are some people who can withstand the pain for longer
23:20:39*Matthias247 quit (Read error: Connection reset by peer)
23:36:18*dorei quit ()
23:37:55*yglukhov quit (Remote host closed the connection)
23:38:26*Varriount_ quit (Ping timeout: 268 seconds)
23:41:54*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
23:42:10*Trustable quit (Remote host closed the connection)
23:45:41*jaco60 quit (Ping timeout: 250 seconds)
23:45:58*space-wizard joined #nim
23:52:01*jaco60 joined #nim
23:55:39*[CBR]Unspoken quit (Ping timeout: 250 seconds)
23:59:58*mahasamoot quit (Ping timeout: 250 seconds)