lexi-lambda changed the topic of #racket to: Racket v7.1 has been released: http://blog.racket-lang.org/2018/10/racket-v7-1.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
Falacer_ has joined #racket
endformationage has joined #racket
Falacer has quit [Ping timeout: 246 seconds]
_whitelogger has joined #racket
Falacer has joined #racket
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #racket
Falacer_ has joined #racket
Falacer has quit [Ping timeout: 250 seconds]
Falacer_ has quit [Ping timeout: 245 seconds]
_whitelogger has joined #racket
spacetato has joined #racket
acarrico has joined #racket
spacetato has quit [Client Quit]
Falacer has joined #racket
Falacer_ has joined #racket
Falacer has quit [Ping timeout: 272 seconds]
pierpal has quit [Remote host closed the connection]
Falacer_ has quit [Ping timeout: 268 seconds]
ubLIX has quit [Ping timeout: 244 seconds]
_whitelogger has joined #racket
Falacer_ has joined #racket
Falacer has quit [Ping timeout: 240 seconds]
Falacer_ has quit [Ping timeout: 240 seconds]
n_blownapart has joined #racket
dddddd has quit [Remote host closed the connection]
FreeFull has quit []
n_blownapart is now known as crestfallen
Falacer has joined #racket
crestfallen has quit [Quit: Leaving]
jasonszhao has joined #racket
Falacer_ has joined #racket
Falacer has quit [Ping timeout: 244 seconds]
pierpal has joined #racket
Falacer_ has quit [Ping timeout: 246 seconds]
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
pie___ has joined #racket
pie__ has quit [Ping timeout: 268 seconds]
widp_ has quit [Ping timeout: 250 seconds]
Falacer has joined #racket
Falacer_ has joined #racket
Falacer has quit [Ping timeout: 240 seconds]
Falacer_ has quit [Ping timeout: 240 seconds]
endformationage has quit [Ping timeout: 240 seconds]
jao has quit [Ping timeout: 244 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Falacer has joined #racket
pierpal has quit [Remote host closed the connection]
Arcaelyx has joined #racket
Falacer_ has joined #racket
Falacer has quit [Ping timeout: 240 seconds]
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo_ has joined #racket
<ZombieChicken> if racket is migrating to chez scheme, will it be possible to download the racket code and run it atop one's own chez install?
Falacer_ has quit [Ping timeout: 268 seconds]
<lexi-lambda> ZombieChicken: I’m not sure, but maybe. The README here says “Building Racket-on-Chez requires a Chez Scheme build directory, not just a Chez Scheme installation that is accessible as `scheme`.” https://github.com/racket/racket/blob/2754d4e5a04a928c42087a502fe1dc4eb0c21adc/racket/src/cs/README.txt
Lowl3v3l has joined #racket
<lexi-lambda> So the answer is probably yes if your own chez install includes the build directory, but not if it is just a binary.
<ZombieChicken> ah, okay.
<ZombieChicken> Thanks
<dyl> Does Chez expose a "libchez" so to speak?
<dyl> Doing that + headers would obviate the need for a working build directory.
sauvin has joined #racket
Falacer has joined #racket
Falacer has quit [Ping timeout: 240 seconds]
jasonszhao has quit [Ping timeout: 240 seconds]
jasonszhao has joined #racket
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
DGASAU has joined #racket
thallada has quit [Ping timeout: 250 seconds]
pera has quit [Ping timeout: 250 seconds]
thallada has joined #racket
zmv has quit [Read error: Connection reset by peer]
thallada has quit [Ping timeout: 246 seconds]
thallada has joined #racket
DGASAU has quit [Ping timeout: 246 seconds]
thallada has quit [Ping timeout: 244 seconds]
Lowl3v3l has quit [Remote host closed the connection]
thallada has joined #racket
Falacer has joined #racket
Lowl3v3l has joined #racket
thallada has quit [Ping timeout: 272 seconds]
thallada has joined #racket
DGASAU has joined #racket
thallada has quit [Ping timeout: 240 seconds]
zmt01 has joined #racket
zmt00 has quit [Ping timeout: 240 seconds]
longshi has joined #racket
thallada has joined #racket
thallada has quit [Ping timeout: 268 seconds]
thallada has joined #racket
thallada has quit [Ping timeout: 240 seconds]
thallada has joined #racket
thallada has quit [Ping timeout: 250 seconds]
p4bl0 has joined #racket
YuGiOhJCJ has joined #racket
tonyg has joined #racket
thallada has joined #racket
longshi has quit [Quit: WeeChat 2.3]
ubLIX has joined #racket
dddddd has joined #racket
jao has joined #racket
widp_ has joined #racket
jcowan has quit [Quit: Connection closed for inactivity]
shakdwipeea has joined #racket
jcowan has joined #racket
<p4bl0> Hello all :), I'm trying to play with Typed Racket, and I have a few questions. First, is there a typed version of racket/match? The closest thing I find to what I'm looking for is this https://pkgs.racket-lang.org/package/datatype but it is not as powerful as what I'm expecting (which is something similar to OCaml's match)
<p4bl0> Another question I have is about the parser tools. How would one write lexer and parser that are statically type checked?
<bremner> you can use match in typed/racket code. I'm not sure what complications there are.
Lowl3v3l has quit [Remote host closed the connection]
<p4bl0> bremner: right, but it does not check for completeness of the cases
endformationage has joined #racket
jasonszhao has quit [Ping timeout: 250 seconds]
pierpal has joined #racket
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #racket
ubLIX has quit [Quit: ubLIX]
pera has joined #racket
jasonszhao has joined #racket
jasonszhao has quit [Ping timeout: 250 seconds]
<rain1> how would i make a s-expression where you can click on a symbol in it and that part expands?
<bremner> p4bl0: OK, but then you'd be matching against some more structured type than just an S-expression. I guess I don't know enough about OCaml to know what's missing from type-case
ubLIX has joined #racket
pierpal has quit [Quit: Poof]
pierpal has joined #racket
DGASAU has quit [Ping timeout: 240 seconds]
<bremner> p4bl0: one of the teaching languages (plait) also has a type-case variant. I'm not sure if it's really much different. http://docs.racket-lang.org/plait/datatypes-tutorial.html?q=plait
DGASAU has joined #racket
jasonszhao has joined #racket
meepdeew has joined #racket
jasonszhao has quit [Ping timeout: 250 seconds]
jasonszhao has joined #racket
shakdwipeea has quit [Ping timeout: 246 seconds]
jasonszhao has quit [Ping timeout: 246 seconds]
Arcaelyx has joined #racket
YuGiOhJCJ has quit [Ping timeout: 256 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #racket
meepdeew has quit [Remote host closed the connection]
FreeFull has joined #racket
jasonszhao has joined #racket
m1dnight_ has quit [Ping timeout: 252 seconds]
sauvin has quit [Remote host closed the connection]
<p4bl0> bremner: yes match already does more than matching on the structure of s-exp, but it does not ensure completeness of the covered cases, even in Typed Racket where the type of the expression being matched is known
YuGiOhJCJ has joined #racket
<p4bl0> bremner: I will look into the plait language, thanks :)
jasonszhao has quit [Ping timeout: 246 seconds]
<bremner> p4bl0: there's also Hackett, which might be more "serious" than plait, and has some pattern matching forms
zmt01 is now known as zmt00
<bremner> lexi-lambda can reject my accusation of seriousness ;)
<p4bl0> bremner: right, but hackett is quite different from Racket/Scheme (lazyness etc)
<bremner> yes
<p4bl0> what I would really like is typed/parser-tools
<p4bl0> but maybe I should just use OCaml
<bremner> maybe ;)
<bremner> my impression is that algebraic data types are not really idiomatic in typed/racket. I have mainly used the teaching languages where ADTs are added, but I guess the idomatic thing to do in typed/racket is occurance typing.
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
<p4bl0> if I understand correctly what is occurrence typing, it is quite flexible and powerful to statically ensure what a function returns, but not that it exhaustively accepts all members of its input type
<p4bl0> but plait seems interresting :)
<p4bl0> there is still the issue of having typed lexers and parsers, but again, maybe if I want to have OCaml I should just use OCaml ^^
Lowl3v3l has joined #racket
pera has quit [Ping timeout: 250 seconds]
pera has joined #racket
audriu has quit [Quit: Leaving]
Fernando-Basso has joined #racket
Lowl3v3l has quit [Quit: Leaving.]
Falacer has quit [Ping timeout: 246 seconds]
Falacer has joined #racket
Falacer has quit [Ping timeout: 240 seconds]
cantstanya has quit [Remote host closed the connection]
<lexi-lambda> p4bl0: If it’s laziness that turns you away, I’m probably going to drop laziness in Hackett and just make the language strict. But that doesn’t change the fact that Hackett isn’t really practically useful right now, so that doesn’t help you very much.
Falacer has joined #racket
keep_learning has quit [Quit: Ping timeout (120 seconds)]
Falacer_ has joined #racket
<aeth> lexi-lambda: Imo not being lazy is probably a good idea, unless the point is to be lazy.
Falacer has quit [Ping timeout: 272 seconds]
Falacer_ has quit [Ping timeout: 244 seconds]
cantstanya has joined #racket
ng0 has joined #racket
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 240 seconds]
<jcowan> lexi-lambda: I'm glad to hear that. Pervasive laziness is to ensure purity, but a system designed *uno animo* can just be pure and not worry about it.
meepdeew has joined #racket
Falacer has joined #racket
<lexi-lambda> Pervasive laziness is appealing for a variety of reasons. Awkward nullary functions mostly go away. You get some benefits that are hard to recover with opt-in laziness. And as SPJ says, it “keeps you honest”—it means you can’t really break purity in a predictable way, so people don’t try.
<lexi-lambda> And with a good strictness analyzer and a runtime optimized for laziness, it can even be reasonably efficient. But the former is a lot of work, and the latter does not seem like something Racket will ever have.
<lexi-lambda> And even with those things, there are a lot of other drawbacks. So it seems pragmatic to give up on laziness, even if it makes me sad to give up some of its benefits.
YuGiOhJCJ has joined #racket
Sgeo__ has joined #racket
orivej_ has quit [Ping timeout: 250 seconds]
orivej has joined #racket
jasonszhao has joined #racket
Sgeo_ has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 246 seconds]
Falacer has quit [Ping timeout: 245 seconds]
jasonszhao has quit [Ping timeout: 246 seconds]
<jcowan> Well, if you do not like crottle greeps (or nullary functions), do not provide them.
<jcowan> Also, I have little faith in strictness analyzers: they are inevitably going to be too conservative. (For that matter, static typing itself is often too conservative, as the cool example of Dialyzer, the type checker for Erlang, shows.)
Fernando-Basso has quit [Remote host closed the connection]
<jcowan> The example is this:
<jcowan> and(true, true) => true; and(_, false) => false, and(false, _) => false.
<jcowan> A Hindley-Milner type system will type this restrictively as (bool, bool) -> bool, but the true type is (any, any) -> bool.
Falacer has joined #racket