RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.24.1 | 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
<travis-ci> crystal-lang/crystal#f0e2be1 (ci/nightly - Add full workflows): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/349571541
dhk has joined #crystal-lang
dhk has quit [Quit: Leaving]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
snsei has joined #crystal-lang
hightower2 has joined #crystal-lang
hightower3 has quit [Ping timeout: 240 seconds]
snsei has quit [Ping timeout: 260 seconds]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 245 seconds]
<FromGitter> <bararchy> It seems like we have a 3 month circle in Crystal where dev is being stale, people start getting annoyed , manas / core team say they will put more time into crystal/ be more communication to community etc.. And dev is getting back to regular speed.
<FromGitter> <bararchy> It seems we reached the 'community feels dev is stale' stage again
<FromGitter> <bararchy> Fun times LOL
<FromGitter> <watzon> Well I'm on Windows again for the time being so I'm going to try and help out with #5430
<DeBot> https://github.com/crystal-lang/crystal/issues/5430 (Coordinate porting to Windows)
<FromGitter> <bararchy> @watzon a worthy cause :)
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 245 seconds]
rohitpaulk has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 245 seconds]
flaviodesousa has joined #crystal-lang
bonemind has joined #crystal-lang
<FromGitter> <bararchy> Intresting news for anyone using LLVM on windows https://arstechnica.com/gadgets/2018/03/chrome-on-windows-ditches-microsofts-compiler-now-uses-clang/
DTZUZO has quit [Ping timeout: 256 seconds]
<FromGitter> <bew> Very good news!!
<FromGitter> <bararchy> though it says they still use the Windows linker
<FromGitter> <bararchy> but planning to switch to clang's linker soon
DTZUZO has joined #crystal-lang
DTZUZO has quit [Ping timeout: 268 seconds]
DTZUZO has joined #crystal-lang
snsei has joined #crystal-lang
DTZUZO has quit [Ping timeout: 265 seconds]
DTZUZO has joined #crystal-lang
snsei has quit [Ping timeout: 265 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #crystal-lang
DTZUZO has quit [Ping timeout: 260 seconds]
<FromGitter> <straight-shoota> Yeah but Crystal's Windows support has very basic problems compared to that
<FromGitter> <alex-lairan> There is a todo list for 1.0 release?
<FromGitter> <sclee15> Beside windows support and parallelism, what language infrastructure are we lacking? As a beginner i want to know it.
<FromGitter> <bararchy> @sclee15 not much which is painful, I guess look at the Github issues to see, a bug here, a needed thing there, and a more long term stuff which is the "normal" evolution of any languge
<FromGitter> <bararchy> @alex-lairan the 2 big things, Windows support and paralalisem
alex`` has joined #crystal-lang
<FromGitter> <sdogruyol> hey everyone!
<FromGitter> <sdogruyol> we just got a thread up for the Next Crystal Team Live Q&A Session https://www.reddit.com/r/crystal_programming/comments/82e5q4/next_crystal_team_live_qa_session/
<FromGitter> <sdogruyol> feel free to share your ideas 👍
<FromGitter> <sdogruyol> also on google groups https://groups.google.com/forum/#!topic/crystal-lang/FX5_mwNRMaE
<FromGitter> <bararchy> Right when needed @sdogruyol comes to the rescue of the community
<FromGitter> <bararchy> haha
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
<FromGitter> <straight-shoota> @alex-lairan there 's a
<FromGitter> <straight-shoota> Roadmap in the wiki
Papierkorb has joined #crystal-lang
Papierkorb has left #crystal-lang ["Konversation terminated!"]
wojnar has joined #crystal-lang
<FromGitter> <CImrie> @watzon I've written a first draft of RSA bindings - commented in here before submitting PR: https://github.com/crystal-lang/crystal/issues/3941 ⏎ If you get any time to help review/test that would be appreciated :)
alex`` has quit [Ping timeout: 265 seconds]
bonemind has quit [Quit: WeeChat 2.0.1]
bonemind has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
<crystal-gh> [crystal] CImrie opened pull request #5777: [WIP] OpenSSL RSA Bindings (master...feature/openssl-rsa) https://git.io/vA59D
rohitpaulk has quit [Remote host closed the connection]
<FromGitter> <alex-lairan> Ok :)
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
alex`` has joined #crystal-lang
snsei has joined #crystal-lang
DTZUZO has joined #crystal-lang
DTZUZO has quit [Quit: WeeChat 2.0]
<travis-ci> crystal-lang/crystal#bb5488c (ci/nightly - Allow branding that does not match branch/tag): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/349848144
bonemind has quit [Quit: WeeChat 2.0.1]
<FromGitter> <r00ster91> is there a way that I can forbid that the user can enter something? I mean for example when I do `sleep 5`. Then you can still enter something.
<crystal-gh> [crystal] vendethiel opened pull request #5779: Add an example of an operator delegation (master...patch-1) https://git.io/vAdJo
<FromGitter> <alex-lairan> @r00ster91 redirect STDIN do the job? :)
<FromGitter> <r00ster91> ah its STDIN.noecho thanks
alex`` has quit [Ping timeout: 240 seconds]
wojnar has quit [Remote host closed the connection]
<FromGitter> <bew> @r00ster91 this will just hide what the user is entering, not prevent him to enter anything at all
<FromGitter> <r00ster91> yes i know but thats fine i think
snsei has quit [Remote host closed the connection]
<FromGitter> <faustinoaq> Hi crystal community! ⏎ ⏎ https://elixirforum.com/t/will-amber-framework-crystal-perform-better-than-phoenix/9433/14 ⏎ ⏎ ^ A thread on Elixir community about Crystal [https://gitter.im/crystal-lang/crystal?at=5a9ec4c7888332ee3a0755f3]
vivus has joined #crystal-lang
vivus has left #crystal-lang [#crystal-lang]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 245 seconds]
<travis-ci> crystal-lang/crystal#601d3c9 (ci/nightly - Allow branding that does not match branch/tag): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/349925716
rohitpaulk has joined #crystal-lang
flaviodesousa has quit [Ping timeout: 240 seconds]
rohitpaulk has quit [Ping timeout: 245 seconds]
rohitpaulk has joined #crystal-lang
alex`` has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
thi_ has quit [Read error: Connection reset by peer]
thi_ has joined #crystal-lang
snsei has joined #crystal-lang
<travis-ci> crystal-lang/crystal#99a6d4d (ci/nightly - Update version branding): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/349972014
snsei has quit [Ping timeout: 252 seconds]
<crystal-gh> [crystal] straight-shoota opened pull request #5781: Fix `spawn` macro for call with receiver (master...jm/fix/spawn-receiver) https://git.io/vAd1W
alex`` has quit [Read error: No route to host]
DTZUZU has quit [Quit: WeeChat 1.9]
<crystal-gh> [crystal] straight-shoota opened pull request #5782: Fix File.extname to handle path with dot in directory name (master...jm/fix/file-extname) https://git.io/vAdSm
qard has joined #crystal-lang
alex`` has joined #crystal-lang
DTZUZU has joined #crystal-lang
<travis-ci> crystal-lang/crystal#3533460 (ci/nightly - Update version branding): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/350004319
alex`` has quit [Quit: WeeChat 2.0.1]
<FromGitter> <watzon> Yes! Thanks @CImrie, I'll be sure to take a look
<FromGitter> <watzon> @faustinoaq what's the best commit to use with Scry right now?
<FromGitter> <watzon> Just work off of master maybe>
snsei has joined #crystal-lang
DTZUZU has quit [Quit: WeeChat 1.9]
snsei has quit [Ping timeout: 265 seconds]
DTZUZU has joined #crystal-lang
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <CImrie> Hmm. I've just realised a fatal flaw in my plan - I am using the amber framework but want to use my feature branch on the crystal stdlib... ⏎ Maybe a shard would have been better initially.
<FromGitter> <HCLarsen> Hey guys, what does a * mean as a method argument?
<FromGitter> <watzon> Yeah that's generally a good plan @CImrie
<FromGitter> <watzon> @HCLarsen everything after the `*` has to be a named argument rather than positional
<FromGitter> <HCLarsen> That doesn't seem to be right.
<FromGitter> <HCLarsen> I'm still getting an error.
<FromGitter> <CImrie> @HCLarsen can you show an example?
<FromGitter> <HCLarsen> Time.new(1998, 1, 19, 7, 0, 0, nanosecond = 0, kind = Time::Kind::Local)
<FromGitter> <HCLarsen> Gives an error of wrong number of arguments.
<FromGitter> <CImrie> From the API docs, it suggests this is the method API: ⏎ `def self.new(*, seconds : Int64, nanoseconds : Int32, kind : Kind) ` ⏎ You'll need to name 'seconds' too
<FromGitter> <watzon> It should be nanoseconds
<FromGitter> <watzon> `.new(year, month, day, hour = 0, minute = 0, second = 0, *, nanosecond = 0, kind = Kind::Unspecified)`
<FromGitter> <HCLarsen> Nevermind. You guys expect a colon instead of an equal sign.
<FromGitter> <CImrie> Ah. Ignore me!
<FromGitter> <watzon> Second isn't a mandatory named argument, but yes you also need colons haha
<FromGitter> <CImrie> Yeah I think I brought up the wrong method, which never helps when giving help...
<FromGitter> <HCLarsen> No worries.
<FromGitter> <HCLarsen> This is why examples in the documentation would be useful.
<FromGitter> <CImrie> @watzon Any way you know of modifying a class in Crystal without having the ability to change it directly? I'm looking to push the RSA bindings out as a shard until it is merged and released in stdlib, but I need to modify `OpenSSL::BIO` struct to do so
<FromGitter> <watzon> Yup, all you have to do is recreate the class yourself. For example ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a9f1ccf6f8b4b9946f8bbf0]
<FromGitter> <CImrie> Ah cool, so it merges the two definitions basically?
<FromGitter> <CImrie> (which is very neat if so)
<FromGitter> <watzon> Yup. Same thing with Ruby.
<FromGitter> <CImrie> What can I say, I've been living in the land of PHP 🔥
<FromGitter> <watzon> Makes if very easy to extend without actually having to create a whole new class and extending it.
<FromGitter> <watzon> Yeah PHP sucks ass
<FromGitter> <watzon> But that's not the main reason
<FromGitter> <watzon> Lol
<FromGitter> <CImrie> lol
<FromGitter> <straight-shoota> the concept is known as reopening classes
<FromGitter> <straight-shoota> or monkey patching
<FromGitter> <CImrie> I've heard of monkey patching but I thought it was a fancy version of PHP magic methods lol. Apparently not! (or at least orders of magnitude more fancy). ⏎ ⏎ I don't suppose there is a way to modify a constant within a class the same way?
<FromGitter> <CImrie> One that has ⏎ ⏎ ```CONST = begin ⏎ CONST.property = "something" ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5a9f1f4b35dd17022e2c8f1c]
snsei has joined #crystal-lang
<RX14> @CImrie no there's no way to modify constants currently I think
<FromGitter> <watzon> Nope. Nor should there be really, otherwise they wouldn't really be constant would they?
<FromGitter> <CImrie> I don't need logic, just mad solutions! :shipit:
<FromGitter> <CImrie> :P
<FromGitter> <watzon> Hahaha
snsei has quit [Ping timeout: 245 seconds]
<FromGitter> <watzon> You can override a method that's using a contant and just use a different constant
<FromGitter> <CImrie> Yeah, playing around with a few hacks to see what sticks at the moment :P
<RX14> @watzon to be fair they'd still be constant
<RX14> you can't reassign them at runtime
<RX14> you can just change their definition at compile-time
<FromGitter> <watzon> That's fair
duane has joined #crystal-lang
<FromGitter> <faustinoaq> > @faustinoaq what's the best commit to use with Scry right now? ⏎ > Just work off of master maybe? ⏎ ⏎ @watzon Yeah, try master, scry team should be releasing a new version very soon, we're just reviewing auto-completion feature (https://github.com/crystal-lang-tools/scry/pull/51#issuecomment-370890821) 😄 [https://gitter.im/crystal-lang/crystal?at=5a9f2849e4d1c63604cde68d]
<FromGitter> <watzon> Sweetness
<FromGitter> <bew> @RX14 how to change a const t compile time?
<RX14> you can't
<RX14> i was talking hypotheticals
<FromGitter> <faustinoaq> > you can just change their definition at compile-time ⏎ ⏎ Maybe because CONSTS are untyped at compile time? 😅 ⏎ ⏎ https://gist.github.com/faustinoaq/20c12653130282971ba8102d9e60c5c9 [https://gitter.im/crystal-lang/crystal?at=5a9f2a1b35dd17022e2cc002]
<FromGitter> <bew> Yeah right, I agree with you, it would be "logical"