samth changed the topic of #racket to: Racket v7.8 has been released: https://blog.racket-lang.org/2020/08/racket-v7-8.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
ym555 has joined #racket
ym555 has quit [Client Quit]
rgherdt has quit [Ping timeout: 246 seconds]
ym555 has joined #racket
ym555 has quit [Client Quit]
notzmv has quit [Read error: Connection reset by peer]
notzmv has joined #racket
alanz has quit [Ping timeout: 258 seconds]
zv has quit [Ping timeout: 260 seconds]
alanz has joined #racket
Fare has quit [Ping timeout: 260 seconds]
aeth has quit [Ping timeout: 240 seconds]
urek__ has quit [Quit: urek__]
aeth has joined #racket
ermo has quit [*.net *.split]
tonyg has quit [*.net *.split]
rubic88 has quit [*.net *.split]
lavaflow has quit [*.net *.split]
zv has joined #racket
aidalgol_ is now known as aidalgol
ephemera_ has quit [Quit: No Ping reply in 180 seconds.]
dustyweb has quit [Ping timeout: 260 seconds]
ephemera_ has joined #racket
rubic88 has joined #racket
tonyg has joined #racket
lavaflow has joined #racket
ermo has joined #racket
skapata has joined #racket
skapata has quit [Ping timeout: 272 seconds]
zv has quit [Ping timeout: 240 seconds]
acarrico has quit [Ping timeout: 240 seconds]
FreeFull has quit []
sagax has joined #racket
<samth> willghatch: my initial feeling about extenor is that it addresses all my concerns with structs currently, but is a bigger step from structs than what I think I'm looking for, although I of course haven't tried working with it. Things I want from structs: functional update, including nested, short syntax for field access, runtime reflection on field names, nice ways of doing multiple functional updates at once. both otherwise mostly keeping structs the
<samth> way they are.
dustyweb has joined #racket
Fare has joined #racket
mzan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mzan has joined #racket
caente has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 246 seconds]
narimiran has joined #racket
dbmikus has joined #racket
dbmikus has quit [Ping timeout: 272 seconds]
andreyorst has joined #racket
Fare has quit [Ping timeout: 260 seconds]
phillbush has quit [Remote host closed the connection]
phillbush has joined #racket
Lowl3v3l has quit [Remote host closed the connection]
YuGiOhJCJ has joined #racket
fanta1 has joined #racket
_whitelogger has joined #racket
andreyorst has quit [Ping timeout: 265 seconds]
andreyorst` has joined #racket
andreyorst` has joined #racket
_whitelogger has joined #racket
phillbush has quit [Remote host closed the connection]
rgherdt has joined #racket
_whitelogger has joined #racket
Sgeo has quit [Read error: Connection reset by peer]
Lowl3v3l has joined #racket
fredmanglis has joined #racket
fredmanglis has quit [Ping timeout: 272 seconds]
jboy has quit [Remote host closed the connection]
jboy has joined #racket
srandon111 has joined #racket
<srandon111> hello all, is there a way to create a standalone statically-linked executable from a racket program?
<nperez_> but I'm just starting to learn, so other people might have better resources. I had your question recently and found it there in the racket guide
<dzoe> srandon111: as nperez_ says - generally speaking, `raco exe' is your friend (but definitely read the docs - some of the platform-dependent options can make your life easier, if you know about them).
<nperez_> dzoe, and there is the matter of how the platform racket bin is compiled (statically/dynamically), correct?
<srandon111> nperez_, i read the doc and i tried raco exe --embed-dlls --orig-exe cat_animation.rkt
<srandon111> but the thing is that when i try to execute on another machine, it complains about not finding the image of the cat
<srandon111> how can i embed the image wihtin the executable ???
<nperez_> Oh wow, no clue. My understanding of the process is very rudimentary: basically it glues your source file together with the platform bin
<nperez_> I don't know how much influence you have over that process
<srandon111> nperez_, okok
<nperez_> But for a dumb idea: you could base64 encode the image directly into a source file
phillbush has joined #racket
<srandon111> nperez_, yes this is a workaround i know, but still i would like more to understand how to embed these files into the exe
narimiran has quit [Ping timeout: 260 seconds]
narimiran has joined #racket
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #racket
acarrico has joined #racket
aeth_ has joined #racket
aeth has quit [Disconnected by services]
aeth_ is now known as aeth
notzmv has quit [Ping timeout: 268 seconds]
<dzoe> nperez_: --orig-exe should do the trick, also --gui if you plan on using the gui and if you use gui dynamically than ++lib racket/gui might be needed.
endformationage has joined #racket
<srandon111> dzoe, i don't understand how to use embedding.rkt
<srandon111> dzoe, what should i do ?
notzmv has joined #racket
Lowl3v3l has quit [Ping timeout: 260 seconds]
<srandon111> make-immutable-hash: this function is not defined
Sgeo has joined #racket
<srandon111> dzoe, are you there?
Lowl3v3l has joined #racket
<srandon111> dzoe, nperez_ basically my problem is tht the function i am using place-image from the standard library, requires a path... how can i solve this?
<bremner> srandon111: it sounds like you are looking for some kind of "installer". The closest is probably a package, installed with raco pkg install, but that won't be a standalone exe
<bremner> I don't know of a racket tool to bundle files into a standalone installer.
<srandon111> bremner, no no i want a standalone executable
<srandon111> not installer
<srandon111> a single exe file
<bremner> that sounds difficult to achieve, at least for code that loads "resources" from the file system. You could make a "prelude" that writes files into the right place, or not read files.
orivej has joined #racket
nebunez has joined #racket
<dzoe> srandon111: it is not intended for direct usage if you do not know how it works - it is an example of how to do embedding.
<dzoe> srandon111: roughly speaking, it reads certain files during syntax stage and provides them as byte strings for runtime
<dzoe> I have to look how place-image works - never seen this one.
<dzoe> srandon111: are you using htdp language?
<dzoe> I am using racket/draw to load bitmaps (which is easy from byte strings)
caente has joined #racket
aeth has quit [Ping timeout: 260 seconds]
aeth has joined #racket
andreyorst` has quit [Quit: andreyorst`]
<srandon111> dzoe, yes
<srandon111> dzoe, i am using place-image
<srandon111> and would like to understand if there is a workaround so that i can pass those bytes to place-image
dbmikus has joined #racket
Steeve has joined #racket
dbmikus has quit [Ping timeout: 256 seconds]
aeth_ has joined #racket
aeth has quit [Disconnected by services]
aeth_ is now known as aeth
<samth> srandon111: you probably want `raco distribute`
<samth> but that does not create a single file where files that you depend on at runtime are included in the executable (I don't know of any language that has a tool like that)
<samth> srandon111: if you want to include the contents of an image in your file, you can use `color-list->image`
<samth> srandon111: you might also be interested in https://docs.racket-lang.org/images/Embedding_Bitmaps_in_Compiled_Files.html?q=static-bit#%28form._%28%28lib._images%2Fcompile-time..rkt%29._compiled-bitmap%29%29
davidl has quit [Quit: WeeChat 2.9]
aeth has quit [Ping timeout: 246 seconds]
aeth has joined #racket
dbmikus has joined #racket
sm2n_ has joined #racket
sm2n has quit [Remote host closed the connection]
zv has joined #racket
andreyorst has joined #racket
aeth_ has joined #racket
aeth has quit [Disconnected by services]
aeth_ is now known as aeth
erkin has quit [Ping timeout: 264 seconds]
`micro has quit [Ping timeout: 264 seconds]
kawzeg has quit [Ping timeout: 264 seconds]
erkin has joined #racket
`micro has joined #racket
kawzeg has joined #racket
erkin has quit [Quit: Ouch! Got SIGIRL, dying...]
erkin has joined #racket
dbmikus has quit [Quit: WeeChat 2.9]
nullcone has joined #racket
rj has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
zv has quit [Ping timeout: 260 seconds]
zv has joined #racket
phillbush has quit [Remote host closed the connection]
andreyorst has quit [Ping timeout: 264 seconds]
caente has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
caente has joined #racket
rj has quit [Ping timeout: 240 seconds]
narimiran has quit [Ping timeout: 240 seconds]
juanfra has quit [Ping timeout: 256 seconds]
juanfra has joined #racket
phillbush has joined #racket
fredmanglis has joined #racket
rj has joined #racket
rj has quit [Ping timeout: 240 seconds]
phillbush has quit [Quit: Leaving]
rj has joined #racket
rj has quit [Quit: WeeChat 2.5]
fredmanglis has quit [Ping timeout: 246 seconds]
englishm has quit [Ping timeout: 264 seconds]
Steeve has quit [Quit: end]
Lowl3v3l has quit [Read error: Connection reset by peer]
Lowl3v3l has joined #racket
rgherdt has quit [Ping timeout: 272 seconds]
phillbush has joined #racket
<nperez_> samth, "(I don't know of any language that has a tool like that)" .NET stuff does. Super easy to embed/access a resource inside the executable