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
<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]
<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`
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