lexi-lambda changed the topic of #racket to: Racket v7.2 has been released: https://blog.racket-lang.org/2019/01/racket-v7-2.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
sebastianlin has joined #racket
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
<laszlokorte> Windows 10
<laszlokorte> currently I have only this photo of her screen she just sent me: https://static.laszlokorte.de/racket-crash.jpg
<samth> laszlokorte: thanks, that helpful
<samth> do you know what version of Racket she has?
<laszlokorte> I think 7.1 or maybe 7.2
<samth> thanks, and thanks for the bug report
forgottenwizard has quit [Ping timeout: 256 seconds]
<laszlokorte> I just asked her, 7.1
orivej has quit [Ping timeout: 252 seconds]
m455 has joined #racket
<m455> hey there
<m455> I have a question about weird file permission behaviour occurring after editting a file in racket
FreeFull has quit [Remote host closed the connection]
FreeFull has joined #racket
<m455> Seems like people are away haha. I'll post a link to it here. It's really odd to me: https://github.com/m455/rodo/blob/master/README.md#todos
m455 has quit [Quit: m455]
m455 has joined #racket
catonano has quit [Ping timeout: 240 seconds]
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
<lispmacs> i mean, an easy way
gnugnugnu has quit [Quit: WeeChat 2.4]
notnotdan[m] has joined #racket
<friscosam> lispmacs: maybe this https://docs.racket-lang.org/reference/generic-numbers.html?q=float#%28def._%28%28quote._~23~25kernel%29._floating-point-bytes-~3ereal%29%29
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
<s455wang> This might be relevant https://github.com/racket/racket/issues/1654
<m455> i'll check it out quick :p
varigatedvanilla has joined #racket
<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
<amz3> item by item
buyfn has quit [Quit: buyfn]
<rain1> ah let me look up k-combination
<amz3> here is the implementation I have that is NOT lazy https://paste.gnome.org/pibt7kicw
<amz3> oops
<rain1> https://en.wikipedia.org/wiki/Combination#/media/File:Combinations_with_repetition;_5_multichoose_3.svg perhaps this bijection could be useful
<amz3> here is it without acc https://paste.gnome.org/p6ca3gzgq
<rain1> if you could lazy enumerate the right hand column, then use the bijection to emit the k-combinations
selimcan has joined #racket
<amz3> I already tried to read those pages.
<amz3> tx anyway
dddddd has joined #racket
<amz3> I think the page I am looking for is https://en.wikipedia.org/wiki/Combinatorial_number_system
catonano has quit [Quit: catonano]
catonano has joined #racket
<amz3> oh that is great
<rain1> added another way
<amz3> don't bother please, except if you find this fun
<amz3> I am still trying to grasp the problem I have and sometime I ask (pseudo (random)) questions
<amz3> sorry :)
YuGiOhJCJ has joined #racket
<amz3> I think I will randomly choose a k-combination instead of streaming them
_whitelogger has joined #racket
orivej has joined #racket
laszlokorte has joined #racket
laszlokorte has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
jboy has quit [Remote host closed the connection]
jboy has joined #racket
Fare has joined #racket
laszlokorte has joined #racket
buyfn has joined #racket
sagax has joined #racket
juanfra has joined #racket
buyfn has quit [Quit: buyfn]
buyfn has joined #racket
orivej has quit [Ping timeout: 245 seconds]
buyfn has quit [Quit: buyfn]
juanfra has quit [Disconnected by services]
<jboy> Can somebody help me understand this error? What is it that's expected? ; expected: (-> any); given: #<procedure>
buyfn has joined #racket
buyfn has quit [Client Quit]
orivej has joined #racket
<bremner> hmm. sounds weird. Can you show the source in pasterack.org
buyfn has joined #racket
buyfn has quit [Client Quit]
aeth has quit [Ping timeout: 255 seconds]
aeth has joined #racket
buyfn has joined #racket
jao has joined #racket
notzmv is now known as `420
jao has quit [Remote host closed the connection]
BSLANG` has joined #racket
ecraven- has joined #racket
ubLIX has joined #racket
wingo has quit [*.net *.split]
BSLANG has quit [*.net *.split]
Lowl3v3l has quit [*.net *.split]
mfiano has quit [*.net *.split]
ecraven has quit [*.net *.split]
ecraven- is now known as ecraven
laszlokorte has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fare has quit [Ping timeout: 255 seconds]
juanfra has joined #racket
mfiano has joined #racket
<jboy> I just tried but pasterack threw an error after making me classify visual data for google...
Lowl3v3l has joined #racket
<bremner> yuck
<bremner> well, paste.debian.net or your fav paste site then?
buyfn has quit [Quit: buyfn]
<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
widp_ has joined #racket
Arcaelyx has joined #racket
laszlokorte has joined #racket
<amz3> rain1: fwiw, here what I end up with: https://paste.gnome.org/pwquzj0pq
<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.
q9929t has joined #racket
lispmacs has joined #racket
q9929t has quit [Quit: q9929t]
clacke has joined #racket
laszlokorte has quit [Quit: Textual IRC Client: www.textualapp.com]
selimcan has quit [Ping timeout: 246 seconds]
vraid has quit [Quit: Leaving]
ubLIX has quit [Quit: ubLIX]
<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]
amz3 has quit [Quit: WeeChat 2.2]