jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.7 | 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 quit [Ping timeout: 244 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
tomchapin has quit [Read error: Connection reset by peer]
tomchapin has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaun_ has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaun_ has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
onethirtyfive has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
willl has quit [Quit: Connection closed for inactivity]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 265 seconds]
xmgx has quit [Remote host closed the connection]
mgarciaisaia1 has joined #crystal-lang
adam^ is now known as adam12
adam12 is now known as Guest20954
Guest20954 is now known as adam12
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
Philpax has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 252 seconds]
Philpax has quit [Ping timeout: 244 seconds]
mgarciaisaia1 has quit [Ping timeout: 244 seconds]
mgarciaisaia has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
mgarciaisaia has quit [Ping timeout: 258 seconds]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 244 seconds]
<FromGitter> <ssaatya> hello
<FromGitter> <ssaatya> how can i include c++ library
<jhass> c++ symbol mangling isn't well defined, so you can't create a reliable biding without a C wrapper
<jhass> *binding
<FromGitter> <ssaatya> Ok
<FromGitter> <ssaatya> I what can try or its impossible right now
<jhass> it's probably impossible, what do you need a binding for?
<FromGitter> <ssaatya> for mlpack
<FromGitter> <ssaatya> library
<jhass> I can't find any existing C wrapper, so you would need to write one yourself for what you need
<FromGitter> <ssaatya> Ok thanks for your help once again
pawnbox has quit [Remote host closed the connection]
<txdv> c++ symbol mangling depends on the compiler and its version
<txdv> but it is well defined if you use the same compiler and version of it
<txdv> it always generates the same mangling
<FromGitter> <ssaatya> Ok thanks i will try
mark_66 has joined #crystal-lang
<BlaXpirit> try what
<txdv> create a c wrapper?
pawnbox has joined #crystal-lang
<FromGitter> <ssaatya> no
<FromGitter> <ssaatya> what is interoperability between c++ and crystal
<jhass> crystal makes no special effort at all to allow interoperation with c++
<FromGitter> <ssaatya> Ok thanks
<FromGitter> <ssaatya> Should use libc make process and call bin generated by mlpack
<FromGitter> <ssaatya> what is extern feature
<jhass> in what context?
<jhass> where did you read about it?
<FromGitter> <ssaatya> feature/extern
<jhass> ah, the branch
<FromGitter> <ssaatya> yes
<jhass> https://github.com/crystal-lang/crystal/pull/3051 describes it pretty well
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
xmgx has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
xmgx has quit [Remote host closed the connection]
<FromGitter> <sdogruyol> ugh, i'm trying to clone this to Crystal with Kemal http://stjhimy.com/posts/2016-08-13-one-million-sinatra-routes/
<FromGitter> <sdogruyol> seems like 1mm method definitions eats up the compiler :/
<FromGitter> <sdogruyol> even 100k is enough to hold the compiler
<FromGitter> <sdogruyol> meanwhile i'm building with --release
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 244 seconds]
<FromGitter> <sdogruyol> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=57b5a5438d93113d5f074d9c]
Philpax has joined #crystal-lang
akwiatkowski has joined #crystal-lang
<akwiatkowski> Hello. I have lib https://github.com/akwiatkowski/crystal_api/blob/master/shard.yml and if I use it in application I got `Error shard name (pg) doesn't match dependency name (crystal-pg)`
<akwiatkowski> The app is a freshly initialized with only 1 dependency: `crystal_api: github: "akwiatkowski/crystal_api"`
<jhass> akwiatkowski: specific version or branch: master ?
<akwiatkowski> the branch is master, but I hadn't specified it
<jhass> ah, curious
<jhass> I thought one of version or branch was mandatory
<akwiatkowski> If I use all dependencies from my lib (in app) `shards update` works. Update in lib works
<akwiatkowski> I'm gonna try it
<akwiatkowski> Yep, adding branch fix it
<jhass> weird, probably a bug in shards
<akwiatkowski> It looks like shards takes first branch available (sorted by name)
<akwiatkowski> In my situation it took bad branch "interface_refactor", next is "master" and last is "update". I'd add issue to make shards use master as default, but first I'll check shards code.
<jhass> akwiatkowski: okay, actually it lists the tags and uses the most recent one, which seems like a reasonable default to me
<jhass> and for your only tag your shard.yml is indeed having that mistake: https://github.com/akwiatkowski/crystal_api/blob/16efc57eb1eb18a2e4013ba77c441a49c5c6db4e/shard.yml
<akwiatkowski> I don't think it is the best solution, but I'm not going to argue :) just specify branches nicely.
xmgx has joined #crystal-lang
mkl0501 has joined #crystal-lang
<FromGitter> <taylorfinnell> Good morning :) Is it possible to call one initializer from another?
<jhass> mh, it's certainly possible, they're just regular methods, but I'm not sure whether crystal tracks it
<jhass> I think it doesn't atm and so the more common pattern is to add a def self.new overload instead
<FromGitter> <taylorfinnell> ah yes, that makes sense did not consider that method
<FromGitter> <taylorfinnell> thank you!
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
mkl0501 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pawnbox has quit [Ping timeout: 264 seconds]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 250 seconds]
A124 has quit [Quit: '']
A124 has joined #crystal-lang
<BlaXpirit> is there any literal for NaN, Inf ?
<jhass> no but constants iirc
<jhass> >> Float::INF
<DeBot> jhass: undefined constant Float::INF - https://carc.in/#/r/17cy
<jhass> >> Float::Infinity
<DeBot> jhass: undefined constant Float::Infinity - https://carc.in/#/r/17cz
<jhass> mh
<BlaXpirit> >> Float64::INFINITY # actually there is
<DeBot> BlaXpirit: # => Infinity - https://carc.in/#/r/17d0
<jhass> ah, specific ones, right
<BlaXpirit> >> Float64::INFINITY == 1e1000
<DeBot> BlaXpirit: # => true - https://carc.in/#/r/17d1
Oliphaunte has joined #crystal-lang
mark_66 has quit [Quit: Leaving.]
pduncan has joined #crystal-lang
<tilpner> Wow, I knew LLVM was fast, but it somehow manages to match gcc in this test. 36s to 36s.
pawnbox has quit [Ping timeout: 244 seconds]
akwiatkowski has quit [Ping timeout: 244 seconds]
jokke has quit [Remote host closed the connection]
jokke has joined #crystal-lang
pawnbox has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
mgarciaisaia has left #crystal-lang [#crystal-lang]
ponga has joined #crystal-lang
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v6iEM
<crystal-gh> crystal/master 773eeca Ary Borenszweig: Compiler: better type model for geenric types....
<jhass> <3
akwiatkowski has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#773eeca (master - Compiler: better type model for geenric types.): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/153349239
Kilo`byte has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Kilo`byte has joined #crystal-lang
mkl0501 has joined #crystal-lang
* pduncan starts writing a lib to mock http requests, finds webmock on shards instead :)
<FromGitter> <Sija> >> loop do; end;
<FromGitter> <Sija> jhass: does @DeBot sanitize its command input? :)
<jhass> no, it runs in a good sandbox ;)
akwiatkowski has quit [Ping timeout: 244 seconds]
Ven_ has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v6Pec
<crystal-gh> crystal/master e872c71 Ary Borenszweig: Removed global variables. Fixes #3139...
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v6PvZ
<crystal-gh> crystal/master 2300f7c Endika Gutiérrez: Integer exponentiation should avoid using floats (#3163)...
<crystal-gh> [crystal] asterite closed pull request #3172: returns nil if xpath_nodes is empty (master...fix-xpath_node) https://git.io/v6oXx
<crystal-gh> [crystal] asterite pushed 5 new commits to master: https://git.io/v6Pfe
<crystal-gh> crystal/master 0f060d0 Jonne Haß: Allow accessing named tuple keys with strings...
<crystal-gh> crystal/master 1f7be7d Jonne Haß: accept named tuples in String::Formatter
<crystal-gh> crystal/master 58a16c3 Jonne Haß: Allow named tuples in String#gsub
<travis-ci> crystal-lang/crystal#e872c71 (master - Removed global variables. Fixes #3139): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/153398484
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v6Pk4
<crystal-gh> crystal/master 5b3c9dc Ary Borenszweig: Don't use global vars in samples
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<travis-ci> crystal-lang/crystal#2300f7c (master - Integer exponentiation should avoid using floats (#3163)): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/153400088
Oliphaunte has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#fa24f11 (master - Merge pull request #3143 from jhass/named_tuple_string_keys): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/153400957
<travis-ci> crystal-lang/crystal#5b3c9dc (master - Don't use global vars in samples): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/153407982
Philpax has joined #crystal-lang
tubbo has quit [Ping timeout: 244 seconds]
mkl0501 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<FromGitter> <jwoertink> So, out of curiosity, I'm wondering about floats. I know they get a bit funky in most languages because of some computer math that I don't quite understand, but here's an example in Ruby 2.3.0 `32.95 * 100 => 3295.0000000000005` and then in Crystal 0.18.7 `32.95 * 100 => 3295.0`
<FromGitter> <jwoertink> So the question is, does crystal just say "I know what you mean, here you go", or is it not calculating correctly, or is this actually correct and ruby is just that bad?
<FromGitter> <jwoertink> ok, so looks like Elixir, Python, and JavaScript all return the same as ruby.
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philpax has quit [Ping timeout: 244 seconds]