jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.7 | 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
matp has quit [Remote host closed the connection]
crystal-lang278 has joined #crystal-lang
crystal-lang278 has quit [Ping timeout: 264 seconds]
matp has joined #crystal-lang
Oliphaunte has joined #crystal-lang
daemonwrangler has quit [Ping timeout: 260 seconds]
avdi has quit [Ping timeout: 250 seconds]
danzilio has quit [Ping timeout: 250 seconds]
woodruffw has quit [Ping timeout: 244 seconds]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
daemonwrangler has joined #crystal-lang
danzilio has joined #crystal-lang
avdi has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Philpax_ has quit [Ping timeout: 244 seconds]
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
tomchapin has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
matp has quit [Remote host closed the connection]
tomchapi_ has quit [Ping timeout: 260 seconds]
Oliphaunte has joined #crystal-lang
matp has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
tomchapin has quit [Read error: Connection reset by peer]
tomchapin has joined #crystal-lang
tomchapi_ has joined #crystal-lang
tomchapin has quit [Ping timeout: 264 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
tomchapi_ has quit [Ping timeout: 240 seconds]
soveran has quit [Remote host closed the connection]
tomchapin has joined #crystal-lang
xmgx has quit [Remote host closed the connection]
tomchapi_ has joined #crystal-lang
tomchapin has quit [Ping timeout: 265 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
tomchapin has joined #crystal-lang
tomchapi_ has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
matp has quit [Ping timeout: 260 seconds]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox_ has quit [Ping timeout: 244 seconds]
tomchapin has quit [Ping timeout: 244 seconds]
tomchapin has joined #crystal-lang
tomchapin has quit [Ping timeout: 244 seconds]
mark_66 has joined #crystal-lang
snsei has joined #crystal-lang
tomchapin has joined #crystal-lang
tomchapin has quit [Read error: Connection reset by peer]
tomchapin has joined #crystal-lang
pawnbox has joined #crystal-lang
tomchapi_ has joined #crystal-lang
tomchapi_ has quit [Read error: Connection reset by peer]
tomchapin has quit [Read error: Connection timed out]
ome has joined #crystal-lang
tomchapin has joined #crystal-lang
tomchapin has quit [Read error: Connection reset by peer]
tomchapin has joined #crystal-lang
tomchapi_ has joined #crystal-lang
tomchapin has quit [Ping timeout: 265 seconds]
snsei_ has joined #crystal-lang
snsei has quit [Ping timeout: 244 seconds]
gewo has quit [Quit: WeeChat 1.0.1]
gewo has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
matp has joined #crystal-lang
bjz has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomchapin has joined #crystal-lang
tomchapi_ has quit [Ping timeout: 265 seconds]
bjz has joined #crystal-lang
<FromGitter> <sdogruyol> @crisward have you checked https://github.com/jwoertink/guard-kemal
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 240 seconds]
masukomi has joined #crystal-lang
Oliphaunte has joined #crystal-lang
<FromGitter> <sdogruyol> wow @jhass returns and tags them all
<jhass> :P
<FromGitter> <sdogruyol> we missed you mate
<jhass> thanks :D
pataphysics has quit [Ping timeout: 264 seconds]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
Oliphaunte has joined #crystal-lang
pataphysics has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
masukomi has quit [Ping timeout: 260 seconds]
pataphysics has quit [Ping timeout: 250 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
matp has quit [Remote host closed the connection]
pataphysics has joined #crystal-lang
matp has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
gamemanj has joined #crystal-lang
masukomi has joined #crystal-lang
<FromGitter> <wrq> what 0.19 going to be about?
mgarciaisaia has left #crystal-lang [#crystal-lang]
<jhass> so far the biggest stuff is quite a bit refactoring of the compiler code
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
masukomi has quit [Quit: masukomi]
Oliphaunte has joined #crystal-lang
mkl0501 has joined #crystal-lang
masukomi has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
masukomi has quit [Client Quit]
soveran has quit [Remote host closed the connection]
masukomi has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
masukomi_ has joined #crystal-lang
masukomi has quit [Ping timeout: 244 seconds]
masukomi_ is now known as masukomi
masukomi has quit [Quit: masukomi]
masukomi has joined #crystal-lang
soveran has joined #crystal-lang
xmgx has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
mark_66 has quit [Read error: Connection reset by peer]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
matp has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
masukomi_ has joined #crystal-lang
masukomi has quit [Ping timeout: 244 seconds]
masukomi_ is now known as masukomi
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
ponga has quit [Quit: Connection closed for inactivity]
soveran has quit [Remote host closed the connection]
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
triangles has quit [Quit: Leaving]
Oliphaunte has quit [Remote host closed the connection]
matp has joined #crystal-lang
Oliphaunte has joined #crystal-lang
matp has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
soveran has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
soveran has quit [Remote host closed the connection]
x0f_ has joined #crystal-lang
x0f has quit [Ping timeout: 260 seconds]
willl has joined #crystal-lang
LastWhisper____ has joined #crystal-lang
kulelu88 has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
blue_skyO has joined #crystal-lang
<blue_skyO> hey there people :)
<blue_skyO> some time ago i tried crystal, because i like ruby.
<blue_skyO> i soon realised that there were shards, sortof like gems
<blue_skyO> i had a tough time understanding how to use them
<blue_skyO> so i gave up on it, fast forward to now, i felt like i gave it another try
<blue_skyO> and to my surprise i got shards working, simply by making a test cr file in the your_app dir
<blue_skyO> but this isn't really documented well, or am i missing something?
Oliphaunte has joined #crystal-lang
<RX14> i'm not quite sure what you mean or had to do to get shards working
<blue_skyO> i followed a tutorial from sdog , creater of kemal http server
<RX14> ok
<RX14> can you link it?
<RX14> it might help me to follow what's wrong with the tutorial
<blue_skyO> well i don't think there is something wrong
<blue_skyO> the thing that was missing , was when you make a your_app dir
<blue_skyO> if you create a cr file in there, crystal looks for the lib dir
<RX14> yes
<blue_skyO> this is after you modify your config file and add the needed shard. then run crystal deps
<blue_skyO> and when no errors are seen, you go into your_app dir (as in the tutorial)
<blue_skyO> only then , the shard is placed in the lib dir
<blue_skyO> and if you make a cr file , and require the shard at the top of your file, it looks into the libs dir
<RX14> is this your_app dir made using crystal init?
<blue_skyO> no afters shards install
<blue_skyO> ow yeah sorry after init
<blue_skyO> you are correct
Oliphaunte has quit [Remote host closed the connection]
<RX14> i'm still not sure what you did the first time that didn't work
<blue_skyO> Open your_app/src/your_app.cr and require kemal to use Kemal.
<blue_skyO> this doesn't work for mer
<wmoxam_> blue_skyO: what's the error?
<blue_skyO> i have to place it in the your_app dir and require kemal , that way it works
wmoxam_ is now known as wmoxam
wmoxam has quit [Changing host]
wmoxam has joined #crystal-lang
<RX14> you have to run crystal from the your_app dir
<RX14> because where it searches for libraries is relative to the cwd
<blue_skyO> while requiring "kemal": can't find file 'kemal' relative to '/home/.../Documents/crystal/your_app/src'
<blue_skyO> this is when i run it form /your_app/src/
<RX14> yeah you can't do that
<blue_skyO> as mentioned in the tut
<RX14> you have to run crystal from the your_app dir
<RX14> or more accurately
<wmoxam> ^^^
<RX14> the directory that containd the libs directory
<blue_skyO> yeah , thats what i came across by accident
<blue_skyO> :D
<RX14> @sdogruyol might want to mention this in the kemal tut
<blue_skyO> lol yeah
<wmoxam> well
<blue_skyO> wierd, must be the first one to mention it
<wmoxam> the tutorial never mentions to cd into the src directory
<RX14> well if you follow the tutorial to the letter it's fine
<blue_skyO> it does.
<blue_skyO> Open your_app/src/your_app.cr and require kemal to use Kemal.
<RX14> where does that say to cd to your_app/src?
<RX14> it says to open that file in an editor
<blue_skyO> it says open your_app.cr in src
<RX14> no it doesn't
<blue_skyO> Open your_app/src/your_app.cr <- open your_app.cr in /src/
<wmoxam> also the compilation step implies you'll be in the root dir
<wmoxam> crystal build --release src/your_app.cr
<blue_skyO> what i am not seeing?
<wmoxam> ;)
<wmoxam> "Open your_app/src/your_app.cr" does not imply changing directories
<wmoxam> ;)
<blue_skyO> it wouldn't matter, you still get the error if you run it from /src/
<RX14> it implies vim src/your_app.cr
<RX14> or whatever editor
<RX14> not cd src
<wmoxam> yup
<RX14> vim your_app.cr
<RX14> they're different
<blue_skyO> you are changing the same file
<RX14> but you're not changing directory
<blue_skyO> if you are cd'ing into it, or just using the path
<RX14> but changing the files isn't the difference
<RX14> it's where you end up being afterwards
<blue_skyO> you can imagine that being really confusing?
<wmoxam> no
<RX14> any program that you run inherits the directory that you are `cd`ed into
<RX14> and it can change behaviour on that
<RX14> that's just basic unix
<blue_skyO> so there is a difference if i run, ruby /path1/app.rb as to , cd'ing into /path1/ and running ruby app.rb?
<RX14> yes
<RX14> every program in unix has a "current working directory"
<RX14> which cd changes
<RX14> and pwd prints
<RX14> when you run an application it inherits that working directory
Oliphaunte has joined #crystal-lang
<RX14> and in crystal's case, the libs directory is realtive to the current directory
<RX14> so if you are cd'd into src
<RX14> it will search fro src/libs/
<RX14> which doesn't exist
<blue_skyO> i understand
<blue_skyO> never knew this, and been on linux some time
<blue_skyO> i thought cd was just for chanching directories
<RX14> well it does
<RX14> it "just" changes directory
<RX14> it's just that it's not just the shell that has the concept of a "current" directory
<RX14> every application has one
<RX14> and they are inherited
<blue_skyO> hmz
<blue_skyO> this is only in the CLI
<blue_skyO> because you can not run a file , in an directory you cannot see
<RX14> no, every process in linux has a current working directory
<RX14> it just doesn't affect many programs
Oliphaunte has quit [Remote host closed the connection]
<blue_skyO> i mean, if i were to run your_app.cr in src i have to navigate to it, through the GUI
<blue_skyO> in my file manager
masukomi has quit [Quit: masukomi]
<RX14> oh
<RX14> uhh, in that case they do have them but they are usually set to be just the directory containing the file
<RX14> linux desktop shortcuts can contain a directory that is used as the cwd
<blue_skyO> i can imagine poeple making the smae mistake
<blue_skyO> like don't change directories, stay in your_app folder, when editing, bulding or running the file
<blue_skyO> i understand many assumptions about people knowing their unix environment
<wmoxam> blue_skyO: typically I write a make file for my crystal projects
<blue_skyO> yes i can imagine
<blue_skyO> you can even make an crystall application that asks you these things
<gamemanj> The Crystal User's Quiz
<blue_skyO> shard installer ;)
<gamemanj> Actually, maybe don't design it as a direct quiz. Design it as a maze, just because of that old TV show.
<blue_skyO> or like shoes from ruby, a tutorial written in crystal
<blue_skyO> but cli based :P
<blue_skyO> hackety-hack was a great ruby tutorial application
<blue_skyO> thought the basics of programming to someone who's never programmed
<blue_skyO> just a matter of time, someone made that for crystal
<wmoxam> IMO Crystal isn't a good first language for someone who's never programmed
<blue_skyO> what i noticied was that crystal gives a more accurate error
<blue_skyO> mostley
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gamemanj> (Still haven't found the "read_bitcode" function in the LLVM wrapper.)
<gamemanj> (...wait, I think I forgot to mention that I was looking for a read_bitcode function in the first place. Well, that seems random.)
<blue_skyO> and because it's almost the same syntax as ruby, it's not that different learning programming i think, like it is with ruby
<wmoxam> Well I don't think Ruby is a great first language either ;)
<blue_skyO> you don't like crystal?
<wmoxam> but also, I find Crystal to be quite different than Ruby as well
<wmoxam> sure the syntax is similar, but it's also similar between javascript and C
<blue_skyO> which language would you propose to someone
<wmoxam> (I love Crysyal BTW)
<wmoxam> blue_skyO: someone new? Scheme maybe
<blue_skyO> don't know it
<blue_skyO> does it add a lot of syntatic sugar?
<wmoxam> nope
<wmoxam> it's a very simple language
<wmoxam> for popular languages I'd suggest javascript
<blue_skyO> ah i see it now
<wmoxam> basically everyone already has it installed
<blue_skyO> alto comparing it to ruby, scheme does have more boilerplate on first glance
<wmoxam> and the syntax is similar to many other languages
<blue_skyO> yeah JS i agree
<RX14> gamemanj, pls
gamemanj has left #crystal-lang ["!"]
Oliphaunte has joined #crystal-lang
<jwaldrip> Whats been going on with crystal? Big features, we usually see at least one release a month...
<blue_skyO> that's good, that means something more heavy is under work
<blue_skyO> small increments require less time
<RX14> jwaldrip, 0.19 was meant to be multicore/parallelism support
<RX14> but it's looking like that might be pushed back
<jwaldrip> the version release or the multicore/parallelism support?
<jwaldrip> I mean im excited/curious more than anything.
<jwaldrip> blue_skyO: Im just curious, not concerned.
<blue_skyO> use zmq for messasing, very fast :)
crystal-lang330 has joined #crystal-lang
<crystal-lang330> hey all, I'm following crystal development closely and noticed falling commit rates. is everything ok :)
<RX14> in the last 2 weeks? the main dev has gone on holiday is all
<crystal-lang330> thats what I wanted to hear !
<crystal-lang330> hey btw. check out my crystal project: https://github.com/ziprandom/cltk
<RX14> looks nice!
<crystal-lang330> thxx
gewo has quit [Ping timeout: 260 seconds]
gewo has joined #crystal-lang
<FromGitter> <ttdonovan> could someone help me decipher this Ruby/Python I'm trying to port code to Crystal but I'm failing to understand what needs to be done. https://github.com/xssc/gpsoauth/blob/master/lib/gpsoauth/google.rb#L4 https://github.com/simon-weber/gpsoauth/blob/master/gpsoauth/util.py#L7 https://github.com/simon-weber/gpsoauth/blob/master/gpsoauth/util.py#L7
Oliphaunte has quit [Ping timeout: 276 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 244 seconds]
bjz has joined #crystal-lang
Oliphaunte has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blue_skyO has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<crystal-gh> [crystal] ozra opened pull request #3212: Fix #3197 (master...fix/aliased_generic_matching_in_restriction) https://git.io/vivrH
Oliphaunte has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
gewo1 has joined #crystal-lang
txdv has quit [Ping timeout: 240 seconds]
gewo has quit [Ping timeout: 252 seconds]
mgarciaisaia has left #crystal-lang [#crystal-lang]
<crystal-gh> [crystal] ozra opened pull request #3213: Simple refactor to unify code duplication. (master...clean-dry-refactor) https://git.io/vivK2
crystal-lang330 has quit [Ping timeout: 264 seconds]