RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.25.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
duane has quit [Ping timeout: 244 seconds]
wontruefree has joined #crystal-lang
wontruefree has quit [Quit: bye]
duane has joined #crystal-lang
rocx has quit [Ping timeout: 260 seconds]
<FromGitter> <sam0x17> in crystal's Logger, is are the error and warning streams separate in STDOUT?
<FromGitter> <sam0x17> *are
duane has quit [Ping timeout: 240 seconds]
<FromGitter> <sam0x17> as in are there $1, $2 and $3 for info, warn, error or are error and warn combined
<FromGitter> <mjago> @sam0x17 You can create seperate loggers for stdout and stderr https://gist.github.com/mjago/a37ee7570ef651e12be32bb0bd79f912
<FromGitter> <sam0x17> but there is no such thing as STDWARN and the other ones right just those two?
<FromGitter> <mjago> Thats right as far as I know. Its a kernel thing
<FromGitter> <sam0x17> ok thought so thanks
andersh has quit [Read error: Connection reset by peer]
andersh has joined #crystal-lang
<FromGitter> <godmode97> can I destructure this named tuple?
<FromGitter> <bararchy> what do you mean "destructure"? what would be the wanted outcome?
flaviodesousa has joined #crystal-lang
Renich has quit [Ping timeout: 245 seconds]
fifr[m] has quit [Ping timeout: 240 seconds]
cptaffe has quit [Ping timeout: 240 seconds]
edwardloveall[m] has quit [Ping timeout: 245 seconds]
edwardloveall[m] has joined #crystal-lang
Renich has joined #crystal-lang
cptaffe has joined #crystal-lang
fifr[m] has joined #crystal-lang
Raimondii has joined #crystal-lang
ashirase has quit [Ping timeout: 248 seconds]
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
ashirase has joined #crystal-lang
<crystal-gh> [crystal] ysbaddaden pushed 2 new commits to master: https://git.io/fNfrc
<crystal-gh> crystal/master 9ba6ba9 Julien Portalier: Merge pull request #6356 from straight-shoota/jm/fix/bcrypt-password-eq...
<crystal-gh> crystal/master ad5fb0a Johannes Müller: Fix: Add type restriction to Crypto::Bcrypt::Password#==
<travis-ci> crystal-lang/crystal#9ba6ba9 (master - Merge pull request #6356 from straight-shoota/jm/fix/bcrypt-password-eq): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/401684645
<DeBot> https://github.com/crystal-lang/crystal/pull/6356 (Fix: Add type restriction to Crypto::Bcrypt::Password#==)
hightower2 has joined #crystal-lang
<hightower2> Student se upoznao s izradom aplikacije u kojoj je korištena platforma GNU/Linux, programski jezik Crystal, PostgreSQL baza i REST-like API za komunikaciju client i server dijela.
<hightower2> Neke dijelove zadatka student je implementirao na temelju uputa i prijedloga za poboljšanje, a druge dijelove riješio je samostalno.
<hightower2> Nakon proteka glavnine vremena raspoloživog za stručnu praksu napravljen je review u suradnji s mentorom te su zapisani finalni potrebni popravci, uglavnom vezani za vizualni dio interfacea prema korisniku te za automatski pravilan rad programa za nove korisnike koji se prvi puta prijavljuju u sustav.
<hightower2> Student Marin Jurjević dolazio je na stručnu praksu u dogovoreno vrijeme te zadatak obavio savjesno i u skladu s dogovorenim planom rada. Također je implementirao i zatražene finalne popravke i napravio aplikaciju koja bi se mogla koristiti u konkretne svrhe.
<hightower2> Pohvaljujemo njegov pristup poslu i rezultat te se nadamo da su zadatak i naši komentari bili korisni Marinu te u skladu s programom i ciljevima fakulteta.
<hightower2> (Sorry wrong paste :(
<hightower2> What's the purpose of Crypto::Subtle?
yopp has joined #crystal-lang
alex`` has joined #crystal-lang
<FromGitter> <Timbus> Constant time comparisons prevent leaking information about secret data. For example: If you're comparing a password, and you exit the moment two bytes mismatch? An attacker can measure the time your comparison took, and then feed in different letters until the comparison takes slightly longer
<FromGitter> <Timbus> So the Crypto::Subtle methods can prevent that
alex`` has quit [Ping timeout: 240 seconds]
alex`` has joined #crystal-lang
alex`` has quit [Ping timeout: 244 seconds]
alex`` has joined #crystal-lang
alex`` has quit [Ping timeout: 245 seconds]
<FromGitter> <Grabli66> Hi! I dont understand, what's wrong? https://play.crystal-lang.org/#/r/4h3k
<crystal-gh> [crystal] ysbaddaden pushed 2 new commits to master: https://git.io/fNfFv
<crystal-gh> crystal/master 0990ca1 Julien Portalier: Merge pull request #6354 from asterite/bug/6353-quoted-charset...
<crystal-gh> crystal/master d2a9b43 Ary Borenszweig: HTTP: consider quoted charset
<crystal-gh> [crystal] RX14 closed pull request #6351: Revert: Don't automatically virtualize two types in the same hierarchy, unless one is deeper than the other (master...feature/revert-dont-virtualize) https://git.io/fNvEs
<FromGitter> <straight-shoota> @Grabli66 Looks like a compiler bug
<FromGitter> <straight-shoota> It seems that the generic arguments K and V are not dereferenced in the subclass
<FromGitter> <Grabli66> Ok. I'll open issue then?
<FromGitter> <straight-shoota> This works btw: ⏎ ⏎ ```class Two < One(Int32, String) ⏎ def test(s : K) : V ⏎ return s.to_s ⏎ end ⏎ end``` ⏎ ⏎ https://play.crystal-lang.org/#/r/4h3w [https://gitter.im/crystal-lang/crystal?at=5b435f3b70efc60660b91d60]
<FromGitter> <Grabli66> Cool :)
<FromGitter> <straight-shoota> This is essentially #3349
<DeBot> https://github.com/crystal-lang/crystal/issues/3349 (Surprising error with generic abstract base class)
<FromGitter> <Grabli66> Ok. It's a good old bug :)
<FromGitter> <Grabli66> It works, but it looks bad :(
<FromGitter> <cserb> Hey, anyone tried to implement an rpc protocol or used an existing one for crystal. I'm trying to use msgpack for sending data between peers but it's kinda cumbersome
duane has joined #crystal-lang
<FromGitter> <yxhuvud> I think there is already someone that has implemented msgpack. I don't know how full featured it is though
<travis-ci> crystal-lang/crystal#0990ca1 (master - Merge pull request #6354 from asterite/bug/6353-quoted-charset): The build is still failing. https://travis-ci.org/crystal-lang/crystal/builds/401752135
<DeBot> https://github.com/crystal-lang/crystal/pull/6354 (HTTP: consider quoted charset)
<travis-ci> crystal-lang/crystal#ee6ec50 (master - Revert: Don't automatically virtualize two types in the same hierarchy, unless one is deeper than the other (#6351)): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/401753949
<DeBot> https://github.com/crystal-lang/crystal/pull/6351 (Revert: Don't automatically virtualize two types in the same hierarchy, unless one is deeper than the other)
alex`` has joined #crystal-lang
wontruefree has joined #crystal-lang
<wontruefree> is there something like ruby DRb in Crystal
<FromGitter> <sdogruyol> nope
<crystal-gh> [crystal] sdogruyol pushed 1 new commit to master: https://git.io/fNJ3j
<crystal-gh> crystal/master 4771dcb Johannes Müller: Add support for multiple Etags in If-None-Match header (#6219)
<FromGitter> <jwoertink> If you have a method that uses `with whatever yield`, and then want to make an overload method for that, is there a way to pass that block?
<FromGitter> <sdogruyol> capture it
<FromGitter> <jwoertink> here's an example
<FromGitter> <jwoertink> @sdogruyol I'm not sure that I follow... What do you mean by "capture it"?
<FromGitter> <jwoertink> also, hi 👋
<Yxhuvud> sdogruyul: uh, I don't think captured blocks works with with
<FromGitter> <sdogruyol> nvm, it won't work with with
<FromGitter> <sdogruyol> hey @jwoertink 👋
<FromGitter> <jwoertink> I've tried a few different ways to pass this down. I was thinking I needed to use `itself` somewhere..
akaiiro has joined #crystal-lang
<FromGitter> <sdzyba> how come that asterite is not a core team member?
<FromGitter> <sdzyba> or he left the Crystal organization on github by himself?
akaiiro has quit [Remote host closed the connection]
<FromGitter> <fridgerator> I think his membership is private or something like that
<FromGitter> <fridgerator> Its been discussed in here before
akaiiro has joined #crystal-lang
<crystal-gh> [crystal] asterite opened pull request #6358: Restrict `exp.@var` to types in the same hierarchy (master...feature/6066-restrict-read-ivar-access) https://git.io/fNJnM
<travis-ci> crystal-lang/crystal#4771dcb (master - Add support for multiple Etags in If-None-Match header (#6219)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/401832210
<DeBot> https://github.com/crystal-lang/crystal/pull/6219 (Add support for multiple Etags in If-None-Match header)
<FromGitter> <fridgerator> lol
<FromGitter> <sdzyba> Oh so you're literally remove yourself, got it :)
<FromGitter> <j8r> That's sounds like the Crystal yo-yo effect. Crystal is too good, but beware of overdoses 😄
wontruef_ has joined #crystal-lang
wontruefree has quit [Ping timeout: 276 seconds]
akaiiro has quit [Ping timeout: 244 seconds]
akaiiro has joined #crystal-lang
<FromGitter> <HCLarsen> Hey everyone, got a question about Unions. Is it possible to define a custom union type to reuse, instead of retyping the long form throughout my project?
<FromGitter> <fridgerator> yes, with `alias`
<FromGitter> <fridgerator> `alias Whatever = String | Int32`
<FromGitter> <HCLarsen> Thanks Nick.
<FromGitter> <HCLarsen> Works exactly as I needed.
<FromGitter> <fridgerator> 👍
<FromGitter> <HCLarsen> This will work across multiple files right? I don't have to do that alias in each file in my project?
<FromGitter> <fridgerator> if you put it in the top level of your application it will be available everywhere
<Yxhuvud> it works. do note though that generic aliases work so-so
<FromGitter> <HCLarsen> My tests are all passing, so in this case, it works perfectly.
<FromGitter> <HCLarsen> Thanks guys.
alex`` has quit [Quit: WeeChat 2.1]
DTZUZU has quit [Quit: WeeChat 1.9]
TCZ has joined #crystal-lang
rocx has joined #crystal-lang
duane has quit [Ping timeout: 265 seconds]
ashirase has quit [Ping timeout: 255 seconds]
ashirase has joined #crystal-lang
TCZ has quit [Quit: Leaving]
zachk has joined #crystal-lang
zachk has joined #crystal-lang
zachk has quit [Changing host]
FromGitter has quit [Remote host closed the connection]
oprypin has quit [Quit: Bye]
FromGitter has joined #crystal-lang
oprypin has joined #crystal-lang
<crystal-gh> [crystal] bcardiff closed pull request #6329: Add &+ &- &* &** operators parsing (master...feature/parse-amp-ops) https://git.io/fbxDe
Vexatoast has joined #crystal-lang
Vexatos has quit [Ping timeout: 260 seconds]
maxpowa has quit [Ping timeout: 240 seconds]
maxpowa has joined #crystal-lang
wontruef_ has quit [Quit: bye]
DTZUZU has joined #crystal-lang
ashirase has quit [Ping timeout: 268 seconds]
<travis-ci> crystal-lang/crystal#8d28cbb (master - Add &+ &- &* &** operators parsing (#6329)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/401996196
<DeBot> https://github.com/crystal-lang/crystal/pull/6329 (Add &+ &- &* &** operators parsing)
ashirase has joined #crystal-lang
<FromGitter> <Timbus> Looks like running any crystal program from `entr -r` throws an instant stack trace: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ entr seems to close stdin before execing, is this the issue? https://bitbucket.org/eradman/entr/src/default/entr.c#lines-398 [https://gitter.im/crystal-lang/crystal?at=5b43f6489b82c6701bb036a7]