jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.9.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
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 246 seconds]
xdougx has joined #crystal-lang
jwaldrip has quit [Quit: Be back later ...]
xdougx has quit [Ping timeout: 264 seconds]
<crystal-gh> [crystal] jhass pushed 1 new commit to master: http://git.io/vWPod
<crystal-gh> crystal/master 0faecbb Sho Kusano: Allow plus and hyphen for Markdown list...
Cidan is now known as zz_Cidan
elia has quit [Quit: Computer has gone to sleep.]
tomchapin has joined #crystal-lang
tomchapin has quit [Client Quit]
tomchapin has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jwaldrip has joined #crystal-lang
zz_Cidan is now known as Cidan
jwaldrip has quit [Ping timeout: 246 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 240 seconds]
McDougal has joined #crystal-lang
Cidan is now known as zz_Cidan
fowlduck has joined #crystal-lang
zz_Cidan is now known as Cidan
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 240 seconds]
matp has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
McDougal has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
canhtak has quit [Quit: canhtak]
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
nakilon has joined #crystal-lang
McDougal has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Ping timeout: 265 seconds]
nakilon has quit [Ping timeout: 264 seconds]
jwaldrip has joined #crystal-lang
pawnbox has joined #crystal-lang
leafybasil has joined #crystal-lang
xdougx has joined #crystal-lang
leafybasil has quit [Ping timeout: 244 seconds]
xdougx has quit [Ping timeout: 240 seconds]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
arcwest1 has joined #crystal-lang
sdogruyol has joined #crystal-lang
sdogruyol has quit [Client Quit]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 268 seconds]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
arcwest1 has quit [Ping timeout: 246 seconds]
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 252 seconds]
pawnbox_ has quit [Ping timeout: 244 seconds]
jwaldrip has quit [Quit: Be back later ...]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
trapped has joined #crystal-lang
pawnbox has joined #crystal-lang
geoff4321 has joined #crystal-lang
geoff4321 has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 268 seconds]
nakilon has joined #crystal-lang
pawnbox has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
A124 has quit [Ping timeout: 268 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Cidan is now known as zz_Cidan
nakilon has quit [Ping timeout: 260 seconds]
A124 has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
xd1le has joined #crystal-lang
elia has joined #crystal-lang
leafybasil has joined #crystal-lang
xdougx has joined #crystal-lang
circ-user-aRHwG has joined #crystal-lang
leafybasil has quit [Ping timeout: 240 seconds]
<circ-user-aRHwG> What's the difference between `SimpleHash` and `Hash` in Crystal? It seems that a `SimpleHash` works like a `Hash` but with less methods available. Not sure about its purpose.
hsiehadler has joined #crystal-lang
xdougx has quit [Ping timeout: 244 seconds]
alsm has joined #crystal-lang
hsiehadler is now known as adler
adler is now known as adler_hsieh
<adler_hsieh> hi all
pawnbox has joined #crystal-lang
circ-user-aRHwG has quit [Remote host closed the connection]
nakilon has joined #crystal-lang
barosl has quit [Ping timeout: 268 seconds]
nakilon has quit [Ping timeout: 240 seconds]
xd1le has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
elia has quit [Quit: Computer has gone to sleep.]
gamemanj has joined #crystal-lang
BlaXpirit has joined #crystal-lang
barosl has joined #crystal-lang
elia has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]
leafybasil has joined #crystal-lang
pawnbox has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
blue_deref has quit [Quit: bbn]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox 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
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 240 seconds]
Renich has quit [Quit: leaving]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
adler_hsieh has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
xdougx has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nakilon has joined #crystal-lang
adler_hsieh has joined #crystal-lang
<xdougx> jhass: useful? http://carc.in/#/r/kkg
nakilon has quit [Ping timeout: 240 seconds]
<jhass> xdougx: there's Hash#has_key?
<jhass> but I'm not sure, it just ignores extra attributes in the hash
<jhass> I don't see it in stdlib tbh
<jhass> and once we got required keyword arguments, the record macro has it for free basically
<xdougx> jhass: not for an stdlib, but for 3th party also, like some modules to be included to help
<xdougx> jhass: im building a small lib for persistence, using crystal-pg, and it was a little hard to setup get/setters manually and i could solve the probleman using this macro
<xdougx> jhass: lil bit like rails
Veejay has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
<jhass> I think I'd ultimately like to see something that generates models by reading the schema from the DB at compile time, so you get all the compile time checks
<xdougx> jhass: maybe when i finish this project, i have not much time to finish it, when i have a free time, thats the first thing that i want to do :)
jwaldrip has joined #crystal-lang
pawnbox has joined #crystal-lang
jwaldrip has quit [Ping timeout: 260 seconds]
trapped has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
sdogruyol has joined #crystal-lang
<sdogruyol> is there an easy way to parse json request body
<sdogruyol> or shall i do explicitly by myself
pawnbox has joined #crystal-lang
NeverDie has joined #crystal-lang
<jhass> sdogruyol: JSON.mapping?
NeverDie has quit [Client Quit]
adler_hsieh has quit [Remote host closed the connection]
<sdogruyol> jhass: yeah that's correct but can i parse it directly with HTTP::Params.parse
<sdogruyol> jhass: seems not
<jhass> JSON?!
<sdogruyol> jhass: yeah
<jhass> JSON != application/form-www-urlencodedwhatever
<sdogruyol> jhass: the request body is a big fat JSON object
<sdogruyol> jhass: yeah
<jhass> you're not trying to parse YAML with XML either, right?
<sdogruyol> jhass: yeah
<sdogruyol> jhass: i just asked if there's similar to that
<sdogruyol> :)
<jhass> JSON.parse
<jhass> but use JSON.mapping
<sdogruyol> jhass: okay so i'm gonna do something like if content_type == application/json; JSON.mapping request.body
<jhass> MyMapping.from_json request.body
<jhass> http://crystal-lang.org/api/JSON.html#mapping%28properties%2Cstrict%3Dfalse%29-macro
<sdogruyol> jhass: what if i dont the mapping beforehand
<jhass> then you can't use it
<sdogruyol> jhass: you know in rails you can easily access the request params via params[:something] either application/json form e.g that's what i'm trying to achieve
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vWMGl
<crystal-gh> crystal/master 38795ee Ary Borenszweig: Document `IO#write_bytes` and `IO#read_bytes`.
<jhass> >> typeof(JSON.parse("1"))
<DeBot> jhass: undefined constant JSON - http://carc.in/#/r/klh
<jhass> meh, right
<jhass> anyway, it's a big union
<sdogruyol> yeah
<jhass> you don't want it
<sdogruyol> i actually want it for convenience :P
<sdogruyol> performance wise it's not gonna be good imho
<jhass> it'll be less convenient
<sdogruyol> jhass: what's your suggestion then
<jhass> defer parsing as much as possible so you have a greater chance of knowing the structure you expect, then use a mapping for it
<sdogruyol> jhass: http://carc.in/#/r/klk
<sdogruyol> jhass: i wonder how this performs
<sdogruyol> compared to knowing mapping before
<jhass> benchmark?
<sdogruyol> jhass: yeah i'm gonna do it later the mapping is gonna be a little bit big :P
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
adler_hsieh has joined #crystal-lang
jwaldrip has joined #crystal-lang
nakilon has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vWMR8
<crystal-gh> crystal/master 98b8687 Ary Borenszweig: Fixed #1728: restrict the right-hand side of an `||` expression if the left hand side is an `var.is_a?(...)`
jwaldrip has quit [Ping timeout: 260 seconds]
adler_hsieh has quit [Remote host closed the connection]
<BlaXpirit> how to call a class method of the current class?
nakilon has quit [Ping timeout: 246 seconds]
Sadin has joined #crystal-lang
CraigBuchek has joined #crystal-lang
<sdogruyol> jhass: meanwhile camel case keys fail http://carc.in/#/r/kll
jwaldrip has joined #crystal-lang
<jhass> BlaXpirit: self.class.foo should work
<BlaXpirit> oh ok, thanks
<BlaXpirit> jhass, says private method called
<BlaXpirit> then how can private class methods be used at all
<jhass> sdogruyol: http://carc.in/#/r/klo
<jhass> BlaXpirit: from public class methods?
<BlaXpirit> jhass, yes
jwaldrip has quit [Read error: Connection reset by peer]
<BlaXpirit> actually, jhass, i want to use a private class method from a public method
jwaldrip has joined #crystal-lang
<jhass> public instance method or public class method?
<BlaXpirit> instance
<jhass> you can't
<jhass> do you need to access your private class method from another public class method?
<BlaXpirit> jhass, what i'm really doing here is taking parts of a pubic method and moving them to helper private class methods
<jhass> that doesn't answer my question
NeverDie has joined #crystal-lang
<BlaXpirit> jhass, i want to use a private class method from a public instance method
<jhass> that doesn't answer my question either
<BlaXpirit> i don't have public class methods, so no
<jhass> then just make it a private instance method
<travis-ci> manastech/crystal#98b8687 (master - Fixed #1728: restrict the right-hand side of an `||` expression if the left hand side is an `var.is_a?(...)`): The build passed. https://travis-ci.org/manastech/crystal/builds/87674856
<DeBot> https://github.com/manastech/crystal/issues/1728 (is_a? on left side of || doesn't make guarantees about the right side)
<BlaXpirit> that's how it was but it's lame
<jhass> it's pretty common really
<BlaXpirit> and what if i wanted to access that from a class method - why is it not allowed?
jwaldrip has quit [Ping timeout: 272 seconds]
<jhass> I don't know
<xdougx> jhass: in 0.9.0/src/exception.cr:90 in this definition def initialize(message = nil : String?, cause = nil : Exception?), is that possible to be message: "" instead of nil?
<jhass> xdougx: signaling absence with nil instead of "" seems more sane, no?
<xdougx> jhass, but, message isn't a string in the end?
<jhass> not for all usecases
pawnbox has quit [Remote host closed the connection]
<xdougx> what else message could be in a exception?
pawnbox has joined #crystal-lang
<jhass> well, nothing
<jhass> an exception's primary information is its type, the message is just specializing that information, it's not mandatory
<xdougx> message could just be nothing, so if in run time, could i get an error without message?
<xdougx> i see
<xdougx> exception.not_nil!
<xdougx> exception.message.not_nil!
<sdogruyol> jhass: wow that's helpful thanks :)
A124 has quit [Ping timeout: 268 seconds]
A124 has joined #crystal-lang
<xdougx> jhass: http://carc.in/#/r/klu =/
<jhass> xdougx: so?
<jhass> I don't see the issue
<BlaXpirit> xdougx, what do you really want?
<xdougx> just trying to understand why i can even create an exception without message, and initializer is an required string and why is raising an uncought exception inside a begin/recue blocxk
<jhass> xdougx: String? is the same as String|Nil
jwaldrip has joined #crystal-lang
<xdougx> ok, but why i cant assign it with nil, and why it keep raising an uncaught exception inside begin/rescue block
<jhass> Exception has no setter for message, you cannot assign it anything, including a string
<jhass> it raises because you don't give a message when creating the exception, so the default of nil takes place and then you call .not_nil! on that nil
arcwest1 has joined #crystal-lang
<xdougx> ok, understood, so will need to force message.to_s to chomp it
arcwest1 has quit [Quit: Page closed]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
sdogruyol has quit [Remote host closed the connection]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
adler_hsieh has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
<adler_hsieh> What is the differences between SimpleHash and Hash?
adler_hs_ has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vWMAD
<crystal-gh> crystal/master 02557e5 Ary Borenszweig: Fixed #1754: Glob with trailing slash should list directories
adler_hsieh has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<BlaXpirit> indeed, lol
Sadin has quit [Ping timeout: 256 seconds]
<BlaXpirit> the difference is SimpleHash has a stupid implementation, but what's the point???
<BlaXpirit> also it has nothing to do with hashes
<BlaXpirit> also i cringed from the name Hash yet another time
<jhass> jeez, I wish that guy would stay around for more than 10 minutes
<jhass> BlaXpirit: SimpleHash is a struct iirc
<BlaXpirit> so..?
<jhass> it's passed by value
pawnbox has quit [Ping timeout: 272 seconds]
<BlaXpirit> so make an exact copy of Hash that is a struct
<BlaXpirit> eh maybe it has some nested structure
<jhass> also at least Hash does very well use hashes
<BlaXpirit> sure. but it is not a hash
<adler_hs_> sorry got disconnected
<travis-ci> manastech/crystal#02557e5 (master - Fixed #1754: Glob with trailing slash should list directories): The build was broken. https://travis-ci.org/manastech/crystal/builds/87691443
<DeBot> https://github.com/manastech/crystal/issues/1754 (Glob with trailing slash should list directories)
<adler_hs_> I think I missed the answer
<adler_hs_> So they are totally different things?
<BlaXpirit> adler_hs_, they serve the same purpose
<jhass> adler_hs_: do you know the difference between class/Reference and struct/Value ?
<adler_hs_> Not quite
<jhass> let's see
arcwest1 has joined #crystal-lang
adler_hs_ is now known as adler
<jhass> >> def foo(hash); hash[:a] = 2; end; h = {a: 1}; sh = SimpleHash {a: 1}; foo(h); foo(sh); {h, sh}
<DeBot> jhass: undefined constant SimpleHash - http://carc.in/#/r/kmo
<jhass> meh, could've worked
<adler> I think it needs require "simple_hash"
<jhass> mmh, now I'm confused http://carc.in/#/r/kmu
<BlaXpirit> jhass, im pretty sure simplehash is broken
<jhass> well, it's backed by a regular array
<jhass> no idea then, though its purpose is to be pass by value
<jhass> *thought
NeverDie has joined #crystal-lang
<BlaXpirit> jhass, yeah, it passes by value but shares the same internal array
<jhass> which makes it fairly pointless, yeah
<BlaXpirit> jhass, is what i linked valid? it can't infer K, V like that, can it?
<jhass> prolly never called, yeah
<adler> but if it comes to the concept, you said they're like class/Reference, so the purpose is like one delegates to another?
<BlaXpirit> adler, no
Tetsumi has joined #crystal-lang
<BlaXpirit> adler, just never mind the existence of SimpleHash, okay?
<BlaXpirit> i have no idea why it exists
<adler> lol, I see
<adler> Thanks anyway
<BlaXpirit> it's used in the compiler a couple of times in the same way, but why
<Tetsumi> Why this doesn't work ? http://play.crystal-lang.org/#/r/kn4
<jhass> >> class Foo; getter foo; def initialize(@foo); end; end; struct Bar; getter foo; def initialize(@foo); end; end; def foo(x); x.foo = 2; end; foo = Foo.new(1); bar = Bar.new(1); foo(foo); foo(bar); {foo.foo, bar.foo}
<DeBot> jhass: undefined method 'foo=' for Foo - http://carc.in/#/r/kn5
<jhass> right
<jhass> >> class Foo; property foo; def initialize(@foo); end; end; struct Bar; property foo; def initialize(@foo); end; end; def foo(x); x.foo = 2; end; foo = Foo.new(1); bar = Bar.new(1); foo(foo); foo(bar); {foo.foo, bar.foo}
<DeBot> jhass: # => {2, 1} - http://carc.in/#/r/kn6
<jhass> adler: ^ see the difference? Foo is passed by reference, Bar is passed by value
<BlaXpirit> no, nobody can see anything in one line
<BlaXpirit> only makes me wonder if it's viable to automatically apply code formatter
<adler> Let me see
pawnbox has joined #crystal-lang
arcwest1 has quit [Quit: Page closed]
<BlaXpirit> Tetsumi, fixed it. no idea why it breaks. http://play.crystal-lang.org/#/r/kn8
<jhass> Tetsumi: I thought we had an issue for this but I only find similar ones, feel free to open one
<BlaXpirit> jhass, i think this is a problem with Tuple
<adler> Yeah, I got it, thanks! Also found the doc on http://crystal-lang.org/docs/syntax_and_semantics/structs.html
<jhass> nah, it's a problem with overload matching being dumb
<BlaXpirit> nope
<BlaXpirit> >> {Int32, Int32}.new("a", "b")
<DeBot> BlaXpirit: undefined method 'new' for {Int32:Class, Int32:Class} - http://carc.in/#/r/knc
<Tetsumi> "value as PairValue" but it should already be a PairValue since the argument is "value : PairValue"
<jhass> there are tons of issues in the alias and union type matching
<BlaXpirit> >> Tuple(Int32, Int32).new("a", "b")
<DeBot> BlaXpirit: # => {"a", "b"} - http://carc.in/#/r/knd
<BlaXpirit> jhass, see this
<BlaXpirit> Tuple.new always creates a new tuple type based on its arguments
<BlaXpirit> no matter what type it actually is
<jhass> BlaXpirit: there are two {Int32, Int32}, the value and the shortcut to Tuple(Int32, Int32)
<jhass> BlaXpirit: your first example is not in the type grammar, so it's the value
<BlaXpirit> jhass, ignore first example
<jhass> BlaXpirit: its type is {Int32.class, Int32.class}
<BlaXpirit> jhass, ignore first example
<jhass> well, Tuple.new is just def self.new(*args); args; end)
<jhass> s/)//
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BlaXpirit> Tetsumi, the problem is Pair.new(id, value) is exactly the same as just writing {id, value}
<BlaXpirit> I consider this a bug
<jhass> BlaXpirit: you might want to add that argument to though https://github.com/manastech/crystal/pull/1811
trapped has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
<BlaXpirit> >> alias PairValue = Int32 | Float32 | String; alias Pair = {Int32, PairValue}; def test(value: PairValue); Pair.new(5, value); end; r = test("test"); puts "#{r} : #{r.class}"
<DeBot> BlaXpirit: Syntax error in eval:21: space required before colon in type restriction - http://carc.in/#/r/kni
pawnbox has joined #crystal-lang
<BlaXpirit> >> alias PairValue = Int32 | Float32 | String; alias Pair = {Int32, PairValue}; def test(value : PairValue); Pair.new(5, value); end; r = test("test"); puts "#{r} : #{r.class}"
<DeBot> BlaXpirit: {5, "test"} : {Int32, String} - more at http://carc.in/#/r/knj
<BlaXpirit> this is a double bug
<jhass> BlaXpirit: asterite no longer reads logs, so complaining here is pointless. Just open issues
sdogruyol has joined #crystal-lang
<BlaXpirit> yup, Tetsumi
<BlaXpirit> im gonna write issue
<Tetsumi> is it a problem at the compiler level or at the definition of Tuple ?
<jhass> tuple is tightly integrated into the compiler
sdogruyol has quit [Ping timeout: 260 seconds]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vWDZc
<crystal-gh> crystal/master c8cdbfa Ary Borenszweig: Added missing empty dir for Dir.glob specs, and removed unused GlobError
<travis-ci> manastech/crystal#c8cdbfa (master - Added missing empty dir for Dir.glob specs, and removed unused GlobError): The build is still failing. https://travis-ci.org/manastech/crystal/builds/87702812
<crystal-gh> [crystal] adlerhsieh opened pull request #1829: Fix broken link (gh-pages...gh-pages) http://git.io/vWDls
<crystal-gh> [crystal] jhass closed pull request #1829: Fix broken link (gh-pages...gh-pages) http://git.io/vWDls
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vWDRl
<crystal-gh> crystal/master 53056ac Ary Borenszweig: Dir.glob: ignore results order in specs
adler has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
canhtak has joined #crystal-lang
<travis-ci> manastech/crystal#53056ac (master - Dir.glob: ignore results order in specs): The build was fixed. https://travis-ci.org/manastech/crystal/builds/87707687
mhib has joined #crystal-lang
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
NeverDie has joined #crystal-lang
alsm has quit [Ping timeout: 260 seconds]
zz_Cidan is now known as Cidan
BlaXpirit has quit [Quit: Konversation]
doddok has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
canhtak has quit [Quit: canhtak]
leafybas_ has joined #crystal-lang
trapped has joined #crystal-lang
leafybas_ has quit [Remote host closed the connection]
leafybas_ has joined #crystal-lang
leafybasil has quit [Ping timeout: 268 seconds]
leafybas_ has quit [Ping timeout: 250 seconds]
NeverDie has quit [Ping timeout: 246 seconds]
NeverDie_ has joined #crystal-lang
NeverDie_ has quit [Max SendQ exceeded]
dylanmei has joined #crystal-lang
NeverDie has joined #crystal-lang
BlaXpirit has joined #crystal-lang
dylanmei has quit [Quit: ZZZzzz…]
dylanmei has joined #crystal-lang
elia has joined #crystal-lang
<xdougx> jhass: mission accomplished, builded my background application with persistence and process controller :)
<xdougx> jhass: in a fews hours going to deploy it
fowlduck has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
McDougal has joined #crystal-lang
canhtak has joined #crystal-lang
Tetsumi has quit [Quit: Leaving]
McDougal has quit [Quit: Textual IRC Client: www.textualapp.com]
mhib has quit [Ping timeout: 255 seconds]
sdogruyol has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vWyzl
<crystal-gh> crystal/master b53e1a7 Ary Borenszweig: Formatter: fixed incorrect indentation after last call arg followed by comment
sdogruyol has quit [Ping timeout: 250 seconds]
mhib has joined #crystal-lang
<travis-ci> manastech/crystal#b53e1a7 (master - Formatter: fixed incorrect indentation after last call arg followed by comment): The build passed. https://travis-ci.org/manastech/crystal/builds/87745070
gamemanj has quit [Remote host closed the connection]
gamemanj has joined #crystal-lang
NeverDie_ has joined #crystal-lang
NeverDie has quit [Ping timeout: 260 seconds]
shama has joined #crystal-lang
Renich has joined #crystal-lang
bariscimen has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
xdougx has quit [Remote host closed the connection]
xdougx has joined #crystal-lang
xdougx has quit [Ping timeout: 268 seconds]
greengriminal has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
elia has joined #crystal-lang
NeverDie has joined #crystal-lang
NeverDie_ has quit [Ping timeout: 256 seconds]
<BlaXpirit> is there any list of reserved words in crystal?
<BlaXpirit> nevermind, dont need it
fowlduck has joined #crystal-lang
fowlduck has quit [Read error: Connection reset by peer]
fowlduck has joined #crystal-lang
matp has quit [Remote host closed the connection]
jwaldrip has quit [Quit: Be back later ...]
mhib has quit [Remote host closed the connection]
<BlaXpirit> oh come on, i cant edit a Matrix from a thread?
matp has joined #crystal-lang
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 250 seconds]
blue_deref has joined #crystal-lang
<CompanionCube> trying crystal_lib
<CompanionCube> keep getting this fatal error: 'stddef.h' file not found
greengriminal has quit [Quit: Leaving]
leafybasil has joined #crystal-lang
<jhass> sounds like you're missing clang devel headers
elia has quit [Quit: Computer has gone to sleep.]
<CompanionCube> only one clang package is available and it's installed
<jhass> OS?
<BlaXpirit> CompanionCube, what is crystal_lib?
<CompanionCube> Arch Linux
<BlaXpirit> oh they actually implemented something
leafybasil has quit [Remote host closed the connection]
<jhass> CompanionCube: mh, one of the examples?
<CompanionCube> ?
gamemanj has quit [Ping timeout: 256 seconds]
<jhass> which command does produce the error for you?
<CompanionCube> ./main < examples/pcre.cr
<CompanionCube> where main the compiled src/main.cr
jwaldrip has joined #crystal-lang
<jhass> works for me
elia has joined #crystal-lang
<jhass> pkgfile lists a file called that in gcc, clang, clang35, gcc-multilib, lib32-clang, linux-headers, linux-api-headers
<jhass> and a few others but doubt those are relevant
<CompanionCube> just reinstalling clang
<CompanionCube> no change
jwaldrip has quit [Ping timeout: 240 seconds]
<jhass> do you have gcc or gcc-multilib installed too?
<CompanionCube> yes, I have all of base-devel installed
<jhass> so linux-headers too?
<jhass> hardening-wrappers perhaps?
<jhass> (don't install them if not, just trying to narrow down possible error sources)
<CompanionCube> not the last one
<jhass> oh lol, I never scrolled up
<jhass> I get the error too, but it works anyway
<CompanionCube> yeah, but there's this
<CompanionCube> $free : Void* -> Void
<CompanionCube> $malloc : -> Void*
<CompanionCube> $stack_free : Void* -> Void
<CompanionCube> $stack_guard : -> LibC::Int
<CompanionCube> $stack_malloc : -> Void*
<CompanionCube> which seems...out of place
<jhass> how so?
<jhass> it's just callbacks
bariscimen has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
bariscimen has joined #crystal-lang
nakilon has joined #crystal-lang
bariscimen has quit [Ping timeout: 256 seconds]
BlaXpirit has quit [Quit: Konversation]
nakilon has quit [Quit: WHY NOT?]
nakilon has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
jwaldrip has joined #crystal-lang
fowlduck has joined #crystal-lang
bariscimen has joined #crystal-lang
bariscimen has quit [Ping timeout: 240 seconds]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdogruyol has joined #crystal-lang
jwaldrip has quit [Ping timeout: 244 seconds]
blue_deref has quit [Quit: bbn]
sdogruyol has quit [Ping timeout: 264 seconds]
jwaldrip has joined #crystal-lang
jwaldrip has quit [Quit: Lingo: www.lingoirc.com]
bariscimen has joined #crystal-lang
fowlduck has quit [Read error: Connection reset by peer]
bariscimen has quit [Ping timeout: 252 seconds]