jhass changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.35.1 | 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
deavmi has quit [Ping timeout: 256 seconds]
alexherbo2 has quit [Ping timeout: 256 seconds]
deavmi has joined #crystal-lang
andremedeiros has quit [Quit: ZNC 1.8.1 - https://znc.in]
andremedeiros has joined #crystal-lang
oddp has quit [Ping timeout: 240 seconds]
<FromGitter> <andrewc910> Why are some variables in shards/gems prepended with an underscore? What does it represent? Like `@_broadcast_handlers`. The author of Jennifer also does this quite a bit.
sagax has joined #crystal-lang
Human_G33k has quit [Quit: Leaving]
<FromGitter> <Blacksmoke16> it is/was a common practice in some langs to denote it as private or internal
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
f1refly has joined #crystal-lang
f1reflyylmao has quit [Ping timeout: 272 seconds]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
<FromGitter> <andrewc910> That's what it looked like. Thank you
HumanG33k has quit [Quit: Leaving]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
<FromGitter> <Blacksmoke16> no
<FromGitter> <Blacksmoke16> np
masterdonx2 has joined #crystal-lang
MasterdonX has quit [Ping timeout: 258 seconds]
renich has quit [Quit: renich]
alexherbo2 has joined #crystal-lang
oprypin has quit [Ping timeout: 256 seconds]
rocx has quit [Ping timeout: 256 seconds]
f1refly has quit [Read error: Connection reset by peer]
f1reflyylmao has joined #crystal-lang
_whitelogger has joined #crystal-lang
mjblack has quit [Ping timeout: 240 seconds]
<FromGitter> <confact> Before Kindmetrics I was doing a git hosting service to learn git deep depth but also Crystal and Lucky. Now I have made it open source as I lost a bit of motivation and would love to give it some life again. Would love any help I can get on it :) ⏎ ⏎ https://github.com/microgit-com/microgit
_whitelogger has joined #crystal-lang
oprypin has joined #crystal-lang
oddp has joined #crystal-lang
<FromGitter> <lbarasti> puzzled by the behaviour of OpenSSL::Sha1 ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ which prints two different slices: https://play.crystal-lang.org/#/r/9el2 [https://gitter.im/crystal-lang/crystal?at=5f09a22df6b741628429a355]
<FromGitter> <lbarasti> does this have to do with the fact that SHA1.hash uses `uninitialized UInt8[20]`?https://github.com/crystal-lang/crystal/blob/5999ae29beacf4cfd54e232ca83c1a46b79f26a5/src/openssl/sha1.cr#L10
<FromGitter> <lbarasti> removing `.slice` or adding `.dup` fixes the inconsistency
<oprypin> lbarasti, i think there were isses brought up many many times that `StaticArray#to_slice` is very very unsafe and should be clearly marked as such
<oprypin> staticarray resides on the stack and as soon as you exit the scope the memory is not reserved to it anymore . but the slice keeps pointing to the same memory
<FromGitter> <lbarasti> ouch! Thanks oprypin, good to narrow down the issue to `StaticArray#to_slice`, I can now go and remove a bunch of unnecessary `.dup` :D
<FromGitter> <asterite> we should probably rename it to to_unsafe_slice
deavmi has quit [Quit: Eish! Load shedding.]
deavmi has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
sorcus has quit [Ping timeout: 244 seconds]
sorcus has joined #crystal-lang
deavmi has quit [Read error: No route to host]
<FromGitter> <jwaldrip> Why would this be possible? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f09e52e3e4a827d19bc76a2]
<FromGitter> <Blacksmoke16> prob typing
<FromGitter> <Blacksmoke16> `acc` and `val` prob get set to a union of the possible types in the array which messes things up
<FromGitter> <asterite> this is your daily reminder to not use named tuples
deavmi has joined #crystal-lang
<FromGitter> <kingsleyh> What’s the deal with names Tuples
<FromGitter> <straight-shoota> > this is your daily reminder to not use named tuples ⏎ ⏎ @asterite Made my day =)
<FromGitter> <asterite> they represent named arguments. That's all. If you are using them for something else, you are using them in the wrong way, and it's almost guaranteed you'll have a bad time unless you use them for the simplest things
DTZUZU has joined #crystal-lang
<FromGitter> <straight-shoota> Bottom line: For every use case of named tuples except named arguments, it's better to use structs
<yxhuvud> often in the form of Records.
f1reflyylmao has quit [Quit: bye fags]
f1refly has joined #crystal-lang
DTZUZU_ has joined #crystal-lang
DTZUZU has quit [Ping timeout: 258 seconds]
DTZUZU has joined #crystal-lang
DTZUZU_ has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Ping timeout: 260 seconds]
_whitelogger has joined #crystal-lang
sagax has quit [Read error: Connection reset by peer]
oddp has quit [Ping timeout: 256 seconds]