2013-06-20T00:01:18 *** djr_ has quit IRC (Quit: Leaving) 2013-06-20T00:39:21 *** Accoun has quit IRC (Ping timeout: 240 seconds) 2013-06-20T00:59:34 *** amstan has quit IRC (Quit: Konversation terminated!) 2013-06-20T03:33:24 *** thestinger has quit IRC (Quit: WeeChat 0.4.1) 2013-06-20T04:00:12 *** mleise has joined #aichallenge 2013-06-20T04:14:12 *** antimatroid has joined #aichallenge 2013-06-20T04:16:51 *** antimatroid1 has quit IRC (Ping timeout: 256 seconds) 2013-06-20T05:05:33 *** epicmonkey has joined #aichallenge 2013-06-20T06:18:36 *** bqf has joined #aichallenge 2013-06-20T06:21:21 *** bqf_ has quit IRC (Ping timeout: 248 seconds) 2013-06-20T07:12:16 *** antimatroidl has joined #aichallenge 2013-06-20T08:21:05 *** antimatroidl has quit IRC (Quit: Leaving.) 2013-06-20T08:34:53 *** antimatroidl has joined #aichallenge 2013-06-20T08:37:48 *** Accoun has joined #aichallenge 2013-06-20T08:44:28 *** dici has joined #aichallenge 2013-06-20T10:00:33 *** mleise has quit IRC (Quit: Leaving.) 2013-06-20T11:41:31 *** mleise has joined #aichallenge 2013-06-20T12:56:54 *** amstan__ has joined #aichallenge 2013-06-20T12:56:54 *** ChanServ sets mode: +o amstan__ 2013-06-20T12:57:43 *** amstan__ has quit IRC (Client Quit) 2013-06-20T12:58:24 *** amstan has joined #aichallenge 2013-06-20T12:58:24 *** ChanServ sets mode: +o amstan 2013-06-20T13:04:36 *** kilae has joined #aichallenge 2013-06-20T14:10:12 *** Areks has quit IRC (Ping timeout: 260 seconds) 2013-06-20T14:42:36 *** Scooper has joined #aichallenge 2013-06-20T15:30:41 *** epicmonkey has quit IRC (Ping timeout: 248 seconds) 2013-06-20T15:43:06 *** kilae has quit IRC (Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]) 2013-06-20T15:52:58 *** UncleVasya has joined #aichallenge 2013-06-20T15:58:26 Pixars created a better love story in 4 minutes, than 4 twilight books: http://www.youtube.com/watch?v=F2bk_9T482g 2013-06-20T16:28:11 *** amstan has quit IRC (Ping timeout: 252 seconds) 2013-06-20T16:30:34 UncleVasya: damnit, when his note on the baloon bumped into her book while she was sick, I had to :*| 2013-06-20T16:35:06 *** epicmonkey has joined #aichallenge 2013-06-20T16:35:50 *** thestinger has joined #aichallenge 2013-06-20T16:36:27 mleise: I had wet eyes too. 2013-06-20T16:51:03 *** foRei has joined #aichallenge 2013-06-20T17:13:47 *** mcstar has joined #aichallenge 2013-06-20T17:13:56 i could have used some narrative 2013-06-20T17:14:08 or im emotionally cold... 2013-06-20T17:14:09 mcstar: \o 2013-06-20T17:14:12 o/ 2013-06-20T17:14:26 or i simply dont get the story 2013-06-20T17:14:29 mcstar: I decided to start watching BSG because of you talking about it ;p 2013-06-20T17:14:54 * thestinger has only watched the miniseries so far though 2013-06-20T17:14:55 hm 2013-06-20T17:15:09 *** dici has quit IRC (Read error: Connection reset by peer) 2013-06-20T17:15:10 you didnt watch it before? 2013-06-20T17:15:15 at all? 2013-06-20T17:16:00 wow, you missed BSG the reimagined series? 2013-06-20T17:16:29 I mean... the most dramatic and expensive Sci-Fi ever created? 2013-06-20T17:17:38 the most expensive space-drama 2013-06-20T17:17:47 yay 2013-06-20T17:18:13 thestinger: you should watch farscape instead 2013-06-20T17:18:19 :) 2013-06-20T17:18:27 at least thats funny 2013-06-20T17:18:56 I've seen farscape 2013-06-20T17:19:11 mleise: canada doesn't have syfy 2013-06-20T17:19:26 we had a crappy space channel but I dunno if it still exists 2013-06-20T17:19:57 it is not like a tv channel is the only way 2013-06-20T17:20:17 thats right, i got my first 3 seasons from a WORK colleague 2013-06-20T17:20:18 also, im getting massively frustrated 2013-06-20T17:20:36 mleise: who tivo'd the episodes, right? 2013-06-20T17:20:38 XD 2013-06-20T17:20:44 he said it was a good show and he liked it. 2013-06-20T17:20:52 you mean really? 2013-06-20T17:20:58 i mean , you mean it? 2013-06-20T17:21:05 Yes, mcstar 2013-06-20T17:21:06 really 2013-06-20T17:21:09 ah ok 2013-06-20T17:21:15 but he didn't have the DVDs either :p 2013-06-20T17:21:25 i thought it was a eufemism for downloading it through torrent 2013-06-20T17:21:30 looked like some conversion of a rip of someones dvd 2013-06-20T17:21:44 I later loaded the HD versions 2013-06-20T17:22:07 man, what a difference, you could really see the polygons on the minor transport vessels 2013-06-20T17:22:51 aw... and that scene where they sweep through that resurrection ship ... bam*bam*bam*fireworks 2013-06-20T17:23:32 and the cynical doctor... I miss it alright 2013-06-20T17:24:50 yeah... i remember... 2013-06-20T17:24:56 (no i dont..) 2013-06-20T17:25:39 if i had to make another modification on these damn plots im gonnna tear this keyboard apart 2013-06-20T17:25:46 or i do something equally brutal 2013-06-20T17:25:52 oooh 2013-06-20T17:25:56 he likes them! 2013-06-20T17:25:58 finally 2013-06-20T17:26:10 ty bosssss now i log off for today 2013-06-20T17:27:26 sry boys.. 2013-06-20T17:28:54 i must have collected thousands of ants today 2013-06-20T17:29:01 and they are still pouring in 2013-06-20T17:30:36 thestinger: is rust's `as` always safe? 2013-06-20T17:30:47 mcstar: yes 2013-06-20T17:30:58 anything outside of unsafe {} is always safe 2013-06-20T17:31:09 and all unsafe lets you do is dereference raw pointers or call unsafe fns 2013-06-20T17:31:18 and inside unsafe, can it be misused? 2013-06-20T17:31:22 mcstar: no 2013-06-20T17:31:28 but you could make an invalid raw ptr and deref it 2013-06-20T17:31:36 ok, so `as` is unrelated to unsafe 2013-06-20T17:31:42 yeah 2013-06-20T17:31:44 mcstar: you could do 2013-06-20T17:31:46 0 as *int 2013-06-20T17:31:47 but thats not `as` technically 2013-06-20T17:31:49 but that's safe 2013-06-20T17:32:07 * is just like uint - you can deref a raw ptr or use a uint for unsafe array access, but not outside of unsafe {} 2013-06-20T17:35:10 *** Scooper has quit IRC (Quit: Leaving) 2013-06-20T17:37:36 thestinger: but you could still index an array out of bounds in unsafe code 2013-06-20T17:37:44 safe* 2013-06-20T17:37:46 sry 2013-06-20T17:38:23 mcstar: yes but not with unsafe unchecked indexing 2013-06-20T17:39:28 Therefore, we instead wait and lazilly construct the vtable at the point of the cast. 2013-06-20T17:39:44 thats interesting 2013-06-20T17:40:03 do i have to always use `as` to make the cast, or it can be implicit? 2013-06-20T17:40:26 mcstar: you mean for trait objects? 2013-06-20T17:40:32 yes 2013-06-20T17:40:38 i think at least 2013-06-20T17:40:40 mcstar: I think there are implicit conversions now, I could be wrong 2013-06-20T17:40:44 whatever objects rust supports 2013-06-20T17:40:53 mcstar: trait objects aren't commonly used 2013-06-20T17:41:27 well it expresses subtyping 2013-06-20T17:41:40 but as interfaces, instead of classes 2013-06-20T17:41:47 mcstar: not really 2013-06-20T17:41:52 trait *objects* aren't the only way to use traits 2013-06-20T17:42:52 isn't trait inheritance without dynamic dispatch still subtyping? 2013-06-20T17:43:00 well, this passage talks about how vtables are associated with interfaces, not objects, and how the cast actually instantiates the vtable 2013-06-20T17:43:16 mcstar: okay, but rust's traits can be used either as type classes or interfaces 2013-06-20T17:43:23 and there are only vtables if you use them as interfaces 2013-06-20T17:43:36 but either way has trait inheritance and the same implementations 2013-06-20T17:44:11 * thestinger doesn't know where you're reading from 2013-06-20T17:44:16 yeah 2013-06-20T17:44:24 i would be surpriesed if you did 2013-06-20T17:44:27 -e 2013-06-20T17:45:00 http://smallcultfollowing.com/babysteps/blog/2012/04/09/rusts-object-system/ 2013-06-20T17:45:19 oh niko's blog 2013-06-20T17:45:28 mcstar: that's really old 2013-06-20T17:45:33 :( 2013-06-20T17:45:43 only little more than a year 2013-06-20T17:45:47 no 'iface' or 'class' keyword anymore 2013-06-20T17:45:49 mcstar: yeah but it's rust. 2013-06-20T17:45:52 some languages dont change in 20 years... 2013-06-20T17:46:08 mcstar: iface became trait and classes are totally gone 2013-06-20T17:46:23 there are structs (nominal types) and enums (ADTs) 2013-06-20T17:46:34 impls of traits (or anonymous impls) can be done for either 2013-06-20T17:47:04 there are no constructors, we just use static methods 2013-06-20T17:47:12 and destructors are done by implementing the Drop trait 2013-06-20T17:47:21 so, where are these explained? 2013-06-20T17:47:44 i wonder what you did, really, read the source code? 2013-06-20T17:47:58 mcstar: http://static.rust-lang.org/doc/tutorial.html ? 2013-06-20T17:48:08 thats not enough 2013-06-20T17:48:11 the tutorial is really bad 2013-06-20T17:48:24 mcstar: well niko's blog is a good place to be but not that old ;p 2013-06-20T17:48:58 he should flag the outdate posts 2013-06-20T17:49:01 d 2013-06-20T17:49:13 pcwalton's blog mostly talks about memory management and lifetimes 2013-06-20T17:49:24 dunno where you can find in-depth stuff on traits 2013-06-20T17:50:05 it doesnt matter for the moment 2013-06-20T17:50:11 mcstar: I probably *did* learn from reading source code ;p 2013-06-20T17:50:20 it will still be some time, until i write a line of rust 2013-06-20T17:50:30 thestinger: i meant, the compiler's 2013-06-20T17:50:44 well and the stdlib 2013-06-20T17:50:51 it's ~250k lines of rust, the whole thing 2013-06-20T17:50:52 what better documentation than an implementation, right? 2013-06-20T17:50:58 mcstar: well I mean the stdlib 2013-06-20T17:51:10 yeah 2013-06-20T17:51:13 and the compiler is written in rust 2013-06-20T17:51:17 it is interesting to look at haskell source too 2013-06-20T17:51:24 I don't mean reading the implementation to find out how it works 2013-06-20T17:51:32 I mean reading the implementation as an example of rust ;p 2013-06-20T17:51:38 yes 2013-06-20T17:51:46 and ok 2013-06-20T17:51:48 i meant both 2013-06-20T17:52:10 anyway, my first comment on reading the compiler's source was a joke 2013-06-20T17:52:19 mcstar: https://github.com/pcwalton/sprocketnes/blob/master/cpu.rs traits, structs and macros 2013-06-20T17:52:39 trait AddressingMode { 2013-06-20T17:52:41 fn load(&self, cpu: &mut Cpu) -> u8; 2013-06-20T17:52:43 fn store(&self, cpu: &mut Cpu, val: u8); 2013-06-20T17:52:45 } 2013-06-20T17:52:47 impl AddressingMode for AccumulatorAddressingMode { 2013-06-20T17:52:53 generic impl of it for any type implementing the Mem trait 2013-06-20T17:53:02 well 2013-06-20T17:53:13 thestinger: but that doesnt tell me, in what situations is this useful 2013-06-20T17:53:28 mcstar: I guess 2013-06-20T17:53:31 i mean, instead of this circlejerk it would be nice to write a big codebase 2013-06-20T17:53:35 and have some experience... 2013-06-20T17:53:44 in any language, i mean 2013-06-20T17:53:55 i dont consider myself experienced at all 2013-06-20T17:53:59 * thestinger has written a lot of rust :) 2013-06-20T17:54:26 i cleaned a lot of rust 2013-06-20T17:54:35 with a steelbrush, if you must know :) 2013-06-20T17:54:51 367 commits / 64,320 ++ / 19,603 -- 2013-06-20T17:54:54 to upstream rust :) 2013-06-20T17:55:09 although you can subtract ~20k lines from the + side 2013-06-20T17:55:15 because it's from adding jemalloc to the repo 2013-06-20T17:55:30 hm, how do you get fractional lines? 2013-06-20T17:55:57 oh, it is 64k? 2013-06-20T17:56:01 yes 2013-06-20T17:56:01 :) 2013-06-20T17:56:04 j/k 2013-06-20T17:56:54 I think it's more like 30k/15k that aren't mass-deletions/additions of things 2013-06-20T17:56:55 well, im sure they will be giving you rust stock options... 2013-06-20T17:57:06 mcstar: t-shirt and sticker* 2013-06-20T17:57:12 lol 2013-06-20T17:57:33 are you planning to work there eventually? 2013-06-20T17:57:36 mcstar: maybe a limited edition rust t-shirt (there are like 18) will be worth something in a decade ;p 2013-06-20T17:57:39 mcstar: maybe :) 2013-06-20T17:57:57 I'd need to actually go get a BSc in CS first though 2013-06-20T17:58:10 hehe, that would come handy indeed 2013-06-20T17:58:33 the problem is that it wouldnt be a challenge for you 2013-06-20T17:58:37 you would be mostly bored 2013-06-20T17:58:53 sure 2013-06-20T17:59:03 but it's uni, not high school - if I was bored I wouldn't have to do anything 2013-06-20T17:59:22 you would still need to graduate 2013-06-20T17:59:32 yeah but I wouldn't need to study for CS classes... just math 2013-06-20T18:00:01 you might find out, that you are actually interested in math 2013-06-20T18:00:11 if you can take some physics classes too :) 2013-06-20T18:00:32 I like plain old math more than stupid physics 2013-06-20T18:00:42 :( 2013-06-20T18:00:50 * thestinger hates physics 2013-06-20T18:00:55 ::(( 2013-06-20T18:01:01 said spider 2013-06-20T18:01:04 -i 2013-06-20T18:01:43 g2g 2013-06-20T18:03:45 \o 2013-06-20T18:17:00 *** epicmonkey has quit IRC (Ping timeout: 246 seconds) 2013-06-20T18:31:57 *** amstan has joined #aichallenge 2013-06-20T18:31:59 *** ChanServ sets mode: +o amstan 2013-06-20T19:02:13 *** antimatroidl has quit IRC (Quit: Leaving.) 2013-06-20T19:33:30 *** mcstar has quit IRC (Quit: mcstar) 2013-06-20T20:06:29 *** UncleVasya has quit IRC (Ping timeout: 248 seconds) 2013-06-20T21:12:07 *** djr_ has joined #aichallenge 2013-06-20T21:32:07 *** djr_ has quit IRC (Ping timeout: 252 seconds) 2013-06-20T21:53:12 *** capa has joined #aichallenge 2013-06-20T22:50:36 *** foRei has quit IRC (Quit: Bye) 2013-06-20T23:14:09 *** mleise has quit IRC (Quit: Leaving.) 2013-06-20T23:48:39 *** AlliedEnvy has quit IRC (Read error: No route to host)