jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.13.0 | 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
Lucifer has joined #crystal-lang
Lucifer is now known as Guest13869
Guest13869 is now known as Lucif
Lucif has quit [Remote host closed the connection]
sp4rrow has joined #crystal-lang
ragmaanir has quit [Quit: Leaving]
Gasher has joined #crystal-lang
Gasher has quit [Quit: Leaving]
cyjimmy264 has joined #crystal-lang
sp4rrow has quit [Quit: Textual]
<crystal-gh> [crystal] Dreauw opened pull request #2330: Fix some typos (master...typos) https://git.io/vaXSV
cyjimmy264 has quit [Remote host closed the connection]
cyjimmy264 has joined #crystal-lang
cyjimmy264 has quit [Remote host closed the connection]
cyjimmy264 has joined #crystal-lang
donpdonp has quit [Quit: WeeChat 1.0.1]
edjsu has joined #crystal-lang
edjsu has quit [Quit: WeeChat 1.2]
edjsu has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 268 seconds]
_jungh4ns has quit [Remote host closed the connection]
fridgerator has joined #crystal-lang
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
zodiak has joined #crystal-lang
stef__ has quit [Ping timeout: 260 seconds]
Ven has joined #crystal-lang
trapped has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philpax has quit [Ping timeout: 244 seconds]
Philpax has joined #crystal-lang
bjz has joined #crystal-lang
<RX14> I built a parser for .inspect output to prettify it
trapped_ has joined #crystal-lang
matp_ has joined #crystal-lang
trapped has quit [Ping timeout: 260 seconds]
matp has quit [Ping timeout: 252 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/va1YH
<crystal-gh> crystal/master 227f036 Ary Borenszweig: Added initial fiber-safe Mutex. Moved old mutex to Thread::Mutex....
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/va1OJ
<crystal-gh> crystal/master db753ae Ary Borenszweig: Concurrent: use Channel(Nil) in parallel
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/va1OI
<crystal-gh> crystal/master 869b306 Ary Borenszweig: Concurrent: ensure channel send after each job
<miketheman> hey gang. wrote up https://github.com/crystal-lang/crystal/issues/2332 a few minutes ago, I don't know what I'm missing.
<travis-ci> crystal-lang/crystal#227f036 (master - Added initial fiber-safe Mutex. Moved old mutex to Thread::Mutex.): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117255127
<RX14> oh, someone already write slim for crystal
<crystal-gh> [crystal] asterite opened pull request #2333: Logger: use mutex instead of channels (master...feature/logger_mutex) https://git.io/va1OA
<travis-ci> crystal-lang/crystal#869b306 (master - Concurrent: ensure channel send after each job): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117255530
matp_ is now known as matp
Philpax has quit [Ping timeout: 248 seconds]
fridgerator has joined #crystal-lang
triangles has quit [Quit: Leaving]
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gasher has joined #crystal-lang
fridgerator has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/va1ZZ
<crystal-gh> crystal/master bebded9 Ary Borenszweig: Compiler: command + args if `--verbose` is passed
<crystal-gh> crystal/master 51f63e8 Ary Borenszweig: Compiler: cd into the output directory and execute link command there. Related to #2332...
trapped_ is now known as trapped
<travis-ci> crystal-lang/crystal#51f63e8 (master - Compiler: cd into the output directory and execute link command there. Related to #2332): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117262829
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fridgerator has joined #crystal-lang
cyjimmy264 has quit [Ping timeout: 250 seconds]
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fridgerator has joined #crystal-lang
cyjimmy264 has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/va10C
<crystal-gh> crystal/master ea91958 Ary Borenszweig: Makefile: pass `-D without_openssl -D without_zlib` in crystal target
<crystal-gh> crystal/master 9c92599 Ary Borenszweig: Playground: some fixes in _about.html
<crystal-gh> [crystal] miketheman opened pull request #2334: Add std lib-only specs target (master...miketheman/std_specs) https://git.io/va10V
<travis-ci> crystal-lang/crystal#9c92599 (master - Playground: some fixes in _about.html): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117271271
<crystal-gh> [crystal] asterite closed pull request #2320: Feature/crystal env (master...feature/crystal_env) https://git.io/vaPSS
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<travis-ci> crystal-lang/crystal#d99c1d1 (master - Merge pull request #2320 from crystal-lang/feature/crystal_env): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117277450
krtv` has joined #crystal-lang
trapped_ has joined #crystal-lang
trapped has quit [Ping timeout: 240 seconds]
<crystal-gh> [crystal] MatthieuBlm opened pull request #2335: Add comment in logger.cr (master...logger-doc) https://git.io/va1ad
kfpratt has joined #crystal-lang
fridgerator has joined #crystal-lang
<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!
fridgerator has quit [Client Quit]
cyjimmy264 has quit [Ping timeout: 260 seconds]
<miketheman> >> 8.to_i32
<DeBot> miketheman: # => 8 - https://carc.in/#/r/umo
Gasher has quit [Quit: Leaving]
<RX14> jeromegn, yeah i'll make sure to use it and test it out
<jeromegn> that's awsome
<miketheman> I can't help but wonder if asterite typo'ed this line intentionally to distinguish between multithreaded/non-mutlithreaded compilation: https://github.com/miketheman/crystal/commit/1006946d72e9c46e315b51352e21a842b6790731#diff-972234d62deb68357909cbb87cb8e7e7R194
kfpratt has quit [Remote host closed the connection]
<BlaXpirit> miketheman, :o
ragmaanir has joined #crystal-lang
vikaton has joined #crystal-lang
_whitelogger has joined #crystal-lang
<RX14> damn, can't define a property with ? in the name
<crystal-gh> [crystal] DougEverly opened pull request #2336: Tempfile.dirname (master...tmpfile_dirname2) https://git.io/va1rD
<miketheman> RX14: I think I've seen those implemented as methods
<RX14> yeah
<RX14> you can define a method with ? in the name
<RX14> but not a class variable
<RX14> so property online? : Bool fals
<RX14> so I have to be a little more verbose
<miketheman> RX14 although it looks like it's in there: https://github.com/crystal-lang/crystal/blob/master/src/object.cr#L593-L599
<miketheman> oh, I get it now.
<miketheman> so I guess `proprty? online : Bool` ought to work
<miketheman> property?*
<RX14> but property? is for nilable things
<RX14> it defines a getter? that returns nilable and a getter that returns not_nil!
<RX14> but it also defines .online and .online=
<RX14> not just .online?=
<RX14> it's a different usecase
<umurgdk> hey, is there any workaround to pass self to another object in the constructor?
<umurgdk> like this one
<RX14> not really
<RX14> if the Bullet constructor called update on Gun, it would break
<RX14> the best way to do this would be to just accept @bullet as nillable
<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
<RX14> you could create a "dummy" bullet instance which you initialise @bullet to first
<RX14> but thats' just horrible
<umurgdk> yeah exactly. but anyway its not that hard to deal with nil in the bullet :)
<crystal-gh> [crystal] miketheman opened pull request #2337: failing test: udp socket send (master...miketheman/udp_send) https://git.io/va16g
<umurgdk> is it possible to write c++ bindings? or we need c bindings?
<RX14> you need C bindings
<umurgdk> thanks
A_Harlan has joined #crystal-lang
A_Harlan is now known as aharlan
aharlan has quit [Quit: Textual IRC Client: www.textualapp.com]
bcardiff has joined #crystal-lang
rok has joined #crystal-lang
<crystal-gh> [crystal] ysbaddaden closed pull request #2330: Fix some typos (master...typos) https://git.io/vaXSV
<travis-ci> crystal-lang/crystal#07216ef (master - Merge pull request #2330 from Dreauw/typos): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117303371
fridgerator has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
furkan_ has joined #crystal-lang
<furkan_> hi
<furkan_> im new on Crystal. is there any editor which is support to Crystal ?
furkan_ is now known as Lucifer_
<BlaXpirit> Lucifer_, Atom maybe?
<BlaXpirit> i dotn care, i just write in my favorite editor, with ruby syntax highlighting
<Lucifer_> thank u all for helping. I'll try them. :)
umurgdk has joined #crystal-lang
bcardiff has quit [Quit: bcardiff]
umurgdk has quit [Ping timeout: 244 seconds]
Gasher has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
Gasher has quit [Quit: Leaving]
vikaton has joined #crystal-lang
umurgdk has joined #crystal-lang
pawnbox has joined #crystal-lang
Lucifer_ has quit [Read error: Connection reset by peer]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
<BlaXpirit> is there some way to find a list of all operators and keywords?
aharlan has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
aharlan has quit [Client Quit]
Gasher has joined #crystal-lang
<BlaXpirit> thanks. but that's not exactly a list
havenwood has quit [Remote host closed the connection]
<RX14> well
<RX14> it's probably the closest you will get
<RX14> you can just ctrl-f check_ident_or_keyword
<BlaXpirit> that would miss a few
<BlaXpirit> :in
<RX14> you could look at vim-crystal
<RX14> there might be one there
<RX14> uhh
<RX14> not really :P
fridgerator has joined #crystal-lang
<BlaXpirit> jeez
<RX14> now that's write-once for ya
Philpax has joined #crystal-lang
Philpax has quit [Ping timeout: 248 seconds]
cyjimmy264 has joined #crystal-lang
<BlaXpirit> now... what files of standard library are available without require?
<BlaXpirit> grep -rP 'require ".*\barray"' #=> src/prelude.cr:require "array"
Lucifer_ has joined #crystal-lang
<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 ?
<RX14> Lucifer_, because you're filling it with a default array [0,0]
<RX14> it doesn't duplicate the array
<RX14> so you've filled the array with 2 references to the same array
<BlaXpirit> Lucifer_, try this instead
<BlaXpirit> >> Array.new(2) { [0, 0] }
<DeBot> BlaXpirit: # => [[0, 0], [0, 0]] - https://carc.in/#/r/un7
<BlaXpirit> creates an array by running this block of code twice. this ensures that this is actually different arrays
<BlaXpirit> >> typeof(Array.new(2) { [0, 0] })
<DeBot> BlaXpirit: # => Array(Array(Int32)) - https://carc.in/#/r/un8
<Lucifer_> I got it.. Thank u all!
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has quit [Remote host closed the connection]
fridgerator has joined #crystal-lang
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
bjz has quit [Client Quit]
kulelu88 has joined #crystal-lang
kulelu88 has joined #crystal-lang
<jeromegn> oh, just stumbled on this: https://play.crystal-lang.org/#/r/una apparently forward_missing_to does not work on modules.
<jeromegn> ugh, had to extend a few things in this shard... probably need to do a PR on the crystal repo for OpenSSL things: https://github.com/jeromegn/docker.cr/tree/master/src/core_ext
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fridgerator has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/va1jh
<crystal-gh> crystal/master 5dbd282 Ary Borenszweig: Compiler: missing correct trace when macro expansion typing fails
Lucifer_ has quit [Quit: Leaving]
vikaton has quit [Quit: Connection closed for inactivity]
<travis-ci> crystal-lang/crystal#5dbd282 (master - Compiler: missing correct trace when macro expansion typing fails): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117332666
kulelu88 has left #crystal-lang ["Leaving"]
cyjimmy264 has quit [Remote host closed the connection]
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rok has quit [Quit: rok]
matp has joined #crystal-lang
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
bcardiff has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
havenwood has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
Philpax has joined #crystal-lang
Gasher^ has joined #crystal-lang
Gasher has quit [Ping timeout: 240 seconds]
umurgdk has joined #crystal-lang
trapped_ is now known as trapped
bcardiff has quit [Quit: bcardiff]
fridgerator has joined #crystal-lang