bitmapper has quit [Quit: Connection closed for inactivity]
sagax has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
zenspider has quit [Ping timeout: 250 seconds]
zenspider has joined #racket
orivej has joined #racket
klltkr has quit [Remote host closed the connection]
rekahsoft has quit [Ping timeout: 268 seconds]
Codaraxis__ has joined #racket
Codaraxis_ has quit [Ping timeout: 240 seconds]
brj has quit [Ping timeout: 260 seconds]
brj has joined #racket
fredmanglis has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
endformationage has quit [Ping timeout: 268 seconds]
epony has quit [Remote host closed the connection]
epony has joined #racket
<SrPx>
What is the best way to emulate ADTs (sum types) in Racket, using only Scheme primitives (R6RS)? I'm thinking in using a pair with a symbol representing the constructor on the first element, and a tuple of the fields on the second element. But I wonder if there is a more efficient way?
brj has quit [Ping timeout: 240 seconds]
brj has joined #racket
andrei-n has joined #racket
aeth has quit [Ping timeout: 252 seconds]
aeth has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
rgherdt has joined #racket
badkins has joined #racket
fredmanglis has quit [Ping timeout: 240 seconds]
fredmanglis has joined #racket
badkins has quit [Ping timeout: 252 seconds]
narimiran has joined #racket
orivej has quit [Ping timeout: 268 seconds]
Sgeo has quit [Read error: Connection reset by peer]
narimiran has quit [Quit: leaving]
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
fredmanglis has quit [Ping timeout: 240 seconds]
orivej has joined #racket
fredmanglis has joined #racket
johnjay has quit [Ping timeout: 240 seconds]
<bremner>
SrPx: afaik the usual approach in racket is to use structs. I'm not sure if records in R6RS would be a suitable substitute (or what SRFI9 brings)
johnjay has joined #racket
srandon111 has joined #racket
srandon111 has quit [Remote host closed the connection]
johnjay has quit [Ping timeout: 268 seconds]
johnjay has joined #racket
Codaraxis__ has quit [Remote host closed the connection]
Codaraxis__ has joined #racket
Codaraxis__ has quit [Remote host closed the connection]
Codaraxis__ has joined #racket
brj has quit [Ping timeout: 240 seconds]
brj has joined #racket
badkins has joined #racket
Noisytoot is now known as Noisytoot__
Noisytoot__ is now known as Noisytoot
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
<SrPx>
hmmm
<SrPx>
bremner: I've benchmarked and using a pair with a symbol as the tag, and a vector for the fields, was about 35% faster than records
<SrPx>
is that expected?
notzmv has quit [Read error: Connection reset by peer]
notzmv has joined #racket
notzmv is now known as Guest35219
klltkr has joined #racket
Guest35219 has quit [Remote host closed the connection]
notzmv- has joined #racket
notzmv- is now known as notzmv
<bremner>
dunno. Which records was that, the built-in or srfi9 ? some chatter on stack-overflow suggests the srfi9 ones are better, fwiw