00:12
Philpax has quit [Ping timeout: 244 seconds]
00:13
Oliphaunte has joined #crystal-lang
00:24
Oliphaunte has quit [Remote host closed the connection]
00:26
Oliphaunte has joined #crystal-lang
00:32
Oliphaunte has quit [Remote host closed the connection]
00:35
Oliphaunte has joined #crystal-lang
00:45
Oliphaunte has quit [Remote host closed the connection]
00:46
Oliphaunte has joined #crystal-lang
00:58
Oliphaunte has quit [Remote host closed the connection]
01:12
Philpax has joined #crystal-lang
01:23
Oliphaunte has joined #crystal-lang
01:46
Philpax has quit [Read error: Connection reset by peer]
01:47
Philpax has joined #crystal-lang
01:48
tomchapin has quit [Read error: Connection reset by peer]
01:49
tomchapin has joined #crystal-lang
02:01
Oliphaunte has quit [Remote host closed the connection]
02:02
Oliphaunte has joined #crystal-lang
02:06
Oliphaun_ has joined #crystal-lang
02:06
Oliphaunte has quit [Read error: Connection reset by peer]
02:14
Oliphaun_ has quit [Remote host closed the connection]
02:19
Oliphaunte has joined #crystal-lang
02:37
mgarciaisaia has joined #crystal-lang
02:37
mgarciaisaia has left #crystal-lang [#crystal-lang]
02:39
onethirtyfive has quit [Remote host closed the connection]
02:51
Oliphaunte has quit [Remote host closed the connection]
03:08
willl has quit [Quit: Connection closed for inactivity]
03:08
Oliphaunte has joined #crystal-lang
03:13
Oliphaunte has quit [Ping timeout: 265 seconds]
03:13
xmgx has quit [Remote host closed the connection]
03:29
mgarciaisaia1 has joined #crystal-lang
04:00
adam^ is now known as adam12
04:01
adam12 is now known as Guest20954
04:03
Guest20954 is now known as adam12
04:04
Oliphaunte has joined #crystal-lang
04:08
Oliphaunte has quit [Ping timeout: 244 seconds]
04:38
pawnbox has joined #crystal-lang
04:53
Philpax has quit [Ping timeout: 244 seconds]
04:54
Philpax has joined #crystal-lang
04:57
Oliphaunte has joined #crystal-lang
05:01
Oliphaunte has quit [Ping timeout: 252 seconds]
05:03
Philpax has quit [Ping timeout: 244 seconds]
05:41
mgarciaisaia1 has quit [Ping timeout: 244 seconds]
05:49
mgarciaisaia has joined #crystal-lang
05:56
pawnbox has quit [Remote host closed the connection]
06:02
mgarciaisaia has quit [Ping timeout: 258 seconds]
06:02
mgarciaisaia has joined #crystal-lang
06:12
mgarciaisaia has quit [Quit: Leaving.]
06:22
pawnbox has joined #crystal-lang
06:45
Oliphaunte has joined #crystal-lang
06:50
Oliphaunte has quit [Ping timeout: 244 seconds]
07:17
<
FromGitter >
<ssaatya> hello
07:17
<
FromGitter >
<ssaatya> how can i include c++ library
07:29
<
jhass >
c++ symbol mangling isn't well defined, so you can't create a reliable biding without a C wrapper
07:29
<
FromGitter >
<ssaatya> Ok
07:30
<
FromGitter >
<ssaatya> I what can try or its impossible right now
07:31
<
jhass >
it's probably impossible, what do you need a binding for?
07:31
<
FromGitter >
<ssaatya> for mlpack
07:31
<
FromGitter >
<ssaatya> library
07:36
<
jhass >
I can't find any existing C wrapper, so you would need to write one yourself for what you need
07:36
<
FromGitter >
<ssaatya> Ok thanks for your help once again
08:02
pawnbox has quit [Remote host closed the connection]
08:06
<
txdv >
c++ symbol mangling depends on the compiler and its version
08:07
<
txdv >
but it is well defined if you use the same compiler and version of it
08:07
<
txdv >
it always generates the same mangling
08:08
<
FromGitter >
<ssaatya> Ok thanks i will try
08:35
mark_66 has joined #crystal-lang
08:37
<
BlaXpirit >
try what
08:51
<
txdv >
create a c wrapper?
09:11
pawnbox has joined #crystal-lang
09:41
<
FromGitter >
<ssaatya> no
09:42
<
FromGitter >
<ssaatya> what is interoperability between c++ and crystal
09:43
<
jhass >
crystal makes no special effort at all to allow interoperation with c++
09:44
<
FromGitter >
<ssaatya> Ok thanks
09:45
<
FromGitter >
<ssaatya> Should use libc make process and call bin generated by mlpack
09:54
<
FromGitter >
<ssaatya> what is extern feature
09:55
<
jhass >
in what context?
09:55
<
jhass >
where did you read about it?
09:56
<
FromGitter >
<ssaatya> feature/extern
09:56
<
jhass >
ah, the branch
09:56
<
FromGitter >
<ssaatya> yes
10:35
pawnbox has quit [Remote host closed the connection]
10:36
pawnbox has joined #crystal-lang
10:39
bjz has joined #crystal-lang
10:40
pawnbox has quit [Ping timeout: 240 seconds]
11:00
xmgx has joined #crystal-lang
11:07
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
11:22
bjz has joined #crystal-lang
11:33
xmgx has quit [Remote host closed the connection]
11:43
<
FromGitter >
<sdogruyol> seems like 1mm method definitions eats up the compiler :/
11:47
<
FromGitter >
<sdogruyol> even 100k is enough to hold the compiler
11:50
<
FromGitter >
<sdogruyol> meanwhile i'm building with --release
11:52
bjz_ has joined #crystal-lang
11:52
bjz has quit [Ping timeout: 244 seconds]
12:09
Philpax has joined #crystal-lang
12:21
akwiatkowski has joined #crystal-lang
12:23
<
akwiatkowski >
The app is a freshly initialized with only 1 dependency: `crystal_api: github: "akwiatkowski/crystal_api"`
12:25
<
jhass >
akwiatkowski: specific version or branch: master ?
12:26
<
akwiatkowski >
the branch is master, but I hadn't specified it
12:27
<
jhass >
ah, curious
12:27
<
jhass >
I thought one of version or branch was mandatory
12:27
<
akwiatkowski >
If I use all dependencies from my lib (in app) `shards update` works. Update in lib works
12:27
<
akwiatkowski >
I'm gonna try it
12:28
<
akwiatkowski >
Yep, adding branch fix it
12:28
<
jhass >
weird, probably a bug in shards
12:29
<
akwiatkowski >
It looks like shards takes first branch available (sorted by name)
12:30
<
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.
12:32
<
jhass >
akwiatkowski: okay, actually it lists the tags and uses the most recent one, which seems like a reasonable default to me
12:37
<
akwiatkowski >
I don't think it is the best solution, but I'm not going to argue :) just specify branches nicely.
12:38
xmgx has joined #crystal-lang
12:46
mkl0501 has joined #crystal-lang
12:59
<
FromGitter >
<taylorfinnell> Good morning :) Is it possible to call one initializer from another?
12:59
<
jhass >
mh, it's certainly possible, they're just regular methods, but I'm not sure whether crystal tracks it
13:00
<
jhass >
I think it doesn't atm and so the more common pattern is to add a def self.new overload instead
13:00
<
FromGitter >
<taylorfinnell> ah yes, that makes sense did not consider that method
13:00
<
FromGitter >
<taylorfinnell> thank you!
13:04
Oliphaunte has joined #crystal-lang
13:04
pawnbox has joined #crystal-lang
13:21
Oliphaunte has quit [Remote host closed the connection]
13:55
pawnbox has quit [Ping timeout: 264 seconds]
13:55
pawnbox has joined #crystal-lang
14:00
Philpax has quit [Ping timeout: 250 seconds]
14:11
A124 has quit [Quit: '']
14:12
A124 has joined #crystal-lang
14:17
<
BlaXpirit >
is there any literal for NaN, Inf ?
14:17
<
jhass >
no but constants iirc
14:17
<
jhass >
>> Float::INF
14:17
<
jhass >
>> Float::Infinity
14:18
<
BlaXpirit >
>> Float64::INFINITY # actually there is
14:18
<
jhass >
ah, specific ones, right
14:18
<
BlaXpirit >
>> Float64::INFINITY == 1e1000
14:32
Oliphaunte has joined #crystal-lang
15:58
mark_66 has quit [Quit: Leaving.]
16:10
pduncan has joined #crystal-lang
16:15
<
tilpner >
Wow, I knew LLVM was fast, but it somehow manages to match gcc in this test. 36s to 36s.
16:40
pawnbox has quit [Ping timeout: 244 seconds]
16:54
akwiatkowski has quit [Ping timeout: 244 seconds]
16:55
jokke has quit [Remote host closed the connection]
16:56
jokke has joined #crystal-lang
16:56
pawnbox has joined #crystal-lang
17:01
mgarciaisaia has joined #crystal-lang
17:03
Oliphaunte has quit [Remote host closed the connection]
17:08
Oliphaunte has joined #crystal-lang
17:14
pawnbox has quit [Remote host closed the connection]
17:22
mgarciaisaia has left #crystal-lang [#crystal-lang]
17:34
ponga has joined #crystal-lang
17:36
pawnbox has joined #crystal-lang
17:51
<
crystal-gh >
crystal/master 773eeca Ary Borenszweig: Compiler: better type model for geenric types....
17:56
akwiatkowski has joined #crystal-lang
18:00
pawnbox has quit [Remote host closed the connection]
18:33
Kilo`byte has joined #crystal-lang
18:45
mkl0501 has joined #crystal-lang
18:58
* pduncan
starts writing a lib to mock http requests, finds webmock on shards instead :)
19:41
<
FromGitter >
<Sija> >> loop do; end;
19:42
<
FromGitter >
<Sija> jhass: does @DeBot sanitize its command input? :)
19:43
<
jhass >
no, it runs in a good sandbox ;)
19:43
akwiatkowski has quit [Ping timeout: 244 seconds]
20:36
Ven_ has joined #crystal-lang
20:42
Oliphaunte has quit [Remote host closed the connection]
20:45
Oliphaunte has joined #crystal-lang
20:56
<
crystal-gh >
crystal/master e872c71 Ary Borenszweig: Removed global variables. Fixes #3139...
21:02
<
crystal-gh >
crystal/master 2300f7c Endika Gutiérrez: Integer exponentiation should avoid using floats (#3163)...
21:03
<
crystal-gh >
[crystal] asterite closed pull request #3172: returns nil if xpath_nodes is empty (master...fix-xpath_node)
https://git.io/v6oXx
21:05
<
crystal-gh >
crystal/master 0f060d0 Jonne Haß: Allow accessing named tuple keys with strings...
21:05
<
crystal-gh >
crystal/master 1f7be7d Jonne Haß: accept named tuples in String::Formatter
21:05
<
crystal-gh >
crystal/master 58a16c3 Jonne Haß: Allow named tuples in String#gsub
21:31
mgarciaisaia1 has joined #crystal-lang
21:32
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
21:32
<
crystal-gh >
crystal/master 5b3c9dc Ary Borenszweig: Don't use global vars in samples
21:53
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:02
Oliphaunte has quit [Remote host closed the connection]
23:03
Philpax has joined #crystal-lang
23:09
tubbo has quit [Ping timeout: 244 seconds]
23:34
<
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`
23:35
<
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?
23:39
<
FromGitter >
<jwoertink> ok, so looks like Elixir, Python, and JavaScript all return the same as ruby.
23:43
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:56
Philpax has quit [Ping timeout: 244 seconds]