badkins has quit [Remote host closed the connection]
badkins has joined #racket
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
mizu_no_oto has joined #racket
mizu_no_oto has quit [Excess Flood]
badkins has quit [Ping timeout: 240 seconds]
mizu_no_oto has joined #racket
mizu_no_oto has quit [Client Quit]
aeth has quit [Ping timeout: 256 seconds]
phillbush has joined #racket
aeth has joined #racket
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #racket
phillbush has quit [Quit: Leaving]
aquijoule_ has joined #racket
aquijoule__ has quit [Ping timeout: 240 seconds]
phillbush has joined #racket
caente has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 256 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 272 seconds]
phillbush has quit [Quit: Leaving]
phillbush has joined #racket
phillbush has quit [Quit: Leaving]
aeth has quit [Ping timeout: 240 seconds]
aeth has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 256 seconds]
XorSwap has quit [Remote host closed the connection]
aeth has quit [Ping timeout: 240 seconds]
aeth has joined #racket
Lowl3v3l has joined #racket
evhan has quit [Quit: De IRC non curat rex...]
evhan has joined #racket
rgherdt has joined #racket
wingsorc has quit [Quit: Leaving]
Sgeo has quit [Read error: Connection reset by peer]
badkins has joined #racket
badkins has quit [Ping timeout: 264 seconds]
Vaelatern has quit [Ping timeout: 264 seconds]
rlp10 has joined #racket
orivej has joined #racket
<rlp10>
I have a list of structs which include a field which is a gregor datetime. I can 'write' it to a file, but when I 'read' it back I get an error saying '#<' is bad syntax. What would be the easiest way for me to write my list to a file and back again?
<rlp10>
My thoughts are: (a) maybe there is another function instead of read/write that could do this? (b) maybe I can tell Racket how to read/write gregor datetimes (say by turning them into ISO-8601 strings? or (c) maybe I can change the implementation of my struct so that it is always saved as an ISO-8601 string, but translates it to a gregor datetime when I set or access that field. I'm not sure which option sounds most reasonable.
<rlp10>
Ahh it seems that the first option will work. There are a pair of functions serialize/deserialize in racket/serialize which seem to be able to function with gregor datetimes. The output is a bit wordy, but it works.
jboy has quit [Remote host closed the connection]
NieDzejkob has quit [Remote host closed the connection]
NieDzejkob has joined #racket
jboy has joined #racket
badkins has joined #racket
tilpner has joined #racket
badkins has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
YuGiOhJCJ has joined #racket
dhil has joined #racket
phillbush has joined #racket
rlp10 has quit [Ping timeout: 240 seconds]
aeth has quit [Ping timeout: 264 seconds]
aeth has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 272 seconds]
aquijoule_ has quit [Remote host closed the connection]
aquijoule_ has joined #racket
sagax has quit [Remote host closed the connection]
catonano has joined #racket
sagax has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
caente has joined #racket
Sgeo has joined #racket
aeth has quit [Ping timeout: 256 seconds]
badkins has joined #racket
aeth has joined #racket
badkins has quit [Ping timeout: 256 seconds]
badkins has joined #racket
orivej has joined #racket
tfb has joined #racket
true-grue has joined #racket
Sgeo has quit [Ping timeout: 246 seconds]
nebunez has joined #racket
catonano has quit [Quit: catonano]
cybersyn has quit [Remote host closed the connection]
cybersyn has joined #racket
Sgeo has joined #racket
bitmapper has quit [Quit: Connection closed for inactivity]
ArneBab_ has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
true-grue has quit [Quit: Leaving]
badkins has quit [Ping timeout: 256 seconds]
evhan has quit [Quit: De IRC non curat rex...]
evhan has joined #racket
bitmapper has joined #racket
<samth>
dzoe: I expect asumu will get the PPA up relatively soon; the only issue last time was with propagating a fix
<bremner>
I will lazily let asumu fix things :P
ArneBab_ has quit [Remote host closed the connection]
<bremner>
bummer, the Y combinator chapter from the little schemer doesn't seem to be on Mathias' home page anymore.