spdegabrielle
2020-6-19 08:48:41

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)


soegaard2
2020-6-19 08:50:07

The answer is no. The expander just stops when it finds an unbound identifier.


wanpeebaw
2020-6-19 10:06:33

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


aymano.osman
2020-6-19 15:02:08

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
2020-6-19 20:39:22

@edamiani has joined the channel


edamiani
2020-6-19 20:46:22

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?


soegaard2
2020-6-19 20:47:24

samth
2020-6-19 20:47:24

Most likely your installation has some issue with using pre-compiled files. Do you have a command line prompt where you can run Racket?


edamiani
2020-6-19 20:47:46

Yes, exactly.


edamiani
2020-6-19 20:48:17

As a variant, I chose regular.


soegaard2
2020-6-19 20:48:58

Sounds right. Reply to samth he will show you how to test whether it was installed correctly.


edamiani
2020-6-19 20:49:24

Ok, should I send him a direct message?


soegaard2
2020-6-19 20:49:37

No in the thread.


edamiani
2020-6-19 20:50:01

Ah ok, thanks!


edamiani
2020-6-19 20:50:45

Yes, I just added it to the environment variables. What should I do?


samth
2020-6-19 20:51:15

First, can you try running just racket.exe -l racket and tell me how long that takes?


samth
2020-6-19 20:51:24

(or whatever the binary is named for you)


edamiani
2020-6-19 20:52:27

The first time took around 8–10 seconds, the second time was almost instantaneous.


samth
2020-6-19 20:53:32

Ok, so 8–10 seconds is much too long. Can you try running raco.exe setup racket, and then try the previous command again?


edamiani
2020-6-19 20:56:22

Ok, I ran the setup, and this time the previous command ran very fast .


samth
2020-6-19 20:56:51

Ok, try running raco.exe setup (it will take awhile) and then your problems should be fixed.


edamiani
2020-6-19 20:57:40

What is the command doing, exactly? Is it pre-compiling the libraries?


soegaard2
2020-6-19 21:00:09

Yes.


edamiani
2020-6-19 21:00:45

Nice! Should I run it every time I install a new language or module?


samth
2020-6-19 21:01:05

No


samth
2020-6-19 21:01:18

It will happen automatically on installing packages


samth
2020-6-19 21:01:59

Something unfortunate happened when you installed racket that caused the timestamps to be wrong, causing the precompiled files to be ignored


edamiani
2020-6-19 21:03:08

Hmm, ok. I just tested DrRacket and it ran super fast this time, thanks a lot for the support!


samth
2020-6-20 01:33:02

You shouldn’t worry about this, by the way — it’s a pretty common issue with Windows installations