00:00 (quit) masm: Quit: Leaving. 00:18 (quit) freakazoid: Quit: Computer has gone to sleep. 00:26 (join) SeanTAllen 00:34 (join) freakazoid 00:44 (quit) jrslepak: Quit: Leaving 02:14 (quit) jonrafkind: Ping timeout: 252 seconds 02:38 (quit) realitygrill: Quit: realitygrill 02:42 (quit) Shviller: Read error: Connection reset by peer 02:43 (join) Shviller 03:01 (quit) yoklov: Quit: computer sleeping 03:30 (join) lewis1711 03:38 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/LD1p5g 03:38 RacketCommitBot: [racket/master] Some more improvements and fixes. - Eli Barzilay 03:38 RacketCommitBot: [racket/master] Drop Infogroep mirror. - Eli Barzilay 03:49 (quit) Shviller: Ping timeout: 240 seconds 03:49 (join) Shviller 03:52 (quit) freakazoid: Quit: Computer has gone to sleep. 04:17 (join) ahinki 04:26 (join) gciolli 05:21 (quit) SeanTAllen: Remote host closed the connection 05:33 (part) lewis1711: "Leaving." 05:39 (join) sindoc 05:43 sindoc: Is there a way to have structures constructed using keyword arguments without having to define an extra constructor function manually? 05:48 (join) SeanTAllen 06:01 (join) chturne 06:31 (quit) sindoc: Quit: Leaving. 06:56 (join) jt123 06:57 jt123: hey people 06:57 jt123: anybody able to help me... wondering how to search for something like (^ x 0) and replace with 0 06:57 jt123: http://pastebin.com/NfTPdRW4 06:57 jt123: in normal-poly p 07:42 chturne: jt123, can you rephrase that? The code you pasted doesn't make a lot of sense to me. I'm assuming you're speaking of a string substitution, since x^0 = 1 not 0. You could use a regex for that, or Racket's match form. 07:43 chturne: jt123, If you're wanting to do the more obvious rewrite of (^ x 0) --> 1, then you can map thru each term, check if the car is ^, then check if the second argument is zero, and cons 1 onto the rest of the map instead of this expression. Racket's match would be very handy here. 07:43 jt123: chturne: basically i have a polynomial on which calculations are performed. So want to replace with 1 sorry... not 0 07:45 chturne: (car '(^ a b)) == '^ and (caddr '(^ a b)) == 'b. So from that information you can decide whether to cons the expression, or cons a 1. 07:48 jt123: ok so the cons a 1 replaces the whole of (^ x 0) with 1? 07:50 chturne: I mean you'd cons the numeral '1' onto the result of reducing the cdr of a polynomial, rather than the '(^ a b) expression. 07:51 chturne: (when b is 0) 07:54 jt123: chturne: sorry, im not very experienced with lisp 07:54 jt123: or scheme 07:55 jt123: chturne: would it be possible for you to give an example please? 08:01 chturne: jt123, I haven't checked whether the following actually works, but it's a rough outline of my suggestion. http://pastebin.com/V3EJKFRT 08:03 chturne: That (empty? poly) should be lifted out of the let, but hopefully you get the general idea.. 08:08 chturne: jt123, here's one that actually works: http://pastebin.com/iSTYSJGd 08:08 jt123: thanks chturne :) 08:09 chturne: (it's not robust!) 08:10 jt123: haha no worries i'll try it with my code 08:10 jt123: ill let you know how it goes 08:11 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/OCAHaw 08:11 RacketCommitBot: [racket/master] Change the keybindings dialog to be a frame, and make it react - Robby Findler 08:11 RacketCommitBot: [racket/master] fixed bug in the way aug:keymap extracts the names - Robby Findler 08:11 (join) masm 08:32 (quit) AlbireoX: Ping timeout: 252 seconds 08:52 (join) yoklov 09:03 (join) sindoc 09:10 (join) mceier 09:18 (quit) sindoc: Ping timeout: 276 seconds 09:19 (quit) gciolli: Ping timeout: 252 seconds 09:24 (join) anRch 09:42 (quit) anRch: Read error: Connection reset by peer 09:44 (join) anRch 09:50 (nick) chaozzbubi -> ChaozZBubi 09:51 (quit) chturne: Read error: Operation timed out 09:53 (join) Blkt 09:53 (join) gciolli 09:53 Blkt: good day everyone 10:02 jt123: hey Blkt 10:04 (quit) anRch: Read error: Connection reset by peer 10:04 (join) anRch 10:05 Blkt: :D 10:10 (join) karswell 10:29 (quit) anRch: Quit: anRch 10:45 (quit) gciolli: Ping timeout: 260 seconds 11:15 (join) chturne 11:27 (join) jeapostrophe 11:33 (quit) jeapostrophe: Ping timeout: 252 seconds 11:34 (join) mithos28 11:38 mithos28: Should launcher applications access the collects directory of the installed racket? I would assume they should, but my program seems to not being do so. 12:01 (join) EmmanuelOga 12:15 (join) snearch 12:19 (join) realitygrill 12:19 (nick) ChaozZBubi -> chaozzbubi 12:28 yoklov: anybody know if using the dc's built-in transformation methods is faster than just doing the math manually? 12:29 yoklov: hrm, theres probably no way it would be slower... 12:40 (join) jonrafkind 12:59 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/ajs6ug 12:59 RacketCommitBot: [racket/master] Yet more tweaks and fixes. - Eli Barzilay 13:05 (quit) ahinki: Ping timeout: 240 seconds 13:07 (quit) yoklov: Quit: computer sleeping 13:09 (join) yoklov 13:14 RacketCommitBot: [racket] plt pushed 4 new commits to master: http://git.io/1WGLqQ 13:14 RacketCommitBot: [racket/master] redex: adjust the way metafunction tracing is printed so you - Robby Findler 13:14 RacketCommitBot: [racket/master] redex: when there are no duplicate names in a pattern, don't do the - Robby Findler 13:14 RacketCommitBot: [racket/master] remove (broken) attempt at optimization Jay suggested - Robby Findler 13:15 (join) gciolli 13:19 (quit) realitygrill: Read error: Connection reset by peer 13:19 (join) realitygrill 13:26 (quit) mceier: Quit: leaving 13:29 (quit) realitygrill: Read error: Connection reset by peer 13:29 (join) realitygrill 13:34 (quit) realitygrill: Read error: Connection reset by peer 13:35 (join) realitygrill 13:42 (quit) mithos28: Quit: mithos28 13:42 (join) mithos28 13:45 yoklov: chars should be eq? to eachother right? 13:45 mithos28: yoklov: no 13:45 yoklov: oh. 13:45 yoklov: hrm. eqv? 13:46 mithos28: yes 13:46 yoklov: or just use char= 13:46 yoklov: oh 13:46 yoklov: okay. 13:46 mithos28: http://docs.racket-lang.org/reference/eval-model.html?q=eq%3F#(part._model-eq) 13:46 (quit) realitygrill: Read error: Connection reset by peer 13:46 (join) realitygrill 13:47 mithos28: sorry that doesn't have any useful information 13:47 mithos28: http://docs.racket-lang.org/reference/characters.html?q=eq%3F 13:47 mithos28: chars are eq if they are ascii 13:48 yoklov: okay 13:48 yoklov: the ones i'm using are but i'll still use eqv? to be safer 14:00 (nick) chaozzbubi -> ChaozZBubi 14:15 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/0iKTuQ 14:15 RacketCommitBot: [racket/master] net/mime: allow any subtype, exns as exn:fail subtypes; doc fixes - Matthew Flatt 14:15 RacketCommitBot: [racket/master] fix JIT bug - Matthew Flatt 14:19 (quit) gciolli: Quit: Leaving. 14:30 (join) samth 14:45 (quit) mithos28: Quit: mithos28 14:52 yoklov: so, i have a monochrome bitmap which i'd like to be able to draw in different colors (e.g. draw only the parts which are black, but be able to choose the color they are drawn as). I can draw only the black parts by specifying the bitmap (itself) as the mask argument to draw-bitmap in dc<%>, and I've tried using the "color" argument, but it seems not to do anything? Is my only option to have a solid (colored) bitmap of the same si 14:52 yoklov: ze, which i recolor and then use the monochrome bitmap as the mask? 14:53 yoklov: i mean the obvious answer is "no clue" 15:02 yoklov: wait no, the problem is that this bitmap is color for some reason. 15:07 (join) jrslepak 15:23 (join) MayDaniel 15:23 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/ytQxWw 15:23 RacketCommitBot: [racket/master] Another typo. - Eli Barzilay 15:29 (quit) MayDaniel: Read error: Connection reset by peer 15:31 (join) kudkudyak 15:51 (join) AlbireoX 16:05 (quit) chturne: Quit: To iterate is human, to recurse divine 16:17 (quit) Blkt: Ping timeout: 252 seconds 16:47 (join) anttih 16:48 anttih: I have some code that has been written for MzScheme, can I use that language still with racket? 16:48 yoklov: it is a bummer when your code is spending over half of its time in a utility function. 16:48 yoklov: antti: yeah 16:48 yoklov: anttih* 16:49 anttih: yoklov: how? 16:49 yoklov: #lang mzscheme i think 16:49 anttih: it has many source files, can I define that globally or something? 16:50 yoklov: maybe with something from racket/runtime-path (theres some weird module stuff in there) but not that i know of 16:50 yoklov: if they say (module mzscheme at the front that works too 16:52 yoklov: it might just work with racket though. 16:52 yoklov: http://docs.racket-lang.org/mzscheme/index.html?q=mzscheme 16:52 anttih: the error that I mostly see is the use of plain '()' 16:52 anttih: that is () vs '() 16:52 yoklov: weird, I didn't know that that was allowed in mzscheme 16:53 anttih: apparently 16:54 yoklov: hrm. indeed it is. 16:54 yoklov: that can't be that common though, can it? 16:54 (join) mercur764 16:55 mercur764: hi everybody 16:55 (quit) realitygrill: Read error: Connection reset by peer 16:55 (join) realitygrill 16:55 mercur764: can someone help me? 16:56 yoklov: you should probably just ask and if someone can they'll answer 16:56 anttih: yoklov: not that common, AFAIK 16:56 yoklov: how many times does it happen in that program, i mean? 16:57 yoklov: right, how would you know 16:57 anttih: yoklov: the codebase is the SINK Kernel implementation http://web.cs.wpi.edu/~jshutt/kernel.html 16:57 anttih: yoklov: now I get a different error: "else: not allowed as an expression in: else " :-) 16:58 mercur764: firstly I wanna make a manifield with racket but ı have no code with that pls help me 16:58 (join) realitygrill_ 16:58 (quit) realitygrill: Read error: Connection reset by peer 16:58 (nick) realitygrill_ -> realitygrill 16:58 samth: mercur764: what is a manifield? 16:59 mercur764: sorry samth minefield 16:59 mercur764: game 16:59 samth: mercur764: how much programming have you done? 17:01 mercur764: I have nothing done yet I'm a student and now we are learning drracket in the school pls help me 17:02 yoklov: mercur764: minefield is a fairly simple game, but the GUI toolkit with racket isn't particularly simple, you might want to wait till after you've at least taken this course... 17:03 yoklov: however, should you be impatient, there are example gui games that are provided with racket 17:04 mercur764: yoklov I must to reach this gAM 17:04 mercur764: game 17:04 mercur764: and I have not a long time 17:05 yoklov: err, why not? 17:06 samth: mercur764: i recommend using the `universe' toolkit for learning how to program in racket 17:06 yoklov: https://github.com/plt/racket/tree/master/collects/games or in your /collects/games directory 17:06 mercur764: can you say me manefield code with dr racket or say me how can ı found 17:06 samth: mercur764: start here: http://www.ccs.neu.edu/home/matthias/HtDP2e/index.html 17:06 yoklov: it probably doesn't exist. 17:07 yoklov: it is quite possible nobody's done minefield in racket 17:07 mercur764: :(((( 17:07 mercur764: thnx for your help 17:08 yoklov: err? you're welcome. 17:09 mercur764: samth do you know this game code ? 17:09 samth: mercur764: what game code? 17:10 mercur764: manefield samth 17:10 samth: if you're looking for someone to give you code to a game, then you can look at the link 17:10 samth: that yoklov gave you 17:10 samth: those are the games that ship with racket 17:10 (quit) EmmanuelOga: Quit: WeeChat 0.3.7-dev 17:10 mercur764: yes but manefiled in not exist 17:10 samth: why do you need minefield written in racket? 17:11 mercur764: because my homework 17:11 samth: then i recommend *doing* your homework 17:11 samth: rather than asking us to help you copy from somewhere else 17:11 (join) sindoc 17:11 yoklov: can't learn to program without doing it a lot :) 17:13 mercur764: Yes ı know but if ı know this game make sure that the I do myself without asked someone but ı dont know how can ı do this game just ı wanna a little bit help for your 17:13 mercur764: from you 17:17 mercur764: anyway thank you for your help samth and yoklov 17:17 (join) gciolli 17:30 (quit) mercur764: Quit: Page closed 17:31 yoklov: samth: to be honest (when i was starting) i always felt like the universe toolkit was frustruatingly far away from actually writing a game 17:31 samth: yoklov: really? 17:31 samth: i'm surprised 17:31 samth: it's pretty easy to write something simple and fun 17:31 samth: see, for example: http://www.ccs.neu.edu/course/cs2510h/assign02.html 17:32 jonrafkind: is that a game from 1974? 17:32 samth: jonrafkind: it's a game from the second week of class 17:32 (quit) Fulax: Ping timeout: 252 seconds 17:33 yoklov: yeah, i had seen examples, but it still felt? i don't know, like there's too much magic going on behind the scenes 17:34 (nick) ChaozZBubi -> chaozzbubi 17:34 (nick) chaozzbubi -> ChaozZBubi 17:34 (join) jao 17:37 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/MlVxJg 17:37 RacketCommitBot: [racket/master] better JIT repair - Matthew Flatt 17:37 yoklov: so even though it looked significantly easier than learning racket/gui it wasn't worth it because it wouldn't actually let me know how it was done... 17:37 yoklov: that was my perspective at least 17:38 yoklov: also i was coming from a course on sicp and i didn't really trust materials from other books, haha. 17:38 (quit) jonrafkind: Ping timeout: 252 seconds 17:40 (quit) yoklov: Quit: computer sleeping 17:40 (quit) karswell: Ping timeout: 252 seconds 17:44 (nick) ChaozZBubi -> chaozzbubi 17:49 (quit) gciolli: Read error: Connection reset by peer 17:57 (join) jeapostrophe 18:00 (join) sindoc1 18:00 (quit) sindoc: Read error: Connection reset by peer 18:01 (join) sindoc 18:01 (quit) sindoc1: Read error: Connection reset by peer 18:01 (quit) snearch: Quit: Verlassend 18:01 (quit) sindoc: Read error: Connection reset by peer 18:01 (join) sindoc1 18:20 (quit) sindoc1: Read error: Connection reset by peer 18:20 (join) sindoc 18:51 (join) bill_h 18:51 (join) yoklov 18:52 (quit) yoklov: Client Quit 18:56 (join) yoklov 18:58 samth: yoklov: indeed, universe isn't designed for explaining guis, but for letting students implement simple ones 19:01 (quit) yoklov: Ping timeout: 260 seconds 19:09 (join) yoklov 19:17 (quit) sindoc: Quit: Leaving. 19:19 (quit) yoklov: Quit: computer sleeping 19:23 (join) jonrafkind 19:32 (join) karswell 19:37 (quit) masm: Quit: Leaving. 19:56 (join) yoklov 20:00 (quit) yoklov: Ping timeout: 240 seconds 20:24 (quit) jeapostrophe: Ping timeout: 240 seconds 20:35 (join) jeapostrophe 21:37 (join) qubital 21:47 (quit) jeapostrophe: Ping timeout: 252 seconds 21:59 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/-F7dcQ 21:59 RacketCommitBot: [racket/master] Allow cross-site use of the status script. - Eli Barzilay 22:02 (join) bmp` 22:04 (quit) bmp`: Remote host closed the connection 22:05 (join) bmp 22:36 (join) jeapostrophe 22:36 (join) freakazoid 22:46 (quit) bmp: Quit: Bye! 23:27 (quit) freakazoid: Quit: Computer has gone to sleep. 23:37 (join) freakazoid 23:47 (quit) freakazoid: Quit: Computer has gone to sleep. 23:51 (quit) jt123: Quit: jt123