ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
dostoyevsky2 has quit [*.net *.split]
Guest70931 has quit [*.net *.split]
dostoyevsky2 has joined #crystal-lang
mookie has joined #crystal-lang
<FromGitter> <aaaScript> Has anyone had any experience integrating a scripting language into an existing project? I know there's this project ( but wondering if anyone's had any experience with this or with rolling their own custom solution with something else like Lua.
sagax has joined #crystal-lang
notzmv has joined #crystal-lang
fifr has quit [Ping timeout: 248 seconds]
fifr has joined #crystal-lang
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 252 seconds]
fifr has quit [Ping timeout: 252 seconds]
fifr has joined #crystal-lang
<FromGitter> <mattrberry> Anyone have any clue why a simple `require "llvm"` fails? ⏎ ⏎ ```code paste, see link``` []
<FromGitter> <Blacksmoke16> what do you get if you run `llvm-config --version`
<FromGitter> <Blacksmoke16> prob just need to add something to path
<FromGitter> <Blacksmoke16> like `LLVM_CONFIG=/path/to/llvm-config`
<FromGitter> <mattrberry> ```➜ ~ llvm-config --version ⏎ 12.0.1``` []
<FromGitter> <Blacksmoke16> `LLVM_CONFIG = {{ env("LLVM_CONFIG") || `#{__DIR__}/ext/find-llvm-config`.stringify }}` should work if you just set that env var
<FromGitter> <mattrberry> This works, but I'm still confused why it's not getting it by itself haha `➜ ~ LLVM_CONFIG=$(which llvm-config) crystal eval 'require "llvm"'`
<FromGitter> <mattrberry> D:
<FromGitter> <Blacksmoke16> what about it?
<FromGitter> <mattrberry> I'd assume 12.0.1 should be compatible, so maybe the find-llvm-config script is just a little brittle
<FromGitter> <Blacksmoke16> works fine for me
<FromGitter> <Blacksmoke16> w/o that env var
<FromGitter> <mattrberry> These are the llvm-configs I have installed ⏎ ⏎ ```➜ ~ ls /usr/bin | grep llvm-config ⏎ llvm-config ⏎ llvm-config-64``` []
<FromGitter> <mattrberry> Right, it works for me on all of my other machines lol
<FromGitter> <Blacksmoke16> i lied
<FromGitter> <Blacksmoke16> hm
<FromGitter> <Blacksmoke16> minimal example doesnt reproduce
<FromGitter> <Blacksmoke16> e.g. ⏎ ⏎ ```code paste, see link``` []
<FromGitter> <mattrberry> This only happens for me on this machine. It's fine on my mac and ubuntu machine. This is a fresh fedora install
<FromGitter> <Blacksmoke16> :shrug:
<FromGitter> <mattrberry> Meh, I'll keep working on my compiler in nim haha
<FromGitter> <Blacksmoke16> I mean can't just set that env var?
<FromGitter> <mattrberry> Oh yeah totally, my comment wasn't really related haha. I have a compiler I'm already working on, but I was just figuring I'd check out how easy targeting llvm was from crystal :p
<FromGitter> <Blacksmoke16> ah gotcha