Better HN
topnewbestaskshowjobs
Log inSign up

sschwarzer

1 karma · joined Apr 2, 2023 (3y ago) · 2 submissions

Submissions

comment 2y ago · link · parent

> Startup time is pretty comparable to Python in my experience.

In my experience a "Hello world" program with `#lang racket/base` (precompiled) takes around 150 ms on my computer whereas Python takes about 50 ms.

> Using the racket/base #lang instead of racket makes a big difference too.

My experience has been: As soon as I use `#lang racket/base` with `(require racket/match)` for pattern matching, the startup times are as when using `#lang racket`.

comment 3y ago · link · parent

At least in some cases, you need the options --orig-exe (Posix) or --embed-dlls (Windows) to make the binary standalone. For me that worked for command line programs. The options are described at https://docs.racket-lang.org/raco/exe.html . You can use both options at the same time, regardless of running Posix or Windows.