00:04:06 pumpkin [~pumpkin@17.101.89.205] has joined #scheme 00:04:06 -!- pumpkin [~pumpkin@17.101.89.205] has quit [Changing host] 00:04:06 pumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 00:04:06 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 246 seconds] 00:04:37 -!- Azuvix [~Azuvix@71-215-25-216.bois.qwest.net] has quit [Quit: Leaving] 00:05:08 dralston [~dralston@S0106687f74a12729.va.shawcable.net] has joined #scheme 00:08:07 -!- dralston [~dralston@S0106687f74a12729.va.shawcable.net] has quit [Client Quit] 00:14:04 -!- k04n [~k04n@cpe-76-175-192-194.socal.res.rr.com] has quit [Quit: Computer has gone to sleep.] 00:15:10 carleastlund_ [~cce@209-6-40-238.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 00:17:41 There have been a few new Scheme implementations developed within the past 4 years. What are the major ones? 00:18:48 ikarus? 00:19:50 That sounds like one of them 00:21:56 chibi, mosh and ypsilon 00:22:05 Thanks 00:22:12 larceny maybe? 00:22:16 not sure how old it is 00:22:22 i think larceny is quite old 00:22:31 Yeah, it's been around for a while 00:22:37 ok 00:22:46 but the one that was ported to the CLR might be newish 00:25:08 fds: Usually when you have a freezing Flash player, the problem is likely to be with PulseAudio, if you're using that. 00:25:20 fds: I find that restarting PulseAudio often solves such issues. But, YMMV. 00:26:47 Common Larceny was announced on Lambda the Ultimate in 2004, so not that new: http://lambda-the-ultimate.org/node/410 00:40:54 cky: Unfortunately I'm not using PulseAudio, so it escapes the blame this time! 00:41:56 `Unfortunately I'm not using PulseAudio'? 00:42:10 Unfortunately I can't blame it. :-) 00:42:57 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 00:43:18 Also, my laptop's power cable has fused itself into the back of my laptop and refuses to be removed. This is not a good day. 00:45:07 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Remote host closed the connection] 00:45:59 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 00:48:19 dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has joined #scheme 00:49:59 copumpkin [~pumpkin@17.101.89.205] has joined #scheme 00:49:59 -!- copumpkin [~pumpkin@17.101.89.205] has quit [Changing host] 00:49:59 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 00:53:02 -!- pumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 240 seconds] 00:57:52 adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined #scheme 00:59:04 j-invariant [~aaaa@unaffiliated/j-invariant] has joined #scheme 01:00:01 hi. I'm just wondering about multiple file programs on racket: I was doing (provide foo) in one file then requiring that file from my other, but the REPL doesn't let me use foo 01:00:18 I wonder if I am going about it all wrong, what's the right way to do this stuff? 01:00:46 j-invariant: it's a little weird. you have to declare the file you are importing as a module, like 01:00:56 (module name racket 01:01:07 then go (require "name.rkt") in the other file 01:01:16 it's in the guide 01:02:20 this is what I was doing http://docs.racket-lang.org/guide/module-basics.html 01:03:01 ah I see 01:03:04 -!- phao [~phao@189.107.246.152] has quit [Quit: Leaving] 01:03:09 -!- samth is now known as samth_away 01:03:11 I'm doing #lang racket, instead of (module name racket 01:03:15 but it says they are equivalent 01:04:14 you also have to provide all the symbols 01:04:47 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 240 seconds] 01:05:04 [module name racket 01:05:04 (provide (all-defined-out)) .. ] 01:06:22 ah so if I just do (require "MyModule.scm") in the REPL that works 01:06:29 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 01:06:36 -!- samth_away [~samth@punge.ccs.neu.edu] has quit [Quit: Ex-Chat] 01:07:08 Riastradh: besides the things you mentioned a while ago, here is an oddity with your URI library (although it might make sense according to the RFCs, haven't checked): 01:07:11 (uri->string (string->uri "/")) 01:07:24 lewis1711: thanks! 01:07:25 ;; --> "" 01:07:37 So now my only problem is how to add new number types to Racket 01:08:02 j-invariant, didn't I tell you a while ago you couldn't do that? 01:08:02 no worries 01:08:17 yeah, schemes are dynamically typed 01:08:22 jonrafkind: I don't remember being told it can't be done 01:08:26 you could make a number class with racket 01:08:31 j-invariant: or check out typed racket 01:08:39 I don't mean "types" like that 01:08:40 no, the point is dispatch on primitives are hard coded 01:08:54 but Racket has integers and rationals and such, I wanted to add a new one 01:09:07 aisa [~aisa@c-68-35-167-179.hsd1.nm.comcast.net] has joined #scheme 01:09:47 which one? it has most 01:09:54 it's got complex as well IIRC 01:10:31 yeah exactly 01:10:38 I want to make a polynomial type at add to it 01:10:46 jonrafkind: Well, if you use Swindle, you can write generic functions too. 01:11:12 yea sure, im just saying you can't extend the primitive + that racket provides 01:11:17 (without hacking the C level) 01:11:24 alright, but can I define my own new + function? 01:11:31 you either have to a) use some other method that can do dispatch dynamically or b) export your own + 01:11:33 I guess I am forced to use object oriented programming 01:11:45 I can already feel my whole project falling apart ;) 01:11:58 j-invariant: What's wrong with object-oriented programming? :-P 01:12:30 you could do (define (my+ blah ...) ...) in some file and (require (rename-in "file.rkt" [my+ +])) 01:12:31 jonrafkind: eh? you can redefine + if you like, it just will only work that way in your code 01:12:47 (define (+ . vs) (... references to old-+ ...)) is okay 01:12:56 j-invariant: I'm tempted to write some demonstration code that specialises all the standard numeric operators to work with a newly-created interval type. 01:12:58 yea that too 01:13:19 it just will suddenly stop working if someone else (without your definition of + in scope) tries to use it on a polynomial 01:13:20 cky: well let me explain what I really want to do, 01:14:38 cky: things like integers and rationals are fine, but I will make some new number systems too (like complex integers and such). But I have a way to take a number system like that and create a system of polynomials in nit 01:16:41 I should try and do modular arithmetic first of all, that's like a simple example of this stuff 01:17:33 Azuvix [~Azuvix@71-215-25-216.bois.qwest.net] has joined #scheme 01:17:36 *nods* 01:17:38 That'd be fun. 01:17:47 Like I said, I'll play with implementing interval arithmetic. 01:18:07 I'll just, for the lulz, port (some approximation of) the Boost.Interval library to Scheme. 01:18:09 cky: fun? :P 01:18:32 "If programming isn't fun, you shouldn't be doing it" 01:18:37 That. 01:18:42 I read that today, but I can't remember exactly where. 01:21:07 *nods* 01:21:14 I need to, like, start my blog already. 01:21:53 I have a site set up, but I need to prettify it a litle, and actually write some useful Scheme-related content. 01:22:01 really I have no idea how "objects" relate to number systems 01:22:31 j-invariant: Well, the idea as I see it, is that you can then define generic function specialisations that use your new number type. 01:22:57 So you can specialise +, -, *, /, etc. for your new type. 01:23:33 does Racket have a CLOS implementation? 01:23:41 j-invariant: Yes, it's called Swindle. 01:23:51 nice! I'll have to look it up 01:23:57 Indeed you should. 01:24:03 carleastlund__ [~cce@209-6-40-238.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 01:25:53 -!- carleastlund_ [~cce@209-6-40-238.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Ping timeout: 265 seconds] 01:26:28 -!- masm [~masm@bl19-147-25.dsl.telepac.pt] has quit [Quit: Leaving.] 01:35:25 I think I am going to give up because this is way too hard 01:36:01 j-invariant: have you looked at systems like axiom and GAP? 01:36:29 bremner: not really, I have the axiom manual on my reading list though 01:36:31 -!- jonrafkind [~jon@crystalis.cs.utah.edu] has quit [Read error: Operation timed out] 01:37:57 j-invariant: depends whether there is some work you are trying to get done, or if it is mainly a learning experience. If you really want to do algebra with a computer, there are lots of systems. 01:47:45 phao [~phao@189.107.142.23] has joined #scheme 01:49:07 -!- empt [~empt@112.2.217.126] has left #scheme 01:49:57 _danb_ [~yaaic@124-149-166-62.dyn.iinet.net.au] has joined #scheme 01:49:57 amca [~amca@CPE-121-208-84-154.cqzr1.cha.bigpond.net.au] has joined #scheme 02:00:14 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 02:03:04 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 02:04:38 bokr [~eduska@109.110.41.169] has joined #scheme 02:07:03 rotty, hmm... Here's what happens: (a) Absolute paths are represented by a leading "". (b) "/" parses as a relative reference. (c) But its only segment is empty. 02:09:18 (uri->string (make-uri #f #f '("") #f #f)) 02:09:39 oops, wrong window 02:09:42 Hmm...(b) is misleading. It parses as a relative reference, but it should still have an absolute path. 02:09:52 (Heh -- that's exactly what I just typed into my other window!) 02:10:43 My library agrees with Chris's, anyway... 02:11:31 what I'd like to do is this: 02:12:33 -!- valium97582 [~daniel@189-47-113-196.dsl.telesp.net.br] has quit [Ping timeout: 260 seconds] 02:12:40 (merge-uris (string->uri "a/b/c") (string->uri "/")) ;; --> "/a/b/c" 02:13:43 Hmm... No, my library doesn't agree with Chris's; his parses "/" as a URI with an absolute path having one empty segment, so his MERGE-URIS does what you want. 02:14:40 valium97582 [~daniel@189-47-113-196.dsl.telesp.net.br] has joined #scheme 02:15:05 Looks like my URI-PARSER:PATH-ABSOLUTE should have (parser:optional '("" "") ...) instead of (parser:optional '() ...). 02:16:35 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 02:20:27 ok, the roundtrip of "" works now but `merge-uris' fails with: Non-absolute URI: #[ #f #f ("" "") #f #f "/" 231181197] 02:20:44 erm, s,"","/", 02:23:57 (Obviously, this code needs a more serious test suite than test-uri.scm.) 02:25:55 RFC 3986 doesn't define the meaning of merging relative to a non-absolute base URI. 02:27:54 (A little more strictly speaking: RFC 3986 defines the meaning of merging a relative-path reference relative to a URI. It doesn't define the meaning of merging a relative-path reference relative to another relative-path reference.) 02:28:22 That (merge-uris (string->uri "a/b/c") (string->uri "/")) works in MIT Scheme appears to be an accident. 02:28:59 That said, the behaviour you want is pretty sensible. 02:29:52 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 255 seconds] 02:29:52 sanduz2 [~sanduz2@75-149-186-118-Miami.hfc.comcastbusiness.net] has joined #scheme 02:34:09 I want to make this in Racket scheme: http://paste.lisp.org/display/118641 02:34:15 does anyone know how I could do it? 02:34:35 I think the best thing to do is make my own object system 02:36:46 that's really bad, I would have to carry the "type" along with tthe objects everywhere 02:40:44 -!- gravicappa [~gravicapp@ppp85-140-66-192.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 02:44:23 copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 02:44:23 -!- copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Changing host] 02:44:23 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 02:45:41 I suppose the important thing about merging relative to a relative reference is that it be associative, so that if B is an absolute URI, and if U and V are relative references, then (merge-uris (merge-uris U V) B) = (merge-uris U (merge-uris V B)). 02:50:23 rotty, so do you use this URI library in anger? 02:51:24 -!- DrDuck [~duck@216.186.151.63] has quit [Ping timeout: 246 seconds] 02:51:55 -!- _danb_ [~yaaic@124-149-166-62.dyn.iinet.net.au] has quit [Ping timeout: 276 seconds] 02:52:01 no thoughts on that? at all 02:57:24 j-invariant, every Scheme object already carries its `type' everywhere. That's how procedures such as PAIR?, INTEGER?, SYMBOL?, &c., work. You can create your own types using records, as in SRFI 9, although the word `record' is sometimes spelt S-T-R-U-C-T, such as in Racket. 02:58:21 Riastradh: hehe thank you! 03:14:14 Riastradh: I've been looking for magnets, but have been unable to find them in a real store! :( 03:14:28 I think I'm an addict, and I don't even own any 03:14:35 but I keep wanting to play with them 03:15:05 how do they work?? 03:15:25 nobody knows! 03:16:02 I saw them in the Google Store. But that's three thousand miles away from here. 03:16:10 :( 03:16:31 I may just have to order some online 03:30:13 alexsuraci [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #scheme 03:30:13 -!- ASau [~user@95-27-211-180.broadband.corbina.ru] has quit [Ping timeout: 255 seconds] 03:32:02 -!- Azuvix [~Azuvix@71-215-25-216.bois.qwest.net] has quit [Quit: Leaving] 03:35:12 Jafet [~Jafet@unaffiliated/jafet] has joined #scheme 03:36:24 -!- sanduz2 [~sanduz2@75-149-186-118-Miami.hfc.comcastbusiness.net] has quit [Ping timeout: 240 seconds] 03:46:45 Plain lists with get-foo or alist? 03:51:50 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 03:52:28 wow that is old school 03:52:42 timj_ [~timj@e176194168.adsl.alicedsl.de] has joined #scheme 03:55:21 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 03:56:25 -!- timj__ [~timj@e176199203.adsl.alicedsl.de] has quit [Ping timeout: 276 seconds] 03:57:19 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: night] 03:57:42 sanduz2 [~sanduz2@75-149-186-118-Miami.hfc.comcastbusiness.net] has joined #scheme 03:57:42 -!- j-invariant [~aaaa@unaffiliated/j-invariant] has quit [Quit: leaving] 04:25:44 jl_2 [~jl_2@184-96-199-28.hlrn.qwest.net] has joined #scheme 04:26:48 -!- corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has quit [Ping timeout: 240 seconds] 04:34:31 -!- MrFahrenheit [~RageOfTho@users-146-124.vinet.ba] has quit [Ping timeout: 255 seconds] 04:38:02 -!- phao [~phao@189.107.142.23] has quit [Quit: Leaving] 04:39:01 phao [~phao@189.107.142.23] has joined #scheme 04:47:28 -!- alexsuraci [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has quit [Quit: alexsuraci] 05:01:34 -!- pygospa [~pygospa@kiel-4d0671f2.pool.mediaWays.net] has quit [Ping timeout: 255 seconds] 05:02:03 pygospa [~pygospa@kiel-4d0671f2.pool.mediaWays.net] has joined #scheme 05:13:02 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 05:26:26 -!- aisa [~aisa@c-68-35-167-179.hsd1.nm.comcast.net] has quit [Quit: aisa] 05:48:15 -!- dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 06:04:34 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit: adu] 06:10:38 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 260 seconds] 06:16:43 kbdvdr [~co1n@210-89-227-75.ap-w02.canvas.ne.jp] has joined #scheme 06:19:08 -!- mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has quit [Remote host closed the connection] 06:21:50 -!- parcs [~patrick@ool-45741d7d.dyn.optonline.net] has quit [Ping timeout: 240 seconds] 06:23:05 parcs [~patrick@ool-45741d7d.dyn.optonline.net] has joined #scheme 06:25:29 heyy [~Prometheu@CPE0023cdd441d7-CM001947479c3c.cpe.net.cable.rogers.com] has joined #scheme 06:26:02 this channel is for Dr Scheme right? 06:26:10 aka DrRacket 06:26:50 yes, it's for any scheme 06:27:53 heyy: there's also #racket 06:28:02 cool, I need help understanding foldr 06:28:04 but I don't think people mind 06:28:20 what about it? 06:30:09 I have a list of natural numbers and another number "x" the user can input, and I have to generate a new list consisting of all the natural numbers that have a factor of "x" from the inputted list 06:30:13 can this be done with foldr? 06:30:45 no, foldr doesn't output a list 06:30:50 I tried to use filter before but no luck 06:30:58 filter would be the one 06:31:01 what did you try? 06:31:43 (filter remainder-check numbers) 06:31:52 remainder-check is a helper I created 06:32:05 post your full code 06:32:22 at a paste bin site, like lisp paste 06:32:33 http://pastebin.com/Fsh9QVmt 06:32:45 foldr *can* output a list, it depends what you do with it. 06:33:39 carleastlund__: example? 06:34:02 heyy: what's check-expect? is that a procedure you've defined? 06:34:08 (foldr (lambda (x y) (list 1 2 3)) (list 1 2 3) (list 1 2 3)) 06:34:15 oh right 06:34:20 heyy: What course is this homework for? 06:34:57 lewis1711: nope it's built in 06:35:13 lewis1711, check-expect is a testing function used in How to Design Programs and provided by Rackets' teaching languages. 06:35:14 -!- sanduz2 [~sanduz2@75-149-186-118-Miami.hfc.comcastbusiness.net] has quit [Quit: Leaving] 06:35:15 carleastlung: my cs course 06:35:22 Gmind [~Nevermind@113.190.189.54] has joined #scheme 06:35:27 ah 06:35:57 heyy, For the loop exercises, the contract of the loop is usually your best clue. 06:36:35 heyy, how many arguments does = take? 06:36:50 two? 06:36:50 as many as you want 06:36:53 rudybot: (= 1 1 1 1 1) 06:36:54 *offby1: your scheme sandbox is ready 06:36:54 *offby1: ; Value: #t 06:37:01 rudybot: (= 1 1 1 1 1 38 1 1 1 1) 06:37:01 *offby1: ; Value: #f 06:37:05 offby1, facts are not what I'm looking for, but thanks. 06:37:10 heyy, how many did you give it? 06:37:17 *offby1* glances around nervously. 06:37:28 It was a leading question. 06:37:57 ah, the ol' Socratic method 06:37:59 *offby1* backs away slowly 06:38:11 lol whoops I posted older code, I had to undo a bunch since I was using foldr recently 06:38:34 heyy, see what that code does if you fix the = 06:38:48 filter: expected argument of type ; given function:remainder-check 06:38:52 is the error 06:40:06 Ah. Yes, I see. You have, in fact, misused filter. So here's the question you have to answer: Is filter the problem? Or is how you used filter the problem? 06:40:48 also, "do I feel lucky"? 06:40:54 probably how I used it 06:41:26 I suggest getting a version that at least runs with one loop before giving up and moving on to the other. 06:41:29 I can only get filter working with simpler 1st arguments, like (filter positive? '(2 -1)) 06:42:06 What is the contract of positive?? What is the contract of remainder-check? How do they differ? 06:42:34 *offby1* wonders when he last changed his furnace filter 06:43:18 Yeah, I was just wondering that too. "When did offby1 last change his furnace filter?" I mused. 06:43:35 well, the question is on everyone's lips these days 06:43:41 I don't claim to have originated it 06:44:09 dont they both output boolean? 06:44:31 What is the full contract of "positive?"? 06:44:52 Hint: the output is not the whole thing. 06:47:09 remainder-check: list nat -> boolean 06:47:23 positive?: -? x -> boolean 06:47:31 Getting closer. "list" is not a contract, though. 06:47:32 i dont know what that -? is called 06:47:52 What kind of thing goes in the "-?" position? 06:47:59 alon* 06:48:12 thats what I dont know 06:48:33 You don't know what to call it, or you don't know what the function works on? 06:49:03 -!- rudybot is now known as rudysot 06:49:08 the former? i dont know what you're asking in the latter part 06:49:22 i guess both lol 06:49:40 Do you know how to use positive? -- can you go to the interactions window and use it to get an answer "true" or "false" to some question? 06:50:12 oh , yeah I know how to use it 06:50:39 Okay. What do you give it as input when you use it? 06:50:48 any number 06:51:06 Okay. Then the contract for its input is probably "number", yes? 06:51:14 yep 06:51:24 -!- rudysot is now known as rudybot 06:51:35 Okay. So now can you write out the full contract for positive? 06:51:58 positive: num -> boolean 06:52:16 Great! Now how is that different from the contract for remainder-check? 06:52:28 stis [~stis@1-1-1-39a.veo.vs.bostream.se] has joined #scheme 06:52:54 remainder-check takes in a list as well 06:53:05 an extra argument 06:53:27 Right. So if you want to use remainder-check in a place where positive? works, you're going to need it to have the same contract as positive?. 06:53:27 -!- stis [~stis@1-1-1-39a.veo.vs.bostream.se] has quit [Remote host closed the connection] 06:53:36 paperkettles [~chris@2001:5c0:1104:f400:226:bbff:fe0c:b57f] has joined #scheme 06:55:01 ah so filter should not take in a list as the first argument! (?) 06:55:13 or like yeah 06:55:17 you know what I mean 06:56:01 Well, I hope I know what you mean. It sounds like you might be on the right track. :) 06:56:30 -!- Gmind [~Nevermind@113.190.189.54] has quit [Quit: Leaving.] 06:56:32 I am going to have to leave you with that point to work from, since it's 2am here, but good luck and I imagine you can find other people here to help you out. :) 06:57:04 -!- carleastlund__ [~cce@209-6-40-238.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has left #scheme 06:58:16 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 06:58:35 hm 06:58:41 -!- tupi [~david@186.205.37.15] has quit [Quit: Leaving] 07:01:37 heyy: the scheme programming language is a nice reference for inbuilt procedures. the link is in the chat topic 07:01:52 it gives examples and info, quite readable 07:02:22 which link? 07:03:00 rudybot: doc filter 07:03:00 *offby1: your scheme sandbox is ready 07:03:00 *offby1: http://docs.plt-scheme.org/reference/pairs.html#(def._((lib._racket%2Fprivate%2Fbase..rkt)._filter)) 07:03:55 ah the Help Desk, that's my current reference xD 07:04:41 it's pretty good. 07:06:21 it helps me to search for function and their contracts 07:06:31 geh I'm stuck 07:07:23 it evaluates the helper function like I want it too 07:07:45 but then leaves 'true' as the 1st argument for filter and errors 07:07:50 (using the stepper) 07:10:21 http://pastebin.com/4yTSt6F3 07:12:05 I'd write remainder-check to take a _single_ number, not a _list_ of numbers 07:14:00 heyy: what language is that? 07:14:17 Racket 07:15:59 same error when I rewrite remainder-check 07:17:23 I know I'm not simply supposed to do your homework for you, but simply fixing it seemed easier than trying to understand what you did wrong. Peek, or not, at your discretion: https://gist.github.com/780762 07:19:08 wow -.- 07:19:12 I see my mistake 07:19:42 (filter (remainder-check numbers) numbers) 07:19:48 instead of (filter remainder-check numbers) 07:19:51 is what I had 07:20:48 thanks offby1, to be fair the question is very short anyways 07:21:29 it's actually a review assignment for the previous term 07:21:42 :) 07:22:39 DrDuck [~duck@adsl-81-55-129.hsv.bellsouth.net] has joined #scheme 07:28:46 -!- acarrico [~acarrico@pppoe-68-142-62-150.gmavt.net] has quit [Ping timeout: 240 seconds] 07:29:14 -!- kbdvdr [~co1n@210-89-227-75.ap-w02.canvas.ne.jp] has quit [Quit: Leaving] 07:35:38 https://gist.github.com/780767 07:35:44 here's my completed program 07:35:51 just so you dont feel guilty at all :x 07:38:20 you put your own stamp on it. 07:38:44 hurm? 07:44:30 -!- amca [~amca@CPE-121-208-84-154.cqzr1.cha.bigpond.net.au] has quit [Quit: Farewell] 07:48:41 -!- MapMan [mapman@2001:470:1f0a:120e::fe] has quit [Read error: Operation timed out] 07:48:47 MapMan [mapman@2001:470:1f0a:120e::fe] has joined #scheme 07:51:04 alexsuraci [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #scheme 07:52:52 -!- eno [~eno@nslu2-linux/eno] has quit [Ping timeout: 276 seconds] 07:53:51 eno [~eno@nslu2-linux/eno] has joined #scheme 08:03:23 jewel [~jewel@196-215-117-47.dynamic.isadsl.co.za] has joined #scheme 08:10:58 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 255 seconds] 08:15:05 -!- DrDuck [~duck@adsl-81-55-129.hsv.bellsouth.net] has quit [Ping timeout: 264 seconds] 08:17:25 -!- heyy [~Prometheu@CPE0023cdd441d7-CM001947479c3c.cpe.net.cable.rogers.com] has quit [Quit: heyy] 08:31:00 Gmind [~Nevermind@113.190.189.54] has joined #scheme 08:35:00 sanduz2 [~sanduz2@75-149-186-118-Miami.hfc.comcastbusiness.net] has joined #scheme 08:53:09 elderK [~k@pdpc/supporter/active/elderk] has joined #scheme 08:53:18 Hey guys! 08:53:28 I was wondering if anyone would be keen to talk scheme implementationy stuff. 08:55:39 MrFahrenheit [~RageOfTho@users-146-124.vinet.ba] has joined #scheme 09:08:39 -!- sanduz2 [~sanduz2@75-149-186-118-Miami.hfc.comcastbusiness.net] has quit [Quit: Leaving] 09:10:51 -!- phao [~phao@189.107.142.23] has quit [Quit: Leaving] 09:12:31 -!- Gmind [~Nevermind@113.190.189.54] has quit [Quit: Leaving.] 09:16:26 -!- MrFahrenheit [~RageOfTho@users-146-124.vinet.ba] has quit [Ping timeout: 240 seconds] 09:22:53 Gmind [~Nevermind@113.190.189.54] has joined #scheme 09:23:31 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 09:24:51 -!- Gmind [~Nevermind@113.190.189.54] has quit [Client Quit] 09:32:22 ASau [~user@89-178-174-41.broadband.corbina.ru] has joined #scheme 09:36:12 elderK: anything specific? 09:37:24 mostly readtables. 09:37:33 efficient expansion of the reader, for example. 09:37:45 or, extension, may be the better word. 09:37:59 sorry cant help there, I have a fixed readtable :( 09:38:02 Take for example, CL, where you can influence the form of the language being read, by introducing new dispatch characters and the like. 09:38:34 I've been playing around with the idea of like... 09:38:42 if we consider the reader itself, just a basic lexer, 09:38:44 I just used a lexer generator 09:38:52 passing forms to say, the evaluator or whatever, 09:39:12 then, we should be able to register new mechanisms of lexing - which would introduce new states, transitions, actions, etc, into the reader. 09:39:22 but that means extension of the state-transition tables, etc. 09:39:31 exactly :) 09:39:33 and then it also brings up - how do you represent it efficiently? In terms of speed to use - 09:39:39 and memory used to provide that flexibility. 09:39:44 I figure hte naive implementation is a direct trie. 09:39:48 Fast as hell, easy to extend, 09:39:51 but freaking HUGE in memory. 09:40:10 :P So I thought of run-length-encoding the various tables, 09:40:19 what about a preprocessor maybe to turn it into legal scheme code? 09:40:26 well, yes. 09:40:33 but the macros themselves, are still written in scheme. 09:40:41 jsut like reader-extensions in lisp are written in lisp. 09:40:58 so you need to be able to interpret or compile, the macro definition, so you can use it to expand. 09:41:17 the main thing is extending the state tables. 09:41:20 I think. 09:41:44 so, I was trying to come up with a new data structure for the purpose - a mix of binary search tree, but with ranges and things, 09:42:09 but then on paper I decided implementation of that would be quite complex if done correctly - since it'd split and remove entire sets of nodes, etc, depending on what hte base of hte range was, it's length, etc. 09:42:42 TheMachineCharme [~user@121.247.67.215] has joined #scheme 09:42:43 so... thinking of using a simple list or something, or a static array that would be reallocated, extended - since, macros are handled at compile time or read time - and if you are extending teh system, it's probalby not a HUGE deal that it takes a little longer than normal. 09:42:46 -!- wbooze [~levgue@xdsl-78-35-166-228.netcologne.de] has quit [Read error: Operation timed out] 09:42:55 sounds like a lot of hard work tome, hence I would just bin that idea, but that's just me :) 09:43:00 homie` [~levgue@xdsl-78-35-175-237.netcologne.de] has joined #scheme 09:43:07 wbooze` [~levgue@xdsl-78-35-175-237.netcologne.de] has joined #scheme 09:43:13 Also, from researching various texts - compiler books, parsing books, etc, there are various mechanisms for compressing parse tables. 09:43:19 Well, aye, the easy solution is to hardcode the read-table. 09:43:21 ikarus's reader is not that big, you could maybe use that as a base 09:43:41 but even so, I'd like to be able to extend the reader even in the implementation's implementing-language, easily. 09:43:59 say, the compiler loading a .so with new stuff to handle the new stuff :P 09:44:13 looking at guile suggests that each reader-extension simply creates a chain. 09:44:21 if the new reader level doesnt grok something, it passes it to the previous level. 09:44:49 I'll take a gander at it. 09:44:52 Ikarus' source, that is. 09:45:15 I've been trying to avoid diving into the big-time implementations as much as possible, rather looking for conceptual views, mostly because it takes time to familiarize with other people's source. 09:45:37 -!- homie [~levgue@xdsl-78-35-166-228.netcologne.de] has quit [Ping timeout: 272 seconds] 09:46:08 ikarus is quite small 09:49:00 -!- TheMachineCharme [~user@121.247.67.215] has quit [Remote host closed the connection] 09:50:27 looking now :) 09:52:07 phao [~phao@189.107.142.23] has joined #scheme 09:56:29 leppie: it seems hardcoded there, too. 09:56:34 ikarus.reader.ss 09:57:55 elderK: yes, but it should be 'easy' to extend it 09:57:56 leppie: also, I'm more concerned with a nice way to extend the reader in the implementation itself, not necessarily at runtime, although that would be cool. 09:58:06 yes - but I do not wish to base my implementation on other code. 10:00:46 ok, I understand 10:02:45 copumpkin [~pumpkin@209.117.47.253] has joined #scheme 10:02:45 -!- copumpkin [~pumpkin@209.117.47.253] has quit [Changing host] 10:02:45 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 10:03:05 _danb_ [~user@124-149-166-62.dyn.iinet.net.au] has joined #scheme 10:03:23 bingo 10:03:24 http://portal.acm.org/citation.cfm?id=359175&dl=GUIDE&coll= 10:03:26 this should help 10:13:50 Gmind [~Nevermind@113.190.189.54] has joined #scheme 10:15:07 dzhus [~sphinx@93-80-107-57.broadband.corbina.ru] has joined #scheme 10:15:33 WonTu [~WonTu@p57B555ED.dip.t-dialin.net] has joined #scheme 10:15:47 -!- WonTu [~WonTu@p57B555ED.dip.t-dialin.net] has left #scheme 10:22:15 -!- Gmind [~Nevermind@113.190.189.54] has quit [Quit: Leaving.] 10:22:24 -!- jewel [~jewel@196-215-117-47.dynamic.isadsl.co.za] has quit [Ping timeout: 240 seconds] 10:24:10 nilg [~user@77.70.2.229] has joined #scheme 10:25:10 -!- nilg [~user@77.70.2.229] has quit [Read error: Connection reset by peer] 10:25:10 -!- phao [~phao@189.107.142.23] has quit [Quit: Leaving] 10:25:45 Gmind [~Nevermind@113.190.189.54] has joined #scheme 10:29:10 -!- wisey [~Steven@host86-150-108-29.range86-150.btcentralplus.com] has quit [Quit: Leaving] 10:38:18 thanks for the help, leppie. 10:38:21 Later peeps 10:38:33 -!- elderK [~k@pdpc/supporter/active/elderk] has left #scheme 10:46:15 -!- Gmind [~Nevermind@113.190.189.54] has quit [Quit: Leaving.] 10:47:10 -!- jensn [~ceres@c-83-233-145-103.cust.bredband2.com] has quit [Read error: Connection reset by peer] 10:47:57 jensn [~ceres@c-83-233-145-103.cust.bredband2.com] has joined #scheme 10:51:02 -!- davazp [~user@3.Red-83-46-6.dynamicIP.rima-tde.net] has quit [Read error: Connection reset by peer] 11:07:55 Gmind [~Nevermind@113.190.189.54] has joined #scheme 11:08:17 -!- Gmind [~Nevermind@113.190.189.54] has quit [Client Quit] 11:17:21 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 11:21:32 Riastrad1 [debian-tor@fsf/member/riastradh] has joined #scheme 11:23:50 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 11:38:51 Gmind [~Nevermind@113.190.189.54] has joined #scheme 11:39:42 -!- paperkettles [~chris@2001:5c0:1104:f400:226:bbff:fe0c:b57f] has left #scheme 11:39:49 drdo` [~user@91.205.108.93.rev.vodafone.pt] has joined #scheme 11:41:06 -!- drdo [~user@91.205.108.93.rev.vodafone.pt] has quit [Ping timeout: 240 seconds] 11:49:44 gravicappa [~gravicapp@ppp85-140-66-192.pppoe.mtu-net.ru] has joined #scheme 11:59:13 -!- _danb_ [~user@124-149-166-62.dyn.iinet.net.au] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 12:18:06 -!- lewis1711 [~lewis@125-239-255-244.jetstream.xtra.co.nz] has left #scheme 12:22:55 femtoo [~femto@95-89-248-100-dynip.superkabel.de] has joined #scheme 12:27:07 -!- qsun [~qsun@66.220.3.138] has quit [Ping timeout: 240 seconds] 12:27:34 kbdvdr [~co1n@210-89-227-75.ap-w02.canvas.ne.jp] has joined #scheme 12:28:39 qsun [~qsun@66.220.3.138] has joined #scheme 12:34:57 f8l [~f8l@77-255-12-39.adsl.inetia.pl] has joined #scheme 12:37:05 carleastlund_ [~cce@209-6-40-238.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 12:41:12 -!- carleastlund_ [~cce@209-6-40-238.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Ping timeout: 240 seconds] 12:50:46 -!- Gmind [~Nevermind@113.190.189.54] has quit [Quit: Leaving.] 12:54:44 Gmind [~Nevermind@113.190.189.54] has joined #scheme 13:00:19 dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has joined #scheme 13:01:58 carleastlund_ [~cce@209-6-40-238.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 13:03:52 -!- carleastlund [~cce@gotham.ccs.neu.edu] has quit [Disconnected by services] 13:03:52 -!- carleastlund_ is now known as carleastlund 13:09:26 -!- femtoo [~femto@95-89-248-100-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 13:14:17 -!- bokr [~eduska@109.110.41.169] has quit [Quit: Leaving.] 13:32:03 -!- pchrist_ [~spirit@gentoo/developer/pchrist] has quit [Quit: leaving] 13:32:15 -!- Gmind [~Nevermind@113.190.189.54] has quit [Quit: Leaving.] 13:32:37 pchrist [~spirit@gentoo/developer/pchrist] has joined #scheme 13:33:08 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 13:33:36 Gmind [~Nevermind@113.190.189.54] has joined #scheme 13:41:21 hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has joined #scheme 13:42:25 zeroish [~zeroish@135.207.174.50] has joined #scheme 13:46:12 femtoo [~femto@95-89-248-100-dynip.superkabel.de] has joined #scheme 13:47:28 HG` [~HG@xdsl-92-252-114-104.dip.osnanet.de] has joined #scheme 13:47:37 -!- Gmind [~Nevermind@113.190.189.54] has quit [Quit: Leaving.] 13:50:20 -!- dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 13:52:56 Gmind [~Nevermind@113.190.189.54] has joined #scheme 13:55:19 -!- femtoo [~femto@95-89-248-100-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 13:56:26 -!- rien_ [~rien_@rrcs-69-193-217-130.nyc.biz.rr.com] has quit [Ping timeout: 240 seconds] 13:58:26 -!- pygospa [~pygospa@kiel-4d0671f2.pool.mediaWays.net] has quit [Ping timeout: 255 seconds] 14:00:36 pygospa [~pygospa@kiel-d9bfd2fa.pool.mediaWays.net] has joined #scheme 14:02:17 corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has joined #scheme 14:16:26 -!- kbdvdr [~co1n@210-89-227-75.ap-w02.canvas.ne.jp] has quit [Quit: Leaving] 14:31:54 -!- gravicappa [~gravicapp@ppp85-140-66-192.pppoe.mtu-net.ru] has quit [Ping timeout: 250 seconds] 14:33:12 tupi [~david@186.205.37.15] has joined #scheme 14:34:14 -!- rins [~user@173-162-214-174-NewEngland.hfc.comcastbusiness.net] has quit [Read error: Connection reset by peer] 14:34:32 rins [~user@173-162-214-174-NewEngland.hfc.comcastbusiness.net] has joined #scheme 14:35:53 -!- hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has quit [Quit: Leaving.] 14:36:48 -!- Obfuscate [~keii@ip98-176-17-38.sd.sd.cox.net] has quit [Ping timeout: 240 seconds] 14:37:44 Obfuscate [~keii@ip98-176-17-38.sd.sd.cox.net] has joined #scheme 14:44:14 -!- Riastrad1 is now known as Riastradh 14:45:02 alaricsp [~alaric@relief.warhead.org.uk] has joined #scheme 14:55:28 -!- peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has quit [Ping timeout: 248 seconds] 14:58:09 nilg` [~user@77.70.2.229] has joined #scheme 15:01:50 -!- REPLeffect [~REPLeffec@69.54.115.254] has quit [Read error: Connection reset by peer] 15:02:50 rudybot: '(1) 15:02:52 pjb: your sandbox is ready 15:02:52 pjb: ; Value: (1) 15:03:33 Here's ok, too. 15:05:22 But ISTR that it was {1} once here. 15:07:11 rudybot: init r5rs 15:07:12 cky: your r5rs sandbox is ready 15:07:17 rudybot: '(1) 15:07:17 cky: ; Value: {1} 15:07:21 ah. 15:07:23 pjb: ^^--- 15:07:49 ok, init scheme helped 15:07:53 (why, puzzles me) 15:08:51 -!- eno [~eno@nslu2-linux/eno] has quit [Ping timeout: 246 seconds] 15:09:21 indigo [~indigo@theross.com] has joined #scheme 15:09:34 aisa [~aisa@c-68-35-167-179.hsd1.nm.comcast.net] has joined #scheme 15:09:34 DrDuck [~duck@adsl-81-55-129.hsv.bellsouth.net] has joined #scheme 15:09:57 antoszka, rudybot uses Racket, and its default "scheme" language is not quite the same as R5RS. So "init scheme" gives you something slightly different. 15:10:51 eno [~eno@nslu2-linux/eno] has joined #scheme 15:11:04 carleastlund: Yeah, I'm running my own instance, so I'm aware of that. Was just puzzled by the convention to print lists with curlies when r5rs is set. 15:11:29 Ah, that's because Racket lists are immutable, but R5RS lists are mutable. Curly braces = mutable pairs. 15:11:37 OK, thanks. 15:11:50 That's a pretty major difference ;) 15:11:55 s. . . 15:16:24 so, i have a simple beginner question. What approach might I use to generate a list where each term is a function of the previous, like a geometric sequence? I can define a tail-recursive function that constructs such a list backwards, but is there a more direct way? 15:17:22 indigo: You can use unfold. :-) 15:17:30 indigo: However, it's not tail-recursive. 15:17:51 indigo: The other option is to generate the list backwards (using unfold-right, or manually like you've done), then reverse afterwards. 15:17:56 For a geometric sequence, I'd base each term on its position, not the previous one. That's generally an easier thing to write in whatever order you prefer. 15:17:57 REPLeffect [~REPLeffec@69.54.115.254] has joined #scheme 15:18:48 cky: is reversing a fairly efficient operation on large lists? 15:18:53 carleastlund: Using the position makes it harder to use unfold. 15:19:03 indigo: REVERSE is O(n) on the size of the list. 15:19:18 cky: I was suggesting an alternative to unfold, really. 15:19:24 carleastlund: I see. 15:19:46 in the particular case i have, i actually can't use position 15:20:14 maybe fibonacci numbers would have been a more accurate analogy 15:20:27 You can generate those based on position, too. :) 15:20:47 (but I take your point) 15:21:16 It sounds like "the previous element" is an accumulator in your problem, that's all. 15:21:18 carleastlund: ...doesn't position-based fib require exp to work over bignums? 15:21:32 carleastlund: yeah, pretty much. 15:21:55 -!- drdo` [~user@91.205.108.93.rev.vodafone.pt] has quit [Ping timeout: 272 seconds] 15:21:57 It requires expt on irrationals, so I don't think it can even be made exact. 15:22:31 carleastlund: If you have an arbitrary-precision number library, you can scale the precision to the position argument. :-) 15:22:49 Alternately you can base it on a memoized computation where you look up by position, but then it populates all the numbers it needs to. 15:25:34 -!- didi [~user@unaffiliated/didi/x-1022147] has quit [Remote host closed the connection] 15:27:22 femtoo [~femto@95-89-248-100-dynip.superkabel.de] has joined #scheme 15:45:02 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 15:47:46 -!- stepnem [~stepnem@176.119.broadband10.iol.cz] has quit [Ping timeout: 240 seconds] 15:47:46 -!- DrDuck [~duck@adsl-81-55-129.hsv.bellsouth.net] has quit [Ping timeout: 255 seconds] 15:53:23 stepnem [~stepnem@176.119.broadband10.iol.cz] has joined #scheme 16:15:12 MrFahrenheit [~RageOfTho@users-146-124.vinet.ba] has joined #scheme 16:18:30 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 246 seconds] 16:19:50 DrDuck [~duck@adsl-81-55-129.hsv.bellsouth.net] has joined #scheme 16:20:01 -!- alaricsp [~alaric@relief.warhead.org.uk] has quit [Ping timeout: 276 seconds] 16:28:45 -!- DrDuck [~duck@adsl-81-55-129.hsv.bellsouth.net] has quit [Ping timeout: 265 seconds] 16:40:38 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 16:44:11 peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has joined #scheme 16:47:28 drdo` [~user@91.205.108.93.rev.vodafone.pt] has joined #scheme 16:48:30 mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has joined #scheme 17:02:20 DrDuck [~duck@adsl-81-55-129.hsv.bellsouth.net] has joined #scheme 17:12:39 -!- Gmind [~Nevermind@113.190.189.54] has quit [Read error: Connection reset by peer] 17:30:39 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 17:31:28 -!- HG` [~HG@xdsl-92-252-114-104.dip.osnanet.de] has quit [Quit: Leaving.] 17:34:41 nego [~nego@c-76-16-30-244.hsd1.il.comcast.net] has joined #scheme 17:50:54 -!- nilg` [~user@77.70.2.229] has quit [Remote host closed the connection] 18:15:02 RenardP [~chatzilla@modemcable209.113-131-66.mc.videotron.ca] has joined #scheme 18:15:11 open` [~gleen@cpe-24-92-71-240.wi.res.rr.com] has joined #scheme 18:15:46 hello, what Scheme interpreter works better on Windows for doing the exercises from SICP ? 18:15:59 -!- Adamant [~Adamant@unaffiliated/adamant] has quit [Quit: Adamant] 18:16:43 vogel fliegen geweigert 18:17:37 RenardP: Racket is probably tolerable. 18:18:01 I don't think any of its languages exactly match that used in SICP, but I assume one of them is pretty close. Google "racket SICP" and see where it leads. 18:18:13 offbyl:thanks 18:20:53 gravicappa [~gravicapp@ppp85-140-64-160.pppoe.mtu-net.ru] has joined #scheme 18:27:55 j-invariant [~aaaa@unaffiliated/j-invariant] has joined #scheme 18:28:12 -!- carleastlund [~cce@209-6-40-238.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has left #scheme 18:29:24 Can anyone show how to redefine + and rename the built in + to something else using Racket? 18:35:45 (define old-+ +) (define (+ . vs) ...) 18:35:52 that will not replace old instances of +, though 18:37:16 elly: it says define-values: cannot change constant variable: + 18:38:05 ? 18:38:08 what version of racket? 18:38:21 with 5.0.1, (define old-+ +) (define (+ . vs) (apply old-+ vs)) works for me 18:38:43 wait I tried puting #lang racket at the top and now it accepted it 18:38:50 but the REPL still uses the old version 18:40:40 but it says reference to an identifier before its definition: + if you try to require it in the REPL :| 18:41:00 masm [~masm@bl19-153-27.dsl.telepac.pt] has joined #scheme 18:41:50 j-invariant: works fine for me in DrRacket. What REPL do you mean? 18:42:18 the one that is there below the file 18:42:34 ok, that is the one that works fine for me ;). You ran your code right? 18:42:51 yes 18:43:20 > (define (+ a b) (- a b)) 18:43:39 wfm. 18:44:50 http://i.imgur.com/Zw3lc.png 18:45:13 what is that fancy backquote stuff? 18:54:48 -!- corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has quit [Ping timeout: 240 seconds] 18:55:26 -!- RenardP [~chatzilla@modemcable209.113-131-66.mc.videotron.ca] has quit [Ping timeout: 240 seconds] 18:56:56 I try this http://paste.lisp.org/display/118661 18:57:12 but it gives the error module: identifier is already imported in: + 18:57:22 cis there a way to sort it? 18:58:11 can you (require racket ) in #lang racket ? 18:58:33 what do you mean 18:59:22 I want to make my own + procedure 19:01:39 corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has joined #scheme 19:03:40 yeah, I don't know enough about the module system to help with renameing import. 19:05:12 -!- drdo` is now known as drdo 19:08:45 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 19:12:10 -!- femtoo [~femto@95-89-248-100-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 19:12:33 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 19:14:50 -!- open` [~gleen@cpe-24-92-71-240.wi.res.rr.com] has quit [Quit: leaving] 19:20:14 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 19:28:28 scheme is the simplest language but I cna't even do it :/ 19:29:40 scheme is simple the way an old manual camera is simple -- it has few moving parts, but _you_ need to learn more in order to use it 19:30:52 hm :) 19:33:45 -!- wbooze` [~levgue@xdsl-78-35-175-237.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 19:34:18 -!- homie` [~levgue@xdsl-78-35-175-237.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 19:37:08 spacemanaki [~spacemana@cpe-68-175-63-237.nyc.res.rr.com] has joined #scheme 19:40:28 -!- alexsuraci [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has quit [Quit: alexsuraci] 19:41:45 k04n [~k04n@cpe-76-175-192-194.socal.res.rr.com] has joined #scheme 19:54:00 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 19:56:55 homie [~levgue@xdsl-78-35-175-237.netcologne.de] has joined #scheme 19:57:04 wbooze [~levgue@xdsl-78-35-175-237.netcologne.de] has joined #scheme 20:01:39 -!- spacemanaki [~spacemana@cpe-68-175-63-237.nyc.res.rr.com] has quit [Quit: spacemanaki] 20:10:51 mejja [~user@c-b4b5e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #scheme 20:14:38 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 20:15:39 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 20:18:26 can I unexport a symbol in racket? 20:20:19 Caleb-- [~caleb@bzq-109-66-201-149.red.bezeqint.net] has joined #scheme 20:20:24 -!- gravicappa [~gravicapp@ppp85-140-64-160.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 20:22:02 unexport...? 20:22:04 just don't provide it 20:23:09 femtoo [~femto@95-89-248-100-dynip.superkabel.de] has joined #scheme 20:25:48 is there a way to get a symbol from a different module? Like racket:+ but that doesn't work 20:27:23 er, "require"? 20:27:34 j-invariant: there's a #racket channel, too 20:27:45 (require racket (rename-in racket [+ plus])) this works on its own but not with (defien (+ ... later on 20:28:06 -!- DrDuck [~duck@adsl-81-55-129.hsv.bellsouth.net] has quit [Ping timeout: 250 seconds] 20:28:24 probably because you've _already_ got + from racket, even without the "require" 20:28:39 yeah I need to unrequire it 20:28:49 I think what you want to do is write your _own_ language, that provides its own + - etc. 20:28:56 okay I'll try that 20:28:56 This is not hard to do, but I cannot remember the details 20:29:13 then have programs do #lang j-invariant instead of #lang racket 20:29:29 cool 20:38:38 great! That works! 20:38:40 thanks 20:40:05 jim__ [~jim@ool-18bbd5b2.static.optonline.net] has joined #scheme 20:41:04 wes__ [~nisstyre@infocalypse-net.info] has joined #scheme 20:41:11 arbscht_ [~arbscht@unaffiliated/arbscht] has joined #scheme 20:41:56 Obfuscate` [~keii@ip98-176-17-38.sd.sd.cox.net] has joined #scheme 20:42:17 gravicappa [~gravicapp@ppp85-140-118-236.pppoe.mtu-net.ru] has joined #scheme 20:44:38 rudybot_ [~luser@ec2-67-202-7-151.compute-1.amazonaws.com] has joined #scheme 20:45:13 this is great because I can just have something like (register-new-+-definition predicate? implementation) 20:47:23 -!- corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has quit [*.net *.split] 20:47:24 -!- Obfuscate [~keii@ip98-176-17-38.sd.sd.cox.net] has quit [*.net *.split] 20:47:24 -!- rins [~user@173-162-214-174-NewEngland.hfc.comcastbusiness.net] has quit [*.net *.split] 20:47:24 -!- parcs [~patrick@ool-45741d7d.dyn.optonline.net] has quit [*.net *.split] 20:47:24 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [*.net *.split] 20:47:24 -!- neilcj [~neilcj@c-174-49-216-137.hsd1.pa.comcast.net] has quit [*.net *.split] 20:47:24 -!- arbscht [~arbscht@unaffiliated/arbscht] has quit [*.net *.split] 20:47:25 -!- rudybot [~luser@ec2-67-202-7-151.compute-1.amazonaws.com] has quit [*.net *.split] 20:50:54 dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has joined #scheme 20:51:10 parcs [~patrick@ool-45741d7d.dyn.optonline.net] has joined #scheme 20:51:52 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Ping timeout: 240 seconds] 20:52:30 yeah, it does sound like you want your own language :P 20:53:07 -!- parcs [~patrick@ool-45741d7d.dyn.optonline.net] has quit [Read error: Connection reset by peer] 20:53:36 parcs [~patrick@ool-45741d7d.dyn.optonline.net] has joined #scheme 20:56:47 elly: this is all starting to work :D 20:57:01 I progammed this in 2 other languages first and that was both a failure 20:58:03 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 20:58:24 neilcj [~neilcj@c-174-49-216-137.hsd1.pa.comcast.net] has joined #scheme 21:01:38 (struct posn (x y)) gets printing as # 21:01:40 can I define it specially so that it's printed like "I am a position, x and y" 21:01:41 using a custom procedure? 21:04:12 -!- tupi [~david@186.205.37.15] has quit [*.net *.split] 21:04:45 tupi [~david@186.205.37.15] has joined #scheme 21:07:17 yeah you can do that 21:07:36 nego_ [~nego@c-76-16-30-244.hsd1.il.comcast.net] has joined #scheme 21:07:38 I think you want a printer extension 21:07:40 http://docs.racket-lang.org/reference/Printer_Extension.html?q=record%20printer 21:07:41 http://tinyurl.com/46j4ekt 21:07:54 here's a poor example I'm not handling the modes right http://pastey.net/144923-629y 21:07:55 -!- mejja [~user@c-b4b5e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Ping timeout: 264 seconds] 21:07:55 -!- eli [~eli@winooski.ccs.neu.edu] has quit [Ping timeout: 264 seconds] 21:07:55 -!- apgwoz [~apgwoz@160.79.2.194] has quit [Ping timeout: 264 seconds] 21:07:56 -!- nego [~nego@c-76-16-30-244.hsd1.il.comcast.net] has quit [Ping timeout: 264 seconds] 21:07:56 -!- ski [~slj@c83-254-21-112.bredband.comhem.se] has quit [Ping timeout: 264 seconds] 21:07:56 -!- Zol [~Zolomon@li152-84.members.linode.com] has quit [Ping timeout: 264 seconds] 21:07:56 ski [~slj@c83-254-21-112.bredband.comhem.se] has joined #scheme 21:08:04 fantastic! thanks guys 21:08:33 Zol [~Zolomon@li152-84.members.linode.com] has joined #scheme 21:13:35 sorry to ask so many questions but something weird is happening: 21:14:27 http://i.imgur.com/cQVBD.png I have this procedure PPP which makes a picture of the polynomial, but for some reason it refuses to work inside the custom-write procedure. 21:14:48 could there be an explanation for it ? 21:16:03 NNshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has joined #scheme 21:16:59 -!- ecraven [~user@140.78.42.213] has quit [Ping timeout: 240 seconds] 21:16:59 -!- Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has quit [Ping timeout: 240 seconds] 21:17:07 -!- wgd [~will@76-205-0-91.lightspeed.stlsmo.sbcglobal.net] has quit [Ping timeout: 240 seconds] 21:17:28 you need to direct the output to the "port" 21:17:29 wgd [~will@76-205-0-91.lightspeed.stlsmo.sbcglobal.net] has joined #scheme 21:17:40 just like you specified them for those 2 fprintfs 21:19:09 it uses (bitmap "image.png") so I don't know how to tell it to use a port 21:19:34 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has quit [Read error: Operation timed out] 21:19:49 (fprintf port "FOO~%~aBAR~%" (ppp (polynomial-internals s))) 21:20:06 -!- leppie is now known as thirtythreepoint 21:20:18 alexsuraci [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #scheme 21:20:18 how do i obtain the default output port (stdout)? 21:20:21 -!- thirtythreepoint is now known as leppie 21:20:27 omg!! 21:20:34 -!- antoszka [~antoszka@unaffiliated/antoszka] has quit [Read error: Operation timed out] 21:20:38 rapacity: how the hell did you know this :D 21:20:45 -!- futilius [~otheruser@2001:470:d:128:216:3eff:fe86:c70e] has quit [Read error: Operation timed out] 21:20:46 (current-output-port) 21:20:59 j-invariant: reading the manual ;p 21:22:37 -!- MapMan [mapman@2001:470:1f0a:120e::fe] has quit [Read error: Operation timed out] 21:22:42 MapMan [mapman@2001:470:1f0a:120e::fe] has joined #scheme 21:22:53 -!- f8l is now known as w8l 21:22:55 futilius [~otheruser@2001:470:d:128:216:3eff:fe86:c70e] has joined #scheme 21:23:22 antoszka [~antoszka@unaffiliated/antoszka] has joined #scheme 21:25:19 rapacity: thanks 21:25:24 kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has joined #scheme 21:26:32 -!- tupi [~david@186.205.37.15] has quit [Ping timeout: 276 seconds] 21:28:15 tupi [~david@186.205.37.15] has joined #scheme 21:30:40 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 21:30:40 -!- dfeuer [~dfeuer@wikimedia/Dfeuer] has quit [Ping timeout: 240 seconds] 21:30:40 -!- metasyntax` [~taylor@12.132.219.7] has quit [Ping timeout: 240 seconds] 21:30:40 dfeuer [~dfeuer@pool-74-96-191-205.washdc.fios.verizon.net] has joined #scheme 21:30:40 -!- dfeuer [~dfeuer@pool-74-96-191-205.washdc.fios.verizon.net] has quit [Changing host] 21:30:40 dfeuer [~dfeuer@wikimedia/Dfeuer] has joined #scheme 21:30:54 metasyntax` [~taylor@12.132.219.7] has joined #scheme 21:32:57 choas [~lars@p578F695B.dip.t-dialin.net] has joined #scheme 21:33:36 HG` [~HG@xdsl-92-252-114-104.dip.osnanet.de] has joined #scheme 21:39:52 -!- dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 21:42:05 -!- Checkie [19071@unaffiliated/checkie] has quit [Ping timeout: 264 seconds] 21:45:32 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 21:49:58 peterhil` [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has joined #scheme 21:52:50 -!- femtoo [~femto@95-89-248-100-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 21:53:48 -!- peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has quit [Ping timeout: 248 seconds] 21:55:03 -!- k04n [~k04n@cpe-76-175-192-194.socal.res.rr.com] has quit [Quit: Computer has gone to sleep.] 21:55:42 -!- Obfuscate` [~keii@ip98-176-17-38.sd.sd.cox.net] has quit [Quit: A poorly written script will replace me shortly.] 21:55:54 Obfuscate [~keii@ip98-176-17-38.sd.sd.cox.net] has joined #scheme 21:59:18 femtoo [~femto@95-89-248-100-dynip.superkabel.de] has joined #scheme 22:05:33 phao [~phao@189.107.181.154] has joined #scheme 22:06:38 -!- Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has quit [Quit: Leaving] 22:08:58 -!- valium97582 [~daniel@189-47-113-196.dsl.telesp.net.br] has quit [Ping timeout: 260 seconds] 22:10:21 -!- wbooze [~levgue@xdsl-78-35-175-237.netcologne.de] has quit [Read error: Operation timed out] 22:10:41 wbooze` [~levgue@xdsl-78-35-151-244.netcologne.de] has joined #scheme 22:11:21 homie` [~levgue@xdsl-78-35-151-244.netcologne.de] has joined #scheme 22:12:58 -!- homie [~levgue@xdsl-78-35-175-237.netcologne.de] has quit [Ping timeout: 240 seconds] 22:19:55 -!- w8l [~f8l@77-255-12-39.adsl.inetia.pl] has quit [Quit: Good night (UGT).] 22:21:12 nsswb [~nsswb@87.212.234.21] has joined #scheme 22:22:07 -!- nsswb [~nsswb@87.212.234.21] has quit [Client Quit] 22:24:20 -!- mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has quit [Remote host closed the connection] 22:32:32 neilv [~user@unaffiliated/neilv] has joined #scheme 22:40:01 -!- homie` [~levgue@xdsl-78-35-151-244.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:40:12 -!- wbooze` [~levgue@xdsl-78-35-151-244.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:42:44 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 22:44:33 homie [~levgue@xdsl-78-35-151-244.netcologne.de] has joined #scheme 22:45:52 wbooze [~levgue@xdsl-78-35-151-244.netcologne.de] has joined #scheme 22:46:39 -!- neilv [~user@unaffiliated/neilv] has left #scheme 22:55:42 alaricsp [~alaric@relief.warhead.org.uk] has joined #scheme 22:58:55 -!- femtoo [~femto@95-89-248-100-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 22:59:08 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 23:01:33 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Ping timeout: 260 seconds] 23:04:02 -!- Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has quit [Quit: Leaving] 23:05:24 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 23:05:31 ecraven [~user@140.78.42.213] has joined #scheme 23:11:56 mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has joined #scheme 23:18:59 -!- masm [~masm@bl19-153-27.dsl.telepac.pt] has quit [Quit: Leaving.] 23:20:55 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 255 seconds] 23:24:52 -!- alexsuraci [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has quit [Quit: alexsuraci] 23:32:45 dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has joined #scheme 23:36:29 -!- levi [~user@c-174-52-219-147.hsd1.ut.comcast.net] has quit [Read error: Connection reset by peer] 23:36:33 levi [~user@c-174-52-219-147.hsd1.ut.comcast.net] has joined #scheme 23:40:07 DrDuck [~duck@adsl-81-55-129.hsv.bellsouth.net] has joined #scheme 23:40:20 -!- alaricsp [~alaric@relief.warhead.org.uk] has quit [Remote host closed the connection] 23:44:41 -!- _p4bl0 [~user@berthold.shebang.ws] has quit [Ping timeout: 243 seconds] 23:46:50 -!- drdo [~user@91.205.108.93.rev.vodafone.pt] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 23:49:23 drdo [~user@91.205.108.93.rev.vodafone.pt] has joined #scheme