<<23-03-2013>>

00:03:57NimBotAraq/Nimrod 71f5407 Araq [+0 ±1 -0]: fixes #335
00:11:45Araqreactormonk: now gimme that bitcoin
00:12:55dom96:O
00:13:15reactormonkAraq, I was talking about #347 - but fine.
00:13:47reactormonkAraq, gimme an ID and I'll transfer as soon as coinbase delivers
00:14:11Araqhmm I knew how to tackle #347 but I'm too tired now :P
00:15:19reactormonkAraq, http://stackoverflow.com/questions/3037598/how-to-get-around-the-jslint-error-dont-make-functions-within-a-loop <-
00:15:32Araqreactormonk: already read it
00:15:44reactormonkAraq, just sayin'
00:15:56Araqthat approach can hardly be automated
00:17:01reactormonkAraq, why?
00:17:21reactormonkcreate an anonymous function returning a function
00:17:36reactormonklemme write it up
00:18:04Araqwell ok
00:18:18Araqbut it looks like more work than I would like
00:19:32*gradha quit (Quit: bbl, have youtube videos to watch)
00:20:40reactormonkwait, doesn't work as I expected :-/
00:20:53NimBotnimrod-code/Aporia edf15b2 Dominik Picheta [+0 ±1 -0]: Use TextMarks to keep track of the search position in Highlight... 2 more lines
00:20:53NimBotnimrod-code/Aporia 88da900 Dominik Picheta [+0 ±1 -0]: Stricter rules on what selections the Highlight All feature is activated... 2 more lines
00:21:57Araqwell I'll come up with a solution
00:22:01Araqgood night
00:26:12reactormonkAraq, see issue.
01:00:27*q66 quit (Remote host closed the connection)
07:44:26*gour joined #nimrod
08:36:27Araqping reactormonk
08:37:27dom96hrm, someone seems to be complaining about our docs: http://www.reddit.com/r/programming/comments/1as95z/the_copper_programming_language/c90um0n
08:37:33dom96Get him!
08:38:59dom96Araq: you should totally test Aporia now.
08:39:10Araqugh ... reddit again ...
08:39:20Araqand it that ccssnet?
08:39:25Araq*is that
08:39:43dom96hrm, it might be.
08:39:49dom96ccssnet: How dare you!
08:40:15Araqand how can we document syntax errors anyway?
08:40:43dom96I think whatever error the compiler comes up with should be in most cases enough.
08:41:15dom96We could make a large page listing all possible errors and then writing possible causes...
08:41:32dom96Araq: Reply to him as well please.
08:41:50Araqmeh ...
08:42:01Araqlost my account data :P
08:43:14dom96..
08:43:41Araqwhat's the deal with asm.js btw?
08:43:57AraqI looked at it weeks ago and wasn't impressed at all
08:44:11Araqthe type system is bad joke
08:44:15dom96apparently its been implemented in firefox nightly
08:44:21Araq*shrug*
08:44:46dom96brb
09:02:56dom96back
09:03:27ccssneteh?
09:05:18ccssneti dont use forums btw
09:06:48dom96Ahh, so it wasn't you then.
09:21:16Araqhuh? what do you mean?
09:21:48Araqwe have one additional user?
09:22:01dom96huh?
09:22:07dom96I guess?
09:24:10Araqcool.
09:41:54dom96bye
09:43:29*xcombelle joined #nimrod
10:54:31*avarus joined #nimrod
10:54:31avarushi
10:58:26*q66 joined #nimrod
11:55:51Araqhi avarus
12:13:46avarushi Araq, how are you?
12:13:56AraqI'm fine but tired
12:24:36avarusgood enough :P
12:24:56avarusgetting some food, see you later
12:24:56*avarus quit ()
16:01:40*Boscop joined #nimrod
16:06:05*gradha joined #nimrod
16:10:08*zahary joined #nimrod
16:10:48*zahary quit (Client Quit)
16:11:23*zahary joined #nimrod
16:12:54gradhadom96: somebody posts about the copper language and the first comment is about nimrod docs? Was some inner conversation downmoded into oblivion? I can't follow
16:14:22dom96gradha: no, the link that I posted refers to a specific comment. Read the text in the dark yellow box.
16:18:25gradhaamazing forum feature
16:20:33gradhaI can see why reddit calls itself the front page of the internet, nothing makes sense
16:21:11gradhawhat's the flow between pull requests to nimforum and when they reach the live forums? I see no special branches in git
16:22:30Araqgradha: there is no flow :P
16:22:48Araqthe forum is stable and does its job
16:57:22*exhu joined #nimrod
17:03:16exhulooks like there's a usable cross-platform text editor finally available http://foicica.com/textadept/ , probably, i'll write nimrod syntax support for it after running on mac
17:04:36exhudom96, after writing Aporia, what's wrong (you don't like) about GTK+ ?
17:05:20Araq"Entirely keyboard driven." hmm I dunno ... ;-)
17:06:08gradhamaybe they managed to rewrite vim
17:07:20exhuAraq, what i liked is the ncurses version of it -- it accepts CTRL-C/V, SHIFT+Arrow keys for text selection.
17:08:45exhugradha, i tried console verison and it seemed user-friendly to me, not how vim behaves -)
17:09:36gradhayes, vim is not user friendly, it's productivity friendly
17:10:46gradhamaybe you could try http://www.shawnhargreaves.com/fed/ it's a single binary and seems user friendly
17:11:47Araqexhu: so how's the progress of your ORM?
17:13:48exhuAraq, had no time to try, i'm a bit tired now to think over it again, the previous days i was exhausted at work.
17:14:33exhugradha, "built in tetris game and screensaver " -- definitely a must have feature for a complete text editor -)
17:16:26gradhathe single binary feature is nice, you can share it on a windows network share and invoke it from windows' execute dialog to open files on other computers without installation
17:17:32*gradha quit (Quit: bbl, have youtube videos to watch)
17:20:55*gradha joined #nimrod
17:24:11*gour quit (Disconnected by services)
17:24:12*gour_ joined #nimrod
17:29:09dom96exhu: Aporia isn't a usable cross-platform text editor? :P
17:31:45dom96Coding an UI in GTK requires a lot of boilerplate. GTK also has some quirks which are annoying.
17:33:01dom96I'm also worried that GTK may stop supporting Windows soon.
17:33:21gradhathey want to drop windows?
17:33:53dom96No, but right now there are no official DLLs for GTK 3.
17:35:28gour_lack of man power
17:35:46gour_it's not much better on mac either, afaik
17:35:51*gour_ is now known as gour
17:37:21gourwx is also underpowered...only qt has enough devs and possibly tcl/tk
17:37:42exhudom96, i have to work with sources in different programming languages and visually compare wrong merges, so the most feature-rich to me and usable editor is jedit by far. Aporia is good and a must have ide for nimrod.
17:38:08exhudom96, but i need more that that.
17:38:16exhu*than that
17:38:59*Trix[a]r_za is now known as Trixar_za
17:39:24gourexhu: anything wrong with emacs/ediff?
17:40:12exhugour, tried to learn emacs and vim several times, it's not how my brain wants a text editor to be.
17:40:19dom96exhu: I am always open to feature suggestions, I agree that Aporia still has a long way from becoming as feature rich as some other editors but I think that it already surpasses gedit in some ways :D
17:40:57exhudom96, i don't like gedit, it loads longer than java jedit
17:41:08gourexhu: me too, but at least with emacs, i find it's easier to just use as much as you need
17:41:28dom96exhu: ever tried sublime text?
17:42:25gourST2 is nice, but bus-factor 1 :-/
17:42:45gour...and propr. over that
17:43:44exhudom96, no i cannot buy sublime text
17:44:07gourexhu: have you tried geany?
17:44:28exhugour, geany is good
17:44:33dom96exhu: you can try it without paying
17:44:35*gour nods
17:45:22exhudom96, and if i like it i still cannot buy it -)
17:45:40exhudom96, not because of money etc., the payment processes through my country.
17:47:13dom96i see.
17:50:40exhudom96, looked through the demonstration movie on the sublime site, it's nice.
17:59:08dom96Araq: We need to decide on what to do with sockets.recvLine.
17:59:53Araqdom96: again?
18:00:06AraqI thought we had a conclusion already
18:00:35dom96Can you remember what the conclusion was
18:00:35dom96?
18:01:06Araqname it 'readLine' and have it an enum as a return type?
18:01:32dom96I definitely never agreed on that solution :P
18:02:26Araqperhaps we had some other conclusion, I can't really remember either
18:05:57dom96I think you mentioned this as a solution and I said that it would be nice to get error information instead of only getting a RecvError as the return value.
18:06:40Araqto which I answered that if you need to provide error information you should raise an exception instead
18:06:47dom96And if we go with this solution it will not be consistent with asyncio.recvLine anyway.
18:07:47gradhadom96: I'm trying to compile Aporia with an older nimrod version, I get "utils.nim(376, 19) Error: undeclared field: 'isActive'" but I don't see it being declared for PWindow type in recent versions
18:08:19dom96gradha: Get the latest gtk2 wrapper.
18:08:41gradhalatest gtk2 wrapper is incompatible with "older nimrod version"
18:09:00dom96why?
18:09:08gradhawait, I'll bisect Aporia first, it's faster
18:09:36Araqyou can also now nag zahary about the macosx problems
18:09:46dom96Araq: So I should change sockets.recvLine so that it does not return anything?
18:10:36gradhazahary has a nice way of dealing with nagging: he disabled issues on his github vim mode for nimrod
18:11:39dom96gradha: lol, he didn't. Forks on github don't have an issue tracker.
18:12:06gradhawow, true, hadn't notice until now
18:12:26gradhathat's it, we are switching to fossil
18:13:15Araqno need they finally fixed the nimrod code detection
18:13:36Araqso Nimrod is written in 70% Nimrod or something
18:14:11dom96I wonder where it gets that 15% of C from.
18:14:23Araqhistory?
18:14:26zaharyhmm, gradha, I did apperantly, but I don't know how
18:14:32gradhabut github not having issues, that's serious, you can't really fork something and have your own life
18:15:36gradhaah, ok, panic mode off: you can go to the settings in your own fork and enable issues
18:16:15Araqdom96: I can't follow
18:16:26zaharyyep, I guess they were never enabled in the first place. you can bombard me with bugs at will now
18:16:35Araqif we don't need consistency with async.recvLine, why bother?
18:16:53dom96Araq: We do. That's the point.
18:17:16*Trixar_za is now known as Trix[a]r_za
18:17:27dom96Araq: asyncio.recvLine raises an exception on error.
18:17:58Araqgradha: my point was the bizarre 'nkYieldStmt' internal error on macosx
18:18:04zaharyso, what are these mac os problems? I've been travelling on work and I missed all the action here
18:18:17gradhaAraq: I know, I'm trying to bisect the problem
18:18:37dom96Araq: Also I just noticed that sockets.recvLineAsync returns a RecvFail on error.
18:18:38gradhazahary: recent nimrod git version is unable to compile recent aporia
18:19:03dom96Araq: Should be changed too I guess.
18:19:17gradhazahary: https://github.com/Araq/Nimrod/issues/342 araq doesn't know what's the problem there
18:19:36Araqdom96: write a gist please what you plan to change and why
18:20:45zaharygradha, which GC is used here?
18:21:04gradhaI always use the default
18:21:27*fowl joined #nimrod
18:22:16*Trix[a]r_za is now known as Trixar_za
18:23:11Araqgradha: how am I supposed to know the license of the forum content?
18:24:06gradhayou don't know it, you set it
18:24:50gradhasince the forum is small now it's unlikely anybody will complain
18:25:50Araqalright then, I hereby give all the rights to myself and myself only
18:26:08gradhayou could reply with "oh, yeah, we forgot, it's licensed under Araq's dictatorship rights", and then at least will be clear
18:26:38AraqI will sue you to death if you use the high quality content for anything
18:27:06gradhaI would make a pull request to add that to the footer of the forums, but since the flow is stopped...
18:29:44Araqgradha: seriously though what happens if I don't give it any license?
18:30:44gradhayou should ask your family of lawyers, my guess is everybody's content is copyrighted and owned by them and can't be used anywhere else without their explicit permission
18:31:26Araqsounds fair enough to me ...
18:33:38Araqa license you have to accept before using the forum will put off users
18:35:01dom96Araq: https://gist.github.com/dom96/dcc14181627563a49325
18:35:34gradhatrue, its been a total failure for stackexchange and related forums
18:38:48Araqdom96: I like your proposal but it will break code :P
18:39:07dom96indeed
18:40:31dom96I am willing to make that sacrifice.
18:40:39Araqso we should deprecate all of recvLine instead and introduce 'readLine' or perhaps 'fetchLine'?
18:40:40*Trixar_za is now known as Trix[a]r_za
18:41:14dom96but everything else uses 'recv'
18:41:20Araqyeah :-/
18:41:57Araqit's only a question of time when we need to deprecate 'recv' though ... :P
18:42:22*Trix[a]r_za is now known as Trixar_za
18:42:29fowli have a new gui mockup
18:42:54Araqgradha: I'm still thinking about the license
18:43:02fowl/lib
18:44:03Araqfowl: well?
18:44:28Araq"/lib" alone doesn't make a gui mockup
18:44:31dom96Araq: Alright. I'll deprecate recvLine/recvLineAsync and introduce readLine/readLineAsync.
18:44:39fowlim writing a quick example prog
18:45:21Araqdom96: ok
18:46:08Araqdom96: once deprecated and removed 'recvLine' can be re-introduced as an alias to 'readLine' ... ;-)
18:47:15dom96I kind of prefer 'read' anyway.
18:57:15fowlhttps://github.com/fowlmouth/nimlibs/blob/master/wrappers/sdl2/test/gui_test.nim
18:57:47fowlhttps://github.com/fowlmouth/nimlibs/blob/master/wrappers/sdl2/helpers/gui.nim
18:58:46AraqI don't think the button callback should get the PButton as parameter, fowl
18:59:21dom96fowl: screenshot?
19:00:48fowlAraq: i think i did that originally so i could pack the window in TButton.data but then i found that i could just use a closure for it in the way that is used in the test
19:01:24*Zerathul joined #nimrod
19:01:44fowlhttp://storage8.static.itmages.com/i/13/0323/h_1364065294_5917968_5e419087df.png
19:07:21exhueh, textadept's find in files plugin is written in lua and damn slideshow slow :(
19:09:48fowlAraq: im having trouble replacing this part as I can't capture result :/ https://github.com/fowlmouth/nimlibs/blob/master/wrappers/sdl2/helpers/gui.nim#L471
19:10:45Araqfowl: no big deal, let res = result and capture 'res' instead
19:12:42reactormonkAraq, yep?
19:15:09fowlAraq: could capturing keep a reference and not let it get GC'd?
19:15:41Araqfowl: that's what capturing does
19:20:54Araqfowl: get rid of data*: pointer in TButton
19:21:09Araqthat's exactly what will cause random crashes :P
19:21:24Araqproc setData*[A](b: PButton; some: ref A) {.inline.} =
19:21:26Araq b.data = cast[pointer](some)
19:21:40Araqthis is evil
19:22:14Araqand unnecessary; 'onclick' already is a closure
19:23:23*gradha quit (Quit: bbl, have youtube videos to watch)
19:23:24fowloh come on you only get random crashes if you are irresponsible
19:24:19Araqwell I can't see how 'setData' implies 'setWeakReference'
19:24:41fowlnah that function was there because im lazy (=
19:27:46fowlhows this https://github.com/fowlmouth/nimlibs/blob/master/wrappers/sdl2/helpers/gui.nim#L468
19:31:16Araqbetter but I think TWidget should inherit from TObject; 'inheritable' is really for low level stuff
19:33:45fowlok
19:40:31fowlwhat should i do about refs keeping windows alive like in showMessage()
19:43:40Araqfowl: I think you misunderstood, a closure is GCed like an explicit ref object
19:47:29dom96Araq: Should I rename asyncio.recvLine to readLine?
19:48:39fowlAraq: the windows arent getting GC'd after being removed from the gui
19:49:13Araqdom96: you shouldn't rename anything, you should deprecate recvLine and add a readline
19:49:34dom96Araq: Yeah, sorry. That's what I mean by rename.
19:50:22reactormonkAraq, fix breaks something else? Nice.
19:50:40Araqreactormonk: you owe me a bitcoin anyway :P
19:50:50Araqbut yeah I'm on it
19:51:14reactormonkAraq, yeah, the fuckers from coinbase still owe me 10
19:51:16Araqfowl: why not?
19:51:34dom96Araq: So is that a yes?
19:51:48Araqdom96: yes
19:52:29Araqdom96: unless you are of the opinion it's better to keep async.recvLine and the name should be different from readLine because it performs a different operation ...
19:52:43dom96nah
19:58:04Araqdom96: I hope you didn't go with the 'addQuitProc' stuff for aporia ... that feels pretty hackish ...
19:58:28dom96Araq: I did not.
20:01:14fowlAraq: i think its the reference thats in the closure thats keeping it around
20:02:10Araqfowl: well then it's not dead and so can't be freed
20:02:33Araqbut where do you keep the closures?
20:02:44Araqsome global list of event handlers?
20:05:22fowlno in the example the closure is the onclick callback to close the window
20:07:12Araqfowl: then it's simply a bug in the codegen, iirc the compiler simply assumes a closure can't create a cycle ... ;-)
20:09:52fowlno in the example the closure is the onclick callback to close the window
20:12:12Araqwell and the window's resources are not free when it's closed?
20:12:12Araq*freed
20:13:52fowlno
20:14:18NimBotAraq/Nimrod 8cbea90 Dominik Picheta [+0 ±1 -5]: Fixed bug with xmltree.attrs when attributes have not been initialised... 2 more lines
20:14:18NimBotAraq/Nimrod a6ff4ff Dominik Picheta [+0 ±3 -0]: Deprecated recvLine and added an improved version named readLine to the... 2 more lines
20:20:19Araqfowl: I don't get it, if you have a "logical" memory leak you need to fix your design somehow, if you have an "ordinary" memory leak submit a bug report please
20:31:54fowlAraq: here is my best representation of the problem: https://gist.github.com/fowlmouth/5229246
20:33:47*xcombelle quit (Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC.)
20:39:39Araqfowl: looks like the bug I mentioned, thanks for the test program, it's very easy to fix
20:46:56Araqfowl: try with --gc:markAndSweep please and see if it disappears
20:56:40gourAraq: do you plan to do some (more) Nimrod advertising before 1.0 release?
20:57:13NimBotnimrod-code/Aporia 08ea8f0 Dominik Picheta [+0 ±1 -0]: Fixed problem with * not being removed from tab title when tab was... 2 more lines
20:58:22Araqgour: sure but I prefer "true viral marketing" aka "no work for poor Araq" ... ;-)
20:59:12gouris there any more concrete roadmap to publish than the present one on the site?
20:59:41Araqthe todo.txt on github is much more concrete and kept up to date
21:01:15gourahh. not aware of it...let me check
21:07:56fowlAraq: with markandsweep the last foo from each loop is kept
21:08:16Araqfowl: that's to be expected as it's still referenced from the stack
21:21:19fowlword
21:29:22*AmatCoder joined #nimrod
21:39:25*exhu quit (Quit: Ex-Chat)
22:12:43*gour quit (Quit: WeeChat 0.4.0)
23:26:18*AmatCoder quit (Quit: Leaving)