matthewmcgarvey14
2022-3-12 15:46:25

@matthewmcgarvey14 has joined the channel


spdegabrielle
2022-3-12 18:17:04

Can you give an example?


chansey97
2022-3-12 19:19:25

I’ve found that many Racket libraries more like #lang racket/base (require racket/list) (require ...) than #lang racket Why? Is there any benefit of using racket/base ?


sorawee
2022-3-12 19:20:23

Better start up time


sorawee
2022-3-12 19:20:46

Try time racket a.rkt (your first program) vs time racket b.rkt (your second program)


chansey97
2022-3-12 19:21:06

Thanks!


chansey97
2022-3-12 19:24:30

I just tried: $ time racket racket.rkt real 0m0.523s user 0m0.000s sys 0m0.000s $ time racket racket-base.rkt real 0m0.212s user 0m0.015s sys 0m0.000s You are right :+1:


badkins
2022-3-12 20:06:44

In addition to better start up time, I find it useful to get a clearer idea of dependencies, so having explicit require statements is informative.


bsilverstrim
2022-3-12 20:24:15

Ooh! I think I found a description of what I’m trying to ask about for Racket. Well, it’s the description, it doesn’t really help with the question of if/how Racket could do it.



bsilverstrim
2022-3-12 20:24:51