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
acarrico has joined #racket
pera has quit [Ping timeout: 272 seconds]
hc027 has joined #racket
<hc027> Hi, I am curious if it is possible to tell racket's JIT compiler NOT to optimize my code
<hc027> According to the docs (https://docs.racket-lang.org/guide/performance.html) Racket performs a variety of optimizations, but I'd like to tell it not to
<hc027> I love Racket and don't understand why it isn't more loved
<hc027> Please get more people to use Racket so this place can be as amazing as #python
<hc027> ty
hc027 has quit [Quit: leaving]
<nisstyre> why would someone not want their code to be optimized is a bit confusing to me, unless they were looking to try and analyze the generated code
<nisstyre> you can precompile Racket executables which I think reduces the start up time by quite a lot
<nisstyre> anyway he left so I guess I'll never know
pera has joined #racket
pera has quit [Ping timeout: 268 seconds]
ziyourenxiang has joined #racket
<lf94> lol
hjek has quit [Quit: Leaving.]
ng0 has quit [Quit: Alexa, when is the end of world?]
hugo has quit [Ping timeout: 245 seconds]
pie___ has quit [Remote host closed the connection]
pie___ has joined #racket
pie___ has quit [Remote host closed the connection]
pie___ has joined #racket
ubLIX has quit [Quit: ubLIX]
lockywolf has joined #racket
acarrico has quit [Ping timeout: 250 seconds]
ubLIX has joined #racket
ubLIX has quit [Remote host closed the connection]
jao has quit [Remote host closed the connection]
jao has joined #racket
pera has joined #racket
dddddd has quit [Remote host closed the connection]
tennix has joined #racket
pera has quit [Ping timeout: 246 seconds]
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 268 seconds]
rnmhdn has joined #racket
pera has joined #racket
lockywolf_ has quit [Ping timeout: 268 seconds]
jao has quit [Ping timeout: 250 seconds]
rnmhdn has quit [Ping timeout: 240 seconds]
g00s has quit [Quit: Textual IRC Client: www.textualapp.com]
groovy2shoes has joined #racket
orivej has joined #racket
tennix has quit [Quit: WeeChat 2.2]
Diagon has joined #racket
pera has quit [Ping timeout: 250 seconds]
Lowl3v3l has joined #racket
pera has joined #racket
Diagon has quit [Quit: Leaving]
sauvin has joined #racket
DGASAU has joined #racket
DGASAU has quit [Ping timeout: 268 seconds]
pera has quit [Ping timeout: 268 seconds]
gour has joined #racket
DGASAU has joined #racket
rnmhdn has joined #racket
DGASAU has quit [Ping timeout: 268 seconds]
jcowan has quit [Quit: Connection closed for inactivity]
buyfn has joined #racket
_whitelogger has joined #racket
DGASAU has joined #racket
buyfn has quit [Quit: buyfn]
pie___ has quit [Remote host closed the connection]
pie___ has joined #racket
rnmhdn has quit [Ping timeout: 240 seconds]
icantc has quit [Ping timeout: 240 seconds]
pierpal has quit [Read error: Connection reset by peer]
mzan has joined #racket
rnmhdn has joined #racket
rnmhdn has quit [Ping timeout: 250 seconds]
dan_f has quit [Quit: dan_f]
ng0 has joined #racket
rnmhdn has joined #racket
rnmhdn has quit [Ping timeout: 268 seconds]
h11 has left #racket [#racket]
dddddd has joined #racket
rnmhdn has joined #racket
iyzsong has joined #racket
pierpal has joined #racket
X-Scale has joined #racket
bremner is now known as _bremner
_bremner is now known as bremner
bremner is now known as _jwilk
_jwilk is now known as bremner
hjek has joined #racket
pierpal has quit [Quit: Poof]
pierpal has joined #racket
orivej has quit [Ping timeout: 250 seconds]
jcowan has joined #racket
gour has quit [Read error: Connection reset by peer]
pierpal has quit [Read error: Connection reset by peer]
gour has joined #racket
pierpal has joined #racket
hjek has quit [Quit: Leaving.]
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #racket
pie__ has joined #racket
pie___ has quit [Remote host closed the connection]
pierpal has quit [Ping timeout: 240 seconds]
confusedwanderer has joined #racket
nolanv has joined #racket
lockywolf has joined #racket
gour_ has joined #racket
gour has quit [Ping timeout: 250 seconds]
gour_ is now known as gour
pierpal has joined #racket
pierpal has quit [Quit: Poof]
pierpal has joined #racket
jao has joined #racket
rnmhdn has quit [Ping timeout: 250 seconds]
lockywolf has quit [Ping timeout: 246 seconds]
rnmhdn has joined #racket
orivej has joined #racket
orivej has quit [Ping timeout: 240 seconds]
iyzsong has quit [Ping timeout: 250 seconds]
Lowl3v3l has quit [Remote host closed the connection]
rnmhdn has quit [Ping timeout: 250 seconds]
mzan has quit [Read error: Connection reset by peer]
lockywolf has joined #racket
orivej has joined #racket
pera has joined #racket
gnugnugnu has joined #racket
sleepnap has joined #racket
lockywolf_ has joined #racket
YuGiOhJCJ has joined #racket
lockywolf has quit [Ping timeout: 268 seconds]
gnugnugnu has quit [Quit: WeeChat 2.3]
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 250 seconds]
buyfn has joined #racket
rnmhdn has joined #racket
dan_f has joined #racket
ziyourenxiang has quit [Ping timeout: 246 seconds]
lockywolf__ has quit [Remote host closed the connection]
lockywolf__ has joined #racket
pierpal has quit [Ping timeout: 250 seconds]
tcsc has quit [Remote host closed the connection]
pie__ has quit [Remote host closed the connection]
pie__ has joined #racket
tcsc has joined #racket
buyfn has quit [Quit: buyfn]
orivej has quit [Ping timeout: 246 seconds]
buyfn has joined #racket
<lf94> Is Racket's syntax large?
<lf94> If not: has there been an attempt at the smallest Racket interpreter?
<bremner> lf94: racket prides itself on having a "batteries included" standard library. So it's not just syntax.
rnmhdn has quit [Ping timeout: 246 seconds]
<lf94> bremner, the library is created from the basic blocks of the language yes?
<lf94> Even (if), etc
<bremner> more or less, yes.
pierpal has joined #racket
<bremner> but large codebase tends to to break simplifying assumptions
DGASAU has quit [Ping timeout: 268 seconds]
orivej has joined #racket
pierpal has quit [Ping timeout: 246 seconds]
Yaargh has joined #racket
acarrico has joined #racket
fmnt has joined #racket
buyfn has quit [Quit: buyfn]
pera has quit [Ping timeout: 250 seconds]
confusedwanderer has quit [Quit: confusedwanderer]
pera has joined #racket
ubLIX has joined #racket
mzan has joined #racket
orivej has quit [Ping timeout: 268 seconds]
gour has quit [Remote host closed the connection]
fmnt has left #racket [#racket]
mzan has left #racket [#racket]
ZombieChicken has joined #racket
AnimalClatter has joined #racket
<AnimalClatter> Hello! Beginner question: is it conventional for professional Racketeers to develop in DrRacket? Am I barking up the wrong tree if I work through tutorials loading scripts in a terminal repl?
<AnimalClatter> (That is, enter! -ing them)
_whitelogger has joined #racket
endformationage has joined #racket
<lexi-lambda> AnimalClatter: I speak with no authority, but I believe most Racket programmers either use DrRacket or racket-mode for emacs, though I can’t say what percentage uses each.
Habib has joined #racket
<AnimalClatter> Thanks lexi-lambda. I'm an Emacs user myself so I'll look there. Something SLIME-like would be pretty nice. Thank you.
<Habib> Hey, looking for a bit of help here. I'm doing some light Racket reading and I'm trying to set up a keybinding in my editor to enter the namespace of my current file in a REPL. I do this by sending a racket -e '(enter! "current-file.rkt")' -i command, but even though I can evaluate something, it doesn't seem to stick around in the REPL session.
<Habib> How can I launch a Racket REPL with something already evaluated (to set up state)?
<lexi-lambda> I don’t really understand… can you put the setup code in current-file.rkt? Or do you mean something else?
<Habib> That's what I'm doing. So, for example, I have a file like this
<Habib> #lang racket
<Habib> (define lower 1)
<Habib> (define upper 100)
<Habib> (define (guess) (quotient (+ lower upper) 2))
<Habib> and I want to run the REPL with (enter! "guess-my-number.rkt") already evaluated.
<Habib> So that I can do (guess) in the REPL and it just works.
<Habib> I can do:
<Habib> nnoremap <leader>r :w \| !racket -e '(println "'%'")' -i<cr>
<Habib> and it prints the current file before loading the REPL, so the evaluation is definitely happening.
<Habib> but if I do
<Habib> nnoremap <leader>r :w \| !racket -e '(enter\! "'%'")' -i<cr>
<Habib> It just fails.
<Habib> and it doesn't seem to be the fault of the escaped ! either in enter!, because I can't do it on the command line either, where I don't have to escape the !.
<Habib> As soon as I'm in the REPL, though, I can manually do an (enter! "file.rkt")
<lexi-lambda> I don’t know exactly why that doesn’t work, but I do get the same behavior you describe.
<Habib> racket -e '(define abc "Test")' -i doesn't keep abc around either. It looks like any state left over from evaluated expressions doesn't get carried over into the REPL, like they're two different running sessions.
<lexi-lambda> It does appear that way.
<AnimalClatter> Ha - Habib and I are doing the same thing at the same time.
<Habib> You're reading Realm of Racket, too? :)
<AnimalClatter> Yep :)
<AnimalClatter> And I also came here, ten minutes ago, to ask about loading code into a repl
<Habib> Ha ha.
<AnimalClatter> Good luck :)
<Habib> Looks like there's no answer, unfortunately :(.
<Habib> I don't know if you saw the conversation I had with lexi-lambda.
<AnimalClatter> Yep
<AnimalClatter> I could solve your problem in Elixir, but not in Racket
<Habib> I guess this is a bug. It's unexpected behaviour, and it's certainly inconvenient to not be able to eval code into a REPL before it loads.
<lexi-lambda> I don’t think it’s a bug, but it does seem like maybe a misfeature.
<Habib> Yeah, I guess it's not a bug exactly, it's just unexpected.
AnimalClatter has left #racket ["ERC (IRC client for Emacs 26.1)"]
<lexi-lambda> Habib: You might be able to get around it by doing something like `racket -e '(let ([racketrc-path (expand-user-path "~/.racketrc")]) (and (file-exists? racketrc-path) (load racketrc-path)) (void)) (enter! "current-file.rkt") (read-eval-print-loop)'`.
<lexi-lambda> But that’s kind of a hacky solution, and I don’t know if it would do the right thing in general.
<Habib> Ooh, that's a moutful.
<Habib> let me try it
<Habib> Doesn't work, sadly :(
<Habib> The REPL loads, but still doesn't seem to carry state across.
<Habib> which is weird, because i guess the REPL is coming from that (read-eval-print-loop) call, which seems to be part of the same session.
<Habib> or looks like it should be.
<lexi-lambda> I’m a little surprised… I guess read-eval-print-loop installs its own namespace.
<lexi-lambda> I think it must actually have something to do with `enter!`, since `read-eval-print-loop` does not install its own namespace, and if you do `(define x 3)`, then evaluate `x`, you get `3`!
<Habib> yep, I get that result. racket -e '(define x 3) (read-eval-print-loop)' gives me a repl with x defined as 3.
<Habib> weird.
<lexi-lambda> You don’t even have to do the explicit `(read-eval-print-loop)` call, you can do `racket -e '(define x 3)' -i` and it still works.
<Habib> Huh. Even weirder.
<Habib> if i get rid of the #lang racket line, it's possible to do a racket -if file.rkt, but that's apparently a bad idea (and i think the #lang declaration is good practice).
<lexi-lambda> Yes, I don’t think you should do that, but I’m quite confused, indeed. Maybe try asking on the mailing list; you’ll likely get a better answer there.
<Habib> Thanks for your help, lexi-lambda. I think I'll try asking on the list tomorrow.
Habib has left #racket [#racket]
Yaargh has quit [Read error: Connection reset by peer]
gabot has quit [Ping timeout: 246 seconds]
gabot has joined #racket
sleepnap has left #racket [#racket]
YuGiOhJCJ has quit [Remote host closed the connection]
YuGiOhJCJ has joined #racket