jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.17.3 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
Philpax has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 252 seconds]
Raimondii is now known as Raimondi
dhk has quit [Ping timeout: 252 seconds]
Philpax has quit [Ping timeout: 240 seconds]
dhk has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 258 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
soveran has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
willl has quit [Quit: Connection closed for inactivity]
dhk has quit [Ping timeout: 240 seconds]
mgarciaisaia has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
mgarciaisaia has left #crystal-lang [#crystal-lang]
soveran has joined #crystal-lang
kfpratt has quit [Remote host closed the connection]
soveran has quit [Ping timeout: 272 seconds]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 260 seconds]
dhk has joined #crystal-lang
dhk has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
bjz_ has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
Philpax has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
jmoriau has joined #crystal-lang
Philpax has joined #crystal-lang
ryanw-se has quit [Quit: Leaving...]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
soveran has joined #crystal-lang
Raimondii has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
Raimondi has quit [Ping timeout: 240 seconds]
trapped has joined #crystal-lang
Raimondii is now known as Raimondi
mgarciaisaia has joined #crystal-lang
mark_66 has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
steenuil has joined #crystal-lang
ruslux has joined #crystal-lang
<ruslux> Hi! Tnx for 0.17!
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 258 seconds]
pawnbox has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
<jhass> :)
zodiak has joined #crystal-lang
zodiak_ has quit [Ping timeout: 240 seconds]
Philpax has quit [Read error: Connection reset by peer]
_jungh4ns has quit [Ping timeout: 264 seconds]
Philpax has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
soveran 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
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
jmoriau has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jmoriau has joined #crystal-lang
bjz_ has quit [Ping timeout: 276 seconds]
bjz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
bjz has quit [Max SendQ exceeded]
bjz has joined #crystal-lang
dhk has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
<wmoxam> https://play.crystal-lang.org/#/r/zks <-- The output of the last line is not what I would expect, I'm expecting: #<Thing2:...> :: Thing2
<wmoxam> Any ideas?
<jhass> wmoxam: https://play.crystal-lang.org/#/r/zkt that's what macro def's are for, instantiated in the child classes
<wmoxam> hrmm, ok
<wmoxam> odd that it works in the first case then? ie: line 20
<jhass> mh, I guess
<wmoxam> (thanks btw)
<jhass> I agree that's inconsistent, feel free to open an issue to discuss
<wmoxam>
kaleido has joined #crystal-lang
soveran has quit [Remote host closed the connection]
trapped has joined #crystal-lang
kostya has joined #crystal-lang
Philpax has quit [Ping timeout: 252 seconds]
soveran has joined #crystal-lang
kulelu88 has joined #crystal-lang
ruslux has quit [Ping timeout: 250 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
mark_66 has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
|2701 has joined #crystal-lang
soveran has quit [Remote host closed the connection]
kaleido has left #crystal-lang [#crystal-lang]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
TheLemonMan has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
paulcsmith_ has joined #crystal-lang
kostya has quit [Quit: Leaving]
miqlas-H has joined #crystal-lang
<miqlas-H> Hi Guys!
<jhass> hi!
<miqlas-H> Oh, you are here too
<jhass> of course ;)
<miqlas-H> actually everybody on IRC should join to haiku channel, because i don't like to talk in more rooms.
<miqlas-H> it could be the first step in the direction to world peace, you know...
<jhass> heh
<jhass> 53 rooms here :P
<miqlas-H> but how many users?
<BlaXpirit> miqlas-H, what, how many users jhass has? that makes no sense
<miqlas-H> no, the server.
<jhass> dunno, can I let weechat count somehow?
<miqlas-H> I see this:
<miqlas-H> * There are 142 users and 89303 invisible on 26 servers
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrP1j
<crystal-gh> crystal/master 29b0056 Ary Borenszweig: Merge branch 'release/0.17'
<miqlas-H> if everybody will join to #haiku we could make a nice community.
<BlaXpirit> ...
<miqlas-H> BlaXpirit: Wrong chael. Please use the #haiku channel if you want todiskuss about anything
<miqlas-H> omg
<miqlas-H> BlaXpirit: Wrong chanel. Please use the #haiku chanel if you want to discuss about anything.
<jhass> it's channel :P
<miqlas-H> Haiku build log: http://termbin.com/spxe
<jhass> which llvm version is that against?
<miqlas-H> ~/Desktop/crystal-0.17.3> llvm-config --version
<miqlas-H> 3.8.0
<jhass> yup, too new, sorry, you gotta get 3.5 or 3.6, see https://github.com/crystal-lang/crystal/issues/1614
<miqlas-H> jhass: nope. you need to support llvm 3.8 :)
<jhass> work nobody was able to spent yet, see the issue ;)
<jhass> it's not trivial unfortunately
<miqlas-H> i downloaded actually around 300 mB trough the pub's WLAN, you need to understand, that the pub haven't got unlimited bandwith
<miqlas-H> and it was just the llvm!
<jhass> curious, arch's LLVM package is "just" around 100M
<jhass> nvm, that's installed even, the package is just 14M
<miqlas-H> ok, maybe, the Haiku package manager writes just prencentage
<travis-ci> crystal-lang/crystal#29b0056 (master - Merge branch 'release/0.17'): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/132921705
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
<travis-ci> crystal-lang/crystal#1dd26e6 (release/0.17 - Compiler: automatically consider a method as "macro def" when `@type` is found inside macro code. Fixes #2647. Related to #2565): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/132921727
<miketheman> good day, all
<miketheman> curious about the branching/merging strategy on master - it appears that fixes are being applied to the release branch first, insted of to master?
<miketheman> Makes for a somewhat "interesting" commit history log of master, which makes it a bit harder to reason about
<jhass> miketheman: yes, changes which should be included into 0.17.4 go into the release branch, changes towards 0.18 only go directly into master
<jhass> git log --no-merges hides merge commits
<jhass> keeping the release branch an exact subset of master has several advantages, most importantly no duplicated commits
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrPFc
<crystal-gh> crystal/master 97a7216 Ary Borenszweig: Merge branch 'release/0.17'
<jhass> but also an easy view of what's in master that isn't in the release branch for example
<miketheman> yeah, locally I can see that - using github's ui, it's definitely less clear. :)
<jhass> everything has its price ;)
<jhass> and I would argue that as a Github UI issue :P
<miketheman> very true. :P
<miketheman> As long as it's intentional. Since it "appears" to me that features are being added to the released branch (not bugfixes) and then merged into master, whereas my "vision" is that you develop a feature on master, and if it makes sense you merge it to a release branch
<jhass> less so merge it into one as more creating one from it
<jhass> and we're < 1.0 so everything goes, even according to semantic versioning :P
<jhass> so for the moment major vs patch is more about the "scope" of stuff
<jhass> how broadly it affects the language
<miketheman> fair enough
<BlaXpirit> jhass, not really. the releases make very good sense
<BlaXpirit> 0.x.y - change of y does not introduce backwards incompatible changes
<BlaXpirit> ...or major features
<txdv> jhass: how much do you think is crystal faster compared to ruby?
<BlaXpirit> very
<BlaXpirit> what kind of answer do you expect
<miketheman> "7"
<jhass> txdv: depends on the workload, but for most it's closer to C than to Ruby
<BlaXpirit> jhass, i know but first of all we don't know if crystal developers follow semver, and i'm not talking about semver but about my observations
<miketheman> Caveat Programmer
trapped has quit [Read error: Connection reset by peer]
<travis-ci> crystal-lang/crystal#447f84d (release/0.17 - Macros: implement `==` and `!=` between macro ids and string/symbol literals): The build is still failing. https://travis-ci.org/crystal-lang/crystal/builds/132935746
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<miqlas-H> bye Guys!
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
pawnbox has quit [Ping timeout: 244 seconds]
<asterite> All the branches and merge mess is because I want to release 0.17.4 soon, which contains backwards changes (I don't want to make breaking changes now because the last release happened recently, so to give some air to upgrade code). After that, I'll probably start committing directly to master towards 0.18.0 (thus making some breaking changes I have in mind)
<jhass> <3
<zodiak> can I ask (sorry) if there is any word/progress/ticket I can read up on about parallelism/pthreads/etc (sorry again :)
<crystal-gh> [crystal] asterite opened pull request #2648: JSON: added `root` option to mapping, and `root` argument overload to… (release/0.17...feature/json_root) https://git.io/vrXfp
<asterite> zodiak: there isn't. But we'll probably tackle it next month. waj is on vacations and he'll be back in three or four weeks, and after that we'll do it. It might take a while because I can imagine we'll have to write a GC from scratch
<asterite> I've been thinking and maybe doing parallelism is more important than fixing the bugs related to generics, because right now some part of generics are broken so you don't use them, but you can still make programs. But once we add parallelism some code bases will have to change (to be concurrent-safe)
<zodiak> my gc-fu is weak, but I have dabbled with the boehm c-lib stuff before, it's maybe not parallelism safe but maybe a starting point ?
<zodiak> the reason I am holding off on trumpeting crystal for microservices around work is because i know someone is going to say 'but what about X that makes use of all cores'
<zodiak> it's a mentality thing I guess
<jhass> I mean for example for the sidekiq.cr case you can simply run N instances
<asterite> we are currently using boehm, but the main issue we have it that it doesn't scan thread local storage: https://github.com/ivmai/bdwgc (search for one of the WARNINGs)
<asterite> so for that we must change it, compile it and distribute a modified copy ourselves... but it's not a simple task, we'll have to learn how it works. But, in Crystal we can do a precise GC, so maybe it's better to just drop boehm
<asterite> zodiak: I think many use node.js for microservices, and node.js also runs on one thread
willl has joined #crystal-lang
<zodiak> asterite: this is another reason why the digerati here are shouting 'no node' :)
<zodiak> don't get me wrong, some single proc things are awesome (redis etc)
<zodiak> I jst think there is a .. well .. 'mindset' out here in S.Cali that the 'next big thing' has to use "all the cores"
<zodiak> maybe I am biased
<zodiak> boehm is also sort of a 'simple gc' - granted (better than I could probably invent mind you :)
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrXLf
<crystal-gh> crystal/master 3d13b18 Ary Borenszweig: Merge branch 'release/0.17'
<miketheman> jhass: I'm taking a stab at adding the `Socket.gethostname` method you showed in the mailing list. You had mentioned something about platform portability testing - any guidance on that?
dhk has quit [Quit: Leaving]
<jhass> well for the moment it would be good to verify it works on OS X too, but taking a look at FreeBSD and Alpine/musl-libc would be good too
<miketheman> Is it "allowed" to scaffold a variable during spec tests by shelling out to the platform's `hostname` to assert equality?
mhib has joined #crystal-lang
<jhass> should be okay, again given it actually works on OS X too ;)
<miketheman> yeah - I dev on OS X, and it works so far. :)
<jhass> cool
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<miketheman> mind if i tag you in the PR?
<jhass> also check the manpages for deprecation warnings
<jhass> not at all
<miketheman> awesome
<travis-ci> crystal-lang/crystal#97b968b (release/0.17 - Formatter: fix related to implicit macro defs): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/132954996
<crystal-gh> [crystal] miketheman opened pull request #2649: :sparkles: std: Socket.gethostname (master...miketheman/socket_gethostname) https://git.io/vrX3B
<travis-ci> crystal-lang/crystal#3d13b18 (master - Merge branch 'release/0.17'): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/132955024
<willl> asterite: I would second the move in focus to parallelism. I also think that would probably need a move off of boehm, which also might need more bookkeeping and maybe unfortunately losing c compatible structs, but it's better to explore these things now pre 1.0
<asterite> willl: why losing c compatible structs?
<willl> as I understand it, most gc techniques not boem require bookkepeing near the data,
<willl> but boem scans heaps for pointer looking things, right?
<willl> *boehm
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vrXGm
<crystal-gh> crystal/master fb22a89 Jonne Haß: Merge branch 'release/0.17'
<miketheman> II'm kind of wishing the issues and pr's made more use of the Labels in github for simple parsing of large lists - I see myself as less of a `compiler` person and more of a `std lib`, so it'd be nice to be able to focus there. ;)
<BlaXpirit> miketheman, ??? current situation seems great to me
<miketheman> BlaXpirit: am I missing something? no labels in https://github.com/crystal-lang/crystal/pulls
<miketheman> well, 1 or 2
<BlaXpirit> bleh, in my view all pulls should reference an issue anyway
<BlaXpirit> then u wouldnt need to scan pulls in the first place
<miketheman> BlaXpirit: well, if there's an issue AND a pull, for something as simple as a docs update, isn't that incurring unneeded overhead?
<BlaXpirit> yes, there is that dilemma
<BlaXpirit> at least pull requests don't pile up like issues, it's reasonable to look through them all
mhib has quit [Remote host closed the connection]
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has quit [Remote host closed the connection]
jmoriau has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<travis-ci> crystal-lang/crystal#fb22a89 (master - Merge branch 'release/0.17'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/132965320
<willl> asterite: oh wait nevermind, structs are stack only, so not subject to the bookkeeping
<travis-ci> crystal-lang/crystal#463d301 (release/0.17 - Merge pull request #2648 from crystal-lang/feature/json_root): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/132965340
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
matp has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philpax has joined #crystal-lang
jmoriau has joined #crystal-lang
pawnbox has joined #crystal-lang
jmoriau has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
pawnbox has quit [Ping timeout: 260 seconds]
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang
bjz has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang
bjz has quit [Max SendQ exceeded]
bjz has joined #crystal-lang
jmoriau has quit [Client Quit]
bjz has quit [Ping timeout: 260 seconds]
Philpax has quit [Ping timeout: 252 seconds]
jhass has quit [Ping timeout: 260 seconds]
asterite has quit [Ping timeout: 260 seconds]
DeBot has quit [Ping timeout: 264 seconds]
asterite has joined #crystal-lang
jhass has joined #crystal-lang
<crystal-gh> [crystal] asterite opened pull request #2650: Float: more accurate to_s (release/0.17...feature/float_to_s) https://git.io/vrXu5
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang
jmoriau has quit [Client Quit]
jmoriau has joined #crystal-lang