<FromGitter>
<omidathari> @watzon Hi Chris please elaborate. I can pass it the string ? Thanks
<FromGitter>
<watzon> Yeah. Basically all I did was add `markd` to my `shard.yml` and then added that code in a file that gets loaded before the pages do. It just adds a `markdown` tag which takes a string, converts the markdown to html, and renders it using the `raw` tag.
<FromGitter>
<omidathari> @watzon Sorry I was not clear, Regarding our conversation yesterday about the C function that takes the UInt8* argument, you said I could pass it a string? how do you mean. Thanks
<FromGitter>
<Blacksmoke16> i think me means like `MyCLib.my_method("BoB")`
<FromGitter>
<Blacksmoke16> the arg that takes `UInt8*` just pass it a string instead
<jokke>
hm i get certificate validation errors on mac
<jokke>
anyone here having experience with using openssl in crystal on mac?
RX14 has quit [Quit: Fuck this shit, I'm out!]
RX14 has joined #crystal-lang
<FromGitter>
<r00ster91> so I want to wait at a specific point until in a different fiber a specific thing happened, and for that it would probably be good to use channels but I don't want to wait forever, I want to break up after like 5 seconds. Is there something like `Channel#receive` but with a timeout?
<FromGitter>
<r00ster91> or maybe a different way?
waheedi has joined #crystal-lang
<waheedi>
Hello
<FromGitter>
<r00ster91> hello
<waheedi>
what version of llvm does crystal currently support
<waheedi>
?
<waheedi>
i'm trying to build on OS X with llvm 8.0 but failing
<FromGitter>
<r00ster91> Crystal doesn't support LLVM 7 either
<FromGitter>
<r00ster91> but I think Crystal supports LLVM 6
<waheedi>
I see, thanks
<waheedi>
i think this information needs to be on the GitHub readme page somewhere
<FromGitter>
<watzon> Please, maintainers especially, let me know what you think
greengriminal has joined #crystal-lang
alex`` has quit [Ping timeout: 245 seconds]
alex`` has joined #crystal-lang
<FromGitter>
<mistergibson> One thing rubygems had severe difficulty with in the beginning is marking gems that are ONLY valid or for one platform -- marked as such in the record, and in the search functions.
<FromGitter>
<mistergibson> Eventually, they came up with an idea
<FromGitter>
<mistergibson> There may be shards only relevant to Winderz one day ... just say'n
<FromGitter>
<watzon> This is true, it would be pretty easy to allow people to register a shard as being platform specific
<FromGitter>
<mistergibson> yeah, I'm thinking of platform-specific platform-abstraction-layer adapters etc
<FromGitter>
<mistergibson> or conversely : :all-platforms ... just thinking outloud
<FromGitter>
<mistergibson> great idea though in general. I was wondering where the registry was ... hehe :)
<FromGitter>
<watzon> I feel like it's something that's missing. Being able to install shards from github is great and all, but that approach lacks a bit
greengriminal has quit [Quit: This computer has gone to sleep]
jemc has quit [Ping timeout: 245 seconds]
devil_tux has joined #crystal-lang
ua has quit [Ping timeout: 272 seconds]
ua has joined #crystal-lang
devil_tux has quit [Ping timeout: 245 seconds]
<mps>
j8r: we released Alpine 3.10 few hours ago. You can see release notes, could be interesting to you personally :)
waheedi has joined #crystal-lang
<waheedi>
I have a question regarding the build process from source, whats the reason behind not being able to configure the source and then making it, instead i have to install the crystal binary for my arch to be able to build using crystal run?
<waheedi>
also would I still need the previously installed crystal binary if I get the built one?
<oprypin>
waheedi, what do u mean, you are able to just make the source
<oprypin>
it's just that first you need to install the prerequisites for it
<oprypin>
included but not limited to llvm, crystal
<oprypin>
including*
<waheedi>
oprypin: yes, I actually made from source, but it complained that I had to have a binary for crystal t run Crystall::run
<waheedi>
to* run
<oprypin>
what command did you run when it complained that?
<waheedi>
make
<waheedi>
make -j 4
<oprypin>
was the error message "had to have a binary for crystal t run Crystall::run " or "You need to have a crystal executable in your path!"
<waheedi>
You need to have a crystal executable in your path!
<oprypin>
ok, well crystal is a prerequisite to compile crystal
<waheedi>
yeah which is kind of strange
<waheedi>
we can't I configure
<waheedi>
why*
<oprypin>
why would you need to configure
<oprypin>
it's just an ancient cargo cult stuff because C is too limited
<waheedi>
for not needing to build using crystal
<oprypin>
waheedi, Crystal is written in Crystal so that would not be possible
<waheedi>
I understand but crystal is written in C
<waheedi>
or its not?
<oprypin>
no. Crystal is written in Crystal
<FromGitter>
<Blacksmoke16> *magic*
<oprypin>
also depending on LLVM which is written in C++ but that's a separate topic
<waheedi>
so basically written on LLVM which is using C?
<waheedi>
and C++
<oprypin>
the fact that LLVM is written in C is inconsequential
<oprypin>
it gets compiled into a dynamic library with a universal FFI
<oprypin>
then crystal depends on the dynamic library without ever involving a piece of C code
<waheedi>
would I still need the previously installed version of crystal?
<FromGitter>
<watzon> Why is is that when using `Crystal::Parser` if you enable comments it gives an error `Unhandled exception: unexpected token: # comment`?
<waheedi>
after successfully building one I mean?
<oprypin>
waheedi, no, you just need any crystal binary that the source code is compatible with
<oprypin>
and it gets automatically substituted
<oprypin>
`make` uses "bin/crystal" which uses ".build/crystal" if available or falling back to "crystal" in PATH
<waheedi>
yeah I noticed
<waheedi>
i think i have an issue after deleting the installed crystal complaining about the linker not being able to find some lib ld: warning: directory not found for option '-L/usr/local/Cellar/crystal/0.29.0/embedded/lib'
<oprypin>
and when i say "any crystal binary that the source code is compatible with" - that includes the one that you just built :)
<oprypin>
waheedi, that might be a side effect of running .build/crystal directly - you shouldnt do that
alex`` has quit [Ping timeout: 268 seconds]
<waheedi>
what should I do ?
<oprypin>
"bin/crystal"
<waheedi>
whats the difference? bin/crystal will be ./build/crystal
<waheedi>
.build/crystal*I
alex`` has joined #crystal-lang
<waheedi>
maybe I need to change this CRYSTAL_LIBRARY_PATH
<oprypin>
waheedi, well yes, that's among the things that bin/crystal provides
<oprypin>
it's non-trivial for a binary to ensure that it always works with relative paths, so it needs some help :p
<waheedi>
where can I find these libraries? are they generated somewhere /usr/local/Cellar/crystal/0.29.0/embedded/lib/*
<oprypin>
i dont know about mac
<waheedi>
i'm on 0.30.0-dev
<oprypin>
what i know: first u install crystal in any way you can, then u `make`, then u use `bin/crystal` and it should never look at the previous global install
<oprypin>
if u run `bin/crystal` and get complaints about cellar or whatever, something already went wrong
<waheedi>
well, that what I did
<oprypin>
now just need to figure out what went wrong
<oprypin>
again, make sure you're not actually running .build/crystal
<oprypin>
directly, that is
<waheedi>
I know what went wrong, I deleted the previously installed crystal
<oprypin>
but that should be fine
<waheedi>
crystal env shows that the path is still pointing to the previously installed crystal bin
<waheedi>
the lib path*
<oprypin>
that should be ok
<waheedi>
that path does not exist anymore
<oprypin>
maybe brew populates PATH so u should just reload your terminal session
<waheedi>
i think i have to change that path, to point to the build libraries if any were built
<waheedi>
I can't find any libraries generated, the only thing I see is the crystal binary generated and a dwarf file
<oprypin>
waheedi, it's not that kind of libraries
<oprypin>
crystal cant use libraries anyway, it needs to always build everything from source
<oprypin>
(well it can use C libraries but that's specifically *for* C libraries)
<waheedi>
yeah It seems I have to build the crystal_lib separately
<oprypin>
waheedi, i think you know too much for your own good xD
<waheedi>
lol, I think yes but its better to communicate
<FromGitter>
<watzon> Yeah it just provides a parser for URI templates. I don't necessarily need it for the project I'm doing right now because I can just use `gsub`, but I was wondering if anyone had tried to implement it yet