00:00:00 both succeed 00:00:32 to go up a level, I am attempting to implement http://shaurz.wordpress.com/2008/03/11/haskell-style-parser-combinators-in-scheme/ in Racket 00:00:33 http://tinyurl.com/ysphwg 00:01:04 and presently attempting expand-parser-body :) 00:01:06 klutometis: The thing is, fold is essentially list -> *; unfold is essentially * -> list. To have a common operator for implementing fold and unfold, then, it needs to support * -> *. 00:01:11 Both succeed? Are you at the REPL, or did you put these into a file with `#lang racket[/base]' at the top? 00:01:13 klutometis: And neither fold nor unfold is that. 00:01:17 at the REPL 00:01:34 I'll check with a file with #lang when I get home 00:01:38 *elly* back in 45 minutes 00:01:42 OK. 00:04:16 klutometis: The reason you can implement map with either fold or unfold is because map is list -> list, which fits both list -> * and * -> list. 00:06:17 -!- Oejet [~oejet@212.45.122.120] has quit [Ping timeout: 255 seconds] 00:07:39 cky: interesting; how did you solve what seems to be a type-disparity? 00:10:44 klutometis: I didn't. That's why I said it was challenging. 00:17:27 -!- josephholsten [~josephhol@216.16.128.242] has left #scheme 00:21:38 woo.. anyone can teach me to use emac =.= 00:21:45 have just make a change from vim 00:22:25 Gmind: oh, hey, sorry: what does "woo.." signify: is it accompanied by waving? 00:22:45 I lost a "w" 00:22:49 Woow 00:22:51 :P 00:25:04 adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has joined #scheme 00:34:56 -!- samth is now known as samth_away 00:38:25 josephholsten [~josephhol@216.16.128.242] has joined #scheme 00:39:01 -!- josephholsten [~josephhol@216.16.128.242] has left #scheme 00:39:12 bitweiler [~bitweiler@adsl-99-40-236-82.dsl.stl2mo.sbcglobal.net] has joined #scheme 00:39:17 -!- gravicappa [~gravicapp@ppp85-140-67-153.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 00:41:22 good day ;) 00:42:01 hi 00:42:34 are there any books online that can help me learn r6rs? 00:43:04 Doubtful, other than the R6RS itself, which is not a book. 00:43:52 ASL ? 00:44:01 lol 00:44:07 ah? but I know very little about scheme, besides it's easy syntax 00:44:50 I just ask since plt uses r6rs, that's all 00:45:28 the scheme programming language, 4ed 00:45:40 hmmmmmmmmmmm 00:47:13 okay I just finished reading the little schemer and reasoned scheme wwhich I like alot ;) 00:47:28 bitweiler: is that good ? 00:47:52 yeah, but I had to read reason twice 00:48:33 this is what I am trying to learn :http://www.htdp.org/ 00:49:05 bitweiler: is that a friendly book to begin ? 00:49:14 oh, thanks samth_away find it 00:49:57 Gmind: yes if you like recursion 00:50:11 imran_sr [~imran@75-18-254-4.lightspeed.uncyca.sbcglobal.net] has joined #scheme 00:50:13 Kerrick [~Kerrick@kerrick.student.iastate.edu] has joined #scheme 00:50:17 If you don't like recursion, read this sentence again. 00:50:19 Riastradh: I'm back, and still wondering 00:50:25 bitweiler: are you talking about the little schemer ? 00:50:37 aye 00:50:52 elly, MATCH is not defined for syntax. 00:51:03 hm 00:51:05 I bought both this summer 00:51:08 but it is in chicken, I guess? 00:51:17 I can rework my attempt to use SYNTAX-CASE instead 00:52:06 My previous suggestions (and `what happens if...?' questions) were meant to demonstrate the problem from different angles, but the solution, I believe, is to add (require-for-syntax match) or something; subtitute the appropriate path to the pattern-matching module for `match'. 00:52:44 hey, can I ask about how to set racket as default Scheme evaluator in Emacs ? 00:53:25 scheme-program -name or so ? 00:53:42 hmmm, wait no 00:53:45 is that all ? 00:53:50 that would start the gui actually 00:54:01 you want the backend 00:54:12 Something lie (setq scheme-program-name "mzscheme") ? 00:54:18 s/lie/like/ 00:54:18 ah 00:54:25 right 00:54:30 when I hit : C-x M-r 00:54:35 and must type again 00:54:39 Racket 00:54:50 anyway to assign this as default in emacs ? 00:55:11 What does C=x M-r do for you? 00:55:21 (setf scheme-program-name "/usr/bin/blah") 00:55:34 or wherever your mzscheme is 00:55:46 oops. my mistake, it's C-c M-r 00:55:49 in your .emacs 00:55:53 I never know whether to setf or setq, why can't I just set!? ;) 00:56:12 setq is more sepecif, setf is more general 00:56:18 setf look kind of familiar =.=! 00:56:36 if you are inclined to type safety or forced to use setq 00:57:20 hrmmm, actually i'm lost here 00:57:20 anyone ? 00:57:48 i think common-lisp is not == scheme 00:58:10 homie: what's the different ? 00:58:36 anyone: can help me on make racket as default Scheme eval in Emacs ? 00:58:43 pass by value against pass by reference 00:58:46 for exmape 00:58:50 exmample 00:59:27 there are even implementations of variuos scheme oh man.... 01:00:40 i fail the keyboard more often with every snip.... 01:00:45 puuuh 01:00:51 sorry :)= 01:01:02 Gmind: Read my last message again. :) 01:01:17 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 264 seconds] 01:01:23 franki^: ok , got it 01:01:35 Gmind: Oops, not my last one, but the only one that contained ELisp ;) 01:02:03 =.= Elisp? 01:02:09 I dunno what relate to Elisp 01:02:14 -!- em [~em@unaffiliated/emma] has quit [Ping timeout: 240 seconds] 01:03:22 has anyone tried Ikarus? 01:03:42 another scheme impl. 01:03:55 i only tried the mzscheme 372 or so 01:04:05 Gmind: Emacs Lisp is the language that Emacs is written in (mostly) and customised with 01:04:13 I don't expect using Emacs is so much fun :D 01:04:52 franki^: does that mean every emacs version got LISP inside it ? 01:04:59 for getting the hutt's system up 01:05:34 Gmind: Yes, Emacs is really just a Lisp interpreter 01:05:37 cause it woul fail with the other, and with the one required for arc 01:06:16 is racket a replacement for mzscheme? 01:06:33 preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #scheme 01:06:44 racket is more of a gui thing or ? 01:06:57 oh... 01:06:59 it's backed my mzscheme 01:07:05 the newer versions 01:07:57 think I going to ikarus for a spin on my learning experience 01:08:46 I wouldn't want to discourage you from using Ikarus, I'm sure it's a fine implementation, but I think it's not too heavy on the documentation. 01:08:48 is there a shortcut key combo to trigger the inferior Scheme ? 01:08:58 If that's the kind of learning experience you want then go for it. ;) 01:09:14 Gmind: You can define one 01:09:30 to wich version of the implementations does mzscheme actually corresp. in what "lisp in small pieces" is presentig us ? 01:09:53 Gmind: (global-set-key "combination-you-want" 'run-scheme) 01:10:00 which chapters are the closest ? 01:10:20 franki^: okay I'll try it and see if not I can always change implentations, just hoping to find one I can get comfortable with in time 01:10:24 or are the changes of more weight in the meantime ? 01:11:30 bitweiler: Yeah, I don't think it matters too much if you switch around a bit at the start, although I'm by no means an expert Schemer, so maybe I'm giving terrible advice. ;) 01:11:39 how does a continuation differ from a closure then ? 01:15:57 -!- saccade [~saccade@209-6-54-113.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Quit: This computer has gone to sleep] 01:16:50 saccade [~saccade@209-6-54-113.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 01:22:23 homie: a continuation is like a return, a closure is like a function pointer 01:23:06 :) 01:24:00 is ilisp mode helpful when working with scheme inside emacs 01:28:10 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 245 seconds] 01:33:09 adu: thanks 01:33:40 adu: so one is complete the other not ? 01:33:53 adu: is that what you wanted to say ? 01:34:09 i was thinking of taking a crack at some of the facebook puzzles in scheme: http://www.facebook.com/careers/puzzles.php 01:34:35 i wonder if they'd frown on c compiled from scheme, though; it's not clear whether their approved target-languages have to be human generated. 01:35:41 is php one of their targetted languages? 01:35:51 hmm 01:36:08 *homie* grumbles 01:38:44 -!- xwl_ [~user@nat/nokia/x-dsmlhkhrqdlogqab] has quit [Remote host closed the connection] 01:41:08 klutometis: nice idea 01:41:39 I have been using FB for a long time ,but don't even notice about this puzzle 01:43:23 franki^: it worked , thanks :)) 01:43:37 -!- JuanDaugherty [~Ren@cpe-72-228-177-92.buffalo.res.rr.com] has quit [Quit: Exeunt IRC] 01:43:59 Gmind: I'm glad. :) 01:44:52 DrDuck [~duck@146.229.118.42] has joined #scheme 01:54:05 is there an emacs scheme that useful for completions and compiling 01:55:59 icomplete-mode ? 01:56:02 ido-mode ? 01:56:08 icicles ? 01:56:15 there are many..... 01:56:33 partial-complete-mode ???...... 01:56:35 etc... 01:56:36 elly: You used `define-for-syntax' without having `match' required at the syntax level, which means that `match' is considered as a function application, and `_' is therefore the usual wildcard for templates, leading to the error you got. 01:56:42 oh, have completions ? 01:56:46 eli: :( 01:57:11 elly: If you (require (for-syntax racket/match)) then you do get a `match' binding, and that binding will interpret the `_' as you wanted. 01:57:53 must admire that auto fill stuff make me lazy 01:58:30 =)) I mean admit 01:58:36 what a losing mind 01:58:40 franki^: The name of the executable should be "racket", not "mzscheme" which is now a compatibility thing. 01:59:20 eli: woo! 01:59:28 eli: Oops, sorry; I'm not a racket user, but I'll remember that for any advice I give in here in the future. 01:59:57 Gmind: If you're looking for integration of racket with emacs, then geiser might be a better tool since it's aware of modules; the plain emacs thing is sending expressions to a single repl which will be confusing when you're dealing with modules. 02:00:09 franki^: Yeah, I know -- that's why I mentioned that... 02:00:49 eli: geiser ? 02:01:00 ah, hm, I cannot just do: (quasisyntax (lambda (s) (unsyntax (... using s ...)))) :( 02:01:07 makes sense why, actually 02:01:37 Gmind: http://www.nongnu.org/geiser/ 02:02:07 bitweiler: racket is not a replacement for mzscheme, it's the new name for what mzscheme turned into. 02:02:25 eli: I appreciate it. I'm sometimes hesitant to answer questions because I don't feel qualified, but I take the approach that it's better than people feeling ignored. And hopefully more knowledgeable people will correct me when I'm wrong. :) 02:02:45 homie: The racket executable in itself isn't doing any gui, though it will be able to do that shortly. 02:04:18 oh... finally, I saw someone's poison ;)) 02:04:30 >:) 02:05:17 eli: thanks :P it seem to be great 02:05:32 so from now I don't need to define from terminal 02:07:18 eli: thanks I was wondering about that 02:07:32 eli: ok 02:08:18 eli: i knew it was lib based, but did'nt know which parts were already moved to into the exe 02:19:27 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 02:19:52 hm 02:20:01 paredit-mode bindings are slowly working their way into my brain 02:22:05 has anyone tried building ikarus-0.0.3? 02:22:11 -!- MrFahrenheit [~RageOfTho@users-55-88.vinet.ba] has quit [Ping timeout: 255 seconds] 02:22:19 Your brain is welcome to work its way into paredit-mode bindings too: if you don't like any of them, you can use (define-key paredit-mode-map (kbd "...") 'paredit-...). 02:23:37 so far I'm liking them 02:23:49 I have my screen split in half, with paredit.el on one side and my program on the other :P 02:23:53 Hello, anyone knows a decent scheme implementation with c++ bindings? 02:27:45 homie: `racket' never had any gui parts -- the version that has that is `gracket' (a "gui racket") -- and from the next release there is nothing that needs to be in the executable itself, so `racket' will be able to do gui too, but the gui is just some racket libraries that get loaded. 02:28:18 geiser worked like charm ! :X 02:29:18 god, you give me another sleepless night 02:30:31 phax [~phax@unaffiliated/phax] has joined #scheme 02:30:59 bremner: Of course Facebook accepts PHP solutions; after all, most of the site is written in PHP, and thus they seek PHP engineers. 02:31:09 wierd, gmp-5.0.1 && ikarus doesn't like it 02:31:32 klutometis: Be sure to try the Facebull puzzle. 02:31:43 klutometis: It's reputed to be the spiciest puzzle by far. 02:32:24 cky: could I write like this : (eq? (cons 'Ubuntu '( Emacs Racket Geiser ) ) (sleeplessNight)) 02:32:28 =)) 02:32:40 flmz [~allen@c-24-128-191-124.hsd1.ma.comcast.net] has joined #scheme 02:32:53 Hahahahaha. 02:33:13 -!- flmz [~allen@c-24-128-191-124.hsd1.ma.comcast.net] has left #scheme 02:34:54 -!- phax [~phax@unaffiliated/phax] has quit [Client Quit] 02:35:40 eli: ahahahahah 02:35:49 hmm... 02:35:49 who is phax? 02:35:50 alfa [~allen@c-24-128-191-124.hsd1.ma.comcast.net] has joined #scheme 02:35:56 eli: shoot me down! 02:36:04 lol 02:36:09 homie: Um. eli is one of the core committers to Racket. 02:36:22 homie: As far as much of Racket is concerned, his word is gospel. 02:36:56 ok 02:37:27 who plays the orgel ? 02:39:07 -!- alfa is now known as alfas 02:39:10 -!- alfas is now known as alfa 02:41:02 -!- alfa is now known as alpha 02:41:24 -!- alpha is now known as alpho 02:41:44 exit 02:41:55 alpho: Type /quit 02:41:56 oops 02:41:59 thanks 02:42:10 -!- alpho [~allen@c-24-128-191-124.hsd1.ma.comcast.net] has quit [Quit: Leaving] 02:44:17 dralston [~dralston@S010600212986cca8.va.shawcable.net] has joined #scheme 02:46:58 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: night, all!] 02:47:50 vu3rdd [~vu3rdd@nat/cisco/x-ohzrsgkgzwrsliyi] has joined #scheme 02:51:01 homie: Sorry, I didn't have any intentions on shooting anyone, just wanted to clarify any misconceptions. (And I definitely know that there is still confusion -- part of the plt/mzscheme/mred -> racket rename was to avoid these problems.) 02:52:09 eli: since now i only used racket on windows XP actually, even if it was for only testing if i could get it up, and it works 02:52:29 eli: i don't know what happened to the drscheme part in linux 02:52:56 Most linux distros are slow to respond, so they still have a "plt-scheme" package. 02:53:08 I don't think that there's any distro that went up to racket, yet. 02:53:10 ok 02:53:47 So getting our installers is usually a better idea -- and on linux it's pretty easy: you can install the whole thing into a single directory, which you can then move or just delete when you're done. 02:54:50 homie: no 02:55:24 what I meant to say is that they do different things to the call stack 02:56:26 returns generally decrement the stack (i.e. increment) and function calls generally increment the stack (i.e. decrement) 02:57:13 adu: Except, continuations are much more than just returning. 02:57:18 right 02:57:19 adu: It's like a save game. 02:57:23 You can restore at any point. 02:57:43 *** YOU HAVE DIED *** ; oh, I think I'll just call my continuation now 02:57:59 lol 03:02:00 phew 03:02:05 I got parser combinators to work in racket 03:02:13 cribbing heavily off http://shaurz.wordpress.com/2008/03/11/haskell-style-parser-combinators-in-scheme/ 03:02:14 http://tinyurl.com/ysphwg 03:02:19 which is for chicken 03:06:02 where is name racket come from ? 03:06:28 hey ain't libgmp.so.3 a gmp.3 file 03:07:33 Gmind: I think because it's an old synonym for 'scheme' - c.f. 'protection racket', 'racketeering' :P 03:08:58 -!- Azuvix [~james@174-27-34-218.bois.qwest.net] has quit [Quit: Leaving] 03:10:22 at 1st when I asked some guys here for a suggestion to get scheme implementation, I thought they are joking 03:10:48 but later I knew racket is new name of the other implementation :P 03:10:57 Gmind: It's a name that was made up after a long time spent looking for a better name. 03:11:39 The criminal meaning goes well with scheme -- which was originally called "schemer", coming from the same neighborhood as other things like "conniver". 03:11:57 There's also the noise sense, which makes it sound a little better, IMO. 03:12:29 And there's the sports thing that doesn't help much, but helps with lame puns (that PL people are very much into). 03:14:43 ;)) sound like a thief 03:15:01 that's what made my impression 03:15:07 (sorry guys :)) ) 03:15:09 I think the criminal theme is present in many other implementations of Scheme too, like Larceny. 03:15:41 (Though, I think that with Lars T. Hansen as one of the primary authors, the name Larceny is no accident either.) 03:16:10 oh.. Larceny =)) 03:16:16 Yeah, larceny is of course a similar pun. 03:16:46 (eg, "petit larceny".) 03:16:57 Hahaha. 03:16:57 lots of Humor around Scheme language =)) 03:17:03 this's funny 03:17:15 *bitweiler* nods 03:17:57 _al [~allen@c-24-128-191-124.hsd1.ma.comcast.net] has joined #scheme 03:18:01 Sleep Larceny 03:18:04 -!- alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has quit [Ping timeout: 265 seconds] 03:18:18 oh, this fit my situation today =)) 03:18:24 alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has joined #scheme 03:19:43 Obviously, it's mostly really bad puns. 03:21:05 is larceny actively maintain? 03:22:54 Kind of. There was a phd student that was active around it, but he graduated so activity will probably go down some. 03:23:16 -!- alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has quit [Ping timeout: 265 seconds] 03:23:39 -!- DrDuck [~duck@146.229.118.42] has quit [Ping timeout: 260 seconds] 03:24:03 wbooze` [~user@xdsl-78-35-162-105.netcologne.de] has joined #scheme 03:24:08 homie` [~user@xdsl-78-35-162-105.netcologne.de] has joined #scheme 03:24:19 -!- adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has quit [Quit: adu] 03:24:49 still wrestling with GMP && ikarus 03:25:00 *bitweiler* growls... 03:26:32 -!- homie [~user@xdsl-78-35-135-44.netcologne.de] has quit [Ping timeout: 255 seconds] 03:26:59 -!- wbooze [~user@xdsl-78-35-135-44.netcologne.de] has quit [Ping timeout: 255 seconds] 03:32:49 In what language does `extract', in the sense of `extract a tarball', translate to a term also meaning `explode'? 03:37:55 *bitweiler* shrugs 03:38:14 don't know please inform us 03:38:41 -!- drdo [~user@2.208.54.77.rev.vodafone.pt] has quit [Ping timeout: 255 seconds] 03:38:52 I don't know either -- that's why I'm asking! 03:39:03 ah 03:39:43 I came across a web page of instructions, among which was `Fetch such and such a tarball, and then explode it.' My guess is that the writer's native language is not English, and that in his language, the verb for extracting a tarball also translates to `explode'. 03:40:38 I've seen `explode' used as a synonym for `decompress'. 03:41:05 Right, in lha. 03:41:37 also in the context of tossing people out airlocks 03:42:48 Oh, natural language, not programming language. I think that's archaic terminology. I seem to remember seeing it in some of the older Unix man pages. 03:43:39 -!- _al [~allen@c-24-128-191-124.hsd1.ma.comcast.net] has quit [Quit: Leaving] 03:43:46 (Take my words with a small grain of salt.) 03:44:01 Maybe it is just archaic English. There was, after all, the pair of operations EXPLODE and IMPLODE in Maclisp for operating on symbols character by character. 03:44:36 (EXPLODE turned a symbol into a list of one-character symbols; IMPLODE did the inverse.) 03:47:41 ;)) 03:48:05 Must say that I like those penguin's imagination 03:48:44 devinus [~devinus@ps23102.dreamhost.com] has joined #scheme 03:48:44 -!- Kerrick [~Kerrick@kerrick.student.iastate.edu] has quit [Read error: Connection reset by peer] 03:48:49 this , indeed, should be cast as a cartoon network series on CN 03:48:53 =)) 03:49:19 Kerrick [~Kerrick@kerrick.student.iastate.edu] has joined #scheme 03:50:02 Um... 03:50:13 Am I missing something? 03:50:38 adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has joined #scheme 03:52:44 timj_ [~timj@e176193044.adsl.alicedsl.de] has joined #scheme 03:52:45 Neat: the SHA-3 finalists have been announced. (The final decision still won't be made for another couple of years, though.) 03:52:53 Yay! *checks* 03:53:00 I hope Bernstein's one is a finalist. 03:53:33 It's not. 03:54:13 BLAKE, Groestl, JH, Keccak, and Skein. 03:54:25 -!- Kerrick [~Kerrick@kerrick.student.iastate.edu] has quit [Ping timeout: 245 seconds] 03:54:37 -!- summersault [~george@189.107.132.152] has quit [Ping timeout: 272 seconds] 03:55:01 (Skein, despite the serious vulnerabilities djb reported in it at .) 03:55:06 after all that work my cpu doesn't have a sse2 instruction set 03:55:20 the helll with ikarus then... 03:55:33 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 03:55:43 That's a bummer (that djb's did not make it). 03:55:55 -!- timj [~timj@e176208132.adsl.alicedsl.de] has quit [Ping timeout: 240 seconds] 04:02:46 -!- tupi [~david@186.205.37.15] has quit [Quit: Leaving] 04:07:56 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 04:08:43 heeki [~user@76.177.227.49] has joined #scheme 04:08:58 Dude anybody here like to code high? 04:09:17 what is that ? 04:09:24 High dude. 04:09:26 Stoned. 04:09:30 Hahahaha. 04:09:31 Off your tits. 04:09:49 *cky* prefers to be sober most of the time, including when coding. 04:09:58 Unfortunate. 04:10:07 Dude tail calls in scheme while high dude. 04:10:17 Shit's fuckin' dancin' dude. 04:10:21 Hahaha. 04:10:39 I'd really prefer to never depend on any of your code. 04:10:42 =.= 04:10:59 Fuck you dude. My high code is so much better. 04:11:03 Dude. 04:11:10 Aeroponic strawberries. 04:11:40 I grow strawberries in my home, and the plants are automatically watered and fertilized by computer. 04:11:47 I'm sure your high code seems pretty awesome to you while you're high. I doubt it'll be awesome in the morning. 04:11:59 Try it before you bash it dude. 04:12:14 I grow fucking amazing strawberries. 04:12:24 The other day, one as big as my hand. 04:13:08 summersault [~george@189.107.132.152] has joined #scheme 04:15:12 -!- heeki [~user@76.177.227.49] has left #scheme 04:15:20 -!- imran_sr [~imran@75-18-254-4.lightspeed.uncyca.sbcglobal.net] has quit [Quit: Leaving] 04:17:47 =.=! he can compile codes to get strawberries ? 04:17:52 cool... 04:19:49 -!- dralston [~dralston@S010600212986cca8.va.shawcable.net] has quit [Quit: Leaving] 04:21:31 hey guys, I'm finding a good picture for my Scheme Page on Facebook 04:21:34 any ideas ? 04:24:17 A lot of parentheses ;) 04:24:44 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Ping timeout: 250 seconds] 04:25:09 Or you could always go with the classic lower-case lambda. 04:25:15 :P can you design it ? 04:25:34 What about a picture of Guy L. Steele, Jr.? 04:25:34 I just want to attract Scheme fans on FB to join :D 04:26:08 Oh, if you're trying to attract lots of Facebookers, just take your pick of bikini-clad women. 04:26:19 =)) no 04:26:25 I mean somewhat original 04:26:36 no sexuality here 04:26:43 LoL 04:26:45 Or even a bikini-clad Guy L. Steele, Jr. dual-wielding parens. 04:27:11 And he could be firing lambda-beams out of his eyes. 04:27:20 sound like a celeb 04:27:25 ha ha ah 04:28:10 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 276 seconds] 04:30:15 -!- mmc [~michal@cs181178061.pp.htv.fi] has quit [Ping timeout: 240 seconds] 04:32:53 =.= anyone ? 04:36:11 Gmind: Make an image with this text: ((call/cc call/cc) (call/cc call/cc)) 04:36:29 what's that ? 04:36:56 That's left as an exercise for the reader. (Seriously, GIYF. :-P) 04:37:23 *cky* tests it out. Hopefully doesn't kill the bot! 04:37:31 rudybot: ((call/cc call/cc) (call/cc call/cc)) 04:37:41 cky: error: with-limit: out of time 04:37:51 Good, the bot survived. 04:38:32 xwl_ [~user@nat/nokia/x-helwbfuqsrmldwvw] has joined #scheme 04:38:55 That's one robust bot. 04:39:41 groovy2shoes: I actually crashed the bot a few days ago. offby1 will attest to that. :-P 04:39:51 Oh no! 04:39:55 =)) cky: which bot ? 04:39:59 Gmind: rudybot. 04:41:09 groovy2shoes: I was doing some fairly gnarly stuff involving continuations and promises, though. I don't think they mix together very well, in many of the Scheme implementations I've tried. :-P 04:41:51 If rudybot crashed, that's a bug. What were you doing? 04:42:47 -!- summersault [~george@189.107.132.152] has quit [Remote host closed the connection] 04:43:28 Riastradh: http://ccl.clozure.com/irc-logs/scheme/2010-12/scheme-2010.12.02.txt Search around 16:20:40. 04:45:05 Hmm... 04:45:27 rudybot: eval (define c (call-with-current-continuation values)) 04:45:32 Riastradh: your sandbox is ready 04:45:32 Riastradh: Done. 04:45:45 rudybot: eval (c 0) 04:45:45 -!- rudybot [~luser@2001:470:1:41:a800:ff:fe3e:cde7] has quit [Remote host closed the connection] 04:45:50 O_o 04:46:03 rudybot really doesn't like continuations, huh? 04:46:25 summersault [~george@189.107.132.152] has joined #scheme 04:47:33 I suspect the problem is that rudybot fails to delimit its evaluation continuation. 04:47:54 *nods* I wonder if the other bots have similar issues. 04:48:02 incubot: (define c (call/cc values)) 04:48:02 # 04:48:06 incubot: (c 0) 04:48:06 Error: unbound variable: c 04:48:13 incubot: (define c (call/cc values)) (c 0) 04:48:13 # 04:48:22 Okay, it obviously hasn't died yet. 04:48:41 incubot: (write 'a) (write 'b) 04:48:41 b# 04:48:53 It didn't evaluate (c 0). 04:49:00 Hmmmm. 04:49:17 incubot: (let ((c (call/cc values))) (c 0)) 04:49:17 Error: call of non-procedure: 0 04:49:24 incubot: (let ((c (call/cc values))) (c c)) 04:49:26 Eval 5915 timed out. 04:49:39 incubot: (let ((c (call/cc values))) (c values)) 04:49:39 # 04:50:28 -!- pygospa [~pygospa@217.191.218.101] has quit [Disconnected by services] 04:50:40 pygospa [~pygospa@kiel-4d066f3c.pool.mediaWays.net] has joined #scheme 04:52:52 ;)) 04:52:58 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 05:03:22 -!- aisa [~aisa@c-68-35-167-179.hsd1.nm.comcast.net] has quit [Quit: aisa] 05:04:58 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 05:05:03 Gmind [~Gmind@113.190.171.11] has joined #scheme 05:10:59 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 05:12:02 nilg [~user@85.239.138.109] has joined #scheme 05:15:44 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Read error: Connection reset by peer] 05:16:04 copumpkin [~pumpkin@12.50.78.130] has joined #scheme 05:16:04 -!- copumpkin [~pumpkin@12.50.78.130] has quit [Changing host] 05:16:04 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 05:17:22 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 05:20:56 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Read error: Connection reset by peer] 05:21:12 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 05:22:32 -!- bitweiler [~bitweiler@adsl-99-40-236-82.dsl.stl2mo.sbcglobal.net] has left #scheme 05:23:59 -!- chemuduguntar [~user@smtp.touchcut.com] has quit [Ping timeout: 255 seconds] 05:31:08 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Quit: groovy2shoes] 05:31:31 Maxel [~Maxel@99.149.168.126] has joined #scheme 05:31:58 -!- Maxel [~Maxel@99.149.168.126] has left #scheme 05:35:15 -!- dfeuer [~dfeuer@wikimedia/Dfeuer] has quit [Ping timeout: 245 seconds] 05:39:20 -!- adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has quit [Quit: adu] 05:48:58 dfeuer [~dfeuer@wikimedia/Dfeuer] has joined #scheme 05:49:40 dralston [~dralston@S010600212986cca8.va.shawcable.net] has joined #scheme 05:49:43 annodomini [~lambda@wikipedia/lambda] has joined #scheme 05:51:16 -!- dralston [~dralston@S010600212986cca8.va.shawcable.net] has quit [Client Quit] 05:51:33 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has quit [Remote host closed the connection] 05:51:56 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 05:52:23 dralston [~dralston@S010600212986cca8.va.shawcable.net] has joined #scheme 05:53:43 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 05:55:40 -!- roderic [~roderic@zerowing.ccs.neu.edu] has quit [*.net *.split] 05:55:40 -!- clog [nef@bespin.org] has quit [*.net *.split] 05:55:40 -!- kniu [~kniu@HOHOHO.RES.CMU.EDU] has quit [*.net *.split] 05:55:40 -!- Hal9k [~Lernaean@unaffiliated/kusanagi] has quit [*.net *.split] 05:59:36 -!- dfkjjkfd [~paulh@137-15-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 05:59:48 roderic [~roderic@zerowing.ccs.neu.edu] has joined #scheme 05:59:49 clog [nef@bespin.org] has joined #scheme 05:59:49 kniu [~kniu@HOHOHO.RES.CMU.EDU] has joined #scheme 05:59:49 Hal9k [~Lernaean@unaffiliated/kusanagi] has joined #scheme 05:59:51 zarchne [~michael@209.40.67.38] has joined #scheme 06:03:15 zarchne? I haven't seen that name in a while. 06:03:51 Yeah, I've been doing other stuff. 06:04:53 Mostly in the language that must not be named. 06:05:15 Lemme guess. Starts with P, 3 letters. Right? :-P 06:07:27 cky: If you mean four letters total, yeah. 06:07:39 PL/I?? :O 06:08:04 ... its syntax worse than JOSS. 06:08:36 Virgule isn't a letter. 06:08:49 (Granted; I was being cheeky.) 06:09:26 I know the darkness of which you speak. 06:10:24 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Read error: Connection reset by peer] 06:10:37 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 06:14:11 print pack('V*', 1213219146) # am I right? 06:14:37 jewel [~jewel@196-215-16-208.dynamic.isadsl.co.za] has joined #scheme 06:14:39 Maxels [~Maxel@99.149.171.140] has joined #scheme 06:14:53 -!- Maxels [~Maxel@99.149.171.140] has quit [Read error: Connection reset by peer] 06:15:16 Maxels [~Maxel@99.149.171.140] has joined #scheme 06:16:37 zarchne: http://www.go-hero.net/jam/10/name/cky <-- no prizes for guessing which language I'm most familiar with. :-P 06:17:28 Gmind [~Gmind@113.190.171.11] has joined #scheme 06:27:20 -!- jewel [~jewel@196-215-16-208.dynamic.isadsl.co.za] has quit [Ping timeout: 245 seconds] 06:29:35 -!- xian [xian@we-are-the-b.org] has quit [Remote host closed the connection] 06:33:07 -!- masm [~masm@bl15-233-135.dsl.telepac.pt] has quit [Quit: Leaving.] 06:46:20 cky: Indeed. 06:47:33 Also, I've been avoiding IRC. 06:47:41 -!- dralston [~dralston@S010600212986cca8.va.shawcable.net] has quit [Quit: Leaving] 06:48:17 What, don't you have valuable time to waste? 06:49:35 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Read error: Connection reset by peer] 06:49:56 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 06:50:50 More or less. 06:54:25 -!- eldragon [~eldragon@84.79.67.254] has quit [Ping timeout: 245 seconds] 06:58:01 eldragon [~eldragon@84.79.67.254] has joined #scheme 07:02:13 -!- gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has quit [Ping timeout: 276 seconds] 07:02:32 gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has joined #scheme 07:02:58 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 07:07:44 minsa [~minsa@c-24-5-121-157.hsd1.ca.comcast.net] has joined #scheme 07:08:48 I am reading "Scheme programming language 4th edition". I want to know whether one of the exercise I am doing is correct. 07:09:09 exercise 2.2.5 from http://www.scheme.com/tspl4/start.html#./start:h0 07:09:26 My answer is : '( (1 . 2) ((c) d) () . () ) 07:09:46 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Read error: Connection reset by peer] 07:09:50 I am pretty sure it is but I have to check. 07:10:07 copumpkin [~pumpkin@12.50.78.130] has joined #scheme 07:10:07 -!- copumpkin [~pumpkin@12.50.78.130] has quit [Changing host] 07:10:07 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 07:29:31 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 07:30:41 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 264 seconds] 07:31:15 minsa: '((a . b) ((c) d) ()) 07:31:57 Gmind [~Gmind@113.190.171.11] has joined #scheme 07:32:06 hey 07:32:46 I don't get how to fix the default racket for geiser-scheme-implementation ? 07:34:24 -!- summersault [~george@189.107.132.152] has quit [Ping timeout: 260 seconds] 07:34:42 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 265 seconds] 07:35:03 minsa: Of course, apart from using symbols a and b instead of 1 and 2, that's the same as your answer. 07:35:14 minsa: (x . ()) is the same as (x) for any x. 07:35:31 cky: '((a . b) ((c) d) () . ()) turns to '((a . b) ((c) d) ()) 07:35:43 cky: thnx. 07:35:44 minsa: They are identical. 07:36:02 incubot: '((a . b) ((c) d) () . ()) 07:36:02 ((a . b) ((c) d) ()) 07:36:07 minsa: ^^--- 07:36:42 (a) ====> (a . ()) ? 07:36:47 Yes. 07:37:08 So, a list like (1 2 3 4) is really (1 . (2 . (3 . (4 . ())))). 07:37:10 thnx. 07:37:16 great. 07:37:26 :-) 07:43:47 -!- Modius [~Modius@cpe-70-123-158-125.austin.res.rr.com] has quit [Read error: Connection reset by peer] 07:44:18 Modius [~Modius@cpe-70-123-158-125.austin.res.rr.com] has joined #scheme 07:44:19 I just tried another version. 07:44:23 (cons (cons (car a) (car b)) (cons (cons (cdr '(a c)) '(d)) (cons (cdr '(a)) (cdr '(a))))) 07:44:28 of the same problem. 07:44:52 a is '(a) and b is '(b) 07:45:32 Let's make it self-contained. 07:45:43 (cons (cons (car '(a)) (car '(b))) (cons (cons (cdr '(a c)) '(d)) (cons (cdr '(a)) (cdr '(a))))) 07:48:11 -!- annodomini [~lambda@wikipedia/lambda] has quit [Quit: annodomini] 07:51:22 ? 07:54:05 mmc [~michal@cs181178061.pp.htv.fi] has joined #scheme 07:56:27 minsa: O_o 07:56:53 If you want to use cons to create that, you could: 07:57:59 incubot: (cons (cons 'a 'b) (cons (cons (cons 'c '()) (cons 'd '())) (cons '() '()))) 07:57:59 ((a . b) ((c) d) ()) 07:58:07 minsa: ^^--- 07:58:39 cky: how can I make a default implementation for geiser on Emacs ? 07:58:45 oh, I didn't know about incubot. thnx. 07:58:49 Gmind: I don't know jack about geiser, sorry. 07:59:03 anyone ? 07:59:08 minsa: I normally use rudybot, but, it choked on a continuation. 07:59:56 ic. I haven't reached continuation yet. I heard about it somewhere. 08:00:05 They're fun! 08:01:05 lewis1711 [~lewis@222-155-31-117.jetstream.xtra.co.nz] has joined #scheme 08:01:32 woot. got SICP from the library, and the scheme programming language thing with the criss crosses on the front cover 08:01:47 (I know they're both available online but I like having physical books) 08:03:32 lewis1711: Of course. 08:03:56 The first time I've ever heard of TSPL referred to quite _that_ way. 08:03:57 lewis1711: Books are easier to carry around and promote the pondering of problems. 08:04:01 hahaha 08:04:32 hkBst [~quassel@gentoo/developer/hkbst] has joined #scheme 08:05:25 cky: it says continuation is like setjmp/longjmp in C. interesting. 08:06:10 -!- lewis1711 [~lewis@222-155-31-117.jetstream.xtra.co.nz] has left #scheme 08:06:12 lewis1711 [~lewis@222-155-31-117.jetstream.xtra.co.nz] has joined #scheme 08:06:46 minsa: Yes, continuations are like sj/lj but on steroids. 08:06:59 minsa: Picture it as a snapshot of the program's execution, like a saved game. 08:07:12 minsa: Unlike sj/lj, you can restore this saved game whenever you like, as many times as you like. 08:08:06 Neither of those benefits apply to sj/lj (where you can only longjmp once per jmpbuf, and only while it's still in scope). 08:08:19 hmmm. using the quote operator I should be able to do some "symbolic manipulation" 08:08:23 nice.. 08:08:36 Also, you can't set up any unwind/rewind handlers for sj/lj. With Scheme continuations, you can have both (via dynamic-wind). 08:11:07 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Read error: Connection reset by peer] 08:11:19 copumpkin [~pumpkin@12.50.78.130] has joined #scheme 08:11:19 -!- copumpkin [~pumpkin@12.50.78.130] has quit [Changing host] 08:11:19 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 08:11:47 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 08:12:14 Gmind [~Gmind@113.190.171.11] has joined #scheme 08:12:20 #:-s 08:12:23 phew... 08:12:30 finally, I knew where it's ;)) 08:14:11 thnx cky. It's been fun. a lot more to come. Where is a good place to go and find more example of scheme codes ? googling will give me a lot. But if you have specific recommendation, much appreciated. 08:15:03 minsa: a noob too, but I am using "the scheme programming language", which is available online (think it's up the top there somewhere) 08:15:28 http://www.scheme.com/tspl4/ 08:16:17 :) heck, I have just get started too 08:16:28 lewis1711, I am reading that and doing exercises as well. 08:16:30 thnx. 08:17:35 if there is any newbie , I am glad to join >:D< 08:20:15 I'm not a newbie, but, I promised chandler that I'd give R6RS a fair shake, so, perhaps I'll start by reading TSPL4 too. (But, I'm working at the moment, so, maybe during the weekend.) 08:22:47 -!- Modius [~Modius@cpe-70-123-158-125.austin.res.rr.com] has quit [Quit: "Object-oriented design" is an oxymoron] 08:25:38 hmm, right now I am using racket (the "#racket-lang" option) since it has drracket and I cba getting emacs installed, and it has the best documentation 08:32:56 yep ,emac is great ! 08:32:59 :D 08:33:24 I have just been using it for several hours... 08:33:36 you should get geiser along with Emacs & racket too 08:33:40 :P 08:34:33 Is there any racket's scribble mode for emacs ? 08:35:20 meh, the way I set up emacs it has "normal" keybindings like drscheme or gedit or notepad++. but emacs can be very nice. 08:36:02 chemuduguntar [~ravi@118-92-129-45.dsl.dyn.ihug.co.nz] has joined #scheme 08:38:44 cataska: You should write one. ;-D 08:38:59 cataska: I thought Emacs had a Scribe mode, but no. 08:40:39 emacs just has an RSI mode installed by default 08:40:41 *lewis1711* ducks 08:41:59 cky: writting emacs' mode for programming is tough to me... 08:42:05 what's scribe mode ? 08:53:39 -!- lewis1711 [~lewis@222-155-31-117.jetstream.xtra.co.nz] has left #scheme 08:56:16 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 08:56:25 lol 09:10:40 -!- snorble [~snorble@s83-179-14-105.cust.tele2.se] has quit [Ping timeout: 245 seconds] 09:17:00 schmir [~schmir@p54A9048B.dip0.t-ipconnect.de] has joined #scheme 09:20:55 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Read error: Connection reset by peer] 09:21:16 copumpkin [~pumpkin@12.50.78.130] has joined #scheme 09:21:16 -!- copumpkin [~pumpkin@12.50.78.130] has quit [Changing host] 09:21:16 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 09:45:55 -!- schmir [~schmir@p54A9048B.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 09:48:31 alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has joined #scheme 09:49:08 schmir [~schmir@p54A9048B.dip0.t-ipconnect.de] has joined #scheme 10:00:15 -!- alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has quit [Ping timeout: 245 seconds] 10:18:07 gravicappa [~gravicapp@ppp85-140-67-153.pppoe.mtu-net.ru] has joined #scheme 10:19:56 damn, this homework question is killing me 10:26:21 alaricsp [~alaric@94-194-200-54.zone8.bethere.co.uk] has joined #scheme 10:29:47 Gmind [~Gmind@113.190.171.11] has joined #scheme 10:41:05 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Read error: Connection reset by peer] 10:41:27 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 10:41:43 i wonder if i can somehow turn a list of lists such as ((1 2 3) (4 5 6) (7 8 9)) to a series of lists (1 2 3) (4 5 6) (7 8 9) and pass them as parameters to map 10:42:48 apply 10:43:20 apply? 10:43:24 bah, we never learned it 10:45:02 (apply function param ... rest) the last argument is a list which is appended as additional arguments to the function 10:45:45 if i could use it, it would easily solve my problem 10:46:25 Perhaps you could write a similar procedure yourself 10:46:36 -!- Gmind [~Gmind@113.190.171.11] has quit [Ping timeout: 265 seconds] 10:46:52 i'm talking about ex. 2 here: http://www.cs.tau.ac.il/~scheme/mavo-fall-2010/Homework/homework6.doc 10:46:55 (specialized for 3 arguments) 10:47:02 I can't read Word documents 10:47:15 they've given me a skeleton with (map (accumulate )) 10:48:35 if only i could write my own procedures there 10:48:56 -!- vu3rdd [~vu3rdd@nat/cisco/x-ohzrsgkgzwrsliyi] has quit [Remote host closed the connection] 10:48:59 http://docs.google.com/viewer?url=http%3A%2F%2Fwww.cs.tau.ac.il%2F~scheme%2Fmavo-fall-2010%2FHomework%2Fhomework6.doc 10:49:07 now you can view word documents :) 10:49:16 ugh 10:49:44 don't tell me the answer please :P i wanna solve it myself. 10:50:41 What is accumulate? 10:51:09 (accumulate op init list) 10:51:36 it runs 'op' on each element of the list and accumulates the result 10:52:06 sec, i'll paste the code for it 10:52:24 Sounds like fold 10:53:30 http://paste.lisp.org/display/117514 10:56:35 More like fold-right, then 10:57:42 if i could use apply, i'd just pass (map list `(1 2 3) `(4 5 6) `(7 8 9)) to accumulate, and have it return a list of sums of each sublist 11:00:10 Exercise 2.38. The accumulate procedure is also known as fold-right, because it combines the first element of the sequence with the result of combining all the elements to the right. There is also a fold-left, which is similar to fold-right, except that it combines elements working in the opposite direction: 11:00:14 found it in SICP :D 11:03:01 btw, this one could also solve this: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-15.html#%_idx_1794 11:04:53 hmm 11:05:19 so the only functions i can write are the parameters to map and accumulate, and both are anonymous functions so i can't use recursion there 11:05:42 They have to be anonymous? 11:06:02 what else can they be? 11:06:07 Named 11:06:15 (define (foo) ...) (accumulate foo ...) 11:06:16 wait a sec, but i can write a non-anonymous subfunction for the anonymous function, right? 11:06:32 That would also work 11:06:41 coz i can only write code instead of the question marks 11:06:48 Are you sure? 11:06:57 no, not 100% sure 11:06:59 k 11:07:09 You could always use Y ;) 11:07:17 Y? 11:07:34 n/m 11:08:22 also you can use recursion: (lambda (x y) (let loop ((x x) (y y)) ....)) 11:08:32 didn't learn 'loop' 11:08:43 it's a named led 11:08:49 let 11:08:51 but if i write a named function then i can use recursion 11:08:58 It doesn't have to be called loop 11:09:10 also you can use recursion: (lambda (x y) (let recurse ((x x) (y y)) ....)) 11:09:15 whatever 11:10:57 so all i need now is to pass 'accumulate' a new list of lists, in which every element is a list of the 1st, 2nd, 3rd...., k-th elements of the original lists, and then just let accumulate do the sums 11:11:03 *Caleb--* tries this 11:11:49 err, i mean that element 1 is a list of all the 1st elements of the original 'n' lists 11:12:02 the second, has the 2nd elements of all the original 'n' lists, etc... 11:22:13 wait 11:27:28 a lambda expression can have only 1 body, right? 11:29:14 when i use (define) i can give multiple "bodies", and only the result of the last one is returned 11:29:39 but when i just use (lambda (x) (body)) there can be only one body, right? 11:36:34 No. 11:37:32 n/m i forgot the substitution model 11:44:42 Genosh [~Genosh@153.Red-88-24-212.staticIP.rima-tde.net] has joined #scheme 12:08:32 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Read error: Connection reset by peer] 12:08:53 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 12:09:43 -!- Genosh [~Genosh@153.Red-88-24-212.staticIP.rima-tde.net] has quit [Ping timeout: 240 seconds] 12:10:49 drdo [~user@2.208.54.77.rev.vodafone.pt] has joined #scheme 12:12:45 vu3rdd [~vu3rdd@122.167.107.172] has joined #scheme 12:18:03 masm [~masm@bl15-233-135.dsl.telepac.pt] has joined #scheme 12:22:29 well 12:22:33 i have an implementation 12:22:37 but i don't like it :P 12:23:34 http://paste.lisp.org/display/117517 12:25:07 mainly because when i create the 'list' for accumulate, i could practically do all the work there 12:27:19 but i don't think that it's possible to pass this list to accumulate: ((1 2 3) (4 5 6) (7 8 9)) and have it return ((1 4 7) (2 5 8) (3 6 9)) 12:31:11 hepek [~hepek@cable-89-216-25-79.static.sbb.rs] has joined #scheme 12:34:27 Caleb--: http://paste.lisp.org/+2IOD/1 12:34:54 you used apply 12:35:00 ! 12:35:21 does that make me a bad person? 12:35:38 no, but it disqualifies the solution :( 12:35:40 pnkfelix [~Adium@c-71-225-45-140.hsd1.nj.comcast.net] has joined #scheme 12:35:49 so implement "apply" by hand, then; it's easy 12:36:14 or is it ... 12:36:56 bastards 12:37:05 the problem is that they gave a skeleton 12:37:16 emma [~em@unaffiliated/emma] has joined #scheme 12:37:26 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 12:38:13 i guess my solution does something similar anyway 12:40:00 OR DOES IT? 12:40:01 ^_^ 12:40:06 I suspect you could write "invert", which does the same thing as (map apply list) 12:40:16 without actually using "apply" 12:42:06 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has quit [Ping timeout: 265 seconds] 12:42:09 i don't understand your code 12:42:21 ah 12:42:21 n/m 12:42:33 yeah, apply rocks this shit 12:49:34 -!- cnl [~cnl@78.31.74.25] has quit [K-Lined] 12:58:13 -!- emma is now known as em 13:23:07 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Ping timeout: 240 seconds] 13:27:53 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 13:31:52 tupi [~david@139.82.89.24] has joined #scheme 13:32:42 Gmind [~Gmind@113.190.171.11] has joined #scheme 13:32:53 -!- homie` [~user@xdsl-78-35-162-105.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 13:33:00 Oh... Hello New day ! 13:33:02 -!- wbooze` [~user@xdsl-78-35-162-105.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 13:34:43 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Read error: Connection reset by peer] 13:36:12 groovy2shoes [~guv@wvc32564rh.rh.ncsu.edu] has joined #scheme 13:36:12 -!- groovy2shoes [~guv@wvc32564rh.rh.ncsu.edu] has quit [Changing host] 13:36:12 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 13:54:55 kenjin2201 [~kenjin@218.238.3.145] has joined #scheme 13:57:30 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Read error: Connection reset by peer] 13:58:35 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 14:01:15 -!- minsa [~minsa@c-24-5-121-157.hsd1.ca.comcast.net] has quit [Ping timeout: 260 seconds] 14:19:44 -!- Maxels [~Maxel@99.149.171.140] has quit [Ping timeout: 265 seconds] 14:21:53 aisa [~aisa@209.234.140.58] has joined #scheme 14:26:05 -!- Gmind [~Gmind@113.190.171.11] has quit [Quit: Gmind] 14:29:46 wbooze [~user@xdsl-78-35-162-105.netcologne.de] has joined #scheme 14:30:09 Gmind [~Welcome@113.190.171.11] has joined #scheme 14:32:44 langmartin [~user@exeuntcha2.tva.gov] has joined #scheme 14:35:23 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Quit: groovy2shoes] 14:35:40 homie [~user@xdsl-78-35-162-105.netcologne.de] has joined #scheme 14:36:50 HG` [~HG@xdslfd179.osnanet.de] has joined #scheme 14:37:33 -!- aisa [~aisa@209.234.140.58] has quit [Quit: aisa] 14:39:39 drdo` [~user@2.208.54.77.rev.vodafone.pt] has joined #scheme 14:42:26 -!- drdo [~user@2.208.54.77.rev.vodafone.pt] has quit [Ping timeout: 255 seconds] 14:42:57 drdo`` [~user@2.208.54.77.rev.vodafone.pt] has joined #scheme 14:44:41 -!- drdo` [~user@2.208.54.77.rev.vodafone.pt] has quit [Ping timeout: 255 seconds] 14:49:31 annodomini [~lambda@c-65-96-220-241.hsd1.ma.comcast.net] has joined #scheme 14:49:31 -!- annodomini [~lambda@c-65-96-220-241.hsd1.ma.comcast.net] has quit [Changing host] 14:49:31 annodomini [~lambda@wikipedia/lambda] has joined #scheme 14:50:54 DrDuck [~duck@146.229.118.163] has joined #scheme 14:59:32 -!- Jafet [~Jafet@unaffiliated/jafet] has quit [Ping timeout: 255 seconds] 15:05:27 Jafet [~Jafet@unaffiliated/jafet] has joined #scheme 15:07:17 -!- Adamant [~Adamant@unaffiliated/adamant] has quit [Quit: Adamant] 15:08:55 aisa [~aisa@173-10-243-253-Albuquerque.hfc.comcastbusiness.net] has joined #scheme 15:08:58 Anyone knows anything about pango, by some rare chance? 15:10:23 Used it a bit. 15:11:00 Do you know how to disable those annoying "Pango-WARNING **: couldn't load font" things? 15:13:17 -!- DrDuck [~duck@146.229.118.163] has quit [Ping timeout: 264 seconds] 15:13:51 No. 15:14:24 *eli* UTSLs 15:20:52 *eli* changes tone 15:20:55 It uses glib's g_warning. 15:20:58 Anyone knows anything about gnome, by some rare chance? 15:21:14 *eli* got there too 15:21:20 That can be controlled by G_DEBUG env variable. 15:21:42 Right, and the documentation for G_DEBUG is *ridiculous*. 15:22:14 "If GLib has been configured with --enable-debug=yes, this variable can be set to a list of debug options ..." 15:22:23 It then proceeds to list the options, 15:22:44 Only 2 out of 5 are about warnings, 15:22:46 Maybe messing with g_log_set_handler should help. 15:23:17 and *every* one of the 5 options say "This option is special in that it doesn't require GLib to be configured with debugging support." 15:23:50 (If this was supposed to be funny, then it worked -- but I still want to see the documentation...) 15:24:05 A gnome user ignores such messages. A gnome power user sends them to /dev/null. Gnome developers do something similar, except with bug reports. 15:24:18 gravicappa: (That "documentation" was funny, not what you said...) 15:24:40 Why would a gnome user ignore them? 15:25:09 And besides, even if that means "almost all gnome users", then it still leaves a good amount of people that will send bug reports. 15:25:36 gravicappa: I looked at the handler stuff also, and it doesn't look promising. 15:26:34 -!- annodomini [~lambda@wikipedia/lambda] has quit [Quit: annodomini] 15:27:23 -!- shardz_ is now known as shardz 15:29:45 hohoho [~hohoho@ntkngw501177.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 15:29:46 -!- Gmind [~Welcome@113.190.171.11] has quit [Read error: Connection reset by peer] 15:30:05 Gmind [~Welcome@113.190.171.11] has joined #scheme 15:31:41 -!- Gmind [~Welcome@113.190.171.11] has quit [Read error: Connection reset by peer] 15:33:25 Gmind [~Gmind@113.190.171.11] has joined #scheme 15:33:28 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 15:33:42 bweaver [~user@host-68-169-175-225.WISOLT2.epbfi.com] has joined #scheme 15:36:09 -!- kniu [~kniu@HOHOHO.RES.CMU.EDU] has quit [Ping timeout: 240 seconds] 15:37:08 -!- hepek [~hepek@cable-89-216-25-79.static.sbb.rs] has left #scheme 15:42:23 To avoid the collective breath holding: g_log_set_default_handler() 15:42:26 Obviously. 15:43:35 pchrist [~spirit@gentoo/developer/pchrist] has joined #scheme 15:43:44 -!- hkBst [~quassel@gentoo/developer/hkbst] has quit [Remote host closed the connection] 15:45:28 -!- homie [~user@xdsl-78-35-162-105.netcologne.de] has quit [Read error: Connection reset by peer] 15:45:29 -!- wbooze [~user@xdsl-78-35-162-105.netcologne.de] has quit [Read error: Connection reset by peer] 15:46:38 homie [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 15:46:40 wbooze [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 15:47:00 -!- homie [~user@xdsl-78-35-171-89.netcologne.de] has quit [Remote host closed the connection] 15:47:13 -!- wbooze [~user@xdsl-78-35-171-89.netcologne.de] has quit [Remote host closed the connection] 15:48:29 -!- gravicappa [~gravicapp@ppp85-140-67-153.pppoe.mtu-net.ru] has quit [Ping timeout: 260 seconds] 15:50:54 homie [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 15:57:15 -!- Caleb-- [thedude@109.64.6.190] has quit [Ping timeout: 272 seconds] 15:58:23 Caleb-- [~caleb@109.64.6.190] has joined #scheme 16:01:16 gravicappa [~gravicapp@ppp85-140-116-252.pppoe.mtu-net.ru] has joined #scheme 16:06:55 -!- schmir [~schmir@p54A9048B.dip0.t-ipconnect.de] has quit [Ping timeout: 276 seconds] 16:06:57 wbooze [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 16:08:03 kniu [~kniu@DOHOHO.RES.CMU.EDU] has joined #scheme 16:15:35 -!- Jafet [~Jafet@unaffiliated/jafet] has quit [Ping timeout: 255 seconds] 16:16:29 jewel [~jewel@196-215-16-208.dynamic.isadsl.co.za] has joined #scheme 16:18:28 Jafet [~Jafet@unaffiliated/jafet] has joined #scheme 16:18:35 -!- HG` [~HG@xdslfd179.osnanet.de] has quit [Ping timeout: 245 seconds] 16:25:38 Caleb--: Are you user537967 on Stack Overflow? 16:25:51 Caleb--: That user posted a question very similar to a question you posted in the channel earlier. 16:26:25 no 16:26:42 link please? 16:26:53 http://stackoverflow.com/questions/4409984 16:27:08 LOL 16:27:28 i guess someone is doing the homework too ;D~ 16:28:06 Hahahahahaha. 16:28:18 -!- leppie [~lolcow@196-215-20-67.dynamic.isadsl.co.za] has quit [Ping timeout: 265 seconds] 16:29:23 leppie [~lolcow@196-215-20-67.dynamic.isadsl.co.za] has joined #scheme 16:30:35 my solution seems convoluted 16:30:41 there must be something simpler 16:32:58 I'll see if I can think of something. 16:36:06 he seems to have done it though 16:36:07 stis [~stis@1-1-1-39a.veo.vs.bostream.se] has joined #scheme 16:39:48 I'll write a solution myself. 16:39:51 Without referring to the post. 16:39:51 it's a nice idea actually ;D but it doesn't work 16:39:55 Then you can compare answers. 16:40:05 The problem seems...trivial. 16:40:12 ok 16:41:40 remember that there are limitations to what you can use (only map/accumulate) 16:41:52 Indeed. 16:42:06 Okay, if you can, reiterate the problem statement in one line. 16:45:31 given a list of lists (each sublist is of the same length), you should return a list of lists in which the element in each position is a list of the elements of the corresponding position in the other sublists 16:45:43 -!- aoh [aki@80.75.102.51] has quit [Ping timeout: 240 seconds] 16:46:14 so for ((1 2) (4 5)) you would return ((1 4) (2 5)) 16:51:25 Okay. 16:52:05 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 16:59:00 aoh [aki@80.75.102.51] has joined #scheme 17:02:19 Caleb--: Are you allowed to use make-list? 17:02:40 don't think so, 'cause we never learned it 17:02:42 what's it do? 17:02:53 incubot: (make-list 4 '()) 17:02:53 (() () () ()) 17:03:26 no :( 17:03:32 Okay, I'll write my own version. 17:03:38 What looping constructs can you use? 17:03:47 the problem is that you can't add any new functions 17:03:49 it's a skeleton 17:03:56 http://docs.google.com/viewer?url=http%3A%2F%2Fwww.cs.tau.ac.il%2F~scheme%2Fmavo-fall-2010%2FHomework%2Fhomework6.doc 17:03:59 look at the second question 17:04:09 you have to fill in for the parameters marked 17:04:13 femtoo [~femto@95-89-197-196-dynip.superkabel.de] has joined #scheme 17:05:22 Okay, I'll look at it. 17:06:58 You just have to implement mean-record, right? 17:07:48 yes 17:08:29 so you can write lambda expressions for the 'op' of map, and as the 'op' of accumulate, and also on the list that you will pass to accumulate 17:08:32 bbl food. 17:08:36 Hahahahaha. 17:17:13 -!- bweaver [~user@host-68-169-175-225.WISOLT2.epbfi.com] has quit [Read error: No route to host] 17:18:35 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 245 seconds] 17:21:16 -!- Jafet [~Jafet@unaffiliated/jafet] has quit [Ping timeout: 250 seconds] 17:24:20 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 17:24:44 Caleb--: Solved it. 17:24:48 It's really simple, as I expected. 17:26:11 Gmind [~Gmind@113.190.171.11] has joined #scheme 17:29:17 You are correct that you can implement it using map and accumulate using the template they provide, without too much difficulty. 17:30:06 So that you have to use your brain a little, let me adapt my answer to use reduce instead. 17:31:23 Okay, I'll pastebin my reduce-based answer. 17:31:34 Have fun adapting it to accumulate! 17:34:38 you are such a tease! 17:34:52 snorble [~snorble@s83-179-14-105.cust.tele2.se] has joined #scheme 17:36:48 Of course, it's my job to be! 17:37:01 what's reduce btw? 17:37:40 reduce is like fold (which is what your accumulate is), but doesn't use the initial value unless the incoming list is empty. 17:37:50 alvatar [~alvatar@46.130.217.87.dynamic.jazztel.es] has joined #scheme 17:40:36 jonrafkind [~jon@crystalis.cs.utah.edu] has joined #scheme 17:41:49 Caleb--: http://paste.lisp.org/+2IOA/1 17:42:04 oh boy 17:43:03 HOLY HELL 17:43:06 that short? 17:43:11 Yes. 17:43:28 If I could use "cut", I can make it even shorter. 17:43:43 i am stupid. 17:43:52 *Caleb--* lowers head in shame 17:44:13 Hahahaha, awwww.... 17:44:26 this is part of learning to think in lisp, it's amazing how short some things are that seem like they should be more complicated 17:44:37 i guess the reason i didn't think of it was because i thought about passing map the whole list 17:44:37 -!- alvatar [~alvatar@46.130.217.87.dynamic.jazztel.es] has quit [Read error: Connection reset by peer] 17:45:16 alvatar [~alvatar@46.130.217.87.dynamic.jazztel.es] has joined #scheme 17:45:24 Why would you want to do that? 17:45:38 just remember, that pain your brain feels is because it's growing :) 17:45:44 i mean that i wanted to pass the sublists as multiple parameters 17:46:29 Yes, I know. 17:46:36 But it's obviously not the simplest approach available. 17:46:40 yes 17:47:39 there is a problem though 17:47:41 With cut, the (lambda (l r) (map + l r)) could just be written as (cut map + <> <>). 17:47:47 Yes? 17:48:15 at the end of the recursive process accumulate would pass the last element of the list and an empty list to map 17:48:24 that would be an error 17:48:29 Of course. 17:48:36 That's why I said you have to adapt your solution for accumulate. 17:48:45 The reason I used reduce is because it completely sidesteps that problem. 17:49:09 why, i oughtta.... 17:49:32 Hah. 17:49:34 one day cky, one day.... bang! zoom! straight to the moon. 17:49:39 Funny. 17:49:52 If I solved all that for you, I'd be doing your homework for you. And we can't have that. 17:50:02 no, we surely can't. 17:50:18 The reason I pasted my solution is that it's nice and terse, and you basically have to grok it to actually finish the question. 17:50:42 i think i know what to do here 17:50:47 Good, good. 17:52:48 belissima! 17:52:55 just added a null check 17:53:28 :-P 17:53:57 i'll make sure to credit you once i get my nobel peace prize 17:54:08 Haha. 17:56:00 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 18:09:33 everyone want to be Albert :P 18:12:17 HG` [~HG@xdsl-188-118-140-228.dip.osnanet.de] has joined #scheme 18:13:43 -!- drdo`` [~user@2.208.54.77.rev.vodafone.pt] has quit [Ping timeout: 240 seconds] 18:16:39 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 18:17:20 dfkjjkfd [~paulh@145.120.22.32] has joined #scheme 18:20:32 langmart` [~user@exeuntknx.tva.gov] has joined #scheme 18:20:32 -!- alvatar [~alvatar@46.130.217.87.dynamic.jazztel.es] has quit [Read error: Connection reset by peer] 18:21:09 alvatar [~alvatar@46.130.217.87.dynamic.jazztel.es] has joined #scheme 18:21:49 -!- langmartin [~user@exeuntcha2.tva.gov] has quit [Read error: Connection reset by peer] 18:24:07 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 18:25:22 -!- langmart` [~user@exeuntknx.tva.gov] has quit [Ping timeout: 276 seconds] 18:25:23 -!- jonrafkind [~jon@crystalis.cs.utah.edu] has quit [Read error: Connection reset by peer] 18:28:35 cky, 18:28:45 i also rewrote part b. of that question using a similar method 18:28:48 WAY simpler, WAY sexier. 18:29:43 this is a great new trick i've learned, thanks :D 18:29:44 kephas [~pierre@AStrasbourg-551-1-46-120.w92-148.abo.wanadoo.fr] has joined #scheme 18:30:04 -!- nowhereman [~pierre@AStrasbourg-551-1-44-202.w92-148.abo.wanadoo.fr] has quit [Ping timeout: 260 seconds] 18:34:40 DrDuck [~duck@146.229.118.229] has joined #scheme 18:37:42 Gmind [~Gmind@113.190.171.11] has joined #scheme 18:37:53 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 18:39:42 langmartin [~user@exeuntcha2.tva.gov] has joined #scheme 18:41:35 pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has joined #scheme 18:42:50 jonrafkind [~jon@crystalis.cs.utah.edu] has joined #scheme 18:47:28 Caleb--: My pleasure! :-D 18:49:33 argh, now i have to re-analyze the time complexity of the new algorithms 18:51:02 Hehehehehe. 18:51:10 ...that, I can't help you with. 18:51:16 I'm just a simple ol' programmer. 18:57:15 drdo`` [~user@2.208.54.77.rev.vodafone.pt] has joined #scheme 18:58:22 does scheme have a restart mechanism like CL?? 18:59:05 Not standard, but neither does it have a standard condition system at all. 18:59:33 ah 19:00:17 -!- alaricsp [~alaric@94-194-200-54.zone8.bethere.co.uk] has quit [Ping timeout: 272 seconds] 19:00:29 Some Scheme systems do. E.g., MIT Scheme. 19:01:40 Riastradh: what about racket? 19:03:29 I don't think Racket has restarts, and I think Racket's condition system specifically precludes them. 19:07:22 What's the rationale for not including them? 19:07:27 -!- drdo`` is now known as drdo 19:13:37 Gmind [~Gmind@113.190.171.11] has joined #scheme 19:15:04 -!- HG` [~HG@xdsl-188-118-140-228.dip.osnanet.de] has quit [Quit: Leaving.] 19:16:03 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 19:34:18 -!- hohoho [~hohoho@ntkngw501177.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 19:36:00 wtf? 19:36:09 Jeff Spolsky is the CEO of stackoverflow? 19:37:11 Joel* 19:38:44 i think his company is called fogcreek 19:40:38 http://stackoverflow.com/about/team 19:42:58 Caleb--: Joel Spolsky is one of two co-founders of SO. 19:43:06 Caleb--: The other co-founder is Jeff Atwood. 19:47:16 hohoho [~hohoho@ntkngw501177.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 19:49:52 Adamant [~Adamant@c-68-51-145-83.hsd1.ga.comcast.net] has joined #scheme 19:49:52 -!- Adamant [~Adamant@c-68-51-145-83.hsd1.ga.comcast.net] has quit [Changing host] 19:49:52 Adamant [~Adamant@unaffiliated/adamant] has joined #scheme 19:50:35 Maxels [Maxel@137.28.152.172] has joined #scheme 19:51:14 kar8nga [~kar8nga@m-183.vc-graz.ac.at] has joined #scheme 19:54:50 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit [Ping timeout: 245 seconds] 20:02:59 -!- Maxels [Maxel@137.28.152.172] has quit [Read error: Connection reset by peer] 20:12:31 -!- hohoho [~hohoho@ntkngw501177.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 20:13:34 Fare [~Fare@ita4fw1.itasoftware.com] has joined #scheme 20:13:53 -!- DrDuck [~duck@146.229.118.229] has quit [Ping timeout: 264 seconds] 20:21:31 -!- tupi [~david@139.82.89.24] has quit [Quit: Leaving] 20:22:35 pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has joined #scheme 20:26:06 Gmind [~Gmind@113.190.171.11] has joined #scheme 20:26:16 hey guys 20:26:18 anyone ? 20:26:25 can I ask about operator "%" 20:27:02 in SCheme , do we have mod ? 20:27:29 The answer is complicated. 20:27:57 femtoo [~femto@95-89-197-196-dynip.superkabel.de] has joined #scheme 20:28:13 In the R5RS, there are two operations that return the remainder of integral division, called REMAINDER and MODULO. 20:29:04 These operations choose different representatives of Z/nZ, or R/nZ for the non-integral case, although for positive arguments they agree. 20:29:30 -!- homie [~user@xdsl-78-35-171-89.netcologne.de] has quit [Read error: Connection reset by peer] 20:29:31 The R6RS introduced two more operations: MOD and MOD0, if I recall their names correctly. 20:30:01 =.= 20:30:04 oops 20:30:08 ok , so I prefer MOD 20:30:12 If you are using the R6RS, I think the one you want to use is MOD, because it behaves the most sensibly in all cases, but it is not the same as what one finds in almost any other programming language. 20:30:34 homie [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 20:30:40 I don't remember which name corresponds with which behaviour, except that MOD0 is even more unusual than MOD, and exhibits technically bizarre behaviour. 20:31:06 I'm using Racket 20:31:13 and can't see MOD or MOD0 here 20:31:16 :-s 20:32:48 Since I was confused by this mess, I wrote as a sort of proposal for the next Scheme report, and implemented it at , in terms of the R5RS operations QUOTIENT and REMAINDER. 20:33:34 I believe Racket fails to fold the case of the names you write, so you may have to downcase the names before Racket will recognize them. 20:34:02 right. I can't find them 20:34:03 I don't know how to get at the R6RS in Racket. 20:34:11 The Racket language does not have `mod' or `mod0'. 20:34:16 :( how to use mod now... 20:34:17 Gmind: If you're only going to be calling it with positive arguments, just use `modulo'. 20:34:41 (I have a feeling that the only reason you're looking for `mod' is that its name is three characters shorter.) 20:34:45 For non-negative inputs, I recommend the use of REMAINDER, rather than MODULO, for symmetry with QUOTIENT. 20:34:48 chandler: thanks, found it 20:35:04 they should change the name 20:35:29 I agree: they should change the name to what I proposed in , to clear up the confusion surrounding the operations. 20:38:20 -!- nilg [~user@85.239.138.109] has quit [Remote host closed the connection] 20:42:52 even when I got the `modulo 20:43:02 it accept 2 args 20:43:16 what wrong with (`modulo 12 2) ? 20:43:29 i wish it was ( % 12 2) 20:43:39 (define % modulo) 20:43:43 Gmind: so what prevents you doing (define % modulo)? 20:44:13 Think about it! What prevents you doing (define % modulo)? 20:44:26 no no 20:44:36 I mean 20:44:43 I can't eval 20:44:51 (`modulo 12 2) 20:45:01 it must be 0 , right ? 20:45:03 It's modulo. 20:45:12 not mod ? 20:45:13 rudybot: (modulo 12 2) 20:45:55 (modulo 12 2) returns 0 here 20:45:57 http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_idx_292 20:46:14 if you stick a ` there, you'll get an error because `modulo is a symbol, not a function 20:46:35 modulus 20:46:37 =)) 20:46:54 elly: you don't need "`" ? 20:47:05 ` means 'quasiquote this expression' 20:47:17 you do not want modulo to be quasiquoted, so do not put a ` there 20:47:20 =.=! what the.... 20:47:29 can't remember who gave me "`" 20:47:36 don't use it unless you know you want to 20:47:38 ok ,thanks, it worked now 20:47:39 ` prevents evaluation of a form 20:47:58 so `modulo is the symbol 'modulo', and modulo is the function to which modulo refers 20:48:30 Gmind: I said `modulo' at some point; the `foo' there is just a convention to quote what I'm talking about. 20:48:52 oh, yeah 20:49:09 there the `' are literal quotes and part of the description, not part of the symbol name 20:49:14 chandler: you should not use `foo'! http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html 20:50:43 Sorry, but you're not going to override my LaTeX muscle memory. 20:52:16 oh.. 20:53:28 chandler: it's fine, I will ask more clear next time 20:53:52 *clearer 20:54:57 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 20:55:43 -!- mmc [~michal@cs181178061.pp.htv.fi] has quit [Ping timeout: 240 seconds] 20:55:48 -!- alvatar [~alvatar@46.130.217.87.dynamic.jazztel.es] has quit [Quit: leaving] 20:56:09 hey, is that every (define ) in Racket will be Global variable ? 20:56:19 while in LISP it's local ? 20:56:57 What is LISP? 20:57:10 In LISP 1.5, there wasn't a (define ) form. 20:57:11 I mean Common Lisp 20:57:24 pjb, yep, in Lisp it's defun 20:57:25 In CL, there's no DEFINE operator either. 20:57:43 in CL, DEFUN defines a global function, not a variable. 20:58:05 -!- Adamant [~Adamant@unaffiliated/adamant] has quit [Remote host closed the connection] 20:58:12 Adamant [~Adamant@unaffiliated/adamant] has joined #scheme 20:58:16 I was messing around with modifying the Emacs 20:58:24 so I must use let ? 20:58:40 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Quit: leaving] 20:58:42 Why are you asking emacs lisp questions on #scheme? 20:58:48 because 20:58:55 Scheme is running 20:58:59 Emacs doesn't use CL, it uses its own Lisp dialect. IIRC, it uses dynamic scope which can be tricky. 20:59:09 inside ELISP 20:59:33 ( i use geiser) 20:59:39 #emacs is a much better place for that emacs lisp is a world of its own 21:00:16 I know this question relate a bit to emacs and lisp 21:00:25 but it's because in SCheme we have something similar too 21:00:33 sorry for disturb 21:01:36 definitions are not all global, no 21:02:26 (define (x y) (define (z f) (+ f 2)) (z y)) 21:02:28 elly: not all ? 21:02:31 -!- homie [~user@xdsl-78-35-171-89.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 21:02:40 DrDuck [~duck@146.229.118.229] has joined #scheme 21:02:42 -!- wbooze [~user@xdsl-78-35-171-89.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 21:02:44 definitions have lexical scope just like everything else 21:02:57 ok , not about nested define :P 21:04:23 -!- dfkjjkfd [~paulh@145.120.22.32] has quit [Quit: Lost terminal] 21:05:11 Elly: but, thanks 21:05:13 definitions can also have module scope in racket 21:05:38 wbooze [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 21:06:42 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Quit: groovy2shoes] 21:07:09 turbofail [~user@adsl-99-50-22-193.dsl.pltn13.sbcglobal.net] has joined #scheme 21:07:17 -!- DrDuck [~duck@146.229.118.229] has quit [Ping timeout: 255 seconds] 21:08:14 wbooze` [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 21:08:42 pchrist [~spirit@gentoo/developer/pchrist] has joined #scheme 21:09:59 -!- wbooze` [~user@xdsl-78-35-171-89.netcologne.de] has quit [Client Quit] 21:10:37 minsa [~minsa@c-24-5-121-157.hsd1.ca.comcast.net] has joined #scheme 21:11:01 homie [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 21:13:29 I got another question 21:13:52 if I want (define get 21:13:59 to get a list for process 21:14:30 can I put like : (define get '() ()) 21:16:06 mmc [~michal@cs27120227.pp.htv.fi] has joined #scheme 21:16:28 -!- homie [~user@xdsl-78-35-171-89.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 21:18:38 homie [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 21:19:23 or just (define get ( filter (lambda (x) ) '( list) ) 21:20:58 hm? 21:20:59 nah 21:21:05 (define (get l) (... stuff with l ...)) 21:21:10 is how you define functions with arguments 21:21:21 :D 21:21:33 Elly: thanks elly. 21:21:58 no problem 21:22:23 -!- mmc [~michal@cs27120227.pp.htv.fi] has quit [Ping timeout: 240 seconds] 21:23:07 I have just find out there are Define and define :-s 21:23:47 HG` [~HG@xdsl-188-118-140-228.dip.osnanet.de] has joined #scheme 21:28:55 =.= ( Emacs mistake) 21:29:39 is there anyway to make (display _ ( _ ) ) show both String and a List ? 21:32:54 I do not understand 21:33:02 you want a function `display' that can take either a string or a list? 21:33:17 if so, (define (display v) (... stuff with v ...)) 21:33:46 ya I mean the default "display" 21:34:16 what about it? 21:34:17 -!- gravicappa [~gravicapp@ppp85-140-116-252.pppoe.mtu-net.ru] has quit [Ping timeout: 264 seconds] 21:34:19 Gmind: Try something like (printf "Hello! ~a\n" my-list) 21:34:26 (if I've understood your question correctly) 21:34:27 mmm, format 21:35:51 mmc [~michal@cs181178061.pp.htv.fi] has joined #scheme 21:38:22 :chandler: ok, I got it 21:44:38 DrDuck [~duck@146.229.118.229] has joined #scheme 21:53:45 chandler: worked well , thx 21:55:03 erider [~chatzilla@unaffiliated/erider] has joined #scheme 21:55:32 -!- Gmind [~Gmind@113.190.171.11] has left #scheme 21:57:09 -!- DrDuck [~duck@146.229.118.229] has quit [Ping timeout: 260 seconds] 21:57:14 Azuvix [~Azuvix@174-27-34-218.bois.qwest.net] has joined #scheme 22:03:27 -!- kar8nga [~kar8nga@m-183.vc-graz.ac.at] has quit [Read error: Connection reset by peer] 22:13:08 Gmind [~Gmind@113.190.171.11] has joined #scheme 22:21:41 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Ping timeout: 264 seconds] 22:25:35 -!- stis [~stis@1-1-1-39a.veo.vs.bostream.se] has quit [Remote host closed the connection] 22:25:58 why the book How to Design Programs An Introduction to Computing and Programming is so high in price ? 22:27:05 -!- HG` [~HG@xdsl-188-118-140-228.dip.osnanet.de] has quit [Ping timeout: 264 seconds] 22:27:18 Gmind: $0: http://www.htdp.org/2003-09-26/Book/ 22:27:55 read book online is pretty hurt for my eyes 22:28:31 just see that this is the highest price book about Scheme 22:28:39 that I've ever seen 22:29:08 Gmind: SICP isn't cheap in dead tree form either 22:29:37 neither are most good books on CS 22:29:57 -!- Quadrescence [~Quad@unaffiliated/quadrescence] has quit [Quit: omghaahhahaohwow] 22:30:01 Gmind: I found how to design programs for <$20 US on abebooks.com 22:30:33 had to search under the author's name 22:30:55 Quadrescence [~Quad@unaffiliated/quadrescence] has joined #scheme 22:31:09 peddie: so you bought one ? 22:31:21 no -- i just searched right now 22:33:08 Oejet [~oejet@212.45.122.120] has joined #scheme 22:33:39 -!- langmartin [~user@exeuntcha2.tva.gov] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:36:33 -!- homie [~user@xdsl-78-35-171-89.netcologne.de] has quit [Read error: Connection reset by peer] 22:37:34 homie [~user@xdsl-78-35-171-89.netcologne.de] has joined #scheme 22:38:34 -!- futilius` [~otheruser@2001:470:d:128:216:3eff:fe86:c70e] has quit [Ping timeout: 260 seconds] 22:39:46 I have just bought a book on ebay yesterday 22:39:50 I think one book is enough 22:39:57 I will print another by myself =)) 22:40:29 gravicappa [~gravicapp@ppp85-140-116-252.pppoe.mtu-net.ru] has joined #scheme 22:43:06 futilius [~otheruser@2001:470:d:128:216:3eff:fe86:c70e] has joined #scheme 22:44:18 -!- Obfuscate [~keii@ip98-176-17-38.sd.sd.cox.net] has quit [Quit: The joy of kernel vulnerabilities.] 22:49:11 Obfuscate [~keii@ip98-176-17-38.sd.sd.cox.net] has joined #scheme 22:52:51 -!- aisa [~aisa@173-10-243-253-Albuquerque.hfc.comcastbusiness.net] has quit [Quit: aisa] 22:53:15 -!- futilius [~otheruser@2001:470:d:128:216:3eff:fe86:c70e] has quit [Ping timeout: 260 seconds] 22:55:07 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 22:56:59 MrFahrenheit [~RageOfTho@users-55-193.vinet.ba] has joined #scheme 23:01:11 futilius [~otheruser@2001:470:d:128:216:3eff:fe86:c70e] has joined #scheme 23:01:35 -!- yosafbridge [~yosafbrid@li14-39.members.linode.com] has quit [Ping timeout: 272 seconds] 23:04:53 rudybot [~luser@2001:470:1:41:a800:ff:fe3e:cde7] has joined #scheme 23:07:18 yosafbridge [~yosafbrid@li14-39.members.linode.com] has joined #scheme 23:24:03 -!- mmc [~michal@cs181178061.pp.htv.fi] has quit [Ping timeout: 240 seconds] 23:25:37 summersault [~george@189.107.132.152] has joined #scheme 23:32:10 mmc [~michal@cs181178061.pp.htv.fi] has joined #scheme 23:33:33 -!- rpg [~rpg@216.243.156.16.real-time.com] has quit [Remote host closed the connection] 23:38:43 -!- minsa [~minsa@c-24-5-121-157.hsd1.ca.comcast.net] has quit [Ping timeout: 240 seconds] 23:45:10 -!- Azuvix [~Azuvix@174-27-34-218.bois.qwest.net] has quit [Quit: Leaving] 23:47:55 -!- Oejet [~oejet@212.45.122.120] has quit [Ping timeout: 240 seconds] 23:54:18 -!- jonrafkind [~jon@crystalis.cs.utah.edu] has quit [Read error: Connection reset by peer] 23:56:34 -!- Gmind [~Gmind@113.190.171.11] has left #scheme