00:00 (quit) rudybot: Remote host closed the connection 00:06 (join) rudybot 00:19 (quit) arameus: Quit: Leaving 00:24 (join) veer 00:37 (join) yoklov 01:01 mithos28: is there a generics library for structs given that you have the corresponding inspector? 01:01 mithos28: I want to be able to do a map-struct that would apply a function to each field within the struct and return a new struct 01:02 mithos28: I can write it myself, but was wondering if something already existed 01:07 dented42: wouldn't that be a form of applicative functors? 01:08 mithos28: That operation might, but I also want to do folds and destroy the structure of the struct 01:09 dented42: ah 01:11 dented42: I remember seeing a paper somewhere on generic catamorphisms 01:11 dented42: although it was in haskell 01:11 haffe: Hey. 01:12 mithos28: Yeah I'm reimplementing a paper that used RepLib in their haskell implementation 01:12 mithos28: haffe: hello 01:13 haffe: I am writting a small object oriented game in racket. I wondered about a design pattern. I have the game board managing it's own draw-queue. Should the instances in the draw queue be supplied the drawing context when they are created? 01:13 mithos28: what is the other option? 01:14 mithos28: also are you doing this imperatively, or through the world API? 01:14 mithos28: or universe as it is now known? 01:14 haffe: I am using the racket graphics library. 01:14 mithos28: which one? 01:14 haffe: racket/draw 01:14 mithos28: ok 01:15 haffe: My idea was to place the things to be drawn on the draw-queue and then do a for x in draw-queue (send x draw) 01:15 mithos28: seems fine 01:16 mithos28: Here is what I would think about, will your game support multiple windows, maybe showing different things 01:17 mithos28: since the drawing context is window specific, does it make more sense for the queue to hold it or the items them selves 01:17 mithos28: will an item ever be drawn into different contexts 01:18 mithos28: will a queue ever have items with different contexts? 01:19 haffe: No. 01:19 haffe: It will just be one canvas for the entire game. 01:19 dented42: do we have a racket translation of the common lisp loop macro? 01:20 haffe: But I guess I could modularize this further. 01:20 haffe: The instances has a public interface that gives cords and graphical representation. 01:20 haffe: Then the draw-queue processor can just ask for cords and representation and use it's own drawing context. 01:21 mithos28: haffe: Both I think work, the queue having the context might make it easier because otherwise you need to have the context when ever you make objects 01:22 haffe: mithos28: Yes. 01:22 haffe: I guess that simplifies. 01:22 haffe: Since the board object allready knows it's dc. 01:22 haffe: Thanks. 01:23 mithos28: dented42: There is the for macros, but they are different 01:23 mithos28: haffe: no problem 01:23 mithos28: dented42: I don't think anyone has ported the full CL loop macro 01:24 mithos28: there is also do 01:24 haffe: Nice. 01:24 dented42: ah, I'm looking for examples of embedded domain specific languages. 01:24 haffe: I am supposed to supervise game projects in racket. 01:25 haffe: I started using the draw library last week. 01:25 mithos28: dented42: look at syntax/parse and match 01:26 mithos28: both very powerful dsls 01:27 dented42: nice, thanks 01:27 mithos28: I'm not sure if they would count as embedded dsls as other languages use the term though 01:27 mithos28: oh the ffi 01:27 dented42: it 01:27 dented42: it's similar enough 01:27 mithos28: that is also a good example 01:27 mithos28: particularly _fun 01:28 dented42: they define their own unique grammer, which is what I'm interested in 01:28 mithos28: redex is another good one 01:29 dented42: I've always wanted an excuse to play with redex, it seems interesting but I'm unsure what it's supposed to be used for. 01:29 mithos28: playing with languages 01:30 dented42: that's /exactly/ what I'm interested in. 01:31 mithos28: http://www.cs.utah.edu/plt/publications/icfp07-fyff.pdf is a good example of what you can do in redex 01:32 mithos28: The best example: http://www.eecs.northwestern.edu/~robby/lightweight-metatheory/ 01:32 mithos28: and it comes with the redex models 01:33 (quit) em: Read error: Operation timed out 01:33 dented42: thanks 01:34 mithos28: there is also http://www.amazon.com/Semantics-Engineering-Redex-Matthias-Felleisen/dp/0262062755 01:34 rudybot: http://tinyurl.com/7mu5k3j 01:36 (quit) dalaing: Ping timeout: 276 seconds 01:41 (join) lewis17111 01:43 dented42: ok, so it's like an automated theorem prover that isn't erm… automated. 01:44 mithos28: No, it lets you define a language and small step operational semantics for the language and then experiment with that 01:44 mithos28: Which is similar to what you would do with an automated theorem prover sometimes 01:45 dented42: oh 01:46 mithos28: If you look at the examples with the traces function, you can see how it will run your language 01:46 mithos28: and might show how you have defined it so that your program can have two results 01:47 mithos28: because you defined your language in such a way 01:47 dented42: ah 01:47 mithos28: in the book they have an example with scheme and how it lets arguments be evaluated in any order, and how this can lead to different values 01:48 dented42: right, it lets you play around with a language to determine what consequences follow from the definition 01:48 mithos28: yep 01:49 dented42: cool 01:49 (quit) cataska: Quit: leaving 01:49 (join) cataska 01:52 (quit) Kaylin: Read error: Connection reset by peer 01:58 (quit) jeapostrophe: Ping timeout: 245 seconds 02:01 (join) mmajchrzak 02:03 (quit) djcb: Remote host closed the connection 02:07 (join) nilyaK 02:09 (quit) realitygrill: Ping timeout: 246 seconds 02:10 (join) em 02:31 (quit) yoklov: Quit: computer sleeping 02:58 (join) hkBst 02:59 (quit) mmajchrzak: Ping timeout: 244 seconds 03:14 (join) dalaing 03:25 (quit) dalaing: Ping timeout: 252 seconds 03:30 haffe: Hey sorry to bother you people again. 03:30 mithos28: haffe: it is not a problem, thats why we hang out here 03:30 haffe: But in the racket object system is there a way to define private data members for a class? 03:30 mithos28: just use define 03:30 haffe: define/private seems to fail. 03:31 mithos28: if you don't use define/public it will be private 03:31 haffe: Ok. 03:31 haffe: Thanks. 03:39 lewis17111: doesn't racket differentiate between fields and methods though? 03:39 lewis17111: tbh the guide section on objects is a bit confusing 03:39 lewis17111 looks at it again 03:40 mithos28: anything that is not defined as a method is a field 03:40 mithos28: there is a difference between public fields and private fields 03:44 lewis17111 really doesn't like the oop syntax. but please don't get angry at me because I do like racket 03:45 (quit) mithos28: Quit: mithos28 03:46 (join) mithos28 03:51 (quit) mithos28: Client Quit 03:58 (join) dalaing 04:04 (join) ahinki 04:17 (part) dalaing 04:25 (quit) nilyaK: Quit: Leaving. 04:32 (part) rmrfchik 04:54 (join) mmajchrzak 05:15 lewis17111: how is an identifier related to a symbol, if at all? 05:23 (quit) lewis17111: Read error: No route to host 05:23 (join) lewis1711 05:25 (join) tim-brown 05:28 Gertm: Is it possible to build racket for a no-X environment? (no drracket etc) 05:32 (join) mceier 05:37 (join) cdidd 05:38 mrcarrot: Gertm: http://download.racket-lang.org/all-versions.html 05:38 mrcarrot: Gertm: Racket Textual is what you want 05:40 Gertm: Oh, I'm building from the source repo. 05:40 Gertm: Is it possible through a ./configure flag? 05:45 Gertm: Ok, installed it through the racket-textual way, that works too. 05:45 Gertm: Thanks. 05:48 mrcarrot: np 05:55 haffe: Ok, it's me again. I have read the documentation on racket/draw. Is there a way to draw an image directly to a canvas given that canvases drawing context? 05:55 haffe: I want to do something like (send dc draw-bitmap cords size) 05:56 (quit) tim-brown: Remote host closed the connection 05:56 (join) masm 05:57 (quit) bluephoenix47: Remote host closed the connection 05:57 (join) bluephoenix47 05:58 (join) bitonic 05:59 haffe: Ok. 05:59 haffe: That's how you do it. 06:20 (join) lewis17111 06:20 (quit) lewis1711: Quit: Leaving. 06:24 (join) lewis1711 06:24 (quit) lewis17111: Read error: Connection reset by peer 06:35 (quit) brabo: Remote host closed the connection 07:05 (part) lewis1711 07:32 (quit) Gertm: Quit: WeeChat 0.3.7 07:33 (join) Gertm 07:40 (join) noelw_away 07:55 (join) jao 08:00 (quit) jao: Ping timeout: 246 seconds 08:31 (join) kanak 08:34 (join) samth 08:35 (join) RacketCommitBot 08:35 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/di77Hw 08:35 RacketCommitBot: [racket/master] adjust the easter egg test suite so it can be loaded by Sam's lib - Robby Findler 08:35 (part) RacketCommitBot 08:44 (quit) swartzcr: Remote host closed the connection 09:02 (quit) veer: Quit: Leaving 09:10 (join) RacketCommitBot 09:10 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/xXyayg 09:10 RacketCommitBot: [racket/master] fix a problem with submodule expansion - Matthew Flatt 09:10 RacketCommitBot: [racket/master] documentation clarification - Matthew Flatt 09:10 (part) RacketCommitBot 09:11 (join) yoklov 09:12 (join) jeapostrophe 09:15 (quit) noam: Read error: Connection reset by peer 09:15 (join) asumu 09:15 (join) noam 09:16 (quit) yoklov: Quit: bye! 09:28 (quit) samth: Ping timeout: 246 seconds 09:45 (quit) jeapostrophe: Ping timeout: 248 seconds 10:01 (nick) samth_away -> samth 10:03 (join) GeneralMaximus 10:07 samth: everyone who asked a question that was unanswered is now gone :( 10:10 (quit) bitonic: Ping timeout: 246 seconds 10:10 (quit) mmajchrzak: Ping timeout: 240 seconds 10:14 (join) dekuked 10:27 (join) bitonic 10:29 (join) gridaphobe 10:31 (quit) ahinki: Quit: ChatZilla 0.9.88.1 [Firefox 12.0/20120321033733] 10:37 (quit) jrslepak: Quit: What happened to Systems A through E? 10:49 stamourv: samth: I guess you'll have to do work, then. 10:50 (join) gridapho_ 10:50 (quit) gridaphobe: Read error: Connection reset by peer 10:50 (quit) ivan\: Ping timeout: 252 seconds 10:51 (quit) sethalves: Ping timeout: 252 seconds 10:51 (join) sethalves 10:51 samth: stamourv: tragic 10:51 stamourv: I know. 10:55 Gertm: Racket threads don't map to OS threads, do they? 10:56 chandler: No, they don't. Racket places map to OS threads. 10:56 samth: Gertm: no, but see places and futures 10:56 chandler: (And futures.) 10:56 Gertm: Ah good. I don't want OS threads for this. 10:57 Gertm: So they're coop threads or something? 10:59 samth: Gertm: they're preemptive from the racket program perspective 10:59 chandler: They're preemptive, but you can yield if you want to. 10:59 samth: (they're implemented cooperatively at the C level) 10:59 (join) ivan\ 11:03 haffe: Hello. One more question. I have a frame, that I want to equip with a keyboard handler. Is there another way than to subclass the canvas from a canvas where the keyhandler is overrided? 11:03 (join) RacketCommitBot 11:03 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Brbgaw 11:03 RacketCommitBot: [racket/master] avoid bad interior pointer - Matthew Flatt 11:03 (part) RacketCommitBot 11:04 samth: haffe: probably not, most of the gui classes expect you to subclass them for custom behavior 11:04 samth: there may already be a mixin for doing what you want, though 11:18 (join) ssbr_ 11:19 haffe: Ok, I have done like this http://pastebin.com/1uuJnrce 11:20 haffe: This breaks horribly. 11:21 haffe: Or does it. 11:21 (join) jeapostrophe 11:26 (quit) asumu: Remote host closed the connection 11:26 (quit) jeapostrophe: Ping timeout: 245 seconds 11:31 (join) asumu 11:46 haffe: Ok, I solved it. 11:46 haffe: Thanke guys. 12:14 (join) MayDaniel 12:15 (join) gridaphobe 12:16 (quit) gridapho_: Remote host closed the connection 12:18 (quit) dented42: Ping timeout: 260 seconds 12:22 (quit) hkBst: Quit: Konversation terminated! 12:26 (join) dnolen 12:49 (quit) dous: Remote host closed the connection 12:55 (join) dented42 13:03 (join) anRch 13:16 (join) RacketCommitBot 13:16 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/HRVKgg 13:16 RacketCommitBot: [racket/master] deleted test-docs-complete.rkt - John Clements 13:16 (part) RacketCommitBot 13:19 (join) djcb 13:22 (join) nilyaK 13:29 (join) jtpercon 13:31 (join) jao 13:31 (quit) jao: Changing host 13:31 (join) jao 13:31 (quit) dented42: Ping timeout: 246 seconds 13:32 (quit) nilyaK: Ping timeout: 265 seconds 13:33 (join) nilyaK 13:37 (join) dented42 13:38 (quit) MayDaniel: Read error: Connection reset by peer 13:40 (quit) gridaphobe: Quit: Konversation terminated! 13:42 (join) mmajchrzak 13:48 (quit) mmajchrzak: Ping timeout: 246 seconds 13:59 (quit) anRch: Quit: anRch 14:06 (quit) ssbr_: Read error: Operation timed out 14:10 (join) anRch 14:17 (join) MayDaniel 14:30 (quit) GeneralMaximus: Quit: Leaving 14:34 (join) Patches 14:34 (part) Patches 14:35 (quit) nilyaK: Ping timeout: 260 seconds 14:36 (quit) dented42: Ping timeout: 244 seconds 14:36 (join) dented42 14:36 (join) mmajchrzak 14:37 (join) ssbr_ 14:39 (quit) dented42: Client Quit 14:43 (quit) Shvillr: Read error: Connection reset by peer 14:44 (join) Shvillr 14:47 (join) dzhus 15:01 (quit) MayDaniel: Read error: Connection reset by peer 15:01 (quit) jtpercon: Quit: Leaving. 15:07 (join) jtpercon 15:18 (join) realitygrill 15:36 (join) jeapostrophe 15:40 (quit) realitygrill: Quit: realitygrill 15:45 (join) realitygrill 15:50 (quit) jtpercon: Quit: Leaving. 15:51 (join) dented42 15:55 (join) jtpercon 15:56 (quit) anRch: Quit: anRch 16:04 (join) realitygrill_ 16:07 (quit) realitygrill: Ping timeout: 264 seconds 16:07 (nick) realitygrill_ -> realitygrill 16:08 (join) shadgregory 16:09 (join) RacketCommitBot 16:09 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/mvA5Qg 16:09 RacketCommitBot: [racket/master] Fix optimization of first, rest, etc. - Vincent St-Amour 16:09 RacketCommitBot: [racket/master] Fix type of expt. - Vincent St-Amour 16:09 (part) RacketCommitBot 16:33 (quit) dented42: Quit: Computer has gone to sleep. 16:35 (quit) kanak: Ping timeout: 252 seconds 16:39 (join) antithesis 16:51 (quit) realitygrill: Quit: realitygrill 16:53 (join) dented42 16:54 (quit) antithesis: Quit: yes leaving 16:57 (join) realitygrill 16:57 (join) RacketCommitBot 16:57 RacketCommitBot: [racket] plt pushed 8 new commits to master: http://git.io/b3n8aw 16:57 RacketCommitBot: [racket/master] fix a syntax-object problem related to module bindings - Matthew Flatt 16:57 RacketCommitBot: [racket/master] fix flush for `make-pipe-with-specials' - Danny Yoo 16:57 RacketCommitBot: [racket/master] ffi: extend _list and _vector to support zero-length output - Siddharth Agarwal 16:57 (part) RacketCommitBot 16:58 (join) yoklov 17:17 (join) anRch 17:31 (join) gridaphobe 17:44 (join) RacketCommitBot 17:44 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/PuTV8Q 17:44 RacketCommitBot: [racket/master] Autobib errors with no authors or dates on a bib entry. Test included. - Jay McCarthy 17:44 (part) RacketCommitBot 17:53 (quit) ssbr_: Ping timeout: 272 seconds 18:01 (join) jrslepak 18:06 (join) RacketCommitBot 18:06 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/tYL9RA 18:06 RacketCommitBot: [racket/master] Fixing PR12658 - Jay McCarthy 18:06 (part) RacketCommitBot 18:11 (quit) jeapostrophe: Ping timeout: 244 seconds 18:16 (quit) anRch: Quit: anRch 18:21 (quit) dekuked: Ping timeout: 244 seconds 18:22 (quit) mceier: Quit: leaving 18:30 (nick) samth -> samth_away 18:35 (quit) realitygrill: Quit: realitygrill 18:38 (quit) dnolen: Ping timeout: 245 seconds 18:46 (join) dekuked 18:49 (quit) jtpercon: Quit: Leaving. 18:53 (join) realitygrill 19:02 (quit) dzhus: Read error: Connection reset by peer 19:03 (quit) dekuked: Ping timeout: 264 seconds 19:18 (quit) gridaphobe: Remote host closed the connection 19:20 (part) mattmight 19:20 (quit) yoklov: Quit: computer sleeping 19:21 (join) yoklov 19:32 (join) dous 19:46 (join) duomo 19:47 (quit) realitygrill: Quit: realitygrill 19:59 (join) nilyaK 19:59 (quit) mmajchrzak: Ping timeout: 246 seconds 20:13 (join) jtpercon 20:15 (join) jeapostrophe 20:27 (join) samth 20:31 (join) RacketCommitBot 20:31 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/uZZkUA 20:31 RacketCommitBot: [racket/master] adjust the contract on string->url so that it actually catches all of - Robby Findler 20:31 (part) RacketCommitBot 20:41 (quit) cdidd: Remote host closed the connection 20:48 (quit) nilyaK: Quit: Leaving. 20:51 (join) RacketCommitBot 20:51 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/z-a0iA 20:51 RacketCommitBot: [racket/master] Set the name statically re: Robby - Jay McCarthy 20:51 (part) RacketCommitBot 21:04 (quit) samth: Ping timeout: 246 seconds 21:10 (quit) jrslepak: Quit: This computer has gone to sleep 21:19 (quit) dented42: Ping timeout: 244 seconds 21:24 ozzloy: i want to draw with racket code 21:25 ozzloy: i figured the opengl libs would do it. idk opengl. how do i go from 0 to a triangle using racket's opengl libs? 21:25 ozzloy: i don't see any copy-pasta code here: http://docs.racket-lang.org/sgl/index.html 21:26 asumu: ozzloy: you specifically want to do 3D or...? 21:26 asumu: It's much easier to draw with racket/draw. 21:27 asumu: Also: "Some examples are available in the "examples" directory of the "sgl" collection in the Racket installation." 21:27 asumu: (maybe some of those can just be put into the docs.. hmmm) 21:30 (quit) yoklov: Quit: computer sleeping 21:37 (quit) dous: Remote host closed the connection 21:38 asumu: Ah, the examples are too complicated to inline in the docs... 21:43 (join) yoklov 21:43 (join) dented42 21:50 ozzloy: asumu, i want 3d yes 21:51 ozzloy: asumu, i'm drawing the scene the camera on a robot i'm working on should see 21:51 asumu: Okay, well the problem is the OpenGL docs aren't meant to teach you OpenGL. 21:51 asumu: You probably want to find a resource on OpenGL itself. 21:51 ozzloy: asumu, i just saw that example thing and tried to run it 21:51 ozzloy: but it didn't work 21:52 ozzloy: so i'm looking into getting the ppa install 21:52 ozzloy: actually i'm compiling stable right now 21:52 ozzloy: but if that doesn't work i'll look into the ppa (ubuntu installing thing) 21:52 asumu: Hmm, the gears.rkt example works for me. 21:53 ozzloy: i may have just botched the compiliing and installing process 21:53 ozzloy: i've been using straight up #lang racket just fine 21:53 ozzloy: and drracket starts 21:53 ozzloy: but i've never done anything with opengl 21:55 ozzloy: that's not entirely true. i've probably made a triangle before during college 21:56 (join) jrslepak 22:32 (quit) bitonic: Quit: WeeChat 0.3.5 22:38 ozzloy: asumu, i just tried ../configure&&make&&make install with the latest stable branch. that gave me a black window with nothing in it, even when i hit t a lot 22:38 ozzloy: then i installed via the ppa 22:39 ozzloy: same thing 22:39 ozzloy: how can i tell if /usr/bin/racket is the one installed by the ppa? 22:41 ozzloy: nothing shows up in the terminal either 22:41 (join) nilyaK 22:50 asumu: Are you trying the alpha.rkt example? 22:58 ozzloy: asumu, eys 22:58 ozzloy: yes 22:58 asumu: ozzloy: that one didn't work correctly for me either. Try gears.rkt. 22:58 ozzloy: oh 22:58 ozzloy: ok 22:58 ozzloy: thanks 22:58 asumu: (I don't know why, but it worked when I pressed ctrl+c running it on Linux) 22:58 asumu: (so I suspect there is something wrong with alpha.rkt) 23:00 ozzloy: asumu, works for me! 23:00 ozzloy: gears 23:00 ozzloy: asumu, are you saying you did ^C on alpha.rkt? 23:01 asumu: ozzloy: yeah. 23:01 ozzloy: ah 23:01 ozzloy: kk, i'll try that 23:02 ozzloy: nope 23:03 ozzloy: i ^C while the window had focus, while drracket had focus, and then while terminal had focus 23:04 asumu: Okay, well that example is definitely buggy. You could submit a bug report. 23:04 ozzloy: cool 23:04 ozzloy: i'll do so 23:05 ozzloy: i don't have a stack trace or anything 23:05 ozzloy: just "it showed black" 23:05 ozzloy: do you know how i could get more useful info? or i could leave it at that 23:07 asumu: I'm not sure there's much else to say. Just explain how it occurs and the output that you expect. 23:08 asumu: BTW: it's supposed to show a cube with your image spinning around. 23:12 (join) RacketCommitBot 23:12 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/BmSSvw 23:12 RacketCommitBot: [racket/master] make DrRacket run test submodules (in the module language) by default. - Robby Findler 23:12 (part) RacketCommitBot 23:17 (join) realitygrill 23:22 ozzloy: asumu, my image? 23:23 (part) jtpercon 23:23 ozzloy: asumu, my webcam turns on or something? 23:26 ozzloy: oh, i see shriram's pic 23:38 (quit) jeapostrophe: Ping timeout: 276 seconds