jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.7 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
LastWhisper____ has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
mkl0501 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bjz has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 255 seconds]
bjz_ has quit [Client Quit]
bjz has joined #crystal-lang
<FromGitter> <jwoertink> Is there any sort of exception you can catch for an "undefined method" error being thrown?
<FromGitter> <jwoertink> ```expect_raises(MethodMissingErrorException) { "".this_is_fake }```
<FromGitter> <jwoertink> I guess I could just check `responds_to?` ... Would be good to know though
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 258 seconds]
pawnbox has joined #crystal-lang
snsei_ has quit [Remote host closed the connection]
<FromGitter> <jwoertink> Ok, I found it `require "compiler/crystal/syntax"` `Crystal::SyntaxException`
pawnbox has quit [Ping timeout: 265 seconds]
ome has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
<crystal-gh> [crystal] amitsaha opened pull request #3223: Update Dockerfile to build from Ubuntu 14.04 (master...dockerfile_fix) https://git.io/viIBr
g3funk has quit [Ping timeout: 276 seconds]
g3funk has joined #crystal-lang
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 244 seconds]
<crystal-gh> [crystal] amitsaha opened pull request #3224: Fix for #3196: Support --help for crystal eval (master...eval_help) https://git.io/viIzn
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 276 seconds]
badeball has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
tubbo has quit [Ping timeout: 252 seconds]
avdi has quit [Ping timeout: 255 seconds]
danzilio has quit [Read error: Connection reset by peer]
snsei has joined #crystal-lang
avdi has joined #crystal-lang
buggs has quit [Ping timeout: 255 seconds]
danzilio has joined #crystal-lang
tubbo has joined #crystal-lang
buggs has joined #crystal-lang
mroth has quit [Ping timeout: 250 seconds]
jnylen has quit [Ping timeout: 250 seconds]
guilleiguaran__ has quit [Ping timeout: 250 seconds]
mroth has joined #crystal-lang
jnylen has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
aemadrid has quit [Ping timeout: 250 seconds]
Majost has quit [Ping timeout: 250 seconds]
Majost has joined #crystal-lang
aemadrid has joined #crystal-lang
Philpax has quit [Ping timeout: 255 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
Cidan has quit [Ping timeout: 244 seconds]
zz_Cidan has joined #crystal-lang
zz_Cidan is now known as Cidan
Cidan has quit [Changing host]
Cidan has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mark_66 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Nik736 has joined #crystal-lang
onethirtyfive has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
tilpner_ has joined #crystal-lang
<RX14> i hate that there's no sensible way to cast to and from unions
<RX14> i was trying to demonstrate YAML::Any, but I had to give up and include a text string and YAML.parse
<RX14> i understand there has to be byte manipulations but that fact that you can't cast it is so incredibly annoying
Davy_CC has quit [*.net *.split]
fedruantine has quit [*.net *.split]
leafybasi has quit [*.net *.split]
coderobe has quit [*.net *.split]
tilpner has quit [*.net *.split]
tilpner_ is now known as tilpner
fedruantine has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
pawnbox has joined #crystal-lang
Davy_CC has joined #crystal-lang
leafybasi has joined #crystal-lang
scottj has left #crystal-lang [#crystal-lang]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
badeball has joined #crystal-lang
pawnbox_ has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Tophe has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/viIjO
<crystal-gh> crystal/master 77dc00a Kenichi Kamiya: Fix duplicated iteration issue of Enumerable#in_groups_of (#3128)
crystal-lang398 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
grzesebe has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/viLej
<crystal-gh> crystal/master d99f402 Julien Portalier: Drop useless LibCrypto.rand_bytes fallback in SecureRandom...
<crystal-gh> crystal/master 78e5206 Ary Borenszweig: Merge pull request #2959 from ysbaddaden/std-securerandom-getrandom-urandom...
<crystal-gh> crystal/master e776bce Julien Portalier: Use getrandom and /dev/urandom to generate random bytes...
<jhass> \o/
<travis-ci> crystal-lang/crystal#77dc00a (master - Fix duplicated iteration issue of Enumerable#in_groups_of (#3128)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/156772892
grzesebe has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
frodo-li has joined #crystal-lang
<frodo-li> hey guys
<jhass> hi
<frodo-li> does anyone know howto disable kemal logging to terminal?
grzesebe has joined #crystal-lang
<frodo-li> searched the websites and forums, but can't seem to find it
<frodo-li> i remember it being a flag that can be set
<jhass> Kemal.config.logger = nil I guess?
<jhass> or Kemal.config.logger = Logger.new(nil)
<Tophe> no
<Tophe> just do that
<Tophe> logging false
<frodo-li> so there is no more command flag i can give it
<travis-ci> crystal-lang/crystal#78e5206 (master - Merge pull request #2959 from ysbaddaden/std-securerandom-getrandom-urandom): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/156776222
<frodo-li> i remember it distinctivly being somewith with production flag or something
<jhass> oh there's Kemal.config.logging = false
grzesebe has quit [Remote host closed the connection]
<frodo-li> and where can i set that
<jhass> somewhere before Kemal.run I guess
unshadow has joined #crystal-lang
tomchapi_ has joined #crystal-lang
<frodo-li> got it, i changed @logging = true to @logging is false in kemal/kemal/config.cr
tomchapin has quit [Ping timeout: 255 seconds]
<frodo-li> setting Kemal.config.logging = false didn't work
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<frodo-li> somehow now Kemal.config.logging = false works
<frodo-li> lol
jeromegn has quit [Remote host closed the connection]
willl has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
willl has joined #crystal-lang
jeromegn has joined #crystal-lang
<FromGitter> <sdogruyol> logging false = Kemal.coffing.logging = false
<FromGitter> <sdogruyol> :P
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 258 seconds]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/viLtq
<crystal-gh> crystal/master 4f810f2 Ary Borenszweig: Merge pull request #3212 from ozra/fix/aliased_generic_matching_in_restriction...
<crystal-gh> crystal/master bc763f0 Oscar Campbell: Fix #3197
pawnbox has quit [Remote host closed the connection]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grzesebe has joined #crystal-lang
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 24 new commits to master: https://git.io/viLYt
<crystal-gh> crystal/master a3696e6 Ary Borenszweig: Compiler: fixed bug in truthy/falsey if
<crystal-gh> crystal/master b98a9c7 Ary Borenszweig: Symbol: quote symbols that start with a digit
<crystal-gh> crystal/master fdbde27 Ary Borenszweig: Make macro method `pp` use the same output format as the regular `pp` macro
<RX14> oh jeez my github notifications
<RX14> asterite pls
<travis-ci> crystal-lang/crystal#4f810f2 (master - Merge pull request #3212 from ozra/fix/aliased_generic_matching_in_restriction): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/156789542
bjz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
<frodo-li> jhass: thank you
<frodo-li> Tophe: you also :)
frodo-li has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/viL3i
<crystal-gh> crystal/master 76983c2 Ary Borenszweig: Added issue template so hopefully issues are easier to understand and reproduce
<Tophe> I just do:
<Tophe> require "kemal"
<Tophe> logging false
<Tophe> and it stop logging to stdout
<Tophe> oups no, it just don't work when I do that
<travis-ci> crystal-lang/crystal#7fcae5a (master - Int: implement F-division (floor division). Also fix #575: signed integer division overflow.): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/156794521
<BlaXpirit> T_T
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
<BlaXpirit> i mean, it is still possible to make this extensible like they want, just introduce an ugly compiler extension
pawnbox has quit [Ping timeout: 240 seconds]
<RX14> there should be a way to write compiler passes as extensions in crystal
grzesebe has quit [Remote host closed the connection]
<RX14> rust has something similar
crystal-lang398 has quit [Ping timeout: 264 seconds]
grzesebe has joined #crystal-lang
grzesebe has quit [Remote host closed the connection]
vegai has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/viLnw
<crystal-gh> crystal/master 90e9cfb Ary Borenszweig: Compiler: fixed missing analysis of macros for instance and class vars initializers. Fixes #3191
<travis-ci> crystal-lang/crystal#76983c2 (master - Added issue template so hopefully issues are easier to understand and reproduce): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/156799110
<RX14> BlaXpirit, we can still have diff functions with power_assert...
<RX14> i think
<RX14> we just decide if the root expression is a ==
<RX14> capture left and right
<RX14> and generate a call, after the diff
<RX14> maybe left.human_diff right
<RX14> or even
<RX14> left.assertion_failed right
<BlaXpirit> RX14, bleh sure we can
<RX14> it's kind of ugly i know
<BlaXpirit> and it's one specific case anyway
<RX14> the spec asserts are more extensible in that the very core of it is crystal code
<RX14> but I think the power asserts offer more advantages
<RX14> and i don't think that asterite's assertion that having the values of subexpressions is useless for debugging
<RX14> I can personally refute that
grzesebe has joined #crystal-lang
grzesebe has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<travis-ci> crystal-lang/crystal#90e9cfb (master - Compiler: fixed missing analysis of macros for instance and class vars initializers. Fixes #3191): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/156805853
pawnbox has quit [Ping timeout: 265 seconds]
<FromGitter> <sdogruyol> ugh
<FromGitter> <sdogruyol> it's hard to write a good multipart parser :/
<RX14> sdogruyol, wait for my reply on github
<FromGitter> <sdogruyol> okay
<FromGitter> <sdogruyol> @RX14 i totally agree with you on that
<RX14> sdogruyol, thanks!
<FromGitter> <sdogruyol> most of the performant parsers that i read the source of are callback based
<FromGitter> <sdogruyol> @RX14 can you make this as a seperate shard or?
<RX14> it can be a seperate shard
<RX14> but i want to wait for a definite no on 0.19 before
<FromGitter> <sdogruyol> yeah same
<RX14> currently it's just added classes
<FromGitter> <sdogruyol> i'm waiting specially on this PR to release Kemal 0.15
<RX14> no money patches
<RX14> monkey*
<FromGitter> <sdogruyol> yeah i like having no mp
<RX14> so it's even cleaner to shard out
<FromGitter> <sdogruyol> pretty neat
<FromGitter> <sdogruyol> :+1:
<RX14> well the part which were "monkey patches" have already been merged
<FromGitter> <sdogruyol> which one was that
<RX14> i had some Slice improvements
unshadow has quit [Quit: leaving]
<RX14> IO::Delimited PR added move methods on slice
<FromGitter> <sdogruyol> ah yeah i remember now
<RX14> IO::Sized replaced some COntent with that
<RX14> but that wouldn't have been in the shard anyway
<RX14> so it would only have been added methods on slice
<RX14> but thats already confirmed for 0.19 anyway
<FromGitter> <sdogruyol> let's see how the PR turns out then
<RX14> 0.19.0 was meant to be concurrency...
<RX14> parallelism*
<RX14> but oh well
<FromGitter> <sdogruyol> really?
<RX14> yeah, for a while
<RX14> it was expected
<FromGitter> <sdogruyol> well, i'm not sure about that
<FromGitter> <sdogruyol> probably the next release
<FromGitter> <sdogruyol> this is more focus on compiler improvements and refactor
pawnbox has joined #crystal-lang
<Tophe> hello all, I have just started porting ruby code to crystal.
<Tophe> I have a question about runtime error
<Tophe> a = {:bob => 3, :robby => 4} # Hash
<Tophe> puts a[:not_here]
<Tophe> give
<Tophe> Missing hash key: :not_here (KeyError)
<Tophe> [4388410] *CallStack#initialize:Array(Pointer(Void)) +10
<Tophe> [4388519] *CallStack::unwind:Array(Pointer(Void)) +87
<Tophe> ok that's true, but there is no way to find the crystal line code number who produce the error ?
<RX14> Tophe, unfortunately not at the moment
<RX14> you need to compile with debug info, and use gdb to get line numbers
<RX14> but, there is a PR on github which adds line numbers to backtraces
<RX14> so it should be coming soon if not 0.19
<Tophe> RX14, thank's !
<Papierkorb> Tophe: Also, wrt your snippet, you may be looking for #[]? : some_hash[:not_there]? #=> nil
<crystal-gh> [crystal] amedeiros opened pull request #3226: Fixes #3107 (master...feature/#3107_html_unescape) https://git.io/viLK7
Nik736 has quit [Ping timeout: 264 seconds]
toydestroyer has quit [Remote host closed the connection]
toydestroyer has joined #crystal-lang
LastWhisper____ has joined #crystal-lang
mkl0501 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
bew78 has quit [Ping timeout: 264 seconds]
mark_66 has quit [Quit: Leaving.]
pawnbox has joined #crystal-lang
txdv has quit [Quit: WeeChat 1.6-rc1]
pawnbox has quit [Ping timeout: 250 seconds]
txdv has joined #crystal-lang
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mhib has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mose has quit [Changing host]
mose has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
tomchapin has joined #crystal-lang
tomchapin has quit [Client Quit]
kiliankoe has joined #crystal-lang
LastWhisper____ has joined #crystal-lang
soveran has quit [Remote host closed the connection]
onethirtyfive has quit [Remote host closed the connection]
early has quit [Quit: Leaving]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mhib has quit [Quit: Leaving]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
Ven has joined #crystal-lang
early has joined #crystal-lang
matp has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
toydestroyer has left #crystal-lang ["Textual IRC Client: www.textualapp.com"]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
<FromGitter> <FraLotito> Hello all, I've just installed crystal, I noticed that in the standard library there isn't an implementation of the stack container, why? I'm interested in this projects and I want to contribute, maybe this is a valid starting point
<BlaXpirit> FraLotito, there is no need for a stack because Array is an efficient implementation of a stack
<BlaXpirit> and Deque is an efficient implementation of both a stack and a queue
<FromGitter> <FraLotito> Ok, thanks, is there anything I can do?
<BlaXpirit> FraLotito, documentation contributions are welcome, for example this stood out to me today https://crystal-lang.org/api/0.18.7/Math.html#hypot%28value1%3AFloat64%2Cvalue2%3AFloat64%29-instance-method
<BlaXpirit> FraLotito, publish nice libraries, report bugs
<FromGitter> <sdogruyol> @FraLotito tutorials, blog posts anything :P
onethirtyfive has joined #crystal-lang
<FromGitter> <FraLotito> ok, thanks guys, I'll see what I can do :smile:
onethirtyfive has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
srabuini has quit []
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
LastWhisper____ has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
bew78 has joined #crystal-lang
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
bew78 has quit [Ping timeout: 250 seconds]
soveran has quit [Remote host closed the connection]
_whitelogger has joined #crystal-lang
unshadow has joined #crystal-lang
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unshadow has quit [Ping timeout: 250 seconds]
unshadow has joined #crystal-lang
<FromGitter> <crisward> anyone know how to create a crystal time object with milliseconds?
<BlaXpirit> >> 5.milliseconds
<DeBot> BlaXpirit: # => 00:00:00.0050000 - https://carc.in/#/r/188n
<BlaXpirit> crisward, ^
sebasr has joined #crystal-lang
<crystal-gh> [crystal] kostya opened pull request #3227: Blank? second attempt (master...blank) https://git.io/vitHp
matp has joined #crystal-lang
<FromGitter> <sdogruyol> that's some sick macro over there
<RX14> macro?
<FromGitter> <sdogruyol> https://carc.in/#/r/188n
<RX14> oh yeah
<FromGitter> <sdogruyol> i don't even know wth is going on
<FromGitter> <sdogruyol> lol
<RX14> it pastes literally evey expression except the last
<RX14> then it decides if the last expression produces a value
<RX14> (if it's Def FunDef Macro ClassDef LibDef)
<FromGitter> <sdogruyol> ugh
<RX14> then if it does, it grabs the result
<RX14> and prints it
<RX14> of not it prints => nil
<FromGitter> <sdogruyol> guess i'm not that good with macros at late night :D
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjz has quit [Quit: Textual IRC Client: www.textualapp.com]
bjz has joined #crystal-lang
bjz has quit [Client Quit]
bjz has joined #crystal-lang
unshadow has quit [Ping timeout: 276 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vitNi
<crystal-gh> crystal/master 9c78ac5 Ary Borenszweig: Array#delete: return the last deleted element or nil. Fixes #3216
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philpax has quit [Ping timeout: 264 seconds]
bjz has joined #crystal-lang
triangles has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<travis-ci> crystal-lang/crystal#9c78ac5 (master - Array#delete: return the last deleted element or nil. Fixes #3216): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/156947114
Philpax has joined #crystal-lang