asterite changed the topic of #crystal-lang to: #crystal-lang The Crystal programming language | http://crystal-lang.org | Crystal 0.6.1 | 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
<kulelu88> anybody still around?
<havenwood> kulelu88: hi
<kulelu88> hey havenwood . How familiar are you with Crystal?
leafybasil has joined #crystal-lang
<havenwood> kulelu88: Just that, familiarity--not proficiency and certainly not mastery.
<havenwood> kulelu88: Why do you ask?
<kulelu88> i wanted to find out how similar this language is syntax-wise: http://quorumlanguage.com/ to crystal
<havenwood> kulelu88: I'm unfamiliar with Quorum.
<kulelu88> not many folks should be :D very very small language
<kulelu88> I really dig the syntax of it
<kulelu88> reads like english
ismaelga has joined #crystal-lang
<fowl> Can't find example syntaxes
<kulelu88> fowl: see on the right where you can run code
<kulelu88> actions, loops, classes, etc.
<kulelu88> only catch is that it is a JVM language
ismael_ has joined #crystal-lang
ismaelga has quit [Ping timeout: 272 seconds]
<Dreamer3> can i not use a macro inside a complex statement?
<Dreamer3> macro xwhen x
<Dreamer3> {{"when #{x}"}}
<Dreamer3> end
<Dreamer3> inside a case, etc
<Dreamer3> i thought the macro would have been substituted before the compile
Cidan is now known as zz_Cidan
vikaton has joined #crystal-lang
<vikaton> Hello
<Dreamer3> how can i count up in a macro
<Dreamer3> number + doesn't seem to exist
<Dreamer3> seems so basic
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
DerisiveLogic has quit [Ping timeout: 244 seconds]
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
CraigBuchek has joined #crystal-lang
<Dreamer3> seems so basic
<Dreamer3> {% x = 2 if x == 1 %}
<Dreamer3> {% x = 1 if x == 0 %}
<Dreamer3> lol
<Dreamer3> works for very short loops
waterlink1 has joined #crystal-lang
<vikaton> >> x = 1; x = 1 if x==1; p x
<vikaton> DeBot is gone!
<vikaton> never fear!
<vikaton> detox is here!
detox has joined #crystal-lang
<vikaton> >> x = 1; x = 1 if x==1; p x
<detox> vikaton: 1
<vikaton> >> x = 1; x = 2 if x==1; p x
<detox> vikaton: 2
<vikaton> Warning: You have to print something, otherwise
<vikaton> >> x :: Int32;
<detox> vikaton: You have not printed anything
waterlink has quit [Ping timeout: 272 seconds]
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
ismael_ has quit [Ping timeout: 276 seconds]
<vikaton> >> p "1001".to_i(2)
<detox> vikaton: 9
<vikaton> >> p "food".to_s(2)
<detox> vikaton: Error in ./exec.cr:1: instantiating 'String#to_s(Int32)'
<vikaton> >> p "food".to_i(2)
<detox> vikaton: 0
<vikaton> >> p "hello".unpack("b*")
<detox> vikaton: Error in ./exec.cr:1: undefined method 'unpack' for String
<vikaton> >> p sizeof(Char)
<detox> vikaton: 4
willlll has quit [Quit: willlll]
<vikaton> whats the equivalent of char output[9] in Crystal?
<fowl> Uint8[9]
<vikaton> o
<vikaton> >> p typeof(UInt8[9])
<detox> vikaton: Array(UInt8)
kulelu88 has quit [Quit: Leaving]
<vikaton> >> x = UInt8; p x
<detox> vikaton: UInt8
<vikaton> >> x :: UInt8[9]; p x
<detox> vikaton: [0, 110, 230, 111, 210, 255, 127, 0, 0]
detox has quit [Remote host closed the connection]
<vikaton> whats wrong with this?
<vikaton> fun itoa(ch : Char, ar : Array(UInt8), radix : Int32) : Int32
<fowl> Char is wrong to use there, ar should be a pointer type
<fowl> If you want itoa from c
<vikaton> I see
<vikaton> so
<vikaton> Pointer(Char) ?
<fowl> Maybe out param, not sure how it works
<vikaton> this is C version
<fowl> char * itoa ( int value, char * str, int base );
<vikaton> so replace it with char* ?
<vikaton> kinda confused now
<vikaton> fowl, I ahve fun itoa(value : Int32, str : Array(UInt8), radix : Int32) : Int32 but I still get primitive errors
<fowl> vikaton, ok
<fowl> give me a sec
<vikaton> ok
<fowl> now i get undefined reference to `itoa'
<vikaton> yeah same
<vikaton> fowl, does it matter if z is a Pointer or like this
<vikaton> >> x = UInt8[9]; p x
DerisiveLogic has joined #crystal-lang
<fowl> I don't know. Hang on let me try snprintf
<fowl> Program terminated abnormally with error code: 139 :(
<vikaton> :(
ismaelga has joined #crystal-lang
detox has joined #crystal-lang
<vikaton> >> x = Pointer(Int32).malloc(10); p &x;
<detox> vikaton: Error in ./exec.cr:1: expected a function type, not Pointer(Int32)
<vikaton> >> x = Pointer(Int32).malloc(10); p *x;
<detox> vikaton: Error in ./exec.cr:1: splatting a union (Pointer(Int32)) is not yet supported
<vikaton> >> x = Pointer(Int32).malloc(10); p x*;
<detox> vikaton: Syntax error in ./exec.cr:1: unexpected token: ;
<vikaton> >> x = Pointer(Int32).malloc(10); p x[0]
<detox> vikaton: 0
<vikaton> >> x = Pointer(Int32).malloc(10); p x[1]
<detox> vikaton: 0
<vikaton> >> x = Pointer(Int32).malloc(10); p x[10]
<detox> vikaton: 0
<vikaton> >> x = Pointer(Int32).malloc(10); p x[11]
<detox> vikaton: 0
<vikaton> >> x = Pointer(Int32).malloc(10); p x
<vikaton> >> x = Pointer(Int32).malloc(10); p x
<detox> vikaton: Pointer(Int32)@0x2175FC0
CraigBuchek has quit [Quit: Leaving.]
waterlink1 has quit [Ping timeout: 276 seconds]
havenwood has quit [Ping timeout: 276 seconds]
havenwood has joined #crystal-lang
detox has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 244 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
BlaXpirit has joined #crystal-lang
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 276 seconds]
ismaelga has joined #crystal-lang
willlll has joined #crystal-lang
willlll has quit [Quit: willlll]
ismaelga has quit [Ping timeout: 272 seconds]
Ven has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
ismaelga has joined #crystal-lang
HakanD has joined #crystal-lang
sandelius has joined #crystal-lang
ismaelga has quit [Read error: Connection reset by peer]
ismaelga has joined #crystal-lang
ismaelga has quit [Read error: Connection reset by peer]
ismaelga has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
JBat has joined #crystal-lang
havenwood has quit [Ping timeout: 250 seconds]
<Dreamer3> is there anyway to get a pointer to a function?
<Dreamer3> like a func type?
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> yeah
<jhass> >> ->puts
<jhass> oh, right
<Dreamer3> no the scope has to stay the same
DeBot has joined #crystal-lang
<jhass> mh, I never tried
<Dreamer3> need to talk to ast
<jhass> now you confuse me
<Dreamer3> i don't really want instance_eval, i just want to be able to specify the context in which a block will run upfront
<jhass> >> s = "foo"; f = ->s.upcase; f.call
<Dreamer3> it seems if the compiler knew that that it would know everything needed to compile
<jhass> the host is having too many troubles :/
<Dreamer3> i can't even create the block
<Dreamer3> the compiler starts acting funny
<Dreamer3> just moving the same code from outside the block into it
<Dreamer3> and it doesn't even make sense
<Dreamer3> in ./src/emulate/cpu.cr:158: instantiating 'push(UInt8, (UInt8 | UInt32), UInt8, UInt8)'
<Dreamer3> i have no idae why it thinks the second arg could be int32
<Dreamer3> i looked at all the places it's called
DeBot has quit [Ping timeout: 272 seconds]
leafybasil has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
<Dreamer3> and it only acts weird when i put some code inside a block
leafybasil has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
<Dreamer3> ha
<Dreamer3> i figured it out
<Dreamer3> once variable use was another type
<Dreamer3> but the compiler didn't care until i starting trying to use a block
<Dreamer3> weird
<Dreamer3> weird
HakanD has quit [Quit: Be back later ...]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DerisiveLogic has quit [Ping timeout: 255 seconds]
Ven has joined #crystal-lang
leafybas_ has joined #crystal-lang
leafybasil has quit [Ping timeout: 246 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sandelius has joined #crystal-lang
jhass has quit [Quit: Bye]
<Dreamer3> how do i use splats?
vikaton has joined #crystal-lang
jhass has joined #crystal-lang
blaix has joined #crystal-lang
detox has joined #crystal-lang
<vikaton> jhass, where did DeBot go?
<jhass> vikaton: massive loss on the internal v6 network on the VM
<vikaton> o
<vikaton> jhass, well u got detox now :P
<vikaton> >> p "hi"
<detox> vikaton: "hi"
<jhass> ?ping
<jhass> >> `ls`
<detox> lol
<vikaton> oops
<jhass> >> RUBY_VERSION
<detox> lol
detox has quit [Remote host closed the connection]
detox has joined #crystal-lang
<vikaton> now u can try
<vikaton> >> p CRYSTAL_VERSION
<detox> vikaton: Error in ./exec.cr:1: undefined constant CRYSTAL_VERSION
<jhass> >> `ls`
<detox> cannot let u do that
<jhass> >> Process.run("/usr/bin/ls")
<detox> jhass: You have not printed anything
<jhass> >> p Process.run("/usr/bin/ls")
<detox> jhass: #<Process::Status:0x2514FC0 @pid=15693, @exit=127, @output=nil>
<jhass> >> p Process.run("/usr/bin/ls", output: true).output
<detox> jhass: ""
<jhass> >> p Process.run("/usr/bin/ls", {"/"} output: true).output
<detox> jhass: Syntax error in ./exec.cr:1: expecting token ')', not 'output'
<jhass> >> p Process.run("/usr/bin/ls", {"/"}, output: true).output
<detox> jhass: ""
<jhass> >> p Process.run("/bin/ls", {"/"}, output: true).output
<detox> jhass: "bin\nboot\ndev\netc\nhome\ninitrd.img\nlib\nlib64\nlost+found\nmedia\nmnt\nopt\nproc\nroot\nrun\nsbin\nselinux\nsrv\nsys\ntmp\nusr\nvar\nvmlinuz\n"
detox has quit [Remote host closed the connection]
<vikaton> sigh
<jhass> give up, you just don't know enough
<vikaton> I know I don't
<vikaton> was thinking since Debot isnt here, I would help out a bit
<vikaton> and not rly have people trying to break
<vikaton> jhass, did you see the itoa issue in google groups?
HakanD has joined #crystal-lang
<jhass> yeah, no time atm sorry
<vikaton> its ok
<vikaton> I have an AP Java exam in 30 minutes :P
leafybas_ has quit [Read error: Connection reset by peer]
HakanD has quit [Ping timeout: 245 seconds]
leafybasil has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
BlaXpirit has joined #crystal-lang
HakanD has joined #crystal-lang
DeBot has joined #crystal-lang
blaix has quit [Quit: Leaving.]
waj has joined #crystal-lang
<jeromegn> jhass: I wonder if my __attribute__((aligned(_N))) thing could be solved by using the Alignment in that enum: http://crystal-lang.org/api/LLVM/Attribute.html
<jeromegn> I don’t know how to use it though
<jhass> https://github.com/rust-lang/rfcs/issues/325 rust seems to lack it too
<jeromegn> oh wow, looks like I caused some changes here: https://github.com/manastech/crystal/commit/347e5f3c652317908afbd062cecaf3675545c3ee
<jeromegn> that’s a commit due to a bug I got from the compiler :P
<jhass> yup
<jeromegn> so there are ways to get access to direct values and stuff without having to define that struct
<jeromegn> *those structs
<jeromegn> but there are still some I’d have to define which also have the aligned thing
<jhass> well, if you know the pointer offsets... :P
<jeromegn> reading about it, it sounds like it would be equivalent to doing what you suggested before… if I know the number of bytes of the struct, I can just add one jank property to it (_data) that defines a correct number of bytes
<jeromegn> that alignment thing seems to mean: “that struct will occupy at least that many bytes)
<jeromegn> *) = “
<jeromegn> “This attribute specifies a minimum alignment (in bytes) for variables of the specified type.”
<jhass> I guess there are 3 options: figure out the exact behavior of aligned in C and implement it in Crystal, figure out the exact behavior of aligned and fake it with dummy struct members, write a C lib that exposes what you need to access as API and works with only pointers to the struct
<jeromegn> ah
<jeromegn> I didn’t pick the easiest lib eh?
<jeromegn> at least my work might help others hah
<jhass> yeah :/
waterlink has joined #crystal-lang
waj has quit [Quit: waj]
<jeromegn> I’ll try a struct with _data : UInt8[128]
ismaelga has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vJp0W
<crystal-gh> crystal/master fe8f3a3 Ary Borenszweig: Markdown: replace `<` with `&lt;`
<crystal-gh> crystal/master 241be89 Ary Borenszweig: Optimized and simplified Int#to_s. Related to #632
<jeromegn> ok this is not really working :(
waj has joined #crystal-lang
<jeromegn> they already use the concept of padding for stack allocation: http://api.mongodb.org/libbson/current/bson_t.html
<jeromegn> uint8_t padding[120]; /* Padding for stack allocation. */
<jeromegn> they say that struct should be 128 bytes… and they add 120 bytes of padding
<jeromegn> Is UInt8 appropriate for padding in general^
<jeromegn> ?
<jeromegn> struct BSON; _data : UInt8[128]; end
<jeromegn> I guess I can do alias BSON = UInt8[128]
vikaton has quit [Quit: Connection closed for inactivity]
waterlink has quit [Ping timeout: 264 seconds]
waterlink has joined #crystal-lang
bcardiff has joined #crystal-lang
willlll has joined #crystal-lang
Ven has joined #crystal-lang
HakanD has quit [Quit: Be back later ...]
HakanD has joined #crystal-lang
havenwood has joined #crystal-lang
HakanD has quit [Ping timeout: 240 seconds]
<jeromegn> >> (1 << 2)
<DeBot> jeromegn: 4
<jeromegn> >> p (1 << 2)
<DeBot> jeromegn: 4
HakanD has joined #crystal-lang
waj has quit [Quit: waj]
<jeromegn> getting good at this: https://github.com/manastech/crystal/issues/637
<jeromegn> >> (1 << 0)
<DeBot> jeromegn: 1
HakanD has quit [Quit: Be back later ...]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blaix has joined #crystal-lang
aemadrid has joined #crystal-lang
strcmp1 has quit [Remote host closed the connection]
waj has joined #crystal-lang
leafybasil has quit [Ping timeout: 244 seconds]
vikaton has joined #crystal-lang
shadeslayer has quit [Ping timeout: 245 seconds]
shadeslayer has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
shama has joined #crystal-lang
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 246 seconds]
jtarchie has joined #crystal-lang
<jeromegn> >> Double
<DeBot> jeromegn: Error in line 3: undefined constant Double
<jeromegn> >> double
<DeBot> jeromegn: Error in line 3: undefined local variable or method 'double'
DeBot has quit [Remote host closed the connection]
jhass has quit [Quit: Bye]
canhtak has joined #crystal-lang
jhass has joined #crystal-lang
jhass has quit [Excess Flood]
jhass has joined #crystal-lang
jhass has quit [Ping timeout: 272 seconds]
aemadrid has quit [Quit: Connection closed for inactivity]
<jeromegn> YES
<jeromegn> finally...
<jeromegn> was able to run a Mongo command...
<jeromegn> basically had to implement the full freaking BSON lib
jhass has joined #crystal-lang
DeBot has joined #crystal-lang
<jeromegn> jhass: so, I was finally able to run a MongoDB command. The whole reason I was implementing BSON was because MongoDB requires it for everything pretty much (queries, commands, etc.)
<jeromegn> I’ll be able to push that out to Github pretty soon I hope.
<jhass> nice!
<jeromegn> anybody working on a package manager? it’s a pretty important bit
willlll has quit [Quit: willlll]
<jhass> crystal deps is all we have atm
<jeromegn> indeed
<jeromegn> hmm, time comparison is not so great.
<jeromegn> jhass: so, should I add finalize methods in my classes. libbson provides a few things to destroy certain objects when the program is done with it
<jhass> sounds like it then
<jeromegn> nice
<jeromegn> cool, just making sure that’s where it goes
<jhass> basically for pointers you get for stuff that you didn't allocate but then are responsible for (C devs use to call that transfer ownership), you want finalizers
JBat has quit [Quit: Computer has gone to sleep.]
willlll has joined #crystal-lang
vikaton has quit []
vikaton has joined #crystal-lang
<jeromegn> >> Time.utc_now.to_json
<DeBot> jeromegn: Error in line 3: undefined method 'to_json' for Time
<jeromegn> interesting
<jeromegn> >> Time.utc_now.to_s
<DeBot> jeromegn: "2015-05-07 19:49:38 UTC"
<jhass> >> require "json"; Time.utc.now.to_json
<DeBot> jhass: Error in line 3: undefined method 'utc' for Time:Class
<jhass> mh
<jeromegn> underscore
<jhass> ups
<jeromegn> >> require "json"; Time.utc_now.to_json
<DeBot> jeromegn: in /usr/lib/crystal/json/to_json.cr:4: wrong number of arguments for 'Time#to_json' (1 for 0)
<jeromegn> boom
<jeromegn> same result I get here
<jeromegn> sounds like something that can be improved
<jeromegn> I can’t quite trace it though
<jhass> yeah
<jhass> >> require "json"; String.build do |io| Time.utc_now.to_json(io); end
<DeBot> jhass: in line 3: wrong number of arguments for 'Time#to_json' (1 for 0)
<jeromegn> by default to_json passes the io object...
<jeromegn> what is that anyway
<jeromegn> oh I see, it’s a string
<jhass> a StringIO usually, I think
<jeromegn> def to_json(io)
<jeromegn> to_s.to_json(io)
<jeromegn> end
<jeromegn> yea
<jeromegn> I put that ^^ in the Time stuct
<jeromegn> struct
<vikaton> Java is gone
<vikaton> forever
ismaelga has joined #crystal-lang
<BlaXpirit> wut
<BlaXpirit> you can wish
waj_ has joined #crystal-lang
<vikaton> BlaXpirit: I took the AP Java exam today, its gone for me
<BlaXpirit> Java 7 was indeed discontinued recently :|
waj has quit [Ping timeout: 255 seconds]
waj_ is now known as waj
HakanD has joined #crystal-lang
<vikaton> ye
ismaelga has quit [Remote host closed the connection]
canhtak has quit [Quit: canhtak]
ismaelga has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
<jeromegn> >> /hello/i.inspect
<DeBot> jeromegn: "/hello/"
<jeromegn> >> /hello/imx.inspect
<DeBot> jeromegn: "/hello/"
<jeromegn> >> /hello/imxa.inspect
<DeBot> jeromegn: Syntax error in eval:3: unknown regex option: a
<jeromegn> I wonder if there’s a way to get the modifiers
<jhass> mh, inspect should include them, bug IMO
<jhass> jeromegn: ^5
<jeromegn> I just logged it on GH :D
<jhass> I know :P
<jeromegn> waa
<jeromegn> you’re watching it I imagine heh
<jhass> yeah
<jeromegn> I should contribute some docs
<jhass> and I have this crystal thingy here https://github.com/jhass/github_desktop_notifications
<jeromegn> I did see that project before :)
<jeromegn> I wonder if libnotify works on OS X
<jeromegn> jhass: so while you’re here :) my current valgrind issue is
<jeromegn> ==89042== Jump to the invalid address stated on the next line
<jeromegn> ==89042== at 0xFFFFFFFFFFFFFF: ???
<jeromegn> ==89042== Address 0xffffffffffffff is not stack'd, malloc'd or (recently) free'd
<jeromegn> that looks like an odd address
<jhass> jeromegn: it doesn't
<jeromegn> I kept implementing stuff, attempting to reproduce this error, but it only happens with one specific method
sfcgeorge has joined #crystal-lang
<jhass> mh, never saw that one before, congratz :D
<jeromegn> hah
<jhass> does it expect a function pointer or anything?
<jhass> mh
<jhass> how do you initialize offset?
<jeromegn> offset :: UInt8
<jeromegn> I tried offset = UInt8.cast(0)
<jeromegn> the library is almost complete :)
<jhass> mh
<jhass> try out offset (without prior declaration)
<jhass> also debug print to_unsafe.address
<jeromegn> for the BSON::Document?
<jeromegn> how can I send the offset without prior declaration?
<jhass> out declares it
<jeromegn> could that be an issue? “A bitwise-or of all desired bson_validate_flags_t.”
<jeromegn> bitwise-or
<jhass> well, that just means that you only validate UTF8 atm and none of the other things
<jeromegn> “undefined local variable or method 'offset’”
<jhass> (that have flags)
<jeromegn> right
<jhass> , out offset)
<jeromegn> same error
<jeromegn> to_unsafe.address 4304858256
<jhass> mh
<jhass> you don't allocate the BSON document yourself, right?
<jeromegn> no, I use bson_new from the C driver
<jeromegn> I did define its struct
<jeromegn> but even when not defined, using the padding trick, I still get the same issues.
<jhass> waait
<jhass> isn't size_t Int32 or Int64?
<jeromegn> Not sure :)
<jhass> I think we have an alias for that in LibC somewhere already
<jeromegn> oh that would be nice
<jeromegn> LibC::SizeT
<jhass> src/libc.cr:19: alias SizeT = UIntT
<jeromegn> GOSH
<jeromegn> that fixed it
<jeromegn> rejoice!
<jeromegn> now I need to lookup the other places I used that...
<jeromegn> thanks again, life saver
leafybasil has joined #crystal-lang
<jhass> yw
<jhass> took way too long to see that :P
blaix has quit [Quit: Leaving.]
<crystal-gh> [crystal] asterite pushed 5 new commits to master: http://git.io/vUv9k
<crystal-gh> crystal/master ce3280d Ary Borenszweig: Removed githalytics from Readme
<crystal-gh> crystal/master a9492d8 Ary Borenszweig: Document Range, and added `Range#step` iterator.
<crystal-gh> crystal/master 4834249 Ary Borenszweig: Mark several types with nodoc. Improved internal Iterator names.
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vUv7i
<crystal-gh> crystal/master 3af1fa4 Ary Borenszweig: Renamed ArrayIterator to ItemIterator for consistency
<crystal-gh> crystal/master 01e5265 Ary Borenszweig: Fixed silly mistake in Range#step
<jeromegn> that’s probably a bit intense eh? alias AcceptedType = String | Time | Int32 | Int64 | Float64 | Document | Bool | Array(AcceptedType) | Hash(String | Symbol, AcceptedType)
<jeromegn> I think I’m messing up the compiler :)
<jhass> Json::Type looks about the same ;P
<jeromegn> yea
<jeromegn> I thought Array((String | Int32)) would be an AcceptedType
<jeromegn> (I inspired from Json::Type for this)
waj has quit [Quit: waj]
<jeromegn> hmm, why the double parens...
<jhass> mh, yeah weird
<jeromegn> I changed the code slightly and now
<jeromegn> /usr/local/bin/crystal: line 6: 94855 Segmentation fault: 11 "$INSTALL_DIR/embedded/bin/crystal" "$@"
<jeromegn> :)
<jhass> recursive aliases ... ;)
<travis-ci> manastech/crystal#2313 (master - 232010c : Ary Borenszweig): The build is still failing.
<jeromegn> yea maybe...
<jeromegn> so I guess I should separate that huge alias into a few
<jhass> you probably found a bug in crystal though
<jhass> the recursive alias code had a couple already
<jhass> I bet it's a stackoverflow if you valgrind it
<jeromegn> how can I work around that?
<jhass> idk
<jeromegn> I can’t build it, so I can’t valgrind it
<jeromegn> unless there’s some valgrind trick :)
<jhass> my workaround for these kind of bugs is to complain to asterite :P
<jhass> oh, you can valgrind the compiler ;=
<jeromegn> oh, indeed
canhtak has joined #crystal-lang
<jeromegn> valgrind just shows its small intro and then gives me the same error
<travis-ci> manastech/crystal#2314 (master - 01e5265 : Ary Borenszweig): The build is still failing.
<jeromegn> valgrind /usr/local/bin/crystal spec
CraigBuchek has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
havenwood has quit []
bcardiff has joined #crystal-lang
canhtak has quit [Quit: canhtak]
HakanD has quit [Quit: Be back later ...]
aemadrid has joined #crystal-lang
CraigBuchek has quit [Quit: Leaving.]
BlaXpirit is now known as Guest66546
BlaXpirit_ has joined #crystal-lang
Guest66546 has quit [Killed (orwell.freenode.net (Nickname regained by services))]