00:00:17 | * | desophos quit (Ping timeout: 256 seconds) |
00:00:50 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:01:07 | * | Matthias247 joined #nim |
00:02:25 | * | desophos joined #nim |
00:03:37 | * | yglukhov quit (Ping timeout: 250 seconds) |
00:04:19 | * | someplace joined #nim |
00:05:39 | desophos | when will the nim brew package be updated? |
00:06:14 | Araq | who knows |
00:06:49 | desophos | okay, so no one here maintains it? |
00:07:29 | Araq | dunno |
00:07:49 | desophos | ah okay |
00:08:19 | Araq | it's not like it's hard to install from source ... jezz |
00:08:47 | desophos | it's not :p i installed from source on my home computer (win10), just figured brew would be easier on my mac |
00:10:57 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:11:27 | * | elrood quit (Quit: Leaving) |
00:31:38 | desophos | apparently it is that hard... having trouble with build.sh: https://bpaste.net/show/3815d2c07fa8 |
00:36:49 | * | desophos quit (Remote host closed the connection) |
00:36:52 | nchambers | desophos: is it saying ':' is the command not found? |
00:46:44 | * | gokr quit (Quit: Leaving.) |
00:57:08 | * | Jesin quit (Quit: Leaving) |
01:01:27 | * | toad joined #nim |
01:01:34 | toad | Heyo |
01:03:50 | * | desophos joined #nim |
01:04:08 | * | Jesin joined #nim |
01:23:32 | * | brson_ quit (Ping timeout: 272 seconds) |
01:40:02 | * | pregressive joined #nim |
01:46:43 | * | juanfra quit (Ping timeout: 246 seconds) |
01:47:17 | * | juanfra joined #nim |
01:50:42 | * | M-max quit (Remote host closed the connection) |
02:00:11 | * | pleiosaur quit (Remote host closed the connection) |
02:00:33 | * | yglukhov joined #nim |
02:05:05 | * | yglukhov quit (Ping timeout: 268 seconds) |
02:11:10 | * | M-max joined #nim |
02:38:19 | * | Jesin quit (Quit: Leaving) |
02:40:13 | * | pregressive quit (Remote host closed the connection) |
02:48:43 | * | desophos_ joined #nim |
02:53:21 | * | desophos_ quit (Ping timeout: 255 seconds) |
03:16:43 | * | darkf joined #nim |
03:32:17 | * | pregressive joined #nim |
03:35:23 | * | juanfra quit (Quit: juanfra) |
03:50:45 | desophos | i'm struggling with polymorphism |
03:50:58 | desophos | *using polymorphism in nim |
03:52:18 | * | ldlework quit (Ping timeout: 260 seconds) |
03:53:12 | desophos | https://bpaste.net/show/22e57f058704 |
03:53:19 | desophos | why can't i do this? |
03:54:29 | desophos | oops i left some irrelevant params in there |
03:54:38 | desophos | ignore the sprite and physics |
03:55:56 | * | toad quit () |
03:56:42 | * | pregressive quit (Remote host closed the connection) |
03:59:13 | desophos | hmm. i guess this is when i need dynamic dispatch, but i want these to be iterators |
03:59:37 | * | solidsnack joined #nim |
04:01:54 | * | yglukhov joined #nim |
04:06:10 | * | yglukhov quit (Ping timeout: 250 seconds) |
04:07:48 | desophos | do i have to do something hacky to get dynamically dispatched iterators? |
04:10:46 | * | ldlework joined #nim |
04:10:46 | desophos | like define the iterator inside the method |
04:23:51 | * | bigfondue_ is now known as bigfondue |
04:24:18 | * | Jesin joined #nim |
04:42:29 | * | nande quit (Read error: Connection reset by peer) |
05:06:19 | desophos | also i now understand the danger of naming your type initializers the same as the type name in lowercase... |
05:06:47 | desophos | you end up with procs with the same name as their modules >_> |
05:14:41 | * | ulyssesdwolfe quit (Quit: ChatZilla 0.9.92 [Firefox 41.0.2/20151014143721]) |
05:28:52 | desophos | still haven't figured out how to initialize at declaration time an array indexed with an enum |
05:45:36 | * | linkedinyou quit (Read error: Connection reset by peer) |
06:03:26 | * | yglukhov joined #nim |
06:07:59 | * | yglukhov quit (Ping timeout: 252 seconds) |
06:28:28 | * | desophos quit (Read error: Connection reset by peer) |
06:32:29 | * | strcmp1 quit (Remote host closed the connection) |
06:37:10 | * | bjz joined #nim |
06:41:01 | * | bjz_ joined #nim |
06:41:25 | * | bjz quit (Ping timeout: 240 seconds) |
06:48:15 | * | bjz joined #nim |
06:50:20 | * | bjz_ quit (Ping timeout: 272 seconds) |
06:58:24 | * | Pisuke joined #nim |
07:01:09 | * | MyMind quit (Ping timeout: 252 seconds) |
07:13:01 | * | solidsnack quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
07:13:09 | * | bjz_ joined #nim |
07:15:18 | * | bjz quit (Ping timeout: 260 seconds) |
07:21:19 | Araq | desophos: const foo = [enumVal1: "value", enumVal2: "value 2"] |
07:32:16 | * | Arrrr joined #nim |
07:32:56 | * | strcmp1 joined #nim |
07:32:57 | Arrrr | "2f (float32)" Thanks jesus, i was tired of "2f32" |
07:34:21 | * | taotetek quit (Quit: WeeChat 1.0.1) |
07:37:19 | * | strcmp1 quit (Ping timeout: 250 seconds) |
07:38:34 | * | strcmp1 joined #nim |
07:46:01 | * | gokr joined #nim |
07:46:24 | * | solidsnack joined #nim |
08:00:22 | Araq | :-) |
08:07:36 | * | Trustable joined #nim |
08:15:35 | * | desophos joined #nim |
08:20:30 | * | desophos quit (Ping timeout: 260 seconds) |
08:33:44 | Arrrr | I'd like to see the same with integers, using i/L for int32/int64 (Long) |
08:36:03 | * | jez0990 quit (Remote host closed the connection) |
08:37:36 | * | yglukhov joined #nim |
08:49:55 | * | Arrrrr joined #nim |
08:50:35 | * | darkf quit (Ping timeout: 264 seconds) |
08:50:51 | * | Arrrr quit (Ping timeout: 268 seconds) |
09:01:31 | * | darkf joined #nim |
09:04:12 | * | coffeepot joined #nim |
09:07:07 | * | darkf_ joined #nim |
09:08:52 | * | darkf quit (Ping timeout: 246 seconds) |
09:09:47 | * | darkf_ is now known as dkar |
09:09:49 | * | dkar is now known as darkf |
09:13:41 | * | edin quit (Quit: Leaving) |
09:42:58 | * | Demon_Fox quit (Quit: Leaving) |
09:45:20 | * | solidsnack quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
09:46:01 | * | darkf quit (Ping timeout: 250 seconds) |
09:48:19 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
09:58:34 | * | makoLine quit (Ping timeout: 246 seconds) |
09:58:50 | * | darkf joined #nim |
10:11:34 | * | def- quit (Ping timeout: 260 seconds) |
10:39:19 | * | vqrs quit (Ping timeout: 252 seconds) |
10:41:15 | * | vqrs joined #nim |
10:44:13 | * | boopsiesisaway is now known as boopsies |
10:50:02 | * | def- joined #nim |
11:07:42 | * | gokr quit (Quit: Leaving.) |
11:17:18 | * | jackv quit (Quit: ZNC - 1.6.0 - http://znc.in) |
11:23:13 | * | jackv joined #nim |
11:28:30 | * | gokr_ joined #nim |
11:45:39 | * | solidsnack joined #nim |
11:50:19 | * | solidsnack quit (Ping timeout: 256 seconds) |
11:52:30 | * | gokr_ quit (Ping timeout: 265 seconds) |
12:11:21 | * | elrood joined #nim |
12:25:59 | * | linkedinyou joined #nim |
12:26:13 | Araq | Arrrrr: why? does 'i64 come up that often for you? |
12:37:46 | Arrrrr | I need 32b ints for networking. |
13:00:38 | * | BitPuffin joined #nim |
13:01:07 | * | gokr joined #nim |
13:01:09 | * | gokr quit (Client Quit) |
13:01:23 | * | gokr joined #nim |
13:16:22 | * | yglukhov_ joined #nim |
13:17:35 | * | yglukhov quit (Ping timeout: 264 seconds) |
13:20:56 | elrood | updated nimdocs.epub @ https://www.dropbox.com/sh/7jdv2e8zdr03dfz/AADlSvHZ5IRehieM--J1c4Dxa?dl=0 |
13:25:17 | * | EastByte_ quit (Ping timeout: 250 seconds) |
13:28:05 | Araq | cool :-) |
13:41:52 | * | yglukhov_ quit (Remote host closed the connection) |
13:42:26 | * | yglukhov joined #nim |
13:45:15 | * | kata_ joined #nim |
13:47:38 | federico3 | thanks elrood |
13:50:32 | elrood | np, anytime, i hope it's useful |
13:50:41 | elrood | congrats on 0.12, btw |
13:51:38 | * | gokr_ joined #nim |
13:59:26 | Araq | thanks, I wanted to remove the 'echo $foo' gotcha right before the release but dom96 said it's a bad idea ;-) |
13:59:49 | * | EastByte joined #nim |
13:59:54 | Araq | so for 0.13 we will have another set of minor code breaking changes :-/ |
14:22:38 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
14:27:42 | * | gokr_ quit (Read error: Connection reset by peer) |
14:29:49 | * | pregressive joined #nim |
14:44:35 | coffeepot | what is the echo $foo gotcha? |
14:50:53 | * | gokr quit (Quit: Leaving.) |
14:53:04 | * | yglukhov quit (Remote host closed the connection) |
14:53:15 | * | EastByte quit (Ping timeout: 250 seconds) |
14:54:28 | * | yglukhov joined #nim |
14:55:29 | * | yglukhov quit (Remote host closed the connection) |
15:05:00 | * | yglukhov joined #nim |
15:26:04 | * | yglukhov quit (Remote host closed the connection) |
15:27:03 | * | yglukhov joined #nim |
15:27:58 | * | yglukhov quit (Remote host closed the connection) |
15:30:11 | * | strcmp1 quit (Ping timeout: 264 seconds) |
15:33:10 | * | yglukhov joined #nim |
15:34:23 | * | yglukhov quit (Remote host closed the connection) |
15:34:56 | * | yglukhov joined #nim |
15:36:45 | federico3 | elrood: fbreader doesn't seem to be able to reflow the epub |
15:39:11 | * | yglukhov quit (Ping timeout: 250 seconds) |
15:47:31 | * | yglukhov joined #nim |
15:56:12 | * | yglukhov quit (Remote host closed the connection) |
16:10:12 | * | yglukhov joined #nim |
16:15:32 | * | desophos joined #nim |
16:16:55 | desophos | is there a way i can create dynamically dispatched iterator methods? |
16:17:38 | * | yglukhov quit (Remote host closed the connection) |
16:18:38 | * | yglukhov joined #nim |
16:27:33 | Varriount | desophos: Well, you can wrap a closure iterator in a method. |
16:29:59 | desophos | Varriount: that's what i tried first, but i got an invalid capture error, i guess because i'm trying to capture a var? |
16:33:14 | desophos | *illegal capture |
16:36:52 | desophos | what makes something an illegal capture in a closure? |
16:40:00 | Arrrrr | It could be a bug https://github.com/nim-lang/Nim/issues/672 |
16:40:03 | * | brson joined #nim |
16:40:11 | * | brson quit (Client Quit) |
16:40:20 | * | brson joined #nim |
16:41:58 | desophos | wow that is a complicated bug |
16:42:05 | desophos | but that's not it, my case is the first example |
16:43:08 | desophos | but why is capturing the result variable illegal? |
16:45:20 | desophos | oh nvm, i forgot result is special |
16:47:48 | desophos | doesn't answer my problem though |
16:48:35 | desophos | this is my code: https://bpaste.net/show/42896fa58a4a |
16:49:08 | * | n0xff joined #nim |
16:49:11 | desophos | EventHandler is a ref object |
16:52:56 | * | irrequietus joined #nim |
16:59:44 | Arrrrr | and what is the problem here |
17:00:10 | desophos | the problem is "Error: illegal capture 'eventQueue'" |
17:00:26 | Arrrrr | change var EventHandler to EventHandler |
17:00:26 | desophos | apparently it is because i can't capture a var |
17:01:02 | desophos | well yeah except i want to mutate it |
17:01:15 | Arrrrr | if is ref, you still can mutate it |
17:02:47 | Arrrrr | http://ideone.com/lB52Xy |
17:03:10 | desophos | i see |
17:03:19 | desophos | that's... a little confusing |
17:03:39 | Arrrrr | with refs, this is what you cannot do http://ideone.com/wYPCYj |
17:04:21 | Arrrrr | it doesnt make the referenced object immutable, only the variable with the pointer |
17:04:24 | desophos | right |
17:04:27 | desophos | i remember now |
17:04:29 | desophos | thank |
17:04:30 | desophos | s |
17:04:32 | desophos | ! |
17:06:17 | Arrrrr | if you really need it to be var (i think var refs in methods are problematic) you could declare it with let eQueue = eventQueue and do operations using eQueue instead |
17:06:24 | * | gokr joined #nim |
17:07:08 | desophos | and then return eQueue, i guess |
17:07:17 | desophos | because it's a global queue :/ |
17:07:33 | brson | congrats on another release, #nim |
17:07:40 | desophos | i'd like to avoid side effects but this is the easiest way :p |
17:07:53 | desophos | er... not sure if this counts as a side effect |
17:08:14 | Arrrrr | anyway, as i told you, you dont need it to be var because of it being a ref |
17:08:23 | desophos | i'd like to avoid mutation where it isn't explicitly declared |
17:08:28 | desophos | yeah Arrrrr i get it |
17:08:39 | desophos | it compiles now :) |
17:09:01 | Arrrrr | in glfw you can do this https://github.com/ephja/nim-glfw/blob/master/examples/events.nim#L48-L54 |
17:10:14 | desophos | what's the difference? |
17:10:56 | desophos | still checking key codes |
17:11:23 | * | gokr_ joined #nim |
17:12:36 | Arrrrr | yes, just to show you how it is done there. |
17:13:12 | desophos | ah okay |
17:13:47 | * | strcmp1 joined #nim |
17:20:36 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
17:26:16 | desophos | so i have a bunch of methods defined on subtypes but when i call subObj.myMethod i still get the definition of myMethod defined on baseObj |
17:26:24 | desophos | even though they're declared as methods |
17:26:30 | desophos | i'll paste |
17:29:32 | desophos | https://bpaste.net/show/2bbcde5c6738 |
17:30:20 | desophos | i would expect this to happen with procs, but methods are dynamically dispatched so shouldn't calling anInputController.chooseDirection call the chooseDirection method defined on InputController? |
17:31:10 | Arrrrr | Why do you put a comment before base pragma? |
17:31:35 | desophos | oh sorry, that's because i'm using 0.11.2 because i had trouble installing 0.12.0 and brew hasn't updated yet |
17:31:58 | Arrrrr | hmm |
17:32:19 | desophos | i might expect the base pragma to fix this though |
17:32:35 | Arrrrr | It used to work when there were no base pragma |
17:33:40 | Arrrrr | how do you initialize 'anInputController' ? |
17:34:35 | desophos | it's defined as a field on another object, but it's initialized as InputController() |
17:35:47 | desophos | Entity(controller: InputController())... for direction in entity.controller.chooseDirection(eventQueue)(): ... |
17:36:02 | desophos | well not quite, but you get it |
17:36:27 | desophos | and i know it's an InputController because of that repr on quit |
17:38:47 | Arrrrr | mmm honestly i dont know. It could be a bug in that version. Are you importing the method for InputController ? |
17:39:17 | * | darkf quit (Quit: Leaving) |
17:39:42 | Arrrrr | or something to with the object before you call chooseDir, without the source code i cant tell |
17:43:22 | desophos | i'm importing all the chooseDirection methods |
17:44:07 | desophos | well i'm importing the module |
17:44:12 | desophos | and they're all exported as you can see |
17:44:12 | * | gokr_ quit (Read error: Connection reset by peer) |
17:45:10 | * | yglukhov_ joined #nim |
17:46:37 | desophos | hmm |
17:46:55 | desophos | the `controller` field on the Entity type is defined as `controller: Controller` |
17:47:04 | desophos | is that the problem? |
17:47:21 | desophos | because it assumes it's the base type? |
17:47:50 | * | yglukhov quit (Ping timeout: 240 seconds) |
17:47:58 | Arrrrr | it should not http://ideone.com/kiFE64 |
17:49:38 | * | yglukhov_ quit (Ping timeout: 272 seconds) |
17:49:43 | Arrrrr | it may be stupid, but try chooseDirection(anInputController) |
17:51:08 | desophos | http://ideone.com/BgQbLI |
17:51:21 | desophos | that's what i'm doing and it works in ideone but not in my code so i guess it's a problem with my code |
17:51:41 | desophos | let me try something |
17:53:57 | * | juanfra joined #nim |
17:55:19 | Arrrrr | Anyway, if i were you i would pull the repository, 0.12 has a lot of fixes |
17:56:03 | desophos | i tried but i couldn't run `sh build.sh`, i got https://bpaste.net/show/3815d2c07fa8 |
18:01:14 | Arrrrr | mmm, maybe you could edit the .sh and rewrite it as 'set --e' |
18:01:30 | desophos | i tried that, didn't work :/ i forget what the error changed to, sorry |
18:01:40 | desophos | i'm on mac os x 11.10 btw |
18:01:47 | desophos | lol 10.10 |
18:02:35 | Arrrrr | you can add a new issue https://github.com/nim-lang/Nim/issues |
18:03:31 | desophos | i got "build.sh: line 6: set: --: invalid option" |
18:03:37 | desophos | okay |
18:04:08 | Arrrrr | with 'set --e' ? |
18:04:22 | * | Demon_Fox joined #nim |
18:04:46 | desophos | yeah |
18:06:56 | Arrrrr | which shell do you use? |
18:09:02 | desophos | bash |
18:11:10 | * | gokr_ joined #nim |
18:11:41 | elrood | federico3, well, sorry about the reflow problems with fbreader, but i'm afraid there's much to be done about that. fbreader is notoriously suboptimal at rendering complex layout, as far as i've heard, and nim's autogenerated docs aren't exactly lean and simple |
18:14:40 | elrood | all i do is the bare minimum to turn those into an halfways acceptable epub with some minor edits, anything more complex would better be done when generating the docs in the first place. i'd recommend calibre's epub viewer |
18:15:18 | * | johnsoft quit (Read error: Connection reset by peer) |
18:15:37 | desophos | Arrrrr: https://github.com/nim-lang/Nim/issues/3487 |
18:16:24 | * | dhertz joined #nim |
18:16:53 | Arrrrr | You should indicate your OS version |
18:17:16 | desophos | i did in the title |
18:17:23 | Arrrrr | oh, the title, right |
18:19:06 | Arrrrr | What kind of game are you programming? |
18:19:08 | * | strcmp1 quit (Read error: Connection reset by peer) |
18:19:30 | * | strcmp1 joined #nim |
18:19:48 | desophos | not really anything yet haha |
18:19:54 | desophos | just developing architectural stuff |
18:20:09 | desophos | engine-ish |
18:20:26 | desophos | but i'm thinking of making some sort of real-time FFT-like |
18:20:41 | desophos | final fantasy tactics |
18:21:22 | elrood | too bad, you had me interested at real-time fast fourier transform ;) |
18:21:25 | desophos | haha |
18:21:46 | desophos | math vs. game acronym battle, FIGHT! |
18:22:49 | Arrrrr | That's cool. You will see how, onc you learn were the bugs are in nim, the language allows you to do good stuff without caring about garbage collector |
18:23:15 | desophos | yeah i do really like the language so far |
18:23:35 | * | yglukhov joined #nim |
18:23:39 | desophos | it's almost as easy as python but more powerful, i've only scratched the surface |
18:24:08 | desophos | (i write mostly python) |
18:26:40 | Arrrrr | I think there is zero game engines written in nim, or at least open source. |
18:27:32 | * | iamd3vil joined #nim |
18:27:36 | desophos | afaict you're right, there's nimgame but it hasn't been updated in 3 years: https://github.com/Vladar4/nimgame |
18:27:38 | ldlework | hi desophos |
18:27:54 | desophos | hi ldlework |
18:28:04 | * | yglukhov quit (Ping timeout: 250 seconds) |
18:28:16 | ldlework | desophos: I do game programming in Nim |
18:28:21 | desophos | awesome ldlework |
18:28:24 | ldlework | we talked in #gamedev the other day |
18:28:53 | * | iamd3vil quit (Client Quit) |
18:28:55 | * | strcmp2 joined #nim |
18:29:05 | * | iamd3vil joined #nim |
18:29:27 | desophos | cool, what did we talk about? my memory is terrible, sorry |
18:29:36 | desophos | was that when i asked about architecture stuff? |
18:30:10 | * | strcmp1 quit (Ping timeout: 272 seconds) |
18:31:10 | desophos | ldlework: so have you developed your own engine? |
18:31:26 | * | iamd3vil left #nim (#nim) |
18:31:34 | ldlework | desophos: no, you don't need to write an 'engine' in order to write a game |
18:32:41 | desophos | let me rephrase: you didn't use an existing engine? |
18:33:39 | ldlework | desophos: nope |
18:35:48 | desophos | did you use any existing code? |
18:35:52 | desophos | e.g. graphics libs |
18:37:45 | * | strcmp2 quit (Ping timeout: 256 seconds) |
18:46:27 | desophos | btw the problem is that build.sh has Windows line endings |
18:48:10 | * | EastByte joined #nim |
18:48:52 | Arrrrr | I'm doing some gamedev stuff too using glfw |
18:49:03 | Arrrrr | fowl has some useful stuff here https://github.com/fowlmouth/nimlibs/tree/master/fowltek |
18:49:28 | Arrrrr | This can be handy too https://github.com/Nycto/AStarNim/ |
18:49:35 | desophos | ah yeah i've seen the fowl stuff |
18:50:25 | * | dhertz quit (Quit: Page closed) |
18:50:43 | * | strcmp1 joined #nim |
18:56:48 | * | CcxCZ quit (Ping timeout: 255 seconds) |
18:57:50 | * | CcxCZ joined #nim |
19:04:07 | desophos | hmm. i get invalid pragma: base with 0.12.0... |
19:04:52 | desophos | method chooseDirection*(...): iterator(): Direction {.base.} = ... |
19:05:18 | * | johnsoft joined #nim |
19:06:55 | * | yglukhov joined #nim |
19:09:09 | * | Matthias247 joined #nim |
19:09:24 | desophos | am i putting it in the wrong place? |
19:10:16 | Arrrrr | which is the first argumment of chooseDirection? |
19:10:58 | desophos | controller: Controller |
19:12:49 | Arrrrr | mm, maybe is because of the iterator(): Dir arg |
19:12:52 | Arrrrr | I'll test it |
19:13:41 | desophos | fwiw, i still get the same problem as before with 0.12.0 |
19:13:48 | desophos | wrt the base method thing |
19:14:36 | Arrrrr | yep, i have the same error, you should report it. |
19:14:59 | desophos | the error with using {.base.} on a method returning an iterator? |
19:15:05 | Arrrrr | yes |
19:15:29 | desophos | okay |
19:15:52 | Arrrrr | http://pastebin.com/qP0u2zpi |
19:16:53 | desophos | thanks |
19:17:53 | Arrrrr | Why do you need to return that iterator? cant you do the stuff inside chooseDir ? |
19:18:10 | * | ephja joined #nim |
19:18:18 | desophos | well, i want it to be an iterator but i also want dynamic dispatch |
19:18:53 | Arrrrr | You could iterate over every event, and pass it to a closure |
19:19:09 | Arrrrr | like for e in events: onEvent(controller, e) |
19:19:31 | desophos | https://github.com/nim-lang/Nim/issues/3489 i don't really know what else to add |
19:20:10 | desophos | Arrrrr: the problem is that i'm not consuming all events there |
19:20:15 | desophos | wait, let me figure it out |
19:20:22 | Arrrrr | You can write the code directly on github https://guides.github.com/features/mastering-markdown/#syntax |
19:20:34 | desophos | ah right, sorry |
19:20:52 | Arrrrr | use sequtils plus keepIf plus proc onEvent(c: Controller, e: Event): bool |
19:22:51 | Arrrrr | closure iterators is one of the first things i learnt to avoid |
19:23:05 | desophos | ah i think i see what you're saying. i was trying to encapsulate the event consuming logic but i guess avoiding a closure iterator would be better :D |
19:23:17 | * | askatasuna joined #nim |
19:24:41 | desophos | i guess keepIf would be great here |
19:25:00 | desophos | hmm |
19:25:06 | desophos | well brb |
19:27:16 | * | BitPuffin quit (Ping timeout: 268 seconds) |
19:28:02 | * | bjz joined #nim |
19:28:05 | * | silven quit (Ping timeout: 240 seconds) |
19:28:52 | * | silven joined #nim |
19:33:05 | * | bjz quit (Ping timeout: 244 seconds) |
19:34:39 | * | brson quit (Ping timeout: 240 seconds) |
19:42:06 | desophos | does Nim have a takeWhile? |
19:43:12 | Arrrrr | i think it is sequtils.filter |
19:44:12 | * | Senketsu quit (Quit: Leaving) |
19:45:28 | * | yglukhov quit (Remote host closed the connection) |
19:46:28 | desophos | i want to construct a seq from another seq up until a predicate is not fulfilled |
19:46:55 | desophos | filter is like takeAll |
19:46:58 | desophos | i want takeWhile |
19:47:11 | desophos | i can just write it, i was just wondering if it exists |
19:47:51 | Arrrrr | No idea, if it doesnt exist inside sequitls, probably does not exist. |
19:48:11 | Arrrrr | You can pr it too |
19:48:42 | desophos | idk if i'm qualified for that haha |
19:48:48 | desophos | brb |
19:54:04 | * | bjz joined #nim |
19:54:11 | desophos | super simple to write though :p |
19:54:35 | desophos | could even have in-place and non-mutating variants |
19:55:25 | * | vendethiel joined #nim |
19:57:11 | * | vbtt joined #nim |
19:58:12 | * | vbtt quit (Client Quit) |
19:58:22 | * | vbtt joined #nim |
19:58:33 | vbtt | hello and congrats |
20:00:25 | * | askatasuna quit (Ping timeout: 240 seconds) |
20:00:38 | * | bjz_ joined #nim |
20:00:55 | * | bjz quit (Ping timeout: 246 seconds) |
20:01:37 | vbtt | Did someone post 0.12 on HN yet? |
20:02:55 | vbtt | OK it's there, didn't get upboats |
20:03:55 | * | linkedinyou quit (Read error: Connection reset by peer) |
20:04:37 | * | brson joined #nim |
20:05:08 | desophos | boo |
20:05:19 | federico3 | vbtt: link? |
20:05:47 | vbtt | https://news.ycombinator.com/item?id=10466185 |
20:06:35 | federico3 | and https://news.ycombinator.com/item?id=10463187 |
20:07:03 | federico3 | the comment says it all |
20:08:14 | * | yglukhov joined #nim |
20:08:15 | Arrrrr | hah. I dont give a damn, that way it can move faster |
20:09:15 | Arrrrr | maybe desophos does a game so good it makes nim famous |
20:09:21 | desophos | YEAH |
20:09:37 | desophos | !!! |
20:09:42 | desophos | or more likely ldlework |
20:12:17 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
20:13:29 | Arrrrr | But im always worried about the bus factor. |
20:13:42 | * | bjz joined #nim |
20:15:05 | desophos | what is that? |
20:16:56 | Arrrrr | http://www.wikiwand.com/en/Bus_factor |
20:17:41 | federico3 | Arrrrr: faster than what? |
20:17:41 | desophos | "Connected to: Guido van Rossum" LOL |
20:18:04 | Arrrrr | faster than, for example, java |
20:18:20 | desophos | yeah i get it, that's scary |
20:18:35 | federico3 | ah well, then it's faster than COBOL as well |
20:19:25 | * | askatasuna joined #nim |
20:19:33 | * | vbtt quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
20:21:48 | * | Sentreen joined #nim |
20:25:43 | * | Sentreen quit (Client Quit) |
20:30:38 | * | Kingsquee joined #nim |
20:32:49 | * | makoLine joined #nim |
20:46:52 | * | Arrrrr quit (Quit: WeeChat 1.2) |
20:47:47 | * | tinAndi joined #nim |
20:57:51 | * | desophos_ joined #nim |
21:00:46 | * | desophos quit (Ping timeout: 246 seconds) |
21:01:19 | * | desophos_ quit (Remote host closed the connection) |
21:01:33 | * | desophos joined #nim |
21:05:05 | * | vqrs quit (Ping timeout: 256 seconds) |
21:05:16 | * | mat4 joined #nim |
21:05:20 | mat4 | hello |
21:09:20 | * | desophos quit (Remote host closed the connection) |
21:11:47 | * | vqrs joined #nim |
21:25:51 | * | mat4 quit (Quit: leaving) |
21:26:22 | * | desophos joined #nim |
21:27:45 | * | mat4 joined #nim |
21:30:30 | * | desophos quit (Ping timeout: 240 seconds) |
21:39:26 | * | askatasuna quit (Ping timeout: 260 seconds) |
21:44:59 | * | gokr_ quit (Read error: Connection reset by peer) |
21:54:44 | * | Ven joined #nim |
21:56:31 | * | CryptoToad joined #nim |
21:56:47 | * | Ven quit (Read error: Connection reset by peer) |
22:01:00 | * | Ven joined #nim |
22:07:04 | ephja | mat4: hola |
22:09:01 | * | desophos joined #nim |
22:12:32 | mat4 | hi ephja |
22:16:50 | * | Trustable quit (Remote host closed the connection) |
22:19:35 | * | Kingsquee quit (Ping timeout: 250 seconds) |
22:23:02 | mat4 | I want to change the compiler directives for building Nim, what files I need to edit ? |
22:25:20 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:25:21 | * | Xe is now known as \section{Xe} |
22:27:06 | * | mat4 quit (Quit: leaving) |
22:27:17 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:27:52 | * | \section{Xe} is now known as Xe |
22:31:55 | * | pregressive quit () |
22:34:37 | * | xet7 joined #nim |
22:35:08 | * | xet7 is now known as xet7_ |
22:37:22 | * | tinAndi quit (Quit: ChatZilla 0.9.92 [Firefox 41.0.2/20151014143721]) |
22:37:39 | * | linkedinyou joined #nim |
22:37:48 | * | desophos quit (Remote host closed the connection) |
22:38:18 | * | brson_ joined #nim |
22:38:58 | * | brson quit (Ping timeout: 240 seconds) |
22:45:13 | * | desophos joined #nim |
22:45:14 | * | Gunit__ joined #nim |
22:48:48 | * | Gunit__ left #nim ("Weechat 0.4.3") |
22:50:42 | * | desophos quit (Remote host closed the connection) |
22:53:07 | * | brson_ quit (Ping timeout: 246 seconds) |
22:53:15 | * | brson joined #nim |
22:55:29 | * | desophos joined #nim |
22:59:32 | * | desophos quit (Remote host closed the connection) |
23:00:18 | * | desophos joined #nim |
23:02:35 | * | brson_ joined #nim |
23:06:12 | * | brson quit (Read error: Connection reset by peer) |
23:17:42 | * | nande joined #nim |
23:27:45 | * | pleiosaur joined #nim |
23:28:32 | gmpreussner|work | fyi https://channel9.msdn.com/Series/ConnectOn-Demand/211 |
23:28:41 | * | brson_ quit (Ping timeout: 244 seconds) |
23:35:05 | * | vendethiel quit (Ping timeout: 240 seconds) |
23:43:05 | * | Kingsquee joined #nim |
23:44:50 | * | silven quit (Ping timeout: 250 seconds) |
23:45:10 | * | silven joined #nim |
23:53:30 | * | gokr quit (Ping timeout: 260 seconds) |
23:56:46 | * | brson joined #nim |
23:58:11 | * | elrood quit (Quit: Leaving) |