<asterite>
By the way, that branch still gives me stack overflow
<asterite>
in the `client` method
<asterite>
The memory corruption happens near JSON::PullParser ?
<jhass>
in this version, yeah
<jhass>
if you keep the rescue below in, the exception there is corrupted instead
<jhass>
can't repro the stack overflow though
<asterite>
Ah, no, my mistake, it was the memory corruption
<asterite>
I will need to reduce it, I'll do it some day with more time. For now, if in Notification.poll I assign the Array(Notification).from_json … to a variable and pp it, it crashes the compiler
<asterite>
so that might have something to do, not sure
waj has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Quit: weskinner_mac]
bcardiff has joined #crystal-lang
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Quit: weskinner_mac]
weskinner_mac has joined #crystal-lang
havenwood has joined #crystal-lang
weskinner_work has joined #crystal-lang
waj has quit [Quit: Leaving.]
waj has joined #crystal-lang
waj has quit [Quit: Leaving.]
ismaelga has joined #crystal-lang
asterite has quit [Quit: Leaving.]
shama has joined #crystal-lang
waj has joined #crystal-lang
ponga has quit [Quit: Leaving...]
asterite has joined #crystal-lang
ponga has joined #crystal-lang
<weskinner_work>
scoring and game over now working in weskinner/crystal-tetris :)
<jhass>
<3
<jhass>
next arrow keys please :P
<weskinner_work>
next switching from weskinner/SDL2-crystal to weskinner/crystal-sdl2 which will fix the arrows :P
<jhass>
lol
<weskinner_work>
in the meantime you can practice your ambidexterity
<jhass>
I just place the right hand on wasd
<weskinner_work>
ha!
<jhass>
but I think I realized now why I was so bad with the Gameboy version
<asterite>
weskinner_work: it's working great here :)
<asterite>
jhass: why?
<ponga>
crystal tetris?
<ponga>
must check out
<jhass>
asterite: because my right hand is significantly better at tetris than my left hand
<ponga>
haha
<ponga>
jhass: black/white GB tetris?
<ponga>
that grey screen
<jhass>
yeah
<jhass>
sadly lost it, no idea where it went :(
<ponga>
we all lose old consoles
<ponga>
wonder where they are all gone
<jhass>
friend of me shopped like 5 broken snes from ebay a few years back and assembled a working one from it <3
<DeBot>
jhass: Error in line 3: undefined method 'null?' for Pointer(Fake::Foo)
<jhass>
huh
<weskinner_work>
that would be useful
<jhass>
I was fairly certain it exists
<jhass>
>> lib Fake; struct Foo; end; end; ptr = Pointer(Fake::Foo).null; if ptr; raise "BAD"; end
<DeBot>
jhass: nil
<jhass>
oh, right
<jhass>
a null pointer is falsey, so unless null_pointer -> unless false -> if true
* jhass
needs some sugar
asterite has joined #crystal-lang
asterite has quit [Client Quit]
ismaelga has joined #crystal-lang
havenwood has quit []
ismaelga has quit [Ping timeout: 250 seconds]
asterite has joined #crystal-lang
asterite has quit [Client Quit]
<weskinner_work>
jhass: got your arrow keys working :P
<jhass>
<3
<jhass>
gotta explain foo &&= bar to a chap, then I'll try
leafybasil has joined #crystal-lang
<ytti>
what's to explain assign if true
<jhass>
I think it helps what it's doing with all the details
<jhass>
to properly understand it
<jhass>
like, why it's doing that
<jhass>
weskinner_work: mmh, might want to add .deps to a .gitignore btw
<weskinner_work>
u right, u right
<jhass>
also I'd decrese the delay for fast down when pressing down :)
ismaelga has joined #crystal-lang
<weskinner_work>
agreed
<weskinner_work>
you can use "SPACE" for insta-drop
<jhass>
ah, neat
<ytti>
tetris is only game where i've gone into zone/flow, what ever you call it, where i don't even conciously understand how i'm able to do what i do
<ytti>
almost like autopilot
<ytti>
and even that was almost two decades ago
<ytti>
in class at hp48g no less
waj has quit [Ping timeout: 272 seconds]
havenwood has joined #crystal-lang
<jhass>
oh, score doesn't reset when you loose :D
ismaelga has quit [Remote host closed the connection]
<weskinner_work>
was worried about that :)
asterite has joined #crystal-lang
<asterite>
weskinner_work: jhass: you can use .nil? for Pointer, but it's true that comparing nil to a null pointer should give a correct result