ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
taupiqueur has quit [Ping timeout: 256 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 250 seconds]
dostoyevsky2 has quit [Quit: leaving]
dostoyevsky2 has joined #crystal-lang
ur5us has joined #crystal-lang
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 252 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 268 seconds]
taupiqueur has joined #crystal-lang
ur5us has quit [Ping timeout: 252 seconds]
taupiqueur has quit [Ping timeout: 268 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 256 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 252 seconds]
petoem has quit [Quit: Client limit exceeded: 20000]
f1refly has quit [Quit: see ya in hell]
taupiqueur has joined #crystal-lang
f1refly has joined #crystal-lang
notzmv has quit [Ping timeout: 252 seconds]
taupiqueur has quit [Ping timeout: 240 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 250 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 256 seconds]
_whitelogger has joined #crystal-lang
<f1refly> when I have an array with a union type, what's the best way to filter one of the types to that only one remains in a way the compiler acknowledges it?
<f1refly> It can't just do ['a', 5].filter(&.is_a? Char).sum, that won't compile
hightower2 has quit [Ping timeout: 240 seconds]
notzmv has joined #crystal-lang
taupiqueur has joined #crystal-lang
<FromGitter> <HertzDevil> `['a', 5].select(Int32).sum`
hightower2 has joined #crystal-lang
szutt has joined #crystal-lang
szutt has quit [Quit: Client closed]
taupiqueur_ has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 268 seconds]
hightower3 has quit [Ping timeout: 240 seconds]
taupiqueur_ has quit [Ping timeout: 268 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 250 seconds]
taupiqueur has joined #crystal-lang
<FromGitter> <jrei:matrix.org> oprypin (https://matrix.to/#/@oprypin:matrix.org): what does it bring to self-request a review in GitHub?
ur5us has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
<FromGitter> <oprypin:matrix.org> j8r (https://matrix.to/#/@jrei:matrix.org): for me a good bookmark list, for others i show that I'll probably get to reviewing it soon
<FromGitter> <mehmethankut_twitter> hi, can I get cpu/memory etc. usages of the current server in crystal?
<FromGitter> <mehmethankut_twitter> I can read /proc/loadavg but I wonder if there is a crystal way
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 252 seconds]
<FromGitter> <jrei:matrix.org> You could use bindings to Linux C functions like this one: https://linux.die.net/man/2/sysinfo
<FromGitter> <mehmethankut_twitter> thanks
<FromGitter> <jrei:matrix.org> Also there is this library already made https://github.com/crystal-community/hardware
<FromGitter> <jrei:matrix.org> It does as you said, parsing /proc files
<FromGitter> <mehmethankut_twitter> I think it is an opportunity to learn C bindings, so I will choose binding option
notzmv has quit [Ping timeout: 260 seconds]
taupiqueur has quit [Ping timeout: 256 seconds]
notzmv has joined #crystal-lang
SamantazFox_ has quit [Ping timeout: 256 seconds]