00:07 (quit) dnolen: Read error: Connection reset by peer 00:08 (join) dnolen 00:13 (quit) ckrailo: Quit: Computer has gone to sleep. 01:02 (join) ohwow 01:03 (quit) dnolen: Quit: dnolen 01:17 (join) mithos28 01:57 (quit) mithos28: Quit: mithos28 02:10 (join) singalong 02:11 singalong: are there any koans for racket (even just r5s5 scheme would do)? I'm referring to something like the ruby-koans which help learn the language. 02:34 (join) SeanTAllen 02:43 (quit) singalong: Ping timeout: 252 seconds 06:09 (join) masm 06:18 (join) lucian 06:39 (join) MayDaniel 06:40 (join) dzhus 07:09 (quit) MayDaniel: Read error: Connection reset by peer 07:46 (join) tewk 07:51 (join) lucian_ 07:53 (quit) lucian: Ping timeout: 240 seconds 07:55 (join) lucian 07:57 (quit) lucian_: Ping timeout: 276 seconds 08:14 (join) PLT_Notify 08:14 PLT_Notify: racket: master Eli Barzilay * 7f57fce (1 files in 1 dirs): Fix the bgcolor on the mailman pages. ... - http://bit.ly/goO2Yh 08:14 (part) PLT_Notify 08:51 (join) PLT_Notify 08:51 PLT_Notify: racket: master Eli Barzilay * 22603f3 (1 files in 1 dirs): Add `-j 1' to builds, and `--disable-libffi' to configure. 08:51 PLT_Notify: racket: master Eli Barzilay * 020946c (1 files in 1 dirs): Disable xdg-open, since it seems like it suffers from the same problem ... 08:51 PLT_Notify: racket: master commits 7f57fce...020946c - http://bit.ly/gbNzUI 08:51 (part) PLT_Notify 08:53 (join) MayDaniel 08:57 (join) tauntaun 09:18 (join) anRch 09:36 (join) PLT_Notify 09:36 PLT_Notify: racket: release Sam Tobin-Hochstadt * 45d06c5 (1 files in 1 dirs): Fix undocumented binding. ... 09:36 PLT_Notify: racket: release Robby Findler * 4895b6f (1 files in 1 dirs): added in recent changes ... 09:36 PLT_Notify: racket: release Robby Findler * 5488669 (0 files in 0 dirs): removed drscheme man page ... 09:36 PLT_Notify: racket: release Robby Findler * 61f3f31 (1 files in 1 dirs): fixed a bug in the way PR 11775 was fixed ... 09:36 PLT_Notify: racket: release Eli Barzilay * fef8785 (1 files in 1 dirs): Fix typo ... 09:36 PLT_Notify: racket: release John Clements * 72aae52 (2 files in 2 dirs): updates to history ... 09:36 PLT_Notify: racket: release Eli Barzilay * baca1d6 (1 files in 1 dirs): Fix the bgcolor on the mailman pages. ... 09:36 PLT_Notify: racket: release Eli Barzilay * aba5580 (1 files in 1 dirs): Add `-j 1' to builds, and `--disable-libffi' to configure. ... 09:36 PLT_Notify: racket: release Eli Barzilay * 498b5d5 (1 files in 1 dirs): Disable xdg-open, since it seems like it suffers from the same problem ... 09:36 PLT_Notify: racket: release Casey Klein * 4f1faf5 (1 files in 1 dirs): Updates Redex history for v5.1.1 release ... 09:36 PLT_Notify: racket: release commits 1601f8b...4f1faf5 - http://bit.ly/fR6TNW 09:36 (part) PLT_Notify 09:44 (quit) SeanTAllen: Quit: SeanTAllen 10:09 (join) shofetim 10:17 (quit) MayDaniel: Read error: Connection reset by peer 10:18 (quit) tauntaun: Quit: Ex-Chat 10:31 (quit) anRch: Quit: anRch 10:59 (join) terranera 11:10 (quit) terranera: Quit: Page closed 11:33 (quit) shofetim: Remote host closed the connection 11:46 (join) tauntaun 12:05 (join) lucian_ 12:07 (quit) lucian: Ping timeout: 250 seconds 12:09 (join) mithos28 12:40 (quit) Zorlin: Read error: Connection reset by peer 13:07 (quit) mithos28: Quit: mithos28 13:25 (join) mithos28 13:32 (quit) mithos28: Quit: mithos28 13:33 (quit) dzhus: Remote host closed the connection 13:33 (join) mithos28 13:39 (quit) bohanlon: Quit: So long, and thanks for all the fish! 13:52 (nick) lucian_ -> lucian 13:54 (join) geoffhill 13:57 (join) SeanTAllen 14:59 (join) dzhus 14:59 (join) MayDaniel 15:05 (quit) qha: Ping timeout: 260 seconds 15:06 (quit) geoffhill: Quit: geoffhill 15:08 (join) geoffhill 15:09 (quit) geoffhill: Read error: Connection reset by peer 15:09 (join) geoffhill_ 15:15 (quit) geoffhill_: Quit: geoffhill_ 15:17 (join) dnolen 15:29 (quit) SeanTAllen: Quit: SeanTAllen 15:34 (join) JpRoy 15:35 (quit) JpRoy: Client Quit 15:35 (join) wesh 15:37 wesh: hi :') can someone explain to me why i have problem with float ? (with drracket 5.1 ^^") 15:39 offby1: wesh: not unless you give us more detail 15:40 offby1: maybe you ate too much, and that's why you're sinking? 15:40 (join) jonrafkind 15:52 (quit) MayDaniel: Read error: Connection reset by peer 16:00 (quit) mceier: Quit: leaving 16:07 wesh: for example, when i execute ' (printf "~a" 0.9) ' 16:07 wesh: the result is "0.0" 16:08 offby1: hm, lemme try 16:08 offby1: rudybot: (format "~a" 0.9) 16:08 rudybot: *offby1: your racket sandbox is ready 16:08 rudybot: *offby1: ; Value: "0.9" 16:08 offby1 scratches head 16:08 DT``: > (printf "~a" 0.9) 16:08 DT``: 0.9 16:08 DT``: that's just floats being floats. 16:08 offby1: rudybot: (printf "~a" 0.9) 16:08 rudybot: *offby1: ; stdout: "0.9" 16:08 offby1: *shrug* 16:09 offby1: wesh: perhaps your computer is infected with gremlins. 16:09 wesh: no no :'p 16:09 wesh: i'm not the only 16:09 wesh: my friend has the same problem ^^" 16:09 offby1: well, out of you, DT``, and me, you are indeed the only one with this problem :) 16:10 offby1: you'll have to describe in more detail what you're doing, since obviously you haven't provided enough for DT`` and I to see what you're seeing. 16:10 DT``: wesh, floats are tricky beasts. 16:10 offby1: sure. 16:10 (join) Jyu 16:10 offby1: but going from 0.9 to 0 seems rather a large jump, even for a tricky float. 16:10 Jyu: hi 16:10 wesh: yes 16:11 wesh: vazy, explique leur, j'capte rien moi -_-" 16:11 Jyu: someone know how rotate a bitmap in racket/gui ? 16:11 offby1: 16:11 offby1: rudybot: t8 fr en vazy, explique leur, j'capte rien moi -_-" 16:11 rudybot: *offby1: vazy says theirs nothing j'capte me-_-" 16:11 Jyu: :rire: 16:12 DT``: actually, I remember a bug in drracket that made all the floats print as 0.0. 16:12 wesh: not only print :'/ 16:12 wesh: all calculations 16:12 DT``: yeah, because they print as 0.0. 16:13 DT``: wesh, try doing it from `racket''s repl. 16:13 wesh: for example (+ 2.5 2.0) returns 4.0 16:13 DT``: that's weird. 16:13 wesh: racket repl ? 16:13 DT``: the `racket' executable. 16:13 DT``: not from drracket. 16:13 Jyu: you've the same problem DT ? 16:13 offby1: wesh: what language level are you using? Perhaps it's some strange "truncate to integers" language. 16:13 Jyu: no 16:14 Jyu: it's from ubuntu 16:14 wesh: ah 16:14 DT``: Jyu, I *had* the same problem. 16:14 wesh: #lang racket 16:14 offby1: wesh: bummer. 16:14 wesh: bummer? ^^" 16:15 wesh: ca veut dire quoi bummer .. 16:15 offby1: meaning, that's the language I use, too, so your telling me that didn't enlighten me. 16:15 offby1: rudybot: t8 fr en ca veut dire quoi bummer 16:15 rudybot: *offby1: What it means bummer 16:15 (join) mceier 16:15 offby1: rudybot: t8 en fr "bummer" means "that's too bad" 16:15 rudybot: *offby1: «Poisse» signifie «qui est trop mauvais» 16:15 wesh: ah :'p 16:15 Jyu: rudy bot traduit ? x.x 16:16 offby1: of course 16:16 wesh: c'est magique oO 16:16 offby1: it's just Google Translate 16:16 Jyu: ah ^^' 16:16 offby1: it's nice that google lets anyone call that API. 16:16 offby1: wesh: well, I just tried (+ 2.5 2.0) in DrRacket, and got 4.5. 16:17 offby1: what version of DrRacket? 16:17 wesh: so.. i'll try to reinstall drRacket 5.1 16:17 Jyu: i'm going to try.. 16:18 wesh: ué :rire: 16:18 wesh: version 5.1 16:18 Jyu: on windows (+ 5.0 1.5) return 6.5 16:18 Jyu: on ubuntu it return 6.0 16:18 Jyu: wtf 16:19 wesh: 5.1 ? 16:19 Jyu: yes 16:19 Jyu: maybe an installation probleme 16:19 Jyu: problem* 16:19 wesh: j'reboot linux 16:20 offby1: rudybot: (+ 5.0 1.5) 16:20 rudybot: *offby1: ; Value: 6.5 16:20 offby1: rudybot: (banner) 16:20 rudybot: *offby1: ; Value: "Welcome to Racket v5.1.\n" 16:20 offby1: *shrug* 16:20 Jyu: :o 16:20 (quit) dnolen: Quit: dnolen 16:22 (join) sisi 16:22 Jyu: offby1, do you know how can I rotate a bitmap% ? 16:23 offby1: nope 16:24 (quit) wesh: Ping timeout: 252 seconds 16:24 (quit) sisi: Client Quit 16:24 (join) wesh 16:24 Jyu: okay :/ 16:33 (quit) Jyu: Ping timeout: 252 seconds 16:38 (quit) Demosthenes: Quit: Lost terminal 16:41 wesh: re ^^" offby1, are you still here? 16:41 offby1: no 16:42 offby1: I mean yes 16:42 wesh: :'p 16:42 wesh: i just install racket 5.1 and the problem has not changed 16:42 wesh: Bienvenue dans DrRacket, version 5.1 [3m]. 16:42 jonrafkind: wesh, whats your $LANG set to 16:42 wesh: Langage: racket; memory limit: 128 MB. 16:42 offby1: can you describe, with _great_ precision, exactly what you're typing? 16:42 wesh: > (+ 5.0 1.1) 16:42 wesh: 6.0 16:43 offby1: wesh: do you have a directory named ~/.racket ? 16:43 offby1: maybe it's time to invoke the magical name of eli 16:43 offby1: Eli, Eli, lama sabachthani 16:44 wesh: euh, i have directory name ~/racket5.1 16:44 jonrafkind: wesh, whats your $LANG set to 16:44 offby1: jonrafkind: oho! 16:44 wesh: #lang racket 16:44 jonrafkind: no 16:44 jonrafkind: echo $LANG 16:44 jonrafkind: on the command line 16:44 wesh: ah ^" 16:44 offby1: is there some locale that doesn't like fractions? 16:44 offby1: (and does racket's printer honor locales?) 16:44 jonrafkind: there was some wierd error with non-C locale's and rational math 16:44 wesh: no result oO 16:44 jonrafkind: no one could explain it 16:44 offby1: jonrafkind: weird indeed. 16:45 jonrafkind: wesh can you paste the output of typing 'env' 16:45 jonrafkind: in some pastebin site 16:45 wesh: weird? 16:47 wesh: echo $lang returns no matches :'/ 16:48 offby1: upper-case, please 16:48 offby1: do "env" and paste the output, like jonrafkind said 16:50 wesh: ORBIT_SOCKETDIR=/tmp/orbit-sisi SSH_AGENT_PID=1537 TERM=xterm SHELL=/bin/bash XDG_SESSION_COOKIE=6b5c60142a2634cedcdd5b034d4d9d9c-1303590047.444389-1602530466 WINDOWID=65011715 GNOME_KEYRING_CONTROL=/tmp/keyring-cNOUBy GTK_MODULES=canberra-gtk-module USER=sisi LS_COLORS=rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31: 16:50 jonrafkind: thats it? 16:51 wesh: when i do 'env', is what is returns 16:52 wesh: with much other information .. but I do not have room to put everything 16:52 jonrafkind: type 'LANG=C racket' 16:52 jonrafkind: and inside the prompt do (+ 5.0 1.1) 16:53 wesh: Welcome to Racket v5.0.2. > (+ 5.0 1.1) > 6.1 16:53 wesh: that works because it's 5.0.2 16:54 jonrafkind: so 5.0.2 always worked, and its only 5.1 that doesnt work? 16:54 wesh: yes 16:54 jonrafkind: ok so try it with 5.1 16:54 wesh: with linux.. 16:55 wesh: i already try 16:55 wesh: Bienvenue dans DrRacket, version 5.1 [3m]. Langage: racket; memory limit: 128 MB. > (+ 5.0 1.1) 6.0 16:55 wesh: i tried this at top level 16:55 jonrafkind: with LANG=C before you exceute racket 5.1 16:55 jonrafkind: do you know what im talking about? 16:56 bremner_: wait, shouldn't it be 5,1 in french? 16:56 wesh: euh, i have to run racket 5.1 with terminal no ? 16:56 bremner_: yes 16:56 jonrafkind: yes, how else are you running it? 16:58 wesh: it returns x,... when i do something like this : "> (sqrt 5.0) 2,23606797749979.0 " 16:58 wesh: you think it's a configuration problems ? 16:58 bremner_: yeah, I remember a russian guy with a similar problem 16:59 wesh: how can i settle the problem? 17:00 wesh: drracket options ? 17:00 bremner_: well, if you don't mind English, running "LANG=C racket" might help 17:00 bremner_: or "LANG=C drracket" 17:03 wesh: that launches dr racket 5.0.2 17:04 wesh: this* 17:09 (join) Dodek 17:09 Dodek: hello 17:11 Dodek: i need an immutable dictionary-like data structure -- is there anything like this in racket? 17:11 Dodek: i would really prefer not to write it one more time. 17:12 jonrafkind: hash 17:12 Dodek: oh here it is 17:12 Dodek: thank you 17:16 offby1: Dodek: there are a whole bunch of such data structures. 17:16 offby1: hashes, alists, others. 17:16 offby1: and there's also a "dictionary" API for accessing them all uniformly. 17:19 Dodek: what i basically need is a mapping from a pair of indices to some value 17:19 (quit) dzhus: Remote host closed the connection 17:20 offby1: sounds like a dictionary to me. 17:26 offby1: rudybot: (define d (make-immutable-hash (list (cons (set 1 2) "A set of two")))) 17:26 rudybot: *offby1: Done. 17:26 offby1: rudybot: (hash-ref d (set 2 1)) 17:26 rudybot: *offby1: ; Value: "A set of two" 17:26 offby1: behold! an immutable hash which maps pairs of indices to some value 17:27 Dodek: rudybot: (hash-ref d (set 1 2)) 17:27 rudybot: Dodek: your sandbox is ready 17:27 rudybot: Dodek: error: reference to undefined identifier: d 17:27 Dodek: ah 17:27 Dodek: (define d (make-immutable-hash (list (cons (set 1 2) "A set of two")))) 17:27 Dodek: rudybot: (define d (make-immutable-hash (list (cons (set 1 2) "A set of two")))) 17:27 rudybot: Dodek: error: reference to undefined identifier: set 17:27 Dodek: hm. 17:27 Dodek: i guess i need to require some module 17:27 offby1: hm indeed 17:27 offby1: I didn't need to. 17:28 offby1: Dodek: type "rudybot: init racket", then try again 17:28 Dodek: anyway, i assume that `set' is unordered 17:28 offby1: yep 17:28 offby1: rudybot: init r5rs 17:28 rudybot: *offby1: your r5rs sandbox is ready 17:28 Dodek: and i need ordered indices 17:28 offby1: rudybot: set 17:28 rudybot: *offby1: error: reference to an identifier before its definition: set in module: 'program 17:28 offby1: rudybot: init racket 17:28 rudybot: *offby1: your racket sandbox is ready 17:28 offby1: rudybot: set 17:28 rudybot: *offby1: ; Value: # 17:28 Dodek: rudybot: init racket 17:28 rudybot: Dodek: your racket sandbox is ready 17:28 Dodek: rudybot: set 17:28 rudybot: Dodek: ; Value: # 17:28 Dodek: great 17:28 offby1: Dodek: strange. Had you said "rudybot: init r5rs" recently? 17:29 Dodek: no, i did not 17:29 offby1: weird. 17:29 Dodek: never spoke to rudybot before, in fact. 17:29 offby1 glares at rudybot 17:29 rudybot glares back 17:32 offby1: oh, also: 17:32 offby1: rudybot: (dict-ref d (set 1 2)) 17:32 rudybot: *offby1: error: reference to an identifier before its definition: d in module: 'program 17:32 offby1: pff 17:32 offby1: rudybot: (define d (make-immutable-hash (list (cons (set 1 2) "some value")))) 17:32 rudybot: *offby1: Done. 17:32 offby1: rudybot: (dict-ref d (set 1 2)) 17:32 rudybot: *offby1: ; Value: "some value" 17:32 offby1: my point being that you can use the generic "dict-" functions on hashes. 17:33 Dodek: well, i never actually used racket before 17:34 Dodek: i needed some functional language with an ability to create executables 17:34 Dodek: tried haskell, but it was quite painful 17:34 Dodek: and i heard racket is quite nice 17:34 offby1: yep, racket should do OK for you 17:34 offby1: it's not really a function language though. 17:35 offby1: It merely makes it easy to write functional programs. 17:35 offby1: But you can go wild with mutation if you want to. 17:35 Dodek: isn't it more of an functional language than common lisp? 17:35 offby1: *shrug* 17:35 Dodek: s/an/a/ 17:35 Dodek: and yet they call CL functional. :) 17:35 offby1: not even sure what "functional language" means, unless it means something like "a language in which you can not possibly modify state". 17:36 offby1: in which case Haskell comes close 17:36 offby1: what matters to me is that racket is fun :) 17:36 Dodek: i hope so 17:36 Dodek: :) 17:42 evhan doesn't understand this new obsession with "purely-functional" 17:42 offby1 however indeed understands this new obsession with fried-egg hamburgers 17:43 evhan: plural. this is important. 17:55 (join) poindontcare 18:05 (quit) mithos28: Quit: mithos28 18:10 (join) redgetan 18:14 (join) mithos28 18:37 (quit) em: Ping timeout: 248 seconds 18:37 (join) em 18:39 (quit) mithos28: Quit: mithos28 18:40 (join) mithos28 18:42 (quit) em: Ping timeout: 260 seconds 18:44 (join) em 19:01 (join) lbsc5 19:03 (quit) poindontcare: Quit: ERC Version 5.3 (IRC client for Emacs) 19:04 (part) lbsc5: "Verlassend" 19:10 (quit) lucian: Remote host closed the connection 19:25 (quit) mithos28: Quit: mithos28 19:34 (join) mithos28 19:57 (join) dnolen 19:58 (quit) redgetan: Ping timeout: 246 seconds 20:00 (join) redgetan 20:04 (join) askhader 20:45 (quit) mceier: Quit: leaving 21:02 (quit) redgetan: Quit: Ex-Chat 21:14 (quit) jonrafkind: Ping timeout: 248 seconds 21:41 (quit) masm: Ping timeout: 276 seconds 22:36 (join) geoffhill 22:41 (quit) wesh: Ping timeout: 252 seconds 22:49 (quit) geoffhill: Ping timeout: 258 seconds 22:50 (quit) mithos28: Quit: mithos28 22:53 (join) geoffhill 22:54 (quit) dnolen: Quit: dnolen 23:00 (quit) tauntaun: Quit: Ex-Chat 23:00 rekahsoft: so i hear define-struct is depreciated and the prefered way now is through struct..is there something similar for define-struct/contract 23:14 (join) mithos28 23:14 (quit) mithos28: Client Quit 23:25 (join) mithos28 23:27 (quit) geoffhill: Ping timeout: 260 seconds 23:28 (join) geoffhill 23:29 (quit) mithos28: Client Quit 23:30 (join) mithos28 23:32 (quit) geoffhill: Read error: Connection reset by peer 23:32 (join) geoffhill_ 23:37 rekahsoft: is anyone there to give me some quick advice 23:38 rekahsoft: wondering about define-struct being depreciated and struct (for creating structures)..i want to have a contract associated along with it..previously i used define-struct/contract but now it seems to be depreciated.. 23:39 rekahsoft: i assume the best way is to use struct with a #:gaurd? or maybe provide/contract? 23:40 (quit) mithos28: Quit: mithos28 23:41 (join) mithos28 23:43 offby1: beats me 23:44 (quit) mithos28: Client Quit