00:03 rindolf: Oh well, I guess I'll have to use DrRacket. 00:05 neilv: Oh well, I guess I'll have to eat cookies. 00:05 rindolf eats neilv 00:06 rindolf loves eating people who eat cookies. 00:06 neilv: people did say the racket community was friendly 00:09 (quit) jao: Ping timeout: 246 seconds 00:14 (quit) jeapostrophe: Ping timeout: 248 seconds 00:18 (join) k0001_ 00:21 (quit) k0001: Ping timeout: 252 seconds 00:24 (join) RacketCommitBot 00:24 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/5yjOrQ 00:24 RacketCommitBot: racket/master 96d1400 Neil Toronto: Renamed functions... 00:24 (part) RacketCommitBot 00:24 (join) samth 00:24 (quit) SunMoonStar: Ping timeout: 246 seconds 01:11 (quit) Nisstyre: Quit: Leaving 01:14 (quit) greghendershott: Quit: Leaving. 01:15 (quit) kofno: Remote host closed the connection 01:16 (quit) rindolf: Read error: Connection reset by peer 01:17 (join) rindolf 01:19 (quit) rindolf: Client Quit 01:21 (quit) tewk: Read error: Operation timed out 01:23 (quit) mceier: Quit: leaving 01:25 (quit) francisl_: Quit: francisl_ 01:26 (join) tewk 01:27 (quit) francisl: Quit: francisl 01:36 (quit) tewk: Ping timeout: 255 seconds 01:37 (join) tewk 01:39 (quit) myx: Ping timeout: 260 seconds 01:45 (join) Nisstyre 02:06 (join) mithos28 02:07 mithos28: Is there a way to parse c header files with racket? 02:09 neilv: there was a package in planet that looked like it was intended for that purposes 02:09 mithos28: It has issues on things like __inline__ 02:10 mithos28: I'm trying to see if I can convince clang to not export those when processing the header 02:10 (join) k0001 02:11 neilv: wtf are these bug reports against my packages on planet 02:12 neilv: i don't know about most of these 02:13 (quit) k0001_: Ping timeout: 256 seconds 02:20 (join) mceier 02:26 mithos28: I think the easiest way will be to just filter them out and then use that library 02:26 mithos28: ugh people should follow standards 02:28 (quit) Nisstyre: Ping timeout: 252 seconds 02:30 (quit) nathanpc: Quit: Computer has gone to sleep. 02:35 neilv: once again, planet has ruined my day 02:36 (quit) neilv: Quit: Leaving 02:37 jonrafkind: lol 02:38 sw2wolf: neilv: why 02:38 mithos28: success, i have parse a simple c header (modulo the fact that I deleted like 20 lines because they couldn't be parsed) 02:42 (join) Nisstyre 02:43 (join) niels1 02:45 (quit) Kaylin: Read error: Connection reset by peer 03:01 (quit) Shvillr: Read error: Connection reset by peer 03:02 (join) Shvillr 03:07 (join) hkBst 03:07 (quit) hkBst: Changing host 03:07 (join) hkBst 03:18 (quit) cdidd: Ping timeout: 260 seconds 03:28 (quit) SamB: Read error: Operation timed out 03:28 (quit) sw2wolf: Remote host closed the connection 03:28 (join) sw2wolf 03:29 (join) SamB 03:30 (quit) cataska: Quit: Changing server 03:31 (join) cataska 03:31 (quit) k0001: Ping timeout: 260 seconds 03:32 (quit) jonrafkind: Ping timeout: 250 seconds 03:37 (quit) mithos28: Quit: mithos28 03:40 (join) niels2 03:42 (quit) niels1: Ping timeout: 264 seconds 03:48 (quit) samth: Ping timeout: 245 seconds 03:58 (join) noelw 04:20 (part) sw2wolf: "ERC Version 5.3 (IRC client for Emacs)" 04:28 (quit) hkBst: Ping timeout: 265 seconds 04:28 (join) hkBst 04:28 (quit) hkBst: Changing host 04:28 (join) hkBst 04:42 (quit) jschuster: Ping timeout: 244 seconds 04:52 (join) Aune 05:08 (quit) hkBst: Ping timeout: 245 seconds 05:10 (join) jschuster 05:11 (join) hkBst 05:11 (quit) hkBst: Changing host 05:11 (join) hkBst 05:16 (join) kofno 05:21 (quit) kofno: Ping timeout: 245 seconds 05:28 (quit) hkBst: Remote host closed the connection 05:30 (join) hkBst_ 05:34 (quit) hkBst_: Excess Flood 05:35 (join) masm 05:39 (join) hkBst_ 05:40 (join) MightyFoo 05:45 (quit) hkBst_: Ping timeout: 245 seconds 05:47 (quit) Aune: Quit: L?mnar 05:47 (join) hkBst_ 05:55 (quit) mceier: Ping timeout: 240 seconds 06:16 MightyFoo: how do i export a class from a module? is it just (provide _class-name_) ? 06:25 (quit) hkBst_: Ping timeout: 244 seconds 06:28 (join) hkBst_ 06:28 (quit) hkBst_: Changing host 06:28 (join) hkBst_ 06:33 (quit) hkBst_: Ping timeout: 245 seconds 06:34 (join) amgarching 06:36 (join) sw2wolf 06:39 amgarching: Why does "mzscheme --load scheduling.scm" not understand cond-expand at the top: http://pastebin.com/ccyX4qNd First it complained about Guile section (repeated #:use-module keywords), I fixed that. Now it complains about "else": "not allowed as an expression in: (else (require ..." . What am I doing wrong. V5.1.3 06:39 amgarching: Hi, all! 06:40 amgarching: it appears that IRC messges occasionally overtake :-) 07:00 (join) ijp 07:01 noelw: Sorry, never used cond-expand 07:01 (quit) SamB: Ping timeout: 246 seconds 07:01 noelw: but 1+ is add1 07:01 noelw: HTH 07:02 dca_: hi. 07:02 (join) SamB 07:02 dca_: is it possble to compile racket program to C? 07:02 dca_: not touch the eval 07:02 amgarching: It appears that ~/.mzschemrc is only read when I do "mzscheme -i" cond-expand syntax is defined there. I am sure I was running this code from the command line too. 07:03 noelw: dca_: Can you give a clearer idea of your requirements? 07:03 noelw: Why do you want to do this? 07:04 noelw: Depending on what you want, it might be possible 07:04 dca_: i want to write solution to programming contests in racket 07:04 dca_: sadly none graders of that i know accept racket 07:04 noelw: You can create an executable 07:04 dca_: so compiling solutions to C might be interesting 07:05 dca_: they want the source 07:05 noelw: Racket can compile to C, but I'm not sure this is maintained anymore 07:06 noelw: and you'd still need the runtime library 07:06 noelw: for, e.g. the garbage collector 07:06 noelw: \ 07:06 dca_: yeah that's right 07:06 dca_: so the short answer is no 07:07 noelw: Yes 07:07 dca_: thx 07:07 noelw: no problem 07:16 (join) kofno 07:22 (quit) sw2wolf: Quit: Leaving 07:27 amgarching: Hm. "The problem is that racket does not support cond-expand." From here: http://www.mail-archive.com/readable-discuss@lists.sourceforge.net/msg00727.html (year 2012). That is unfortunate. 07:27 rudybot: http://tinyurl.com/cu473x5 07:34 (join) bitonic 07:40 amgarching: PLT is standing quite alone there http://srfi.schemers.org/srfi-implementers.html (the only one that does not support srfi-0). I see, it must be something personal. 07:43 (join) RacketCommitBot 07:43 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/y5UpOg 07:43 RacketCommitBot: racket/master 3aa74f2 Matthew Flatt: slideshow: fix import that changed the style of legacy libraries 07:43 RacketCommitBot: racket/master 46fb91c Matthew Flatt: update pre-built binary path for a win32 patch... 07:43 RacketCommitBot: racket/master f847b76 Matthew Flatt: win32: make "build.bat" work with VCExpress... 07:43 (part) RacketCommitBot 08:07 (quit) SamB: Ping timeout: 252 seconds 08:09 (join) jeapostrophe 08:09 (quit) jeapostrophe: Changing host 08:09 (join) jeapostrophe 08:10 (join) SamB 08:18 (join) soegaard 08:23 (join) greghendershott 08:26 (join) mizu_no_oto 08:32 (quit) jrslepak: Quit: What happened to Systems A through E? 08:58 (join) ncw 08:58 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 09:06 (join) jrslepak 09:13 (join) netrino 09:15 (join) jao 09:15 (quit) jao: Changing host 09:15 (join) jao 09:29 (join) francisl 09:40 (quit) greghendershott: Quit: Leaving. 09:41 (join) greghendershott 09:48 asumu: amgarching: If you're looking for sweet expressions, I ported an older version a few years ago. 09:51 (quit) ncw: Remote host closed the connection 09:59 (quit) francisl: Quit: francisl 10:03 (join) myx 10:03 ijp: amgarching: most people don't even use srfi-0 any way 10:06 (join) francisl 10:07 (join) anRch 10:09 (join) asdfasdfasdfasdf 10:09 (join) mizu_no_oto 10:11 (quit) asdfasdfasdfasdf: Client Quit 10:13 (quit) niels2: Quit: WeeChat 0.3.8 10:18 (quit) francisl: Quit: francisl 10:31 (join) samth 10:31 (quit) samth: Changing host 10:31 (join) samth 10:42 (join) rindolf 10:43 (quit) bitonic: Remote host closed the connection 10:43 (join) hash_table 10:43 (join) carleastlund 10:49 (join) cdidd 10:50 (quit) Demosthenex: Ping timeout: 255 seconds 10:52 (join) Demosthenex 10:53 (quit) anRch: Quit: anRch 10:58 (join) bitonic 10:59 (quit) jeapostrophe: Ping timeout: 264 seconds 11:04 (quit) soegaard: Quit: soegaard 11:06 (join) mithos28 11:14 (join) mye 11:15 (quit) samth: Ping timeout: 246 seconds 11:19 (quit) bitonic: Ping timeout: 256 seconds 11:24 (join) karswell 11:28 (quit) carleastlund: Quit: carleastlund 11:28 (join) ncw 11:31 (join) Jarod- 11:32 Jarod-: hi 11:33 mithos28: Jarod-: Hello 11:38 Jarod-: I searched for hours and couldn't find an answer : is it possible to use 3d engines with racket ? should I use SWIG for that matter ? 11:38 (part) dca_: "ERC Version 5.3 (IRC client for Emacs)" 11:38 (join) dca_ 11:38 mithos28: Its possible to use any foreign library 11:38 mithos28: racket has its own interface language which is much more powerful than swig 11:39 mithos28: http://docs.racket-lang.org/foreign/index.html?q=foreign 11:39 mithos28: I'm not sure if there are already any ports of any 3d engines 11:39 Jarod-: thanks 11:39 mithos28: What is a 3d engine you are thinking about? 11:40 mithos28: I assume something above open gl 11:40 Jarod-: I saw Ogre 11:40 Jarod-: there is Torque too 11:41 mithos28: haven't heard anyone make bindings to those 11:42 Jarod-: the thing is I didn't saw a single webpage about using a 3d engine with racket, which is why I started to worry ^^ 11:42 (join) MayDaniel 11:43 mithos28: jay has done some stuff with 2d game engines 11:43 dca_: no 3D engine port? let's make our own! 11:44 dca_: unity3D port to rkt would be nice i guess 11:54 asumu: Oh, weird. This doesn't work: https://gist.github.com/4162486 11:54 asumu: Neither does putting the module declaration in the body. 11:54 (join) RacketCommitBot 11:54 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/B_8-TQ 11:54 RacketCommitBot: racket/master 52d0b7e Robby Findler: Possible fix for error raised by build-rectangle... 11:54 RacketCommitBot: racket/master ad2e8ac Robby Findler: fix error check on the result of place-children... 11:54 (part) RacketCommitBot 11:56 (join) bitonic 11:56 asumu: It works if it's a module, but not a module* 11:57 (join) jeapostrophe 11:57 (quit) jeapostrophe: Changing host 11:57 (join) jeapostrophe 11:57 (join) masm1 11:58 (quit) masm: Ping timeout: 256 seconds 12:00 asumu: Hmm, and if you do (begin-for-syntax (raise "foo")) it seems background expansion gets caught in a loop. 12:02 (join) dyoo 12:04 asumu: Oh, that's not a bug, that's just how submodules work. Ugh. 12:06 (join) mceier 12:07 (quit) jeapostrophe: Ping timeout: 250 seconds 12:07 (quit) noelw: Quit: noelw 12:07 (join) jeapostrophe 12:07 (quit) jeapostrophe: Changing host 12:07 (join) jeapostrophe 12:07 stamourv: asumu: Re not working with `module*': that causes circular dependencies IIUC. 12:08 (join) noelw 12:09 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 12:10 (join) francisl 12:15 asumu: stamourv: yeah, I realized that after sending the e-mail... 12:16 asumu: Also, you can make background expansion do weird things with begin-for-syntax. 12:20 asumu: Also, I like how (unsafe-car #f) = not 12:21 stamourv: ? 12:22 asumu: Try it. 12:22 asumu: rudybot: (require racket/unsafe/ops) 12:22 rudybot: asumu: Done. 12:22 asumu: rudybot: (unsafe-car #f) 12:22 rudybot: asumu: error: #:1:1: compile: access disallowed by code inspector to protected variable from module: '#%unsafe in: unsafe-car 12:22 asumu: Oh, no fun. 12:23 mithos28: asumu: Use TR and a soundness bug 12:44 mithos28: has any work been done on a typed library for the FFI? 12:47 stamourv: asumu: I get `equal?' 12:47 (quit) MightyFoo: Quit: night all! 12:47 stamourv shrugs. 12:48 (nick) masm1 -> masm 12:48 (quit) ncw: Remote host closed the connection 12:50 (join) jonrafkind 13:05 (join) neilv 13:06 (quit) jeapostrophe: Ping timeout: 264 seconds 13:10 (join) masm 13:13 (join) jeapostrophe 13:13 (quit) jeapostrophe: Changing host 13:13 (join) jeapostrophe 13:16 neilv: i've started a new little library for people who want their racket app to be hardcore about free software... http://www.neilvandyke.org/weblog/2012/11/#2012-11-28 13:20 asumu: stamourv: oh huh, on both my machines I got `not`. So my plan of (define-syntax-rule (not x) ((unsafe-car #f) x)) has failed. 13:20 asumu: neilv: my first thought was "Racket RMS"? 13:20 neilv: asumu: yes, like vrms 13:21 asumu: Oh, and it actually does work like vrms. Very nice. 13:23 (quit) Shambles_: Quit: Leaving. 13:24 jonrafkind: i like how you blur out your lan ip 13:24 jonrafkind: good thinking 13:24 (quit) netrino: Ping timeout: 248 seconds 13:24 neilv: doesn't make much difference. only about 256 combinations to try :) 13:25 jonrafkind: even easier, if im on your lan ill just arp -n 13:25 neilv: yes 13:26 (join) mizu_no_oto 13:27 (quit) engblom: Remote host closed the connection 13:34 (quit) danl-ndi: Quit: Lost terminal 13:38 (join) netrino 13:38 greghendershott: neilv: how did you steal my IP range?!?! omfg you open software zealots are all mischievous evil system hackers! 13:39 (join) Shambles_ 13:40 neilv: sorry, i only meant to impersonate someone else's ip address while i was browsing goat porn. forgot to turn it off 13:41 (quit) kofno: Read error: Connection reset by peer 13:42 (join) kofno 13:48 (join) Aune 13:48 (join) nilyaK 13:51 (join) samth 13:51 (quit) samth: Changing host 13:51 (join) samth 13:55 (quit) jeapostrophe: Ping timeout: 256 seconds 14:12 (join) RacketCommitBot 14:12 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/rpTPTw 14:12 RacketCommitBot: racket/master e7c6222 Robby Findler: improve the 'method' syntax error so it gives a hint which argument is which 14:12 (part) RacketCommitBot 14:14 (join) jeapostrophe 14:17 (join) k0001 14:18 (join) RacketCommitBot 14:18 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/jp3Qow 14:18 RacketCommitBot: racket/master 253ae42 Robby Findler: clarify what 'displayed' is programmatically (a call to get-admin) 14:18 RacketCommitBot: racket/master 97454b6 Robby Findler: guard use of exn-message... 14:18 (part) RacketCommitBot 14:50 rindolf: Is there a Racket tutorial for people who already know Scheme (SICP/etc.) and many other programming languages? 14:51 dyoo: rindolf: does the racket guide documentation help? its link is: http://docs.racket-lang.org/guide/index.html 14:52 dyoo: There are a few other guided tutorials described in: http://docs.racket-lang.org/getting-started/index.html that assume prior programming experience 14:54 (join) nilyaK1 14:55 rindolf: dyoo: OK, seems interesting, but kinda long. 14:56 neilv: rindolf: i am working on a racket book for professional developers. it will be a while, though 14:56 rindolf: neilv: OK. 14:56 (quit) nilyaK: Ping timeout: 264 seconds 14:56 rindolf: neilv: are the sources available in a version control repo? 14:57 neilv: no. just know that future generations will have it easier than you 14:57 dyoo: rindolf: do you have a suggestion on what kind of tutorial you're thinking of? 14:57 (join) k0001_ 14:57 (quit) hyko: Ping timeout: 245 seconds 14:58 rindolf: dyoo: something for advance programmers without too much hand-holding. 14:58 dyoo: any particular subject or focus? Networking, algorithms, …? 14:59 (quit) Aune: Remote host closed the connection 15:00 (quit) rudybot: Ping timeout: 252 seconds 15:00 dyoo will be back soon; forgot to eat lunch (again…) 15:00 (quit) k0001: Ping timeout: 260 seconds 15:01 rindolf: dyoo: well, mostly meta-lingual abstractions and not too many APIs. 15:02 (join) hyko 15:02 (join) soegaard 15:03 dyoo: rindolf: sketch out an idea, and one of us here might be interested to write something up. Also, feel free to bring this up on the mailing list. We want to make good documentation. I have no idea what you mean yet by "meta-lingal", so I need further discussion. :) Ok, off for lunch 15:03 asumu: rindolf: if by meta-linguistic abstraction, you mean macros, Greg has a great guide: http://www.greghendershott.com/fear-of-macros/ 15:04 rindolf: asumu: well, not only that. 15:04 rindolf: I mean features of the core language. 15:04 rindolf: Like closures, dictionaries, macros, subroutines, syntax, mini-languages, etc. 15:04 rindolf: OOP. 15:05 rindolf: Things that enhance your productivity. 15:06 asumu: That is what the Guide is intended to be. 15:06 asumu: To an extent. 15:06 rindolf: asumu: ah, OK. 15:06 rindolf: asumu: maybe I'll go over it. 15:06 asumu: It's definitely worth reading at least parts of it. 15:06 asumu: Probably too long to read front to back. 15:07 asumu: But you can just pick and choose topics that interest you (like the ones you listed). 15:08 rindolf: asumu: OK, thanks. 15:09 asumu: And as Danny said, feedback welcome. 15:23 (quit) Nisstyre: Read error: Connection reset by peer 15:25 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 15:26 (join) Nisstyre 15:28 (join) red_trumpet 15:30 (quit) mye: Quit: mye 15:31 rindolf: asumu: thanks. 15:32 red_trumpet: Hi, I've got a problem with a racket-program. I modified the UFO-example (http://bit.ly/TunjPB) to be a world, so I could change the direction of the UFO. You can find my source-code on pastebin: http://pastebin.com/mkZ1eNTL . But when I try to run this, I get an error in line 21: 15:32 red_trumpet: world-posx: contract violation 15:32 red_trumpet: expected: world? 15:32 red_trumpet: given: (object:image% ...) 15:32 red_trumpet: But why is 'w 15:33 red_trumpet: ' an image? It should be a world... 15:33 dyoo: reading the code now... 15:33 dyoo: (by the way, perhaps using the check-with form in big-bang will help you find the problem) 15:34 dyoo: see: http://docs.racket-lang.org/teachpack/2htdpuniverse.html#(form._((lib._2htdp/universe..rkt)._check-with)) 15:34 dyoo: may help catch whatever's causing the problem at an early time. Ok, reading code... 15:35 dyoo: found it. 15:35 dyoo: your ticker function is not returning a world. 15:35 dyoo: Note: a test case on ticker would have caught this much earlier. 15:36 dyoo: something like (check-expect (ticker (world 50 50 0)) (world 50 50 0)) 15:36 dyoo: which is exactly why you should be writing test cases. :) 15:36 red_trumpet: Ok, I haven't learned about this testing-function yet, but this might be awesome, I'll have a look on this. 15:38 dyoo: strongly recommend it. If you haven't seen this yet: http://www.ccs.neu.edu/home/matthias/HtDP2e/ 15:40 (quit) jonrafkind: Ping timeout: 240 seconds 15:43 (quit) k0001_: Ping timeout: 265 seconds 15:44 (join) RacketCommitBot 15:44 RacketCommitBot: [racket] plt pushed 7 new commits to master: http://git.io/Q_jYdA 15:44 RacketCommitBot: racket/master 7b0a13b Ryan Culpepper: load root certificates from windows system certificate store... 15:44 RacketCommitBot: racket/master 438f906 Ryan Culpepper: reset statement after use 15:44 RacketCommitBot: racket/master 3d37eb4 Ryan Culpepper: untabify, #lang 15:44 (part) RacketCommitBot 15:45 red_trumpet: Thank you for your help dyoo! It works now :) 15:46 red_trumpet is reading HtDP2 ;) 15:54 (quit) neilv: Quit: Leaving 16:03 (join) jonrafkind 16:03 red_trumpet: Ok, I have to go to bed, writing an exam tomorrow, good n8 16:03 (quit) red_trumpet: Quit: Page closed 16:05 (join) RacketCommitBot 16:05 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/ZuIqFA 16:05 RacketCommitBot: racket/master 07b8507 Jens Axel Søgaard: Rename to bit-vector-popcount 16:05 (part) RacketCommitBot 16:05 asumu: Anyone know the answer to this? https://twitter.com/ggelfond/status/273891597404483585 16:05 asumu doesn't use a Mac 16:05 dyoo: haven't written a guide, but it's a few changes 16:06 dyoo: Modify ~/.MacOS/environment.plist so it has the racket bin in path 16:08 soegaard: That is, if he install Racket simply by copying the folder into /Applications all he needs to do, is to add the folder to PATH. 16:08 dyoo: though according to: http://apple.stackexchange.com/questions/57385/where-are-system-environment-variables-set-in-mountain-lion, that's been changed 16:09 (quit) Jarod-: 16:09 soegaard: Is it enough to add it to .bashrc ? 16:13 asumu: dyoo: can you tweet a reply? 16:13 dyoo: soegaard: according to http://apple.stackexchange.com/questions/51677/how-to-set-path-for-finder-launched-applications/51678, no. Darn, this not exactly as straightforward as I initially thought 16:14 dyoo: asumu: no, unfortunately what I thought before doesn't work on mountain lion anymore 16:14 dyoo: what a mess... 16:14 asumu: Oh, hmm. That's unfortunate. 16:15 soegaard: If the original tweeter only needs to use the programs from the command line, then .bashrc ought to be enough. Right? 16:15 soegaard: The other mess is, well, unfortunate. 16:15 (quit) nilyaK1: Read error: Connection reset by peer 16:16 dyoo: soegaard, yeah 16:17 dyoo: looking into it: reason Apple gives for the backwards-incompatible change is security: http://support.apple.com/kb/TS4267 16:18 (quit) ohama: Disconnected by services 16:18 (join) jrslepak1neu 16:18 (join) mizu_no_oto 16:19 (join) ohama 16:20 soegaard: Security. Who can argue against someone chanting "security". 16:20 (join) Kaylin 16:21 (join) dca- 16:22 (quit) masm: *.net *.split 16:22 (quit) dca_: *.net *.split 16:22 (quit) jrslepak_neu: *.net *.split 16:30 (join) masm 16:31 (quit) hash_table: Ping timeout: 265 seconds 16:34 (quit) soegaard: Quit: soegaard 16:36 bremner: Apparently chanting "Developers" works too. 16:43 Cryovat throws a chair at bremner 16:48 (join) soegaard 16:55 (join) Agent-P 16:55 Agent-P: Hello 16:58 asumu: Hi. 17:03 Agent-P: Hey asumu 17:03 Agent-P: could you please help me to solve a problem in Racket ? 17:04 Agent-P: http://pastebin.com/pQj7wKSP 17:09 rindolf: Agent-P: why do you have a one-letter spacing between each letter? 17:09 (quit) rindolf: Quit: Yay! I'm a llama again. http://www.shlomifish.org/ 17:11 asumu: soegaard: JFYI, I think you missed renaming bit-vector-count in the docs 17:11 asumu: Agent-P: I'm not sure what the question is. 17:13 soegaard: asumu: Thanks for the tip. 17:13 (quit) mizu_no_oto: Ping timeout: 260 seconds 17:13 dyoo: A concrete example of why one would want a documentation system that actually uses the language bindings as in Scribble: in the documentation to a Java library (JSON), they misdocument the add() method as the put method. There is no put method. http://www.json.org/javadoc/org/json/JSONArray.html#put(boolean) 17:15 dyoo: … gah, never mind. Completely backwards-incompatible change, yet again, between versions of _that_ library. 17:15 (join) RacketCommitBot 17:15 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/HkwDsQ 17:15 RacketCommitBot: racket/master 6e60fb0 Jens Axel Søgaard: Fixed popcount name in docs 17:15 (part) RacketCommitBot 17:15 (quit) kofno: Remote host closed the connection 17:16 soegaard: In this case I thought I had amended the change to a previous commit, but somehow it got lost. 17:16 Agent-P: http://pastebin.com/rhRR8and 17:16 Agent-P: this is a new paste 17:16 Agent-P: of the whole code 17:17 dyoo: Agent-P: … so, what's the probleM/ 17:17 asumu: Agent-P: ok, that is more readable. I think you will have to explain 1) what you're trying to do 2) why it doesn't work 17:17 dyoo: problem? 17:17 Agent-P: How to get a new list of marchandise with respecting the tax-categories list ? 17:18 dyoo: I don't understand the question yet. 17:18 Agent-P: xD 17:18 Agent-P: ok 17:18 Agent-P: I take 'Book from the list of marchandise 17:18 Agent-P: then look for the tax for 'Book 17:18 Agent-P: and add 0.07 % to the price 17:18 Agent-P: and I should have a new list 17:19 Agent-P: containing : 17:19 Agent-P: "The Joy of Sets: Fundamentals of Contemporary Set Theory" 'Book 71.2453 17:19 dyoo: Can you express what you just said in terms of a test case? 17:19 Agent-P: (check-expect) u mean ? 17:19 Agent-P: ok 17:20 Agent-P: (check-expect (add-tax some-items tax-categories) 17:20 Agent-P: (list 17:20 dyoo: e.g. (check-expect (add-tax-some-items (list (first-item))) ) 17:20 Agent-P: exactely .. 17:20 Agent-P: ok I make a new pastebin 17:20 dyoo: If you don't want to write the expected results of all your items in some-list, make the test case smaller. Start small, then get it bigger. 17:21 (join) SunMoonStar 17:21 (quit) SunMoonStar: Max SendQ exceeded 17:21 (part) dca-: "ERC Version 5.3 (IRC client for Emacs)" 17:21 (join) SunMoonStar 17:21 Agent-P: http://pastebin.com/6NxU1Z0v dyoo 17:22 (quit) SunMoonStar: Max SendQ exceeded 17:22 asumu: BTW: if you make many pastebins, you may want to use gist.github.com instead. You can revise your gists and retain a history. 17:23 (join) SunMoonStar 17:23 Agent-P: thanks asumu for the information 17:23 (quit) SunMoonStar: Max SendQ exceeded 17:23 dyoo: Can you solve a slightly simpler problem? 17:24 (join) SunMoonStar 17:24 dyoo: That is, so you've got a function that eats a list of items and returns another list. 17:24 (quit) SunMoonStar: Max SendQ exceeded 17:24 dyoo: Simplification: can you design a function that eats a _single_ item, and returns a _single_ item with the tax included? 17:25 (join) SunMoonStar 17:25 (quit) SunMoonStar: Max SendQ exceeded 17:25 Agent-P: no I can't because it should be done with the map function 17:25 Agent-P: and I don't really have any idea about using this function ! 17:26 (join) SunMoonStar 17:26 (quit) SunMoonStar: Max SendQ exceeded 17:27 (join) SunMoonStar 17:27 (quit) SunMoonStar: Max SendQ exceeded 17:27 (join) SunMoonStar 17:27 dyoo: I'm not precisely asking you because that's what the final solution's going to look like: I'm asking because if you're really stuck, then you need to _build_ toward the solution. Use it as scaffolding toward the solution you're looking for. 17:27 (quit) SunMoonStar: Max SendQ exceeded 17:28 dyoo: and if you had something that worked on single items, then you can repeatedly use it on every element in your list, so it's not an entirely useless helper function. :) 17:29 (join) SunMoonStar 17:29 (quit) SunMoonStar: Max SendQ exceeded 17:30 (join) SunMoonStar 17:30 Agent-P: hmmm ok dyoo I'll just try to make a function to do it with the first element ! 17:30 (part) Agent-P: "Verlassend" 17:30 (quit) SunMoonStar: Max SendQ exceeded 17:30 (join) Agent-P 17:31 dyoo: Write a function to do it on _an_ element. Don't hardcode it to lists of just one element. 17:31 (join) SunMoonStar 17:31 dyoo: (BIG HINT: the helper I'm trying to get you to write is exactly the thing you want to feed into map later on.) 17:32 (quit) SunMoonStar: Max SendQ exceeded 17:33 dyoo: Just as a high-level approach on these kinds of problems; if you're designing a function that works on lists, usually it's easier to start on first designing the one that works on single elements, and then reuse that as a helper to the list-eating version. 17:34 (join) SunMoonStar 17:34 (quit) SunMoonStar: Max SendQ exceeded 17:34 (join) SunMoonStar 17:34 (quit) SunMoonStar: Max SendQ exceeded 17:37 (join) SunMoonStar 17:37 (quit) SunMoonStar: Max SendQ exceeded 17:37 (quit) netrino: Quit: Ave! 17:38 (join) SunMoonStar 17:38 (quit) SunMoonStar: Max SendQ exceeded 17:39 (join) SunMoonStar 17:39 (quit) SunMoonStar: Max SendQ exceeded 17:40 (join) SunMoonStar 17:41 (quit) SunMoonStar: Max SendQ exceeded 17:42 (join) kofno 17:42 (join) SunMoonStar 17:42 (quit) SunMoonStar: Max SendQ exceeded 17:44 (join) SunMoonStar 17:44 (quit) SunMoonStar: Max SendQ exceeded 17:46 (join) SunMoonStar 17:46 (quit) SunMoonStar: Max SendQ exceeded 17:47 (join) SunMoonStar 17:47 (quit) SunMoonStar: Max SendQ exceeded 17:48 (join) SunMoonStar 17:48 (quit) SunMoonStar: Max SendQ exceeded 17:49 (join) SunMoonStar 17:49 (quit) SunMoonStar: Max SendQ exceeded 17:50 (join) SunMoonStar 17:50 (quit) SunMoonStar: Max SendQ exceeded 17:51 (join) SunMoonStar 17:51 (quit) SunMoonStar: Max SendQ exceeded 17:52 (join) SunMoonStar 17:53 (quit) SunMoonStar: Max SendQ exceeded 17:53 (join) SunMoonStar 17:54 (quit) SunMoonStar: Max SendQ exceeded 17:55 (join) SunMoonStar 17:55 (quit) SunMoonStar: Max SendQ exceeded 17:56 (join) SunMoonStar 17:57 (quit) SunMoonStar: Max SendQ exceeded 17:59 (join) SunMoonStar 17:59 (quit) SunMoonStar: Max SendQ exceeded 18:00 (join) SunMoonStar 18:00 (quit) SunMoonStar: Max SendQ exceeded 18:01 (join) SunMoonStar 18:01 (quit) SunMoonStar: Max SendQ exceeded 18:02 (join) SunMoonStar 18:03 (quit) SunMoonStar: Max SendQ exceeded 18:03 (quit) jeapostrophe: Ping timeout: 246 seconds 18:03 (join) SunMoonStar 18:03 (quit) SunMoonStar: Max SendQ exceeded 18:04 (join) SunMoonStar 18:05 (quit) SunMoonStar: Max SendQ exceeded 18:05 (quit) jrslepak: Quit: What happened to Systems A through E? 18:05 (join) SunMoonStar 18:05 (quit) SunMoonStar: Max SendQ exceeded 18:06 (join) SunMoonStar 18:06 (quit) SunMoonStar: Max SendQ exceeded 18:07 (join) SunMoonStar 18:07 (quit) SunMoonStar: Max SendQ exceeded 18:09 (join) SunMoonStar 18:09 (quit) SunMoonStar: Max SendQ exceeded 18:10 (join) SunMoonStar 18:10 (quit) SunMoonStar: Max SendQ exceeded 18:12 (join) SunMoonStar 18:12 (quit) SunMoonStar: Max SendQ exceeded 18:14 (join) SunMoonStar 18:14 (quit) SunMoonStar: Max SendQ exceeded 18:16 (join) SunMoonStar 18:19 (quit) Kaylin: Read error: Connection reset by peer 18:21 Agent-P: well 18:21 Agent-P: dyoo : http://pastebin.com/y84gw08K 18:21 (join) Kaylin 18:21 dyoo: again, strong suggestion: do NOT hardcode this to work on lists of one element 18:22 (quit) mceier: Quit: leaving 18:23 Agent-P: what do you mean ? 18:23 dyoo: that is, since you're trying to write find-tax-category: (listof item) (listof tax) -> (listof item) 18:23 dyoo: You might find it easier to do: find-tax-category1: item (listof tax) -> item 18:24 dyoo: that way, one of your arguments is simpler to deal with: it's just a single item rather than a whole list of them 18:24 (join) anRch 18:25 Agent-P: I couldn't translate this : after finding that the symbols match write the tax in a list and start with the second element of the listof item ... 18:25 dyoo: pretty much what you've got right now, except you won't need the (first listof_item) stuff 18:25 (join) hash_table 18:26 Agent-P: I'll get an error if I remove the "first" 18:27 Agent-P: from (item-category(first listof_item)) 18:27 dyoo: Well, yeah, since the types are changing. It should, unless you also change how you're using the function. 18:28 dyoo: Right? We used to have a function that works on a list of one element: if we rip out the first part, then we also have to make sure we call it with just one element. 18:30 (quit) soegaard: Quit: soegaard 18:31 Agent-P: right 18:31 (quit) hash_table: Ping timeout: 256 seconds 18:31 Agent-P: well I'll take a look at my code again 18:35 Agent-P: I couldn't understand this part : if we rip out the first part, then we also have to make sure we call it with just one element. 18:40 Agent-P: dyoo : I couldn't understand this part : if we rip out the first part, then we also have to make sure we call it with just one element. 18:40 dyoo: Your uses of find-tax-category in your test cases used to say 18:40 dyoo: (find-tax-category (list item1) some-tax-list) 18:41 dyoo: If you then modify find-tax-category so it takes the element directly, then you need to change the use so it matches 18:41 dyoo: ==> (find-tax-category item1 some-tax-list) 18:42 dyoo: That is, since I'm advocating find-tax-category's contract to be: 18:42 dyoo: find-tax-category: item (listof tax) -> item 18:42 dyoo: then using it like this: 18:43 dyoo: (find-tax-category (list …) some-tax-list) 18:43 dyoo: can't possibly work anymore. :) 18:44 dyoo: It's a matter of the shapes not fitting in anymore: circle doesn't fit into rectangular peg 18:44 dyoo: (or did I get that backwards? rectangular peg doesn't go into circular hole) 18:46 Agent-P: hhhhhhhhh 18:46 Agent-P: ok you're right :) 18:47 Agent-P: I'll try to solve the problem :) 18:55 (join) jeapostrophe 18:55 (quit) jeapostrophe: Changing host 18:55 (join) jeapostrophe 18:56 (quit) dyoo: Quit: dyoo 18:58 (quit) kofno: Remote host closed the connection 19:01 Agent-P is so confused ! 19:02 (quit) jonrafkind: Quit: Ex-Chat 19:03 (join) jonrafkind 19:03 (quit) jonrafkind: Changing host 19:03 (join) jonrafkind 19:06 (quit) anRch: Quit: anRch 19:14 (quit) bitonic: Read error: Operation timed out 19:15 (join) mye 19:17 (join) nathanpc 19:30 ozzloy: how do i build the guide? 19:30 Agent-P: dyoo still here ? 19:30 ozzloy: short of building all of racket, that is 19:35 (quit) MayDaniel: Read error: Connection reset by peer 19:36 Agent-P: http://pastebin.com/JTncT5Fy 19:36 Agent-P: this is the function again 19:36 Agent-P: I want to modify the function so that it takes the element directly ... 19:36 mye: Agent-P: there is no purpose statement, no examples 19:37 Agent-P: I have examples ofcourse : 19:37 Agent-P: wait a second 19:37 (join) sw2wolf 19:39 Agent-P: http://pastebin.com/s0Ziz7Gy 19:39 Agent-P: this is the whole code 19:40 Agent-P: I'm trying to create a function that takes a list of item and a list of tax categories ... a list of item contains the name category and price 19:41 Agent-P: and a list of tax categories contains the category and the tax that should be added 19:42 Agent-P: so I want extract from both lists a new list of numbers which contains the Tax that should be added for every price of the list of item 19:42 Agent-P: for example : 19:42 Agent-P: in the list of item ... I take the first line .. the category which is 'Book 19:42 Agent-P: I compare the symbol till I find this symbol in the tax lists 19:43 Agent-P: and when I find the symbol I take the tax price which is : 0,07 and put it in a new list 19:43 Agent-P: then i go to the next item 19:44 Agent-P: and compare the category symbol of this item to the tax categories till I find the symbol 19:44 Agent-P: and go to the price and put it in the list where i putted the 0,07 but it should be in second line anyway 19:44 Agent-P: and .... 19:44 Agent-P: so the length(listof_item) = length(listof_numbers 19:44 Agent-P: ) 19:47 mye: Agent-P: which teaching language is this? 19:47 (join) mizu_no_oto 19:47 Agent-P: what do you mean ? 19:47 mye: beginning student ok that's what drracket said 19:47 mye: are u using drracket? 19:48 Agent-P: yes 19:48 mye: down in the lower left is a language selection thingy 19:48 Agent-P: yes 19:48 mye: that's what I meant :-) 19:49 Agent-P: I choosed in German : Zwischenstuffe mit Lambda 19:49 Agent-P: ... 19:49 Agent-P: Oh ok 19:50 (quit) jonrafkind: Ping timeout: 260 seconds 19:53 (join) jeapostr1phe 19:53 (quit) jeapostrophe: Read error: Connection reset by peer 19:54 (quit) Nisstyre: Quit: Leaving 19:54 (join) Nisstyre 19:54 mye: right, I got some warm tea now. Agent-P, have you written test cases for the function you want to write? 19:55 Agent-P: Oh ok :D 19:55 Agent-P: No I didn't 19:55 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 19:55 Agent-P: I've got to smoke a cigarette ... "in my head "ZoooMbie" " 19:56 mye: Agent-P: start with the test cases so you know that you know what you want 19:56 Agent-P: OK 19:56 Agent-P: Normally I should get : 19:57 Agent-P: this list 19:57 Agent-P: (list 0.07 0.07 0.07 0.19 0.19 0.19 0.07 0.19) 19:57 Agent-P: when I apply this function to my listof_item "some-items" 19:58 (quit) Kaylin: Read error: Connection reset by peer 19:58 Agent-P: I just finished typing my test 20:00 (join) Kaylin 20:03 (join) mizu_no_oto 20:03 (join) kofno 20:05 (join) k0001 20:07 (join) m_ 20:12 (quit) francisl: Ping timeout: 264 seconds 20:12 (quit) sw2wolf: Remote host closed the connection 20:13 (join) sw2wolf 20:21 (join) JStoker 20:27 (quit) JStoker: Excess Flood 20:29 (join) jrslepak 20:30 (quit) cdidd: Ping timeout: 264 seconds 20:38 (quit) samth: Ping timeout: 246 seconds 20:41 (quit) Agent-P: Quit: Verlassend 20:42 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 20:45 (join) Agent-P 20:51 (join) JStoker 21:06 (quit) walter: Read error: Connection reset by peer 21:07 (join) walter 21:11 (quit) masm: Quit: Leaving. 21:11 (join) francisl 21:13 (join) furble 21:13 (join) danl-ndi 21:14 danl-ndi: is there a good example of using process or system to spawn a process that can be killed with a ctrl-c at the repl? 21:15 (quit) furble: Client Quit 21:26 sw2wolf: What do you get when running (system "ping ...") ? 21:26 sw2wolf: in repl 21:26 (quit) groms: Ping timeout: 276 seconds 21:27 danl-ndi: hmm... maybe it already does what I want.... 21:27 danl-ndi: seems to work 21:28 danl-ndi: ok maybe not 21:30 danl-ndi: user break, but the process keeps running 21:31 sw2wolf: in recket or drrackt ? 21:32 asumu: ozzloy: raco setup scribblings/guide 21:32 asumu: If you want it in PDF there's an option for that too, I think. 21:32 ozzloy: asumu, thanks! 21:32 asumu: Or you could just download a PDF from the pre-release site. 21:32 ozzloy: asumu, i ended up building the entire thing 21:32 danl-ndi: sw2wolf: ah, it seems to be only when running racket under emacs 21:33 asumu: ozzloy: http://pre.racket-lang.org/docs/pdf/ 21:33 sw2wolf: danl-ndi: sorry i cannot test it now 21:33 ozzloy: asumu, not quite what i want. there's a typo that i want to fix. i've been proofreading the guide 21:33 asumu: ozzloy: aah, I see. Nice. :) 21:33 ozzloy: it's a project i've done off and on for about a year now 21:40 ozzloy: raco setup scribblings/guide seems to build the already installed guide 21:41 ozzloy: i guess i could go edit the source in there, but i have a separate working directory i want to build from 21:41 asumu: ozzloy: oh, do you have multiple Racket installs? 21:41 ozzloy: do i to `raco setup scribblings/guide` from the top of the git repo? 21:41 asumu: Or actually, you probably want `raco scribble ...` 21:41 asumu: If you're not editing the source directly in your Racket install 21:42 ozzloy: raco scribble racket/collects/scribblings/guide then? 21:42 ozzloy: where the first "racket" is the root of the git clone? 21:42 ozzloy tries that 21:42 asumu: That should work if you're in the right place. You probably need the .scrbl at the end too. 21:43 asumu: Or guide/guide.scrbl (or whatever the main file is) 21:44 danl-ndi: appears to be a cygwin emacs bug 21:46 ozzloy: aww, it complains about "collects/scribblings/guide/compiled/guide_scrbl.zo::0: read (compiled): wrong version for compiled code" 21:46 ozzloy: compiled version: 5.3.1.9, expected version 5.3.1.2 21:47 ozzloy: so does that mean i _do_ have to compile the rest of racket to compile the scribble? 21:47 asumu: ozzloy: Oh hum. Try `raco make` on the same file. 21:47 ozzloy: on guide.scrbl? 21:47 asumu: Yeah. 21:47 asumu: Then run scribble again. 21:48 ozzloy: k 21:48 (join) mizu_no_oto 21:49 ozzloy: you mean `raco make guide.scrbl && raco scribble guide.scrbl`, right? 21:49 asumu: http://www.cs.uni.edu/~wallingf/blog/archives/monthly/2012-11.html#e2012-11-28T18_34_12.htm <-- maybe dyoo should get in touch with him 21:49 asumu: ozzloy: yes, I think that should fix the version issue. 21:49 ozzloy: cool. the first one finished. waiting for the second 21:50 ozzloy: yay! 21:50 ozzloy: it worked 21:50 ozzloy: asumu, thanks! 21:50 asumu: No problem. 21:50 ozzloy: macros are blowing my mind 21:50 asumu: They are pretty great. 21:51 ozzloy: asumu, http://docs.racket-lang.org/guide/pattern-macros.html "Thus, this macro matches the form (swap form1 form2) for any form_1 and form_2." 21:51 (join) groms 21:51 ozzloy: i corrected that to "(swap form_1 form_2) for any form_1 and form_2." 21:51 ozzloy: i know this is minor, but what's more ... racket-y 21:52 ozzloy: with or without the underscore 21:53 asumu: I would use an underscore there just because it's used elsewhere on that page. 21:53 ozzloy: yeah, that's what i went based on too 22:01 (join) hash_table 22:07 (quit) m_: Ping timeout: 245 seconds 22:08 (join) k0001_ 22:11 (quit) k0001: Ping timeout: 246 seconds 22:32 (quit) myx: Ping timeout: 264 seconds 22:34 (join) rudybot 22:37 (quit) mithos28: Quit: mithos28 22:38 (join) francisl_ 22:38 (join) mithos28 22:41 (quit) SunMoonStar: Ping timeout: 246 seconds 22:41 (quit) Shviller: Ping timeout: 252 seconds 22:41 (join) Shviller 23:01 (quit) francisl_: Quit: francisl_ 23:03 (join) jackhammer2022 23:08 (join) jonrafkind 23:14 (join) francisl_ 23:19 (quit) hash_table: Ping timeout: 264 seconds 23:25 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 23:34 (quit) nathanpc: Quit: Computer has gone to sleep. 23:39 (join) samth 23:41 (join) spiderweb 23:48 (quit) k0001_: Ping timeout: 248 seconds 23:50 (join) k0001 23:52 (join) SunMoonStar 23:55 (join) chrxn_ 23:57 (quit) chrxn: Ping timeout: 248 seconds 23:57 (nick) chrxn_ -> chrxn 23:57 (quit) francisl_: Quit: francisl_ 23:59 mithos28: why are the ctypes constructors in ffi/unsafe instead of just in ffi?