ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.4 | 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
txdv has joined #crystal-lang
NeverDie has joined #crystal-lang
NeverDie has left #crystal-lang ["http://radiux.io/"]
onethirtyfive has joined #crystal-lang
HakanD has joined #crystal-lang
HakanD has quit [Ping timeout: 252 seconds]
jhass has joined #crystal-lang
asterite has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
soveran has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
HakanD has joined #crystal-lang
HakanD has quit [Ping timeout: 258 seconds]
Philpax has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #3372: Initial implmentation of Optional class. (master...optional) https://git.io/vPqN5
<crystal-gh> [crystal] asterite closed pull request #3371: Initial implementation of the Maybe class. (master...maybe) https://git.io/vPqN9
dhk has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
snsei has joined #crystal-lang
HakanD has joined #crystal-lang
HakanD has quit [Ping timeout: 250 seconds]
Philpax has quit [Ping timeout: 252 seconds]
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
onethirtyfive has quit [Remote host closed the connection]
HakanD has joined #crystal-lang
snsei has quit [Remote host closed the connection]
HakanD has quit [Ping timeout: 268 seconds]
snsei has joined #crystal-lang
wmoxam has quit [Changing host]
wmoxam has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
snsei has quit [Remote host closed the connection]
HakanD has joined #crystal-lang
HakanD has quit [Ping timeout: 260 seconds]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
HakanD has joined #crystal-lang
<FromGitter> <alex-lairan> My lib isn't ready ! :)
<FromGitter> <alex-lairan> No tests are ready for now, I think Sunday I can push on Github :)
<txdv> what lib?
<FromGitter> <alex-lairan> Crolor, for manipulate color rgb whith crystal
HakanD has quit [Ping timeout: 252 seconds]
<FromGitter> <alex-lairan> Missing somes things like `color_a + color_b` or `to_black_and_white`
<FromGitter> <alex-lairan> + specs
Philpax has quit [Ping timeout: 252 seconds]
bjz has joined #crystal-lang
bjz has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 258 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snsei has joined #crystal-lang
eizua has joined #crystal-lang
bjz has joined #crystal-lang
snsei has quit [Ping timeout: 248 seconds]
HakanD has joined #crystal-lang
sooli has joined #crystal-lang
mark_66 has joined #crystal-lang
HakanD has quit [Quit: Be back later ...]
HakanD has joined #crystal-lang
HakanD has quit [Ping timeout: 252 seconds]
sandelius has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 258 seconds]
HakanD has joined #crystal-lang
<FromGitter> <sdogruyol> @alex-lairan good job :smile:
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
sooli has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
bjz has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
eizua has quit [Quit: Leaving]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 250 seconds]
soveran has joined #crystal-lang
Nik736 has joined #crystal-lang
Nik736 has quit [Client Quit]
HakanD has quit [Quit: Be back later ...]
HakanD has joined #crystal-lang
HakanD has quit [Ping timeout: 252 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
HakanD has joined #crystal-lang
<FromGitter> <sdogruyol> IO.copy deserves more love <3
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 258 seconds]
<crystal-gh> [crystal] asterite closed pull request #3417: String#index and String#rindex with Regex (master...feature/string_regex_index) https://git.io/vPanu
snsei has joined #crystal-lang
HakanD has quit [Quit: Be back later ...]
HakanD has joined #crystal-lang
snsei has quit [Ping timeout: 252 seconds]
HakanD has quit [Ping timeout: 260 seconds]
HakanD has joined #crystal-lang
Yxhuvud has quit [Ping timeout: 260 seconds]
<travis-ci> crystal-lang/crystal#3b26981 (master - String#index and String#rindex with Regex): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/167624250
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HakanD has quit [Quit: Be back later ...]
HakanD has joined #crystal-lang
HakanD has quit [Read error: Connection reset by peer]
<crystal-gh> [crystal] ghivert opened pull request #3420: Added unix-like commands to FileUtils (master...file-utils) https://git.io/vPoM2
Raimondi has quit [Quit: WeeChat 1.6-dev]
HakanD has joined #crystal-lang
dhk has quit [Quit: Leaving]
dhk has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
mark_66 has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
eizua has joined #crystal-lang
<FromGitter> <fkchang> What is the equivalent of IO.popen in Crystal. I want to stream a file, in ruby I did this
eizua has quit [Quit: Leaving]
<FromGitter> <asterite> fkchang: Process.run or Process.new https://crystal-lang.org/api/0.19.4/Process.html
<FromGitter> <johnjansen> to follow on from @asterite’s link, you can do the following … although you want something different im sure ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5800fc3e614116a25683250d]
<FromGitter> <johnjansen> @fkchang
soveran has quit [Remote host closed the connection]
<FromGitter> <johnjansen> anyone know the equivalent to this ruby `match = Regex.last_match(1)`
<FromGitter> <asterite> $1
<FromGitter> <asterite> (that's the equivalent)
<FromGitter> <johnjansen> haha, thanks Ary
<FromGitter> <asterite> Or $~[1]
<FromGitter> <asterite> (not that, in gitter it shows a link...)
<FromGitter> <asterite> `$[1]`
<FromGitter> <johnjansen> lol
<FromGitter> <asterite> :-D
<FromGitter> <johnjansen> i was about to rant about how you dont know what your talking about ;-)
<FromGitter> <johnjansen> JOKE
HakanD has quit [Quit: Be back later ...]
HakanD has joined #crystal-lang
HakanD_ has joined #crystal-lang
HakanD has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
HakanD_ has quit [Client Quit]
HakanD_ has joined #crystal-lang
snsei has joined #crystal-lang
HakanD_ has quit [Ping timeout: 248 seconds]
snsei has quit [Ping timeout: 260 seconds]
HakanD_ has joined #crystal-lang
<FromGitter> <johnjansen> Hey @asterite does that mean that $~[2] == Regexp.last_match(2) etc
HakanD_ has quit [Quit: Be back later ...]
<FromGitter> <asterite> Yes, according to Ruby Regexp.last_match is "Equivalent to reading the global variable $~". Crystal only has $~, and $1 is $~[1], etc.
HakanD_ has joined #crystal-lang
HakanD_ has quit [Ping timeout: 250 seconds]
<FromGitter> <johnjansen> thanks Ary
<FromGitter> <johnjansen> @asterite I wonder if there is a nice way to add these kind of differences to the documentation such that omissions in the API for design reasons, have documentation (when applicable). This seems a little extravagant, but it would aid Rubyist and those porting ruby code …
<FromGitter> <johnjansen> there is no precedent that im aware of, but it seems like a nice addition
<FromGitter> <johnjansen> also @asterite is there a more elegant way of defining something as a union type explicitly, my first quick hack was just `some_var = [Int32.new(0), nil, ""].first`
<BlaXpirit> >> 0.as(Int32|Nil|String)
<DeBot> BlaXpirit: # => 0 - https://carc.in/#/r/1c76
<BlaXpirit> @johnjansen
<FromGitter> <johnjansen> thanks Oleh
soveran has quit [Remote host closed the connection]
bmcginty has quit [Ping timeout: 260 seconds]
bmcginty has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
Guest18830 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #crystal-lang
soveran has quit [Remote host closed the connection]
<FromGitter> <raydf> @johnjansen http://www.crystalforrubyists.com/index.html
<FromGitter> <raydf> Maybe we should PR @sdogruyol and create a Cheat Sheet page.
<FromGitter> <johnjansen> how did i miss that ???
<FromGitter> <johnjansen> seems like a good idea to create / use a very rapid process for additions to that ;-)
Majost_ has joined #crystal-lang
Liothen- has joined #crystal-lang
michael_campbel- has joined #crystal-lang
vifino- has joined #crystal-lang
txdv has quit [*.net *.split]
DeBot has quit [*.net *.split]
Majost has quit [*.net *.split]
yossarian has quit [*.net *.split]
x0f has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
vifino has quit [*.net *.split]
nickc2 has quit [*.net *.split]
Liothen has quit [*.net *.split]
michael_campbell has quit [*.net *.split]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
x0f has joined #crystal-lang
Majost_ is now known as Majost
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has joined #crystal-lang
woodruffw has quit [Changing host]
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has joined #crystal-lang
woodruffw has quit [Changing host]
soveran has joined #crystal-lang
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
txdv has joined #crystal-lang
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
nickc2 has joined #crystal-lang
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
guilleiguaran__ has joined #crystal-lang
yossarian has joined #crystal-lang
yossarian has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
yossarian has joined #crystal-lang
yossarian has quit [Excess Flood]
woodruff- has joined #crystal-lang
<FromGitter> <fkchang> @asterite @johnjansen thanks, that did the trick
<Cyrus> How would I most easily get the user's current home directory in Crystal?
<FromGitter> <asterite> Cyrus: I think ENV["HOME"]
dhk has quit [Ping timeout: 250 seconds]
<Cyrus> Indeed, thank you.
soveran has quit [Remote host closed the connection]
_whitelogger has joined #crystal-lang
soveran has joined #crystal-lang
dhk has joined #crystal-lang
HakanD_ has joined #crystal-lang
w400z has joined #crystal-lang
<w400z> hey everyone, first time joining the crystal chan.
<w400z> just starting to mess around with the language, pretty excited.
<w400z> any shards or libraries around image processing?
<michael_campbel-> puts "welcome"
<Cyrus> Hmm...man, missing rpartition in the crystal stdlib is rough.
DeBot has joined #crystal-lang
soveran has quit [Remote host closed the connection]
bjz has joined #crystal-lang
<FromGitter> <zatherz> Cyrus: a contribution would be very welcome, yesterday my contribution of String#index and String#rindex with Regex was merged (https://github.com/crystal-lang/crystal/pull/3417). just submit the initial code and fix whatever the crystal-lang members tell you to fix
<FromGitter> <johnjansen> @zatherz im looking at it now, dont know if ill get to finish anything in short order though
pawnbox has quit [Remote host closed the connection]
<Cyrus> I will try my hand at it this weekend.
<FromGitter> <johnjansen> dont get lost in the ruby (c) though ;-) its a nasty rabbit whole
HakanD_ has quit [Quit: Be back later ...]
HakanD_ has joined #crystal-lang
HakanD_ has quit [Ping timeout: 258 seconds]
soveran has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 258 seconds]
soveran has quit [Ping timeout: 250 seconds]
w400z has quit [Quit: Textual IRC Client: www.textualapp.com]
Liothen- has quit [Changing host]
Liothen- has joined #crystal-lang
Liothen- is now known as Liothen
soveran has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has quit [Ping timeout: 258 seconds]
ruby_ has joined #crystal-lang
bjz has joined #crystal-lang