00:18 (quit) Lajla: Read error: Connection reset by peer 00:18 (join) Lajla 00:39 (quit) seth: Ping timeout: 260 seconds 00:40 (join) seth 01:35 (quit) writer: Quit: writer 01:47 (quit) jonrafkind: Ping timeout: 240 seconds 02:08 (quit) Fare: Quit: Leaving 02:21 (join) emma 04:49 (quit) stamourv: Remote host closed the connection 05:16 (quit) jao: Ping timeout: 276 seconds 06:03 (join) jao 07:34 (quit) vu3rdd: Quit: ERC Version 5.3 (IRC client for Emacs) 07:45 (quit) Axsuul: Ping timeout: 250 seconds 08:23 (join) writer 08:25 (join) MayDaniel 08:38 (quit) MayDaniel: 09:09 (join) Jonas_ 09:09 Jonas_: Hi 09:09 Jonas_: does anybody know here of a racket language called combo? 09:10 Jonas_: shoud be some kind of mixture between "advanced student" and "essentials of programming languages" 09:10 Jonas_: I build a function simulation framework in "advanced student" and now need to use the "eval" function from "essentials of programming languages" 09:11 Jonas_: my teacher told me a couple of days ago that with the combo language eval is added to "advanced student" but I can't seem to find the option/language in my installation 09:55 (join) danbrown 10:15 (join) vu3rdd 10:20 (join) MayDaniel 10:48 (join) anRch 10:49 (join) sstrickl 10:52 (join) tv_ 11:10 (join) stamourv 11:20 (quit) pygospa: Disconnected by services 11:20 (join) TheRealPygo 11:29 (join) tv|z 11:29 (quit) tv_: Quit: Page closed 11:40 (join) scifi 11:47 (join) b-man_ 11:50 (quit) anRch: Quit: anRch 11:57 (join) anRch 12:06 scifi: hi i have some troubles with my code, i cant seam to be able to define a pair between 2 lists, that analises if in each list 12:06 scifi: there are pairs 12:07 scifi: of numbers 12:07 jeapostrophe: i don't understand your question 12:07 jeapostrophe: what is a pair between 2 lists? 12:07 scifi: ill refraze 12:07 scifi: frase 12:07 jeapostrophe: wait, are you a student working on an assignment? 12:08 scifi: i want to make a pair of two list 12:08 scifi: no 12:08 scifi: essencialy im just trying to learn 12:08 scifi: some values 12:08 scifi: i have a test soon 12:08 scifi: so im training 12:08 jeapostrophe: what is a pair of two lists? 12:09 scifi: essencialy (cons (list 1) (list 2)) 12:09 jeapostrophe: okay, so do that? 12:09 scifi: well 12:09 scifi: i wanna make something like 12:09 scifi: condicional 12:09 scifi: and analise if in every list 12:09 scifi: there is a pair in them 12:09 jeapostrophe: (andmap pair? l) ? 12:10 scifi: (cond ((and (pair? (car (list 1) 12:10 scifi: problem its a list of severall 12:10 scifi: pairs 12:10 scifi: 2 list of severall pairs 12:11 scifi: map? 12:11 scifi: andmap=? 12:12 Jonas_: @jeapostrophe - do you know a language called combo? 12:12 jeapostrophe: Jonas_: i do not. should i? 12:12 (join) jonrafkind 12:12 jeapostrophe: scifi: i'm sorry, i just don't understand. try writing test cases and applying the design recipe 12:13 scifi: hm what does andmap means 12:13 scifi: btw 12:13 jeapostrophe: look it up in the help desx 12:13 scifi: ok 12:13 scifi: sure 12:13 scifi: i will 12:13 Jonas_: @jeapostrophe - hmmm, I had hoped so, I'm looking for a language which can make use of the "eval" function as well as the syntax of the advanced learner language in dr racket 12:13 Jonas_: I had heard that combo can do it but can't find this language (setting?!) in dr racket 12:14 jeapostrophe: Jonas_: ah. unless an instructor has made a custom language called combo, it does not exist. it has never been in any release of drracket in the last 10 years 12:15 Jonas_: @jeapostrophe - Ok thanks for the info. Any ideas which language I could use instead for "eval" and "empty?"/"first"/"rest"? 12:16 jeapostrophe: #lang racket 12:17 (join) mceier 12:19 Jonas_: @jeapostrophe: Fantastic, thank you so much, that worked beautifully! 12:19 scifi: ok i know aht andmap is 12:19 scifi: but cant i do 12:19 scifi: and (andmap 12:20 scifi: (and (andmap pair? lst1) (andmap pair? lst2)) 12:20 scifi: and aply an if statement to it 12:20 scifi: it says its an error 12:20 scifi: aplied 12:21 scifi: it expects a procedure 12:22 scifi: nvm 12:22 scifi: it works 12:22 scifi: xD 12:23 (quit) jao: Ping timeout: 260 seconds 12:24 (quit) anRch: Quit: anRch 12:45 (quit) tv|z: Ping timeout: 250 seconds 12:46 (join) tv|z 12:54 (quit) MayDaniel: Read error: Connection reset by peer 12:56 tv|z: I just forked github.com:plt/racket.git and added #:tcp@ to ws-serve (for wss support). 12:56 tv|z: Is it ok to request a pull or is there some process I missed? 12:58 jonrafkind: i guess a request is fine 12:59 jonrafkind: do you have one ready? 12:59 tv|z: yes 13:01 tv|z: ok, I filed the request 13:01 jonrafkind: cool 13:14 (quit) Jonas_: Ping timeout: 265 seconds 13:19 (quit) hanDerPeder: Quit: hanDerPeder 13:20 (join) Axsuul 14:00 (quit) danbrown: Remote host closed the connection 14:15 eli: tv|z: It's more effective to send it to the dev@racket-lang.org list, we can't pull on GH since it's just a mirror. 14:16 jonrafkind: you should clarify what "it" is 14:17 eli: The same as your "one". 14:18 jonrafkind: oh, I thought a pull request was specific to github 14:19 jonrafkind: and otherwise you sent around patches 14:19 eli: It is. 14:19 jonrafkind: so how can you send a pull request that is not associated with github 14:20 eli: A pull request is equivalent to a patch. 14:21 samth: eli, you could pull from his github project 14:22 samth: and then push to master 14:22 eli: As could Jay, who I already forwarded it to. 14:22 samth: right 14:22 samth: i didn't mean that you personally should do it, only that it isn't specific to github 14:23 eli: Yes, yes. like I said, a pull request is equivalent to a patch. Can we go back to work now? 14:23 samth: i doubt it 14:31 (join) MayDaniel 14:37 scifi: is there a way to a program to return a pair like (2.1) (2.2) without using 14:37 scifi: cons or list 14:41 (quit) b-man_: Remote host closed the connection 14:43 jonrafkind: `values' ? 14:46 (quit) vu3rdd: Remote host closed the connection 14:48 (join) danbrown 14:50 scifi: hm? 14:50 scifi: values 14:50 scifi: ??? 14:52 jonrafkind: ?????????????////////////////////////////////////////////// 14:52 scifi: i got it 14:52 scifi: lol 14:53 scifi: thanks 14:54 scifi: i schemed it serves me a lot 14:54 scifi: never saw its notation 14:56 scifi: btw is there something similar to break 14:56 scifi: in scheme 14:57 scifi: that jumps off a procedure 14:58 rapacity: you can use continuations 14:58 rapacity: let/cc 14:59 eli: (let/ec break (stuff) (break) (stuff)) 15:01 scifi: ty 15:01 eli: yw 15:03 jeapostrophe: eli: you can point me to your reference if you want 15:05 eli: jeapostrophe: ? You mean the url? 15:10 samth: jeapostrophe, what's the deal w/ drdr? 15:14 Lajla: Can someone explain why (apply apply + '()) for instance doesn't work and produces an error? 15:15 clklein: Lajla: For the same reason that (apply +) doesn't work 15:15 clklein: ("apply expects at least 2 arguments") 15:16 Lajla: clklein, how to fix it 15:17 Lajla: (apply apply + '() '())? 15:17 jeapostrophe: eli: in response to my confusion about the push 15:17 jonrafkind: (apply apply + '((1 2))) 15:17 jeapostrophe: samth: my vnc thing fixed a few problems but not others 15:17 jonrafkind: (apply apply + '(())) 15:17 jeapostrophe: i have no idea why 15:17 Lajla: Ahhh, yes 15:18 Lajla: (apply apply + '() '()) seems to also be accepted to produce 9 15:18 Lajla: 0* 15:19 jeapostrophe: samth: and right now i need to finish the pldi paper so i probably won't try much this week 15:20 samth: jeapostrophe, i was just wondering why it isn't running 15:21 (join) writer_ 15:21 jeapostrophe: ah... the connection to the git server stalled: 15:21 jeapostrophe: purify-http-port: Connection ended before headers ended 15:21 jeapostrophe: and then it hung forever 15:21 samth: fun 15:21 samth: you should write some service that tells you if its dead 15:22 (quit) writer: Disconnected by services 15:22 (nick) writer_ -> writer 15:22 (quit) writer: Changing host 15:22 (join) writer 15:24 jeapostrophe: i did but i'm not runnig 15:24 jeapostrophe: i thought eli said he could do it on the machine that is monitoring all the sites so i haven't 15:25 jonrafkind: maybe you can use nagios 15:27 (quit) MayDaniel: 15:29 (join) _mo_ 15:43 (quit) writer: Quit: writer 15:43 (join) writer 15:54 (quit) samth: Remote host closed the connection 15:55 (join) samth 16:17 clklein: I'm trying to write a specialized version of `set!' that only works on variables introduced using a special binder, call it `slet' 16:18 jonrafkind: make-set!-transformer 16:18 clklein: I thought maybe a syntax parameter was the way to do it (record which variables can be the target of `slet'), but I'm not sure if I'm on the right track. 16:18 samth: well, just have `slet' expand to (let ([hidden-state ...]) (let-syntax ([name (some struct that `my-set!' knows about)]) ...)) 16:18 jonrafkind: or maybe syntax-properties 16:19 samth: jonrafkind, syntax properties def won't work 16:25 (join) hanDerPeder 16:26 (quit) danbrown: Remote host closed the connection 16:26 clklein: samth: I don't follow. I take it that `my-set!' will get a hold of the struct somehow (syntax-local-value maybe?) and check that it's an OK target, but `name' also needs to be a transformer that expands into references to the variable. 16:27 samth: exactly, clklein 16:28 clklein: so it's an applicable struct? 16:28 samth: yes 16:28 clklein: that's pretty cool 16:29 samth: clklein, you can even use `set!' instead of `my-set!' if you use `make-set!-transformer' 16:30 clklein: I thought I didn't follow because I forgot that transformers are regular ol' procedures. I thought I needed some weird struct-transformer hybrid that I didn't know how to get. 16:31 clklein: Anyway, this sounds easy enough, but out of curiosity, is there a reasonable way to do this using a syntax parameter? 16:32 samth: no 16:32 samth: syntax parameters are for having the same variable mean different things in different places 16:32 clklein: oh 16:32 samth: they're similar to parameters, except they vary based on the static context they're used in 16:34 clklein: Your second explanation is what made me think they would work: I want a value (a list of my-set!-able variables) that varies based on static context 16:34 clklein: but it sounds like its the binding associated with the syntax parameter that changes 16:34 samth: do you want to have a name to refer to all of them at once? 16:34 samth: yes 16:35 clklein: got it 16:35 (quit) _mo_: Quit: Leaving 16:35 samth: if you want that name, then a syntax parameter is what you want 16:42 clklein: ok, thanks 17:09 (quit) sstrickl: Quit: sstrickl 17:12 (quit) samth: Remote host closed the connection 17:12 (join) samth 17:13 (join) jao 18:08 (join) singintime 18:12 singintime: hello world :) 18:12 jonrafkind: 42 18:14 singintime: always a good answer... THE answer :P 18:14 samth: hello 18:17 singintime: good to see there's a quite crowded irc channel about racket... I think I'll need some support for the next months 18:18 singintime: I just installed fluxus 18:18 singintime: and know nothing about scheme ) 18:18 singintime: :) 18:20 jonrafkind: me neither 18:21 (join) b-man_ 18:22 Axsuul: Is there a "scheme" way of doing this? Going through a data structure such as .. (a b) 1 ((a b) 2) and finding shared objects.. in this case, (a b) is shared 18:25 singintime: hmmm... from what I know about other functional languages... 18:26 singintime: make a function which tests if an element x is contained in the structure 18:26 singintime: and enclose it in another function 18:27 singintime: which takes just the structure as parameter 18:28 singintime: the outer function calls the inner function 18:28 singintime: where x is the first element of the structure 18:28 singintime: .. 18:28 singintime: ugh 18:28 singintime: it's getting complicated 18:29 singintime: I'll try... 18:30 singintime: (define (shared? xs) 18:30 singintime: (cond 18:30 singintime: ((null? l) #f) 18:31 singintime: ((member? (car l) (cdr l)) #t) 18:31 singintime: (else (shared? (cdr l))) 18:32 singintime: ) 18:32 singintime: ) 18:32 singintime: (ahem... substitute "xs" with "l" :) ) 18:32 singintime: makes sense? 18:35 (quit) scifi: Quit: Page closed 18:39 singintime: gotta go to bed... goodnight to people east from UTC+1, good evening to the rest of the world! 18:39 (quit) b-man_: Ping timeout: 245 seconds 18:39 (part) singintime 18:39 jonrafkind: you should probably do something like get the hash of all the elements and then compare hashes 18:45 Axsuul: thanks, that should help get me started 18:45 (join) danbrown 18:46 Axsuul: jonrafkind: how do you get the hash? 18:48 jonrafkind: equal-hash-code 18:49 jonrafkind: theres also eq-hash-code 18:50 samth: just build as hash table as you go 18:51 jonrafkind: yea thats probably easier 18:51 samth: (define (f l) (for/fold ([l* null] [h (hash)]) ([e (in-list l)]) (if (hash-ref h e #f) (values (cons e l*) h) (values l* (hash-set h e #t))))) 18:52 samth: composed in my irc client, so it prob won't work 18:57 Axsuul: samth: what does * mean 18:57 jonrafkind: hahahhaa 18:57 Axsuul: oh, is that a valid 18:58 Axsuul: identifier 18:58 jonrafkind: it doesnt mean anything.. its just poor naming conventions 18:58 Axsuul: Ah ok haha 18:59 samth: it's the equivalent of f' in math (we can't use ' b/c it means `quote') 19:42 (quit) danbrown: Remote host closed the connection 19:45 (join) danbrown 19:52 (quit) danbrown: Remote host closed the connection 20:07 chandler: I've also seen ^ used for that, but maybe that's an Indiana thing. 20:16 (quit) mceier: Quit: leaving 20:16 (join) danbrown 20:18 (quit) Lajla: Ping timeout: 240 seconds 20:19 clklein: I recently discovered that, on a Mac, shift+option+] gives a great prime symbol which you can use in an identifier 20:19 bremner: yay non-portable identifiers 20:19 clklein: portable? 20:19 bremner: I guess its unicode, so emacs can do it 20:20 bremner: I mean, I'm not buying a mac to edit your code :) 20:21 clklein: just a matter of figuring out how to type it in another environment, as you said 20:24 clklein: jonrafkind: Now, not only do you need to understand what the variable's name means but you also need to learn how to type it 20:24 jonrafkind: ill schedule a lobotomy immediately 20:27 clklein: I think I've managed to refrain from using it in code someone else might edit, but it's only a matter of time before I slip up :) 20:33 (quit) jonrafkind: Ping timeout: 260 seconds 20:33 (quit) danbrown: Remote host closed the connection 20:36 bremner: (define ☃ 'snow-man-with-snow) 21:15 (join) ASD 21:16 (nick) ASD -> Guest66121 21:17 Guest66121: anyone know how to generate sound in racket? either in real time or into a file. 21:18 (join) danbrown 21:45 (join) Lajla 21:51 (quit) danbrown: Remote host closed the connection 22:03 (quit) _p4bl0: Ping timeout: 245 seconds 22:29 (quit) emma: Ping timeout: 265 seconds 23:04 (join) acts_as_david 23:14 (quit) acts_as_david: Quit: acts_as_david 23:24 (join) jonrafkind 23:24 (join) danbrown 23:58 (join) vu3rdd