<<26-05-2013>>

00:42:17fowli got the lrint error on a fresh ubuntu
00:42:35fowlgcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1)
00:51:14*fowl left #nimrod (#nimrod)
01:03:29*OrionPK quit (Read error: Connection reset by peer)
01:05:10*OrionPK joined #nimrod
02:04:12*fowl joined #nimrod
02:56:37*Trixar_za is now known as Trix[a]r_za
04:53:15*OrionPK quit (Quit: Leaving)
05:21:03*Endy joined #nimrod
05:43:33*Endy quit (Ping timeout: 248 seconds)
05:43:44*Endy joined #nimrod
05:47:59*mal`` quit (Ping timeout: 246 seconds)
05:49:26*mal`` joined #nimrod
05:56:39*[1]Endy joined #nimrod
05:58:10*Endy quit (Ping timeout: 256 seconds)
06:23:07*[1]Endy quit (Ping timeout: 252 seconds)
06:25:02*Endy joined #nimrod
06:35:56*fowl quit (Read error: Operation timed out)
06:40:39*fowl joined #nimrod
06:58:12*amarsahinovic joined #nimrod
06:58:14*Endy quit (Ping timeout: 256 seconds)
07:34:36*fowl quit (Remote host closed the connection)
07:41:55*zahary joined #nimrod
10:19:11*XAMPP-8 joined #nimrod
10:33:44*q66 joined #nimrod
10:34:59*zahary quit (Quit: Leaving.)
10:51:28*zahary joined #nimrod
11:03:03*amarsahinovic quit (Quit: Leaving.)
12:45:47*XAMPP_8 joined #nimrod
12:45:54*XAMPP_8 quit (Client Quit)
12:47:34*XAMPP-8 quit (Ping timeout: 245 seconds)
13:31:02*Endy joined #nimrod
14:24:43NimBotnimrod-code/nimbuild e058069 Dominik Picheta [+0 ±1 -0]: ircbot: Fixed !remnick command.
14:24:43NimBotnimrod-code/nimbuild 40367c1 Dominik Picheta [+0 ±2 -0]: irclogs are now stored as json files, website does the rendering.
14:25:36Araqwhy do we need it as json? oh well never mind
14:26:40dom96because it's easier to restore the state of the irc logs when NimBot restarts
14:27:46dom96and it allows for other things like: adjusting timestamps based on user's timezone.
14:29:31Araqwell the problem with json is that it's the wrong format for logs
14:29:54dom96and what is better?
14:30:27Araqyou can put the logs in [ ... ] as there is no beginning or end
14:30:45Araqbetter is a list of lines
14:30:50dom96The reason json is used is because the marshal module uses that format.
14:31:09Araq*you can't put the logs in [...]
14:31:41dom96There is a beginning and end.
14:31:46dom96The start of the day and the end of the day
14:31:49Araqhow so?
14:32:33Araqwell ok
14:32:49dom96json allows me to encode all the information I need
14:33:01dom96I could that with some simple line based format too
14:33:07dom96but it would get messy and unreadable quickly
14:33:38Araqso how do you generate the surrounding [ and ] ?
14:33:52dom96I use the marshal module.
14:34:04dom96I don't know what it does.
14:34:16Araqso you keep everything in ever growing 'seq'?
14:34:29dom96yes
14:34:49Araqwhen do you serialize?
14:35:16dom96https://github.com/nimrod-code/nimbuild/blob/master/irclog.nim#L5
14:37:22Araqok I see
14:37:36Araqso you save the whole log every time ...
14:37:48Araqinstead of appending :P
14:37:51dom96yes
14:38:18Araqremind me to rewrite this code when I find the time :P
14:38:55dom96You know, it works the same way right now...
14:39:06dom96it writes the whole HTML constantly
14:39:25Araqgood point ...
14:39:50Araqwe should generate wrong HTML then without </html> stuff
14:40:01Araqso that it can simply be appended
14:40:26dom96Why?
14:40:49Araqfor efficiency
14:41:11dom96It's an IRC logger, not a space station.
14:41:56Araqpeople can use it to attack our server
14:42:06dom96how?
14:42:35dom96You think IRC servers don't have anti-spam prevention?
14:43:08Araqhmm good point
14:43:38AraqI'll change it anyway :P
14:43:46Araqit makes me feel uneasy
14:44:10dom96meh, alright. I'll change it.
14:44:36dom96The format will not be pretty though
14:45:17Araqjson ain't pretty either, it just happens to be better than xml
14:45:36dom96json at least handles escaping things for me
14:45:58Araqwe have strutils.escape/unescape for that
14:52:43*OrionPK joined #nimrod
15:07:28Araqping zahary
15:08:41zaharyhi
15:08:57Araqin blockLeaveActions we do:
15:09:06Araq if gCmd != cmdCompileToCpp:
15:09:07Araq for i in countdown(p.inExceptBlock-1, 0):
15:09:09Araq linefmt(p, cpsStmts, "#popCurrentException();$n")
15:09:28Araqbut this is false, it depends on how many 'try' statements the 'break' leaves
15:10:29Araqnow the question is ... why is it not simply done "howMany" times?
15:12:17Araq(it's bug #391 btw)
15:12:31*silven quit (Remote host closed the connection)
15:13:33zaharyI've seen this code, but was it originally written by me?
15:13:51AraqI don't remember
15:13:57*silven joined #nimrod
15:14:09AraqI think you introduced the p.inExceptBlock ...
15:14:40dom96You can check by using git blame.
15:16:16zaharyhttps://github.com/Araq/Nimrod/commit/c59537297a1836b88119cf4931ef23f2a882989a
15:16:27zaharylet me try to remember what was going on here
15:17:39zaharyah, inExcept means that you literally inside an except block
15:17:44zaharytry:
15:17:53Araqwell yes
15:17:56zahary foo
15:17:56zahary bar
15:17:56zaharyexcept:
15:17:56zahary -> cursor here
15:20:35Araqtry:
15:20:40Araqexcept:
15:20:46Araq while true: break
15:21:01Araq # don't pop the exception for the 'break'
15:25:10zaharythere is a template called preserveBreakIdx. I guess it should learn about inExcept as well
15:26:54*Trix[a]r_za is now known as Trixar_za
15:30:44dom96is it just me or does this proc signature look strange? proc fromSeconds[since1970:type](since1970: int | int64): TTime
15:31:55zaharythis is from an error message?
15:32:17dom96no, it's from the docs: http://build.nimrod-code.org/docs/times.html#107
15:33:07zaharyit shouldn't print the generic param. there is a flag assigned to it called sfAnon that controls whether it's printed in error messages
15:34:06*gradha joined #nimrod
16:17:11*gradha quit (*.net *.split)
16:30:05dom96For some reason this code: https://gist.github.com/dom96/0da7e5f32be74b5efe76
16:30:15dom96Results in: a25.nim(2, 5) Error: value returned by statement has to be discarded
16:30:23dom96Note the incorrect line number.
16:30:51Araqit's arguably the correct line number :P
16:31:10Araqyou have a (var ...; var ...; open(...)) statement
16:31:17Araqit starts at line 2
16:31:43dom96omg
16:31:47Araqshould be easy to change though
16:32:08dom96yes, it's extremely confusing.
16:32:34*gradha joined #nimrod
16:32:57dom96Araq: Want a bug report?
16:33:04Araqyes please
17:09:51*Trixar_za is now known as Trix[a]r_za
17:11:07Araqzahary: renderer.nim doesn't know about sfAnon
17:12:07Araqand that it's an alias to discardable doesn't help to teach it about it
17:20:26*gradha quit (Quit: bbl, have youtube videos to watch)
17:22:38zaharysfAnon is attached to the generic param, not the proc, I'll take a look at the renderer
17:22:43*Endy quit (Ping timeout: 256 seconds)
17:24:02Araqwell ok, if you special case it in the handling for nkGenericParams it should be fine
17:54:29*Endy joined #nimrod
18:19:24*amarsahinovic joined #nimrod
18:23:23*fowl joined #nimrod
19:10:55*Endy quit (Ping timeout: 252 seconds)
19:15:53NimBotAraq/Nimrod 087467e Zahary Karadjov [+0 ±5 -0]: fixes #267
19:15:53NimBotAraq/Nimrod 6eb6cfd Zahary Karadjov [+0 ±3 -0]: bugfix: emulated thread vars used in combination with the mark & sweep GC... 2 more lines
19:15:53NimBotAraq/Nimrod 8f0a74a Zahary Karadjov [+0 ±2 -0]: allow `void` as a field type
19:15:53NimBotAraq/Nimrod 85dae11 Zahary Karadjov [+0 ±1 -0]: allow keyword params for the `[]` and `{}` operators... 6 more lines
19:15:53NimBotAraq/Nimrod b540845 Zahary Karadjov [+0 ±4 -0]: static and default params for generics
19:16:51dom96http://forum.nimrod-code.org/t/157
19:17:11dom96Convince him.
19:17:15dom96(/her)
19:21:06fowldom96: i thought the glfw wrapper was available in babel, but im not seeing it now
19:22:25dom96hrm, i guess it was never added to babel.
19:25:21NimBotnimrod-code/nimbuild ee91868 Dominik Picheta [+0 ±1 -0]: Implemented custom IRC log marshalling to allow appending to file.
19:27:29Araqzahary: are you sure about that lambdalifting change?
19:28:28zaharyI've left some notes in the commit. the problem was that the error suddenly start appearing, because the generic proc was not considered at all
19:28:57zaharyit used to be analysed and detected as generic at a later point
19:29:27Araqwell the procs should have been instantiated when lambda lifting occurs iirc
19:29:29zahary*suddenly stopped appearing * (I meant the desired error "Invalid Capture")
19:29:57Araqyou should fix the symbol table weirdnesses instead :P
19:30:05zaharyyes, this is the flow, but there is one check isNestedProc very early
19:30:12zaharyso this one was giving false negatives
19:30:31Araqinstantiation of generics happens in the *current* scope
19:30:50Araqthis should be easy to deal with with the new symtab
19:31:45zaharyyes, it's a nice to-do item. I think we should deal with the nkSymChoice prepass issues as well in similar fashion
19:32:33Araqer .. what? what has that to do with it?
19:33:13zaharyif you remember, the problem was that the prepass can't register all symbols, because some of them will be inserted after macro/template expansion
19:34:10Araqyes
19:34:19zaharyI think the proper fix is to get rid of the prepass and apply the mixin rules during intantiation (we have both the caller scope and the generic scope accessible)
19:34:58Araqomg do that in a branch
19:35:35zaharythat's not a high priority feature for me
19:35:48Araqbut otherwise it's worth a try
19:38:30OrionPKKenneth can be a girls name
19:38:48OrionPKif ur parents hate you..
19:40:30Araq'var var T' needs to converted to 'var T' according to the C++ book that I have to happen lying around here
19:49:02fowldom96: i responded to that thread
19:49:35dom96fowl: Awesome. I will respond ASAP too.
19:50:50OrionPKoo fowl, where's your horde3d wrapper?
19:51:23fowlOrionPK: fowltek/h3d
19:51:34fowl(babel install fowltek)
19:52:15OrionPKah k
19:53:37fowlhm i just noticed some things i need to update in it
19:57:34*zahary quit (Quit: Leaving.)
20:33:30*filwit joined #nimrod
20:33:42dom96hey filwit!
20:33:43filwithey guys :)
20:33:53filwitjust saw the website :)
20:34:10filwitlooks good. Nice work getting all the pages translated over
20:34:26dom96Thanks :)
20:34:38filwiti see you kept the code example haha
20:35:17dom96indeed :D
20:36:19filwitone crit
20:36:27filwitone the community page
20:36:37filwitnevermind
20:36:42filwitdumb crit
20:36:48filwiteverything looks great man
20:37:04filwitso what have you guys been doing lately?
20:37:12filwiton the nimrod front?
20:37:26dom96Trying to advertise it as much as possible.
20:37:53dom96Managed to gain a few users I think. And went up to 134 stargazers on github :D
20:38:02filwitnice!
20:38:06filwitcongrats
20:38:19filwitso have you posted a reddit or anything?
20:38:41OrionPKlol
20:38:48dom96yep. http://www.reddit.com/r/programming/comments/1epf5s/nimrod_092_released/
20:38:54filwitnice
20:39:09fowlOrionPK: you should write a horde3d test if you know the API
20:39:44filwitawesome, i like how Araq got on reddit to answer peoples questions
20:39:46fowlits the same as horde3d without the prefix h3d on all the functions
20:40:29dom96filwit: Yeah, I kept annoying him until he finally did it :P
20:40:41filwitwe should create more nicely-colored example codes for the website :)
20:41:59dom96filwit: You still owe me an aporia logo ;)
20:42:07filwityeah yeah i know
20:42:15filwitbeen busy
20:42:21filwit:P
20:42:23dom96It's ok, don't worry.
20:42:41OrionPKfowl: I've only just started looking into it yesterday, so I know next to nothing other than I want to look into it more :)
20:42:52filwityeah i know. I'll get it done for you eventually though
20:43:05OrionPKI see you've got some physics libs in there as well
20:43:49OrionPKI've used ode in the past, but it's been maybe 6 years
20:43:56OrionPK(not that it'll have changed much in that time xD)
20:44:20fowlyep ode is probably 90% ready, could be cleaned up a bit
20:45:45OrionPKso what are you using these for? or are you just contributing wrappers out of the goodness of your heart?
20:46:21fowli write games, but they often dont get past the prototype stage
20:46:28OrionPKhaha, join the club :P
20:46:42filwitdom96, Araq: Thanks for the warm acknowledgment in the Announcement :)
20:47:44dom96filwit: It was the least we could do for your awesome work :)
20:48:58filwitit looks like 0.9.2 has a lot of cool fixes and enhancements :)
20:49:53filwitso Araq is building a new mark-sweep GC for Nimrod?
20:50:05filwitor is that someone elses project?
20:50:19dom96yeah, but I don't think it's meant to replace the current one
20:50:46filwitthat's pretty cool.. but what advantages does it have over the?
20:50:48dom96zahary_ created a modified version of Araq's GC IIRC.
20:50:52filwitoh okay, i see
20:50:53fowlyou can already use it with --gc:markandsweep
20:51:10filwityeah fowl, i read that. cool stuff
20:51:48filwiti'm interested in the new additions to the macros lib
20:52:11filwiti always wanted to try fancy stuff with macros, but could never figure out how to correctly build the AST
20:52:20dom96fowl is the resident macro guy nowadays ;)
20:52:29filwitnice
20:54:26filwitsystem.local gets a proc's parameters?... or is that something to do with closure-style classes?
20:54:49filwitsystem.locals**
20:57:00filwitand it looks like Araq's starting to remove the need for forward declaration huh? awesome
20:57:18dom96That's zahary_'s work.
20:57:32filwitah, cool
20:57:39filwitnice work zahary_
21:01:38filwitwhat does "overloading based on ASTs" mean exactly?
21:02:40filwiti guess i'll just have to talk to Araq tomorrow about it
21:03:10filwitall in all, it looks like an impressive release folks. Congrats!
21:03:27filwiti'm headed out. bye dom96
21:03:41dom96Awww. Alright, talk to you later, thanks for stopping by.
21:04:04filwityeah, i'll stop by again tomorrow
21:04:07*filwit quit (Quit: Leaving)
21:39:16*zahary joined #nimrod
21:52:16fowlw00t array[int, T] works :>>
21:55:11*zahary quit (Quit: Leaving.)
22:15:58dom96yay, looks like Kenneth will create a project in Nimrod.
22:22:39dom96hah, I just realised that he changed the subject
22:32:21*fowl quit (Remote host closed the connection)
22:53:06*amarsahinovic quit (Quit: Leaving.)
22:58:49*fowl joined #nimrod
23:03:00*dallbee joined #nimrod
23:03:01dallbeeAt the request of dom, hello!
23:03:01dallbeeAt the request of dom, hello!
23:03:01dallbeeAt the request of dom, hello!
23:03:03*dallbee quit (Quit: Leaving)
23:03:32Araqat least dallbee was quick
23:03:46*dom96 should just ban him
23:04:49*fowl quit (Remote host closed the connection)
23:24:06NimBotnimrod-code/packages f177208 Rafael Vasco [+0 ±1 -0]: Added nimrod-glfw data
23:24:06NimBotnimrod-code/packages 048fa73 Rafael Vasco [+0 ±1 -0]: Fixed url and description
23:24:06NimBotnimrod-code/packages 86e41c5 Dominik Picheta [+0 ±1 -0]: Merge pull request #13 from rafaelvasco/master... 3 more lines