jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.6 | 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
<sardaukar> should I file an issue for this?
<jhass> always
<Kilo`byte> "..............." - need. moar. tests.
<dzv> is there a quick and easy struct or class serializer that's allocation free?
<jhass> the compiler should never crash, only give you error messages
<dzv> by allocation free i mean heap allocation free. stack is ok
<jhass> didn't check if it has an allocation free API though
<Kilo`byte> how can i define keyword params?
<jhass> Kilo`byte: you can't. atm you can only pass arguments with default values as keywords
<jhass> it's a callside thing
<Kilo`byte> ah so i only need the var name? :P
<Kilo`byte> channel.remove_user naughty_user, "GET OUT", violently: true
<jhass> yeah
<Kilo`byte> would be a kick :P
<jhass> >> def foo(a, b="foo", c="bar") {a, b c}; end; foo(1, c: 1, b: 2}
<DeBot> jhass: Syntax error in eval:4: expecting token ')', not '}' - http://carc.in/#/r/cu6
<jhass> >> def foo(a, b="foo", c="bar") {a, b c}; end; foo(1, c: 1, b: 2)
<DeBot> jhass: in line 4: undefined method 'b' (did you mean 'p'?) - http://carc.in/#/r/cu7
<jhass> sigh
<jhass> >> def foo(a, b="foo", c="bar"); {a, b c}; end; foo(1, c: 1, b: 2)
<DeBot> jhass: in line 4: undefined method 'b' (did you mean 'p'?) - http://carc.in/#/r/cu8
<jhass> sorry
<jhass> >> def foo(a, b="foo", c="bar"); {a, b, c}; end; foo(1, c: 1, b: 2)
<DeBot> jhass: # => {1, 2, 1} - http://carc.in/#/r/cu9
<jhass> there
<dzv> jhass: can you write a structure to an io without allocating anything (no Slice.new or to_slice)?
<dzv> c structure
<jhass> dzv: you can always write code to do anything
<dzv> trying to figure out what to cast LibC:: as to make write work
<dzv> if that's allowed
<Kilo`byte> i also still vote for implicit hash creation :P
<jhass> dzv: .write pointerof(foo) as UInt8*, sizeof(typeof(foo)) or so?
<jhass> idk
<jhass> dzv: btw keep in mind that Slice is a struct, it's very cheap to allocate since it's no heap allocation
<dzv> oh
<jhass> and probably optimized away by llvm anyhow
<dzv> that may solve my problem
thor77 has quit [Ping timeout: 256 seconds]
thor77 has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<Kilo`byte> RX14: if you set tags to an empty hash it does prefix the @
<Kilo`byte> even though it shouldn't
<Kilo`byte> right... i should not echo the message back to the client when sending to a channel..-.
luislavena has quit []
<crystal-gh> [crystal] asterite pushed 4 new commits to master: http://git.io/vsFOt
<crystal-gh> crystal/master e65c0f7 Ary Borenszweig: Small bugfix in StringIO#gets(limit)
<crystal-gh> crystal/master 953bf1d Ary Borenszweig: Fixed #1285: disallow declaring a var with some abstract types
<crystal-gh> crystal/master a38179a Ary Borenszweig: Added some docs to IO
kyrylo has quit [Ping timeout: 245 seconds]
<travis-ci> manastech/crystal#2d44fed (master - Don't give error if expecting a type but NoReturn is computed): The build passed. https://travis-ci.org/manastech/crystal/builds/77252276
NeverDie has joined #crystal-lang
ssvb has quit [Ping timeout: 240 seconds]
waj_ has joined #crystal-lang
waj_ has quit [Read error: Connection reset by peer]
waj__ has joined #crystal-lang
waj__ has quit [Read error: Connection reset by peer]
waj_ has joined #crystal-lang
ylluminate has joined #crystal-lang
waj_ has quit [Remote host closed the connection]
elbow_jason has quit [Quit: Leaving]
kulelu88 has quit [Quit: Leaving]
bcardiff has quit [Quit: bcardiff]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
NeverDie has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
vonkingsley has joined #crystal-lang
bcardiff has joined #crystal-lang
vonkingsley has quit [Quit: Page closed]
BlaXpirit has joined #crystal-lang
havenwood has joined #crystal-lang
sdogruyo_ has quit [Ping timeout: 265 seconds]
sdogruyol has joined #crystal-lang
<BlaXpirit> How do macros defined inside a class work?
<BlaXpirit> I thought they could be used like methods, but they just can't be accessed
<BlaXpirit> very sad to me that macros are accessible only inside the calss
sdogruyol has quit [Read error: Connection reset by peer]
sdogruyol has joined #crystal-lang
havenwood has quit [Ping timeout: 256 seconds]
<crystal-gh> [crystal] BlaXpirit opened pull request #1286: Make anchors in docs conformant to HTML5 (master...anchors-html5) http://git.io/vsbYI
<crystal-gh> [crystal] BlaXpirit opened pull request #1287: Make anchors in docs conformant to HTML4 (master...anchors-html4) http://git.io/vsbYs
bcardiff has quit [Quit: bcardiff]
sdogruyol has quit [Read error: Connection reset by peer]
sdogruyol has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Client Quit]
<dzv> writing a struct to a socket works, but reading it back in doesn't seem to work. http://carc.in/#/r/cui
Ven has joined #crystal-lang
<BlaXpirit> dzv, something about the way you're reading seems wrong to me
<dzv> something about the slice seems wrong to me
<dzv> the read works. if i print the slice i have the data
sdogruyol has quit [Read error: Connection reset by peer]
<BlaXpirit> dzv, `slice2 = s2.read(size)` this is not good
<dzv> oh
<dzv> shit
<dzv> working now, thanks
<BlaXpirit> just needed s2.read(slice2, size) right
<dzv> right
sdogruyol has joined #crystal-lang
<dzv> is there a way to trace memory allocations?
<jhass> dzv: I can imagine valgrind has a flag for it
<jokke> hi
<jokke> what's good practice concerning typing function arguments
<jokke> i'm still a bit unsure when the compiler notices that i'm doing something i shouldn't and when it's a runtime error
<jokke> ideally i would have the compiler find any type errors
<jokke> does it mean i need to define types for all funktion arguments?
<jokke> *method
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
sdogruyol has quit [Read error: Connection reset by peer]
<jhass> jokke: type related runtime errors are only calling .not_nil! (getter! and property! do that too) and resolving a union by casting ([1, "1"].sample as String)
<jhass> jokke: so just use .try instead and .is_a?, case foo; when Type; when OtherType to handle all cases
<jhass> adding method restrictions everywhere can improve the error messages though, since the traces get smaller
<jokke> ah i see
<jokke> i'd love to see something like rubocop for crystal <3
sdogruyol has joined #crystal-lang
<jhass> I think we still need to develop the idioms/best practices it could enforce though ;)
<jokke> yeah :)
leafybasil has quit [Ping timeout: 240 seconds]
<jokke> but i'm totally hooked to crystal now!
<jhass> great!
<jhass> guess it's like crystal meth after all :P
<jokke> hehe
leafybasil has joined #crystal-lang
ssvb has joined #crystal-lang
wanderer_ has joined #crystal-lang
kyrylo has joined #crystal-lang
<wanderer_> jhass: hey, what's up? :) do you know where `Int` and `Char` come from in `lib LibC; fun mkstemp(result : Char*) : Int; end`?
<wanderer_> jhass: oh, thx
Ven has quit [Ping timeout: 252 seconds]
AckZ_ has joined #crystal-lang
AckZ has quit [Ping timeout: 240 seconds]
asterite has quit [Ping timeout: 241 seconds]
rossjones has quit [Ping timeout: 240 seconds]
AckZ_ is now known as AckZ
rossjones has joined #crystal-lang
asterite has joined #crystal-lang
<RX14> so kilobyte complains about an easy serialisation fix, yet he has push access?
<RX14> jeez
<RX14> heh, 2.5 milliseconds to run specs
<RX14> so I guess we don't have a test coverage framework
<RX14> would it be hard to do?
<RX14> thanks
<RX14> source-rewrite debugging tools might not be that hard either right?
clem__ has joined #crystal-lang
<RX14> have a global socket and insert macros everywhere that rewrite debugging info
<jhass> yeah, there's been some talk into that direction somewhere in the issue tracker too
<jhass> godebug does it that way iirc
<RX14> i really want to be able to step through
<RX14> it's really hard for em to debug any other way
kyrylo has quit [Ping timeout: 252 seconds]
<RX14> if a repl existed, dropping a repl in the middle of your code would be great, but it's probably harder to do that in a compiled langauge
DeBot has quit [Ping timeout: 250 seconds]
<jhass> yeah, for a repl you basically need to write a second codegen phase that emits to LLVM's JIT
<jhass> and even then it's kinda hard
<RX14> heh, oh god
sdogruyol has quit [Read error: Connection reset by peer]
<RX14> maybe in the future...
sdogruyol has joined #crystal-lang
clem__ has quit [Ping timeout: 246 seconds]
Ven has joined #crystal-lang
sdogruyol has quit [Read error: Connection reset by peer]
sdogruyol has joined #crystal-lang
<BlaXpirit> welp, i just wrote Array.new(count, Particle.new)
<BlaXpirit> so stupid
<BlaXpirit> does this warrant a warning in docs?
<BlaXpirit> Array.new(count) { Particle.new } # this is what i was supposed to write btw
sdogruyo_ has joined #crystal-lang
ssvb has quit [Ping timeout: 244 seconds]
sdogruyol has quit [Ping timeout: 252 seconds]
<BlaXpirit> Please help me with this code. http://carc.in/#/r/cuz
<BlaXpirit> first of all, is the idea for this macro clear? is it a useful macro or is there a better way to do this?
<BlaXpirit> 2nd, how to make the macro hygienic? replacing v -> %v gives an error with {{yield
<RX14> so that's like groovy's with
<jokke> how would i popen in crystal?
<BlaXpirit> jokke, "popen" is not a word :p
<BlaXpirit> u mean start a process? see class Process
<BlaXpirit> actually is module Process :o
<RX14> there should be an API search in DeBot
<RX14> so like .api process and it would link the docs
<RX14> time to fork debot
<BlaXpirit> i wouldn't be surprised if there is
<RX14> !api
<RX14> !google
<BlaXpirit> uhhh DeBot is dead?
<RX14> oh oops
dylanmei has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
<jokke> BlaXpirit: so if i want to pipe stuff to a process how would i do that?
<jokke> (and then read the output)
<jokke> i saw that Process.run takes two IOs as last params
<BlaXpirit> jokke, well yes, that's it
DeBot has joined #crystal-lang
<jokke> so then does Process.run not block if i pass the IOs?
<RX14> jokke, uhh there should be docs
<RX14> but no it doesn't block at all
<jokke> ok
<RX14> wait, or was that in HEAD
<RX14> it might not be in the latest release
<BlaXpirit> it blocks, jokke
<jokke> hm
<jokke> then i have no clue on how to do it
<BlaXpirit> it's very strange indeed
<RX14> this commit makes stuff make sense
<jhass> RX14: sure, would love a plugin for that ;)
<BlaXpirit> yep, that's great, RX14
<BlaXpirit> now it's actually class Process like i expected
<crystal-gh> [crystal] jhass opened pull request #1288: spawn: print exception class and backtrace to stderr (master...spawn_exception) http://git.io/vsN1L
<dzv> 1/msg jokke hey
<jhass> dzv: btw it's good IRC etiquette to ask people in channel prior messaging them ;)
<RX14> Kilo`byte, still working on that ircd?
waj has joined #crystal-lang
Ven has joined #crystal-lang
kyrylo has joined #crystal-lang
wanderer_ has quit [Ping timeout: 246 seconds]
waj has quit [Remote host closed the connection]
<vifino> Is there something like HTTMultiParty for crystal?
<RX14> i thin I saw something to do with multipaert in the api
<RX14> hmmn i don't think there is sorry
ssvb has joined #crystal-lang
<vifino> RX14: That's fine, I'm just porting ruby code :P
NeverDie has joined #crystal-lang
daphee has joined #crystal-lang
<daphee> Hi, is there a way for readline to operate in raw mode and not print carriage returns?
<jhass> the readline binding is probably far from complete, best you look up how to do that in C and extend https://github.com/manastech/crystal/blob/master/src/readline.cr ;)
<daphee> Ah cool. Suspected that the c library should be able to do that. have never worked with it before though. Will give it a shot!
<crystal-gh> [crystal] asterite pushed 3 new commits to master: http://git.io/vsAmb
<crystal-gh> crystal/master 2e249b3 Oleh Prypin: Make anchors in docs conformant to HTML5...
<crystal-gh> crystal/master 082af1c Oleh Prypin: HTML-escape id attribute in docs
<crystal-gh> crystal/master 51ded65 Ary Borenszweig: Merge pull request #1286 from BlaXpirit/anchors-html5...
<crystal-gh> [crystal] asterite closed pull request #1287: Make anchors in docs conformant to HTML4 (master...anchors-html4) http://git.io/vsbYs
kyrylo has quit [Ping timeout: 272 seconds]
<travis-ci> manastech/crystal#51ded65 (master - Merge pull request #1286 from BlaXpirit/anchors-html5): The build passed. https://travis-ci.org/manastech/crystal/builds/77325177
kyrylo has joined #crystal-lang
Codefriar has quit [Read error: Connection reset by peer]
Codefriar has joined #crystal-lang
Ven has quit [Read error: No route to host]
waj has joined #crystal-lang
waj has quit [Remote host closed the connection]
waj has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 4 new commits to master: http://git.io/vsAl9
<crystal-gh> crystal/master 08393a2 Ary Borenszweig: More IO docs
<crystal-gh> crystal/master 9f67ccd Ary Borenszweig: Some Slice docs, and minor fixes to Array and Pointer docs
<crystal-gh> crystal/master 0069144 Ary Borenszweig: Some simplifications regarding HTML.escape
<jokke> is there any built in shell escaping function?
<jhass> jokke: fix your stuff to not use a shell when it matters
<jokke> jhass: yeah that'd be great
<jokke> but for the program i need there's no c api
<jhass> "not needing a shell" != "not invoking an external program"
<jhass> simply invoke it directly, without going through a shell
sdogruyo_ has quit [Ping timeout: 246 seconds]
<jokke> i do invoke it directly
<jokke> but i need to pass args
<jhass> then why worry about escaping for a non-existent shell
<jhass> (show what you do if you want a confirmation it's not dangerous)
<jokke> now i'm confused
sdogruyol has joined #crystal-lang
<jokke> ah i see
<jokke> i see what you mean
<travis-ci> manastech/crystal#c7a029c (master - Docs: added permalinks to types and methods): The build passed. https://travis-ci.org/manastech/crystal/builds/77330586
Ven has joined #crystal-lang
Ven has quit [Client Quit]
<vifino> asterite: Mind if I steal some code from manastech/crystal_slack? I could definitly need it :)
<RX14> that repo has no licence :(
<RX14> and defaults are all rights reserved on github
<RX14> so always remember to add a license
<vifino> RX14: That's why I'm asking, at least I can throw a "Asterite allowed me to! Don
<vifino> .-.
<RX14> yeah
<vifino> 't sue me pls! D:" before.
<RX14> would be nice if it had a license though
<vifino> yeah..
havenwood has joined #crystal-lang
sdogruyol has quit [Ping timeout: 250 seconds]
sdogruyol has joined #crystal-lang
<asterite> vifino: now it has a license :)
bcardiff has joined #crystal-lang
dylanmei has quit [Quit: ZZZzzz…]
DeBot has quit [Ping timeout: 250 seconds]
<crystal-gh> [crystal] daphee opened pull request #1290: Readline.bind_key and Readline.done added (master...readline_bind_key_readline_done) http://git.io/vsxew
Ven has joined #crystal-lang
<daphee> jhass: Concerning your comments on my PR. To correct the definition of the bind_key function I would change Int to LibReadline::Int right? How would the Proc in the argument return such a LibReadline::Int then? Could one do e.g. "0 as LibReadline::Int" or "0 as LibC::Int" ?
<jhass> daphee: both LibReadline::Int.cast(0) and LibC::Int.cast(0) would work (or .zero for this special case), though we tend to hide the Lib* stuff in the higher level abstraction, so I'd restrict to Int32 (or nothing at all) and convert in the binding
<daphee> jhass: Ok, so bind_key receives a Proc(Int32, Int32, Int32) and converts it to a Proc(LibReadline::Int,LibReadline::Int,LibReadline::Int) before calling LibReadline.rl_bind_key, right? Do I need to wrap the original Proc with another Proc where I do the .cast?
<jhass> mmh
<jhass> yeah, I guess wrapping would be okay here, LLVM should optimize the extra function call out
<daphee> I tried wrapping like that: https://gist.github.com/daphee/e5188a4fae02112d68be which gives me an exception that "passing a closure to C is not allowed"
<daphee> I guess because the original function "f" is wrapped in "wrapper"'s closure right?
<jhass> yes
<jhass> you need to pass f as parameter
shama has joined #crystal-lang
<daphee> I think I don't understand how this would work. I can't wrapper in bind_key right?
<daphee> *can't call
<jhass> eh yeah, I guess I had a brainfart there, sorry
<jhass> mmh, but that you can't pass a closure is annoying anyway
<jhass> there's no `data`/`user_data` parameter?
<daphee> no, there isn't unfortunately. It would be the easiest to change bind_key to receive a Proc(LibReadline::Int...). Wouldn't be too bad neither I believe?
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dylanmei has joined #crystal-lang
<jhass> I guess
<jhass> but not being able to pass a closure... idk how you'd do anything useful with such an API
<jhass> you'd have to store all needed data in a global :(
<daphee> yeah. do you know if it would be possible technically to support closures in C bindings?
<jhass> closures work by passing their context as an additional parameter
<waj> it was in the past, using LLVM trampolines: http://llvm.org/docs/LangRef.html#trampoline-intrinsics
qard has joined #crystal-lang
<jhass> but they dropped that? :(
<waj> but it requires executing code from stack or heap which is not enabled by default
<jhass> ah yeah, that sounds like a bad idea :/
<waj> yup, it opens a whole new world of security holes :)
<jhass> daphee: well, given that makes that API not particularly useful, exposing LibReadline::Int to the user doesn't make much of a difference anyhow I guess
waj has quit [Remote host closed the connection]
Ven has joined #crystal-lang
elbow_jason has joined #crystal-lang
Ven has quit [Remote host closed the connection]
Ven has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
<jokke> how do i use the Projectfile?
<jokke> if i init a lib i get a Projectfile
<jokke> i want to write an app which depends on a lib
<vegai> deps do
<jhass> it doesn't support recursive deps atm
<vegai> oh
<jokke> oh cool
Excureo has joined #crystal-lang
<RX14> i prefer the simple projectfile
<BlaXpirit> :o nice
<RX14> nice!
<asterite> Cool! I don't much (actually, antyhing) about arch. What does the above mean?
<RX14> asterite, AUR is cuer-contributed packages you build yourself
<RX14> community is distro packages you have access to on day 1
<RX14> user-contributed*
<asterite> So it's like now it's in the "official" repository?
<RX14> basically yes
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vsxFr
<crystal-gh> crystal/master d3b2402 Ary Borenszweig: Some docs for BufferedIOMixin
<crystal-gh> crystal/master 52b06ff Ary Borenszweig: Added a spec for the commit 2d44fe: if a subclass decides to raise or exit in a method, return type checking should still succeed
<asterite> Really nice! You rock :-)
kori has quit [Ping timeout: 244 seconds]
<travis-ci> manastech/crystal#52b06ff (master - Added a spec for the commit 2d44fe: if a subclass decides to raise or exit in a method, return type checking should still succeed): The build passed. https://travis-ci.org/manastech/crystal/builds/77369017
Ven has quit [Ping timeout: 255 seconds]
shadeslayer has quit [Ping timeout: 260 seconds]
shadeslayer has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vspUP
<crystal-gh> crystal/master d94e72f Ary Borenszweig: Fixed #640: make `crystal run` return the error code from the underlying program. Also check for segmentation fault.
DeBot has joined #crystal-lang
Excureo has quit [Read error: Connection reset by peer]
Excureo has joined #crystal-lang
blue_deref has joined #crystal-lang
Excureo has quit [Remote host closed the connection]
<travis-ci> manastech/crystal#d94e72f (master - Fixed #640: make `crystal run` return the error code from the underlying program. Also check for segmentation fault.): The build passed. https://travis-ci.org/manastech/crystal/builds/77373218
trapped has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vspqA
<crystal-gh> crystal/master acf4829 Ary Borenszweig: Rewrote system and backtick with Process.run(shell: true), and use `system` instead of `Process.run` in compiler's command
sooli has joined #crystal-lang
<asterite> dzv: doing `STDIN.read_timeout = 3` feels like magic :-)
<asterite> it's so nice to see that working
<asterite> Can you do something like that in Ruby?
kulelu88 has joined #crystal-lang
<sooli> Hi there
<sooli> does someone know why :
<sooli> files = Dir.entries("./db/") - [".", ".."]
<sooli> files = files.map {|l| l.split(".").first.to_i }.sort
<sooli>
<sooli> is working but :
<sooli> files = Dir.entries("./db/") - [".", ".."]
<sooli> files.map! {|l| l.split(".").first.to_i }.sort
<sooli> is not
<asterite> sooli: when you say "is not", what do you mean?
<jhass> because it would change the type of files
<jhass> from Array(String) to Array(Int32)
<sooli> ok I see
havenn has joined #crystal-lang
havenwood has quit [Ping timeout: 265 seconds]
<sooli> just created a little class to manage migrations for crystal web frameworks https://gist.github.com/solisoft/2476718a494e20dbfcc2
<jhass> nice!
Codefriar has left #crystal-lang ["Textual IRC Client: www.textualapp.com"]
waj has joined #crystal-lang
<dzv> asterite: to timeout io you would use eventmachine or similar. another option is select with read_nonblock which returns immediately. so no, you can't do that unless someone wrote an abstraction on top of one of those
<sooli> does crocoa is a workable lib ?
<Netfeed> asterite: seen my suggestion for using the cookies lazily?
DeBot has quit [Ping timeout: 250 seconds]
<asterite> Netfeed: yes! Just didn't have time to review it with waj, but I think we'll merge it
<Netfeed> cool
<Netfeed> should i add that too the commit too?
DeBot has joined #crystal-lang
<asterite> Mmm... add what?
<jhass> asterite: mmh, can it be that the latest changes to system and ` reintroduced the too large ARGV bug?
<Netfeed> answered that to your comment on the pr
<dzv> it probably did. E2BIG right?
<jhass> 127, didn't bother to dig out the specifics yet
<vifino> asterite: Thank you! :D
<jhass> fairly sure it did actually
<dzv> the compiler command was changed to use system. change it back to process.run with cmd = "/bin/sh", input = StringIO.new(real_cmd)
sooli has quit [Ping timeout: 272 seconds]
<dzv> linux return E2BIG if given a single large argument
<asterite> Netfeed: oh, yes, saw it. I guess it's better that it's lazy, but I have to check with waj
waj has quit [Read error: Connection reset by peer]
havenn has quit [Quit: Textual IRC Client: www.textualapp.com]
waj_ has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vspFy
<crystal-gh> crystal/master df716ad Ary Borenszweig: `crystal run` doesn't need to execute the program in a shell. Also make `Process.run` without a block set the `$?` variable
<crystal-gh> crystal/master 83311f3 Ary Borenszweig: Disallow using non-instantiated generic types as type arguments. Fixes #1206, fixes #578, fixes #552, fixes #258
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vspNe
<crystal-gh> crystal/master 67f13ed Ary Borenszweig: Fixed #1256: in docs, regex doesn't need it's value to be escpaed
<travis-ci> manastech/crystal#83311f3 (master - Disallow using non-instantiated generic types as type arguments. Fixes #1206, fixes #578, fixes #552, fixes #258): The build passed. https://travis-ci.org/manastech/crystal/builds/77391233
<Netfeed> asterite: alright
bcardiff has quit [Quit: bcardiff]
leafybasil has joined #crystal-lang
n0xff has joined #crystal-lang
waj_ has quit [Read error: Connection reset by peer]
waj has joined #crystal-lang
bcardiff has joined #crystal-lang
havenwood has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
waj has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Konversation]
<sardaukar> I have a JSON file that I created with a class (using json_mapping)
<sardaukar> but I can't do class.from_json (file_content)
<sardaukar> one of the fields in the file is a Array(UInt8)
<sardaukar> in /usr/local/Cellar/crystal-lang/0.7.6/src/json/from_json.cr:65: undefined method 'new' for UInt8:Class
<sardaukar> it saves properly
<sardaukar> but I can't load it
blue_deref has quit [Quit: bbn]
<sardaukar> I see the spec doesn't have it
<sardaukar> I'll just convert them to ints to save
<RX14> what does the @[Flags] do?
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<RX14> also the XML parser always seems to give me the "Extra content at the end of the document (XML::Error)" error
<RX14> i'm sure there is absolutely no trailing content
<RX14> totally sure
<RX14> huh
<RX14> reading XML from IO breaks, but File.read the same file works
havenwood has joined #crystal-lang
dfockler has joined #crystal-lang
dfockler has left #crystal-lang [#crystal-lang]
kyrylo_ has joined #crystal-lang
kyrylo has quit [Ping timeout: 246 seconds]
kyrylo_ has quit [Quit: Konversation terminated!]
bcardiff has quit [Remote host closed the connection]
kyrylo has joined #crystal-lang
daphee has left #crystal-lang [#crystal-lang]
waj has joined #crystal-lang