samth changed the topic of #racket to: Racket v7.3 has been released: https://blog.racket-lang.org/2019/05/racket-v7-3.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
libertyprime has quit [Ping timeout: 246 seconds]
pie_ has quit [Ping timeout: 250 seconds]
Sgeo_ has quit [Ping timeout: 258 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pera has quit [Ping timeout: 248 seconds]
endobson has joined #racket
libertyprime has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
FreeFull has quit []
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badkins has quit [Ping timeout: 258 seconds]
iyzsong has joined #racket
endobson has joined #racket
efm has quit [Remote host closed the connection]
nullman has quit [Ping timeout: 258 seconds]
nullman has joined #racket
efm has joined #racket
efm has quit [Remote host closed the connection]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endobson has joined #racket
endobson has quit [Client Quit]
efm has joined #racket
libertyprime has quit [Ping timeout: 258 seconds]
endobson has joined #racket
endobson has quit [Client Quit]
libertyprime has joined #racket
kolontaev has joined #racket
efm has quit [Remote host closed the connection]
efm has joined #racket
endobson has joined #racket
pera has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
pera has quit [Ping timeout: 245 seconds]
pera has joined #racket
jao has quit [Ping timeout: 268 seconds]
Sgeo has joined #racket
iyzsong has quit [Ping timeout: 250 seconds]
YuGiOhJCJ has joined #racket
pera has quit [Ping timeout: 245 seconds]
endformationage has quit [Quit: WeeChat 2.5]
manualcrank has joined #racket
dddddd has quit [Remote host closed the connection]
manualcrank has quit [Quit: WeeChat 1.9.1]
libertyprime has quit [Quit: leaving]
kolontaev has quit [Quit: leaving]
ZombieChicken has quit [Quit: WeeChat 2.5]
lockywolf has quit [Ping timeout: 245 seconds]
plakband has joined #racket
lockywolf has joined #racket
plakband has quit [Quit: WeeChat 2.5]
ng0 has joined #racket
manualcrank has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
iyzsong has joined #racket
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
rain1 has joined #racket
iyzsong has joined #racket
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 272 seconds]
libertyprime has joined #racket
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 246 seconds]
lockywolf__ has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 246 seconds]
pie_ has joined #racket
FreeFull has joined #racket
orivej has joined #racket
Fernando-Basso has joined #racket
mSSM has quit [Ping timeout: 268 seconds]
dustyweb has quit [Ping timeout: 276 seconds]
jao has joined #racket
miklos1 has joined #racket
orivej has quit [Ping timeout: 245 seconds]
pie_ has quit [Ping timeout: 250 seconds]
miklos1 has quit [Remote host closed the connection]
orivej has joined #racket
orivej has quit [Ping timeout: 245 seconds]
pie_ has joined #racket
endobson has joined #racket
Fernando-Basso has quit [Remote host closed the connection]
dddddd has joined #racket
ziyourenxiang has quit [Remote host closed the connection]
ziyourenxiang has joined #racket
libertyprime has quit [Ping timeout: 244 seconds]
pera has joined #racket
endformationage has joined #racket
iyzsong has quit [Ping timeout: 258 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
pie_ has quit [Ping timeout: 250 seconds]
pie_ has joined #racket
pera has quit [Ping timeout: 246 seconds]
mSSM has joined #racket
Fernando-Basso has joined #racket
dustyweb has joined #racket
efm has quit [Read error: Connection reset by peer]
efm has joined #racket
lockywolf has joined #racket
pie_ has quit [Ping timeout: 250 seconds]
pie_ has joined #racket
efm has quit [Remote host closed the connection]
ziyourenxiang has quit [Ping timeout: 258 seconds]
efm has joined #racket
jao has quit [Ping timeout: 272 seconds]
efm has quit [Ping timeout: 272 seconds]
efm has joined #racket
pie_ has quit [Ping timeout: 250 seconds]
orivej has joined #racket
acarrico has quit [Ping timeout: 272 seconds]
casaca has quit [Ping timeout: 268 seconds]
casaca has joined #racket
dustyweb has quit [Ping timeout: 245 seconds]
pie_ has joined #racket
pie_ has quit [Ping timeout: 250 seconds]
dustyweb has joined #racket
dustyweb has quit [Ping timeout: 245 seconds]
dustyweb has joined #racket
gastove has joined #racket
<gastove> Hi all. I'm newish to Racket, and trying to wrap my head around something that seems like it *should* be straight-forward: what's a normal workflow for compiling a program during development?
<gastove> In, for instance, rust, I'm accustomed to `cargo build` and `cargo run`, in the root of my project, for build dev binaries and running a project's `main`.
<bremner> you can use "raco make", but you can also run uncompiled during development
nisstyre has quit [Quit: WeeChat 2.5]
<gastove> Does one typically call raco make just with a `main.rkt`?
<bremner> I don't bother with raco make until something is annoyingly slow
<gastove> I've been trying to get my head around `info.rkt` files, which... don't seem to do what I expect them to.
<gastove> Ah.
pie_ has joined #racket
pie_ has quit [Ping timeout: 250 seconds]
jao has joined #racket
Fernando-Basso has quit [Remote host closed the connection]
efm has quit [Read error: Connection reset by peer]
efm has joined #racket
nisstyre has joined #racket
dustyweb has quit [Remote host closed the connection]
juanfra has quit [Quit: juanfra]
gastove has quit [Ping timeout: 244 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endobson has joined #racket
juanfra has joined #racket
dustyweb has joined #racket
pera has joined #racket
Fernando-Basso has joined #racket
Fernando-Basso has quit [Max SendQ exceeded]
Fernando-Basso has joined #racket
dustyweb has quit [Ping timeout: 250 seconds]
ZombieChicken has joined #racket
pera has quit [Ping timeout: 268 seconds]
manualcrank has joined #racket
<ZombieChicken> 2 things. 1) When was 7.4 released? and 2) The topic apparently needs updating
badkins has joined #racket
<vraid> well. racket 7.3 has technically been released
pera has joined #racket
<ZombieChicken> yes, technically
<ZombieChicken> so has racket 1.0
<aeth> Trick ~question~ answer. It was still PLT Scheme at 1.0 so there is no Racket 1.0.
soegaard has joined #racket
<aeth> And actually, there was no 1.0 there, either. They didn't use traditional versions until 4.0. (And 5.0 was Racket.)
pera has quit [Ping timeout: 245 seconds]
ng0 has quit [Ping timeout: 260 seconds]
<aeth> It's pretty rare to be wrong in more ways than one!
<ZombieChicken> Clearly you don't know me
<aeth> And technically since "racket 1.0" was in the tail position of your statement and it was wrong recursively, it was incorrect in a tail recursive way and thus could be optimized.
<ZombieChicken> I think you might need to step away from the computer
<aeth> It's too late for me.
<aeth> Save yourself.
<ZombieChicken> nah
ng0 has joined #racket
<ZombieChicken> If I was a smarter person, I might make an effort to learn Clojure instead of messing with Racket
ubLIX has joined #racket
dTal has quit [Read error: Connection reset by peer]
dTal has joined #racket
pie_ has joined #racket
<ZombieChicken> Anyone know how to get drracket to not display the #lang line with a bloody white background?
<ZombieChicken> it's blinding me
<soegaard> flux ?
* soegaard ducks
<ZombieChicken> flux/
<ZombieChicken> ?
<ZombieChicken> Ah
<ZombieChicken> I use redshift for that kind of thing, but this is a problem with a zenburn-themed Drracket displaying the #lang line whenever I scroll down the page as a BRIGHT WHITE BAR
<ZombieChicken> turning off that line would be acceptable as well
<bremner> maybe you can hide it completely
<ZombieChicken> but I didn't see that config option in the preferences
<bremner> or just use racket-mode ;)
<soegaard> If you can't find anything in the color preferences, look in the drrackect source.
<ZombieChicken> bremner: None of the emacs modes support scribble/lp2. I've tried
<bremner> ah, right.
vraid has quit [Read error: Connection reset by peer]
<ZombieChicken> hmm
<ZombieChicken> (and (preferences:get 'drracket:module-language-first-line-special?)
<ZombieChicken> (is-lang-line? l
<ZombieChicken> ^ That looks relavant. Where and how would I go about changing/setting that option?
atweiden-air has joined #racket
<ZombieChicken> found it
<ZombieChicken> it was in the preferences page, but was buried in a list of them I didn't notice
<ZombieChicken> ...or did I? weird...
ubLX has joined #racket
<soegaard> Do you mean the one on "General" ? "Always show ..."
<ZombieChicken> yeah. Always show #lang...
<soegaard> Still haven't found out to set the color though.
<ZombieChicken> had to restart drracket for it to take effect for some reason
<atweiden-air> can anyone point me to some examples of multiple dispatch in racket, or multivariadic functions
<soegaard> But better than nothing.
<ZombieChicken> Yeah, but this is good enough for the moment
<ZombieChicken> thanks
<atweiden-air> i'm attempting to compare racket with perl6
ubLIX has quit [Ping timeout: 248 seconds]
<atweiden-air> perl6...
<atweiden-air> multi sub crzy-add1(Int:D $a where * > 100) { $a + 100 }; multi sub crzy-add1(Int:D $a where * > 0) { $a + 1 }
<atweiden-air> racket... is something like this possible?
<atweiden-air> (define crzy-add1 (case-lambda [(a where (> 100 a)) (+ 100 a)] [(a) (+ 1 a)]))
<ZombieChicken> it's more than likely possible, thought the terminology might not be the exact same
<soegaard> atweiden-air: (define (foo . xs) body) defines a function that takes som number of variables.
<ZombieChicken> ah. old-poop-brown background with old-lime-green font. Nice...
<ZombieChicken> It's a pretty safe bet that if you can do it in another language, you can do it in racket
<atweiden-air> seogaard: but is it possible to have guards inside of a case-lambda per my example?
<soegaard> If you want us to write something that does the same as the perl program, you need to to tell us what it does in detail.
<soegaard> Guards have multiple meanings - what kind are you thinking of?
<atweiden-air> multi sub crzy-add1(Int:D $a where * > 100) { $a + 100 }; multi sub crzy-add1(Int:D $a where * > 0) { $a + 1 }
<atweiden-air> in this example^ the guard is "where * > 100"
<soegaard> And what does it do?
<atweiden-air> crzy-add1(120) # 220
<atweiden-air> crzy-add1(1) # 2
<ZombieChicken> that almost looks like your 'guard' is nothing more than a cond...
<soegaard> So let's guess here. "multu sub" defines a function sub.
<ZombieChicken> if I'm reading that right
<atweiden-air> basically so
<atweiden-air> i just massively prefer a functional programming paradigm
<atweiden-air> but i think lisps and maybe ml can get close to that with case-lambda
<soegaard> Id the where clause "where *>100" is tru, the first definition $a+100 is used, and if the second one *>0 is true the second is used $1+1 ?
<atweiden-air> soegaard yes
<soegaard> (define (crazy x) (cond [(> x 100) (+ x 100)] [(> x 1) (+ x 1))
<ZombieChicken> seems like a really weird use for a term like 'guard'...
<ZombieChicken> soegaard: Don't think you really need the conditional for the 2nd one there. Just leave it as an else statement
<ZombieChicken> actually
<ZombieChicken> s/> x 1/> x 0/
<soegaard> Yeah 1 -> 0 - but I am guessing the Perl version does nothing if x≤0.
<ZombieChicken> yeah
<atweiden-air> soegaard: passing val less than 0 would raise exception
<atweiden-air> as to your example, it seems more imperative than functional
<atweiden-air> is it possible to do it with a case-lambda for instance?
<ZombieChicken> how do you define 'functional'?
<atweiden-air> erlang like
<soegaard> Functional normally means no mutation.
<ZombieChicken> ^
<soegaard> There is no mutatation in the cond-expression.
<ZombieChicken> also no references to outside variables iirc, at least in some cases
<atweiden-air> instead of conditionals, you redefine the same named function over and over again
<ZombieChicken> if you call it with certain arguements, you will always get the same answers back
<ZombieChicken> much like a mathematical function
<soegaard> That's not "functional" just convenient sugar.
<atweiden-air> can it be done?
<ZombieChicken> If you want to learn functional programming, then perhaps Haskell would be worth a look
<atweiden-air> i prefer the syntax of racket to haskell
<soegaard> In a language with macros everything can be done.
<ZombieChicken> including things that should never be done
<atweiden-air> soegaard: for example?
<soegaard> If I recall correctly, you can use #lang formica, if you like that style.
<ZombieChicken> just be glad racket isn't CL, where you can redefine fun things, like the reader macro...
<soegaard> I suppose this could be used too:
<atweiden-air> i think define/match looks interesting
orivej has quit [Ping timeout: 244 seconds]
ubLX has quit [Quit: ubLX]
atweiden-air has quit [Quit: leaving]
FreeFull has quit []
Fernando-Basso has quit [Remote host closed the connection]
libertyprime has joined #racket
ziyourenxiang has joined #racket
pera has joined #racket
soegaard has quit [Quit: soegaard]
atweiden-air has joined #racket
<atweiden-air> does racket have something like this from clojure http://ix.io/1Tu1
lockywolf has quit [Ping timeout: 244 seconds]