<< 26-08-2015 >>

00:03:41*boop is now known as boopisaway
00:10:08*Kingsquee joined #nim
00:24:42*NimBot joined #nim
00:38:34*BitPuffin|osx joined #nim
00:42:27*mrkishi joined #nim
00:42:27*mrkishi quit (Read error: Connection reset by peer)
01:12:51*Shoozza left #nim ("Leaving")
01:16:15*bendiken quit ()
01:35:39*xcombelle quit (Remote host closed the connection)
01:36:01*NimBot joined #nim
01:42:50*vasher_ quit (Quit: Connection closed for inactivity)
01:48:16*NimBot joined #nim
02:02:11*Jehan_ quit (Quit: Leaving)
02:06:22*BitPuffin|osx quit (Ping timeout: 244 seconds)
02:23:17*CryptoToad quit (Ping timeout: 252 seconds)
02:24:06*CryptoToad joined #nim
02:35:17*NimBot joined #nim
02:37:11*vendethiel joined #nim
02:48:15*NimBot joined #nim
03:04:19*NimBot joined #nim
03:19:22*darkf joined #nim
03:53:51*vendethiel quit (Ping timeout: 244 seconds)
04:02:46*strcmp2 joined #nim
04:04:26*NimBot joined #nim
04:05:48*strcmp1 quit (Ping timeout: 260 seconds)
05:11:31*FedeOmoto quit (Quit: Leaving)
05:18:50*strcmp1 joined #nim
05:21:06*strcmp2 quit (Ping timeout: 272 seconds)
05:24:58*strcmp1 quit (Quit: Leaving)
05:36:17*NimBot joined #nim
05:48:56*xificurC joined #nim
05:49:47*kilon joined #nim
05:52:22*NimBot joined #nim
06:41:26*yglukhov joined #nim
06:41:33*yglukhov quit (Remote host closed the connection)
06:42:07*yglukhov joined #nim
06:42:37*Demon_Fox quit (Quit: Leaving)
06:43:25*yglukhov quit (Remote host closed the connection)
06:45:31ekarlsoanyone around ?
06:48:42*NimBot joined #nim
06:51:07*yglukhov joined #nim
06:51:43gokryep
06:51:58gokrSo... I am not sure what to do with this new forum->ml integration.
06:52:46*yglukhov quit (Remote host closed the connection)
06:53:32*filcuc joined #nim
06:57:36*kilon quit (Remote host closed the connection)
06:59:52ekarlsogokr: do you have a lcue on how you can pass in a seq[char] to readBuffer() ?
06:59:54ekarlsothat takes a ptr
07:00:11gokreh
07:02:00gokrWhat about using readChars?
07:02:27ekarlsoapparantly that wasn't too good gokr ..
07:02:50gokrPerformance wise?
07:03:05ekarlsodoesn't work ..
07:03:15*jszymanski joined #nim
07:04:00gokrI have no idea what you are working on of course
07:05:12ekarlsohttps://github.com/ekarlso/nim-tar < gokr
07:05:32ekarlsoif you try to run foo.nim f1.content will be empty...
07:05:52gokrAnd what caused you to start implementing tar?? ;)
07:06:08ekarlsodom96: ..
07:06:18ekarlsothat a bad thing ? :p
07:06:47*yglukhov joined #nim
07:06:54gokrObviously I must have missed some interesting discussion involving the necessity of being able to read and write Tape Archives in the 21st century, without calling out to some other tool that ... can do it. But hey :)
07:07:22gokrI once hacked the CVS pserver protocol in Smalltalk - so I know all about completely useless (but fun!) projects.
07:07:45ekarlsogokr: it's to make a library to do package releases in .tar / xz format
07:07:49ekarlsoin nim ;p
07:08:02ekarlsogokr: but do you have a clue on why it borks ?
07:08:10gokrNah.
07:08:31gokrSo all these char all over, is that .. a good choice?
07:08:42gokrInstead of byte? I dunno.
07:12:05ekarlsogokr: rust / c impl uses char
07:12:11ekarlsoor rather c does
07:12:14ekarlsorust uses u8
07:12:23ekarlsohttps://github.com/alexcrichton/tar-rs/blob/master/src/lib.rs
07:12:35gokrWell, that tells me... you should perhaps use byte or int8
07:12:50ekarlsogokr: why ?
07:13:10ekarlsohttps://github.com/comex/star_/blob/master/headers/libtar.h < gokr
07:14:49ekarlsogot a clue gokr on how to make it work?
07:14:58gokrNo :)
07:15:07ekarlso:'(
07:15:10ekarlsowanna take a look ? :d
07:15:13gokrI just felt instinctively that... C uses char for bytes often.
07:15:48gokrSorry, I am swamped with work here
07:15:54ekarlso:(
07:15:57ekarlsoboo
07:17:52gokrAnd just wrapping libtar or something was out of the question?
07:18:14ekarlsogokr: wanted a pure nim thing :p
07:18:26gokrYeah, I can sympathize.
07:18:36gokrBut... Nim does compile via C so... ;)
07:19:13ekarlsomeh, can it really be so hard to read tar into a buffer correctly..
07:23:03ekarlsogokr: what's the + of using uint8 or bytes vs char ?
07:28:27*lyro quit (Quit: WeeChat 1.1.1)
07:37:23*jck joined #nim
07:39:21ekarlsojust me or is a sequence + readBytes useless ?
07:43:12*Ven joined #nim
07:43:37ekarlsohttp://paste.ubuntu.com/12197676/
07:43:55*Ven quit (Client Quit)
07:44:04ekarlsoso that will fail, readBytes returns 512 but headerBuffer will be empty
07:44:15ekarlsoehm, headerRead rather
07:44:15*Ven joined #nim
07:47:30gokrekarlso: I did check a bit, but .. not sure either.
07:47:36*kilon joined #nim
07:47:44NimBotnim-lang/Nim devel c0ad9a9 Araq [+0 ±1 -0]: fixes #3237
07:48:43ekarlsoAraq: ...
07:48:48ekarlsosee my issue ?
07:54:43ekarlsowhy is Araq lurking..
07:56:21gokrSo... readChars into an array works at least. Your test file is a bit hard to work with - since its full of 0s
07:57:09ekarlsogokr: the ^
07:57:16ekarlsopaste shows u what's wrong..
07:58:40*yglukhov quit (Remote host closed the connection)
07:58:49ekarlsoarray works fine.. but not seq :/
07:59:40ekarlsoan alternative I guess would be to read into array[512, char] in a loop and then just retrieve the data from the read buffer into a seq instead
07:59:54ekarlsojust need to do a bit more work then ..
08:00:45*Jehan_ joined #nim
08:00:57gokrAFAICT this is readChars:
08:01:09gokrresult = readBuffer(f, addr(a[start]), len)
08:01:38gokrSo... it would need a bit of massage around it to work with seq properly.
08:02:07ekarlsogokr: how you mean ?
08:02:20ekarlsoafaik if you do readChars() it should work too ...
08:02:43ekarlsoboth readBytes and readCahrs doesn't seem to work tbh
08:02:49*kilon quit (Read error: Connection reset by peer)
08:03:23gokrwhat I mean is that readChars does what I pasted above, but that is not enough if the argument is a seq
08:04:01*NimBot joined #nim
08:04:07gokrBut... perhaps its enough with a little setLen here
08:04:54*kilon joined #nim
08:05:04ekarlsogokr: still that's a nasty bug ? :P
08:05:35gokrSo... if you add a size to that seq, and then afterwards do buffer.setLen(readCount) - I think it works
08:06:16gokrSo you allocate the seq to say 100, then try to read up to 100. Then setLen(readCount)
08:06:21gokrThat seems to work for me.
08:09:05ekarlsoyeah, that seems to work, Araq u have a bug :P
08:09:09ekarlsofairly sad one too
08:09:15gokrI would consider it a bug - at least a documentation bug. I am guessing a lot of procs that takes openArray arguments tend to treat them as "arrays" so... if you send in a seq you would need to be aware of that.
08:09:57ekarlsogokr: meh, shouldn't be so hard to fix it ? :P
08:10:14ekarlsoi'll wait for nim's linus a'la Araq to respond :p
08:11:23*jszymanski quit (Quit: computer sleeps...)
08:13:36*yglukhov joined #nim
08:16:19gokrekarlso: Not hard to fix, but since Araq is pretty ... focused on performance, I would say a "fix" would involve a layer above and not changing readChars.
08:16:42gokrWe do have a streams library, don't we? Haven't looked at it yet.
08:17:02gokrBut perhaps that's a reasonable abstraction layer above these low level procs.
08:18:32ekarlsogokr: how you mean, should I use streams instead ? ^^
08:22:04*Trustable joined #nim
08:22:33gokrI dunno, I haven't looked at them. But generally I think these readXXX procs are quite low level.
08:25:40gokrAs you can see the procs in streams do similar things: https://github.com/nim-lang/Nim/blob/master/lib/pure/streams.nim#L157
08:32:20ekarlsogokr: yeah, I wonder what the reason would be not to use streams..
08:34:12gokrI see no reason.
08:35:25*NimBot joined #nim
08:39:45*coffeepot joined #nim
08:41:08gokrcoffeepot: Perfect timing! Just got my coffe too.
08:44:37ekarlsogokr: meh, so apparantly tar in modern systems pad's the data with 0's
08:45:26coffeepotHaha :D
08:45:39*coffeepot slurps coffee
08:46:03ekarlsogokr: if chunk.iter().any(|i| *i != 0) { break } < what's the equiv of that in rust ?
08:46:58gokrWaff? I don't know rust. I presume you mean "in nim"?
08:47:17ekarlsogokr: +1
08:47:20ekarlso:P
08:47:24ekarlsoI need more redbull to get my wings
08:47:27ekarlso:D
08:47:59*gokr grabs coffee...
08:48:09gokrI am busy trying to crash our client.
08:48:43ekarlsoI guess that's just a while True
08:48:45ekarlsoish
08:49:54gokrI read it as it breaks if any element in the iterator is non zero.
08:50:13gokrSo this line is inside a loop i guess?
08:50:28ekarlsogokr: ye
08:50:34ekarlsohttps://github.com/alexcrichton/tar-rs/blob/master/src/lib.rs#L251
08:50:42ekarlsothis thing, equiv to my nextFile()
08:53:44ekarlsois there something like StopIteration in nim ?
09:00:36*jaco60 joined #nim
09:07:26ekarlsowhat version of nim is required to use the "do" kw ?
09:08:38ekarlsonvm
09:10:47gokrfederico3: Feel free to inform me how the plan was for the forum->ml gateway. I am now up to about 50 approvals pending in my inbox :)
09:13:15federico3gokr: what are those approvals?
09:13:33gokrits when people posting on the forum aren't subscribed to the ml.
09:13:34federico3new people joining the mlist or is it due to the sync?
09:13:52gokrNo, people can join fine without me.
09:14:07*NimBot joined #nim
09:14:33gokrSo the ml asks me if I should approve this post, this post, this post etc
09:14:50gokrAnd I was wondering what the plan was.
09:14:56federico3hm, I see. The sync mechanism should instead forward messages on-behalf-of
09:15:44federico3can the mlist authorize incoming messages based on any other criterion?
09:15:53gokrDunno :)
09:16:56ekarlsogokr: is there anything similar to stopiteeration in nim ?
09:16:57federico3what mailing list is it
09:17:06gokrfreelists - it uses Ecartis
09:19:47gokrHmmm, X-posting-pass ...
09:20:16gokrnah
09:22:43federico3on behalf of?
09:24:13*Ven quit (Ping timeout: 252 seconds)
09:25:06*AckZ_ joined #nim
09:25:07federico3gokr: if we add a Sender field freelists *might* filter on that
09:27:22*wuehlmau1 joined #nim
09:28:15*AckZ quit (Ping timeout: 240 seconds)
09:28:16*Jesin quit (Ping timeout: 240 seconds)
09:28:16*xet7 quit (Ping timeout: 259 seconds)
09:28:17*wuehlmaus quit (Ping timeout: 240 seconds)
09:28:41*AckZ_ is now known as AckZ
09:29:24*Jesin joined #nim
09:32:24federico3dom96?
09:41:40*arnetheduck joined #nim
09:58:44*kilon quit (Remote host closed the connection)
10:00:39*kilon joined #nim
10:02:37*thekilon joined #nim
10:05:17*kilon quit (Ping timeout: 252 seconds)
10:08:57*dom96_ joined #nim
10:09:40dom96_federico3: sounds good.
10:09:59dom96_There must be a way to do this.
10:10:25dom96_Maybe you could set up a dummy mailing list and test to see if it works with the Sender field?
10:10:26federico3dom96_: we need an email account to use it as Sender (and also to do the sync in the opposite direction)
10:10:49dom96_Doing the sync in the opposite direction is a lot of work
10:10:56federico3yep, but the forum is not building anymore
10:11:23dom96_well, what changed?
10:11:30dom96_The error is in bcrypt right?
10:11:42dom96_Was it updated or is it a compiler regression
10:12:03*NimBot joined #nim
10:12:18federico3a real email would be better
10:12:34nchambersfair enough
10:12:55dom96_you could probably use gmail for testing
10:13:57federico3yep
10:14:06federico3dom96_: are you able to build the forum?
10:14:22dom96_I was able to build it when I was deploying
10:14:26dom96_Can't check now
10:15:03gokrJust so you know, there is no investment in freelists.org - but it is free. Setting up mailman and maintaining mailman... not something I am keen on.
10:15:36federico3gokr: why running a dedicated mailman? There are a lot of mlist providers :)
10:15:49gokrOk? Free?
10:16:15gokrI don't recall it was that easy to find one, but perhaps you are right.
10:17:58federico3(but, why changing mlist provider anyways?)
10:19:49gokrWell, so what is the plan?
10:20:30gokrUsing a single dedicated forum address as sender?
10:20:34federico3hm, 1) try to fix the forum build 2) set up a test mlist and/or test email account 3) investigate if adding Sender would fix the issue
10:21:24nchambershttp://www.yourmailinglistprovider.com/free.html ?
10:26:00*Sembei joined #nim
10:26:31*Kingsquee quit (Ping timeout: 256 seconds)
10:28:52gokrfederico3: Aha!
10:29:31gokrI can check a checkbox called deny-822-bounce: "Should the RFC822 Resent-From: header be trusted for sender"
10:31:58gokrAlso, if we create a specific forum subscriber - we can set ECHOPOST to false for that one.
10:32:47gokrfederico3: So if you tell me what email you wish the forum to use as "Resent-From:", I can add it.
10:41:31ekarlsodom96_: do you think it would be more optimal to use streams for tar stuff ?
10:41:36*Ven joined #nim
10:42:22dom96_what are you using now?
10:42:43*NimBot joined #nim
10:44:47ekarlsodom96_: standard file object
10:44:52ekarlsoand readChars
10:45:38dom96_sounds fine to me
10:47:02*aziz joined #nim
10:48:37ekarlsodom96_: hmm, is there a way to do a map / filter stuff on a array ?
10:49:18dom96_don't do that
10:49:21dom96_use a for loop
10:49:53ekarlsohmmms, so much more convenient with map / filter :p
10:50:05ekarlsooh well, guess I gotta use a array then for buffers ;)
10:50:12*thekilon quit (Remote host closed the connection)
11:00:23*kilon joined #nim
11:01:55federico3gokr, dom96_: it would make sense to create a real mailbox to be used for testing now and then for real (instead of creating two)
11:02:13federico3dom96_: do you want to own it given than you run the forum?
11:08:50dom96_a mailbox? Can't we just use [email protected]?
11:09:23federico3dom96_: a real mailbox would be useful for the bidirectional sync as well
11:14:48dom96_bbl
11:15:09*UberLambda joined #nim
11:17:27*strcmp1 joined #nim
11:18:57*xcombelle joined #nim
11:21:15*dom96_ quit (Ping timeout: 246 seconds)
11:24:00*strcmp1 quit (Ping timeout: 272 seconds)
11:34:50*kilon quit (Read error: Connection reset by peer)
11:35:32*kilon joined #nim
11:38:45*strcmp1 joined #nim
11:43:41*jszymanski joined #nim
11:44:00*UberLambda quit (Ping timeout: 244 seconds)
11:51:05*jszymanski1 joined #nim
11:54:11*jszymanski quit (Ping timeout: 246 seconds)
11:58:47baabelfishdom96: ?
11:58:59baabelfishah, I use bbl on ircnet :P
11:59:26*kilon quit (Remote host closed the connection)
12:00:08*Ven quit (Read error: Connection reset by peer)
12:01:01*yglukhov_ joined #nim
12:01:11*BitPuffin joined #nim
12:04:04*yglukhov quit (Ping timeout: 250 seconds)
12:05:12*yglukhov_ quit (Ping timeout: 244 seconds)
12:11:07*dom96_ joined #nim
12:17:05*Sembei quit (Ping timeout: 244 seconds)
12:23:08ekarlsohmmm, should a tar iterator use a mutable object or readonly hen reading ?
12:25:11*Sembei joined #nim
12:27:53dom96_readonly
12:31:55*Sembei quit (Ping timeout: 250 seconds)
12:34:36*Ven joined #nim
12:39:42*Sembei joined #nim
12:49:12*UberLambda joined #nim
12:56:20*xcombelle quit (Remote host closed the connection)
13:02:29*kilon joined #nim
13:23:47*kilon quit (Remote host closed the connection)
13:28:59*yglukhov joined #nim
13:32:32*FedeOmoto joined #nim
13:32:43*kilon joined #nim
13:33:00*drewsrem joined #nim
13:36:44*thekilon joined #nim
13:37:18*kilon quit (Ping timeout: 255 seconds)
13:40:10*thekilon quit (Remote host closed the connection)
13:51:50*shevy left #nim ("I'll be back ... maybe")
13:56:46*Ven quit (Read error: No route to host)
14:13:54*arnetheduck quit (Read error: Connection reset by peer)
14:15:06*CryptoToad quit (Ping timeout: 255 seconds)
14:18:16*pregressive joined #nim
14:25:59*Ven joined #nim
14:26:01*Ven quit (Client Quit)
14:28:45*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
14:29:00*nchambers is now known as uncloakbot
14:29:09*uncloakbot is now known as dtscode
14:34:37*NimBot joined #nim
14:38:15*pregressive quit (Remote host closed the connection)
14:41:46*zemm quit (Ping timeout: 260 seconds)
14:43:06*pregressive joined #nim
14:56:01*zemm joined #nim
14:57:24dom96_Sounds like something we could do: https://twitter.com/Argorak/status/636519240292560897
15:00:10*gokr quit (Ping timeout: 240 seconds)
15:03:07*irrequietus joined #nim
15:21:33*kilon joined #nim
15:23:33*UberLambda quit (Quit: GTG)
15:24:47*bendiken joined #nim
15:36:07*NimBot joined #nim
15:40:31*xcombelle joined #nim
15:40:57*kilon quit (Remote host closed the connection)
15:50:59*Ven joined #nim
15:57:48*NimBot joined #nim
15:59:44*dom96_ quit (Quit: Page closed)
16:00:25*kilon joined #nim
16:04:44*filcuc quit (Quit: Konversation terminated!)
16:11:30*strcmp1 quit (Ping timeout: 240 seconds)
16:12:18*strcmp1 joined #nim
16:19:45*kilon quit (Remote host closed the connection)
16:22:40*NimBot joined #nim
16:23:02*kilon joined #nim
16:29:48*kilon quit (Ping timeout: 264 seconds)
16:33:31*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:40:33*xet7_ quit (Quit: Leaving)
16:48:08*aziz quit (Remote host closed the connection)
16:49:10*yglukhov quit (Ping timeout: 240 seconds)
16:54:00*Ven joined #nim
16:56:39*Ven quit (Remote host closed the connection)
16:58:58*kilon joined #nim
16:59:17*Ven joined #nim
17:02:57*pregressive quit (Remote host closed the connection)
17:03:19*kilon quit (Ping timeout: 244 seconds)
17:14:44*pregressive joined #nim
17:30:01*CryptoToad joined #nim
17:34:40*bendiken quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:35:31VarriountWhich held a lot of my work on the Windows wrapper.
17:35:36*bendiken joined #nim
17:37:19federico3dom96: +1
17:40:17*yglukhov joined #nim
17:44:48*yglukhov quit (Ping timeout: 264 seconds)
17:45:24*yglukhov joined #nim
17:45:34*bendiken quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:46:31*bendiken joined #nim
17:47:56*X67r joined #nim
17:48:53*yglukhov quit (Remote host closed the connection)
17:54:01*xet7_ joined #nim
17:55:17dom96Varriount: I feel like i'm missing some context?
17:56:06*yglukhov joined #nim
17:56:13*bendiken quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:57:10*bendiken joined #nim
17:58:45*Ven quit (Ping timeout: 255 seconds)
17:59:58*kilon joined #nim
18:04:54*kilon quit (Ping timeout: 272 seconds)
18:07:11*bendiken quit (Quit: My Mac has gone to sleep. ZZZzzz…)
18:07:38*yglukhov quit (Remote host closed the connection)
18:08:07*bendiken joined #nim
18:12:31*Demon_Fox joined #nim
18:16:22*drewsrem quit (Quit: Leaving)
18:22:00*darkf quit (Quit: Leaving)
18:24:47AraqVarriount: is that a joke?
18:25:34*^aurora^ joined #nim
18:26:02*yglukhov joined #nim
18:27:09AraqVarriount: any chance you got a backup somewhere? :-(
18:34:12*yglukhov quit (Remote host closed the connection)
18:36:55dom96Araq: What am I missing here?
18:37:01dom96All I see is "Varriount> Which held a lot of my work on the Windows wrapper."
18:42:29*vendethiel joined #nim
18:42:38*BitPuffin quit (Ping timeout: 246 seconds)
18:49:09*Matthias247 joined #nim
18:53:32*wuehlmau1 is now known as wuehlmaus
18:57:14*yglukhov joined #nim
18:59:40*yglukhov quit (Remote host closed the connection)
19:05:04*NimBot joined #nim
19:06:41*bendiken quit (Quit: My Mac has gone to sleep. ZZZzzz…)
19:52:41*gsingh93_ joined #nim
19:56:21*thotypous quit (Ping timeout: 252 seconds)
20:00:51*brson joined #nim
20:11:26*jszymanski1 quit (Quit: computer sleeps...)
20:16:53*BitPuffin joined #nim
20:17:00*BitPuffin quit (Remote host closed the connection)
20:24:45*kilon joined #nim
20:36:26*xcombelle quit (Remote host closed the connection)
20:44:29*gokr joined #nim
20:47:16*gokr quit (Remote host closed the connection)
20:54:07Araqdom96: Varriount's laptop has been stolen which had the new Windows wrapper
20:57:26*Raimondii joined #nim
20:59:43*Trustable quit (Remote host closed the connection)
21:00:27*Raimondi quit (Ping timeout: 244 seconds)
21:02:10*zeph_ joined #nim
21:02:18*zeph quit (Ping timeout: 244 seconds)
21:03:00Jehan_Ouch.
21:04:05Jehan_Your laptop being stolen just plain sucks. :(
21:04:20*Raimondii is now known as Raimondi
21:11:30*yglukhov joined #nim
21:12:24*johnsoft quit (Ping timeout: 264 seconds)
21:15:13*johnsoft joined #nim
21:15:55*yglukhov quit (Ping timeout: 252 seconds)
21:18:52*kilon quit (Remote host closed the connection)
21:22:34*vendethiel quit (Quit: q+)
21:39:43*X67r quit (Read error: Connection reset by peer)
21:40:13*X67r joined #nim
21:53:56*NimBot joined #nim
21:59:55NimBotnim-lang/Nim devel 20c2b00 Araq [+0 ±1 -0]: make --gc:none work with --threads:on
22:00:21*pregressive quit (Remote host closed the connection)
22:00:59*jaco60 quit (Remote host closed the connection)
22:04:56*brson quit (Ping timeout: 246 seconds)
22:06:41*jaco60 joined #nim
22:07:32*Jehan_ quit (Quit: Leaving)
22:08:08*FedeOmoto quit (Quit: Leaving)
22:14:02*xificurC quit (Ping timeout: 246 seconds)
22:14:16*gsingh93_ quit (Quit: Connection closed for inactivity)
22:14:53*xificurC joined #nim
22:16:01*NimBot joined #nim
22:21:29NimBotnim-lang/Nim devel 66ff179 Keerthan Jaic [+0 ±2 -0]: add msp430 cpu support
22:21:29NimBotnim-lang/Nim devel 887869d Dominik Picheta [+0 ±2 -0]: Merge pull request #3251 from jck/msp430... 2 more lines
22:24:11*BitPuffin|osx joined #nim
22:25:30ekarlsohmm
22:25:50ekarlsowhy is it that when I modify a objects field inside a variable it doesn't get stored ?
22:26:14ekarlsoas in if I inspect obj.position which get's incremented inside a method that's called it's still 0 that it get's set to at init ?
22:28:23ekarlsooh haha
22:28:31ekarlsoman I must stop coding in eveings
22:35:25ekarlsohmm, how can one check if a char is empty or not ?
22:38:10*pregressive joined #nim
22:39:29Araqif c == '\0': ...
22:40:13ekarlso:P
22:40:27ekarlsohow does one find out why a program goes stack smashing ?
22:43:07*nimjoe joined #nim
22:45:50nimjoehas anyone written a dns library and/or dns packet parser in nim?
22:48:16*NimBot joined #nim
22:48:47Araqno idea, but usually c2nim works really well once you accepted you need to edit the C code to its likings
22:49:24nimjoehello Araq, thanks. ok, if I don't find one, I will look at c2nim.
22:49:28federico3nimjoe: an arbitrary packet parser would be very nice
22:51:25federico3Construct is very nice but for Python
22:53:21nimjoeoh, like: https://github.com/construct/construct/blob/master/construct/protocols/application/dns.py interesting.
22:54:13federico3given Nim's ability to create DSL, writing packet parsers should be fun
22:54:18federico3Araq: any suggestion?
22:55:12Araqsure write a DSL
22:55:31AraqI need to design a DSL to make Nim generate inline assembler
22:58:03*brson joined #nim
22:58:04ldleworkWe need a guide on writing DSL's
22:58:23federico3...with an example on [un]packing binary data :D
22:59:58*X67r quit (Quit: leaving)
23:02:42NimBotnim-lang/Nim devel 370781b Araq [+0 ±1 -0]: update Visual Studio command line flags
23:03:02Araqfederico3: just use 'cast'
23:04:11*FedeOmoto joined #nim
23:13:31*pregressive quit (Remote host closed the connection)
23:16:19*filwit joined #nim
23:18:24*pregressive joined #nim
23:20:13*Matthias247 quit (Read error: Connection reset by peer)
23:20:38*pregressive quit (Read error: No route to host)
23:21:00*pregressive joined #nim
23:26:26*pregress_ joined #nim
23:26:48*pregressive quit (Read error: Connection reset by peer)
23:37:02Araqhey filwit
23:37:08filwithi Arag
23:37:12filwitAraq*
23:37:15*benaiah is now known as benaiaher
23:37:38Araqtried our new config system?
23:37:50filwithaven't heard about it yet
23:38:03filwitwhat's changed?
23:38:15*benaiaher is now known as benaiah
23:39:16*gsingh93_ joined #nim
23:41:42Araqit uses NimScript
23:41:51Araqread the forum
23:42:04filwitoh right, I saw that post a bit ago but didn't really read it
23:42:09filwitone sec
23:44:30filwitAraq: do you have serious plans to replace the existing config system with the new NimScript system in the future? My config files are so basic right now it doesn't really effect my life much
23:45:12filwitlooks interesting though.. like a 'NimBash'
23:51:27Araqsure I'm serious, the existing config system is a mess and underpowered
23:53:01*NimBot joined #nim
23:53:23*irrequietus quit ()
23:55:34filwitAraq: I think I'll understand it a bit better when it's documented.. not sure what you're trying to achieve with the examples given (for instance, I don't understand how the 'listDirs' task example is useful, or what it's trying to show off)
23:56:30filwitbut don't feel like I'm asking for an explanation right now, just saying I'm confused a bit (when it's more documented I'll give it a read-through)