| 00:03:57 | NimBot | Araq/Nimrod 71f5407 Araq [+0 ±1 -0]: fixes #335 |
| 00:11:45 | Araq | reactormonk: now gimme that bitcoin |
| 00:12:55 | dom96 | :O |
| 00:13:15 | reactormonk | Araq, I was talking about #347 - but fine. |
| 00:13:47 | reactormonk | Araq, gimme an ID and I'll transfer as soon as coinbase delivers |
| 00:14:11 | Araq | hmm I knew how to tackle #347 but I'm too tired now :P |
| 00:15:19 | reactormonk | Araq, http://stackoverflow.com/questions/3037598/how-to-get-around-the-jslint-error-dont-make-functions-within-a-loop <- |
| 00:15:32 | Araq | reactormonk: already read it |
| 00:15:44 | reactormonk | Araq, just sayin' |
| 00:15:56 | Araq | that approach can hardly be automated |
| 00:17:01 | reactormonk | Araq, why? |
| 00:17:21 | reactormonk | create an anonymous function returning a function |
| 00:17:36 | reactormonk | lemme write it up |
| 00:18:04 | Araq | well ok |
| 00:18:18 | Araq | but it looks like more work than I would like |
| 00:19:32 | * | gradha quit (Quit: bbl, have youtube videos to watch) |
| 00:20:40 | reactormonk | wait, doesn't work as I expected :-/ |
| 00:20:53 | NimBot | nimrod-code/Aporia edf15b2 Dominik Picheta [+0 ±1 -0]: Use TextMarks to keep track of the search position in Highlight... 2 more lines |
| 00:20:53 | NimBot | nimrod-code/Aporia 88da900 Dominik Picheta [+0 ±1 -0]: Stricter rules on what selections the Highlight All feature is activated... 2 more lines |
| 00:21:57 | Araq | well I'll come up with a solution |
| 00:22:01 | Araq | good night |
| 00:26:12 | reactormonk | Araq, see issue. |
| 01:00:27 | * | q66 quit (Remote host closed the connection) |
| 07:44:26 | * | gour joined #nimrod |
| 08:36:27 | Araq | ping reactormonk |
| 08:37:27 | dom96 | hrm, someone seems to be complaining about our docs: http://www.reddit.com/r/programming/comments/1as95z/the_copper_programming_language/c90um0n |
| 08:37:33 | dom96 | Get him! |
| 08:38:59 | dom96 | Araq: you should totally test Aporia now. |
| 08:39:10 | Araq | ugh ... reddit again ... |
| 08:39:20 | Araq | and it that ccssnet? |
| 08:39:25 | Araq | *is that |
| 08:39:43 | dom96 | hrm, it might be. |
| 08:39:49 | dom96 | ccssnet: How dare you! |
| 08:40:15 | Araq | and how can we document syntax errors anyway? |
| 08:40:43 | dom96 | I think whatever error the compiler comes up with should be in most cases enough. |
| 08:41:15 | dom96 | We could make a large page listing all possible errors and then writing possible causes... |
| 08:41:32 | dom96 | Araq: Reply to him as well please. |
| 08:41:50 | Araq | meh ... |
| 08:42:01 | Araq | lost my account data :P |
| 08:43:14 | dom96 | .. |
| 08:43:41 | Araq | what's the deal with asm.js btw? |
| 08:43:57 | Araq | I looked at it weeks ago and wasn't impressed at all |
| 08:44:11 | Araq | the type system is bad joke |
| 08:44:15 | dom96 | apparently its been implemented in firefox nightly |
| 08:44:21 | Araq | *shrug* |
| 08:44:46 | dom96 | brb |
| 09:02:56 | dom96 | back |
| 09:03:27 | ccssnet | eh? |
| 09:05:18 | ccssnet | i dont use forums btw |
| 09:06:48 | dom96 | Ahh, so it wasn't you then. |
| 09:21:16 | Araq | huh? what do you mean? |
| 09:21:48 | Araq | we have one additional user? |
| 09:22:01 | dom96 | huh? |
| 09:22:07 | dom96 | I guess? |
| 09:24:10 | Araq | cool. |
| 09:41:54 | dom96 | bye |
| 09:43:29 | * | xcombelle joined #nimrod |
| 10:54:31 | * | avarus joined #nimrod |
| 10:54:31 | avarus | hi |
| 10:58:26 | * | q66 joined #nimrod |
| 11:55:51 | Araq | hi avarus |
| 12:13:46 | avarus | hi Araq, how are you? |
| 12:13:56 | Araq | I'm fine but tired |
| 12:24:36 | avarus | good enough :P |
| 12:24:56 | avarus | getting 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:54 | gradha | dom96: 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:22 | dom96 | gradha: no, the link that I posted refers to a specific comment. Read the text in the dark yellow box. |
| 16:18:25 | gradha | amazing forum feature |
| 16:20:33 | gradha | I can see why reddit calls itself the front page of the internet, nothing makes sense |
| 16:21:11 | gradha | what's the flow between pull requests to nimforum and when they reach the live forums? I see no special branches in git |
| 16:22:30 | Araq | gradha: there is no flow :P |
| 16:22:48 | Araq | the forum is stable and does its job |
| 16:57:22 | * | exhu joined #nimrod |
| 17:03:16 | exhu | looks 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:36 | exhu | dom96, after writing Aporia, what's wrong (you don't like) about GTK+ ? |
| 17:05:20 | Araq | "Entirely keyboard driven." hmm I dunno ... ;-) |
| 17:06:08 | gradha | maybe they managed to rewrite vim |
| 17:07:20 | exhu | Araq, what i liked is the ncurses version of it -- it accepts CTRL-C/V, SHIFT+Arrow keys for text selection. |
| 17:08:45 | exhu | gradha, i tried console verison and it seemed user-friendly to me, not how vim behaves -) |
| 17:09:36 | gradha | yes, vim is not user friendly, it's productivity friendly |
| 17:10:46 | gradha | maybe you could try http://www.shawnhargreaves.com/fed/ it's a single binary and seems user friendly |
| 17:11:47 | Araq | exhu: so how's the progress of your ORM? |
| 17:13:48 | exhu | Araq, 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:33 | exhu | gradha, "built in tetris game and screensaver " -- definitely a must have feature for a complete text editor -) |
| 17:16:26 | gradha | the 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:09 | dom96 | exhu: Aporia isn't a usable cross-platform text editor? :P |
| 17:31:45 | dom96 | Coding an UI in GTK requires a lot of boilerplate. GTK also has some quirks which are annoying. |
| 17:33:01 | dom96 | I'm also worried that GTK may stop supporting Windows soon. |
| 17:33:21 | gradha | they want to drop windows? |
| 17:33:53 | dom96 | No, but right now there are no official DLLs for GTK 3. |
| 17:35:28 | gour_ | lack of man power |
| 17:35:46 | gour_ | it's not much better on mac either, afaik |
| 17:35:51 | * | gour_ is now known as gour |
| 17:37:21 | gour | wx is also underpowered...only qt has enough devs and possibly tcl/tk |
| 17:37:42 | exhu | dom96, 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:08 | exhu | dom96, but i need more that that. |
| 17:38:16 | exhu | *than that |
| 17:38:59 | * | Trix[a]r_za is now known as Trixar_za |
| 17:39:24 | gour | exhu: anything wrong with emacs/ediff? |
| 17:40:12 | exhu | gour, tried to learn emacs and vim several times, it's not how my brain wants a text editor to be. |
| 17:40:19 | dom96 | exhu: 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:57 | exhu | dom96, i don't like gedit, it loads longer than java jedit |
| 17:41:08 | gour | exhu: me too, but at least with emacs, i find it's easier to just use as much as you need |
| 17:41:28 | dom96 | exhu: ever tried sublime text? |
| 17:42:25 | gour | ST2 is nice, but bus-factor 1 :-/ |
| 17:42:45 | gour | ...and propr. over that |
| 17:43:44 | exhu | dom96, no i cannot buy sublime text |
| 17:44:07 | gour | exhu: have you tried geany? |
| 17:44:28 | exhu | gour, geany is good |
| 17:44:33 | dom96 | exhu: you can try it without paying |
| 17:44:35 | * | gour nods |
| 17:45:22 | exhu | dom96, and if i like it i still cannot buy it -) |
| 17:45:40 | exhu | dom96, not because of money etc., the payment processes through my country. |
| 17:47:13 | dom96 | i see. |
| 17:50:40 | exhu | dom96, looked through the demonstration movie on the sublime site, it's nice. |
| 17:59:08 | dom96 | Araq: We need to decide on what to do with sockets.recvLine. |
| 17:59:53 | Araq | dom96: again? |
| 18:00:06 | Araq | I thought we had a conclusion already |
| 18:00:35 | dom96 | Can you remember what the conclusion was |
| 18:00:35 | dom96 | ? |
| 18:01:06 | Araq | name it 'readLine' and have it an enum as a return type? |
| 18:01:32 | dom96 | I definitely never agreed on that solution :P |
| 18:02:26 | Araq | perhaps we had some other conclusion, I can't really remember either |
| 18:05:57 | dom96 | I 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:40 | Araq | to which I answered that if you need to provide error information you should raise an exception instead |
| 18:06:47 | dom96 | And if we go with this solution it will not be consistent with asyncio.recvLine anyway. |
| 18:07:47 | gradha | dom96: 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:19 | dom96 | gradha: Get the latest gtk2 wrapper. |
| 18:08:41 | gradha | latest gtk2 wrapper is incompatible with "older nimrod version" |
| 18:09:00 | dom96 | why? |
| 18:09:08 | gradha | wait, I'll bisect Aporia first, it's faster |
| 18:09:36 | Araq | you can also now nag zahary about the macosx problems |
| 18:09:46 | dom96 | Araq: So I should change sockets.recvLine so that it does not return anything? |
| 18:10:36 | gradha | zahary has a nice way of dealing with nagging: he disabled issues on his github vim mode for nimrod |
| 18:11:39 | dom96 | gradha: lol, he didn't. Forks on github don't have an issue tracker. |
| 18:12:06 | gradha | wow, true, hadn't notice until now |
| 18:12:26 | gradha | that's it, we are switching to fossil |
| 18:13:15 | Araq | no need they finally fixed the nimrod code detection |
| 18:13:36 | Araq | so Nimrod is written in 70% Nimrod or something |
| 18:14:11 | dom96 | I wonder where it gets that 15% of C from. |
| 18:14:23 | Araq | history? |
| 18:14:26 | zahary | hmm, gradha, I did apperantly, but I don't know how |
| 18:14:32 | gradha | but github not having issues, that's serious, you can't really fork something and have your own life |
| 18:15:36 | gradha | ah, ok, panic mode off: you can go to the settings in your own fork and enable issues |
| 18:16:15 | Araq | dom96: I can't follow |
| 18:16:26 | zahary | yep, I guess they were never enabled in the first place. you can bombard me with bugs at will now |
| 18:16:35 | Araq | if we don't need consistency with async.recvLine, why bother? |
| 18:16:53 | dom96 | Araq: We do. That's the point. |
| 18:17:16 | * | Trixar_za is now known as Trix[a]r_za |
| 18:17:27 | dom96 | Araq: asyncio.recvLine raises an exception on error. |
| 18:17:58 | Araq | gradha: my point was the bizarre 'nkYieldStmt' internal error on macosx |
| 18:18:04 | zahary | so, what are these mac os problems? I've been travelling on work and I missed all the action here |
| 18:18:17 | gradha | Araq: I know, I'm trying to bisect the problem |
| 18:18:37 | dom96 | Araq: Also I just noticed that sockets.recvLineAsync returns a RecvFail on error. |
| 18:18:38 | gradha | zahary: recent nimrod git version is unable to compile recent aporia |
| 18:19:03 | dom96 | Araq: Should be changed too I guess. |
| 18:19:17 | gradha | zahary: https://github.com/Araq/Nimrod/issues/342 araq doesn't know what's the problem there |
| 18:19:36 | Araq | dom96: write a gist please what you plan to change and why |
| 18:20:45 | zahary | gradha, which GC is used here? |
| 18:21:04 | gradha | I 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:11 | Araq | gradha: how am I supposed to know the license of the forum content? |
| 18:24:06 | gradha | you don't know it, you set it |
| 18:24:50 | gradha | since the forum is small now it's unlikely anybody will complain |
| 18:25:50 | Araq | alright then, I hereby give all the rights to myself and myself only |
| 18:26:08 | gradha | you could reply with "oh, yeah, we forgot, it's licensed under Araq's dictatorship rights", and then at least will be clear |
| 18:26:38 | Araq | I will sue you to death if you use the high quality content for anything |
| 18:27:06 | gradha | I would make a pull request to add that to the footer of the forums, but since the flow is stopped... |
| 18:29:44 | Araq | gradha: seriously though what happens if I don't give it any license? |
| 18:30:44 | gradha | you 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:26 | Araq | sounds fair enough to me ... |
| 18:33:38 | Araq | a license you have to accept before using the forum will put off users |
| 18:35:01 | dom96 | Araq: https://gist.github.com/dom96/dcc14181627563a49325 |
| 18:35:34 | gradha | true, its been a total failure for stackexchange and related forums |
| 18:38:48 | Araq | dom96: I like your proposal but it will break code :P |
| 18:39:07 | dom96 | indeed |
| 18:40:31 | dom96 | I am willing to make that sacrifice. |
| 18:40:39 | Araq | so 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:14 | dom96 | but everything else uses 'recv' |
| 18:41:20 | Araq | yeah :-/ |
| 18:41:57 | Araq | it'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:29 | fowl | i have a new gui mockup |
| 18:42:54 | Araq | gradha: I'm still thinking about the license |
| 18:43:02 | fowl | /lib |
| 18:44:03 | Araq | fowl: well? |
| 18:44:28 | Araq | "/lib" alone doesn't make a gui mockup |
| 18:44:31 | dom96 | Araq: Alright. I'll deprecate recvLine/recvLineAsync and introduce readLine/readLineAsync. |
| 18:44:39 | fowl | im writing a quick example prog |
| 18:45:21 | Araq | dom96: ok |
| 18:46:08 | Araq | dom96: once deprecated and removed 'recvLine' can be re-introduced as an alias to 'readLine' ... ;-) |
| 18:47:15 | dom96 | I kind of prefer 'read' anyway. |
| 18:57:15 | fowl | https://github.com/fowlmouth/nimlibs/blob/master/wrappers/sdl2/test/gui_test.nim |
| 18:57:47 | fowl | https://github.com/fowlmouth/nimlibs/blob/master/wrappers/sdl2/helpers/gui.nim |
| 18:58:46 | Araq | I don't think the button callback should get the PButton as parameter, fowl |
| 18:59:21 | dom96 | fowl: screenshot? |
| 19:00:48 | fowl | Araq: 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:44 | fowl | http://storage8.static.itmages.com/i/13/0323/h_1364065294_5917968_5e419087df.png |
| 19:07:21 | exhu | eh, textadept's find in files plugin is written in lua and damn slideshow slow :( |
| 19:09:48 | fowl | Araq: 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:45 | Araq | fowl: no big deal, let res = result and capture 'res' instead |
| 19:12:42 | reactormonk | Araq, yep? |
| 19:15:09 | fowl | Araq: could capturing keep a reference and not let it get GC'd? |
| 19:15:41 | Araq | fowl: that's what capturing does |
| 19:20:54 | Araq | fowl: get rid of data*: pointer in TButton |
| 19:21:09 | Araq | that's exactly what will cause random crashes :P |
| 19:21:24 | Araq | proc setData*[A](b: PButton; some: ref A) {.inline.} = |
| 19:21:26 | Araq | b.data = cast[pointer](some) |
| 19:21:40 | Araq | this is evil |
| 19:22:14 | Araq | and unnecessary; 'onclick' already is a closure |
| 19:23:23 | * | gradha quit (Quit: bbl, have youtube videos to watch) |
| 19:23:24 | fowl | oh come on you only get random crashes if you are irresponsible |
| 19:24:19 | Araq | well I can't see how 'setData' implies 'setWeakReference' |
| 19:24:41 | fowl | nah that function was there because im lazy (= |
| 19:27:46 | fowl | hows this https://github.com/fowlmouth/nimlibs/blob/master/wrappers/sdl2/helpers/gui.nim#L468 |
| 19:31:16 | Araq | better but I think TWidget should inherit from TObject; 'inheritable' is really for low level stuff |
| 19:33:45 | fowl | ok |
| 19:40:31 | fowl | what should i do about refs keeping windows alive like in showMessage() |
| 19:43:40 | Araq | fowl: I think you misunderstood, a closure is GCed like an explicit ref object |
| 19:47:29 | dom96 | Araq: Should I rename asyncio.recvLine to readLine? |
| 19:48:39 | fowl | Araq: the windows arent getting GC'd after being removed from the gui |
| 19:49:13 | Araq | dom96: you shouldn't rename anything, you should deprecate recvLine and add a readline |
| 19:49:34 | dom96 | Araq: Yeah, sorry. That's what I mean by rename. |
| 19:50:22 | reactormonk | Araq, fix breaks something else? Nice. |
| 19:50:40 | Araq | reactormonk: you owe me a bitcoin anyway :P |
| 19:50:50 | Araq | but yeah I'm on it |
| 19:51:14 | reactormonk | Araq, yeah, the fuckers from coinbase still owe me 10 |
| 19:51:16 | Araq | fowl: why not? |
| 19:51:34 | dom96 | Araq: So is that a yes? |
| 19:51:48 | Araq | dom96: yes |
| 19:52:29 | Araq | dom96: 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:43 | dom96 | nah |
| 19:58:04 | Araq | dom96: I hope you didn't go with the 'addQuitProc' stuff for aporia ... that feels pretty hackish ... |
| 19:58:28 | dom96 | Araq: I did not. |
| 20:01:14 | fowl | Araq: i think its the reference thats in the closure thats keeping it around |
| 20:02:10 | Araq | fowl: well then it's not dead and so can't be freed |
| 20:02:33 | Araq | but where do you keep the closures? |
| 20:02:44 | Araq | some global list of event handlers? |
| 20:05:22 | fowl | no in the example the closure is the onclick callback to close the window |
| 20:07:12 | Araq | fowl: then it's simply a bug in the codegen, iirc the compiler simply assumes a closure can't create a cycle ... ;-) |
| 20:09:52 | fowl | no in the example the closure is the onclick callback to close the window |
| 20:12:12 | Araq | well and the window's resources are not free when it's closed? |
| 20:12:12 | Araq | *freed |
| 20:13:52 | fowl | no |
| 20:14:18 | NimBot | Araq/Nimrod 8cbea90 Dominik Picheta [+0 ±1 -5]: Fixed bug with xmltree.attrs when attributes have not been initialised... 2 more lines |
| 20:14:18 | NimBot | Araq/Nimrod a6ff4ff Dominik Picheta [+0 ±3 -0]: Deprecated recvLine and added an improved version named readLine to the... 2 more lines |
| 20:20:19 | Araq | fowl: 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:54 | fowl | Araq: 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:39 | Araq | fowl: looks like the bug I mentioned, thanks for the test program, it's very easy to fix |
| 20:46:56 | Araq | fowl: try with --gc:markAndSweep please and see if it disappears |
| 20:56:40 | gour | Araq: do you plan to do some (more) Nimrod advertising before 1.0 release? |
| 20:57:13 | NimBot | nimrod-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:22 | Araq | gour: sure but I prefer "true viral marketing" aka "no work for poor Araq" ... ;-) |
| 20:59:12 | gour | is there any more concrete roadmap to publish than the present one on the site? |
| 20:59:41 | Araq | the todo.txt on github is much more concrete and kept up to date |
| 21:01:15 | gour | ahh. not aware of it...let me check |
| 21:07:56 | fowl | Araq: with markandsweep the last foo from each loop is kept |
| 21:08:16 | Araq | fowl: that's to be expected as it's still referenced from the stack |
| 21:21:19 | fowl | word |
| 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) |