ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.29.0 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
ua has quit [Ping timeout: 258 seconds]
alex`` has quit [Ping timeout: 248 seconds]
laaron- has joined #crystal-lang
laaron has quit [Remote host closed the connection]
sz0 has joined #crystal-lang
alex`` has joined #crystal-lang
laaron- has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
maxpowa has joined #crystal-lang
<FromGitter> <galvertez> hey guys i made something that actually works for once https://github.com/galvertez/dict.cr ⏎ idk how useful it would actually be but as a non-developer slowly becoming a developer, it was kind of fun to build :D
<FromGitter> <watzon> @galvertez looks good! Congrats on joining the Crystal community and creating your first shard.
<FromGitter> <watzon> Here, take a star
<FromGitter> <alex-lairan> @galvertez you are a developer.
ua has joined #crystal-lang
alex`` has quit [Ping timeout: 245 seconds]
alex`` has joined #crystal-lang
moei has joined #crystal-lang
<FromGitter> <Yashko> Hey guys! I'm new to crystal and never tried ruby. Trying to build simple websocket server from the scratch (without kemal), is there examples?
ua has quit [Ping timeout: 245 seconds]
ua has joined #crystal-lang
<FromGitter> <alex-lairan> Hi
<FromGitter> <alex-lairan> You can found how to do inside the Kemal code
<FromGitter> <watzon> I think I found a bug
<FromGitter> <watzon> https://carc.in/#/r/722d
<FromGitter> <watzon> `Random#rand` with the range `Float64::MIN..Float64::MAX` always returns infinity
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #crystal-lang
dostoyevsky has quit [Client Quit]
dostoyevsky has joined #crystal-lang
flaviodesousa has joined #crystal-lang
flaviodesousa has quit [Max SendQ exceeded]
flaviodesousa has joined #crystal-lang
flaviodesousa has quit [Max SendQ exceeded]
flaviodesousa has joined #crystal-lang
flaviodesousa has quit [Max SendQ exceeded]
flaviodesousa has joined #crystal-lang
flaviodesousa has quit [Max SendQ exceeded]
flaviodesousa has joined #crystal-lang
dostoyevsky has quit [Quit: leaving]
flaviodesousa has quit [Max SendQ exceeded]
dostoyevsky has joined #crystal-lang
flaviodesousa has joined #crystal-lang
flaviodesousa has quit [Max SendQ exceeded]
ashirase has quit [Ping timeout: 272 seconds]
ashirase has joined #crystal-lang
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
<FromGitter> <tenebrousedge> @watzon https://xkcd.com/221/
duane has joined #crystal-lang
<FromGitter> <r00ster91> Is there any difference between ⏎ ⏎ ```HTTP::Client.post("url.com/path", headers, json)``` ⏎ ⏎ ? The former fails `No address found for url.com/path:80 over TCP` but the latter works as expected. [https://gitter.im/crystal-lang/crystal?at=5cff9418b76eac527addd58b]
alex`` has quit [Ping timeout: 245 seconds]
alex`` has joined #crystal-lang
<FromGitter> <mavu> is this a bug? ⏎ https://play.crystal-lang.org/#/r/7233
<FromGitter> <mavu> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5cffa84284c08f5414146fb3]
<FromGitter> <mavu> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5cffa85465392c3b60f98040]
<FromGitter> <mavu> shouldn't the "if variable.is_a? Time" not restrict the type in the branch?
<FromGitter> <mavu> Ahh, damn. i forgot. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5cffa8d6f3a60a79a490202c]
<FromGitter> <mavu> sorry.
<FromGitter> <mavu> Why this restriction anyway?
<FromGitter> <Blacksmoke16> should be able to do like `if (t = @start_time) && t.is_a? Time`
<FromGitter> <Blacksmoke16> because another fiber could change the ivar's value
<FromGitter> <mavu> ahhh.. right. concurrency raises its ugly head again.
sz0 has quit [Quit: Connection closed for inactivity]
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<FromGitter> <bew> @mavu and crystal fills you with joy again, because it catches these things for you, before they crash your beloved program 😁
flaviodesousa has joined #crystal-lang
duane has quit [Ping timeout: 248 seconds]
duane has joined #crystal-lang
laaron has quit [Remote host closed the connection]
<FromGitter> <malkomalko> Anybody upgrade to 10.15 beta yet? Everything works on latest crystal but seeing lots of warnings: `ld: warning: building for macOS, but linking in object file (_main.o) built for·`
laaron has joined #crystal-lang
<FromGitter> <mavu> @bew true, very true. :)
duane has quit [Ping timeout: 272 seconds]
duane has joined #crystal-lang
yxhuvud has joined #crystal-lang
<FromGitter> <bew> @malkomalko "... built for " what?
<yxhuvud> frown. Range#step doesn't accept float steps.
renich has joined #crystal-lang
<RX14> Yxhuvud, you can always issue or PR it :P
<FromGitter> <malkomalko> I'm on a mac @bew. It's just when I call crystal run or test my specs
<yxhuvud> perhaps. I rewrote to use step instead.
<renich> Good $tod, Crystalians o/
<renich> I was expecting the result of this: https://play.crystal-lang.org/#/r/723q to be [5, 4, 3, 2, 1]. Any guideance?
<renich> s/guideance/guidance/
<yxhuvud> Float64#step that is. but it behaves strange.
<FromGitter> <Blacksmoke16> pretty sure n has to be smaller than the right val
<FromGitter> <Blacksmoke16> looks like range operator doesnt handle decrementing
<jcs> it should be 1..n, you're reversing it anyway
<renich> Blacksmoke16: let me try inverting it.
<renich> jcs: yeah, just noticed.
<renich> everything works if I change it to (1..n)
<FromGitter> <Blacksmoke16> makes sense
<FromGitter> <Blacksmoke16> > looks like range operator doesnt handle decrementing
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/723x
<renich> Blacksomke16: so, that might be a bug
<renich> ... right?
<jcs> ruby's .. doesn't support decrementing either
<renich> jcs: O_O...
<FromGitter> <Blacksmoke16> :shrug: might be worth a forum post to discuss it
<FromGitter> <Blacksmoke16> then from there could make an issue if that is something that would be useful
flaviodesousa has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
renich has quit [Ping timeout: 245 seconds]
renich has joined #crystal-lang
<renich> Blacksmoke16: I will post a forum post in a moment.
<FromGitter> <Blacksmoke16> 👍
faitswulff has joined #crystal-lang
duane has quit [Remote host closed the connection]
duane has joined #crystal-lang
<FromGitter> <mwlang> I don't understand this YAML example... https://crystal-lang.org/api/0.23.1/YAML.html ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ In both variations, the variable yaml is assigned, but it appears to me it's not being used at all. [https://gitter.im/crystal-lang/crystal?at=5cffff8cda8fce3d97fee563]
<FromGitter> <z64> the examples purpose is just to show you how you can get an in-memory yaml string, or write it to disk ⏎ the two lines in each example aren't related
<FromGitter> <mwlang> oh, wait...I guess it's showing two ways for each approach each time.
<FromGitter> <mwlang> I finally grokked it.
<FromGitter> <mwlang> :-/
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
duane has quit [Ping timeout: 258 seconds]
renich has quit [Remote host closed the connection]
faitswulff has quit [Remote host closed the connection]
faitswulff has joined #crystal-lang
hightower2 has joined #crystal-lang
hightower2 has quit [Ping timeout: 248 seconds]
<alex``> oprypin: finally done https://youtu.be/QN4mrZXYHPo :)
<alex``> Big thanks to Blacksmoke16 for his help too
<oprypin> 🤔
<alex``> it wasn’t you who helped me with the system commands?
<oprypin> it was
moei has quit [Quit: Leaving...]
<FromGitter> <Blacksmoke16> Np
<FromGitter> <watzon> word2vec is gonna be the death of me
<FromGitter> <bararchy> XD
<FromGitter> <bararchy> it's a comlpicated one, that's for sure
<FromGitter> <bararchy> the only good impl is the Google python one
<FromGitter> <watzon> Right? Lol. I'm doing my research though. Gotta finish the vector math library first.
DTZUZO has quit [Quit: WeeChat 2.0]
<oprypin> i started fuzzing crystal's parser and to_s. some goood stuff
<oprypin> well actually it's really boring, just curious how easy it is to find different issues
<oprypin> unrelated: seems like running 2 `crystal eval` s at the same time causes spectacular failures
<oprypin> there are so many textbook examples of race conditions happening xD `crystal eval 'p 1' & crystal eval 'p 2'`