keep_learning_M has quit [Quit: This computer has gone to sleep]
notzmv has joined #racket
vraid has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 264 seconds]
acarrico has quit [Ping timeout: 268 seconds]
wingsorc has quit [Quit: Leaving]
Sgeo_ has joined #racket
Sgeo has quit [Ping timeout: 245 seconds]
jao has quit [Ping timeout: 244 seconds]
dddddd has quit [Remote host closed the connection]
endobson_ has joined #racket
endobson has quit [Ping timeout: 258 seconds]
BSLANG has quit [Quit: %Good bye!%]
BSLANG has joined #racket
ZombieChicken has joined #racket
Sgeo_ has quit [Read error: Connection reset by peer]
englishm has quit [Excess Flood]
englishm has joined #racket
Sgeo_ has joined #racket
Arcaelyx has quit [Ping timeout: 245 seconds]
BSLANG has quit [Quit: %Good bye!%]
endobson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
englishm has quit [Excess Flood]
englishm has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
clacke_movim has left #racket [#racket]
clacke_movim has joined #racket
sagax has joined #racket
endobson has joined #racket
Jeanne-Kamikaze has quit [Quit: Leaving]
_whitelogger has joined #racket
keep_learning_M has joined #racket
orivej has joined #racket
endformationage has quit [Ping timeout: 272 seconds]
clacke_movim has left #racket [#racket]
orivej has quit [Ping timeout: 248 seconds]
clacke_movim has joined #racket
clacke_movim has left #racket [#racket]
clacke_movim has joined #racket
miskatonic has joined #racket
GoldRin has quit [Read error: Connection reset by peer]
<lavaflow>
The effect of these two queries is different, and I don't understand why:
<lavaflow>
(query-exec (sqldb-param) "UPDATE OR IGNORE TagCardinalities SET cardinality = cardinality + $3 WHERE a=min($1,$2) and b=max($1,$2)" 494 1822 1)
<lavaflow>
(query-exec (sqldb-param) "UPDATE OR IGNORE TagCardinalities SET cardinality = cardinality + 1 WHERE a=min(494,1822) and b=max(494,1822)")
<lavaflow>
As far as I understand, they should be making the same change to the db, but I see the first update making changes to rows that seem unrelated
<lavaflow>
it seems like either there is something screwy in the racket db library, or in sqlite, or my understanding of how this works is flawed.
ermo has joined #racket
<lavaflow>
for now, swapping out the $[digit] notation with the ? notation and repeated arguments gives me the expected behavior. but now I'm twice as curious about what's going on here.
Sgeo__ has joined #racket
Sgeo_ has quit [Ping timeout: 268 seconds]
orivej has joined #racket
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 245 seconds]
vraid has joined #racket
ZombieChicken has quit [Ping timeout: 272 seconds]
ZombieChicken has joined #racket
keep_learning_M has quit [Quit: This computer has gone to sleep]
FreeFull has quit []
zipper has joined #racket
orivej has joined #racket
efm has quit [Ping timeout: 272 seconds]
efm has joined #racket
dharog has joined #racket
Lowl3v3l has quit [Quit: Leaving.]
dddddd has joined #racket
dharog has quit [Ping timeout: 245 seconds]
miskatonic has quit [Remote host closed the connection]
<m1dnight_>
I'm trying to do this, but it refers to the second definition of apply in the first line, instead of the built-in one.
<m1dnight_>
(I'm porting some R5RS code)
acarrico has joined #racket
<vraid>
m1dnight_: defines in a module behave similarly to letrec afaik, in that they can all access eachother
<vraid>
since apply will be shadowed in the entire module, you could define old-apply in a separate module
Sgeo__ has quit [Read error: Connection reset by peer]
Sgeo__ has joined #racket
<J_Arcane>
anyone here know Megaparsack?
zipper has joined #racket
<J_Arcane>
Am experiencing unexpected behavior in integer/p and want to make sure I'm not just misunderstanding something before filing an issue
jao has joined #racket
zipper has quit [Ping timeout: 246 seconds]
zipper has joined #racket
jao has quit [Ping timeout: 246 seconds]
dustyweb has joined #racket
Lowl3v3l has joined #racket
efm has quit [Quit: Konversation terminated!]
zipper has quit [Quit: WeeChat 2.5]
efm has joined #racket
GoldRin has joined #racket
manualcrank has joined #racket
dustyweb has quit [Ping timeout: 244 seconds]
Arcaelyx has joined #racket
<lexi-lambda>
J_Arcane: feel free to ask
<J_Arcane>
lexi-lambda: so I have this problem with the integer/p parser. Writing a JSON parser, and my number handling has some weird cases because it turns out integer/p doesn't fail if there's extra characters on the end?
<J_Arcane>
ie `(parse-string integer/p "345dave")` just happily returns "354"
<J_Arcane>
*345
<J_Arcane>
and actually, I have the same problem even doing something like `(many+/p digit/p)`, so I'm wondering if I'm just not understanding how `many+/p` is supposed to work
BSLANG has joined #racket
efm has quit [Ping timeout: 245 seconds]
ZombieChicken has quit [Ping timeout: 245 seconds]
<lexi-lambda>
J_Arcane: sure, that’s intentional. integer/p parses an integer from the front of the input stream, nothing more. if you want to parse an integer followed by whitespace, then parse integer/p followed by space/p.
<lexi-lambda>
if you want to make sure the whole string is an integer, parse integer/p followed by eof/p.
<lexi-lambda>
m1dnight_: you want (require (only-in racket/base [apply old-apply]))
<J_Arcane>
lexi-lambda: ahh, OK. I had actually experimented with doing some version that followed it with space/p but it seemed hacky. I follow now though, and I guess I'll have to be more explicit
<lexi-lambda>
megaparsack can’t assume that you want a delimiter after parsing something because it doesn’t know what the delimiter would be
<J_Arcane>
Yah. I guess I was expecting something more like the Haskell parser I'm porting.
<lexi-lambda>
what Haskell parser are you using?
<J_Arcane>
My own, built on top of the mini parser combinator library from the Hutton book
<J_Arcane>
Mostly I just wanted to try something "real-world-ish" to get the hang of the library before I start my real project, which is a parser for a new Heresy syntax