00:00
pawnbox has quit [Ping timeout: 260 seconds]
00:10
LastWhisper____ has joined #crystal-lang
00:26
pawnbox has joined #crystal-lang
00:31
pawnbox has quit [Ping timeout: 265 seconds]
01:13
bjz has joined #crystal-lang
01:19
bjz_ has joined #crystal-lang
01:20
bjz has quit [Ping timeout: 255 seconds]
01:23
bjz_ has quit [Client Quit]
01:26
bjz has joined #crystal-lang
01:37
<
FromGitter >
<jwoertink> Is there any sort of exception you can catch for an "undefined method" error being thrown?
01:38
<
FromGitter >
<jwoertink> ```expect_raises(MethodMissingErrorException) { "".this_is_fake }```
01:40
<
FromGitter >
<jwoertink> I guess I could just check `responds_to?` ... Would be good to know though
01:49
bjz_ has joined #crystal-lang
01:50
bjz has quit [Ping timeout: 258 seconds]
02:07
pawnbox has joined #crystal-lang
02:09
snsei_ has quit [Remote host closed the connection]
02:11
<
FromGitter >
<jwoertink> Ok, I found it `require "compiler/crystal/syntax"` `Crystal::SyntaxException`
02:12
pawnbox has quit [Ping timeout: 265 seconds]
02:23
ome has joined #crystal-lang
02:28
pawnbox has joined #crystal-lang
02:32
pawnbox has quit [Ping timeout: 255 seconds]
02:33
<
crystal-gh >
[crystal] amitsaha opened pull request #3223: Update Dockerfile to build from Ubuntu 14.04 (master...dockerfile_fix)
https://git.io/viIBr
02:44
g3funk has quit [Ping timeout: 276 seconds]
02:48
g3funk has joined #crystal-lang
03:22
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:32
mgarciaisaia has joined #crystal-lang
03:36
mgarciaisaia has quit [Ping timeout: 244 seconds]
03:54
<
crystal-gh >
[crystal] amitsaha opened pull request #3224: Fix for #3196: Support --help for crystal eval (master...eval_help)
https://git.io/viIzn
04:10
snsei has joined #crystal-lang
04:15
snsei has quit [Ping timeout: 276 seconds]
04:17
badeball has quit [Remote host closed the connection]
04:30
pawnbox has joined #crystal-lang
04:37
tubbo has quit [Ping timeout: 252 seconds]
04:37
avdi has quit [Ping timeout: 255 seconds]
04:38
danzilio has quit [Read error: Connection reset by peer]
04:40
snsei has joined #crystal-lang
04:40
avdi has joined #crystal-lang
04:40
buggs has quit [Ping timeout: 255 seconds]
04:40
danzilio has joined #crystal-lang
04:41
tubbo has joined #crystal-lang
04:54
buggs has joined #crystal-lang
05:03
mroth has quit [Ping timeout: 250 seconds]
05:03
jnylen has quit [Ping timeout: 250 seconds]
05:03
guilleiguaran__ has quit [Ping timeout: 250 seconds]
05:03
mroth has joined #crystal-lang
05:03
jnylen has joined #crystal-lang
05:04
guilleiguaran__ has joined #crystal-lang
05:13
aemadrid has quit [Ping timeout: 250 seconds]
05:13
Majost has quit [Ping timeout: 250 seconds]
05:14
Majost has joined #crystal-lang
05:14
aemadrid has joined #crystal-lang
05:51
Philpax has quit [Ping timeout: 255 seconds]
05:55
soveran has joined #crystal-lang
05:55
soveran has joined #crystal-lang
05:55
soveran has quit [Changing host]
06:21
Cidan has quit [Ping timeout: 244 seconds]
06:23
zz_Cidan has joined #crystal-lang
06:23
zz_Cidan is now known as Cidan
06:23
Cidan has quit [Changing host]
06:23
Cidan has joined #crystal-lang
06:59
pawnbox has quit [Remote host closed the connection]
07:03
pawnbox has joined #crystal-lang
07:03
pawnbox has quit [Remote host closed the connection]
07:03
pawnbox has joined #crystal-lang
07:10
pawnbox has quit [Remote host closed the connection]
07:11
pawnbox has joined #crystal-lang
07:32
mark_66 has joined #crystal-lang
07:54
pawnbox has quit [Remote host closed the connection]
07:58
pawnbox has joined #crystal-lang
08:07
pawnbox has quit [Remote host closed the connection]
08:19
pawnbox has joined #crystal-lang
08:28
Nik736 has joined #crystal-lang
08:35
onethirtyfive has joined #crystal-lang
08:40
pawnbox has quit [Remote host closed the connection]
08:47
pawnbox has joined #crystal-lang
08:52
pawnbox has quit [Remote host closed the connection]
08:55
tilpner_ has joined #crystal-lang
08:56
<
RX14 >
i hate that there's no sensible way to cast to and from unions
08:57
<
RX14 >
i was trying to demonstrate YAML::Any, but I had to give up and include a text string and YAML.parse
08:57
<
RX14 >
i understand there has to be byte manipulations but that fact that you can't cast it is so incredibly annoying
08:58
Davy_CC has quit [*.net *.split]
08:58
fedruantine has quit [*.net *.split]
08:58
leafybasi has quit [*.net *.split]
08:58
coderobe has quit [*.net *.split]
08:58
tilpner has quit [*.net *.split]
08:58
tilpner_ is now known as tilpner
08:59
fedruantine has joined #crystal-lang
09:00
ome has quit [Quit: Connection closed for inactivity]
09:00
pawnbox has joined #crystal-lang
09:03
Davy_CC has joined #crystal-lang
09:03
leafybasi has joined #crystal-lang
09:20
scottj has left #crystal-lang [#crystal-lang]
09:28
pawnbox_ has joined #crystal-lang
09:28
pawnbox has quit [Read error: Connection reset by peer]
09:52
badeball has joined #crystal-lang
09:55
pawnbox_ has quit [Ping timeout: 240 seconds]
09:58
pawnbox has joined #crystal-lang
10:14
soveran has quit [Remote host closed the connection]
10:14
Tophe has joined #crystal-lang
10:30
pawnbox has quit [Ping timeout: 244 seconds]
10:32
pawnbox has joined #crystal-lang
10:36
soveran has joined #crystal-lang
10:36
soveran has joined #crystal-lang
10:36
soveran has quit [Changing host]
10:43
<
crystal-gh >
crystal/master 77dc00a Kenichi Kamiya: Fix duplicated iteration issue of Enumerable#in_groups_of (#3128)
10:46
crystal-lang398 has joined #crystal-lang
10:47
pawnbox has quit [Remote host closed the connection]
10:48
pawnbox has joined #crystal-lang
10:50
grzesebe has joined #crystal-lang
10:50
pawnbox has quit [Remote host closed the connection]
10:50
pawnbox has joined #crystal-lang
10:55
pawnbox has quit [Ping timeout: 276 seconds]
10:58
pawnbox has joined #crystal-lang
11:01
<
crystal-gh >
crystal/master d99f402 Julien Portalier: Drop useless LibCrypto.rand_bytes fallback in SecureRandom...
11:01
<
crystal-gh >
crystal/master 78e5206 Ary Borenszweig: Merge pull request #2959 from ysbaddaden/std-securerandom-getrandom-urandom...
11:01
<
crystal-gh >
crystal/master e776bce Julien Portalier: Use getrandom and /dev/urandom to generate random bytes...
11:10
grzesebe has quit [Remote host closed the connection]
11:13
pawnbox has quit [Ping timeout: 276 seconds]
11:15
pawnbox has joined #crystal-lang
11:22
frodo-li has joined #crystal-lang
11:22
<
frodo-li >
hey guys
11:23
<
frodo-li >
does anyone know howto disable kemal logging to terminal?
11:23
grzesebe has joined #crystal-lang
11:23
<
frodo-li >
searched the websites and forums, but can't seem to find it
11:23
<
frodo-li >
i remember it being a flag that can be set
11:25
<
jhass >
Kemal.config.logger = nil I guess?
11:26
<
jhass >
or Kemal.config.logger = Logger.new(nil)
11:26
<
Tophe >
just do that
11:26
<
Tophe >
logging false
11:26
<
frodo-li >
so there is no more command flag i can give it
11:26
<
frodo-li >
i remember it distinctivly being somewith with production flag or something
11:27
<
jhass >
oh there's Kemal.config.logging = false
11:28
grzesebe has quit [Remote host closed the connection]
11:29
<
frodo-li >
and where can i set that
11:32
<
jhass >
somewhere before Kemal.run I guess
11:34
unshadow has joined #crystal-lang
11:35
tomchapi_ has joined #crystal-lang
11:36
<
frodo-li >
got it, i changed @logging = true to @logging is false in kemal/kemal/config.cr
11:36
tomchapin has quit [Ping timeout: 255 seconds]
11:36
<
frodo-li >
setting Kemal.config.logging = false didn't work
11:37
pawnbox_ has joined #crystal-lang
11:37
pawnbox has quit [Ping timeout: 244 seconds]
11:37
pawnbox_ has quit [Remote host closed the connection]
11:38
pawnbox has joined #crystal-lang
11:40
<
frodo-li >
somehow now Kemal.config.logging = false works
11:42
jeromegn has quit [Remote host closed the connection]
11:42
willl has quit [Remote host closed the connection]
11:42
pawnbox has quit [Remote host closed the connection]
11:49
willl has joined #crystal-lang
11:49
jeromegn has joined #crystal-lang
11:49
<
FromGitter >
<sdogruyol> logging false = Kemal.coffing.logging = false
11:49
<
FromGitter >
<sdogruyol> :P
11:50
pawnbox has joined #crystal-lang
12:03
pawnbox has quit [Ping timeout: 258 seconds]
12:03
pawnbox has joined #crystal-lang
12:05
<
crystal-gh >
crystal/master 4f810f2 Ary Borenszweig: Merge pull request #3212 from ozra/fix/aliased_generic_matching_in_restriction...
12:05
<
crystal-gh >
crystal/master bc763f0 Oscar Campbell: Fix #3197
12:10
pawnbox has quit [Remote host closed the connection]
12:15
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
12:25
grzesebe has joined #crystal-lang
12:29
pawnbox has joined #crystal-lang
12:29
<
crystal-gh >
crystal/master a3696e6 Ary Borenszweig: Compiler: fixed bug in truthy/falsey if
12:29
<
crystal-gh >
crystal/master b98a9c7 Ary Borenszweig: Symbol: quote symbols that start with a digit
12:29
<
crystal-gh >
crystal/master fdbde27 Ary Borenszweig: Make macro method `pp` use the same output format as the regular `pp` macro
12:30
<
RX14 >
oh jeez my github notifications
12:30
<
RX14 >
asterite pls
12:32
bjz has joined #crystal-lang
12:34
pawnbox has quit [Remote host closed the connection]
12:41
<
frodo-li >
jhass: thank you
12:42
<
frodo-li >
Tophe: you also :)
12:49
<
crystal-gh >
crystal/master 76983c2 Ary Borenszweig: Added issue template so hopefully issues are easier to understand and reproduce
12:50
<
Tophe >
require "kemal"
12:51
<
Tophe >
logging false
12:51
<
Tophe >
and it stop logging to stdout
12:52
<
Tophe >
oups no, it just don't work when I do that
13:01
pawnbox has joined #crystal-lang
13:04
Philpax has joined #crystal-lang
13:04
<
BlaXpirit >
i mean, it is still possible to make this extensible like they want, just introduce an ugly compiler extension
13:05
pawnbox has quit [Ping timeout: 240 seconds]
13:05
<
RX14 >
there should be a way to write compiler passes as extensions in crystal
13:05
grzesebe has quit [Remote host closed the connection]
13:05
<
RX14 >
rust has something similar
13:05
crystal-lang398 has quit [Ping timeout: 264 seconds]
13:07
grzesebe has joined #crystal-lang
13:10
grzesebe has quit [Remote host closed the connection]
13:13
vegai has joined #crystal-lang
13:14
<
crystal-gh >
crystal/master 90e9cfb Ary Borenszweig: Compiler: fixed missing analysis of macros for instance and class vars initializers. Fixes #3191
13:24
<
RX14 >
BlaXpirit, we can still have diff functions with power_assert...
13:24
<
RX14 >
we just decide if the root expression is a ==
13:24
<
RX14 >
capture left and right
13:24
<
RX14 >
and generate a call, after the diff
13:25
<
RX14 >
maybe left.human_diff right
13:25
<
RX14 >
left.assertion_failed right
13:25
<
BlaXpirit >
RX14, bleh sure we can
13:25
<
RX14 >
it's kind of ugly i know
13:26
<
BlaXpirit >
and it's one specific case anyway
13:26
<
RX14 >
the spec asserts are more extensible in that the very core of it is crystal code
13:26
<
RX14 >
but I think the power asserts offer more advantages
13:27
<
RX14 >
and i don't think that asterite's assertion that having the values of subexpressions is useless for debugging
13:27
<
RX14 >
I can personally refute that
13:29
grzesebe has joined #crystal-lang
13:31
grzesebe has quit [Remote host closed the connection]
13:35
pawnbox has joined #crystal-lang
13:38
pawnbox has quit [Remote host closed the connection]
13:41
pawnbox has joined #crystal-lang
13:46
pawnbox has quit [Ping timeout: 265 seconds]
13:59
<
FromGitter >
<sdogruyol> ugh
13:59
<
FromGitter >
<sdogruyol> it's hard to write a good multipart parser :/
13:59
<
RX14 >
sdogruyol, wait for my reply on github
13:59
<
FromGitter >
<sdogruyol> okay
14:07
<
FromGitter >
<sdogruyol> @RX14 i totally agree with you on that
14:14
<
RX14 >
sdogruyol, thanks!
14:16
<
FromGitter >
<sdogruyol> most of the performant parsers that i read the source of are callback based
14:29
<
FromGitter >
<sdogruyol> @RX14 can you make this as a seperate shard or?
14:30
<
RX14 >
it can be a seperate shard
14:30
<
RX14 >
but i want to wait for a definite no on 0.19 before
14:30
<
FromGitter >
<sdogruyol> yeah same
14:30
<
RX14 >
currently it's just added classes
14:30
<
FromGitter >
<sdogruyol> i'm waiting specially on this PR to release Kemal 0.15
14:30
<
RX14 >
no money patches
14:30
<
FromGitter >
<sdogruyol> yeah i like having no mp
14:30
<
RX14 >
so it's even cleaner to shard out
14:30
<
FromGitter >
<sdogruyol> pretty neat
14:30
<
FromGitter >
<sdogruyol> :+1:
14:31
<
RX14 >
well the part which were "monkey patches" have already been merged
14:31
<
FromGitter >
<sdogruyol> which one was that
14:31
<
RX14 >
i had some Slice improvements
14:32
unshadow has quit [Quit: leaving]
14:32
<
RX14 >
IO::Delimited PR added move methods on slice
14:32
<
FromGitter >
<sdogruyol> ah yeah i remember now
14:33
<
RX14 >
IO::Sized replaced some COntent with that
14:33
<
RX14 >
but that wouldn't have been in the shard anyway
14:33
<
RX14 >
so it would only have been added methods on slice
14:33
<
RX14 >
but thats already confirmed for 0.19 anyway
14:33
<
FromGitter >
<sdogruyol> let's see how the PR turns out then
14:34
<
RX14 >
0.19.0 was meant to be concurrency...
14:34
<
RX14 >
parallelism*
14:34
<
FromGitter >
<sdogruyol> really?
14:34
<
RX14 >
yeah, for a while
14:34
<
RX14 >
it was expected
14:34
<
FromGitter >
<sdogruyol> well, i'm not sure about that
14:35
<
FromGitter >
<sdogruyol> probably the next release
14:35
<
FromGitter >
<sdogruyol> this is more focus on compiler improvements and refactor
14:36
pawnbox has joined #crystal-lang
14:42
<
Tophe >
hello all, I have just started porting ruby code to crystal.
14:42
<
Tophe >
I have a question about runtime error
14:42
<
Tophe >
a = {:bob => 3, :robby => 4} # Hash
14:42
<
Tophe >
puts a[:not_here]
14:42
<
Tophe >
Missing hash key: :not_here (KeyError)
14:42
<
Tophe >
[4388410] *CallStack#initialize:Array(Pointer(Void)) +10
14:42
<
Tophe >
[4388519] *CallStack::unwind:Array(Pointer(Void)) +87
14:43
<
Tophe >
ok that's true, but there is no way to find the crystal line code number who produce the error ?
14:46
<
RX14 >
Tophe, unfortunately not at the moment
14:47
<
RX14 >
you need to compile with debug info, and use gdb to get line numbers
14:47
<
RX14 >
but, there is a PR on github which adds line numbers to backtraces
14:47
<
RX14 >
so it should be coming soon if not 0.19
14:51
<
Tophe >
RX14, thank's !
15:05
<
Papierkorb >
Tophe: Also, wrt your snippet, you may be looking for #[]? : some_hash[:not_there]? #=> nil
15:05
<
crystal-gh >
[crystal] amedeiros opened pull request #3226: Fixes #3107 (master...feature/#3107_html_unescape)
https://git.io/viLK7
15:08
Nik736 has quit [Ping timeout: 264 seconds]
15:17
toydestroyer has quit [Remote host closed the connection]
15:18
toydestroyer has joined #crystal-lang
15:22
LastWhisper____ has joined #crystal-lang
15:25
mkl0501 has joined #crystal-lang
15:37
pawnbox has quit [Remote host closed the connection]
15:38
pawnbox has joined #crystal-lang
15:39
pawnbox has quit [Remote host closed the connection]
15:40
bew78 has quit [Ping timeout: 264 seconds]
15:42
mark_66 has quit [Quit: Leaving.]
15:49
pawnbox has joined #crystal-lang
15:51
txdv has quit [Quit: WeeChat 1.6-rc1]
15:54
pawnbox has quit [Ping timeout: 250 seconds]
15:55
txdv has joined #crystal-lang
16:04
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
16:20
mhib has joined #crystal-lang
16:23
pawnbox has joined #crystal-lang
16:30
pawnbox has quit [Remote host closed the connection]
16:32
pawnbox has joined #crystal-lang
16:37
mose has quit [Changing host]
16:37
mose has joined #crystal-lang
16:37
FromGitter has quit [Remote host closed the connection]
16:37
FromGitter has joined #crystal-lang
16:51
tomchapin has joined #crystal-lang
16:51
tomchapin has quit [Client Quit]
17:03
kiliankoe has joined #crystal-lang
17:07
LastWhisper____ has joined #crystal-lang
17:20
soveran has quit [Remote host closed the connection]
17:22
onethirtyfive has quit [Remote host closed the connection]
17:26
early has quit [Quit: Leaving]
17:27
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
17:30
mhib has quit [Quit: Leaving]
17:31
soveran has joined #crystal-lang
17:31
soveran has joined #crystal-lang
17:31
soveran has quit [Changing host]
17:50
Ven has joined #crystal-lang
17:56
early has joined #crystal-lang
17:56
matp has quit [Remote host closed the connection]
17:57
soveran has quit [Remote host closed the connection]
18:15
Raimondii has joined #crystal-lang
18:18
Raimondi has quit [Ping timeout: 240 seconds]
18:18
Raimondii is now known as Raimondi
18:19
<
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
18:20
<
BlaXpirit >
FraLotito, there is no need for a stack because Array is an efficient implementation of a stack
18:20
<
BlaXpirit >
and Deque is an efficient implementation of both a stack and a queue
18:21
<
FromGitter >
<FraLotito> Ok, thanks, is there anything I can do?
18:22
<
BlaXpirit >
FraLotito, publish nice libraries, report bugs
18:22
<
FromGitter >
<sdogruyol> @FraLotito tutorials, blog posts anything :P
18:23
onethirtyfive has joined #crystal-lang
18:25
<
FromGitter >
<FraLotito> ok, thanks guys, I'll see what I can do :smile:
18:28
onethirtyfive has quit [Ping timeout: 260 seconds]
18:57
soveran has joined #crystal-lang
19:02
soveran has quit [Ping timeout: 244 seconds]
19:03
srabuini has quit []
19:09
soveran has joined #crystal-lang
19:13
soveran has quit [Remote host closed the connection]
19:17
LastWhisper____ has joined #crystal-lang
19:25
soveran has joined #crystal-lang
19:25
soveran has joined #crystal-lang
19:25
soveran has quit [Changing host]
19:36
bew78 has joined #crystal-lang
19:55
onethirtyfive has joined #crystal-lang
20:00
onethirtyfive has quit [Ping timeout: 276 seconds]
20:01
pawnbox has quit [Remote host closed the connection]
20:02
pawnbox has joined #crystal-lang
20:05
bew78 has quit [Ping timeout: 250 seconds]
20:05
soveran has quit [Remote host closed the connection]
20:21
_whitelogger has joined #crystal-lang
20:29
unshadow has joined #crystal-lang
20:29
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
20:55
unshadow has quit [Ping timeout: 250 seconds]
20:56
unshadow has joined #crystal-lang
21:17
<
FromGitter >
<crisward> anyone know how to create a crystal time object with milliseconds?
21:25
<
BlaXpirit >
>> 5.milliseconds
21:26
<
BlaXpirit >
crisward, ^
21:27
sebasr has joined #crystal-lang
21:28
matp has joined #crystal-lang
21:30
<
FromGitter >
<sdogruyol> that's some sick macro over there
21:33
<
FromGitter >
<sdogruyol> i don't even know wth is going on
21:33
<
FromGitter >
<sdogruyol> lol
21:33
<
RX14 >
it pastes literally evey expression except the last
21:34
<
RX14 >
then it decides if the last expression produces a value
21:34
<
RX14 >
(if it's Def FunDef Macro ClassDef LibDef)
21:34
<
FromGitter >
<sdogruyol> ugh
21:34
<
RX14 >
then if it does, it grabs the result
21:34
<
RX14 >
and prints it
21:34
<
RX14 >
of not it prints => nil
21:35
<
FromGitter >
<sdogruyol> guess i'm not that good with macros at late night :D
21:48
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:55
bjz has joined #crystal-lang
21:55
bjz has quit [Client Quit]
21:59
bjz has joined #crystal-lang
22:01
unshadow has quit [Ping timeout: 276 seconds]
22:09
<
crystal-gh >
crystal/master 9c78ac5 Ary Borenszweig: Array#delete: return the last deleted element or nil. Fixes #3216
22:12
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:13
bjz has joined #crystal-lang
22:28
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:46
Philpax has quit [Ping timeout: 264 seconds]
22:48
bjz has joined #crystal-lang
22:56
triangles has joined #crystal-lang
22:58
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:34
Philpax has joined #crystal-lang