00:02 (quit) rmathews: Quit: ... 00:14 (quit) Kaylin: Ping timeout: 244 seconds 00:30 (join) rmathews 00:44 (part) lewis1711: "Leaving" 01:03 (quit) Fare: Ping timeout: 264 seconds 01:04 (join) z0lt 01:28 (quit) tcsc: Quit: computer sleeping 01:52 (join) tcsc 01:53 (join) Kaylin 02:10 (quit) Kaylin: Ping timeout: 255 seconds 03:18 (join) ykm 03:19 (part) ykm 03:34 (quit) rmathews: Ping timeout: 245 seconds 03:44 (join) bitonic 04:19 (quit) mithos28: Quit: mithos28 04:26 (join) rmathews 05:03 (join) zacts 05:04 (quit) tcsc: Quit: computer sleeping 05:11 (quit) dca: Ping timeout: 255 seconds 05:17 (join) ijp 05:38 (quit) Nisstyre-laptop: Quit: Leaving 06:37 (join) dca 06:38 (join) soegaard 06:48 (quit) merijn: Ping timeout: 240 seconds 06:55 (quit) rmathews: Quit: ... 07:09 (join) mye 07:16 (join) merijn 07:41 (join) rmathews 07:54 (join) jao 07:54 (quit) jao: Changing host 07:54 (join) jao 07:57 (join) jeapostrophe 08:02 (quit) jao: Quit: ERC Version 5.3 (IRC client for Emacs) 08:03 (join) MayDaniel 08:17 (join) mye_ 08:20 (join) jao 08:20 (quit) mye: Ping timeout: 245 seconds 08:20 (nick) mye_ -> mye 08:21 (quit) jao: Changing host 08:21 (join) jao 08:36 (quit) soegaard: Quit: soegaard 08:54 (join) soegaard 08:55 (join) anRch 08:56 (join) lewis__ 08:56 (nick) lewis__ -> lewis1711 08:59 (join) RacketCommitBot 08:59 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/qk-iNw 08:59 RacketCommitBot: racket/master 404e884 Matthew Flatt: racket/gui: doc clarifications on refreshes and edit sequences 08:59 RacketCommitBot: racket/master 4c98570 Matthew Flatt: reference: fix typo and terminology for `with-continuation-mark'... 08:59 (part) RacketCommitBot 09:04 (quit) rmathews: Quit: ... 09:29 (join) tilde` 10:04 (join) mizu_no_oto 10:10 (join) RacketCommitBot 10:10 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/pSCvOQ 10:10 RacketCommitBot: racket/master 8aa3e1d Robby Findler: another close-paren insertion repair... 10:10 (part) RacketCommitBot 10:15 (join) anonymou1 10:15 anonymou1: Hello everyone! 10:15 anonymou1: Tell me, please 10:16 anonymou1: Is it bad style to write (define (a) 2) instead of (define a 2) if I want to? 10:16 anonymou1: so - use function instead of a simple variable 10:17 bremner: anonymou1: if you know why you want to, I guess it's OK. Why do you want to? 10:18 anonymou1: bremner: just because I like it this way. I may seem crazy(tell me, please if so). 10:18 lewis1711: LOL. fair enough 10:19 anonymou1: Maybe I see variables as strange in case of lisp as strange as... 10:19 bremner: anonymou1: you will probably confuse other people reading your code. 10:19 lewis1711: why are variables strange in lisp? 10:19 anonymou1: just as strange as making a new type of data as printing 10:19 anonymou1: i.e.: 10:20 anonymou1: (define |print-line "Hello, World") 10:20 anonymou1: ) 10:20 bremner: I don't get it. 10:21 bremner: that just gives a name to a string 10:22 anonymou1: bremner: a minute, I am going to try to say it better 10:22 bremner: anonymou1: if you want to define non-trivial functions, you need to use parameters, which are like variables. 10:25 anonymou1: in case of lisp, as I see, adding variables when we have functions a bit more complicated when it is don't needed(I want to pay your attention: I have no much experience with programming). What is variable? For me it seems pretty enough to say: "a function that doesn't do anything else instead of returning a value"(today we have syntactic difference, I mean lisp could change and be more minimalistic). 10:25 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 10:26 bremner: anonymou1: well, how would you like the syntax for (define (add1 x) (+ x 1)) to be? 10:26 bremner: anonymou1: mutation is another issue, which in principle you could avoid. e.g. (set! x 1) 10:27 anonymou1: i don't want to treat functions that only return a value as something Special. Just as I don't want to treat functions that only print some text as something Special. I want your syntax to be (define (add x) (+ (x) 1)) 10:27 anonymou1: the* 10:27 asumu: anonymou1: note that functions are not "special". (define (a) 2) just means (define a (lambda () 2)) 10:27 anonymou1: the syntax 10:27 asumu: (so if you find variables strange, function definitions should be strange too) 10:28 lewis1711: yeah define sort of does two things. 10:30 (quit) tilde`: Quit: kthxbai 10:32 (join) C_ 10:32 bremner: anonymou1: I think your scheme would turn every function call (foo bar baz) into ((foo) (bar) (baz)) 10:32 (join) tcsc 10:33 (quit) C_: Client Quit 10:34 (quit) anRch: Quit: anRch 10:37 (join) Kaylin 10:42 (join) francisl 10:43 anonymou1 doesn't like to hurry. He is calmly analysing. 10:43 anonymou1 ...and eating 10:44 anonymou1: so I am a bit afk, thank you very much for the answers. 10:44 bremner: anonymou1: I think you're correct there is asymmetry, but the asymmetry is in using a different syntax to call a function than to evaluate a variable. E.g. Haskell takes a different approach; afaik there is no syntactic distinction between variables and zero argument functions there. It's just a different set of design tradeoffs. 10:44 bremner: sure, take your time ;). 10:50 (join) mithos28 10:51 (quit) tcsc: Quit: computer sleeping 11:00 (quit) jao: Ping timeout: 244 seconds 11:05 (quit) francisl: Quit: francisl 11:08 (quit) Demosthenex: Ping timeout: 245 seconds 11:09 (join) Fare 11:10 (join) Demosthenex 11:11 (join) tcsc 11:14 (quit) tcsc: Client Quit 11:16 anonymou1: bremner: yes, you're right: I want it to be called as ((foo) (bar) (baz)) or (!ADDRESS_OF_THE_FOO_FUNCTION! (bar) (baz) or ((foo) 'green 'calm) 11:17 anonymou1: I am studying lisp by the way "starting to program on a language from the start of the studying is the best way to learn the language". I have no idea what is macro, but I heard it is a very cool feature related to lisp and parntheses. 11:18 anonymou1: ...maybe what I want to do make macro worse, I have no idea 11:18 anonymou1: s* 11:19 lewis1711: anonymou1, do you know mathematics? a variable in racket is like a variable in mathematics 11:19 anonymou1: (# (bar) (baz)) 11:20 lewis1711: what you're proposing would sort of be like.... x() ^ 2() + y()^2()... 11:20 (join) parcha 11:21 anonymou1: lewis1711: I am an hikki. I am going to know it better, I'd like to. I know what is a variable, but have you read our discussion? It started at 8:15? 11:22 anonymou1: lisp isn't just a copy of math language, is it? 11:22 lewis1711: not exactly, but programming and maths share many concepts 11:22 lewis1711: hikki? 11:23 bremner: anonymou1: I think one thing you are missing is that there is no "address of function", there is just lambda's (or procedures values) 11:26 anonymou1: (UTC) lewis1711 : this is a bit slang, but it seemed to be popular for USA for me. So, it is not a definition but to be short: I am not working or officially studying. I am studying at home, so, maybe, I don't know something from. for example, philosophy that should know every USA student of the second term. I choose what to study. (My parents have no anything versus) 11:27 anonymou1: hikikomori 11:27 lewis1711: I'm not american :) 11:28 anonymou1: bremner: yes, i tried to met it at 19:19 < anonymou1> (# (bar) (baz)) 11:29 anonymou1: fix my expression 11:29 anonymou1: but thanbk you for the note 11:29 (join) zenja 11:31 (join) francisl 11:35 bremner: anonymou1: you might like this book if you are interested in building things from the ground up: http://cs.brown.edu/courses/cs173/2012/book/ ; it will be a bit tough as a way to learn programming though. Probably "How to design programs" is better for that. 11:36 (quit) francisl: Quit: francisl 11:38 (quit) merijn: Ping timeout: 244 seconds 11:42 (quit) Fare: Ping timeout: 245 seconds 11:45 (quit) Demosthenex: Ping timeout: 245 seconds 11:47 (join) Demosthenex 11:52 (join) merijn 11:57 (join) dca- 12:04 (quit) dca: Quit: ZNC - http://znc.in 12:11 (join) Fare 12:13 asumu: Hmm, is there an analogue of `findf` for removing elements? 12:13 asumu: That seems like something that should exist. 12:13 mithos28: removef? 12:13 asumu: Doesn't exist. 12:13 asumu: There is `remp` from R6RS 12:13 mithos28: remove? 12:13 mithos28: it takes a third arg 12:14 asumu: That's an equality predicate, but not an arbitrary predicate. 12:14 asumu: Although okay, you could use that to implement remp. 12:14 mithos28: Make the element #f and ignore the first arg 12:14 mithos28: remf 12:14 mithos28: thats it 12:15 asumu: rudybot: (define (remp p lst) (remove #f lst (lambda (x y) (p y)))) 12:15 rudybot: asumu: Done. 12:15 asumu: rudybot: (remp even? '(1 2 3 4)) 12:15 rudybot: asumu: ; Value: (1 3 4) 12:15 mithos28: rudybot: init racket 12:15 rudybot: mithos28: your sandbox is ready 12:15 asumu: Whoops. Need remove* 12:15 mithos28: rudybot: (require unstable/list) 12:15 rudybot: mithos28: Done. 12:15 mithos28: rudybot: doc remf 12:15 rudybot: mithos28: http://docs.racket-lang.org/unstable/list.html#(def._((lib._unstable%2Flist..rkt)._remf)) 12:15 asumu: Ah, that's what I wanted. 12:16 asumu: Thanks. 12:16 anonymou1 has just returned 12:16 anonymou1: bremner: thank you very much 12:16 asumu: Though really, remf is gratuitously inconsistent with both findf and remp. :p 12:17 mithos28: What do you mean? 12:18 (quit) Fare: Ping timeout: 245 seconds 12:18 asumu: Just the naming. To be consistent with findf, you'd probably call it removef. 12:19 asumu: Or you could be consistent with R6RS and just go with remp. Not that it really matters. 12:19 mithos28: it matches memf and assf 12:19 mithos28: findf is the odd one out 12:19 asumu: Fair enough. 12:22 (quit) jeapostrophe: Ping timeout: 244 seconds 12:28 (join) bitonic` 12:30 Cryovat: I'm a bit late to the party 12:30 Cryovat: But congrats on shipping :) 12:31 (quit) bitonic: Ping timeout: 260 seconds 12:31 lewis1711: list unstable is great. it should be stabilised 12:36 (quit) mithos28: Quit: mithos28 12:38 (join) francisl 12:38 (join) azynheira 12:39 azynheira: hi 12:39 azynheira: is there any racket idiom documentation out there? 12:39 azynheira: kinda cookbook ... 12:40 Cryovat: "Racket For Lispers"? 12:40 asumu: azynheira: there is the Racket style guide (goes to find link) 12:41 asumu: http://www.ccs.neu.edu/home/matthias/Style/style/index.html 12:41 azynheira: njce 12:42 Cryovat: Shouldn't that be on racket-lang.org? 12:42 azynheira: maybe ? that is probably why I did not find it in a easy way 12:43 asumu: It probably should. The reason it wasn't before was because it was a work in progress. 12:43 azynheira: Coding is per se a work in progress :P 12:44 Cryovat: I've heard it compared to cat herding 12:44 Cryovat: It's a cute allegory :D 12:44 (join) Shvillr_ 12:44 (quit) Shviller: Disconnected by services 12:44 (nick) Shvillr_ -> Shviller 12:45 (quit) Shvillr: Ping timeout: 245 seconds 12:45 (join) Shvillr 12:46 (join) mithos28 12:52 (quit) francisl: Quit: francisl 13:01 (join) rmathews 13:05 (quit) Kaylin: Quit: Leaving. 13:10 (join) groovy2shoes 13:14 (join) Kaylin 13:30 (part) azynheira: "Leaving" 13:35 (join) tcsc 13:42 (quit) bitonic`: Ping timeout: 255 seconds 13:45 (join) Pacman_Syu 13:47 Pacman_Syu: can anyone give me a little help on my first racket program? 13:48 Pacman_Syu: here's my code: http://pastebin.com/E2gEgpv6 13:50 (join) tilde` 13:50 Pacman_Syu: and here's the output I'm getting when putting int the first file: http://i.imgur.com/CU4t9OM.png 13:52 Cryovat: Thing is 13:52 Cryovat: It's expecting a full path 13:52 Cryovat: And it's only getting the file name 13:53 Pacman_Syu: if I use "zefile.txt" instead of inputfile it works though, are you sure? 13:54 Pacman_Syu: oh wait, maybe not >.<, for the (get-output-string in) line anyway. 13:55 Pacman_Syu: maybe I'm completely mistaken. 13:56 Cryovat: http://docs.racket-lang.org/reference/Manipulating_Paths.html?q=path-string%3F#%28def._%28%28lib._racket%2Fprivate%2Fmisc..rkt%29._path-string~3f%29%29 13:56 rudybot: http://tinyurl.com/b2xq4yv 13:56 Cryovat: The error is complaining that it doesn't match this contract 13:58 Pacman_Syu: I see 13:58 Pacman_Syu: is there a way to get it to accept a file inside of the same directory? 14:00 (join) sizz 14:02 (quit) Pacman_Syu: Read error: Connection reset by peer 14:03 (join) Pacman_Syu 14:05 Pacman_Syu: it doesn't seem to like it if I give it filenames either. 14:05 Cryovat: Try giving it a full one 14:05 Cryovat: Like c:\foo\bar\chicken.egg 14:05 asumu: Pacman_Syu: you probably don't want to actually use the `read` function. `read-line` maybe? 14:07 asumu: rudybot: (with-input-from-string "foo" (lambda () (read))) 14:07 rudybot: asumu: ; Value: foo 14:07 asumu: rudybot: (with-input-from-string "foo" (lambda () (read-line))) 14:07 rudybot: asumu: ; Value: "foo" 14:07 (quit) zenja: Quit: Leaving 14:07 asumu: (the former is a symbol, the latter is a string) 14:09 Pacman_Syu: still yells at me if I use a full path 14:09 Pacman_Syu: http://i.imgur.com/CcohTRe.png 14:09 Pacman_Syu: that's with read-line and a full path, I might add 14:10 Pacman_Syu: same result with read 14:10 Pacman_Syu: well, except without # wrapping it 14:11 asumu: Well, as the error says `get-output-string` only works on string ports. i.e., ports opened on strings. 14:11 asumu: You have a file input port. 14:12 (join) Nisstyre-laptop 14:12 asumu: You probably want to use `read-line`, `read-string`, `port->string` or some variation of that on `in`. 14:12 Pacman_Syu: oiiii... 14:12 (quit) Kaylin: Quit: Leaving. 14:12 (quit) groovy2shoes: Quit: Computer has gone to sleep 14:21 (quit) htop_: Remote host closed the connection 14:28 (join) jonrafkind 14:30 (quit) anonymou1: Quit: Lost terminal 14:47 Pacman_Syu: got it: http://pastebin.com/myEd3znj 14:47 Pacman_Syu: thanks asumu, Cryovat. 14:48 Cryovat: Nice :) 14:49 (join) sizz_ 14:50 (quit) sizz: Ping timeout: 255 seconds 14:50 (quit) ijp: Ping timeout: 245 seconds 14:56 (quit) MayDaniel: Read error: Connection reset by peer 14:56 (join) jeapostrophe 14:56 (quit) jeapostrophe: Changing host 14:56 (join) jeapostrophe 14:56 (join) ijp 15:01 (quit) jeapostrophe: Ping timeout: 245 seconds 15:03 (join) jao 15:03 (quit) jao: Changing host 15:03 (join) jao 15:14 (join) mario-goulart 15:22 (join) jeapostrophe 15:22 (quit) jeapostrophe: Changing host 15:22 (join) jeapostrophe 15:31 (join) camilo_ 15:33 (nick) camilo_ -> cabernal 15:38 (join) cabernal 15:41 (join) MayDaniel 15:42 (quit) cabernal: Quit: WeeChat 0.3.9.2 15:43 (quit) z0lt: Ping timeout: 248 seconds 15:50 (quit) MayDaniel: Read error: Connection reset by peer 16:00 (join) sizz 16:01 (quit) sizz_: Ping timeout: 264 seconds 16:12 (quit) Pacman_Syu: Read error: Connection reset by peer 16:13 (join) Pacman_Syu 16:27 (join) Kaylin 16:31 (join) mizu_no_oto 16:41 (join) anRch 16:45 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 16:52 (quit) Kaylin: Quit: Leaving. 16:52 (join) groovy2shoes 17:09 (quit) anRch: Quit: anRch 17:16 (quit) jeapostrophe: Ping timeout: 256 seconds 17:17 (join) dyoo 17:17 dyoo: lewis1711: re: your question on how to type http://pastie.org/6027502. Use the typed version of for/sum. e.g. (define (dot-product ls rs) (for/sum: : Number ([l ls][r rs]) (* l r))) 17:20 (join) ijp` 17:22 (quit) ijp: Ping timeout: 245 seconds 17:22 (nick) ijp` -> ijp 17:32 (join) francisl 17:36 dyoo: mithos28: here's a potential answer to your question from a day ago: https://gist.github.com/4699554 17:41 (join) jeapostrophe 17:41 (quit) jeapostrophe: Changing host 17:41 (join) jeapostrophe 18:02 (join) bitonic` 18:09 (quit) tilde`: Read error: Connection reset by peer 18:09 (join) MayDaniel 18:10 (join) tilde` 18:10 (quit) bitonic`: Ping timeout: 260 seconds 18:19 (join) mizu_no_oto 18:22 (quit) soegaard: Quit: soegaard 18:37 samth: dyoo: that was my impetus for fixing it 18:37 dyoo: :) 18:37 dyoo: I think the compiler hack fixes the craziness with planet2 and drracket colliding. Still exercising it to be more confident... 18:39 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 18:43 (join) Sicp 18:46 (quit) dyoo: Quit: dyoo 18:47 Sicp: how do I turn this strange coloring off? https://dl.dropbox.com/u/19390574/racketscrot.png 18:52 Sicp: it stopped when I restarted DrRacket; how peculiar 18:53 (join) sysop_fb 18:54 (join) mizu_no_oto 18:57 (join) sirdancealot7 19:04 (join) Kaylin 19:05 (quit) zacts: Quit: ERC Version 5.3 (IRC client for Emacs) 19:16 (join) zacts 19:18 (quit) zacts: Client Quit 19:19 (join) zacts 19:26 (quit) francisl: Quit: francisl 19:30 asumu: Sicp: I get a broken link. 19:30 Sicp: it isn't there anymore 19:30 Sicp: the restart fixed it 19:34 Sicp: what if I wanted a slider with no label 19:35 Sicp: I don't get the scarcity of constructors 19:36 Cryovat: Tried handing it an empty string? 19:36 Cryovat: I'm assuming you're talking about the Racket GUI library here 19:36 (join) bjz 19:37 Sicp: it isn't scarcity of constructors; that was one of the most stupid things i've ever said, actually 19:37 Sicp: in Java I am also restricted to all parameters, I simply pass in 'null' 19:42 (quit) parcha: Remote host closed the connection 19:50 (join) parcha 19:54 (part) Pacman_Syu: "Leaving" 19:54 gf3: Raynes: OHAI 19:55 Raynes: gf3: Ohai. 20:00 (quit) MayDaniel: Read error: Connection reset by peer 20:06 Sicp: beautiful GUI 20:06 Sicp: you can make anything you like 20:09 (quit) Kaylin: Quit: Leaving. 20:15 Sicp: ok, verdict 20:16 offby1: You can syndicate any boat you row 20:16 Sicp: this http://pastie.org/6031734 for this https://dl.dropbox.com/u/19390574/racketGUI.png 20:16 Sicp: derpy? 20:18 (quit) jonrafkind: Ping timeout: 255 seconds 20:20 (join) z0lt 20:21 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 20:29 (quit) groovy2shoes: Quit: Computer has gone to sleep 20:43 (quit) z0lt: Quit: leaving 20:44 (quit) Nisstyre-laptop: Quit: Leaving 20:46 (join) Nisstyre-laptop 20:48 (join) mizu_no_oto 20:59 (join) francisl 21:04 (join) bitonic` 21:05 (quit) Nisstyre-laptop: Quit: Leaving 21:09 (quit) tilde`: Read error: Operation timed out 21:25 (part) Sicp: "Leaving" 21:26 lewis1711: "stdin::95: Type Checker: Duplicate type annotation of ((Sequenceof Number) -> Number) for dot-product, previous was Error" :/ 21:28 lewis1711: dyoo: that works though thanks. oh he/she is gone 22:01 (join) Kaylin 22:06 (join) Kaylin1 22:06 (quit) Kaylin: Ping timeout: 252 seconds 22:14 (quit) bitonic`: Ping timeout: 252 seconds 22:28 (quit) Kaylin1: Read error: Connection reset by peer 22:35 (quit) parcha: Remote host closed the connection 22:37 (join) Nisstyre-laptop 22:37 (join) parcha 22:43 (join) RacketCommitBot 22:43 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/tEBXfg 22:43 RacketCommitBot: racket/master 50a8287 Matthew Flatt: x86_64-mac: Pango CoreText repair... 22:43 RacketCommitBot: racket/master 1995b2f Matthew Flatt: fix doc mistake... 22:43 RacketCommitBot: racket/master 573924e Matthew Flatt: fix doc typo... 22:43 (part) RacketCommitBot 22:44 (quit) parcha: Remote host closed the connection 22:45 (join) ambrosebs 22:46 (quit) zacts: Quit: leaving 22:46 (join) parcha 22:48 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 22:53 (quit) ambrosebs: Remote host closed the connection 22:56 (join) dnolen 23:06 (quit) jeapostrophe: Ping timeout: 246 seconds 23:16 (quit) francisl: Quit: francisl 23:17 (quit) Nisstyre-laptop: Ping timeout: 245 seconds 23:24 (join) mizu_no_oto 23:29 lewis1711: think I found a TR bug anyway 23:32 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 23:32 (join) mizu_no_oto 23:35 (join) francisl 23:41 (join) neilv 23:42 (join) zacts 23:42 neilv: top post on reddit at the moment is very loosely racket-related. http://www.reddit.com/r/funny/comments/17s64r/found_outside_a_restaurant_in_auckland_new_zealand/ 23:42 rudybot: http://tinyurl.com/acgtzf7 23:46 (quit) jao: Remote host closed the connection 23:46 (join) Kaylin 23:50 lewis1711: neilv, I apologise for my fellow countrymen :(