00:05
Lucifer has joined #crystal-lang
00:05
Lucifer is now known as Guest13869
00:05
Guest13869 is now known as Lucif
00:32
Lucif has quit [Remote host closed the connection]
01:03
sp4rrow has joined #crystal-lang
01:33
ragmaanir has quit [Quit: Leaving]
02:00
Gasher has joined #crystal-lang
02:09
Gasher has quit [Quit: Leaving]
02:15
cyjimmy264 has joined #crystal-lang
02:21
sp4rrow has quit [Quit: Textual]
02:55
cyjimmy264 has quit [Remote host closed the connection]
02:55
cyjimmy264 has joined #crystal-lang
02:59
cyjimmy264 has quit [Remote host closed the connection]
02:59
cyjimmy264 has joined #crystal-lang
03:05
donpdonp has quit [Quit: WeeChat 1.0.1]
03:35
edjsu has joined #crystal-lang
03:35
edjsu has quit [Quit: WeeChat 1.2]
03:36
edjsu has joined #crystal-lang
04:24
pawnbox has joined #crystal-lang
04:35
pawnbox has quit [Remote host closed the connection]
04:36
pawnbox has joined #crystal-lang
04:40
pawnbox has quit [Ping timeout: 244 seconds]
05:06
marcosdsanchez has quit [Read error: Connection reset by peer]
05:06
marcosdsanchez has joined #crystal-lang
05:30
pawnbox has joined #crystal-lang
05:35
pawnbox has quit [Ping timeout: 268 seconds]
05:42
_jungh4ns has quit [Remote host closed the connection]
06:33
fridgerator has joined #crystal-lang
07:16
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:53
marcosdsanchez has quit [Read error: Connection reset by peer]
07:53
marcosdsanchez has joined #crystal-lang
08:55
zodiak has joined #crystal-lang
08:56
stef__ has quit [Ping timeout: 260 seconds]
09:11
Ven has joined #crystal-lang
10:16
trapped has joined #crystal-lang
10:38
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
10:44
Philpax has quit [Ping timeout: 244 seconds]
10:46
Philpax has joined #crystal-lang
10:56
bjz has joined #crystal-lang
11:58
<
RX14 >
I built a parser for .inspect output to prettify it
12:15
trapped_ has joined #crystal-lang
12:16
matp_ has joined #crystal-lang
12:18
trapped has quit [Ping timeout: 260 seconds]
12:18
matp has quit [Ping timeout: 252 seconds]
12:29
<
crystal-gh >
crystal/master 227f036 Ary Borenszweig: Added initial fiber-safe Mutex. Moved old mutex to Thread::Mutex....
12:32
<
crystal-gh >
crystal/master db753ae Ary Borenszweig: Concurrent: use Channel(Nil) in parallel
12:33
<
crystal-gh >
crystal/master 869b306 Ary Borenszweig: Concurrent: ensure channel send after each job
12:41
<
RX14 >
oh, someone already write slim for crystal
12:49
<
crystal-gh >
[crystal] asterite opened pull request #2333: Logger: use mutex instead of channels (master...feature/logger_mutex)
https://git.io/va1OA
12:52
matp_ is now known as matp
12:59
Philpax has quit [Ping timeout: 248 seconds]
13:11
fridgerator has joined #crystal-lang
13:24
triangles has quit [Quit: Leaving]
13:32
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:35
Gasher has joined #crystal-lang
13:36
fridgerator has joined #crystal-lang
13:38
<
crystal-gh >
crystal/master bebded9 Ary Borenszweig: Compiler: command + args if `--verbose` is passed
13:38
<
crystal-gh >
crystal/master 51f63e8 Ary Borenszweig: Compiler: cd into the output directory and execute link command there. Related to #2332...
13:47
trapped_ is now known as trapped
13:50
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:51
fridgerator has joined #crystal-lang
13:51
cyjimmy264 has quit [Ping timeout: 250 seconds]
13:57
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:31
fridgerator has joined #crystal-lang
14:38
cyjimmy264 has joined #crystal-lang
14:45
<
crystal-gh >
crystal/master ea91958 Ary Borenszweig: Makefile: pass `-D without_openssl -D without_zlib` in crystal target
14:45
<
crystal-gh >
crystal/master 9c92599 Ary Borenszweig: Playground: some fixes in _about.html
14:51
<
crystal-gh >
[crystal] miketheman opened pull request #2334: Add std lib-only specs target (master...miketheman/std_specs)
https://git.io/va10V
15:38
<
crystal-gh >
[crystal] asterite closed pull request #2320: Feature/crystal env (master...feature/crystal_env)
https://git.io/vaPSS
15:46
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:01
krtv` has joined #crystal-lang
16:03
trapped_ has joined #crystal-lang
16:05
trapped has quit [Ping timeout: 240 seconds]
16:12
<
crystal-gh >
[crystal] MatthieuBlm opened pull request #2335: Add comment in logger.cr (master...logger-doc)
https://git.io/va1ad
16:14
kfpratt has joined #crystal-lang
16:14
fridgerator has joined #crystal-lang
16:15
<
jeromegn >
RX14: oh hai :) yea I wrote a slim-like templating language. It's not nearly done though, but it works pretty well as it is. Contributions welcomed!
16:15
fridgerator has quit [Client Quit]
16:16
cyjimmy264 has quit [Ping timeout: 260 seconds]
16:29
<
miketheman >
>> 8.to_i32
16:30
Gasher has quit [Quit: Leaving]
16:32
<
RX14 >
jeromegn, yeah i'll make sure to use it and test it out
16:32
<
jeromegn >
that's awsome
16:35
kfpratt has quit [Remote host closed the connection]
16:36
<
BlaXpirit >
miketheman, :o
16:44
ragmaanir has joined #crystal-lang
16:49
vikaton has joined #crystal-lang
16:52
_whitelogger has joined #crystal-lang
16:53
<
RX14 >
damn, can't define a property with ? in the name
16:55
<
crystal-gh >
[crystal] DougEverly opened pull request #2336: Tempfile.dirname (master...tmpfile_dirname2)
https://git.io/va1rD
16:57
<
miketheman >
RX14: I think I've seen those implemented as methods
16:57
<
RX14 >
you can define a method with ? in the name
16:57
<
RX14 >
but not a class variable
16:57
<
RX14 >
so property online? : Bool fals
16:58
<
RX14 >
so I have to be a little more verbose
17:01
<
miketheman >
oh, I get it now.
17:01
<
miketheman >
so I guess `proprty? online : Bool` ought to work
17:01
<
miketheman >
property?*
17:04
<
RX14 >
but property? is for nilable things
17:04
<
RX14 >
it defines a getter? that returns nilable and a getter that returns not_nil!
17:05
<
RX14 >
but it also defines .online and .online=
17:05
<
RX14 >
not just .online?=
17:05
<
RX14 >
it's a different usecase
17:07
<
umurgdk >
hey, is there any workaround to pass self to another object in the constructor?
17:07
<
umurgdk >
like this one
17:08
<
RX14 >
if the Bullet constructor called update on Gun, it would break
17:09
<
RX14 >
the best way to do this would be to just accept @bullet as nillable
17:10
<
umurgdk >
yeah it seems so. i didn't wanted to deal with nil at all but yeah. you're right you can't be sure what bullet constructor does with delegate
17:12
<
RX14 >
you could create a "dummy" bullet instance which you initialise @bullet to first
17:12
<
RX14 >
but thats' just horrible
17:16
<
umurgdk >
yeah exactly. but anyway its not that hard to deal with nil in the bullet :)
17:30
<
crystal-gh >
[crystal] miketheman opened pull request #2337: failing test: udp socket send (master...miketheman/udp_send)
https://git.io/va16g
17:40
<
umurgdk >
is it possible to write c++ bindings? or we need c bindings?
17:41
<
RX14 >
you need C bindings
17:45
A_Harlan has joined #crystal-lang
18:00
A_Harlan is now known as aharlan
18:20
bcardiff has joined #crystal-lang
18:20
rok has joined #crystal-lang
18:58
fridgerator has joined #crystal-lang
19:03
umurgdk has quit [Remote host closed the connection]
19:09
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:14
furkan_ has joined #crystal-lang
19:16
<
furkan_ >
im new on Crystal. is there any editor which is support to Crystal ?
19:17
furkan_ is now known as Lucifer_
19:22
<
BlaXpirit >
Lucifer_, Atom maybe?
19:23
<
BlaXpirit >
i dotn care, i just write in my favorite editor, with ruby syntax highlighting
19:42
<
Lucifer_ >
thank u all for helping. I'll try them. :)
19:43
umurgdk has joined #crystal-lang
19:46
bcardiff has quit [Quit: bcardiff]
19:47
umurgdk has quit [Ping timeout: 244 seconds]
19:52
Gasher has joined #crystal-lang
19:57
vikaton has quit [Quit: Connection closed for inactivity]
19:57
Gasher has quit [Quit: Leaving]
19:58
vikaton has joined #crystal-lang
20:02
umurgdk has joined #crystal-lang
20:04
pawnbox has joined #crystal-lang
20:13
Lucifer_ has quit [Read error: Connection reset by peer]
20:15
bcardiff has joined #crystal-lang
20:18
bcardiff has quit [Client Quit]
20:28
<
BlaXpirit >
is there some way to find a list of all operators and keywords?
20:29
aharlan has joined #crystal-lang
20:29
pawnbox has quit [Remote host closed the connection]
20:31
aharlan has quit [Client Quit]
20:32
Gasher has joined #crystal-lang
20:32
<
BlaXpirit >
thanks. but that's not exactly a list
20:32
havenwood has quit [Remote host closed the connection]
20:34
<
RX14 >
it's probably the closest you will get
20:34
<
RX14 >
you can just ctrl-f check_ident_or_keyword
20:36
<
BlaXpirit >
that would miss a few
20:37
<
RX14 >
you could look at vim-crystal
20:37
<
RX14 >
there might be one there
20:37
<
RX14 >
not really :P
20:37
fridgerator has joined #crystal-lang
20:44
<
RX14 >
now that's write-once for ya
20:45
Philpax has joined #crystal-lang
20:51
Philpax has quit [Ping timeout: 248 seconds]
20:53
cyjimmy264 has joined #crystal-lang
20:56
<
BlaXpirit >
now... what files of standard library are available without require?
20:57
<
BlaXpirit >
grep -rP 'require ".*\barray"' #=> src/prelude.cr:require "array"
20:59
Lucifer_ has joined #crystal-lang
21:03
<
Lucifer_ >
Hi. I create an array using two_e = Array(Array(Int32)).new(2,[0,0]) when I try to change this array like two_e[0][0] = 2 output [[2,0],[2,0]] but ı expect [[2,0],[0,0]] why ?
21:06
<
RX14 >
Lucifer_, because you're filling it with a default array [0,0]
21:06
<
RX14 >
it doesn't duplicate the array
21:06
<
RX14 >
so you've filled the array with 2 references to the same array
21:09
<
BlaXpirit >
Lucifer_, try this instead
21:09
<
BlaXpirit >
>> Array.new(2) { [0, 0] }
21:09
<
BlaXpirit >
creates an array by running this block of code twice. this ensures that this is actually different arrays
21:09
<
BlaXpirit >
>> typeof(Array.new(2) { [0, 0] })
21:12
<
Lucifer_ >
I got it.. Thank u all!
21:12
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:13
matp has quit [Remote host closed the connection]
21:13
fridgerator has joined #crystal-lang
21:20
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
21:30
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:32
bjz has joined #crystal-lang
21:33
bjz has quit [Client Quit]
21:35
kulelu88 has joined #crystal-lang
21:35
kulelu88 has joined #crystal-lang
22:03
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:05
fridgerator has joined #crystal-lang
22:05
<
crystal-gh >
crystal/master 5dbd282 Ary Borenszweig: Compiler: missing correct trace when macro expansion typing fails
22:06
Lucifer_ has quit [Quit: Leaving]
22:07
vikaton has quit [Quit: Connection closed for inactivity]
22:23
kulelu88 has left #crystal-lang ["Leaving"]
22:30
cyjimmy264 has quit [Remote host closed the connection]
22:36
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:40
rok has quit [Quit: rok]
23:04
matp has joined #crystal-lang
23:06
bcardiff has joined #crystal-lang
23:10
bcardiff has quit [Client Quit]
23:11
bcardiff has joined #crystal-lang
23:19
umurgdk has quit [Remote host closed the connection]
23:28
havenwood has joined #crystal-lang
23:28
havenwood has joined #crystal-lang
23:28
havenwood has quit [Changing host]
23:29
Philpax has joined #crystal-lang
23:30
Gasher^ has joined #crystal-lang
23:31
Gasher has quit [Ping timeout: 240 seconds]
23:37
umurgdk has joined #crystal-lang
23:37
trapped_ is now known as trapped
23:56
bcardiff has quit [Quit: bcardiff]
23:56
fridgerator has joined #crystal-lang