jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.4 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
flaviu has quit [Ping timeout: 244 seconds]
flaviu has joined #crystal-lang
<k2b6s9j> Nevermind. I got it to work. My Atom grammar now works with Atom, Sublime Text, and TextMate. I'll publish how I've done it in a bit.
flaviu has quit [Ping timeout: 250 seconds]
flaviu has joined #crystal-lang
flaviu has quit [Ping timeout: 256 seconds]
flaviu has joined #crystal-lang
GSDoep1YKow has joined #crystal-lang
k2b6s9j has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has joined #crystal-lang
k2b6s9j has joined #crystal-lang
havenwood has joined #crystal-lang
k2b6s9j has quit [Ping timeout: 264 seconds]
<crystal-gh> [crystal] bjmllr opened pull request #980: document `with ... yield` [ci skip] (gh-pages...doc-with) http://git.io/vmf5L
havenwood has quit [Ping timeout: 256 seconds]
strcmp1 has joined #crystal-lang
blue_deref has quit [Quit: bbn]
salvor has joined #crystal-lang
strcmp1 has quit [Quit: Leaving]
BlaXpirit has joined #crystal-lang
ponga has joined #crystal-lang
txdv has quit [Ping timeout: 246 seconds]
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unshadow has joined #crystal-lang
<unshadow> Is there a reason why this: http://carc.in/#/r/704 in crystal behaves like it does, but, in ruby this will return bar = {bar => "bar", foo => "fooo"} , foo = ""
<jhass> unshadow: the keyword argument syntax is different in Ruby
<jhass> there you need to explicitly declare them as keyword argument
<jhass> *s
<jhass> while crystal allows you to call with keyword arguments for all arguments that have a default value
<BlaXpirit> ok this is confusing
<unshadow> jhass: I see, thanks :) I just tried that in ruby, I understand the difference
<jhass> BlaXpirit: you think so? how about some required keyword arguments? :P http://carc.in/#/r/706
<BlaXpirit> jhass, why is it not allowed without :
<BlaXpirit> def testing(bar, foo) testing(bar: "bar"
<BlaXpirit> etc
<jhass> because Ruby only introduced keyword arguments quite late, optional ones with 2.0, required ones with 2.1
<BlaXpirit> I don't care about ruby
<jhass> note that my links are both Ruby
<jhass> and unshadow's question was about Ruby
<BlaXpirit> right.. http://carc.in/#/r/708
<jhass> BlaXpirit: the later one is just creating a bunch of locals in the call
<BlaXpirit> well that's great
<crystal-gh> [crystal] MakeNowJust closed pull request #971: Change it to ignore file starting with '_' (master...require-prefix-_) http://git.io/vqNcw
havenwood has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Dreamer3 has joined #crystal-lang
unshadow has quit [Quit: leaving]
luislavena has joined #crystal-lang
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
salvor has quit [*.net *.split]
jbye has quit [*.net *.split]
grindhold has quit [*.net *.split]
vegai has quit [*.net *.split]
jbye has joined #crystal-lang
vegai has joined #crystal-lang
salvor has joined #crystal-lang
grindhold has joined #crystal-lang
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
NeverDie has quit [Client Quit]
NeverDie has joined #crystal-lang
epitron has quit [Remote host closed the connection]
nulldata_ has joined #crystal-lang
<nulldata_> Hey
epitron has joined #crystal-lang
<nulldata_> What am I doing wrong here: https://gist.github.com/nulldatamap/e796eb3255a7b0d87aae ?
<jhass> nulldata_: rm -rf .deps and try again? works here
<nulldata_> jhass: Wow, well thanks!
nulldata_ has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150630154324]]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
shama has joined #crystal-lang
wonderbreadz has quit [Ping timeout: 265 seconds]
fowlduck has joined #crystal-lang
luislavena has quit [Remote host closed the connection]
salvor has quit [Changing host]
salvor has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
luislavena has joined #crystal-lang
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
zamith has joined #crystal-lang
<zamith> Hey. Anyone knows how to recursively install deps? Is it even possible right now?
<zamith> Basically A depends on B that depends on C, and C is not being installed when I run crystal deps
NeverDie has joined #crystal-lang
<jhass> afaik it's not possible
<jhass> shards will do it
<zamith> cool
<zamith> so crystal deps is being deprecated in favour of shards?
<jhass> most likely, yeah
<zamith> I was trying this very naive approach: https://gist.github.com/zamith/df36464f5712032e6881
<zamith> but apparently it didn't eval anything
<zamith> I'm not sure what to pass to the block there, do you know?
<zamith> it is currently getting {{ `cat Projectfile` }} in crystal deps
<jhass> which is evaluated at compile time and the result is then executed, now you want to evaluate more in the result that's executed
<zamith> and is that not possible?
<jhass> eval is just a with self yield style of things I guess
<jhass> no, Crystal has no eval, it's a compiled language
<jhass> Project#eval simply changes the receiver
<zamith> yes, project.eval is a with
<jhass> and the macro puts the code of the Projectfile into that block, at compile time
<zamith> and what's the difference between that and me just passing it a string directly in the block?
<zamith> even if it is hardcoded, shouldn't it work?
<jhass> the former modifies the source code as seen by the compiler
<jhass> in the latter case the compiler isn't even there anymore
<jhass> (in understanding)
<jhass> you can see the macro language as a templating language that's run before the compiler parses your code (well, it's actually intertwined with that, but for the mental model)
<zamith> so I can't get contents from a file at runtime and do stuff with them?
<zamith> unless its inside a macro or something like that?
<jhass> not unless
<jhass> macros don't exist in runtime
<zamith> right, sure
<zamith> I got that
<jhass> they're completely evaluated at compile time
<jhass> and sure you can read a file at runtime, but your runtime isn't the compiler, it can't parse code and then change its own binary
<zamith> right, but in this particular case I want it doesn't have to do that
<zamith> it just needs to "parse" a string and maybe clone some repos
<jhass> well, the Projectfile is implemented as code, as a sort of DSL
<jhass> that's why ysbaddaden went with YAMl instead I guess
<jhass> easier to completely evaluate at runtime
<zamith> oh ok
<jhass> anyway, you probably should invest your time into shards instead, as said it's likely going to replace crystal deps
<zamith> sure, I was just having this issue and wanted to see if there was something in the code that could help me
<zamith> but I solved it for now, so thanks
NeverDie_ has joined #crystal-lang
NeverDie has quit [Ping timeout: 246 seconds]
luislavena has quit []
mhib has joined #crystal-lang
mhib has quit [Quit: Leaving]
zamith has quit [Quit: Be back later ...]
fowlduck has joined #crystal-lang
zamith has joined #crystal-lang
fowlduck has quit [Ping timeout: 264 seconds]
NeverDie_ is now known as NeverDie
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
NeverDie has joined #crystal-lang
orliesaurus has quit [Ping timeout: 256 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
havenwood has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 248 seconds]
havenwood has quit [Ping timeout: 256 seconds]
blue_deref has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
fowlduck has joined #crystal-lang
NeverDie has joined #crystal-lang
blue_deref has quit [Quit: bbn]
havenwood has joined #crystal-lang
zamith has quit [Quit: Be back later ...]
havenwood has quit [Read error: Connection reset by peer]