Hi @aymano.osman this question seemed to get lost in a large extensive discussion yesterday - were you able to resolve the issue? (I’ve moved the discussion to #beginners only because it is a more Q&A channel)
The answer is no. The expander just stops when it finds an unbound identifier.
I suggest you watch the videos in this channel. It has all the fundamentals you need, and nearly identical examples. https://www.youtube.com/channel/UC7dEjIUwSxSNcW4PqNRQW8w
Thanks @spdegabrielle and @soegaard2 for your replies. I think I can work around this issue by bahaving the way DrRacket does (by bailing out of check-syntax if there is an unbound identifier) but I was wondering if there is a more lenient approach.
For instance, is it possible to do something with #%top
in order to do a more lenient expansion and still be able to analyse the file using drracket/check-syntax
? I’m going to explore that.
@edamiani has joined the channel
Hello! I started reading the book Beautiful Racket and, for that, I installed DrRacket on my computer. I was following the very first example that looks like this: #lang br/quicklang
42
Then I hit the Run button and nothing happened… I did it a few times until I realized that the program itself was taking around 10–12 seconds to be compiled and executed. My notebook is a Microsoft Surface 2 and I can run Visual Studio on it without any kind of issues, so I was wondering why DrRacket takes so long to compile and run that example?
Did you use the installer from http://download.racket-lang.org\|download.racket-lang.org ?
Most likely your installation has some issue with using pre-compiled files. Do you have a command line prompt where you can run Racket?
Yes, exactly.
As a variant, I chose regular.
Sounds right. Reply to samth he will show you how to test whether it was installed correctly.
Ok, should I send him a direct message?
No in the thread.
Ah ok, thanks!
Yes, I just added it to the environment variables. What should I do?
First, can you try running just racket.exe -l racket
and tell me how long that takes?
(or whatever the binary is named for you)
The first time took around 8–10 seconds, the second time was almost instantaneous.
Ok, so 8–10 seconds is much too long. Can you try running raco.exe setup racket
, and then try the previous command again?
Ok, I ran the setup, and this time the previous command ran very fast .
Ok, try running raco.exe setup
(it will take awhile) and then your problems should be fixed.
What is the command doing, exactly? Is it pre-compiling the libraries?
Yes.
Nice! Should I run it every time I install a new language or module?
No
It will happen automatically on installing packages
Something unfortunate happened when you installed racket that caused the timestamps to be wrong, causing the precompiled files to be ignored
Hmm, ok. I just tested DrRacket and it ran super fast this time, thanks a lot for the support!
You shouldn’t worry about this, by the way — it’s a pretty common issue with Windows installations