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
FreeFull has quit [Ping timeout: 240 seconds]
FreeFull has joined #racket
adamgolding has quit [Ping timeout: 256 seconds]
dbmikus_ has quit [Ping timeout: 244 seconds]
ym555 has quit [Quit: WeeChat 2.3]
evdubs has quit [Remote host closed the connection]
evdubs has joined #racket
fridim has quit [Ping timeout: 252 seconds]
fridim has joined #racket
ng0_ has joined #racket
ng0 has quit [Ping timeout: 256 seconds]
ng0_ has quit [Quit: Alexa, when is the end of world?]
lavaflow has quit [Ping timeout: 245 seconds]
lavaflow has joined #racket
pie_ has joined #racket
pie__ has quit [Ping timeout: 272 seconds]
keep_learning has quit [Quit: Ping timeout (120 seconds)]
dddddd has quit [Remote host closed the connection]
keep_learning has joined #racket
keep_learning has quit [Client Quit]
keep_learning has joined #racket
pierpal has quit [Quit: Poof]
pierpal has joined #racket
pie__ has joined #racket
pie_ has quit [Ping timeout: 244 seconds]
endformationage has quit [Quit: WeeChat 2.3]
dvdmuckle has quit [Quit: Bouncer Surgery]
dvdmuckle has joined #racket
libertyprime has quit [Ping timeout: 246 seconds]
libertyprime has joined #racket
Lowl3v3l has joined #racket
jao has quit [Ping timeout: 240 seconds]
FreeFull has quit []
meepdeew has joined #racket
widp_ has quit [Ping timeout: 240 seconds]
Nomenclatura has joined #racket
_whitelogger has joined #racket
<meepdeew> Is it uncommon to use emacs instead of drracket?
sauvin has joined #racket
<aeth> GNU Emacs is incredibly common.
<aeth> It's the best support for the Lisp family and it's multilingual.
widp_ has joined #racket
<meepdeew> Hi aeth. Geiser mode is working for me in emacs with most racket code I've tried.
<meepdeew> But it's failing to evaluate a racket file that runs perfectly fine from both DrRacket and from the terminal (if I run `$ racket filename.rkt` or `$ gracket filename.rkt`).
<meepdeew> The error says "`#reader` not enabled", so I believe it has to do with the first three lines of code inserted by DrRacket (this is using beginner student language, bsl, from htdp, rather than #lang racket). Do you, or anyone know, know why the emacs environment would reject it?
ZombieChicken has quit [Ping timeout: 256 seconds]
<aeth> hmm, I'm not sure
<aeth> meepdeew: there is also a racket-mode that might have better support
<meepdeew> alrighty, thanks aeth
pierpal has quit [Quit: Poof]
pierpal has joined #racket
widp_ has quit [Ping timeout: 250 seconds]
meepdeew has quit [Remote host closed the connection]
Lowl3v3l has quit [Remote host closed the connection]
Lowl3v3l has joined #racket
Falacer has joined #racket
widp_ has joined #racket
ng0 has joined #racket
dan_f has quit [Quit: dan_f]
Nomenclatura has quit [Remote host closed the connection]
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #racket
pierpal has quit [Ping timeout: 246 seconds]
pierpal has joined #racket
widp_ has quit [Ping timeout: 245 seconds]
widp_ has joined #racket
dddddd has joined #racket
dustyweb has quit [Remote host closed the connection]
pierpal has quit [Quit: Poof]
pierpal has joined #racket
pierpal has quit [Ping timeout: 245 seconds]
dustyweb has joined #racket
widp_ has quit [Ping timeout: 272 seconds]
widp_ has joined #racket
jao has joined #racket
ubLIX has joined #racket
ym555 has joined #racket
jao has quit [Ping timeout: 268 seconds]
Lowl3v3l has quit [Remote host closed the connection]
VansFannel has joined #racket
VansFannel has quit [Client Quit]
VansFannel has joined #racket
<VansFannel> Hi!
<VansFannel> Is there a way to get the list index in map function? Thanks.
<bremner> VansFannel: you can do that using one of the for variants
<bremner> iirc, it's one of the examples.
<VansFannel> bremner: ok, thanks
<ym555> or using map and range
<ym555> (map (lambda (whatever index) (display whatever) (display index)) '(1 2 3 4) (range 0 4))
<bremner> ah, right. I always forget 2 argument map
<ym555> (range 0 3)*
<ym555> and map takes any number of lists btw
<VansFannel> ym555: yeah!! That's great!
<VansFannel> with: (map (lambda (whatever index) (display whatever) (display index)) '(1 2 3 4) (range 0 4)). I get: 10213243'(#<void> #<void> #<void> #<void>)
<VansFannel> And with: (map (lambda (whatever index) (display whatever) (display index)) '(1 2 3 4) (range 0 3)) I get an error
<VansFannel> I think map loops the first list, and then the second list
<ym555> (map (lambda (whatever index) (cons whatever index)) '(1 2 3 4) (range 0 4))
<ym555> i gave a bad example sorry
<ym555> and yeah it is range 0 4, i thought range was inclusive not exclusive
<ym555> bremner: I can't find a for variant that gives the index
<VansFannel> Me either
widp_ has quit [Ping timeout: 250 seconds]
widp_ has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
endformationage has joined #racket
libertyprime has quit [Ping timeout: 245 seconds]
<VansFannel> I've done it. I have to implement a function that replace an item in a list, in a give index, and I've done it using tail recursion. Thanks a lot!!
widp_ has quit [Ping timeout: 250 seconds]
VansFannel has quit [Quit: Page closed]
<bremner> I'm not sure using map counts as tail recursion ;)
<bremner> for is just like map, it takes multiple lists
<bremner> I guess I remember for because I've been using it more than map recently. It's a bit cleaner for most things.
Lowl3v3l has joined #racket
dbmikus has joined #racket
sleepnap has joined #racket
widp_ has joined #racket
sleepnap has left #racket [#racket]
ubLIX has quit [Quit: ubLIX]
dbmikus has quit [Ping timeout: 246 seconds]
hexagoxel has quit [Quit: ZNC 1.6.5+deb1+deb9u1 - http://znc.in]
hexagoxel has joined #racket
dbmikus has joined #racket
gnugnugnu has joined #racket
jao has joined #racket
ym555 has quit [Quit: WeeChat 2.3]
pera has joined #racket
pierpal has joined #racket
ym555 has joined #racket
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #racket
pierpal has quit [Ping timeout: 268 seconds]
pierpal has joined #racket
gnugnugnu has quit [Ping timeout: 245 seconds]
dbmikus_ has joined #racket
dbmikus has quit [Ping timeout: 240 seconds]
gnugnugnu has joined #racket
dbmikus__ has joined #racket
dbmikus_ has quit [Ping timeout: 268 seconds]
gnugnugnu has quit [Quit: WeeChat 2.3]
ym555 has quit [Ping timeout: 250 seconds]
ym555 has joined #racket
pera has quit [Ping timeout: 240 seconds]
meepdeew has joined #racket
pierpal has quit [Quit: Poof]
pierpal has joined #racket
ZombieChicken has joined #racket
FreeFull has joined #racket
<friscosam> ym555: (for ([i (in-naturals)] [v (in-list your-list)]) ...)
FreeFull has quit [Quit: Rebooting]
ZombieChicken has quit [Ping timeout: 256 seconds]
<jcowan> Ooh, a new status post!
FreeFull has joined #racket
<jcowan> Wow. It's done
<friscosam> "done" :)
<friscosam> I need to hunt down what the FFI incompatibilities are
<jcowan> It's never going to be 100% compatible anyway
ym555_ has joined #racket
ym555 has quit [Ping timeout: 272 seconds]
ng0 has joined #racket
<friscosam> true. It's good to know which of my code is going to break though
pera has joined #racket
<jcowan> According to the Scheme Conf talk, the Chez FFI was hacked just enough to make DrRacket runnable
<jcowan> I suspect anyone embedding Racket, as opposed to using C libraries with Racket, will do well to stick with Racket6 (smallest and fastest)
<bremner> racket7 is also non-chez, by default
tonyg_ has joined #racket
ym555_ has quit [Ping timeout: 246 seconds]
<jcowan> yes, but slower than 6 due to the expander running in Racket
<bremner> ah. OK.
<jcowan> (and bigger)
<bremner> I actually noticed some interactive speedup ;)
<bremner> no benchmarks, of course.
ym555_ has joined #racket
Falacer has quit [Ping timeout: 246 seconds]
gour has joined #racket
cantstanya has quit [Ping timeout: 256 seconds]
cantstanya has joined #racket
meepdeew has quit [Remote host closed the connection]
<friscosam> yeah I figured if they got DrRacket to work then it's likely most of the ffi stuff I have will still work
tonyg_ has quit [Quit: leaving]
ZombieChicken has joined #racket
ZombieChicken has quit [Remote host closed the connection]
ZombieChicken has joined #racket
Fernando-Basso has joined #racket
dbmikus has joined #racket
dbmikus__ has quit [Ping timeout: 244 seconds]
ubLIX has joined #racket
mfiano has quit [Ping timeout: 246 seconds]
mfiano has joined #racket
ym555_ is now known as ym555
FernandoBasso has joined #racket
dbmikus has quit [Quit: WeeChat 2.3]
Fernando-Basso has quit [Ping timeout: 252 seconds]
_apg has quit [Ping timeout: 246 seconds]
FernandoBasso has quit [Remote host closed the connection]
Sgeo_ has joined #racket
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #racket
Sgeo has quit [Ping timeout: 268 seconds]
mfiano has quit [Ping timeout: 240 seconds]