00:04 (join) tcsc 00:04 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 00:06 (join) mizu_no_oto 00:08 (quit) mizu_no_oto: Client Quit 00:15 (quit) rmathews: Quit: ... 00:54 (join) rmathews 00:59 (quit) ivan`: Ping timeout: 272 seconds 01:00 (join) ivan` 01:03 (quit) dca-: Ping timeout: 240 seconds 01:08 (join) dca 01:24 (quit) francisl: Quit: francisl 01:25 (quit) mceier: Quit: leaving 01:59 (join) stevenfx 02:08 (join) Kaylin 02:22 (join) hkBst 02:22 (quit) hkBst: Changing host 02:22 (join) hkBst 02:28 (join) mceier 02:41 (quit) jonrafkind: Ping timeout: 256 seconds 02:43 (quit) hkBst: Read error: Connection reset by peer 02:43 (join) hkBst 02:48 (join) soegaard 02:56 (quit) hkBst: Ping timeout: 248 seconds 02:57 (quit) ASau: Ping timeout: 248 seconds 02:59 (join) hkBst 02:59 (quit) hkBst: Changing host 02:59 (join) hkBst 03:05 (quit) hkBst: Ping timeout: 248 seconds 03:06 (join) hkBst 03:09 (join) tilde` 03:13 (quit) tcsc: Quit: computer sleeping 03:13 (quit) mithos28: Quit: mithos28 03:19 (quit) Kaylin: Quit: Leaving. 03:21 (quit) hkBst: Ping timeout: 252 seconds 03:23 (quit) soegaard: Quit: soegaard 03:25 (join) hkBst 03:25 (quit) hkBst: Changing host 03:25 (join) hkBst 03:31 (quit) hkBst: Ping timeout: 248 seconds 03:32 (join) rmathews_ 03:32 (quit) rmathews: Ping timeout: 260 seconds 03:32 (nick) rmathews_ -> rmathews 03:37 (join) hkBst 03:47 (quit) hkBst: Remote host closed the connection 03:48 (join) hkBst 03:56 (join) djcoin 03:57 (join) hkBst_ 03:57 (quit) hkBst_: Changing host 03:57 (join) hkBst_ 03:57 (quit) hkBst: Ping timeout: 248 seconds 04:00 (quit) Demosthenex: Remote host closed the connection 04:01 (join) Demosthenex 04:02 (quit) hkBst_: Ping timeout: 245 seconds 04:15 (part) tobi 04:15 (join) tobi 04:33 (quit) em: Remote host closed the connection 04:37 (join) hkBst__ 04:40 (join) myx 04:41 (quit) hkBst__: Ping timeout: 248 seconds 04:42 (join) hkBst__ 04:46 (join) emma 04:50 (nick) emma -> em 05:24 (quit) hkBst__: Ping timeout: 248 seconds 05:27 djcoin: Are Unit commonly used in Racket ? It seems a bit tricky to me 05:27 (part) blubberdiblub: "WeeChat 0.3.8" 05:27 (join) bitonic 05:35 (join) hkBst__ 05:44 (join) mye 05:46 (quit) hkBst__: Remote host closed the connection 05:47 (join) hkBst__ 05:49 (quit) Shvillr: Ping timeout: 276 seconds 05:58 (join) asvil 06:01 (join) Shvillr 06:05 (quit) stchang: Read error: Operation timed out 06:05 asvil: hi all. 06:09 (join) stchang 06:10 (quit) stamourv: Remote host closed the connection 06:15 asvil: I want to decompile "jitted" function, but without calling it (because it faults) 07:02 (quit) hkBst__: Ping timeout: 276 seconds 07:02 (join) jeapostrophe 07:02 (quit) jeapostrophe: Changing host 07:02 (join) jeapostrophe 07:08 (join) hkBst__ 07:09 (join) lewis1711 07:14 (quit) hkBst__: Ping timeout: 248 seconds 07:16 (join) hkBst__ 07:17 (join) pinupgeek 07:20 (quit) hkBst__: Excess Flood 07:21 (quit) bitonic: Ping timeout: 248 seconds 07:22 (join) hkBst__ 07:34 (quit) hkBst__: Read error: Connection reset by peer 07:35 (join) Aune 07:35 (join) hkBst__ 07:36 (quit) pinupgeek: Quit: pinupgeek 07:39 (quit) hkBst__: Ping timeout: 244 seconds 07:45 (join) hkBst__ 07:54 (quit) tilde`: Read error: Connection reset by peer 07:55 (join) tilde` 07:57 (join) RacketCommitBot 07:57 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/ANpWuA 07:57 RacketCommitBot: racket/master 642ef7f Robby Findler: dont use raco test for encode.rkt (as it expects command-line... 07:57 (part) RacketCommitBot 07:59 (join) RacketCommitBot 07:59 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/tRhPsQ 07:59 RacketCommitBot: racket/master 7750cf9 Robby Findler: change raco test's announcements to say "raco test" 07:59 (part) RacketCommitBot 08:00 (quit) tilde`: Read error: Connection reset by peer 08:01 (join) tilde` 08:02 (join) carleastlund 08:04 (join) mizu_no_oto 08:08 (quit) tilde`: Read error: Connection reset by peer 08:09 (join) tilde` 08:13 (quit) tilde`: Read error: Connection reset by peer 08:14 (join) tilde` 08:21 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 08:21 (quit) tilde`: Read error: No route to host 08:21 (join) tilde` 08:22 (join) bitonic 08:27 (join) rmathews 08:34 (quit) bitonic: Ping timeout: 264 seconds 08:39 (quit) hkBst__: Ping timeout: 276 seconds 08:43 (join) bitonic 08:45 (join) hkBst 08:45 (quit) hkBst: Changing host 08:45 (join) hkBst 08:50 (join) francisl 08:58 (join) mizu_no_oto 09:06 (join) pinupgeek 09:06 (quit) pinupgeek: Changing host 09:06 (join) pinupgeek 09:09 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 09:18 (quit) tilde`: Read error: Connection reset by peer 09:18 (join) tilde` 09:18 (quit) tilde`: Read error: Connection reset by peer 09:21 (join) francisl_ 09:23 (join) tilde` 09:27 (quit) francisl_: Quit: francisl_ 09:30 samth: asvil: unfortunately, it only gets jitted when called 09:30 (quit) tilde`: Read error: Connection reset by peer 09:30 (join) tilde` 09:31 samth: djcoin: units aren't used that much 09:31 samth: for an example that's not so complicated, see the contents of `collects/typed-racket/typechecker` 09:31 djcoin: samth: Alright thanks 09:39 (quit) mye: Quit: mye 09:42 (quit) dsantiago: Ping timeout: 252 seconds 09:45 (join) dsantiago 09:49 (join) hkBst_ 09:49 (quit) hkBst_: Changing host 09:49 (join) hkBst_ 09:49 (quit) hkBst: Ping timeout: 256 seconds 09:52 (quit) tilde`: Ping timeout: 276 seconds 10:03 (join) mizu_no_oto 10:05 (quit) bitonic: Remote host closed the connection 10:05 (join) bitonic 10:06 (quit) dsantiago: Ping timeout: 256 seconds 10:09 (join) soegaard 10:10 (join) sizz_ 10:11 (quit) sizz: Ping timeout: 244 seconds 10:14 (join) didi 10:16 (quit) hkBst_: Ping timeout: 248 seconds 10:16 (quit) francisl: Quit: francisl 10:18 (join) hkBst_ 10:18 (quit) hkBst_: Changing host 10:18 (join) hkBst_ 10:21 (join) vkz 10:24 (quit) mceier: Quit: leaving 10:31 (join) anRch 10:32 (quit) hkBst_: Ping timeout: 256 seconds 10:35 (join) dnolen 10:38 (join) mye 10:38 (join) hkBst_ 10:38 (quit) hkBst_: Changing host 10:38 (join) hkBst_ 10:39 (join) dsantiago 10:45 (quit) bitonic: Remote host closed the connection 10:45 (join) bitonic 10:50 (quit) hkBst_: Remote host closed the connection 10:50 (join) hkBst_ 10:50 (quit) hkBst_: Changing host 10:50 (join) hkBst_ 10:51 (join) Kaylin 10:55 (join) egnarts-ms 11:00 (quit) asvil: Ping timeout: 245 seconds 11:01 (quit) anRch: Quit: anRch 11:02 (join) rins 11:05 (quit) hkBst_: Quit: Konversation terminated! 11:10 (quit) dnolen: Ping timeout: 260 seconds 11:13 (join) sizz 11:13 (quit) sizz_: Ping timeout: 240 seconds 11:15 (join) gridaphobe 11:17 (quit) Kaylin: Quit: Leaving. 11:20 (join) Fare 11:21 (quit) sirdancealot7: Ping timeout: 245 seconds 11:25 (join) mithos28 11:28 egnarts-ms: i wonder whether there exists such a Lisp dialect that 1) is translated into pure JavaScript and 2) preserves much of 1-to-1 correspondence with JS 11:29 egnarts-ms: maybe something like Parenscript, but Parenscript is not completely what i mean 11:29 egnarts-ms: more like CoffeeScript, probably 11:30 didi: egnarts-ms: I don't know JS, but I guess it's more about someone doing the library work than the characteristics of a Lisp dialect. 11:30 lewis1711: I am not sure how much 1-1 correspondence there is with JS 11:31 egnarts-ms: lewis1711: for example: CL contains `block', `tagbody', `go' special forms; we leave them aside and do not include in a hypothetical language i'm talking about 11:32 (quit) cdidd: Remote host closed the connection 11:32 egnarts-ms: instead, we include try/catch 11:32 egnarts-ms: and for/in, which directly correspond to JS statements 11:32 lewis1711: I don't know CL I'm afraid. all other lisps seem icky to me after racket 11:32 egnarts-ms: something like that 11:34 egnarts-ms: lewis1711: that's not important. I'm asking this because when i write in JS i cannot help thinking about using a Lisp dialect with automatic translation into JS, instead 11:34 egnarts-ms: chances are that someone has already created such a thing 11:34 (join) sirdancealot7 11:35 asumu: egnarts-ms: what's the point of a Lisp dialect with JS semantics? 11:35 asumu: That's basically just writing JS with parentheses. 11:35 egnarts-ms: asumu: the point is primarily introducing meta-programming and macros in JS 11:35 mithos28: egnarts-ms: http://planet.plt-scheme.org/package-source/dherman/javascript.plt/9/2/planet-docs/javascript/pjs.html 11:35 rudybot: http://tinyurl.com/azujpu7 11:35 mithos28: JS with parens 11:35 asumu: egnarts-ms: JS already has macros 11:36 mithos28: asumu: Really? 11:36 asumu: http://sweetjs.org/ 11:36 egnarts-ms: asumu: what do you mean ? 11:37 mithos28: asumu: How do I use said macros within eval? 11:37 egnarts-ms: asumu: looks much like i'm looking for. thanks ! 11:37 asumu: egnarts-ms: NP 11:37 asumu: mithos28: I don't know. 11:37 didi: rudybot: (main ((argc : int) (argv : (array* char))) (puts "hello, world") (return 0)) 11:37 rudybot: didi: cant say i tried, thats where the shortcoming is, is the argc ? 11:38 didi: rudybot: I see I forget the return type. For that, I'm sorry. 11:38 rudybot: didi: oh, by the way, your life insurance fee went up due to your checkup results, so don't forget to pay the extra €500 before you leave 11:38 didi: Forgot, even. 11:40 asumu: Oh, sweet.js even has something similar to syntax-parse now. 11:41 (join) mceier 11:44 (join) anRch 11:44 asumu: didi: 500 euro for forgetting the return type, that's harsh. 11:45 lewis1711: this is the true cost of static typing 11:45 didi is sad :^( 11:46 egnarts-ms: :) by the way, aside from Typed Racket, Racket doesn't have CL-like type declarations, does it ? 11:47 mithos28: signatures in the student languages 11:47 mithos28: Do you want unsound type declarations? 11:48 didi: mithos28: I guess they want declarations for performance purposes. 11:48 egnarts-ms: what does "unsound" mean ? 11:48 mithos28: that they aren't checked 11:48 (quit) gridaphobe: Ping timeout: 246 seconds 11:48 egnarts-ms: ah, i did mean performance-oriented declarations 11:49 mithos28: Right, and CLs are unsafe because they aren't checked 11:49 egnarts-ms: checked ones 11:49 mithos28: so use TR 11:49 lewis1711: I sometimes have idle thoughts about whether a lisp where each atom belonged to a type class, would work. 11:51 Nisstyre: lewis1711: what do you mean? 11:52 Nisstyre: I know what type classes are, and I know what atoms are 11:52 Nisstyre: but I don't see why you would have to make each atom an instance of a type class 11:52 lewis1711: another time perhaps, gotta catch a train. laters! 11:52 (part) lewis1711: "Leaving" 11:52 didi: lewis1711: Some implementations do it (e.g. SBCL). 11:53 Nisstyre: didi: what's the advantage of using type classes? 11:53 didi: Nisstyre: I don't know. 11:53 Nisstyre: so you can do crap like (atom? foo) easier? 11:54 didi: Nisstyre: You can use it with CLOSS. 11:54 Nisstyre: my understanding of type classes comes from Hasle;; 11:54 Nisstyre: *Haskell 11:54 didi: Maybe I'm confused by the term "type class". 11:55 Nisstyre: didi: a type class is basically a constraint 11:55 Nisstyre: you implement the type class by writing down the type class "type" with your parameters, e.g. "Foo a" 11:55 Nisstyre: and then you give the types of all of the "methods" that an instance must implement 11:56 Nisstyre: so then you instantiate it, syntactically, by replacing a with a type 11:56 Nisstyre: and then implementing the methods 11:56 Nisstyre: that's the very high level explanation 11:57 Nisstyre: then you can say that a certain type is constrained by that type class, so the type must be an instance of it 11:58 didi: Nisstyre: In CLOS, you implement a generic method and then methods that dispatch with this or that type argument. 11:59 Nisstyre: didi: I think that is how most OOP languages do this sort of polymorphism 11:59 Nisstyre: although "generic" doesn't mean exactly the same thing I think 11:59 didi: Nisstyre: I see. 11:59 Nisstyre: to me a generic function is one where one or more of the type variables are unconstrained 12:00 Nisstyre: so you can do that in pretty much any language 12:01 Nisstyre: e.g. "length" would be a generic function in Scheme 12:01 Nisstyre: because you can pass in a list of any type 12:03 (quit) jeapostrophe: Ping timeout: 245 seconds 12:03 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 12:04 didi: Nisstyre: I wouldn't say "length" is a generic function as it does not accept vectors, for example. 12:05 Nisstyre: didi: well it's generic in the type of the list 12:05 Nisstyre: (listof a) 12:05 Nisstyre: of course Scheme has heterogeneous lists in general 12:05 didi: Nisstyre: But lists are heterogeneous. 12:05 Nisstyre: so maybe that's a bad example 12:05 (join) jao 12:05 Nisstyre: ninja'd :P 12:05 didi: Hehe. 12:05 (quit) jao: Changing host 12:05 (join) jao 12:06 Nisstyre: didi: I just mean if a variable is anywhere in the type 12:06 didi: Nisstyre: Well, I can't add much to this discussion as I know nothing to almost zero about Types and its wonders. 12:06 Nisstyre: and it is unconstrained 12:06 Nisstyre: didi: I recommend looking at Haskell 12:07 didi: Nisstyre: Cool. 12:07 Nisstyre: or maybe Typed Racket 12:07 Nisstyre: I haven't used Typed Racket though 12:07 Fare: for type classes and Lisp, try my Lisp Interface Library 12:07 Fare: https://github.com/fare/lil-ilc2012/ 12:08 Nisstyre: didi: another term for what I mean is "parametric polymorphism" 12:12 didi: Nisstyre: Just to end with some code from what I was talking about: 12:12 bremner: well, typed racket can handle parametric polymorphism for individual functions, but I'm not sure about the aspect of typeclasses which define types as supporting certain operations. 12:13 Nisstyre: didi: okay, that's similar to ad-hoc polymorphism 12:14 (quit) anRch: Quit: anRch 12:14 (quit) pinupgeek: Quit: pinupgeek 12:15 (join) ASau 12:16 (join) tcsc 12:16 (join) RacketCommitBot 12:16 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/tgvq5Q 12:16 RacketCommitBot: racket/master 6c93cfe Robby Findler: move dir-chars.rkt to unstable/2d to unbreak dependencies 12:16 RacketCommitBot: racket/master 86b1f27 Robby Findler: tweak raco test output, yet again 12:16 RacketCommitBot: racket/master 4b9d43c Robby Findler: unbreak plai random mutator tests 12:16 (part) RacketCommitBot 12:17 Fare: Nisstyre, no, type classes are precisely ad-hoc polymorphism, not parametric polymorphism (that is independently achieved in Haskell) 12:17 Nisstyre: Fare: I never said they were 12:17 Nisstyre: also they are more than just ad-hoc polymorphism 12:17 Nisstyre: you can do type level computations with type classes, etc... 12:20 Fare: either too much or not enough, though 12:20 Fare: reminds me of that Type-Oriented Aspect Meta-Programming thesis 12:20 (quit) eli: Ping timeout: 240 seconds 12:21 Nisstyre: Fare: it should be possible to have an entire language in that way 12:21 Nisstyre: I haven't seen that paper though 12:21 Nisstyre: I'm not deep enough into the whole type theory thing 12:23 djcoin: asumu: is there some kind of limitation to sweetjs ? 12:24 (quit) tcsc: Quit: computer sleeping 12:25 (quit) didi: Ping timeout: 276 seconds 12:26 (quit) jao: Remote host closed the connection 12:28 djcoin: Javascript is killing me, we are doomed :) I know quite well js, but i'm tired of it too. Looking out for new languages that eventually can output js. So many people involved on a language that is kind of broken makes me sick :| 12:28 (quit) egnarts-ms: Quit: Page closed 12:33 (join) jao 12:33 Fare: djcoin, welcome to this world 12:33 (quit) jao: Changing host 12:33 (join) jao 12:33 (join) didi 12:33 bremner: djcoin: do you know about whalesong? 12:35 djcoin: bremner: I saw it exists, but in fact I did not try it yet 12:35 djcoin: bremner: What is your opinion on whalesong ? 12:36 (join) jeapostrophe 12:36 (quit) jeapostrophe: Changing host 12:36 (join) jeapostrophe 12:36 bremner: djcoin: I haven't tried it either, but dyoo seems to make neat stuff, so that's a recommendation. 12:36 djcoin: There are quite a few languages that compile to JS. Tricky to choose 12:37 djcoin: Alright ! :) 12:38 (join) stamourv 12:38 (quit) stamourv: Changing host 12:38 (join) stamourv 12:46 (join) mizu_no_oto 12:50 (quit) Shviller: Ping timeout: 272 seconds 12:50 (join) Shviller 12:50 (join) anRch 12:54 (join) tcsc 12:55 (quit) jeapostrophe: Ping timeout: 252 seconds 12:55 (join) jeapostrophe 13:04 (join) zacts 13:04 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 13:07 (quit) vkz: Read error: Connection reset by peer 13:07 (join) vkz_ 13:21 (quit) tcsc: Quit: computer sleeping 13:23 (quit) anRch: Quit: anRch 13:24 (quit) sirdancealot7: Ping timeout: 276 seconds 13:34 (quit) bitonic: Ping timeout: 240 seconds 13:36 (join) izzy 13:36 (join) jonrafkind 13:36 (join) sirdancealot7 13:41 (quit) izzy: Quit: Leaving 13:44 (quit) Nisstyre: Ping timeout: 248 seconds 13:46 (quit) djcoin: Quit: WeeChat 0.3.9.2 13:47 (join) pnpuff 13:50 (join) RacketCommitBot 13:50 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/OBjL9w 13:50 RacketCommitBot: racket/master 9636a70 Asumu Takikawa: Add a test for PR 13490... 13:50 (part) RacketCommitBot 13:53 (join) bjz 13:53 (quit) bjz_: Read error: Connection reset by peer 13:55 (quit) sirdancealot7: Ping timeout: 245 seconds 13:56 (quit) Raynes: Quit: ZNC - http://znc.sourceforge.net 13:56 (join) MayDaniel 13:56 (quit) jeapostrophe: Ping timeout: 260 seconds 13:56 (join) Raynes 13:58 (join) jeapostrophe 13:58 (quit) jeapostrophe: Changing host 13:58 (join) jeapostrophe 13:58 (join) Nisstyre 14:00 (quit) MayDaniel: Client Quit 14:08 (join) sirdancealot7 14:09 (join) billyoc 14:13 (quit) billyoc: Ping timeout: 248 seconds 14:18 (join) jrslepak_neu 14:19 (quit) jrslepak_neu: Client Quit 14:19 (join) jrslepak_neu 14:22 (quit) jrslepak: Ping timeout: 276 seconds 14:28 (quit) zacts: Quit: leaving 14:29 (join) zacts 14:43 (join) pinupgeek 14:43 (quit) pinupgeek: Changing host 14:43 (join) pinupgeek 14:44 (nick) jrslepak_neu -> jrslepak 14:48 (join) tcsc 14:52 (join) anRch 14:53 (quit) pnpuff: Quit: non confundar in aeternum 14:56 (join) dyoo 15:10 (join) gridaphobe 15:13 (quit) tcsc: Quit: computer sleeping 15:14 (quit) soegaard: Quit: soegaard 15:16 (quit) vkz_: Quit: vkz_ 15:17 (join) vkz 15:17 (join) merijn_ 15:17 (join) soegaard 15:17 (quit) vkz: Client Quit 15:18 (quit) merijn: Ping timeout: 245 seconds 15:19 (join) vkz 15:19 (join) RacketCommitBot 15:20 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/D9Xvgg 15:20 RacketCommitBot: racket/master 9030da2 Eric Dobson: Make static single flonum checks correct.... 15:20 RacketCommitBot: racket/master 830db3c Vincent St-Amour: Add extra tests and warning about -PosIntNotFixnum. 15:20 (part) RacketCommitBot 15:20 (quit) dyoo: Ping timeout: 256 seconds 15:22 (quit) soegaard: Client Quit 15:22 (join) tcsc 15:25 (join) pnpuff 15:30 (join) soegaard 15:34 (join) dyoo 15:40 (quit) anRch: Quit: anRch 15:41 (quit) pnpuff: Quit: talk, talk, talk: the utter and heartbreaking stupidity of words. 15:42 asumu: I guess there is a canonical Racket impl of minikanren now https://github.com/miniKanren/Racket-miniKanren 15:42 asumu should take his planet2 package down and just pull request there 15:55 (quit) vkz: Quit: vkz 16:04 dyoo: asumu: is there a test suite for mini-kanren anywhere? 16:05 dyoo: … besides just reading The Little Reasoner and doing the examples. :) 16:12 (join) anonymou1 16:12 (join) bitonic 16:14 dyoo: asumu: I see that someone's done a mini-kanren for clojure, and that the test suite should be easy to adapt: https://github.com/jduey/mini-kanren/blob/master/test/mini_kanren/test/core.clj 16:14 rudybot: http://tinyurl.com/a2r3aad 16:15 (part) dyoo 16:22 soegaard: I've got a strange interaction with DrRacket: http://imgur.com/wSE6De5 16:23 soegaard: Any ideas that explains what I see? 16:23 soegaard: Notes: 16:23 asumu: o_O 16:23 asumu: (you mean the ld bits right?) 16:24 soegaard: No. 16:24 ozzloy: what's a mini-kanren? 16:24 soegaard: I need to explain a bit. 16:24 ozzloy: i'm gooogling 16:24 soegaard: The #lang minipascal fpc line saves the pascal program in a .pas file. 16:24 soegaard: The uses system* to compile the program. 16:25 soegaard: Then it uses system* to run the program. 16:25 soegaard: The program in this case prints "Indtast:' (enter:). 16:25 soegaard: So the program is running okay, and its output turns up in DrRacket. 16:25 (quit) zacts: Quit: leaving 16:26 soegaard: Then the readln(s) prompts DrRacket to display an input box. 16:26 soegaard: I entered abcdef 16:26 soegaard: Then I get the error. 16:26 soegaard: Then the Pascal program prints bcdef 16:26 soegaard: So the a went missing! 16:27 asumu: Hmmm, strange. 16:27 soegaard: Indeed the port can't be closed, since the other characters are ok. 16:28 soegaard: Also: If I run it in plain racket, it works fine. 16:28 soegaard: "plain racket" = from the command line 16:28 asumu: The docs for `write-bytes-avail` seems to claim it will only return an error if an error happens before any are written. 16:29 asumu: Oh, and that's an internal error from `copy-port` or something? 16:30 soegaard: Yes. 16:30 soegaard: I'll make a screen shot. 16:31 (quit) anonymou1: Ping timeout: 244 seconds 16:31 (join) zacts 16:31 soegaard: http://imgur.com/hdYJcKx 16:32 (join) Kaylin 16:32 (quit) Nisstyre: Quit: Leaving 16:35 soegaard: The code for system* contains calls to streamify-in and streamify-out in: https://github.com/plt/racket/blob/master/collects/racket/private/streams.rkt 16:35 rudybot: http://tinyurl.com/b3enz6w 16:35 soegaard: This sets up a "pipe", a thread that pumps output from one port into another. 16:36 (quit) gridaphobe: Ping timeout: 246 seconds 16:39 (quit) Aune: Quit: Hath Deprated 16:40 (quit) Kaylin: Ping timeout: 244 seconds 16:44 (quit) mye: Quit: mye 16:45 asumu: Doing something like (system* "/bin/cat") from DrRacket seems to work fine. 16:45 asumu: So maybe it is something the Pascal binary is doing. 16:45 (quit) tcsc: Quit: computer sleeping 16:48 (join) anonymou1 16:49 soegaard: That's possible. 16:54 (join) emma 16:56 (nick) emma -> em 16:57 soegaard: But also strange. 17:04 (join) dyoo 17:06 dyoo: soegaard: uh oh. This reminds me very strongly of the error that tim nelson was getting about a year or so ago. 17:06 dyoo: let me see if I can find a reference... 17:07 dyoo: this one: http://comments.gmane.org/gmane.comp.lang.racket.user/1759 17:08 dyoo: The distinguishing feature that catches my attention is weirdness involving the first character of input. 17:09 dyoo: soegaard: what worries me is that what you're observing is on macosx, right? 17:09 soegaard: yes 17:09 soegaard: But only in DrRacket. 17:10 dyoo: You agree with me though that there's some uncanny similarity here though, right? 17:10 soegaard: Yes. 17:10 dyoo: Nuts. 17:11 dyoo: Let me see if I can reproduce. Is this on minipascal HEAD? 17:12 soegaard: I'll check. 17:13 soegaard: yes. I believe it is uptodate 17:13 dyoo: ok, I need to grab free pascal compiler… might take a moment... 17:13 soegaard: http://www.freepascal.org/download.var 17:15 dyoo: ok, downloading freepascal 2.6.0 now. Will take a few minutes. 17:16 soegaard: I have noticed the Pascal compiler is wicked fast. 17:18 dyoo: Random gripe: I spent an hour trying to get stupid java, ant, and junit to work together. I gave up. Junit doesn't even seem to exist anymore. None of the links on http://www.junit.org/ work. 17:24 asumu: dyoo: :\ 17:26 dyoo: soegaard: confirmed: I'm seeing the ld: warnings as well on my macosx system. 17:26 dyoo: that part might not be drracket, but fpc. 17:26 dyoo: I'll have to check that in a moment... 17:26 soegaard: Add "-k-macosx_version_min 10.8" 17:27 dyoo: where? 17:27 soegaard: In fpc-compile 17:27 soegaard: It becomes: 17:27 soegaard: (system* "/usr/local/bin/fpc" "-k-macosx_version_min 10.8" (~a "-o" out-file) 17:27 soegaard: pas-file) 17:27 soegaard: the -k passes the the following to the linker. 17:29 soegaard: I think the warnings from the linker are harmless. They are important, if the resulting binary is supposed to run on another machine with an older version of OS X. 17:30 dyoo: odd. Ok, so I definitely can reproduce the error. 17:30 dyoo: But it's sensitive to what I type in. I typed in 'blah', and it was happy. 17:30 dyoo: I then typed in 'abcdef' as the input, and I see what you're seeing. 17:30 soegaard: An if you typed blah again? 17:30 dyoo: ah, it got lost. 17:33 dyoo: wait a sec. 17:33 dyoo: soegaard: try (read-char) in interactions. 17:33 dyoo: What do you see? 17:34 soegaard: Hangon. I am trying. 17:34 (join) tcsc 17:34 soegaard: I see the input box again ?! 17:35 dyoo: that part is ok. But what I saw was "write-bytes-avail: output port is closed" 17:35 dyoo: (this was right after seeing the weird output from running a minipascal fpc program." 17:35 soegaard: ok 17:36 soegaard: that's weird too 17:37 dyoo: …! 17:37 dyoo: ok, found something. 17:37 soegaard: Now I see what you are seeing. But only in the case, where the first characters isn't missing. 17:37 dyoo: system* isn't blocking! 17:38 soegaard: huh? 17:38 dyoo: I put: (fprintf (current-error-port) "after: ~s\n" out-file)) right after the call to system*, but I see the log message immediately 17:38 (join) gridaphobe 17:39 soegaard: The plot thickens 17:39 dyoo: oh, is fpc just compliing? Oh. Never mind, I got confused. I thought fpc was evaluating as well. I see that run is what evaluates the binary. I'm an idiot. 17:41 soegaard: wait a minute 17:42 soegaard: no, that ain't it 17:42 dyoo: by the way, if I do something like (parameterize ([current-input-port (open-input-bytes #"abcde\n") …) around the run, I don't see this error. 17:43 dyoo: So this must be something to do with DrRacket's treatment of the current input port. 17:43 soegaard: Hmm. 17:44 soegaard: The DrRacket part doesn't show up in the stacktrace as far as I can tell 17:46 dyoo: tracing it down. Ok, so DrRacket sets up its own current-input-port, attached to the repl, via http://git.racket-lang.org/plt/blob/HEAD:/collects/drracket/private/rep.rkt#l1552 17:46 rudybot: http://tinyurl.com/be7s6kl 17:46 dyoo: searching for get-in-box-port... 17:47 dyoo: get-in-box-port is a method of the framework support libraries… http://docs.racket-lang.org/framework/Text.html#%28meth._%28%28%28lib._framework%2Fmain..rkt%29._text~3aports~3c~25~3e%29._get-in-box-port%29%29 17:47 rudybot: http://tinyurl.com/bfx787r 17:49 dyoo: whose implementation appears to be in http://git.racket-lang.org/plt/blob/HEAD:/collects/framework/private/text.rkt#l2782 17:49 rudybot: http://tinyurl.com/avhlvuv 17:49 dyoo: Reading code... 17:50 soegaard: ditto 17:52 (join) ASau` 17:54 dyoo: what I think I'd do is look at the manufactured input port constructed in that function. But I don't currently have time to do this right now; I was supposed to work on WeScheme right now. :) 17:54 (quit) ASau: Remote host closed the connection 17:54 dyoo: Bug submit just in case someone else wants to take a crack at this? 17:55 soegaard: Okay, thanks for confirming the bug. I'll submit a rapport. 17:56 (quit) jeapostrophe: Ping timeout: 264 seconds 17:59 (quit) myx: Quit: ушёл 18:04 (quit) rins: Ping timeout: 264 seconds 18:08 (join) mizu_no_oto 18:11 (join) em 18:13 (quit) gridaphobe: Remote host closed the connection 18:13 soegaard: Running the equivalent C program with system* from within DrRacket seems to work flawlessly. 18:13 (join) gridaphobe 18:15 dyoo: soegaard: out of curiosity, how do things look like if you use subprocess directly? 18:15 soegaard: I'll try that 18:16 dyoo: I did see how the exception was showing up: it's in the implementation of system*, which does something called streamify-in 18:17 dyoo: and somewhere in there, it's doing a copy-port, which is ultimately the source of the error message you're seeing 18:18 (quit) gridaphobe: Ping timeout: 252 seconds 18:18 (quit) dyoo: Quit: dyoo 18:18 soegaard: Yes. I sae that too. And since they introduce threads, it might be a race condition. 18:21 soegaard: (subprocess (current-output-port) …) fails, because the current error port in Racket isn't a file-stream. So the streamify-in and -out are needed. 18:31 (join) francisl 18:32 (join) gridaphobe 18:33 (quit) eataix: Quit: ZNC - http://znc.in 18:38 (quit) mizu_no_oto: Ping timeout: 240 seconds 18:39 (quit) didi: Ping timeout: 246 seconds 18:41 (join) mizu_no_oto 18:47 (quit) mizu_no_oto: Ping timeout: 276 seconds 18:48 (quit) karswell`: Read error: Connection reset by peer 18:48 (join) Kaylin 18:53 (join) mizu_no_oto 18:53 (quit) soegaard: Quit: soegaard 18:54 (quit) pinupgeek: Quit: pinupgeek 18:57 (join) Nisstyre-laptop 18:57 (join) pinupgeek 18:57 (quit) anonymou1: Ping timeout: 276 seconds 19:00 (quit) sirdancealot7: Ping timeout: 245 seconds 19:01 (join) sirdancealot7 19:02 (quit) gridaphobe: Remote host closed the connection 19:02 (quit) Nisstyre-laptop: Quit: Leaving 19:03 (join) gridaphobe 19:04 (quit) Kaylin: Read error: Connection reset by peer 19:12 (quit) mizu_no_oto: Read error: Connection reset by peer 19:16 (join) Kaylin 19:17 (quit) francisl: Ping timeout: 276 seconds 19:18 (join) francisl 19:18 (join) mizu_no_oto 19:21 (quit) mizu_no_oto: Read error: Connection reset by peer 19:27 (join) mizu_no_oto 19:29 (quit) tcsc: Quit: computer sleeping 19:32 (quit) mizu_no_oto: Read error: Connection reset by peer 19:36 (quit) francisl: Quit: francisl 19:37 (join) jeapostrophe 19:38 (join) dnolen 19:39 (join) mizu_no_oto 19:45 (join) tcsc 19:46 (quit) Kaylin: Read error: Connection reset by peer 19:47 (quit) mizu_no_oto: Read error: Connection reset by peer 19:54 (join) mizu_no_oto 19:57 (quit) Fare: Quit: Leaving 19:58 (quit) sirdancealot7: Ping timeout: 246 seconds 20:00 (quit) dnolen: Ping timeout: 252 seconds 20:04 (join) sirdancealot 20:04 (quit) mizu_no_oto: Read error: Connection reset by peer 20:10 (join) mizu_no_oto 20:13 (quit) mizu_no_oto: Read error: Connection reset by peer 20:21 (quit) jeapostrophe: Ping timeout: 276 seconds 20:26 (quit) bitonic: Ping timeout: 245 seconds 20:26 (join) mizu_no_oto 20:27 (join) didi 20:30 (quit) mizu_no_oto: Read error: Connection reset by peer 20:34 (join) qrstuv1 20:34 (quit) qrstuv: Ping timeout: 252 seconds 21:09 (quit) zacts: Ping timeout: 240 seconds 21:10 (join) zacts 21:24 (quit) gridaphobe: Remote host closed the connection 21:24 (join) gridaphobe 21:29 (quit) gridaphobe: Ping timeout: 248 seconds 21:33 (quit) jschuster: Ping timeout: 248 seconds 21:33 (join) jschuster 21:36 (quit) dsantiago: Quit: Computer has gone to sleep. 21:40 (join) cdidd 21:44 (quit) cipher: Ping timeout: 264 seconds 22:13 (quit) tobi: *.net *.split 22:13 (quit) noelw: *.net *.split 22:13 (quit) ormaaj: *.net *.split 22:13 (quit) zacts: *.net *.split 22:13 (quit) carleastlund: *.net *.split 22:13 (quit) danl-ndi: *.net *.split 22:13 (quit) acarrico: *.net *.split 22:13 (quit) Twey: *.net *.split 22:13 (quit) DarthRamone: *.net *.split 22:13 (quit) spanner: *.net *.split 22:13 (quit) tcsc: *.net *.split 22:13 (quit) stevenfx: *.net *.split 22:13 (quit) errstr: *.net *.split 22:13 (quit) majoh: *.net *.split 22:13 (quit) cky: *.net *.split 22:13 (quit) dca: *.net *.split 22:13 (quit) Cryovat: *.net *.split 22:13 (quit) SHODAN: *.net *.split 22:13 (quit) didi: *.net *.split 22:13 (quit) sirdancealot: *.net *.split 22:13 (quit) basepi: *.net *.split 22:13 (quit) ChanServ: *.net *.split 22:13 (quit) merijn_: *.net *.split 22:13 (quit) sizz: *.net *.split 22:13 (quit) rmathews: *.net *.split 22:13 (quit) m4burns: *.net *.split 22:13 (quit) chandler: *.net *.split 22:13 (quit) Shambles_: *.net *.split 22:13 (quit) ozzloy: *.net *.split 22:13 (quit) Demosthenex: *.net *.split 22:13 (quit) cataska: *.net *.split 22:13 (quit) sysop_fb: *.net *.split 22:13 (quit) friscosam: *.net *.split 22:13 (quit) mceier: *.net *.split 22:13 (quit) Shvillr: *.net *.split 22:13 (quit) offby1: *.net *.split 22:13 (quit) gf3: *.net *.split 22:13 (quit) Draggor: *.net *.split 22:13 (quit) stchang: *.net *.split 22:13 (quit) bartbes: *.net *.split 22:13 (quit) sethalves: *.net *.split 22:13 (quit) ohama: *.net *.split 22:13 (quit) strawmn: *.net *.split 22:13 (quit) kristofer: *.net *.split 22:13 (quit) xian: *.net *.split 22:13 (quit) SeanTAllen: *.net *.split 22:13 (quit) mattmight: *.net *.split 22:13 (quit) qrstuv1: *.net *.split 22:13 (quit) parcha: *.net *.split 22:13 (quit) hyko: *.net *.split 22:13 (quit) stamourv: *.net *.split 22:13 (quit) juanfra__: *.net *.split 22:13 (quit) JStoker: *.net *.split 22:13 (quit) greghendershott: *.net *.split 22:13 (quit) pinupgeek: *.net *.split 22:13 (quit) em: *.net *.split 22:13 (quit) ASau`: *.net *.split 22:13 (quit) Raynes: *.net *.split 22:13 (quit) jao: *.net *.split 22:13 (quit) notdan: *.net *.split 22:13 (quit) mau: *.net *.split 22:13 (quit) snorble_: *.net *.split 22:13 (quit) dented42: *.net *.split 22:13 (quit) rapacity: *.net *.split 22:13 (quit) jonrafkind: *.net *.split 22:13 (quit) mithos28: *.net *.split 22:13 (quit) pono: *.net *.split 22:13 (quit) asumu: *.net *.split 22:13 (quit) ivan\: *.net *.split 22:13 (quit) eMBee: *.net *.split 22:13 (quit) mario-goulart: *.net *.split 22:13 (quit) noam: *.net *.split 22:13 (quit) bremner: *.net *.split 22:13 (quit) cdidd: *.net *.split 22:13 (quit) bjz: *.net *.split 22:13 (quit) Shviller: *.net *.split 22:13 (quit) lusory: *.net *.split 22:13 (quit) fasta: *.net *.split 22:13 (quit) Nereid: *.net *.split 22:13 (quit) jaimef: *.net *.split 22:13 (quit) xulfer: *.net *.split 22:13 (quit) willem: *.net *.split 22:13 (quit) elliottcable: *.net *.split 22:13 (quit) ivan`: Max SendQ exceeded 23:27 (join) eMBee 23:27 (join) asumu 23:27 (join) pono 23:27 (join) jonrafkind 23:27 (join) noam 23:27 (join) mario-goulart 23:27 (join) rapacity 23:27 (join) dented42 23:27 (join) snorble_ 23:27 (join) mau 23:27 (join) notdan 23:27 (join) jao 23:27 (join) Raynes 23:27 (join) ASau 23:27 (join) pinupgeek 23:27 (join) ivan` 23:27 (join) cky 23:27 (join) basepi 23:27 (join) sirdancealot 23:27 (join) Fare 23:27 (join) SHODAN 23:27 (join) Cryovat 23:27 (join) micro__ 23:27 (join) dca 23:27 (join) tcsc 23:27 (join) majoh 23:27 (join) errstr 23:27 (join) samth 23:27 (join) stevenfx 23:27 (join) elliottcable 23:27 (join) ormaaj 23:27 (join) noelw 23:27 (join) spanner 23:27 (join) Twey 23:27 (join) DarthRamone 23:27 (join) acarrico 23:27 (join) danl-ndi 23:27 (join) carleastlund 23:27 (join) CoverSlide 23:27 (join) JStoker 23:27 (join) greghendershott 23:27 (join) Draggor 23:27 (join) ohama 23:27 (join) mattmight 23:27 (join) ozzloy 23:27 (join) sethalves 23:27 (join) bartbes 23:27 (join) hyko 23:27 (join) SeanTAllen 23:27 (join) friscosam 23:27 (join) Shambles_ 23:27 (join) chandler 23:27 (join) m4burns 23:27 (join) juanfra__ 23:27 (join) sysop_fb 23:27 (join) gf3 23:27 (join) ChanServ 23:27 (join) offby1 23:27 (join) xian 23:27 (join) cataska 23:27 (join) parcha 23:27 (join) kristofer 23:27 (join) strawmn 23:27 (join) Demosthenex 23:27 (join) Shvillr 23:27 (join) stchang 23:27 (join) rmathews 23:27 (join) sizz 23:27 (join) mceier 23:27 (join) stamourv 23:27 (join) jrslepak 23:27 (join) qrstuv1 23:27 (join) merijn 23:27 (join) ivan\ 23:27 (join) emma 23:27 (join) mithos28 23:27 (join) willem 23:27 (join) xulfer 23:27 (join) jaimef 23:27 (join) Nereid 23:27 (join) fasta 23:27 (join) lusory 23:27 (join) Shviller 23:27 (join) bjz 23:27 (join) cdidd 23:27 (join) bremner 23:27 (join) tobi 23:28 (quit) elliottcable: Max SendQ exceeded 23:28 (quit) ivan`: Changing host 23:28 (join) ivan` 23:28 (join) elliottcable 23:28 (nick) Fare -> Guest8031 23:29 (nick) emma -> em 23:31 (quit) cky: Changing host 23:31 (join) cky 23:32 (join) Shambles_1 23:35 (quit) Shambles_: Ping timeout: 248 seconds 23:39 (quit) rmathews: Quit: ...