<FromGitter>
<basilthesecond_gitlab> this is my code, idk if ti's right, but when I run this, I get an error saying that ``` ⏎ in /usr/share/crystal/src/socket.cr:125: undefined method 'seconds' for String ⏎ ⏎ `````` [https://gitter.im/crystal-lang/crystal?at=5b5be20bcb4d5b036c9fffe9]
<FromGitter>
<basilthesecond_gitlab> i'm not sure if this is a bug or this is me
<Groogy>
is there a clever way to have a map ignore certain results? Like a nil value? Or a method that does similar
<Groogy>
oooh there's compact_map nice
<FromGitter>
<Qwerp-Derp> wait what determines when a new version is to be released?
alex`` has joined #crystal-lang
<Groogy>
probably a bit arbitrary? Don't think they have a specific standard for what constitutes "enough changes to be new release"
<FromGitter>
<Qwerp-Derp> mainly waiting for the new release to be out so i can use all of the new windows stuff
DTZUZO has joined #crystal-lang
<crystal-gh>
[crystal] RX14 closed pull request #6358: Restrict `exp.@var` to types in the same hierarchy (master...feature/6066-restrict-read-ivar-access) https://git.io/fNJnM
<FromGitter>
<Daniel-Worrall> Windows isn't usable but you can always build from master
<FromGitter>
<Daniel-Worrall> The main updates are workable error reporting so that the rest of the port will be smoother
<Groogy>
If I have a FooBar:Class from a generic thing, can I somehow use that as the return type to denote an instance? I.e I want to return an instance of that and not the class
<Groogy>
don't look like you can split a when case over several {% %}?
rohitpaulk has joined #crystal-lang
<FromGitter>
<straight-shoota> macro language doesn't support `case`
<FromGitter>
<straight-shoota> use `if` instead
<Groogy>
I am very happy that I implemented trashman, kept game running for an hour and came back and saw it used +11gb of RAM
<Groogy>
time to investigate
<Groogy>
(It's supposed to only be a couple of mb's as well so I was quite impressed)
<FromGitter>
<delef> @straight-shoota thanks
return0e has quit [Remote host closed the connection]
return0e has joined #crystal-lang
Ven`` has joined #crystal-lang
Groogy has quit [Quit: WeeChat 2.1]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 244 seconds]
Groogy has joined #crystal-lang
<Groogy>
Oh lol when a cache is secretly keeping objects alive
<Groogy>
that was not the intent
ashirase has joined #crystal-lang
ashirase has quit [Client Quit]
ashirase has joined #crystal-lang
<oprypin>
Groogy, mmmmm yes. you may be interested in weakref
ashirase has quit [Client Quit]
ashirase has joined #crystal-lang
ashirase has quit [Client Quit]
ashirase has joined #crystal-lang
<Groogy>
yeah the problem was rather I was not clearing out the data I cached after my weakref returned nil :P
<Groogy>
so it wasn't retaining data to the object in itself, just the cache for drawing stuff
ashirase has quit [Client Quit]
<Groogy>
hmmm though value.nil? seems to never return true
<Groogy>
but if I tell it to just always reset the cache completly there's no issue
ashirase has joined #crystal-lang
<crystal-gh>
[crystal] RX14 closed pull request #6442: Change WinError to get message as UTF16 string (master...jm/winerror-wchar) https://git.io/fNBXd
<Groogy>
it's weird so since the memory usage at all stops growing if I just call clear on cleaning out everything, if I want to selectivly remove them then it doesn't work
<Groogy>
weakptr keeps returning a value... but object obviously gets collected if I just reset everytime instead
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<Prutheus> Converting the hash to string before to_json works, but then the json is malformatted.
<FromGitter>
<Prutheus> ahh it happens cause my hash contains a slice ..
<FromGitter>
<straight-shoota> you need to wrap the `{ ... }.to_json` in parenthesis, otherwise the curly braces are interpreted as a block argument of `puts`
Groogy has quit [Quit: WeeChat 2.2]
Philpax has quit [Ping timeout: 260 seconds]
ma has joined #crystal-lang
<crystal-gh>
[crystal] sdogruyol pushed 1 new commit to master: https://git.io/fNgi3
<crystal-gh>
crystal/master 077920d r00ster: Show line numbers at link when there are filename duplicates in "Defined in:" section (docs) (#6280)
<crystal-gh>
[crystal] sdogruyol pushed 1 new commit to master: https://git.io/fNgi8
<crystal-gh>
crystal/master e8ec7f2 Jacob: Fix Atomic#swap with reference types (#6428)
alex`` has quit [Ping timeout: 240 seconds]
<crystal-gh>
[crystal] sdogruyol closed pull request #6383: Fix version check for LLVM < 6.0 (master...llvm-6.0-support) https://git.io/fNmVI