ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
f1refly has quit [Quit: see ya in hell]
f1refly has joined #crystal-lang
Volk has quit [Ping timeout: 252 seconds]
<FromGitter> <asterite> postmodern: could you provide an example with concrete values?
xyhuvud has joined #crystal-lang
yxhuvud has quit [Ping timeout: 246 seconds]
<FromGitter> <Dan-Do> I am using bindgen. Could someone help me on some configurations on the template.yml?
<xyhuvud> not me. I've only done bindings manually.
<xyhuvud> that said, asking to ask instead of actually asking the question you actually have tend to not give good answers.
<FromGitter> <Dan-Do> I am making the binding for this https://github.com/Restream/reindexer
<FromGitter> <Dan-Do> But don't know where to start 🙄
Volk has joined #crystal-lang
Volk has quit [Changing host]
Volk has joined #crystal-lang
<FromGitter> <Dan-Do> I already built it and had the static lib `reindexer.a`
<xyhuvud> well, then you need to link it and set up bindings, but perhaps bindgen does that for you?
SamantazFox has quit [Ping timeout: 265 seconds]
<FromGitter> <rymiel:rymiel.space> trying to debug some strange generic type stuff resulting in a "you've found a bug in the crystal compiler" but i just don't understand the compiler types here. Why can't it assign a `GenericClassInstanceMetaclassType` to a `VirtualMetaclassType`? Basically I have an `abstract class Foo` with `class Bar(T) < Foo` and i'm trying to assign `Bar(SomeType).class` to `Foo+.class`... Or should I just try
<FromGitter> ... to do a minimal repro in carc.in?
<FromGitter> <Blacksmoke16> the latter would be your best bet
<FromGitter> <rymiel:rymiel.space> i found that it worked before https://github.com/crystal-lang/crystal/commit/56f75ee0112fa91c8aa925a0e988c3121f0092ee because it became an union and somehow casted correctly when in an union
<FromGitter> <rymiel:rymiel.space> aha I got it
<FromGitter> <rymiel:rymiel.space> https://carc.in/#/r/byol
<FromGitter> <rymiel:rymiel.space> seems to match what i get
<FromGitter> <rymiel:rymiel.space> oh yeah sorry that matches that comment exactly oops
<FromGitter> <Dan-Do> @xyhuvud I follow the guide and run `lib/bindgen/tool.sh your_template.yml`, but it said `fatal error: 'core/namespacedef.h' file not found`
<FromGitter> <Dan-Do> don't know how bindgen find the include directory of c++ project
<xyhuvud> yeah well, I have no idea :D
<FromGitter> <Dan-Do> Can you give some hints when you do it manually?
<xyhuvud> manually, you link to the compiled file and manually read the .h file and type in the definitions you want in a crystal lib file.
<xyhuvud> the .h is not involved compiletime at all then.
<FromGitter> <Dan-Do> How about other .h? I see in the main reindexer.h, it includes some.
<FromGitter> <Dan-Do> So we need to add them all to cr, doesn't it?
<xyhuvud> you only need what you intend to use.
<FromGitter> <HertzDevil> ```ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64```
<FromGitter> <HertzDevil> been seeing this on macos ci recently
<FromGitter> <HertzDevil> looks like a macos 11 problem
<FromGitter> <HertzDevil> NixOS/nixpkgs#104580
<FromGitter> <HertzDevil> i think we need a more recent version of nixpkgs but i don't know what else needs to be done
SamantazFox has joined #crystal-lang
Volk has quit [Read error: Connection reset by peer]
ur5us_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 260 seconds]