sebastianlin has quit [Remote host closed the connection]
sagax has quit [Quit: Konversation terminated!]
laszlokorte has joined #racket
efm has joined #racket
notzmv has joined #racket
<laszlokorte>
Hey there, currently I am teaching racket to a friend of mine and during the past weeks while working with DrRacket it crashes with a stack trace of "copy-file: copy failed [...] errid=2". Afterwards the currently edited file is completely gone even though it has been saved before. Any ideas?
<laszlokorte>
it's really frustrating to lose so many hours of work each time
<samth>
laszlokorte: that sounds very frustrating. what OS is this on, and do you have any more of the stack trace?
<samth>
also, if you can open an issue on github.com/racket/racket/issues that would be super-helpful
efm has quit [Read error: Connection reset by peer]
jao has quit [Remote host closed the connection]
efm has joined #racket
laszloko_ has joined #racket
laszlokorte has quit [Ping timeout: 245 seconds]
gnugnugnu has joined #racket
jao has joined #racket
jao has quit [Remote host closed the connection]
sebastianlin has joined #racket
jao has joined #racket
notnotdan[m] has quit [Ping timeout: 256 seconds]
catonano has joined #racket
<friscosam>
m455: yikes. If you can write a small script that consistently produces that behavior you should open a Github issue.
lispmacs has joined #racket
<lispmacs>
Hi, I have a file filled with 32bit floating point values. I figured out how to read byte strings from a file but am not sure how to convert from byte string to a float
dddddd has quit [Remote host closed the connection]
`micro has quit [Ping timeout: 246 seconds]
`micro has joined #racket
<m455>
friscosam: i'll try to, i've never done anything like that before lol
FreeFull has quit []
<friscosam>
Reporting on the mailing list sometimes works too. I've seen times where a bug like that is reported and the next day Matthew Flatt has made a bugfix
<m455>
Okay cool! I'm not really a tech person, more like a racket hobbyist so i'll try my best lol
<m455>
thanks for the advice!
<s455wang>
m455: have you looked at setting the umask?
<m455>
s455wang: i haven't! (it's really crazy how similar our names are haha)
<s455wang>
haa
<m455>
I'm off to bed now though. i'll leave this open in the morning to check for messages, but i'll have ot close the laptop when i head to class
<m455>
it's similar, but altering the file shouldn't change the permissions as far as i'm aware of. i'll keep this thread in mind though!
aeth has quit [Ping timeout: 245 seconds]
aeth has joined #racket
jao has quit [Ping timeout: 272 seconds]
m455 has left #racket [#racket]
varigatedvanilla has left #racket ["Later Alligator!"]
pera has quit [Ping timeout: 252 seconds]
<lispmacs>
friscosam: thanks
sebastianlin has quit [Ping timeout: 256 seconds]
Fare has quit [Ping timeout: 246 seconds]
<lispmacs>
can I have an input port that takes from stdout of another program?
<lispmacs>
oh, subprocess
vraid has quit [Ping timeout: 252 seconds]
widp_ has joined #racket
pie__ has joined #racket
pie__ has quit [Remote host closed the connection]
pie__ has joined #racket
<aeth>
One of the reasons I prefer lets over defines is precisely because they nest s-expressions. I use paredit, and I think most serious Lispers use some equivalent, if not paredit itself. It just makes refactoring much easier.
<aeth>
(Like with all things Unix, paredit has a few bad defaults that need to be turned off in order to really be nice to use, though.)
pie_ has quit [Ping timeout: 245 seconds]
<aeth>
I didn't bring that up because I don't expect people coming here for help to fully embrace the Lisp lifestyle yet.
<aeth>
That takes time.
<aeth>
defines were easier to pick up coming from Python, though
widp_ has quit [Ping timeout: 246 seconds]
pera has joined #racket
sauvin has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
laszloko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pera has quit [Ping timeout: 272 seconds]
rodlogic_ has joined #racket
cantstanya has quit [Ping timeout: 256 seconds]
clacke has quit [Ping timeout: 255 seconds]
cantstanya has joined #racket
rodlogic has quit [Read error: Connection reset by peer]
juanfra has quit [Remote host closed the connection]
rodlogic_ is now known as rodlogic
endformationage has quit [Ping timeout: 255 seconds]
meepdeew has joined #racket
meepdeew has quit [Remote host closed the connection]
buyfn has joined #racket
Arcaelyx_ has quit [Ping timeout: 245 seconds]
vraid has joined #racket
Falacer has joined #racket
<amz3>
any tips on how to build lazy k-combination procedure?
<rain1>
what is that?
<amz3>
a procedure that generate k-combination of list
<bremner>
that's not really enough to see the problem?
`micro has quit [Ping timeout: 252 seconds]
<jboy>
yeah, sorry... I'm having trouble assembling an SSCCE
<jboy>
with-input-from-string expects a two arguments: a string, and a (-> Any), which I thought would be a procedure returning anything, but that doesn't seem to be the case.
buyfn has joined #racket
<jboy>
I'm just trying to understand what a (-> Any) is.
<vraid>
(-> Any) can be any function that takes no arguments, and returns a value
<jboy>
ah, NO arguments. cheers
`micro has joined #racket
<vraid>
iirc there are two ways to write function type signatures. the first is (a b c -> result), a b and c being parameters
<vraid>
the other is (-> a b c result)
<vraid>
but (-> Any) follows for a function of no arguments in both cases
<amz3>
rain1: I generate random permutations with unranking
<amz3>
rain1: I don't really need the lazy (ordered in some order) sequence.
notnotdan[m] has quit [Ping timeout: 256 seconds]
YuGiOhJCJ has joined #racket
buyfn has quit [Quit: buyfn]
endformationage has joined #racket
lispmacs has quit [Quit: rcirc on GNU Emacs 25.1.1]
YuGiOhJCJ has quit [Remote host closed the connection]
YuGiOhJCJ has joined #racket
longshi has joined #racket
<jboy>
Now I'm stuck on another part of the same function: https://paste.dismail.de/?0906543b2d0b4fcd#nzvHHfo/Ne7Z5+h+9YbNokjsLgAyZ+ZKRFK/AgZfosc= I would like to splice the result of my match (val) into a struct declaration, and I want the match to return the actual struct, not a quoted struct. How do I do that?
sz0 has joined #racket
`420 has quit [Ping timeout: 252 seconds]
longshi has quit [Quit: WeeChat 2.4]
pera has joined #racket
<jboy>
I guess I have to match against every field rather than using a grouping pattern.
<lispmacs>
I am using 'process to pull data from a program that outputs 32-bit floating point values. I can 'read from the input port, but am not clear on how I can pull just four bytes of info
<lispmacs>
can I tell 'read to give me back a byte string, or use some other function to get that?
aeth has quit [Ping timeout: 252 seconds]
aeth has joined #racket
FreeFull has joined #racket
<lispmacs>
oh, read-byte
ZombieChicken has joined #racket
<jcowan>
You can put your 4 bytes in a bytevector and use the functions in (rnrs bytevectors) to convert it into an inexact number.
<lispmacs>
jcowan: thanks! erm, how do I create a bytevector?
<jcowan>
(make-bytevector 4)
<jcowan>
it's in the r6rs base library, I'm not sure what other libs it is in
<lispmacs>
u8-list->bytevector, I think
amz3 has quit [Read error: Connection reset by peer]
amz3 has joined #racket
jao has joined #racket
dan_f has joined #racket
efm has quit [Read error: Connection reset by peer]
jao has quit [Remote host closed the connection]
efm has joined #racket
sauvin has quit [Remote host closed the connection]
jao has joined #racket
orivej has quit [Ping timeout: 268 seconds]
dan_f has quit [Quit: dan_f]
ZombieChicken has quit [Ping timeout: 256 seconds]
ZombieChicken has joined #racket
dan_f has joined #racket
Sgeo has joined #racket
dan_f has quit [Quit: dan_f]
Sgeo_ has quit [Ping timeout: 255 seconds]
dan_f has joined #racket
Sgeo_ has joined #racket
dan_f has quit [Client Quit]
Sgeo has quit [Ping timeout: 252 seconds]
efm has quit [Quit: Konversation terminated!]
dan_f has joined #racket
dddddd has quit [Ping timeout: 246 seconds]
catonano has quit [Quit: catonano]
catonano has joined #racket
dan_f has quit [Quit: dan_f]
dan_f has joined #racket
dan_f has quit [Client Quit]
dan_f has joined #racket
efm has joined #racket
efm has quit [Ping timeout: 246 seconds]
dddddd has joined #racket
<samth>
lispmacs: you may want floating-point-bytes->real and related functions
<samth>
also `read-bytes`
ng0 has joined #racket
<lispmacs>
samth: thx
dan_f has quit [Quit: dan_f]
Falacer has quit [Ping timeout: 272 seconds]
ubLIX has joined #racket
ZombieChicken has quit [Ping timeout: 256 seconds]
pera has quit [Ping timeout: 272 seconds]
pera has joined #racket
orivej has joined #racket
efm has joined #racket
ng0 has quit [Remote host closed the connection]
ng0 has joined #racket
Sgeo__ has joined #racket
efm has quit [Ping timeout: 252 seconds]
Sgeo_ has quit [Ping timeout: 252 seconds]
Fare has joined #racket
_apg has quit [Ping timeout: 244 seconds]
eddof13 has joined #racket
Fare has quit [Ping timeout: 246 seconds]
Fare has joined #racket
DGASAU has quit [Read error: Connection reset by peer]
DGASAU has joined #racket
orivej has quit [Ping timeout: 246 seconds]
DGASAU has quit [Read error: Connection reset by peer]
lispmacs has quit [Quit: rcirc on GNU Emacs 24.5.1]