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
<asterite> jokke: use Process.new
emmanueloga has quit [Ping timeout: 256 seconds]
emmanueloga has joined #crystal-lang
waj has quit [Read error: Connection reset by peer]
waj_ has joined #crystal-lang
qard_ has quit [Quit: Textual IRC Client: www.textualapp.com]
qard has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
waterlin1 has joined #crystal-lang
havenwood has joined #crystal-lang
waterlink has quit [Ping timeout: 250 seconds]
fowlduck has joined #crystal-lang
waterlin1 has quit [Quit: leaving]
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qard has joined #crystal-lang
qard has quit [Client Quit]
qard has joined #crystal-lang
NeverDie has joined #crystal-lang
waj_ has quit [Read error: Connection reset by peer]
waj has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
waj has quit [Remote host closed the connection]
dylanmei has quit [Quit: ZZZzzz…]
dom96 has quit [Ping timeout: 246 seconds]
dom96 has joined #crystal-lang
havenwood has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
waj has joined #crystal-lang
waj has quit [Ping timeout: 264 seconds]
<crystal-gh> [crystal] technorama opened pull request #1356: Use IO.pipe {} and remove redundant method from spec. (master...f/remove_with_pipe) http://git.io/vGygF
BlaXpirit has joined #crystal-lang
waj has joined #crystal-lang
trapped has joined #crystal-lang
waj has quit [Ping timeout: 265 seconds]
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] jhass pushed 2 new commits to master: http://git.io/vGyPr
<crystal-gh> crystal/master fdfc04c Technorama Ltd: Use IO.pipe {} and remove redundant method from spec.
<crystal-gh> crystal/master e0ba5ab Jonne Haß: Merge pull request #1356 from technorama/f/remove_with_pipe...
<travis-ci> manastech/crystal#e0ba5ab (master - Merge pull request #1356 from technorama/f/remove_with_pipe): The build passed. https://travis-ci.org/manastech/crystal/builds/78525659
tatey_ has quit []
Ven has joined #crystal-lang
<jhass> idk
<trapped> i have a class that's derived from an abstract class
<jhass> I didn't really dive into the compiler internals yet
<trapped> but i can't use instance vars because of that restriction
<jhass> uh, on the instance level sure you can
<trapped> it seems like it won't let me
<jhass> on the class level the inheritance part is irrelevant to that
<trapped> let me just commit so you can give it a look
<jhass> also note that class vars don't spread across the inheritance chain like in Ruby http://carc.in/#/r/dlt
<trapped> well actually that's not the correct error
<trapped> better if you clone
<jhass> you define cmd_xxx as class methods
<trapped> if i don't define them as class methods i get an error instantiating the function pointer
<trapped> probably rightfully since it's not pointing to any instance
<jhass> yup
<jhass> it's a design issue you have, having instances and then not
<trapped> what was the other way you suggested me to write it? using procs?
<jhass> maybe though that won't allow you to access context either
<jhass> I'd say record the names and build a dispatcher from it, like artanis does
<trapped> i'll try the artanis method
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tatey_ has joined #crystal-lang
Ven has joined #crystal-lang
ssvb has quit [Ping timeout: 260 seconds]
ssvb has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 272 seconds]
fowlduck has quit [Remote host closed the connection]
DeBot has quit [Ping timeout: 246 seconds]
waj has joined #crystal-lang
waj has quit [Ping timeout: 250 seconds]
leafybasil has joined #crystal-lang
DeBot has joined #crystal-lang
Ven has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 246 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhass has quit [Ping timeout: 252 seconds]
asterite has quit [Ping timeout: 250 seconds]
waj has joined #crystal-lang
dyulax has joined #crystal-lang
waj has quit [Ping timeout: 256 seconds]
Ven has joined #crystal-lang
ssvb has quit [Ping timeout: 240 seconds]
DeBot has quit [Ping timeout: 250 seconds]
tatey_ has quit []
wuehlmaus has joined #crystal-lang
DeBot has joined #crystal-lang
fowlduck has joined #crystal-lang
asterite has joined #crystal-lang
jhass has joined #crystal-lang
fowlduck has quit [Ping timeout: 250 seconds]
waj has joined #crystal-lang
havenwood has joined #crystal-lang
waj has quit [Ping timeout: 256 seconds]
DeBot_ has joined #crystal-lang
DeBot_ has quit [Client Quit]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waj has joined #crystal-lang
NeverDie has joined #crystal-lang
<trapped> are macro inlined?
<trapped> i guess they are
<jhass> they're evaluated before even LLVM sees them
<jhass> there are no functions or anything generated for them that could be inlined or not
<trapped> yeah they're macros after all
dylanmei has joined #crystal-lang
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vG9ng
<crystal-gh> crystal/master eeb6f92 Juan Wajnerman: Workaround glibc bug in 32bit when `makecontext` is used (fixes #1311)
ssvb has joined #crystal-lang
<travis-ci> manastech/crystal#eeb6f92 (master - Workaround glibc bug in 32bit when `makecontext` is used (fixes #1311)): The build passed. https://travis-ci.org/manastech/crystal/builds/78573928
dylanmei has quit [Quit: ZZZzzz…]
dylanmei has joined #crystal-lang
<crystal-gh> [crystal] jhass closed pull request #1316: Make a BufferedChannel spec more resistant (master...stalled_builds) http://git.io/vGOg2
<crystal-gh> [crystal] jhass pushed 3 new commits to master: http://git.io/vG9u7
<crystal-gh> crystal/master 90ebd09 Anton Davydov: Add documentation for some Iterator methods [skip ci]
<crystal-gh> crystal/master 13f838a Tobias Pfeiffer: Rework iterator documentation to be iterator centric...
<crystal-gh> crystal/master b265332 Jonne Haß: Merge branch 'PragTob-rebased-iterator-docs'
<crystal-gh> [crystal] jhass closed pull request #1352: Rebased iterator docs (master...rebased-iterator-docs) http://git.io/vGP6o
<crystal-gh> [crystal] davydovanton closed pull request #1063: Add documentation for some Iterator methods (master...doc-iterator) http://git.io/vOfdt
<travis-ci> manastech/crystal#b265332 (master - Merge branch 'PragTob-rebased-iterator-docs'): The build passed. https://travis-ci.org/manastech/crystal/builds/78578869
waj has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
fowlduck_ has joined #crystal-lang
fowlduck has quit [Ping timeout: 246 seconds]
Ven has joined #crystal-lang
<jhass> asterite: mind if I edit some bullet points into that issue? :P
<asterite> jhass: ouch, I just realized I copied it from the rendered version
<asterite> There :)
<jhass> better <3
<jhass> I'm not sure either how I feel about the _releases branch tbh
<asterite> Yes, me neither. For now I just copied the text from the Roadmap. Maybe also fully descentralized isn't very good, not sure
<jhass> well, we can do bower/npm or maybe luarocks
<jhass> have a registry for names, support multiple registries, support full git URLs
<RX14> well, git tags can have text, you can use git tags for package manager metadata
<jhass> ^ I actually just had the same idea, what about embedding metadata into a git tags annotation
* RX14 wonders why noboddy though of this before
<jhass> question is whether we can fetch the annotation without fetching the associated object I guess
<RX14> hmmn
<jhass> yeah, git fetch -t fetches all the objects already :/
<RX14> do we really need to optimise such stuff?
<RX14> git repos are usually quite small
<RX14> of course you would want to cache your clones somewhere, then check out versions from the local copy
<RX14> and clone in parallel too
<jhass> mmh, ls-remote --tags gets you the names and objects
<RX14> oo
<jhass> but the annotations are somewhere else :/
<RX14> jhass, the refs/tags points to the tag meta
<RX14> i think
<RX14> so you can get that object only, and read it?
<jhass> 16:59 <jhass> how are tag annotations stored? is there any chance to read them from a remote repository without also fetching the worktree/any associated commit etc.?
<jhass> 16:59 <+_ikke_> They are tag blobs
<jhass> 17:00 <+_ikke_> so no, there is no way
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<jhass> so we gonna have to fetch the worktree of at least the latest version we're interested in, but we could lookup if that (and which others) version is even available prior
<jhass> and then have the cumulative metadata in the main branch
NeverDie has joined #crystal-lang
<RX14> once you have checked out the latest code, you're most likely to have 90% of the repository
<jhass> we can do shallow bare clones
<jhass> git clone --bare --depth=1
<jhass> git --git-dir=... ls-remote --tags
<RX14> mnn
<jhass> git --git-dir=... fetch rev
<jhass> git --git-dir=... --work-tree=... checkout rev or whatever it was to create a worktree somewhere
<RX14> you would want to clone into something like ~/.crystal/deps/user/repo.git
<RX14> then check out later
<RX14> is it github-only?
<RX14> or git-only?
<jhass> at the end of the day the goal should be at least git
<jhass> other VCSs once that's working
<jhass> but I wouldn't rely on GH only in the design
<RX14> we could optimise on github
<RX14> so all git worked, but on github use the github API to get tags and stuff?
<jhass> iirc latest git made it easier to work with distinct worktrees, even replaced contrib/worktree with something in core
<jhass> mmh
<RX14> yeah, but we would want a clone not a worktree
<jhass> I'm saying we can maintain a central clone and checkout different worktrees referencing it in different projects
<crystal-gh> [crystal] asterite pushed 7 new commits to master: http://git.io/vGHT1
<crystal-gh> crystal/master 90e2fd0 Ary Borenszweig: Added macro methods for `case`, `when` and Assign
<crystal-gh> crystal/master c739ec7 Ary Borenszweig: Added `ASTNode#raise` macro method so you can give error messages in a particular location (given by a node)
<crystal-gh> crystal/master 79bf122 Ary Borenszweig: Docs: hide subclasses that shouldn't be shown
<RX14> but afaik you can have only one worktree per ref
<RX14> oh, one worktree per branch
<RX14> refs n times
<jhass> I wish ysbadddaden would hang out here more :P
<RX14> jhass, but what about older git?
<RX14> do we have to support that?
<RX14> would we just doa clone then?
<jhass> I'd tend to argue no :P
<RX14> me too, i always have latest everything on arch
<jhass> I guess easy fallback strategy would be full bare clone, yeah
<RX14> clone from local disk is pretty fast though
<jhass> and then full clone of that instead of checkout
<[spoiler]> RX14: anyone who uses git will be a developer, so it's easy to assume they'll be competent enough to have an updated version
<RX14> never make the assumption that developers are more competent using linux
<[spoiler]> LOL
<RX14> or doing anything outside of an IDE
<RX14> i've seen some people...
<RX14> great coders, but they only want to press the little run button in their IDE
<RX14> everything else is unneccesary, they download jars by hand etc.
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<RX14> but that might just be java devs
<RX14> there should be a nice crystal deps checkout command that checks out master into a folder
<RX14> or maybe crystal contribute which checks out from cache then installs deps?
<travis-ci> manastech/crystal#f3f9323 (master - Added more return types in IO, making sure (and letting know) that puts and print return nil): The build passed. https://travis-ci.org/manastech/crystal/builds/78594910
<jhass> I wouldn't add that to the design requirements tbh. We can see if it's a low hanging fruit everything else considered
<RX14> jhass, what about decentralised + central cache
<RX14> so you can dev with the cache down
<jhass> you mean have a downloadable index?
<RX14> ys
<RX14> but it can fall back to git
<jhass> that's what made bundler slow in the past
<RX14> why slow? you're not downloading everything
<jhass> because turns out you have to download it all the time and parse that huge thing everytime
<RX14> well, i meant a index per repository
<jhass> if you want to resolve properly you have to
<jhass> okay, I might not be following you at all
<RX14> probably
<leafybasil> Anyone know why the curses sample renders nothing at all on my term in OSX?
<leafybasil> No error or issue reported, just doesn't "do" anything
<jhass> indeed it does nothing here too
<jhass> guess it broke somewhere
<leafybasil> :(
<leafybasil> I don't have time to try and look into it now, but I will endeavour to do so "soon".
dylanmei has quit [Quit: ZZZzzz…]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #crystal-lang
<RX14> I would love to use some sse4.2 string function is my IRC lib...
<RX14> s.is/in/
<RX14> s/is/in/
<RX14> that 16 byte string comparison...
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
fowlduck_ has quit [Remote host closed the connection]
blue_deref has joined #crystal-lang
leafybasil has quit [Read error: Connection reset by peer]
leafybas_ has joined #crystal-lang
qard has joined #crystal-lang
leafybas_ has quit [Read error: Connection reset by peer]
leafybasil has joined #crystal-lang
dylanmei has joined #crystal-lang
<willl> I have not been able to use the sse4.2 intrinsics :/
blue_deref has quit [Quit: Taking myself out of hear.]
kyrylo has quit [Ping timeout: 255 seconds]
<dzv> is there a way to initialize an instance variable from an included module?
havenwood has joined #crystal-lang
fowlduck has joined #crystal-lang
<BlaXpirit> dzv, that sure sounds like a bad idea
<BlaXpirit> maybe the included module can define a function used to initialize
<jhass> actually http://carc.in/#/r/dmt
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 246 seconds]
<crystal-gh> [crystal] PragTob opened pull request #1359: Add remaining Iterator docs along with missing specs (master...more-iterator-docs) http://git.io/vGQEB
<dzv> included isn't within the module scope but is instance scope? is that a bug?
<dzv> or are the semantics of @ different from ruby?
<dzv> how do I convert a UInt8 to a Char?
<jhass> .chr
<jhass> and it's not a bug but intended
<jhass> it's a macro after all
<jhass> running it inside the module is rarely useful
<RX14> i might just rewrite my whole irc parser in assembly for fun
<crystal-gh> [crystal] kirbyfan64 opened pull request #1360: Try to fix #1358 (master...type_s_fix) http://git.io/vGQiQ
<crystal-gh> [crystal] jhass pushed 2 new commits to master: http://git.io/vGQXT
<crystal-gh> crystal/master ac8ba4c Tobias Pfeiffer: Add remaining Iterator docs along with missing specs
<crystal-gh> crystal/master 271f66f Jonne Haß: Merge pull request #1359 from PragTob/more-iterator-docs...
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vGQ1y
<crystal-gh> crystal/master 3b648af Ary Borenszweig: Fixed #1358: Wrong full type name in types contained in generic class
<crystal-gh> [crystal] kirbyfan64 closed pull request #1360: Try to fix #1358 (master...type_s_fix) http://git.io/vGQiQ
<dzv> Is there a way to store Fiber local data? I'm trying to implement nested transaction do x, where ORM methods inside need the current transaction.
<jhass> you could monkey patch Fiber and use Fiber.current, but meeh
<travis-ci> manastech/crystal#3b648af (master - Fixed #1358: Wrong full type name in types contained in generic class): The build passed. https://travis-ci.org/manastech/crystal/builds/78632956
NeverDie has joined #crystal-lang
<dzv> jhass (or anyone) do you have any suggestions on safely storing fiber local variables? https://github.com/technorama/crystal/tree/f/fiber_local
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
waj has joined #crystal-lang
dylanmei has quit [Ping timeout: 268 seconds]
fowlduck has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
dyulax has quit [Ping timeout: 265 seconds]
waj has quit [Read error: Connection reset by peer]
waj_ has joined #crystal-lang
kyrylo has joined #crystal-lang
waj_ has quit [Remote host closed the connection]
dyulax has joined #crystal-lang
waterlink has joined #crystal-lang
havenwood has quit [Ping timeout: 272 seconds]
elbow_jason has joined #crystal-lang
elbow_jason has quit [Ping timeout: 264 seconds]
havenwood has joined #crystal-lang
fowlduck has joined #crystal-lang
elbow_jason has joined #crystal-lang
fowlduck has quit [Ping timeout: 265 seconds]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 250 seconds]
havenwood has quit [Ping timeout: 265 seconds]
BlaXpirit has quit [Quit: Konversation]
havenwood has joined #crystal-lang
havenn has joined #crystal-lang
havenwood has quit [Ping timeout: 265 seconds]
tatey_ has joined #crystal-lang
fowlduck has joined #crystal-lang
dfockler has joined #crystal-lang
<dfockler> Hello, I'm trying to compile crystal, but it's erroring
<dfockler> make: *** [.build/crystal] Error 1
<dfockler> nvm I got it to work by updating crystal :)
fowlduck has quit [Remote host closed the connection]
havenn has quit [Quit: Textual IRC Client: www.textualapp.com]
dfockler has quit [Remote host closed the connection]
elbow_jason has quit [Remote host closed the connection]
dylanmei has joined #crystal-lang
kyrylo has quit [Ping timeout: 244 seconds]
dyulax has quit [Quit: This computer has gone to sleep]