jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.11.0 | Fund Crystals development: http://is.gd/X7PRtI | 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
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
trapped has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
nulpunkt has quit [Ping timeout: 264 seconds]
nulpunkt has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
dylanmei has quit [Quit: ZZZzzz…]
pawnbox has joined #crystal-lang
krtv` has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
krtv` has joined #crystal-lang
krtv` has quit [Ping timeout: 240 seconds]
krtv` has joined #crystal-lang
dylanmei has joined #crystal-lang
dylanmei has quit [Ping timeout: 240 seconds]
<asterite> BlaXpirit: ylluminate: I don't know why you say the concurrency model is bad. It's the same as in Go, and it's really good and performant (that's why everyone is using Go for apps that need concurrency)
<asterite> Julia has fibers, Crystal has fibers, it's the same
pawnbox has joined #crystal-lang
dylanmei has joined #crystal-lang
A124 has quit [Quit: '']
A124 has joined #crystal-lang
shama has quit [Remote host closed the connection]
A124 has quit [Quit: '']
shama has joined #crystal-lang
A124 has joined #crystal-lang
fowlduck has joined #crystal-lang
dylanmei has quit [Ping timeout: 250 seconds]
shama has quit [Remote host closed the connection]
shama has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
Renich has joined #crystal-lang
pawnbox has joined #crystal-lang
dylanmei has joined #crystal-lang
Renich has quit [Quit: leaving]
dylanmei has quit [Ping timeout: 264 seconds]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox_ has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
<BlaXpirit> no, people use Go because it has a ton of money behind it
fowlduck has quit [Remote host closed the connection]
dylanmei has joined #crystal-lang
ponga has joined #crystal-lang
dylanmei has quit [Ping timeout: 250 seconds]
dylanmei has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
trapped has joined #crystal-lang
Ven has joined #crystal-lang
Philpax has joined #crystal-lang
dylanmei has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
dylanmei has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dylanmei has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
ssvb has quit [Remote host closed the connection]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ytti> 07:48 < BlaXpirit> no, people use Go because it has a ton of money behind it
<ytti> i agree, but i would formulate it more kindly
<ytti> i would formulate it 'it has great ecosystem'
<ytti> (which is build by google money...)
<BlaXpirit> no, that's the other way around
<ytti> it's very mature for its age
<ytti> great libraries
<ytti> great docs
<ytti> supports lot of OS
<ytti> as a language go is very conservative
<ytti> and somewhat boring really
<ytti> but it's familiar, easy to pick up
<ytti> but gosh the error checking really rubs me the wrong way
<ytti> it seems that lot of the practical code just returns the error up in the call stack
<ytti> until it's handled in fewer places
<ytti> so not sure how it's exactly better than exceptions, but i'm biased
dylanmei has joined #crystal-lang
ponga has quit []
dylanmei has quit [Ping timeout: 250 seconds]
Ven has joined #crystal-lang
ssvb has joined #crystal-lang
trapped has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
dylanmei has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
dylanmei has quit [Ping timeout: 250 seconds]
trapped has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
Ven has joined #crystal-lang
dylanmei has joined #crystal-lang
<onionhammer> not aware of a system that treats \r alone as a new line :|
<onionhammer> carriage return = move the cursor to the start of line
<BlaXpirit> oh hi, is that you, onionhammer?
<BlaXpirit> ok this is probably pointless to support it but python still does
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hangyas has joined #crystal-lang
<hangyas> hi, can i access the arrgs of a def with macro?
dylanmei has quit [Ping timeout: 250 seconds]
x0f has quit [Ping timeout: 256 seconds]
trapped has joined #crystal-lang
hangyas has quit [Remote host closed the connection]
dylanmei has joined #crystal-lang
dylanmei has quit [Ping timeout: 250 seconds]
waj_ has joined #crystal-lang
<jeromegn> Given I have 32 bits, how do I convert that BitArray of 32 to a Int32?
<jeromegn> and the opposite
<jeromegn> oh… pointers eh?
Sadin has joined #crystal-lang
<smarr> for benchmarking Crystal code, anything else that should be considered for compilation beside using `crystal build --release`?
<asterite> smarr: I don't think so
<asterite> jeromegn: there's no way, maybe we could provide access to the internal buffer
<jeromegn> well, I created a BitArray like:
<jeromegn> > require “bit_array”; ba = BitArray.new(32); ba.toggle(2); puts (pointerof(ba) as Int32*).value
<jeromegn> hmm, can’t remember the bot syntax
<jeromegn> but I have no idea if that’s correct
<jeromegn> for some reason I was expecting 4!
<jeromegn> (I’m comparing with the MongoDB Ruby Driver to see how they send a BitArray through the socket for the MongoDB Wire Protocol)
<smarr> asterite: ok, thanks
<jeromegn> there’s a flag that’s sort of like an enum but must be sent as a Int32 representing a BitVector (BitArray).
waj_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
bam0 has joined #crystal-lang
<BlaXpirit> jeromegn, hm are you sure flags-enum is not suitable?
<jeromegn> I have an enum
<jeromegn> but I’m not sure how to convert it to an Int32 if there is more than one flag
<jeromegn> oh dang
<BlaXpirit> jeromegn, yeah dang. don't blindly copy ruby code -_-
<jeromegn> for some reason I had stopped reading after 1,2 and thought the next was going to be 3,4,5...
<jeromegn> don’t be so rude ;)
<asterite> Yes, there's no need to be rude :-)
tomchapin has joined #crystal-lang
dylanmei has joined #crystal-lang
ylluminate has quit [Quit: Textual IRC Client: www.textualapp.com]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waj_ has joined #crystal-lang
waj_ has quit [Client Quit]
Renich has joined #crystal-lang
<rkeene> HOW RUDE
bam0 has quit [Ping timeout: 240 seconds]
shama has joined #crystal-lang
x0f has joined #crystal-lang
DeBot has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
onionhammer has quit [Read error: Connection reset by peer]
onionhammer has joined #crystal-lang
Ven has joined #crystal-lang
trapped has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
Sadin has quit [Quit: Leaving]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fowlduck has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<onionhammer> BlaXpirit: who else would it be? :P
<onionhammer> ooh true we do want to support Commodore 8-bit machines :)
<BlaXpirit> onionhammer, it's more about mac but whatever
<BlaXpirit> link says it was until 1999
<onionhammer> just giving u a hard time
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
<jeromegn> so I just found one can do this with an enum: (IOMode::Read | IOMode::Write).to_i
<jeromegn> which is what I’m looking for
tomchapin has joined #crystal-lang
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
Philpax has quit [Ping timeout: 260 seconds]
<jfontan> one of the things I'm used in ruby is trying to get a hash or an array item and if it does not exist get nil
<jfontan> I know you can set a default value when creating hashes
<BlaXpirit> jfontan, ok
<jfontan> but reading json I don't see a way to do it
<jfontan> should I start checking the key explicitly?
<jhass> jfontan: append a ?, foo["bar"]?
<BlaXpirit> that took so long to parse
<BlaXpirit> basically foo["bar"]? is the code to do it
<BlaXpirit> instead of foo["bar"]
<jhass> like foo["bar"] calls the method named [], it calls the method called []?
<jfontan> so it's better to check
<jfontan> thanks
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
trapped has joined #crystal-lang
Ven has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has joined #crystal-lang
pawnbox has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 260 seconds]
CompanionCube has quit [Quit: ZNC - http://znc.in]
CompanionCube has joined #crystal-lang
CompanionCube has joined #crystal-lang
Renich has quit [Quit: leaving]
trapped has joined #crystal-lang
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
triangles has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]