ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.24.2 | 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
<crystal-gh> [crystal] RX14 opened pull request #6181: Fix Time on win32 (master...bugfix/time-win32) https://git.io/vhw4s
TCZ has joined #crystal-lang
wontruefree has quit [Quit: this is not the client you are looking for]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 265 seconds]
bbobb has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Leaving]
<crystal-gh> [crystal] rGradeStd opened pull request #6182: Fix: integer kind deduction (master...master) https://git.io/vhwEF
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondi^1 has joined #crystal-lang
Raimondii has quit [Ping timeout: 244 seconds]
Raimondi^2 has joined #crystal-lang
Raimondi^2 is now known as Raimondi
Raimondii has joined #crystal-lang
Raimondi^1 has quit [Ping timeout: 244 seconds]
Raimondi^1 has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondi^2 has joined #crystal-lang
Raimondii has quit [Read error: Connection reset by peer]
Raimondi^2 is now known as Raimondi
Raimondi^1 has quit [Ping timeout: 244 seconds]
That_Guy_Anon1 has joined #crystal-lang
That_Guy_Anon has quit [Ping timeout: 276 seconds]
faustinoaq has quit [Ping timeout: 256 seconds]
rohitpaulk has joined #crystal-lang
akaiiro has joined #crystal-lang
baweaver is now known as baweaver_away
<FromGitter> <codenoid> hi, is crystal have template engine like Jinja
<FromGitter> <codenoid> crinja
akaiiro has quit [Ping timeout: 268 seconds]
<FromGitter> <bararchy> Yeha lol crinja
<FromGitter> <bararchy> @bcardiff good morning :) is there an update regarding bin files for 0.25?
<FromGitter> <codenoid> oh, i'll update my crystal
<FromGitter> <codenoid> ubuntu repo crystal is already the newest version (0.24.2-1).
bbobb has joined #crystal-lang
wmoxam has quit [Ping timeout: 248 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
That_Guy_Anon2 has joined #crystal-lang
That_Guy_Anon1 has quit [Ping timeout: 265 seconds]
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
That_Guy_Anon2 has quit [Client Quit]
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
bbobb has quit [Quit: bbobb]
johndescs_ has joined #crystal-lang
johndescs has quit [Ping timeout: 276 seconds]
johndescs_ is now known as johndescs
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
<RX14> @bararchy waiting for them to be signed by waj
<txdv> you want to tell me that if you are on github that it doesn't mean that every single bit of your source code is available on github?
<txdv> o shit, i was scrolled back, ignore my message
alex`` has joined #crystal-lang
faustinoaq has joined #crystal-lang
<wuehlmaus> RX14: can you change the topic entry that shows Crystal 0.24.2 as the current version? :)
<RX14> 0.24.2 is the current version
<RX14> 0.25.0hasnt been released yet
<wuehlmaus> ah, i thought 0.25 was as i am using the git version
<RX14> we've tagged 0.25.0
<RX14> we just havent officially released it
<wuehlmaus> i see
<wuehlmaus> that's for having the 0.25 release fever :)
<livcd> where is the branch for windows ? I cant find it (only the one that's too old)
<RX14> its on my fork
<crystal-gh> [crystal] sdogruyol closed pull request #6179: Fix docs for new HTTP::Server API (master...jm/fix/http-server-docs) https://git.io/vhVNt
<crystal-gh> [crystal] ysbaddaden pushed 1 new commit to master: https://git.io/vhrJ9
<crystal-gh> crystal/master 7d98e1f RX14: Fix Time on win32
<travis-ci> crystal-lang/crystal#a9bab0c (master - Fix docs for new HTTP::Server API (#6179)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/391215703
<DeBot> https://github.com/crystal-lang/crystal/pull/6179 (Fix docs for new HTTP::Server API)
<travis-ci> crystal-lang/crystal#7d98e1f (master - Fix Time on win32): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/391217828
rohitpaulk has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 256 seconds]
<crystal-gh> [crystal] ysbaddaden opened pull request #6184: Fix: use Crystal::System::Random in Crystal::Hasher (master...fix-dont-use-random-secure-in-prelude) https://git.io/vhrmk
<crystal-gh> [crystal] ysbaddaden closed pull request #6128: Fix: detect error when trying to use unbound generic type in instance var (master...bug/5383-unbound-generic-type) https://git.io/vhI3p
alex`` has joined #crystal-lang
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vhrsZ
<crystal-gh> crystal/master 0a898dd Chris Baynes: Add copy method to record macro. (#5736)...
<travis-ci> crystal-lang/crystal#d9b024e (master - Fix: detect error when trying to use unbound generic type in instance var): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/391242721
faustinoaq has quit [Read error: Connection reset by peer]
faustinoaq has joined #crystal-lang
<RX14> Q&A session starting in ~20 mins
<travis-ci> crystal-lang/crystal#0a898dd (master - Add copy method to record macro. (#5736)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/391257827
<DeBot> https://github.com/crystal-lang/crystal/pull/5736 (Add copy method to record macro.)
<RX14> oprypin, gitter bot broke
duane has joined #crystal-lang
faustinoaq has quit [Ping timeout: 264 seconds]
TCZ has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 264 seconds]
Raimondii is now known as Raimondi
TCZ has quit [Quit: Leaving]
cptaffe has quit [Remote host closed the connection]
braidn[m] has quit [Read error: Connection reset by peer]
olbat[m] has quit [Remote host closed the connection]
kixune[m] has quit [Remote host closed the connection]
Renich has quit [Remote host closed the connection]
kp666[m] has quit [Remote host closed the connection]
byteflame has quit [Remote host closed the connection]
fifr[m] has quit [Remote host closed the connection]
alex`` has quit [Quit: WeeChat 2.1]
olbat[m] has joined #crystal-lang
akaiiro has joined #crystal-lang
wontruefree has joined #crystal-lang
<wontruefree> good Q&A session today. It was nice to hear from the core team
baweaver_away is now known as baweaver
That_Guy_Anon has joined #crystal-lang
wontruefree has quit [Quit: bye]
wmoxam has joined #crystal-lang
<wmoxam> Gah, missed the live stream 😱
FromGitter has quit [Remote host closed the connection]
<wuehlmaus> anybody has a link to the recording of the live stream?
<oprypin> Hi people, during this day the Gitter <-> IRC bridge was not working, so your messages were not relayed.
Raimondii has joined #crystal-lang
<RX14> oprypin, any idea how to make the bridge more failure tolerant?
<oprypin> 1) make gitter more failure tolerant
<oprypin> 2) make fiber crashes crash the whole program (though i do have workarounds for it)
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
<RX14> so what exactly happens
<oprypin> dude i dont even know. it's actually still not working.
<oprypin> now it's telling me `Missing hash key: "id"` somewhere in json returned by gitter
<RX14> oh, that sucks
<RX14> so gitter making breaking API changes
<RX14> great
<oprypin> no it's returning `{"error" => "Unauthorized"}`
<oprypin> y tho
<oprypin> is there a convenient way to raise an exception on non-200 status?
<oprypin> in http client
<oprypin> i dont think HTTP module defines any exception type currently, that's lame
<oprypin> `HTTP error 401: {"error":"Unauthorized"}` that makes more sense. ok. still no idea why unauthorized
wontruefree has joined #crystal-lang
FromGitter has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
<oprypin> test
<FromGitter> <bararchy> test is working
<RX14> missed gitter all day :(
<oprypin> Hi people, during this day the Gitter <-> IRC bridge was not working, so your messages were not relayed. The reason for the outage: https://gitter.im/gitterHQ/api?at=5b1ed18537a2df7bed340a1b
<FromGitter> <bararchy> @bcardiff bin signing?
<RX14> now to read all of gitter backlog...
<FromGitter> <bararchy> Yeha I actually had to become the maintainer for the gitter AUR package to make it update to v4.0.0
<FromGitter> <bararchy> else it wouldn't work
<RX14> I maintain a surprising amount of AUR packages...
<RX14> luckily nothing important
<FromGitter> <bararchy> lol
<FromGitter> <bararchy> I don't know if I can hold up to the responsability
<FromGitter> <bararchy> as long as it's changing sha versions and download links all good
<FromGitter> <paulcsmith> @bcardiff @RX14 and rest of core team. Just listening to the Q&A now and I think the logic behind waiting on 1.0 is sound. I totally agree that it would be bad to lock in the language semantics now and then have to break a bunch of stuff later to meet other language goals 👍
<FromGitter> <rishavs> Hi. How do I call functions a module from another module? ⏎ this is the module i need to call ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b200ed470d89b3a3190e218]
<FromGitter> <paulcsmith> But I also love Crystal as-is. What a great language :)
<FromGitter> <paulcsmith> @rishavs do `def self.drop_schema_table`
<FromGitter> <paulcsmith> Note the *self*
<FromGitter> <paulcsmith> And then do `Crappi.drop_schema_tables`. I believe that should work
<FromGitter> <rishavs> thanks! got it to work
<FromGitter> <paulcsmith> 👍
<FromGitter> <rishavs> btw, how do I get a list of all files (or type yml) from a folder?
<FromGitter> <paulcsmith> I think something like this would work `Dir.new("folder-name").filter &.ends_with?(".yml")`
TCZ has joined #crystal-lang
<FromGitter> <rishavs> Ran into an error. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b20120437a2df7bed370e9b]
<FromGitter> <paulcsmith> Should be `select`
<FromGitter> <paulcsmith> My bad
<FromGitter> <faustinoaq> @rishavs Also try `Dir.glob("folder/**/*.yml")`
<FromGitter> <paulcsmith> Oh interesting! I didn't know about Dir.glob :D
<RX14> @paulcsmith the thing is that if we release 1.0 now, we will *never* have paralellism, windows support will be buggy and slow like ruby, and the compiler will never be faster
<RX14> thats why not to release 1.0
<RX14> it's just not sane
<FromGitter> <faustinoaq> or `Dir.glob(File.join("folder", "**", "*.yml"))` (to be windows backlash `\` compatible in the future 😉 )
<RX14> windows supports / and \
<RX14> it's fine as-is
<FromGitter> <faustinoaq> Oh nice 👍
<FromGitter> <paulcsmith> @RX14 yeah I was agreeing with you :)
<FromGitter> <rishavs> @faustinoaq `puts Dir.glob("./schemas/*.yml")` gives me an empty list even though i have 2 yml files in that folder
<RX14> I know :)
<FromGitter> <paulcsmith> Oh ok haha 👍
<FromGitter> <paulcsmith> But I also wanted to say that you've all done an awesome job with where it's at now. I'm still so happy everytime I get to work on my Cyrstal apps (even with slow compilation :P)
<FromGitter> <faustinoaq> @rishavs Oh, what about `Dir.glob("**/*.yml")` ?
<FromGitter> <paulcsmith> @RX14 I haven't used windows in awhile, but I've read that it will support Linux soon (or already does?). So is Windows still a priority or can people use Linux on Windows with Crystal?
<FromGitter> <rishavs> that gives me every yml file on my project workspace
<FromGitter> <r00ster91> windows 10 already supports a little linux subsystem
<FromGitter> <rishavs> my bad. Got it work with the correct path. `puts Dir.glob("**/src/schemas/*.yml")` works. For some reason I can never understand the correct path in Crystal. my requires start from the target file's folder. WHile this is from the workspace itself
wontruefree has quit [Quit: bye]
wontruefree has joined #crystal-lang
wontruefree has quit [Client Quit]
wontruefree has joined #crystal-lang
Ven`` has joined #crystal-lang
Ven`` has quit [Read error: Connection reset by peer]
Ven`` has joined #crystal-lang
Ven`` has quit [Read error: Connection reset by peer]
Ven`` has joined #crystal-lang
Ven`` has quit [Read error: Connection reset by peer]
Ven`` has joined #crystal-lang
Ven`` has quit [Read error: Connection reset by peer]
Ven`` has joined #crystal-lang
Ven`` has quit [Read error: Connection reset by peer]
Ven`` has joined #crystal-lang
Ven`` has quit [Read error: Connection reset by peer]
Ven`` has joined #crystal-lang
<FromGitter> <axvm> Hello there
<FromGitter> <axvm> Im trying to spawn few fibers and transmit data from fibers via channel to another fiber. But for unknown for me reason the program stops working even when I call Fiber.yield in the main "thread"
Ven`` has quit [Client Quit]
Ven`` has joined #crystal-lang
<FromGitter> <axvm> Also I fount unexpected behavior HTTP Client. If server returns 429 status code, crystal returns "Index out of bounds" exception
<FromGitter> <kingsleyh> @axvm this is not an answer to your question exactly - but we had lots of various issues with Fibres so we switched to using Processes on our SushiChain blockchain app (https://sushichain.io) - we have a library for Processes - not sure if it will help you at all though: https://github.com/tbrand/tokoroten
Ven` has joined #crystal-lang
<z64> i think its something else raising that error. i have several libraries that need to handle status code 429 without issue
<FromGitter> <axvm> @z64 yea, im using some kind of modified http client, but here is stackstrace: ⏎ Index out of bounds (IndexError) ⏎ from /usr/share/crystal/src/indexable.cr:0:17 in 'at' ⏎ from /usr/share/crystal/src/indexable.cr:73:5 in '[]' ⏎ from /usr/share/crystal/src/http/client/response.cr:124:19 in 'from_io?' ... [https://gitter.im/crystal-lang/crystal?at=5b20207f8864a936cc82c3c8]
<FromGitter> <axvm> @kingsleyh thanks for suggestion. is it crossplatform lib?
Ven`` has quit [Ping timeout: 245 seconds]
<FromGitter> <kingsleyh> In theory yes - but only tested on OSX and Linux so far
Ven` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven`` has joined #crystal-lang
Ven`` has quit [Client Quit]
<FromGitter> <axvm> @z64 you are right, looks like this is side effect from my modified http client. made test script and it successfuly handles 429 error code
<FromGitter> <axvm> @kingsleyh any idea would if work on arms?
<FromGitter> <axvm> ls -la
<FromGitter> <bew> @axvm how did you modified it?
<FromGitter> <axvm> @bew Im used Sebastian's code from https://github.com/crystal-lang/crystal/issues/2963
wontruefree has quit [Quit: bye]
TCZ has quit [Quit: Leaving]
wontruefree has joined #crystal-lang
<FromGitter> <axvm> @kingsleyh as far as i can see ur lib still based on fibers?
greengriminal has joined #crystal-lang
<FromGitter> <valamorgon> do we have any template renderer that doesn't care whether I'm using html, xml or anything that doesn't have tags?
<FromGitter> <bew> Most template renderer shouldn't care about what you're rendering
<FromGitter> <bew> Doesn't *
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #crystal-lang
olbat[m] has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
duane has quit [Ping timeout: 268 seconds]
<FromGitter> <Val> For those running Debian/Ubuntu who wants to try latest release package : https://gist.github.com/Val/3851480869a84ef9e60d7c705b5a26e3
<crystal-gh> [crystal] oprypin opened pull request #6187: Fix regex in "cannot find -lsome-lib" hint (master...cannot-find) https://git.io/vhonm
<oprypin> y tho
snsei has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #crystal-lang
<oprypin> weird, this regressed https://carc.in/#/r/4a2l https://carc.in/#/r/4a2m
olbat[m] has joined #crystal-lang
<FromGitter> <codenoid> how i can capture a photo with my webcam in only-crystal
<oprypin> os?
<FromGitter> <codenoid> ubuntu
<FromGitter> <codenoid> / linux
<oprypin> so maybe u can read /dev/video0 and do something with it
<FromGitter> <codenoid> O.O, stackoverflow has new UI
<FromGitter> <codenoid> btw, i will use 3rd party library, `streamer`
That_Guy_Anon has quit [Quit: Leaving]
<RX14> oprypin, looks like the breackets
snsei has quit [Remote host closed the connection]
<FromGitter> <bew> opryping removing the `()` in the if fixes it..
snsei has joined #crystal-lang
moei has joined #crystal-lang
snsei has quit [Ping timeout: 256 seconds]
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vhoRv
<crystal-gh> crystal/master 413920c Oleh Prypin: Fix regex in "cannot find -lsome-lib" hint (#6187)...
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
faustinoaq has joined #crystal-lang
wontruefree has quit [Quit: bye]
<travis-ci> crystal-lang/crystal#413920c (master - Fix regex in "cannot find -lsome-lib" hint (#6187)): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/391492016
<DeBot> https://github.com/crystal-lang/crystal/pull/6187 (Fix regex in "cannot find -lsome-lib" hint)
duane has joined #crystal-lang
<FromGitter> <Daniel-Worrall> for the libraries listed in https://github.com/crystal-lang/crystal/wiki/Porting-to-Windows do I store them on Windows or Linux
olbat[m] has quit [Remote host closed the connection]
greengriminal has quit [Quit: This computer has gone to sleep]
<RX14> windows
<FromGitter> <Daniel-Worrall> that's what I thought, but the hello world isn't building on linux 0.25
<RX14> yeah it doesnt
<RX14> i broke it lol
<RX14> you have to check out the windows branch on my fork
<FromGitter> <Daniel-Worrall> gotcha
<crystal-gh> [crystal] ysbaddaden closed pull request #6138: Serialize nil as `~` in YAML (master...nil-to-yaml-with-tilde) https://git.io/vhm49
olbat[m] has joined #crystal-lang
wontruefree has joined #crystal-lang