tonyg changed the topic of #racket to: The Racket Programming Language -- https://racket-lang.org/ -- https://gather.town/app/wH1EDG3McffLjrs0/racket-users -- http://pasterack.org -- logged at https://libera.irclog.whitequark.org/racket/ -- This is the right place to ask for help with (Dr)Racket. Remember to wait around for an answer!
szkl has joined #racket
morte has quit [Remote host closed the connection]
morte has joined #racket
thegeekinside has joined #racket
LuxuryMode has quit [Quit: Connection closed for inactivity]
morte has quit [Ping timeout: 240 seconds]
morte has joined #racket
Origin has quit [Ping timeout: 268 seconds]
szkl has quit [Quit: Connection closed for inactivity]
mason has joined #racket
morte has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 240 seconds]
ec has joined #racket
simendsjo has quit [Ping timeout: 265 seconds]
dhil has joined #racket
mange has quit [Remote host closed the connection]
thegeekinside has quit [Ping timeout: 248 seconds]
hrberg has joined #racket
bremner has quit [Quit: Coyote finally caught me]
bremner has joined #racket
mwnaylor has quit [Quit: ERC 5.4.1 (IRC client for GNU Emacs 30.0.50)]
hrberg has quit [Read error: Connection reset by peer]
hrberg has joined #racket
bremner has quit [Ping timeout: 240 seconds]
Zambyte has joined #racket
skapata has joined #racket
bremner has joined #racket
Origin has joined #racket
bremner has quit [Ping timeout: 240 seconds]
morte_ has joined #racket
<Putonlalla> Is there a way to remove the limitation that prevents using `define-macro` from `compatibility/defmacro` with `#lang r5rs`?
<Putonlalla> I just want to generate named definitions, a bit like `struct` does.
<Putonlalla> Anything I try is met with `macro-transformer: only a 'syntax-rules' form is allowed`.
bremner has joined #racket
<Zambyte> Hi, I'm having trouble importing some R7RS code. I have a file in a folder ~/src/ra called ra.rkt (so ~/src/ra/ra.rkt). I have a (define-library (ra) ...) in that file with #lang r7rs. If I run racket -I r7rs -S ~/src/ra and try to (import (ra)) it says collection not found. Anyone know what I may be doing wrong?
<Zambyte> I have the r7rs-racket package successfully installed - I can (import (scheme ...)) libraries just fine
morte_ has quit [Remote host closed the connection]
morte has joined #racket
ec has quit [Ping timeout: 240 seconds]
ec has joined #racket
parnikkapore has joined #racket
Origin has quit [Ping timeout: 246 seconds]
thegeekinside has joined #racket
<Zambyte> I figured it out. I needed to move ~/src/ra/ra.rkt to ~/src/ra/main.rkt.
morte has quit [Remote host closed the connection]
<Putonlalla> Looks like it's equally impossible to use `define-syntax-parameter` from `racket/stxparam` with `#lang r5rs`.
<Putonlalla> Thus, the examples from SRFI 139 don't work.
pharonix71 has quit [Remote host closed the connection]
pharonix71 has joined #racket
parnikkapore has quit [Quit: Leaving]
morte_ has joined #racket
morte has joined #racket
morte has quit [Ping timeout: 250 seconds]
<samth> Putonlalla: why are you using r5rs?
ns12 has quit [Quit: bye]
ns12 has joined #racket
Tuplanolla has joined #racket
dhil has quit [Ping timeout: 240 seconds]
morte has joined #racket
ec has quit [Ping timeout: 240 seconds]
ec has joined #racket
bremner has quit [Ping timeout: 240 seconds]
bremner has joined #racket
runrin has quit [Ping timeout: 268 seconds]
mwnaylor has joined #racket
<mwnaylor> How difficult is it to write a Racket application with one operating system and cross compile a native executable for another? Use case: coding on 64-bit Linux to run on 64 bit Windows 10. Not possible to install Racket on the Windows system to run as a script.
<samth> mwnaylor: see `raco cross`: https://docs.racket-lang.org/raco-cross/
<mwnaylor> samth: I had seen that briefly. What I am asking is is it a simple process or does it take a lot work to get it right?
<samth> mwnaylor: it should be very simple
morte_ has quit [Remote host closed the connection]
<mwnaylor> samth: I die the simples raco thing to make an executable on my Linux box. A simple "Hello, World" app wound up bing 7+ MB.
<mwnaylor> s/die/did/
<samth> mwnaylor: yes, that's expected
<samth> it includes the racket runtime
<mwnaylor> Can that 7MB be trimmed? I'm more familiar with Clojure. I think there is a tool that will strip out unused classes from an uberjar. Is there something similar for raco?
<samth> mwnaylor: no; that 7MB is more like the JVM itself in the clojure context
<samth> unless your hello world was using more libraries, in which case it's probably just the large number of libraries involved
<samth> but as to raco cross, it's quite easy to use including for cross-compilation but will not reduce the size of binaries
ski has quit [Ping timeout: 250 seconds]
<mwnaylor> I guess it's a matter of perspective. If I wrote 50 tiny apps, the 7Mb for each seem a lot. But, for one really big app, an extra that extra 7Mb really isn't much.
<mwnaylor> samth: Are you familiar w/ Clojure?
<samth> mwnaylor: yes
<mwnaylor> Comparing raco built executables and uberjars, which tends to have the longer start-up times?
<samth> mwnaylor: i don't think i'm familar enough with clojure to estimate that, but it's really going to depend on a lot of details
<samth> neither one is particularly fast to start up, though
<mwnaylor> samth: I get that. If I really want to know, I should write "Hello, World" in both and average, say 10k, runs of each. I figured I'd just toss the question out to see if someone else had already done the heavy lifting.
<samth> #lang racket/base "hello world" is about 200 ms on my machine
<mwnaylor> Where does racket/raco store downloaded modules. I know that lein pulls them into my local .m2 directory. What I'm asking is if package xyz gets downloaded for project A, will it be available without download for project B? I'm often offline with my laptop.
<mwnaylor> no, I have not read the raco documentation yet.
ski has joined #racket
<Tuplanolla> Oh, `only a 'syntax-rules' form is allowed` stems from forgetting to import some pieces `for-syntax`. That's silly!
bremner has quit [Ping timeout: 240 seconds]
bremner has joined #racket
bremner has quit [Ping timeout: 256 seconds]
bremner has joined #racket
morte_ has joined #racket
thegeekinside has quit [Remote host closed the connection]
bremner has quit [Quit: Coyote finally caught me]
bremner has joined #racket
thegeekinside has joined #racket
Tuplanolla has quit [Quit: Leaving.]