00:12:02 | * | Trixar_za is now known as Trix[a]r_za |
00:34:27 | * | XAMPP joined #nimrod |
01:22:42 | * | mal``` quit (Quit: ERC Version 5.3 (IRC client for Emacs)) |
01:25:32 | * | mal`` joined #nimrod |
03:21:43 | * | q66_ joined #nimrod |
03:23:14 | * | q66 quit (Ping timeout: 260 seconds) |
06:42:57 | * | XAMPP_ joined #nimrod |
06:45:55 | * | XAMPP quit (Ping timeout: 246 seconds) |
08:29:00 | * | XAMPP__ joined #nimrod |
08:31:58 | * | XAMPP_ quit (Ping timeout: 246 seconds) |
08:49:31 | * | q66_ quit (Read error: Connection reset by peer) |
08:50:24 | * | q66 joined #nimrod |
10:55:49 | * | Trix[a]r_za is now known as Trixar_za |
11:17:22 | * | Araq_ joined #nimrod |
11:29:44 | * | Araq_ quit (Quit: ChatZilla 0.9.88.2 [Firefox 14.0.1/20120713134347]) |
12:05:20 | * | Trixar_za is now known as Trix[a]r_za |
12:56:54 | * | Araq_ joined #nimrod |
12:58:03 | * | Araq_ quit (Client Quit) |
14:27:06 | * | fowl quit (Ping timeout: 264 seconds) |
15:23:43 | * | XAMPP__ quit (Quit: Leaving) |
15:44:17 | * | shevy quit (Ping timeout: 252 seconds) |
15:56:39 | * | shevy joined #nimrod |
16:27:47 | * | XAMPP joined #nimrod |
16:33:26 | * | Boscop quit (*.net *.split) |
16:33:29 | * | Boscop joined #nimrod |
16:38:18 | dom96 | hello |
16:54:18 | Araq | hi dom96 |
16:57:20 | dom96 | what's up? |
16:57:33 | Araq | too tired to work on anything :-/ |
16:58:19 | dom96 | :( |
17:00:10 | dom96 | I felt really inspired to work on something... but now that I've sat down... |
17:00:37 | Araq | well |
17:00:48 | Araq | we should motivate each other |
17:01:42 | dom96 | how? |
17:01:51 | Araq | do some work! |
17:02:15 | dom96 | lol |
17:04:14 | dom96 | I have experienced JavaScripts stupid scoping rules (I think) at work today |
17:04:23 | Araq | lol |
17:04:27 | dom96 | Not sure if that's what it's called. |
17:05:04 | Araq | yeah I think you used the proper term |
17:05:04 | dom96 | It was capturing the iteration variable very weirdly in a closure. |
17:05:29 | dom96 | I read something about `let` but it's apparently non-standard so I couldn't use it... |
17:15:25 | dom96 | Wow: http://www.youtube.com/watch?v=pMas0tWc0sg |
17:15:36 | dom96 | This Kim Dotcom thing is interesting |
17:20:17 | Araq | will watch it later |
17:31:02 | shevy | yayaya |
17:31:06 | shevy | there goes your motivation eh |
17:39:31 | dom96 | :( |
17:44:59 | dom96 | Araq: Ok, i'm going to generalise asyncio |
17:45:03 | dom96 | And add support for closures. |
17:45:10 | Araq | yay |
17:45:21 | dom96 | Any tips on how I should do it? |
17:45:42 | dom96 | What limitations of closures should I be aware of? |
17:46:07 | Araq | I think there are none ;-) |
17:47:10 | dom96 | Good :P |
17:52:53 | dom96 | I was looking at Delphi/Pascal examples today and the resemblance to Nimrod is quite apparent |
17:53:31 | Araq | ;-) interesting |
17:54:03 | dom96 | http://kd5col.info/swag/ |
17:55:08 | * | Roin quit (*.net *.split) |
17:58:01 | * | Roin joined #nimrod |
17:59:18 | dom96 | Araq: Any convention for er, well name for 'interfaces'? |
17:59:34 | Araq | capital I |
17:59:45 | dom96 | Alright :) |
18:01:22 | dom96 | hrm, a closure is probably an expensive object. |
18:01:52 | dom96 | hrm, I have a better idea :) |
18:02:04 | Araq | not more expensive than any other 'ref object' |
18:02:28 | Araq | ok, a bit more expensive |
18:02:38 | * | dom96 wonders what the best way of doing this is |
18:02:45 | Araq | but the compiler doesn't optimize them yet |
18:03:57 | dom96 | argh. |
18:04:28 | Araq | what? |
18:04:44 | Araq | btw the best way to do it |
18:05:10 | Araq | is to remove the PObject parameter in the callbacks and be done with it ;-) |
18:05:26 | Araq | this parameter is only a workaround for the lack of closures |
18:05:37 | dom96 | I need an interface which will allow multiple select implementations |
18:06:16 | dom96 | I'm not sure what the best way to identify them is. Because we want all socket objects to use the same select function. |
18:06:29 | dom96 | But then files could probably use it too. |
18:06:39 | dom96 | I was thinking identifying by type... |
18:07:11 | * | dom96 is really confused |
18:07:16 | Araq | yeah |
18:07:33 | Araq | work on aporia instead |
18:07:44 | Araq | jumping to an error message does not work at all :P |
18:08:03 | dom96 | ugh. I don't feel like working on aporia. |
18:08:26 | Araq | well but this feature is essential |
18:08:34 | Araq | maybe I'm doing it wrong? |
18:08:40 | Araq | how is it supposed to work? |
18:08:51 | dom96 | Are you talking about the error list? |
18:11:05 | Araq | yes |
18:11:24 | Araq | it says: "Could not find correct tab." |
18:11:33 | Araq | which is ridiculous |
18:11:42 | Araq | as it's the current tab |
18:12:05 | dom96 | Check the Output of the compiler |
18:12:14 | dom96 | If the error occurs in system.nim it won't find it |
18:12:25 | dom96 | Because you do not give it the full path :P |
18:12:38 | Araq | I see |
18:12:44 | Araq | but it's a warning message |
18:12:53 | Araq | and aporia parses it correctly |
18:13:27 | Araq | well almost |
18:13:36 | Araq | it says it's a warning but it is a hint instead |
18:13:40 | dom96 | I don't see how that makes a difference. |
18:13:55 | dom96 | Yes, because the only type are currently warning and error |
18:13:59 | dom96 | *types |
18:17:26 | Araq | no matter what I do |
18:17:39 | Araq | it says "could not find correct tab" |
18:18:09 | dom96 | ... well a little more info please? |
18:18:22 | Araq | create a file temp4.nim |
18:18:30 | Araq | type 'echo "arg"' |
18:18:36 | Araq | compile it |
18:18:49 | Araq | er |
18:18:58 | Araq | better write something that produces a hint |
18:19:04 | Araq | like |
18:19:09 | Araq | proc unused() = nil |
18:22:26 | Amrykid | YOU HAVE INTERFACES NOW!?!?!?! |
18:22:35 | Araq | nah |
18:22:45 | Araq | you can use a tuple of closures instead though |
18:23:14 | Amrykid | :( |
18:24:22 | Amrykid | off-topic: http://octodex.github.com/adventure-cat/ |
18:26:02 | dom96 | er. |
18:26:05 | dom96 | Why does: echo ("temp4.nim" in "/tmp/temp4.nim") |
18:26:09 | dom96 | print false? |
18:28:09 | Araq | because you need to import strutils for it to work :P |
18:28:19 | Araq | otherwise it uses the openarray version |
18:28:23 | Araq | known language issue |
18:28:30 | Araq | will be fixed soon |
18:29:09 | * | dom96 sighs |
18:51:37 | Araq | yay |
18:54:47 | shevy | hehe |
20:28:46 | * | XAMPP quit (Ping timeout: 246 seconds) |