<< 25-08-2015 >>

00:02:24*irrequietus quit ()
00:05:36*pregressive joined #nim
00:45:06*brson quit (Remote host closed the connection)
01:06:25*NimBot joined #nim
02:16:46*vendethiel joined #nim
02:17:06*vl409 joined #nim
03:03:09*NimBot joined #nim
03:04:10*vl409 quit (Ping timeout: 246 seconds)
03:08:43*BitPuffin|osx quit (Ping timeout: 260 seconds)
03:17:12*strcmp2 joined #nim
03:20:21*strcmp1 quit (Ping timeout: 255 seconds)
03:22:50Demoswhat's the status of destructors?
03:29:28*yglukhov joined #nim
03:33:45*yglukhov quit (Ping timeout: 244 seconds)
03:36:43*vendethiel quit (Ping timeout: 246 seconds)
03:42:19*kilon joined #nim
03:45:30*pregressive quit (Remote host closed the connection)
03:46:04*pregressive joined #nim
03:46:52*kilon quit (Remote host closed the connection)
03:46:58*darkf joined #nim
03:50:58*pregressive quit (Ping timeout: 272 seconds)
04:14:59*NimBot joined #nim
04:29:03*asdasd quit (Ping timeout: 246 seconds)
04:40:16*Shoozza joined #nim
05:14:25*NimBot joined #nim
05:15:18*Jehan_ joined #nim
05:20:25*Jehan_ quit (Quit: Leaving)
05:43:06*dalarmmst joined #nim
05:58:18*EXetoC joined #nim
06:00:10*darkf_ joined #nim
06:00:12*Demos_ joined #nim
06:03:05*darkf quit (Ping timeout: 244 seconds)
06:03:36*Demos quit (Ping timeout: 244 seconds)
06:04:32*EXetoC quit (Quit: WeeChat 1.2)
06:10:41*darkf__ joined #nim
06:10:59*Demos__ joined #nim
06:12:49*xificurC joined #nim
06:13:55*Demos_ quit (Ping timeout: 244 seconds)
06:13:56*darkf_ quit (Ping timeout: 244 seconds)
06:15:30*xificurC quit (Client Quit)
06:22:54ekarlsoDdomaround ?
06:22:56ekarlsodom96: ..
06:42:08*NimBot joined #nim
06:50:20*gokr joined #nim
06:59:07*jszymanski joined #nim
07:03:34*darkf__ is now known as darkf
07:07:15*Ven joined #nim
07:23:30*yglukhov joined #nim
07:31:41*jszymanski quit (Quit: bye)
07:32:05*Demon_Fox quit (Quit: Leaving)
07:32:51*yglukhov quit (Remote host closed the connection)
07:41:09*xificurC joined #nim
07:43:56*yglukhov joined #nim
07:49:05*yglukhov quit (Remote host closed the connection)
07:49:21*strcmp2 quit (Quit: Leaving)
07:52:00*wuehlmaus joined #nim
07:56:20*Trustable joined #nim
07:56:30*Trustable quit (Remote host closed the connection)
07:57:35*Trustable joined #nim
07:59:48*Raimondii joined #nim
08:01:10*Raimondi quit (Ping timeout: 240 seconds)
08:04:20*Raimondii is now known as Raimondi
08:07:15*coffeepot joined #nim
08:07:57*yglukhov joined #nim
08:20:56*^aurora^ joined #nim
08:23:28*NimBot joined #nim
08:24:32*strcmp1 joined #nim
08:34:27*filcuc joined #nim
08:37:49NimBotnim-lang/Nim devel bb1bf2b Yuriy Glukhov [+0 ±1 -0]: Corrected lib name for macos.
08:37:49NimBotnim-lang/Nim devel 3a01eab Andreas Rumpf [+0 ±1 -0]: Merge pull request #3244 from yglukhov/patch-1... 2 more lines
08:39:49*kilon joined #nim
08:40:45*xcombelle joined #nim
08:42:10*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
08:48:37*kilon quit (Remote host closed the connection)
08:49:12*yglukhov quit (Remote host closed the connection)
08:52:32*dalarmmst quit (Ping timeout: 244 seconds)
08:54:09NimBotnim-lang/Nim devel 626226e rku [+0 ±1 -0]: {.compile.} pragma accepts paths relative to file pragma is in.
08:54:09NimBotnim-lang/Nim devel df0e1a5 rku [+0 ±3 -0]: Added fasm (external assembler) support.
08:54:09NimBotnim-lang/Nim devel 43bfda0 rku [+8 ±5 -0]: Coroutine support for i386/amd64 platforms unix/windows OSes markAndSweep/refCounting GCs.
08:54:09NimBotnim-lang/Nim devel 6a7a44b rku [+0 ±2 -0]: cValidAssemblers -> const set... 1 more lines
08:54:09NimBot2 more commits.
08:55:02*filcuc quit (Remote host closed the connection)
08:56:30*strcmp1 quit (Ping timeout: 255 seconds)
08:57:00*filcuc joined #nim
09:06:56NimBotnim-lang/Nim devel 2130e9e Yuriy Glukhov [+0 ±1 -0]: Don't access GCed field in finalizer. Fixes #2305
09:06:56NimBotnim-lang/Nim devel 0a1c572 Andreas Rumpf [+0 ±1 -0]: Merge pull request #3243 from yglukhov/gctest-fix... 2 more lines
09:06:58federico3dom96: the mlist sync seems to be popular. People are asking for bidirectional sync now
09:07:59nchamberswould that require creating a custom ml?
09:08:10federico3custom in what way?
09:08:27Xejust have an email bot
09:08:31Xethey're not new tech
09:08:36nchambersas in rolling our own ml instead of the site gokr's using
09:08:43Xenchambers: no
09:08:48Xeyou just need a gmail account
09:08:52gokrhey
09:08:57federico3no, any mlist would do
09:09:10gokr(client blinked since my nick was mentioned)
09:09:14nchambersobviously I don't know much of what I'm talking about
09:09:28nchambersgokr: we are discussing mailing list merging
09:09:41gokrYeah, feel free to pick any solution :)
09:09:45*yglukhov joined #nim
09:10:11nchambersfederico3: and Xe seem to have a pretty good idea picked out, so I'll shut up now :D
09:10:13gokrJust FYI, I have not been approving all those posts that don't have members on the ml
09:10:26nchambersif you want to give me access I'll approve them
09:10:37Xegokr: can you add [email protected] to the list?
09:10:39gokrWell, is it the right thing to do?
09:10:48nchambersno idea
09:10:56nchambersjust putting my services out there
09:11:09federico3dom96: what happens if somebody without a forum account posts on the mlist? Do we create a forum account on the fly with a disabled password?
09:11:22gokrI mean, I will get swamped with all these approvals unless we do something
09:12:05gokrI got 24 of them sitting there now
09:14:03*yglukhov quit (Ping timeout: 252 seconds)
09:17:13gokrXe: As subscriber?
09:17:19Xegokr: yes please
09:17:29gokrsure
09:17:31Xei forget how to sign up for mailing lists
09:17:34Xei'm a 90's kid
09:17:58gokrOr just enter here and hit "Go!": http://www.freelists.org/list/nim-dev
09:18:13nchambershow to tell if someone is a 90's kid: don't worry they'll tell you
09:19:13*Ven quit (Ping timeout: 265 seconds)
09:20:01Xegokr: I think i did it
09:20:07Xenchambers: i actually am 22 lol
09:20:32nchambers:D I'm 19. welcome brother
09:21:24gokrGod damn kids! :)
09:21:45ekarlsodont speak of age.. *turning 30 in 4,5 months*
09:21:56gokr30? nuthin
09:22:01Xegokr: h
09:22:04nchambersgokr was born with a silver oop in his hand
09:22:11Xenchambers: sister*
09:22:21gokrA silver oop?
09:22:38nchambersits a play on the saying "silver spoon"
09:22:49nchambersXe: you're female? my mistake
09:22:52gokrYeah, just trying to figure out the meaning ;)
09:23:15gokrXe: I was thinking Xena the warrior, right?
09:23:44Xegokr: it stems from a joke a friend of mine made in passing
09:23:47ekarlsowhat editor do you guys use ?
09:23:50Xeekarlso: vim
09:23:51nchambersgokr: I would wager you were in your mid 50's when programming was first invented
09:23:54ekarlsoman I would love intellij with nim :p
09:23:57nchambersekarlso: gedit/nano
09:24:05gokrnchambers: Ha! Nah... not THAT old.
09:24:09Xelearn vim
09:24:14Xeit got me hired where I work now
09:24:23ekarlsogokr: aint you up in your 50s?
09:24:29gokrNot yet :)
09:24:31gokr46
09:24:38nchambersjeezus gokr you're my parents age
09:24:45Xenchambers: h
09:24:57gokrXe: Was funny, I worked at a real Linux/Perl nest - and they were all hard core vimmers...
09:25:14gokrBut they were spending AWFUL lot of time doing print debugging on the server.
09:25:30gokrSo I spent 2 days setting up Komodo with remote debugging. Their jaws dropped.
09:25:47gokrSo vim, sure - but just don't forget there are other tools out there ;)
09:26:26gokrEh, I worked there as a consultant that is.
09:27:09nchambersperl vimmers. I can hear the beards rustling from here
09:27:26Xewait nchambers is dtscode
09:27:29ekarlsols
09:27:29nchambersyes
09:27:31gokrIn fact, they were mostly young guns.
09:27:33Xehi dtscode
09:27:37nchambershi Xe
09:27:44gokrFrom all over the world too - 17 nations in one office.
09:27:50Xeoh yay
09:27:53XeI still have the nick
09:27:57*Xe is now known as JohnMadden
09:27:58JohnMaddenaeiou
09:28:06nchambersnice
09:28:21*gokr trying to recall the login at freelists...
09:28:40*JohnMadden is now known as Xe
09:28:46nchambersgokr: [email protected]
09:28:59Xenchambers: you laugh all you want
09:29:06*yglukhov joined #nim
09:29:13nchambersat what?
09:29:13Xebut working on a brony IRC network helped get me hired where I work now as well
09:29:20Xealso
09:29:25Xeircd is a maze of death
09:29:28Xedon't look into it
09:29:34nchambersI gave up actually :/
09:29:39Xegood
09:29:51Xei've been working from scratch in haskell
09:29:52nchambersalso I don't laugh at bronies. I make fun of them to keep my friends humble
09:31:15Xehaskell is fun
09:31:47*yglukhov quit (Remote host closed the connection)
09:34:54*gokr1 joined #nim
09:36:52*gokr quit (Ping timeout: 246 seconds)
09:37:04*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
09:41:24*minus quit (Quit: Bye)
09:41:32ekarlsogokr1: can't you make a plugin for intellij
09:42:30*yglukhov joined #nim
09:43:07Xeekarlso: so can you!
09:43:20ekarlsoXe: my plate is filled atm :p
09:43:25ekarlsoalreay doing package stuff for nim
09:43:34ekarlsogonna try to cleanup the registry stuff and get that going
09:44:13gokr1ekarlso: Intellij? Why me?
09:44:33*gokr1 is now known as gokr
09:44:34ekarlsogokr1: random.choice()
09:44:36ekarlso:P
09:45:07gokrhttps://xkcd.com/221/
09:45:24ekarlsohah ;)
09:46:09ekarlsohttps://www.facebook.com/InfoQ/photos/a.10151028112312321.423930.75911537320/10153038356187321/?type=1 < what kind are you gokr ? :)
09:46:42gokrSecond one. Of course.
09:46:44gokr;)
09:46:51ekarlsoomg :P
09:46:56gokrI am a Smalltalker, I hate wasted lines
09:47:00ekarlsothat's good :)D
09:47:07ekarlsoso annoying the first one
09:47:31*minus joined #nim
09:47:33gokrBut you know, I am a different beast.
09:48:07nchambersmore like a cat than a beast
09:48:10nchambersa small tiny kitty
09:48:13Xenchambers: h
09:48:46gokrGot two cats, but Ron that's here sometimes - he has 8.
09:49:16*kilon joined #nim
09:49:30gokrWhat I mean is - that I am a Smalltalker. Like that guy that just popped in.
09:50:34ekarlsogokr: what you think of sometthing like gRPC in nim ?
09:50:36ekarlsowww.grpc.io
09:51:19gokrpbuffer based
09:51:40ekarlsoyeah and seems to be getting lots of traction
09:52:03*yglukhov_ joined #nim
09:52:13gokrI know too little of it.
09:52:25*yglukhov quit (Ping timeout: 240 seconds)
09:54:01gokrIts funny that these things tend to be reinvented over and over.
09:54:24*kilon quit (Ping timeout: 264 seconds)
09:54:41Xemmhmm
09:57:22gokrOr googling says, ZeroMQ + MessagePack: http://www.zerorpc.io
10:07:41ekarlsogokr: yeah, except grpc is the only one that seems to use http2
10:08:13gokrIs that good then? :)
10:20:32*Ven joined #nim
10:24:09*yglukhov_ quit (Remote host closed the connection)
10:24:29ShoozzaHello, is someone using sdl2 with him? I managed to compile the skel file but sdl2_gfx.dll is missing.
10:24:43*yglukhov joined #nim
10:26:10flyxShooza: afaik sdl2_gfx doesn't have a binary distribution. did you download the source and compile it?
10:27:14Shoozzaah so that needs to be done manually
10:28:34federico3zerorpc looks pretty nice actually
10:30:45*Jehan_ joined #nim
10:31:52*yglukhov quit (Remote host closed the connection)
10:46:04*yglukhov joined #nim
10:50:23*kilon joined #nim
10:52:43drewsremgokr, remote debugging on Komodo?
10:52:58gokryeah
10:53:45gokrI even helped making some scripts so that the users could "lock" the server - so many devs could cooperate debugging the same server.
10:54:09drewsremHow does that look like?
10:54:19gokrDebuggin Perl in Komodo?
10:54:25drewsremYou mean, debugging a live instance
10:54:27drewsremAh Perl
10:54:36gokrThis was about Perl.
10:54:41drewsremRight
10:54:50*kilon quit (Ping timeout: 260 seconds)
10:54:54gokrJust saying... vim ain't always the answer :)
10:55:21drewsremI don't know really anything about Perl, so, maybe
10:55:39drewsremIt certainly won't help much with all the massive boilerplate languages like Java
10:56:21drewsremRemote debugging like that doesn't sound like a job for a text editor anyway tho
10:56:36Xe&
10:56:38drewsremMaybe if with SSH and tmux you could do similar things? - *shrug*
10:56:39Xe^*
10:57:30gokrMy whole point was that they were all so convinced that they had the perfect tool (vim) so they never even bothered to look around and see if there were indeed proper debuggers for Perl. Local or remote.
10:57:46drewsremAh yes, that sounds more like stubborn people
10:57:50gokrAnd this is a company with say 20 really sharp devs.
10:58:33gokrWell, I think the problem was ... "everyone doing things as it had always been done".
10:58:41Xevim is but a part of a proper dev stack
10:59:22*keks_ joined #nim
10:59:28gokrThey were very sharp - but also very focused on the task at hand, not considering the meta level (tooling).
10:59:44drewsremgokr, yes I can see that, but also if you can use Vim somewhat it will work for pretty much anything, so you might just not care about anything beyond it, because it "suffices" for pretty much everything from the box, but it isn't in itself the "best" way
10:59:44*vendethiel joined #nim
11:00:27drewsremLearning new IDE thingy usually is quite some initial investment you have to put into
11:00:32*rollo joined #nim
11:00:37drewsremSo these people probably will always default to what they're used to
11:00:44gokrAnd that is indeed the issue - but you need to know when you might need a different/other tool.
11:00:47Xenot to mention
11:00:49*yglukhov quit (Remote host closed the connection)
11:00:57Xevim -> not vim is a huge leap if you are invested in vim
11:01:17drewsremgokr, yup, Xe, yup
11:01:20gokrThey wasted 1000s (literally) hours on print debugging and post mortem log file debugging this huge mess of a server side Perl system.
11:02:26drewsremgokr, that is not to say that it always pays off trying something new, which is why it seems there's no general bullet proof answer to this, sometimes just using oldish tooling works as good, if not even better, sometimes it doesn't
11:02:39Xewhy am I still awake
11:04:44*jszymanski joined #nim
11:06:48drewsremNim in vim is pure joy however
11:08:51federico3Everything in vim is pure joy however
11:08:58drewsremNot java
11:09:52drewsremNot that Java can be joy anywhere else
11:10:11drewsremBut certainly less painful
11:10:28*^aurora^ joined #nim
11:10:57Jehan_Heh. :)
11:11:11*yglukhov joined #nim
11:16:33*Ven quit (Remote host closed the connection)
11:18:40*Ven joined #nim
11:20:46*BitPuffin|osx joined #nim
11:23:11*NimBot joined #nim
11:25:00*vendethiel quit (Ping timeout: 245 seconds)
11:28:37ekarlsohmm
11:29:02ekarlsovar buf: ptr array[0..512, char]; readBuffer(file, buf, 512) < that wrong ?
11:31:09*keks_ quit (Ping timeout: 246 seconds)
11:35:43*kilon joined #nim
11:39:03*filcuc quit (Quit: Konversation terminated!)
11:39:34*filcuc joined #nim
11:39:56*kilon quit (Ping timeout: 246 seconds)
11:40:11*kilon joined #nim
11:44:43*kilon quit (Ping timeout: 250 seconds)
11:45:25Jehan_ekarlso: Missing discard/use of the result of `readBuffer`?
11:56:30*arnetheduck joined #nim
11:58:29*yglukhov quit (Remote host closed the connection)
12:01:13ekarlsohmm, how can I unpack a array[0..512] into a object ?
12:01:19ekarlsoif there's an easy way...
12:02:55*filcuc quit (Quit: Konversation terminated!)
12:05:39*NimBot joined #nim
12:05:42ekarlsoso quiet :P
12:09:33*yglukhov joined #nim
12:16:50*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:20:32reactormonkWhen booting, I get nim/nimcache/unix_amd64.o: No such file or directory
12:20:47reactormonkI get that pretty much when compiling anything.
12:21:09ekarlsoreactormonk: u got a lcue on array slices ? : p
12:21:25reactormonkekarlso, not until I get my compiler working again
12:21:32*thotypous joined #nim
12:21:51ekarlsoreactormonk: :(
12:23:02*Ven joined #nim
12:26:31ekarlsohttps://glot.io/snippets/e6m74omeft < reactormonk
12:27:29ekarlsomain.nim(7, 15) Error: type mismatch: got (seq[char]) but expected 'array[0..2, char]'
12:39:04*drewsrem quit (Quit: Leaving)
12:48:12baabelfishAny timeframe on the next release? I'm itching already
12:51:07ekarlsobaabelfish: u know you how you can populate a array[0..10, char] from a existing array using a slice ?
12:52:23baabelfishfor loop :P
12:52:45ekarlso:/
12:53:08ekarlsohttp://pastebin.com/rVih4p03 < I got that atm
12:53:22ekarlsobut header.name is hard to unpack from the buffer :/, any help appreciated!
12:53:31baabelfishI don't know if there is a "not so ugly" memcpy way to do that
12:54:02ekarlsosomeone probably has a clue about it ;)
12:54:25*NimBot joined #nim
12:54:27baabelfishekarlso: try casting?
12:54:54ekarlsoi'll wait for Araq or one of the gurus :p
12:55:09baabelfishekarlso: heh, that's the best option
12:57:54*yglukhov quit (Remote host closed the connection)
13:01:07ekarlsoi'm guessing you are hiding dom96 ?
13:01:49Jehan_reactormonk: Yeah, I already filed an issue. It's the coroutine patch.
13:02:07Jehan_reactormonk: Roll back to the commit before that merge.
13:02:43ekarlsoJehan_: u got a clue on my q ?
13:02:54Jehan_ekarlso: Just reading through the log.
13:03:34Araqr-ku: I told you to make coroutines optional ... :P
13:04:09OnOheh.. hi, I was to complain about coroutine too :)
13:04:22OnOI wish we have not introduce another dependency on fasm
13:04:29OnOthat has no OSX support
13:04:39*yglukhov joined #nim
13:04:39Jehan_ekarlso: use a[0..1] = s[a..a+1], for example.
13:05:03baabelfishJehan_: that works that easily? :O
13:05:19Jehan_Oops, s[n..n+1]
13:05:34ekarlson..n ?
13:05:37ekarlsolike 0..1 ?
13:05:51Jehan_ekarlso: Basically, you need slices on the left and the right hand side.
13:06:49ekarlsoJehan_: not following..
13:07:22ekarlsonot possible to set a array[0..100] from a existing array ?
13:07:41Jehan_ekarlso: https://gist.github.com/rbehrends/af3f48bd0591ad7ae105
13:08:26ekarlsoreason for the n Jehan_ ?
13:08:49Jehan_ekarlso: It's an example? I don't know the context, just that you want to assign array contents.
13:09:25ekarlsoresult.name = buffer[0..99] < I do that but then it tells me that buffer[..] is a slice ?
13:09:46Jehan_ekarlso: What type is result.name?
13:10:08ekarlsoarray[0..99]
13:10:33Jehan_Try: result.name[0..99] = buffer[0..99]
13:11:00ekarlsoaha!
13:11:50*yglukhov quit (Remote host closed the connection)
13:13:56Jehan_OnO: Yeah, I'm only now seeing this. This does not look like a good idea to me.
13:14:11NimBotnim-lang/Nim devel 999c107 Araq [+0 ±2 -0]: fixes #3245
13:15:09AraqJehan_: the Nim compiler treats .asm on its own, it doesn't pass it to gcc
13:15:25Jehan_Araq: Well, on my machine, it does.
13:15:34Araqit only does that until bootstrapping is complete
13:15:50*FedeOmoto joined #nim
13:16:49*NimBot joined #nim
13:18:05OnOAraq: I wonder if we can stick to builtin C compiler asm facilities than using fasm, there's no much code there in .asm files
13:18:06Jehan_Araq: I see. I'm still not sure if the fasm approach is a good idea.
13:18:16OnOonly problem is that asm isn't portable between MSVC and GCC
13:19:12Jehan_OnO: Not familiar with msvc, but it might be possible to generate C code from the assembly language?
13:19:24Araqwell it's not portable to MSVC and also we need to ensure it doesn't produce stack frames
13:19:36Jehan_I mean, technically it might even be possible to write an assembly language DSL in Nim.
13:19:46OnOpass -fomit-frame-pointer to that particular file
13:21:21AraqOnO: that's not the same, __declspec(naked) is what's called iirc
13:21:58ekarlsoso a array[0..99, char] < 100 elements of char no ?
13:22:09ekarlsovs array[0..100] is 101 ?
13:22:13*ekarlso is wacked
13:22:25OnOAraq: yeah, that's for MSVC, and -fomit-frame-pointer for GCC/Clang, unfortunatelly there's no way to omit frame pointer for single function in GCC
13:22:46Jehan_ekarlso: Well, it's one more element than array[1..99, char], which has exactly 99 elements.
13:23:00Jehan_OnO: __attribute__((naked))?
13:23:13ekarlsoJehan_: isnt that correct way to write it array[0,99] to get 100 ?
13:23:14Araqit's not just the frame pointer, you also must not generate any kind of function prologue/epilogue
13:24:06Araqekarlso: just write array[100, char] if the a..b notation confuses you
13:24:19Araqthat's an array with 100 chars
13:24:45Jehan_Araq: I thought that __attribute__((naked)) pretty much does that? I'd have to check to be certain, though.
13:25:37Araq__atribute__((naked)) doesn't work on ARM last time I checked
13:25:43OnOAraq: on x86/64 it won't for argument less function it will just need to copy rsp rbp
13:25:59OnOalso I can't see naked on x86 gcc docs
13:27:07OnOit works for clang, just tested
13:27:12Jehan_Hmm, naked may be clang only.
13:27:18ekarlsoAraq: is there a easy way to unpack a buffer of array[0..512, char] to a object that has array[.., char] fieldS?
13:27:25OnOnot working for GCC 4.9
13:27:40*keks_ joined #nim
13:28:09*NimBot joined #nim
13:28:32Araqhi keks_ welcome
13:28:44Jehan_I'm just looking at what ocaml does for it's assembly language parts.
13:28:52OnOheh... according to docs "naked" is ARM only feature on GCC
13:29:03Araqhrm ... we have no ARM version of this thing yet :-/
13:29:31keks_moin
13:29:39OnOwe may though compile .s files with gcc/clang directly instead using fasm
13:30:17Jehan_OnO: Yeah, but would have to be gcc/clang syntax instead.
13:30:32Jehan_But that's what I was thinking about when I said writing a DSL in Nim (perhaps).
13:30:34OnOatt in fact
13:31:06Jehan_Everybody inventing their own assembly language syntax has always been one of the more annoying parts.
13:31:45OnOoh well, there's just intel and AT&T for x86
13:31:57OnOunix compilers use att, microsoft intel syntax
13:32:16OnObut in recent gcc, clang I think you can switch to intel syntax with some pragma
13:32:26*yglukhov joined #nim
13:32:37Araqyeah, but it never worked for me
13:33:36Araqalso I prefer an external assembler over gcc's absurd register clobber lists
13:34:27Araq :"=a"(`result`)
13:34:29Araq :"a"(`a`), "c"(`b`)
13:34:55Araqyeah, right, I'm sure I got that right ...
13:35:22Araqthere is a reason why it's disabled in system/arithm.nim ;-)
13:36:10OnOAraq: that's why you can use .asm files but compile them with gcc/clang directly
13:36:24OnOwith .intel_syntax at the very beginning
13:36:30*yglukhov quit (Ping timeout: 240 seconds)
13:36:57Jehan_Hmm, Ocaml uses clang/gcc syntax and has a separate implementation for MS Windows, anyway.
13:37:02OnOwhen using msvc you can use masm
13:37:41Araqwe like to have 1 assembler implementation though
13:37:48*Ven quit (Remote host closed the connection)
13:37:54Araq(per CPU architecture)
13:42:10ekarlsouhm, but wont 0..7 < mean 8 elements ?
13:42:51Araqekarlso: the length of an inclusive range a..b is b-a+1
13:43:14Araqlet's look at an example: 0..7 that means a=0, b=7
13:43:35Araqaccording to Araq's formula the length computes to: 7-0+1 = 8.
13:48:02AraqJehan_: a DSL sounds like a good idea though
13:48:34Jehan_Araq: Yeah, just a ton of work for something that's so short (so far).
13:49:14Araqwell but the idea is also to allow Nim users to have only 1 implementation of an 'asm' block per architecture
13:49:53Araqcurrently we have no solution for this at all and pass the problem to our users
13:51:01AraqI wonder why r-ku picked fasm over yasm. yasm also works on Mac
13:53:11*Demos__ quit (Read error: Connection reset by peer)
13:53:45*NimBot joined #nim
13:56:03*NimBot joined #nim
14:02:43*Jehan_ quit (Quit: Leaving)
14:04:48OnOAraq: correct me if I am wrong but on Windows Nim require GCC to compile, since GCC compiler .s files just fine, then why do we need any compiler?
14:05:21OnOs/compiler/external assembler
14:08:40*vl409 joined #nim
14:14:04*yglukhov joined #nim
14:15:19*Ven joined #nim
14:15:31*pregressive joined #nim
14:15:45*pregressive quit (Remote host closed the connection)
14:16:52*pregressive joined #nim
14:18:10*vl409 quit (Ping timeout: 240 seconds)
14:18:23*yglukhov quit (Ping timeout: 256 seconds)
14:18:56AraqOnO: you can also bootstrap with Visual Studio
14:19:20Araqand even if booting doesn't work, tons of other stuff works with VS
14:19:48Araqincluding our own product
14:19:52*irrequietus joined #nim
14:24:13*yglukhov joined #nim
14:25:10*irrequietus quit (Ping timeout: 240 seconds)
14:25:18*irrequietus joined #nim
14:27:21*jszymanski quit (Quit: computer sleeps...)
14:27:26*yglukhov quit (Remote host closed the connection)
14:30:59*jaco60 joined #nim
14:31:00reactormonkJehan_, ok, solved.
14:32:44*vl409 joined #nim
14:33:17reactormonkhow exactly do you build the coroutines part?
14:33:50Araq-d:nimCoroutines
14:35:56reactormonkAraq, yes, but gcc: error: lib/pure/nimcache/unix_amd64.o: No such file or directory
14:36:08reactormonkI have fasm installed.
14:36:10*bendiken joined #nim
14:37:41Araqyou need to bootstrap before that can work
14:38:37*filcuc joined #nim
14:41:19reactormonkI did.
14:43:19*dalarmmst joined #nim
14:46:44Araqreactormonk: I will look at this myself soon, not sure what's wrong
14:47:58*yglukhov joined #nim
14:49:20reactormonkAraq, I submitted my comments in form of a PR.
14:49:34ekarlsoAraq: ah ok :)
14:52:43*yglukhov quit (Ping timeout: 265 seconds)
15:02:57*NimBot joined #nim
15:04:59flyxI am a bit confused about lexbase. why does BaseLexer have a field bufpos if almost all procs take the position as parameter?
15:05:42flyxand why does getCurrentLine not take the position as parameter while the other procs do?
15:17:00*NimBot joined #nim
15:18:30*arnetheduck quit (Ping timeout: 240 seconds)
15:20:30*yglukhov joined #nim
15:25:59OnOr-ku: created PR https://github.com/nim-lang/Nim/pull/3248 making Nim use builtin GCC/Clang assembler instead extra fasm
15:26:41*yglukhov quit (Remote host closed the connection)
15:27:05*yglukhov joined #nim
15:32:12*yglukhov quit (Remote host closed the connection)
15:33:39*filcuc quit (Quit: Konversation terminated!)
15:33:47*yglukhov joined #nim
15:36:16*Ven quit (Remote host closed the connection)
15:37:26*rollo quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
15:41:14*dalarmmst quit (Ping timeout: 246 seconds)
15:42:46Araqflyx: speed
15:43:07AraqI made it trivial for the compiler to keep the important stuff in registers
15:43:27flyxah, okay.
15:44:54*rollo joined #nim
15:59:03ekarlsohmm
15:59:33ekarlsoso I have a archive.size array[0..11, char] but how do I make that into a int?
16:07:07Araqekarlso: you can use streams iirc or 'cast'
16:07:30Araqlet asInt = cast[ptr int](addr yourArray)[]
16:13:04*zeph joined #nim
16:15:28*rollo quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:18:16ekarlsoAraq: streams ?
16:22:10*NimBot joined #nim
16:28:18*vasher_ joined #nim
16:30:16*rektide joined #nim
16:30:26*rektide is now known as rektide2
16:31:41*rollo joined #nim
16:32:12*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:32:49*Ven joined #nim
16:34:45*yglukhov_ joined #nim
16:36:21*Ven quit (Read error: Connection reset by peer)
16:37:46*ingsoc joined #nim
16:38:36*NimBot joined #nim
16:38:58*yglukhov_ quit (Ping timeout: 246 seconds)
16:39:20ekarlsodom96: you around ?
16:40:24*strcmp1 joined #nim
16:42:22*NimBot joined #nim
16:45:00*NimBot joined #nim
16:45:27*keks_ quit (Ping timeout: 246 seconds)
16:49:20*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
16:50:14flyxhmm, it's unfortunate that EndOfFile in lexbase is '\0'. could it be changed to '\x04' (end-of-transmission) instead?
16:57:01Araqwhat's the difference?
16:57:15Araqyour input contains \0 but not \4 ?
16:57:24Araqwhen is that true?
16:57:55*strcmp1 quit (Ping timeout: 245 seconds)
17:02:02*strcmp1 joined #nim
17:03:18*rollo quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
17:03:26*rollo joined #nim
17:06:39*pregressive quit (Remote host closed the connection)
17:08:40*Ven joined #nim
17:09:55ekarlsoAraq: is it recommended to use a stream instead of my current approach ?
17:10:05*pregressive joined #nim
17:12:07*shodan45 joined #nim
17:13:09Araqekarlso: I'd use 'cast'
17:13:34*yglukhov joined #nim
17:13:40ekarlsoAraq: seems like a "evil" route :P
17:14:21*NimBot joined #nim
17:15:25*NimBot joined #nim
17:18:32*NimBot joined #nim
17:21:03dom96ekarlso: Do you want my email, you seem to need to contact me a lot :P
17:24:07ekarlsodom96: haha :p
17:27:49ekarlsodom96: u wanna give a initial review ?
17:28:22dom96ekarlso: seriously though, if you need me I am way more available over email (same goes for everyone else): dom [at] picheta.me
17:28:57ekarlsoah ok
17:30:36*Ven quit (Remote host closed the connection)
17:31:19flyxAraq: UTF16
17:32:07*filcuc joined #nim
17:37:09*filcuc quit (Remote host closed the connection)
17:38:19*X67r joined #nim
17:40:37*pregressive quit (Remote host closed the connection)
17:42:04*jszymanski joined #nim
17:44:59*pregressive joined #nim
17:45:05*yglukhov quit (Remote host closed the connection)
17:45:46*ingsoc quit (Quit: Leaving.)
17:45:47dom96ekarlso: oh and to answer your question
17:45:48dom96sure
17:45:51dom96I can review it
17:46:00dom96what is 'it' though?
17:46:24ekarlsodom96: tar thing u wanted
17:46:27ekarlsoreads tar files atm
17:46:38*rollo left #nim (#nim)
17:47:34*NimBot joined #nim
17:48:12dom96ekarlso: cool. Was it difficult?
17:48:22dom96also, show me the code
17:48:24ekarlsodom96: difficult "enough" concidering i
17:48:31ekarlsoi've never done low level stuff like it ;)
17:52:16dom96show me the code!
17:53:28*NimBot joined #nim
17:53:32ekarlsothat you dont know the size off..
17:54:42ekarlsodom96: ? ^
17:55:32dom96string?
17:55:48*jaco60 quit (Remote host closed the connection)
17:56:29ekarlsoseq[char] I guess
17:56:46dom96no, string :P
17:56:51*shodan45 quit (Remote host closed the connection)
17:57:00*shodan45 joined #nim
17:57:18ekarlsowhy string dom96 ?^
17:58:33baabelfishIt would be more consistent if import statement wouldn't need commas when broken down to multiple lines...
17:59:18dom96baabelfish: perhaps, but how important is that really?
17:59:38dom96ekarlso: easier to manipulate
17:59:45baabelfishdom96: yeah, it's not important indeed
17:59:57dom96baabelfish: submit a bug report though
18:01:10baabelfishseems like the language is too well designed if one thinks about things like that
18:02:37ekarlsodom96: then uhm, how to get a array to string ? :/&
18:03:11dom96why do you need that?
18:03:26ekarlsocause the buffer dom96 is an array ?
18:03:38dom96a string is already technically an array
18:03:43ekarlsohttp://paste.ubuntu.com/12194077/
18:03:58federico3nimble install nimble@#head is now failing due to lib/nim/impure/rdstdin.nim(103, 10) Error: cannot open 'readline'
18:04:28*jaco60 joined #nim
18:04:40dom96yay, regressions
18:05:29dom96I guess Araq removed it?
18:06:15ekarlsomeh
18:06:23ekarlsowhy doesnt rust support var as int
18:06:26ekarlso:P
18:09:17dom96ekarlso: just use whatever works
18:09:18dom96I need to go
18:10:13*yglukhov joined #nim
18:17:39*zeph quit (Ping timeout: 244 seconds)
18:17:44baabelfishdom96: thanks
18:18:11baabelfishI'm gonna throw the default values for objects thing there also...
18:18:45*zeph joined #nim
18:36:11*NimBot joined #nim
18:37:11*darkf quit (Quit: Leaving)
18:39:48*boopisaway is now known as boop
18:41:02baabelfishdom96: https://github.com/nim-lang/Nim/issues/3250 is this a stupid idea?
18:42:52*vasher_ quit (Quit: Connection closed for inactivity)
18:50:02*vendethiel joined #nim
18:56:40*NimBot joined #nim
19:01:13*yglukhov quit (Remote host closed the connection)
19:01:55*UberLambda joined #nim
19:02:30*enquora joined #nim
19:02:33ekarlsohmm, can a proc modify a passed in var ?
19:02:42ekarlso:P
19:07:21baabelfishekarlso: proc iModify(x: var int) = x = 42
19:12:23ekarlsoso right
19:12:37ekarlso00000000002 < into a cast[int][...]
19:12:49ekarlsobecomes 140724161205132
19:12:56ekarlsowtf is up with that ?
19:16:17ekarlsoAraq: u got an idea ?
19:16:28ekarlsohttp://paste.ubuntu.com/12194579/ < is the code
19:19:49*NimBot joined #nim
19:24:31*enquora quit (Remote host closed the connection)
19:25:35ekarlsogreat, everyone asleep :p
19:27:35*yglukhov joined #nim
19:28:13federico3ekarlso: I hope there could be a better way to pack/unpack bytes than the block at 43
19:28:17*unclechu joined #nim
19:28:23*unclechu quit (Max SendQ exceeded)
19:28:54*unclechu joined #nim
19:28:54ekarlsofederico3: meh, how ?
19:29:12federico3something more declarative?
19:29:16*unclechu quit (Max SendQ exceeded)
19:29:35FedeOmotoekarlso: you're doing it wrong
19:29:40FedeOmototake a look at this:
19:29:41FedeOmoto[fomoto@terminus tmp]$ cat a.nim && nim c -r a > /dev/null
19:29:41FedeOmototype
19:29:41FedeOmoto Header* = object
19:29:41FedeOmoto size*: array[sizeof(int), char]
19:29:41FedeOmotovar header: Header
19:29:43FedeOmotovar i = 123456
19:29:45FedeOmotocopyMem(header.size[0].addr, i.addr, sizeof(int))
19:29:47*unclechu joined #nim
19:29:49FedeOmotovar size = cast[ptr int](header.size[0].addr)
19:29:51FedeOmotostderr.writeln("result: " , size[])
19:29:53FedeOmotoresult: 123456
19:30:03federico3
19:30:05federico3e.g. https://construct.readthedocs.org/en/latest/basics.html
19:30:18*xcombelle quit (Quit: bonne nuit)
19:30:57ekarlsoso, how to fix it then federico3 ?
19:31:26federico3are you asking me or FedeOmoto?
19:31:30ekarlsofederico3: -,,-
19:31:43federico3huh?
19:31:55ekarlsoFedeOmoto:
19:31:57ekarlsorather :p
19:32:14ekarlsoFedeOmoto: am I unpacking it wrongly or
19:33:55FedeOmotoekarlso: yes
19:34:21FedeOmotowhy the size field is 12 bytes long?
19:34:27ekarlsoFedeOmoto: ..
19:34:50ekarlsoFedeOmoto: looking at others that's what they use ?
19:34:56FedeOmotohmm nope
19:35:04FedeOmotoan int has the size of a pointer
19:35:22ekarlsohttps://github.com/mdippery/libtar/blob/master/libtar/libtar.h#L48
19:35:27FedeOmotohow would you expect to unpack 12 bytes to an int?
19:36:03FedeOmotolooking at that, I assume it's a textual representation of the "size"
19:36:35ekarlsoyeah?
19:38:08FedeOmotodon't know, never worked with tar at that level :P
19:39:10FedeOmotobut I don't see how you can read the size if it isn't represented in that way (textual)
19:39:35ekarlsoAraq: you got a clue man ?
19:39:38ekarlsouse streams ?
19:40:07Araqc2nim can handle struct tar_header
19:40:18ekarlsoAraq: ... dom96 wanted it in nim :p
19:40:36*Demon_Fox joined #nim
19:40:39Araqlet me just repeat what I said: *c2nim* can handle struct tar_header
19:40:59ekarlsoyeah, gut wont that just generate c bindings ?
19:41:44Araqc2nim can also translate C to Nim so that you can throw away the C
19:42:09Araqit's more work though, you need to clean up the resulting Nim code much more
19:42:32Araqbut it can tell you that char foo[12] is foo: array[12, char]
19:42:58ekarlsowhich is.. just the same I have atm..
19:42:59Araqhow that is then converted into a real size you need to look up in the C implementation
19:43:23Araqmy guess it shifts bytes around into a integer so that it is endian agnostic
19:43:57ekarlsooct_to_int((t).th_buf.size)
19:45:31ekarlsois there any helper for that in nim ?
19:46:00FedeOmotoand this is the function declaration:
19:46:01FedeOmotoint oct_to_int(char *oct);
19:46:39*NimBot joined #nim
19:46:39*irrequietus_ joined #nim
19:46:46Araq#define th_get_size(t) oct_to_int((t)->th_buf.size)
19:46:50*irrequietus quit (Ping timeout: 260 seconds)
19:47:21FedeOmotoas I said, it seems to be an string representation
19:47:31Araqdunno if we have an octal number parser but it's easy enough
19:47:37FedeOmotoyeah
19:48:14ekarlsoAraq: wanna make one quick ? :p
19:49:19Araqparseutils.parseOct
19:49:56ekarlsofunny, stuck inbetween two worlds atm :/
19:50:11ekarlsodoing nim in one and python in another :p
19:53:30*gXen joined #nim
19:55:12*gXen left #nim (#nim)
19:58:58*UberLambda quit (Quit: GTG)
20:00:44*mrkishi joined #nim
20:01:49*mrkishi quit (Max SendQ exceeded)
20:02:28*mrkishi joined #nim
20:09:44ekarlsowhat does stack smashing mean ? :D
20:13:51ekarlsoFedeOmoto: you know why offset get's set to 0 in nextFile on the 2nd iteration ? http://paste.ubuntu.com/12194897/
20:21:45NimBotnim-lang/Nim devel 6da8c78 Peter Mora [+1 ±1 -0]: extending metatype matching in sigmatch.nim
20:21:45NimBotnim-lang/Nim devel 19f5870 Andreas Rumpf [+1 ±1 -0]: Merge pull request #3234 from petermora/mapAutoAuto... 2 more lines
20:22:35NimBotnim-lang/Nim devel dc6c055 xyz [+0 ±2 -0]: When reading files, check if the eof flag is set before throwing.
20:22:35NimBotnim-lang/Nim devel 385a883 xyz [+0 ±2 -0]: Use seLen as sugested, and fix typos
20:22:35NimBotnim-lang/Nim devel 88247e6 xyz [+0 ±1 -0]: Append the readAllBuffer to what was read already
20:22:35NimBotnim-lang/Nim devel 1def8ec xyz [+0 ±2 -0]: remove fileError
20:22:35NimBot1 more commits.
20:26:17*NimBot joined #nim
20:28:41*^aurora^ joined #nim
20:32:03*NimBot joined #nim
20:33:18ekarlsoAraq: how come "size" in nim using parseOctet($header.size, intVar) becomes 11 whilst looking at the tar file in python using tarfile it's 2 ? :/
20:33:33*yglukhov quit (Remote host closed the connection)
20:33:54Araqare you sure header is zero terminated?
20:34:00Araq*header.size
20:34:21Araqjust inline the 3 lines that deal with octal to number conversion instead, it's easy
20:34:55Araqit's interesting how algorithms are much more stable than interfaces
20:35:23ekarlso00000000002
20:36:15ekarlsooh lol!
20:38:40ekarlsoAraq: ok, so that still doesn't explain why offset is suddenly 0 inside nextFile() after the first file is retrieved..
20:40:30*vl409 quit (Ping timeout: 240 seconds)
20:42:25*Matthias247 joined #nim
20:42:27*pregressive quit (Remote host closed the connection)
20:42:57*jszymanski quit (Quit: computer sleeps...)
20:49:09*NimBot joined #nim
20:53:22ekarlsoAraq: how come that when I have var content = newSeq[char]() passed into readChars readChars says it's read 2 bytes but content.len is 0 ?
20:53:29*ekarlso doesn't get that
20:55:23AraqreadChars doesn't update the len field as it takes an openArray
20:55:42ekarlsoAraq: ah, so what's the appropriate thing ot use then ?
20:55:56Araqand thinking about it ... that's rather bad
20:56:29Araqcause setlen(content, newLength) should wipe out the stored bytes
20:56:43ekarlsobecause there's data there but content is empty :|
20:57:18ekarlsoAraq: any ideas are welcome :p
20:57:47Araqdon't use readChars, use readBuffer instead?
20:58:13Araqor pass a fixedsize array to it instead
20:58:58ekarlsowhich one is prefered ?
21:05:13Araqdepends on what you later do with it
21:05:29Araqfixedsize array is faster unless you need to convert it to a string later anyway
21:06:04ekarlsoAraq: yeah, but the funny thing is I dont know the size of the buffer
21:06:23ekarlsoI mean the content size may vary depending on fizesize
21:06:47AraqreadAll?
21:07:26*pregressive joined #nim
21:07:42*NimBot joined #nim
21:07:48ekarlsohardly ideal it seems for a file that's n+ gb
21:08:26Araqshouldn't the file header contain section sizes or something?
21:08:54AraqI mean it's "tar" so it likely predates any such modern ideas, but still
21:08:55ekarlsoAraq: yeah, the header has the "size" of the current file
21:09:11ekarlsoso header + size to get the filerange
21:10:22ekarlsohowso Araq ?
21:12:23AraqI'm kidding
21:12:36ekarlsohaha, i'm so failing at this ;)
21:12:55Araqbtw what do you ultimately try to accomplish?
21:13:10ekarlsoAraq: provide a iterator for files inside a tarfil
21:13:44ekarlsotar = newTar(file); for f in tar.iterFiles(): print f.getSize()
21:13:46ekarlsoor similar
21:13:52ekarlsothat was part of what dom96 wanted ;)
21:13:55ekarlso+ write
21:14:03Araqbut we need tarfile generation, not reading
21:14:22ekarlsoAraq: why not have both?
21:14:40Araqactually we need tar.xz I think
21:14:51ekarlsowell, he said to skip .gz for now :p
21:14:58ekarlsoxz .. hmf
21:15:26ekarlsoAraq: so should I just scrap this? ..
21:15:37dom96No.
21:15:41dom96We need both reading and writing
21:15:46Araqno no no, listen to dom96
21:15:55dom96And we don't need compression
21:15:56dom96for now
21:16:20dom96compression can be easily added on later anyway
21:16:30ekarlsodom96: how the crap then to read the contents ?
21:16:48ekarlsoreadChars() doesn't seem to be doing it
21:18:58*NimBot joined #nim
21:20:38ekarlsooh well, seeya tomorrow bed time
21:20:58*mrkishi quit ()
21:22:12Araqbed time? it's not even midnight
21:22:22ekarlsoAraq: getting up at 0500..
21:22:24ekarlsoso nightY!
21:22:33ekarlsodom96: leave me an answer if you want to :p
21:22:34Araqugh that sucks
21:22:47Araqhow come you need to get up that early?
21:23:04Araqstill in the Army?
21:26:20federico3wtf?! lib/nim/system.nim(2068, 17) Error: undeclared identifier: 'data'
21:31:59*NimBot joined #nim
21:34:18Araqfederico3: more context required
21:34:26*Trustable quit (Quit: Leaving)
21:36:32federico3I wish I had it, it happend from a completely unrelated piece of code
21:37:19Araqdo you use system.each?
21:37:47federico3https://paste.debian.net/304918/
21:40:04AraqI don't have POP3Client
21:41:20federico3I'm not sure how the error is related to any code. "data" does not even appear as a variable name in the whole file
21:41:50federico3it seems to be triggered by using the Table as a return value. If I return "resp" it compiles.
21:42:20*CryptoToad joined #nim
21:43:24Araqfederico3: this makes no sense
21:44:09federico3indeed
21:49:42Araqwell you need to give me something I can compile
21:50:11federico3in 1 minute
21:50:16*brson joined #nim
21:50:48AraqI'm at the Ballmer's Peak now, so hurry up
21:54:34federico3https://github.com/FedericoCeratto/nim-pop3/blob/master/pop3.nim
21:55:47Araqtoo late, watching Honest Trailers now ... nah, just kidding
21:56:03federico3if I replace the last proc with https://paste.debian.net/304918/
21:57:04federico3aha!
21:57:41federico3if I discard the output of capa() in my test code it compiles. If I do "echo c.capa()" it triggers that error.
21:58:17Araqworks for me
21:58:31federico3O_O wtf?
21:58:53Araqwell I don't have your test code
21:59:10Araqbut I replaced capa by your other implementation and compiled pop3.nim
21:59:16Araqwith -d:ssl
21:59:30Araqwithout it there some other compiler error but the compiler is right
22:01:33federico3the test code is trivial, let c = newPOP3Client(host="pop.gmail.com"); <authentication> ; echo c.capa()
22:01:53federico3interestingly, if I inline the test code in pop3.nim it works
22:02:54ekarlsofucking thunder crap.. whole house is shaking atm :/
22:03:04ekarlsocan't sleep with thor outside!
22:03:30*NimBot joined #nim
22:03:40federico3Araq: https://paste.debian.net/304921/
22:03:59ekarlsoAraq: what would u suggest to mitigate the buffer thing ?
22:06:16Araqfederico3: the error is perfectly clear :P
22:06:23Araqtemp15.nim(8, 8) template/generic instantiation from here
22:06:24Araqlib\system.nim(2201, 19) Error: undeclared field: 'data'
22:06:39Araqyou don't import tables.nim
22:06:47Araqso the $ for tables is not available
22:06:57Araqwhich is what 'echo' tries to use
22:07:09Araqand so it tries to use the generic $ from system.nim
22:07:18Araqwhich accesses *every* field in the table
22:07:33Araqhowever the data field is not public and so this fails
22:08:00Araqif it were public you'd get a fucked up $ for Tables instead ;-)
22:09:17FedeOmotoekarlso: what are you trying to do?
22:09:31Araqekarlso: use readBuffer with the size that tar tells you to use
22:09:33FedeOmotomay be I can help you, I've time now
22:11:10ekarlsoFedeOmoto: read fileStart = file.header end + 1 with the len of header.header.size()
22:11:31*mrkishi joined #nim
22:12:16ekarlsoAraq: but u cant tell readBuffer where to read from ?
22:12:46FedeOmotoekarlso: yes, you can
22:12:58*pregressive quit (Ping timeout: 272 seconds)
22:13:14ekarlsoproc readBuffer(f: File; buffer: pointer; len: Natural): int {. < really wher e?
22:13:28FedeOmotobuffer :P
22:14:15ekarlsorly, so what, buffer = array[512..foo] then ? ..
22:14:16FedeOmotoyou write in buffer
22:14:51ekarlsoFedeOmoto: I thought it would be read(buffer, x, y) kinda ?
22:15:33FedeOmotoyou're reading from a file, position the file pointer from where you want to start reading
22:15:54ekarlsoFedeOmoto: how ? :/
22:16:04FedeOmotosetFilePos
22:16:19ekarlsoomg -,,-
22:20:00*silven quit (Ping timeout: 245 seconds)
22:26:25*mrkishi quit ()
22:30:07*kilon joined #nim
22:31:19*unclechu quit (Quit: Leaving.)
22:31:20*Jehan_ joined #nim
22:32:48*xificurC quit (Ping timeout: 255 seconds)
22:37:41*kilon quit (Remote host closed the connection)
22:40:06*irrequietus_ quit ()
22:41:59*kilon joined #nim
22:42:30dom96federico3: Please report that error as a bug, I think it's worth looking into improving it if possible.
22:44:43*vendethiel quit (Ping timeout: 246 seconds)
22:45:07*mrkishi joined #nim
22:45:22*yglukhov joined #nim
22:50:11*silven joined #nim
22:50:20*yglukhov quit (Ping timeout: 272 seconds)
22:56:03*shevy joined #nim
22:56:25*mrkishi quit ()
23:03:09*mrkishi joined #nim
23:03:42*shodan45 quit (Quit: Konversation terminated!)
23:05:07*xcombelle joined #nim
23:05:13*brson quit (Quit: leaving)
23:08:09*NimBot joined #nim
23:17:04*mrkishi quit ()
23:18:30*BitPuffin|osx quit (Ping timeout: 240 seconds)
23:27:51*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
23:30:14*silven quit (Read error: Connection reset by peer)
23:31:45*silven joined #nim
23:32:39*kilon quit (Remote host closed the connection)
23:32:53*jaco60 quit (Ping timeout: 246 seconds)
23:33:19*Matthias247 quit (Read error: Connection reset by peer)
23:35:00*vasher_ joined #nim
23:38:04*X67r quit (Quit: leaving)