greengriminal has quit [Quit: This computer has gone to sleep]
minus has left #crystal-lang ["WeeChat 1.9.1"]
greengriminal has joined #crystal-lang
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
<FromGitter>
<jwaldrip> 1) 24.1 tagged? when can we expect an actual release?
<FromGitter>
<faustinoaq> Yeah, I thought Core team was going to relase v0.24.1, Seems a bit weird `v0.24.1` and `0.24.1` tags
<RX14>
we want to switch to v0.24.1 tag naming
<RX14>
but we will have both for a few releases
greengriminal has quit [Quit: Leaving]
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
thews has quit [Ping timeout: 264 seconds]
thews has joined #crystal-lang
thews has quit [Changing host]
thews has joined #crystal-lang
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
astronavt has joined #crystal-lang
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
alex`` has joined #crystal-lang
greengriminal has joined #crystal-lang
astronavt has quit [Remote host closed the connection]
<FromGitter>
<wontruefree> it seems like the interface to random has changed in 0.24.0
<FromGitter>
<wontruefree> looks like Random.random_bytes no longer works
<FromGitter>
<wontruefree> but you can use the underlying classes like Random::PCG32
<FromGitter>
<wontruefree> is that the intended change?
<FromGitter>
<wontruefree> I could not find the explications in the PR
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 272 seconds]
snsei has joined #crystal-lang
<FromGitter>
<marksiemers> @wontruefree - Which version of crystal were you using where `Random.random_bytes` worked?
aroaminggeek[awa is now known as aroaminggeek
<FromGitter>
<wontruefree> well I am looking at the 0.23.1 doc but that is not working now
<FromGitter>
<wontruefree> I am working on a new project
alex`` has quit [Ping timeout: 248 seconds]
<FromGitter>
<marksiemers> Are you looking at `SecureRandom` ?
<FromGitter>
<marksiemers> It changed to `Random::Secure` for 0.24.0
<FromGitter>
<marksiemers> In any case, if you can avoid 0.24.0, you should. It was a weird release. ⏎ Stick with 0.23.1 or use v0.24.1 when it is officially released (should be soon)
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
flaviodesousa has quit [Remote host closed the connection]
robacarp has joined #crystal-lang
alex`` has joined #crystal-lang
snsei has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 265 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
rohitpaulk has joined #crystal-lang
snsei has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
Ven` has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has quit [Ping timeout: 256 seconds]
robacarp has joined #crystal-lang
alex`` has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
Ven` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
Ven` has joined #crystal-lang
Ven` has quit [Client Quit]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 272 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
alex`` has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
Ven` has joined #crystal-lang
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
robacarp has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has quit [Ping timeout: 240 seconds]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
<crystal-gh>
[crystal] jreinert opened pull request #5385: link all included libs statically if compiler is run with --static (master...static-link-attr) https://git.io/vbr4J
robacarp has quit [Read error: Connection reset by peer]
<jokke>
RX14: ^
<jokke>
RX14: i thought you might've forgotten about that one :P
<RX14>
no I just started expanding the PR's scope until I had to leave
<RX14>
lol
<jokke>
:D
<jokke>
think that's ok though? i didn't find any tests for LinkAttribute so i didn't write any new ones either...
<RX14>
also thats probably a bad way to do it
<jokke>
why do you think so?
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
<RX14>
jokke, you're adding a bunch of messy work to get the static flag in there
<RX14>
ignoring the fact that you do all the real work inside Program, where you have flags:
<FromGitter>
<bew> why would you need sth like this?
<Papierkorb>
An empty char doesn't make sense. it's like wanting an empty number
rohitpaulk has joined #crystal-lang
<FromGitter>
<marin117> hi everyone, anybody knows the best way to handle query parameters in kemal ⏎ To be precise what to do if at some point I expect query parameter but I am not sending it in every request
<FromGitter>
<marin117> for example ⏎ username = env .params.query["username"] ⏎ but username will not be set in every request
<RX14>
use ["username"]?
<RX14>
and then you'll get nil if it's not there
<RX14>
instead of an exception
<RX14>
then you can do `if username; <do something with username>`
<FromGitter>
<marin117> oh thank you :) couldn't remember that 😄
rohitpaulk has quit [Ping timeout: 264 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
Ven` has quit [Ping timeout: 272 seconds]
<FromGitter>
<yxhuvud> in other contexts doing something like foo = something_that_can_be_nil || "" may sometimes make sense, but probably not for this case :)
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
<FromGitter>
<marin117> probably :D i belive it is good enough for this context ;)
robacarp has joined #crystal-lang
<jokke>
if you want a dafault value though i'd use env.params.query.fetch("username", "default")
<FromGitter>
<bew> I think @yxhuvud method is prefered, but in the end you do as you like ;)
hightower2 has quit [Ping timeout: 256 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
<crystal-gh>
[crystal] wmoxam opened pull request #5387: Adds mkstemps for OpenBSD (master...add-missing-mkstemps-ref) https://git.io/vbrwB
<FromGitter>
<LuckyChicken91_twitter> is there maybe some "known issue" that you just cant print out special characters like "\n", "\e" etc? At me he is just always printing the "\n" as it is. He is not printing a newline. When I look in the string as .inspect, i see that the "\n" is a "\\n". ⏎ So I tried `.gsub("\\\\", "\\").gsub(%{"}, "")` but this doesnt works. Looks like he is then just again replacing the "\n" with a "\\n"
<FromGitter>
... automaticly. I dont know why
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
<RX14>
no, \n will get you a newline whebn in a string literal
<RX14>
show your code
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
robacarp has joined #crystal-lang
<FromGitter>
<LuckyChicken91_twitter> the code is way too long to show
<FromGitter>
<LuckyChicken91_twitter> i even tried doing to_s
robacarp has quit [Read error: Connection reset by peer]
<RX14>
well, it does work
<RX14>
so you're doing something wrong
<RX14>
if you can't show code then I can't help
<FromGitter>
<LuckyChicken91_twitter> i will try to reproduce!
rohitpaulk has quit [Ping timeout: 268 seconds]
robacarp has joined #crystal-lang
<FromGitter>
<bew> well `print "\n".inspect` will print `"\n"` because for strings, #inspect allows you to see characters as it would be visible in actual code, but if you `print "\n"` it will make a newline
<FromGitter>
<LuckyChicken91_twitter> i know
greengriminal has joined #crystal-lang
robacarp has quit [Quit: robacarp]
sz0 has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<crystal-gh>
[crystal] ysbaddaden closed pull request #5385: link all included libs statically if compiler is run with --static (master...static-link-attr) https://git.io/vbr4J
<crystal-gh>
[crystal] RX14 closed pull request #5385: link all included libs statically if compiler is run with --static (master...static-link-attr) https://git.io/vbr4J
<FromGitter>
<marksiemers> @LuckyChicken91_twitter - If you make the code available in a repo and point to the line number, or provide a gist with the relevant code, we may be able to help.
<FromGitter>
<LuckyChicken91_twitter> i already fixed it. Thanks anyways!
sz0 has quit [Quit: Connection closed for inactivity]
alex`` has quit [Ping timeout: 265 seconds]
rohitpaulk has quit [Ping timeout: 265 seconds]
iamnotarobot has quit [Quit: Page closed]
rohitpaulk has joined #crystal-lang
<FromGitter>
<LuckyChicken91_twitter> are there speed/perfomance differences between @, @@ or normal variables
rohitpaulk has quit [Ping timeout: 255 seconds]
<Papierkorb>
None you should care about
sz0 has joined #crystal-lang
rohitpaulk has joined #crystal-lang
greengriminal has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
<FromGitter>
<LuckyChicken91_twitter> "declaring the type of an instance variable must be done at the class level" ⏎ im actually trying to declare the type in initialize of the class. Whats the "class level"?
sz0 has quit [Ping timeout: 240 seconds]
sz0 has joined #crystal-lang
aroaminggeek has joined #crystal-lang
alex`` has joined #crystal-lang
baweaver is now known as lemur
lemur is now known as baweaver
<oprypin>
LuckyChicken91_twitter, inside a `class` definition but not inside something that's inside a `class` definition (like `def`)
rohitpaulk has quit [Ping timeout: 256 seconds]
aroaminggeek is now known as aroaminggeek[awa
<FromGitter>
<elorest> So tags have been created for v0.24.1 but it hasn't been released yet... Are those tags RC's or the actual release?
aroaminggeek[awa is now known as aroaminggeek
<FromGitter>
<elorest> shards see them regardless so will upgrade to them unless you're locked to 0.23.1
<Papierkorb>
elorest, the CI broke while building the release tarballs or something
<Papierkorb>
but the .1 is the actual release apart from that
<FromGitter>
<elorest> Thanks.
<RX14>
Papierkorb, no we're switching to a new way of creating deb/rpm packages
<RX14>
and a problem was discovered in the new method after we tagged
<RX14>
so it's a bit delayed
<RX14>
its fixed now but noboday wanted to release on a friday...
<RX14>
there's very likely to be a release on monday
<FromGitter>
<unreadable> not sure if the right channel to post it, but gonna give it a try.. when I'm trying to compile with g++ I get an error like `cannot open shared object file`
<FromGitter>
<unreadable> pretty strange cuz I'm using only the std oO
<FromGitter>
<unreadable> the last thing I remember I did to get the issue was something like g++ file.cpp -I /include/ -o app -letc or something like that
<Papierkorb>
##c++
DTZUZO has joined #crystal-lang
<RX14>
"not sure if the right channel"
<RX14>
i mean it's definitely not on-topic
<FromGitter>
<unreadable> Well, I've tried my luck
greengriminal has quit [Quit: This computer has gone to sleep]
<Papierkorb>
You can add the ANSI sequence manually
<RX14>
don't
<RX14>
oh in macros
<RX14>
yeah you're going to have to
<FromGitter>
<paulcsmith> Mm interesting. Yeah I suppose I could do that. Is there a way to DRY things up by calling a macro from a macro? `"something #{red("important"}"` https://play.crystal-lang.org/#/r/38wh It seems not. I think using a `run` macro would probably be overkill for something like this, so I'm hoping there is something more lightweight
<RX14>
yes you can call macros from macros
<RX14>
kinda
<RX14>
but not like that
sotrhraven has joined #crystal-lang
greengriminal has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter>
<paulcsmith> @RX14 how do you do that? I've never been able to figure that out
aroaminggeek is now known as aroaminggeek[awa
<RX14>
you have to make the macro expand to another macro
<RX14>
i.e.
<RX14>
you can call macros outside {{}} {% %}
<RX14>
but not inside
<FromGitter>
<paulcsmith> Oh yeah, I see. I'd need to do it inside for that I think. Thanks though :)
<FromGitter>
<paulcsmith> for that = for colorizing a string literal
<FromGitter>
<unreadable> turned out that my issue was caused by the gnu assembler which can be seen by running `as` in the console oO..reinstalling the `binutils` package solved the issue...
<FromGitter>
<unreadable> but it's unlikely for google to index this chat messages in case someone runs into the same problem..
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
greengriminal has quit [Quit: Leaving]
sotrhraven has quit [Quit: sotrhraven]
<lvmbdv>
Error in modes.cr:3: can't make class 'ModeSet' inherit generic struct 'Set(Char)'
<lvmbdv>
But the docs said you can inherit generic structs when you specify an instance of them :o