00:02
trapped has quit [Read error: Connection reset by peer]
00:07
shama has joined #crystal-lang
00:10
trapped has joined #crystal-lang
00:13
trapped has quit [Client Quit]
00:18
shama has quit [Remote host closed the connection]
00:19
shama has joined #crystal-lang
00:21
shama has quit [Remote host closed the connection]
00:33
shama has joined #crystal-lang
00:33
shama has quit [Remote host closed the connection]
00:40
shama has joined #crystal-lang
00:41
shama has quit [Remote host closed the connection]
01:20
fowlduck has quit [Remote host closed the connection]
01:22
greengriminal has quit [Quit: This computer has gone to sleep]
01:26
shama has joined #crystal-lang
01:40
fowlduck has joined #crystal-lang
01:45
fowlduck has quit [Ping timeout: 260 seconds]
01:47
<
crystal-gh >
crystal/master 5c93802 Ary Borenszweig: More syntax updates
01:47
<
crystal-gh >
crystal/master cf019e2 Ary Borenszweig: Fixed #2050: Regression with closures
01:50
greyblake has joined #crystal-lang
02:00
fowlduck has joined #crystal-lang
02:31
Philpax has quit [Ping timeout: 256 seconds]
03:11
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
03:11
greengriminal has joined #crystal-lang
03:19
buggs has quit [Quit: WeeChat 0.4.2]
05:00
fowlduck has quit [Remote host closed the connection]
05:20
fowlduck has joined #crystal-lang
05:25
fowlduck has quit [Ping timeout: 260 seconds]
06:21
fowlduck has joined #crystal-lang
06:25
fowlduck has quit [Ping timeout: 256 seconds]
06:31
Raimondi has quit [Ping timeout: 248 seconds]
07:22
fowlduck has joined #crystal-lang
07:26
fowlduck has quit [Ping timeout: 260 seconds]
07:40
fowlduck has joined #crystal-lang
07:50
buggs has joined #crystal-lang
09:17
greengriminal has quit [Quit: Leaving]
09:57
trapped has joined #crystal-lang
10:11
Davy_CC has quit [Ping timeout: 240 seconds]
10:12
Davy_CC has joined #crystal-lang
10:40
fowlduck has quit [Remote host closed the connection]
11:00
fowlduck has joined #crystal-lang
12:00
<
ytti >
if repos.class == Hash
12:00
<
ytti >
puts repos.keys
12:00
<
ytti >
why does this not know compile time, that it's hash?
12:00
<
ytti >
it seems bit awkward to traverse YAML document
12:00
<
ytti >
as i'll need stuff like
12:00
<
ytti >
if x.class == Hash
12:00
<
ytti >
puts (x.class as Hash).keys
12:00
<
ytti >
seems redundanat
13:14
mondok has joined #crystal-lang
13:16
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:24
<
ytti >
lines #4 and #6 seem redundant
13:24
<
ytti >
definition seems redundant, i should be just able to intansiate it, based on previous def
13:26
Philpax has joined #crystal-lang
13:50
mondok has quit [Ping timeout: 245 seconds]
14:00
fowlduck has quit [Remote host closed the connection]
14:03
trapped has joined #crystal-lang
14:40
fowlduck has joined #crystal-lang
14:46
Raimondi has joined #crystal-lang
15:16
matp has joined #crystal-lang
15:20
tomchapin has joined #crystal-lang
15:28
matp has quit [Remote host closed the connection]
15:30
<
crystal-gh >
[crystal] f opened pull request #2053: Assignment with if doesn't need assignment. (master...master)
https://git.io/vzoQ9
15:33
matp has joined #crystal-lang
15:38
<
crystal-gh >
crystal/master 385900d Ary Borenszweig: Simplified GC.add_finalizer
15:38
<
crystal-gh >
crystal/master 862ccfc Ary Borenszweig: Use free var in Enumerable#in_groups_of
15:38
<
crystal-gh >
crystal/master 2367653 Ary Borenszweig: Removed the `::` syntax for type declarations and uninitialized variables
15:55
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:03
unshadow has joined #crystal-lang
16:04
<
unshadow >
So, just wanted to make sure I'm geting the changes to Socket.read, lets say I want a blocking read, and want to read(1024), how do I do it ? I see that read only accepts Uint8
16:13
trapped has joined #crystal-lang
16:27
<
jhass >
unshadow: iirc you can just pass it a slice of that size
16:30
<
unshadow >
jhass: Like Slice(UInt8).new(1024) ?
16:30
<
unshadow >
read(Slice(UInt8).new(1024))
16:30
<
jhass >
not sure it returns it, but yeah
16:31
<
unshadow >
>> a = Slice(UInt8).new(1024)
16:31
<
DeBot >
unshadow: # => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... -
https://carc.in/#/r/qdr
16:31
<
unshadow >
how would I convert the data back to String afterwords ?
16:32
<
unshadow >
Slice supports to_s ?
16:32
<
ytti >
there is no File.readline, is it possible to figure out where symlink links to?
16:32
<
unshadow >
I see it does
16:39
<
jhass >
unshadow: pass it to String.new
16:47
<
unshadow >
jhass: I'll work on it, thanks for the heading :)
16:47
unshadow has quit [Quit: leaving]
16:50
greengriminal has joined #crystal-lang
16:50
greengriminal has quit [Client Quit]
16:54
Ox0dea has joined #crystal-lang
16:55
<
Ox0dea >
asterite: Do you mind my asking the source of your avatar?
17:36
smarr has joined #crystal-lang
17:37
<
BlaXpirit >
smarr, i think so
17:38
<
BlaXpirit >
smarr, yes
17:40
<
smarr >
BlaXpirit: ok, great, thanks
17:40
fowlduck has quit [Remote host closed the connection]
17:50
tomchapin has quit [Ping timeout: 276 seconds]
18:00
fowlduck has joined #crystal-lang
18:04
fowlduck has quit [Ping timeout: 240 seconds]
18:20
fowlduck has joined #crystal-lang
18:36
jeromegn has joined #crystal-lang
18:42
mondok has joined #crystal-lang
19:18
krtv` has quit [Ping timeout: 240 seconds]
19:20
krtv` has joined #crystal-lang
19:27
<
jeromegn >
what’s the best practice for hash key types? symbols or strings?
19:29
<
jeromegn >
*hash keys type
19:43
<
BlaXpirit >
jeromegn, this isn't about practice, this is about what's viable and what isn't
19:43
<
BlaXpirit >
if it is possible to use symbols in some case, then sure, use them
19:44
<
BlaXpirit >
jeromegn, but that also indicates that you probably shouldn't be using a hash in this case at all
19:44
<
crystal-gh >
crystal/master a3f262a Ary Borenszweig: Fixed: missing virtual type check in union type declaration
19:44
<
crystal-gh >
crystal/master 93d5d7e Ary Borenszweig: Fixed #2057: regression with block vars and macros
19:44
<
jeromegn >
it’s an options Hash on initialization
19:44
<
jeromegn >
enlighten me :)
19:46
Raimondii has joined #crystal-lang
19:48
Raimondi has quit [Ping timeout: 256 seconds]
19:48
<
crystal-gh >
crystal/master 010ce1f Ary Borenszweig: Merge pull request #2053 from f/master...
19:48
<
crystal-gh >
crystal/master f1cfe88 Fatih Kadir Akın: Assignment if doesn't need assignment
19:49
Ox0dea has left #crystal-lang ["WeeChat 1.5-dev"]
19:50
<
ytti >
[1 ytti@lintukoto ~/tmp/koti]% crystal build --link-flags -static bin/koti.cr
19:50
<
ytti >
ld: library not found for -lcrt0.o
19:51
Raimondii is now known as Raimondi
20:03
<
crystal-gh >
crystal/master 1e6f385 Ary Borenszweig: Fixed #2054: can't format heredoc in some cases
20:12
<
ytti >
grumble, why is compiling static binaries so hard
20:18
<
ytti >
sigh can't compile crystal on osx
20:18
<
ytti >
other than from brew
20:19
<
jeromegn >
that could be a long list though :)
20:20
<
jeromegn >
playing around making a native (not dependent on external libs) MongoDB driver in crystal
20:20
<
jeromegn >
just trying to send a first correct message at the moment
20:24
fowlduck has quit [Remote host closed the connection]
20:24
fowlduck has joined #crystal-lang
20:25
fowlduck has quit [Remote host closed the connection]
20:26
<
ytti >
tried to add readlink to file.cr, but can't compile to test if it works
20:27
<
ytti >
hopefully will get leehnox box back up next week
20:27
<
ytti >
so frustrading to work on osx :(
21:00
<
ytti >
there should be like community sanctioned support for money page, i'd pay for someone to figure out how to compile this statically
21:09
<
crystal-gh >
crystal/master eee3eff Ary Borenszweig: Fixed #2059: regression with class variables not being correctly typed
21:39
<
BlaXpirit >
hm I'm so lucky that my project in crystal didnt break
21:40
<
BlaXpirit >
one of the last changes I made just happened to replace the :: thing with something else
21:42
<
BlaXpirit >
waaaait a second, no I didn't replace it
21:51
<
yxhuvud >
urgh. It would be convenient sometimes if it was allowed to pass self before instantiating all non-nilables if the receiver never called any methods on it.
22:08
<
ytti >
i think we need more community/collaborate approach to docs
22:09
<
ytti >
what if API doc would include expandable section for code examples, with arrow up/down voting, to see which order they appear
22:09
<
ytti >
i think over time, examples would cover issues which confuse users
22:10
<
ytti >
also, maybe doc bounties? I'd pay 50eur on the spot, if someone can tell me how to compile (reasonably) static binary on osx
22:39
<
ytti >
i did, but that was after I had given up and already given up, and already half way through consolation rosé, so my take away from it was only 'bugger, it's not gonna be easy'
22:46
dylanmei has quit [Quit: ZZZzzz…]
22:47
dylanmei has joined #crystal-lang
23:24
<
mondok >
i have array of objects
23:25
<
mondok >
and try to find one element
23:25
<
mondok >
but seems "find" doesnot work
23:25
<
mondok >
and "select{}.first" works good
23:26
<
mondok >
where is problem?
23:34
pragmatism has quit [Ping timeout: 264 seconds]
23:36
pragmatism has joined #crystal-lang
23:55
tomchapin has joined #crystal-lang