00:06 (join) myx 00:12 (quit) ivan\: Ping timeout: 255 seconds 00:12 (join) adu 00:14 (join) Kaylin1 00:17 (join) ivan\ 00:17 (join) rmathews 00:17 (quit) Kaylin: Ping timeout: 256 seconds 00:18 dented42: can I create a macro that overrides the vector syntax? I know that you can have macros that transform function applications by using #%app , is there some equivalent for vectors? 00:18 mithos28: dented42: no, you need a reader extension for that 00:19 mithos28: or maybe #%datum will do what you want 00:19 mithos28: yeah, I think #%datum will do what you need 00:20 mithos28: rudybot: init 00:20 rudybot: mithos28: your sandbox is ready 00:20 dented42: that's what I was considering, it's a bit general though. 00:22 mithos28: rudybot: (define-syntax (#%datum stx) (if (vector? stx) #'(displayln 'hello) #'(displayln 'world))) 00:22 rudybot: mithos28: Done. 00:22 mithos28: rudybot: loop 00:22 rudybot: mithos28: error: loop: undefined; cannot reference an identifier before its definition in module: 'program 00:22 mithos28: rudybot: 'loop 00:22 rudybot: mithos28: ; Value: loop 00:22 mithos28: rudybot: #(4) 00:22 rudybot: mithos28: ; stdout: "world\n" 00:24 dented42: I would have thought that 'world expand into (quote (#%datum . world)) , which would lead to an infinite loop. 00:25 mithos28: no #%datum expands to quote not the other way around 00:26 dented42: oh, ok 00:27 (quit) adu: Quit: adu 00:38 dented42: wait, I can do (vector? stx) ? I don't need to go (vector? (syntax-e stx)) ? 00:39 mithos28: dented42: you can, but you may get a buggy program 00:39 dented42: in what way? 00:39 mithos28: it will always be false 00:40 mithos28: My example was bad, as you can see rudybot output world not hello. 00:40 dented42: oh, right. yes I see. 01:38 (quit) Nisstyre-laptop: Quit: Leaving 01:55 (join) Nisstyre-laptop 02:35 (quit) mye: Quit: mye 02:48 (quit) Kaylin1: Quit: Leaving. 02:52 (join) gridaphobe 03:16 (join) leo2007 03:42 (quit) gridaphobe: Remote host closed the connection 03:58 (quit) mithos28: Quit: mithos28 04:13 (join) gridaphobe 04:15 (quit) tsion: Quit: Leaving 04:21 (quit) gridaphobe: Ping timeout: 252 seconds 04:22 (join) merijn 04:26 (join) soegaard 04:29 (join) iXeno 04:30 (join) Fare 04:31 (join) vkz 04:41 (join) bitonic` 04:47 (quit) leo2007: Quit: rcirc on GNU Emacs 24.2.93.1 05:16 (join) bitonic`` 05:18 (quit) bitonic`: Ping timeout: 252 seconds 05:30 (join) anonymous 05:30 (nick) anonymous -> anonymou2 05:30 anonymou2: Hello everyone! 05:30 anonymou2: rudybot: write cons 05:30 rudybot: anonymou2: (lambda nil (not (org-contains-tags (\` ("NOTE" org-archive-tag))))) ..(cons) 05:31 anonymou2: It seems I have found a bug in Racket 5.3.2 05:31 anonymou2: please run bin/racket (the console tool) 05:31 anonymou2: and write there 05:31 anonymou2: "write cons" 05:32 anonymou2: If I get it correctly: 05:32 anonymou2: > is prompt to input 05:32 anonymou2: a* 05:33 anonymou2: But it writes:> # 05:34 anonymou2: And > is not a prompt 05:34 anonymou2: like in DrRacket 05:34 anonymou2: please tell me if I should send a bugreport 05:36 anonymou2: The time when everyone should sleep in US... 05:36 anonymou2: I am going to be later. 05:55 (join) cdidd 05:56 (quit) rmathews: Ping timeout: 248 seconds 06:17 (quit) Fare: Ping timeout: 248 seconds 06:18 (join) gridaphobe 06:25 bremner: anonymou2: what do you think that should do? it is two expressions, and racket prints both of them. It's basically the same as typing "1 2". 06:26 bremner: It's true that racket behaves slightly differently than DrRacket there; arguably both are correct, I guess. 06:26 (quit) gridaphobe: Ping timeout: 252 seconds 06:28 (join) Fare 06:30 anonymou2: bremner: I expect it to behave just as DrRacket: do not show the > prompt to enter 06:31 bremner: why do you expect that? 06:31 anonymou2: ...at least this is the way that bash, python behaves... 06:31 bremner: no 06:31 anonymou2: a minute, please... 06:32 anonymou2: > write cons 06:32 anonymou2: # 06:32 anonymou2: > # 06:32 anonymou2: > write cons 06:32 anonymou2: # 06:32 anonymou2: # 06:32 bremner: at least, I don't think you understand the difference between "(write cons) and "write cons" 06:32 anonymou2: I think I do: 06:33 anonymou2: "write cons": to show value of the write identifier and the cons identifier 06:33 bremner: no 06:33 bremner: oh, sorry, ok 06:34 anonymou2: (write cons) ask to execute write with argument cons 06:34 anonymou2: the* 06:34 bremner: fine. 06:34 anonymou2: so, behavior I expect from bin/racket: 06:34 anonymou2: the* 06:35 anonymou2: to show me > write cons 06:35 anonymou2: # 06:35 anonymou2: # 06:35 anonymou2: but NOT: 06:35 anonymou2: > write cons 06:35 anonymou2: # 06:35 anonymou2: > # 06:35 anonymou2: since > : ask to enter a command 06:35 (quit) Fare: Ping timeout: 240 seconds 06:35 anonymou2: but it is not an ask, I can't enter a command in this ask 06:36 anonymou2: # 06:36 anonymou2: > # 06:36 anonymou2: > # 06:36 anonymou2: > 06:36 anonymou2: oh, sorry 06:36 anonymou2: > write cons write 06:36 anonymou2: # 06:36 anonymou2: > # 06:36 anonymou2: > # 06:36 anonymou2: > 06:36 anonymou2: > is ask to enter in python, bash, DrRacket... 06:36 anonymou2: what is it here? 06:37 anonymou2: Python, Bash* 06:43 anonymou2: an* 06:43 anonymou2: ... 06:45 bremner: In my opinion, it's just a weird case, since normally one enters one racket expression at a time. The interpreter happens to be prompting once for every expression. I've seen it with other interpreters: http://paste.debian.net/234908/ 06:46 bremner: perhaps javascript isn't a good standard to aspire to ;) 06:49 (quit) vkz: Quit: vkz 06:52 anonymou2: http://paste.debian.net/234909/ ... So, bremner, this is just an ambiguity in your standard? (Also, tested again in my Google Chrome. If Racket was JavaScript, "write cons print" showed just the result of print) 06:53 anonymou2: would show* 06:53 anonymou2: in the standard* 06:56 anonymou2: http://paste.debian.net/234910/ 06:57 anonymou2: http://paste.debian.net/234911/ 06:58 bremner: all I meant to illustrate was feeding a multi-line js file to rhino, and have it repeat prompts. 06:59 anonymou2: >(print "a") (print "b") 06:59 anonymou2: "a"> "b"> 07:00 anonymou2: What does rhino do if you ask it to console.log("a") ; console.log("b") ? 07:00 anonymou2: in one line 07:00 anonymou2: I think the last shows the bug too 07:01 anonymou2: (but it seems a bit strange... It seems like no-one uses console racket 07:02 anonymou2: ...Google Chrome doesn't show any prompt again before complete 07:02 anonymou2: neither does Bash 07:03 anonymou2: nor* 07:07 anonymou2: nor does similar thing DrRacket 07:07 anonymou2: a* 07:21 (join) ijp 07:23 (join) ijp` 07:26 (quit) ijp: Ping timeout: 248 seconds 07:31 (join) acarrico 07:36 (quit) bitonic``: Ping timeout: 256 seconds 07:49 (nick) ijp` -> ijp 08:08 (join) rmathews 08:15 (join) mizu_no_oto 08:27 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 08:35 bremner: anonymou2: you should try racket -il xrepl 08:35 bremner: it has the behaviour you like, I think 08:36 bremner: and many other nice features 08:50 (quit) vipjun: Quit: Leaving. 08:51 (join) vkz 09:07 (join) jeapostrophe 09:07 (quit) jeapostrophe: Changing host 09:07 (join) jeapostrophe 09:43 (nick) emma -> em 09:53 (join) bitonic 10:18 (join) anRch 10:31 (join) leo2007 10:48 (join) Kaylin 10:52 (quit) anRch: Quit: anRch 10:52 (join) anRch 11:00 (join) masm 11:02 (join) RacketCommitBot 11:02 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/qfCgzQ 11:02 RacketCommitBot: racket/master ddacc3e Robby Findler: don't save repl interaction history when the new item is... 11:02 (part) RacketCommitBot 11:04 masm: (call-with-input-string "ã" (lambda (in) (regexp-match-peek-positions #rx"." in))) evaluates to ((0 . 2)) while (regexp-match-positions #rx"." "ã") evaluates to ((0 . 1)) 11:05 masm: Is there an easy way to work around the problem in the first expression? 11:19 (join) gridaphobe 11:19 (quit) Kaylin: Read error: Connection reset by peer 11:21 (join) mithos28 11:23 (quit) gridaphobe: Remote host closed the connection 11:25 (join) rohni 11:47 (quit) anRch: Quit: anRch 11:54 (quit) masm: Quit: Leaving. 12:13 (join) vipjun 12:42 (quit) ASau: Remote host closed the connection 12:43 (join) ASau 12:44 (join) adu 12:49 (quit) leo2007: Quit: rcirc on GNU Emacs 24.2.93.1 12:55 (join) tsion 13:04 (join) dnolen 13:06 (quit) vipjun: Read error: Connection reset by peer 13:08 (join) vipjun 13:31 (quit) Nisstyre-laptop: Read error: Connection reset by peer 13:45 (join) Nisstyre-laptop 13:57 (quit) rmathews: Read error: Connection reset by peer 14:04 (join) rmathews 14:24 (join) mizu_no_oto 14:41 (join) Kaylin 15:11 (join) dyoo 15:14 (part) dyoo 15:27 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 15:31 (quit) mithos28: Quit: mithos28 15:40 (join) mizu_no_oto 15:44 (quit) ASau: Ping timeout: 248 seconds 15:45 (join) ASau 15:48 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 15:53 (join) dyoo 15:54 (join) ijp` 15:56 (quit) rohni: Quit: Leaving. 15:59 (quit) adu: Quit: adu 15:59 (join) eikonos 15:59 (quit) eikonos: Changing host 15:59 (join) eikonos 16:02 (quit) ASau: Remote host closed the connection 16:02 (join) ASau 16:05 (quit) Kaylin: Quit: Leaving. 16:17 soegaard: Could I get one of you to run this small program? https://gist.github.com/soegaard/4973526 16:17 soegaard: It simply draws an "a" on a bitmap, and displays it DrRacket. 16:18 soegaard: On my computer (OS X) there is a line missing on the right. 16:18 soegaard: Other sizes works fine, so I am a little puzzled. 16:23 bremner: it looks OK here (linux) 16:25 soegaard: thanks 16:25 soegaard: Maybe someone on OS X will try it too? 16:26 soegaard: It is not font specific. I see with "Euclid Math One" too. 16:32 dyoo: running.. 16:33 dyoo: the right edge of the pen cuts off in the glyph. 16:33 dyoo: weird. 16:33 (join) SeamusAndroid 16:33 soegaard: indeed 16:33 (join) Kaylin 16:33 (join) mithos28 16:33 dyoo: doing a quick investigation: as I understand it, cairo's reponsible for font rendering 16:34 soegaard: At first I thought the last stroke was missing, but it renders ok with 2*72 as the size. 16:34 soegaard: Changing the pen width doesn't do anything either. 16:35 dyoo: does smoothing have an effect on the font? checking... 16:36 soegaard: Nope 16:36 soegaard: Okay, I forgot to actually set the pen, but he line is still missing. (send bm-dc set-pen fine-pen) 16:39 dyoo: yeah, even if the pen is thick, same weird thing happens 16:39 dyoo: how odd! 16:39 dyoo: It's like the pen doens't know how to draw vertically. 16:42 dyoo: either that or the last part of the path isn't getting drawn, like some off-by-one error... 16:42 dyoo: whoa. 16:43 (quit) vkz: Quit: vkz 16:43 dyoo: soegaard: conjecture: if the font size is odd, it draws ok. 16:43 dyoo: if it's even, it does not. 16:43 soegaard: ! 16:43 soegaard: 2*72 works 16:43 dyoo: hmmm. Ok, that's the nice thing about conjecture: they invalidate with a single case. :) 16:44 soegaard: :-) 16:44 dyoo: ok, let me quickly look at text-outline and see if there's something glaringly obvious... 16:46 dyoo: well, I do se a bunch of cars and cdrs in the implementation of text-outline! Ok, better look at it more closely… Looking at collects/racket/draw/private/dc-part.rkt 16:47 soegaard: Maybe the font doesn't have the final (close)? 16:48 soegaard: Nope. Adding a manual close doesn't help. 16:48 dyoo: I'm looking at the path it constructs now to make sure it makes sense... 16:49 soegaard: Is there an easy way to print the path? 16:49 dyoo: I'm hacking it and putting a displayln in that for loop 16:50 dyoo: It looks like it uses an internal function to construct the path, though I'm not sure if it's public 16:51 (quit) mithos28: Quit: mithos28 16:51 dyoo: Nothing's jumping out at me yet. Still reading through the path it's generating... 16:55 (quit) Kaylin: Quit: Leaving. 16:59 dyoo: may be dependent on the font. I switch to just the default face, and it draws ok. So I think text-outline is doing something weird. Still reading. 17:04 (join) jao 17:04 (quit) jao: Changing host 17:04 (join) jao 17:08 (quit) jeapostrophe: Ping timeout: 252 seconds 17:09 dyoo: soegaard: sorry, have to go at the moment. I haven't found anything yet. 17:09 soegaard: dyoo: That's fine. I need to get some sleep anyway ;-) 17:10 (join) mithos28 17:11 (quit) dyoo: Quit: dyoo 17:18 soegaard: Turns out the problem only occurs when 'unsmoothed is used. Use (send send-bm set-smoothing 'unsmoothed) . 17:18 soegaard: Turning smoothing on/off for the font has no effect - since we are drawing our own paths. 17:18 (quit) Nisstyre-laptop: Quit: Leaving 17:21 (join) Nisstyre-laptop 17:25 (join) anRch 17:29 (join) dyoo 17:29 (quit) mithos28: Quit: mithos28 17:29 dyoo: soegaard: before you leave, I sent an email 17:29 dyoo: traced the issue down to the particular bitmap representation 17:29 dyoo: wow. 17:30 soegaard: nice! 17:30 dyoo: of course, I have no clue _why_. : 17:30 dyoo: :) 17:30 dyoo: https://gist.github.com/dyoo/4973820 demos it 17:30 soegaard: It is probably enough for Matthew... 17:31 dyoo: switch out the bitmap construction on line 52 with one of the other two, and you should see it 17:31 (nick) ijp` -> ijp 17:31 soegaard: That's even odd'er. 17:32 dyoo: yeah, right? 17:32 dyoo: ok, now I can go take that walk I was supposed to take today. :) 17:32 dyoo: talk later! 17:33 (quit) dyoo: Client Quit 17:33 (quit) danl-ndi: Read error: Operation timed out 17:38 (quit) soegaard: Quit: soegaard 17:43 (quit) snorble_: Read error: Connection reset by peer 17:43 (join) snorble_ 17:55 (join) Slavisa 18:04 (join) mithos28 18:33 (quit) asumu: Ping timeout: 264 seconds 18:35 (join) Fare 18:40 (quit) anRch: Quit: anRch 18:40 (join) asumu 18:49 dented42: what are the 'Extra regexp' fields in the 'Indenting' part of the 'Editing' preferences in DrRacket for? 19:17 (quit) mithos28: Quit: mithos28 19:18 (join) mithos28 19:19 (join) EzeQL_ 19:23 (quit) EzeQL__: Ping timeout: 276 seconds 19:25 (join) gridaphobe 19:30 (join) anonymous 19:30 (nick) anonymous -> Guest54350 19:30 Guest54350: Why was the box primitive type made? 19:30 Guest54350: (I googled "why racket box made") 19:31 Guest54350: bremner: thx 19:31 mithos28: Guest54350: Instead of what? 19:31 anonymou2: mithos28: huh? I mean there is a primitive type: Boxes 19:31 anonymou2: Why was it made? 19:31 anonymou2: were they* 19:32 mithos28: anonymou2: Because they are a useful data structure. I'm not sure I understand the root of your question. 19:37 (quit) gridaphobe: Read error: Connection reset by peer 19:37 (join) gridaphobe 19:37 anonymou2 just tried (first time) to google on githum usage of box, but hasn't succed yet 19:38 anonymou2: It seems like it is easy to replace it with other types an it will be just as cool as a box 19:38 anonymou2: So, what the advance of a box 19:38 mithos28: over? 19:39 anonymou2: I don't get what do you mean by "over" now. 19:39 (quit) bitonic: Ping timeout: 260 seconds 19:40 anonymou2: Where can it be much better than anything else? 19:40 mithos28: It is mutable. 19:40 anonymou2: mithos28: have you ever used it? 19:40 mithos28: Yes 19:41 mithos28: https://github.com/shekari/concurrent-data/blob/master/data/nonblocking-mvar.rkt 19:41 rudybot: http://tinyurl.com/aont3q8 19:42 mithos28: That might be a bit complicated though 19:45 (quit) lusory: Read error: Connection reset by peer 19:45 (join) mizu_no_oto 19:46 anonymou2: Thanks(I don't get it yet)! 19:46 anonymou2: ...but anyway :)) 19:50 (quit) mithos28: Quit: mithos28 19:51 (quit) gridaphobe: Read error: Connection reset by peer 19:51 (join) gridaphobe 19:53 (quit) gridaphobe: Remote host closed the connection 20:14 (join) lusory_ 21:01 (join) mithos28 21:16 (quit) Fare: Ping timeout: 256 seconds 21:17 (quit) SeamusAndroid: Quit: Leaving 21:18 (join) RacketCommitBot 21:18 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Ku7Z_w 21:18 RacketCommitBot: racket/master 1c2432e Robby Findler: improve the interactions history window a little 21:18 (part) RacketCommitBot 21:19 (quit) mithos28: Quit: mithos28 21:20 (quit) dnolen: Ping timeout: 256 seconds 21:35 (join) haiwei 21:39 (quit) eMBee: Quit: leaving 21:39 (join) eMBee 21:45 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 21:46 (join) mye 21:50 (quit) myx: Ping timeout: 255 seconds 21:58 (join) brunov 21:59 brunov: Hi fellas, Racket newbie here. How can I go about installing the 'db' module? (require db) fails, and I cannot figure out what to do. 22:01 offby1: odd, I thought it was included with racket. Perhaps your version of racket is too old. 22:02 brunov: racket -v says v5.1.3 22:03 brunov: It's what comes with latest-ish Ubuntu. I'll get the newest version, I see it's v5.3.3. 22:03 brunov: offby1, thank you 22:04 (quit) tsion: Quit: Leaving 22:06 asumu: brunov: the 'db' library was first in v5.2 22:06 brunov: asumu, I see. I'm downloading the latest version now :) 22:09 (quit) Slavisa: Remote host closed the connection 22:10 (quit) rmathews: Quit: ... 22:11 (join) jeapostrophe 22:11 (quit) jeapostrophe: Changing host 22:11 (join) jeapostrophe 22:16 (quit) brunov: Quit: Leaving 22:28 (join) gridaphobe 22:52 (join) rmathews 22:55 (quit) jeapostrophe: Ping timeout: 245 seconds 23:12 (quit) gridaphobe: Remote host closed the connection 23:14 (join) yacks 23:18 (join) dnolen 23:27 (join) gridaphobe 23:35 dented42: I'm getting what seems like a weird error when I try to provide a function from a submodule that has a contract attached. my code is at ttp://paste.lisp.org/+2WL0 , I'm not sure if I'm misreading the documentation and doing something wrong, or if this is a bug in racket. thoughts? 23:55 Nisstyre-laptop: dented42: what line does the error refer to within that paste? 23:55 Nisstyre-laptop: same number? 23:56 dented42: it doesn't refer to a line in the paste, it refers to a line in racket/contract/private/out 23:56 Nisstyre-laptop: I haven't used Racket modules before (never had the need) 23:56 Nisstyre-laptop: dented42: oh my bad 23:57 Nisstyre-laptop: dented42: is the actual error with contract-out then? 23:58 dented42: the error doesn't occur if I provide bar without a contract, as in (provide bar) 23:58 dented42: so it would seem 23:58 Nisstyre-laptop: have you tried using provide/contract instead? 23:59 Nisstyre-laptop: dented42: oh I think I see the problem 23:59 Nisstyre-laptop: dented42: try moving the contract-out to the end of your program 23:59 dented42: that was the first thing I tried 23:59 Nisstyre-laptop: or not, nevermind, contract-out doesn't care about order