@didactic-drunk: because Crypto is marked as originating from stdlib by its first occurrence in the whole code blob, and the whole stdlib is excluded from doc building
didactic-drunk
@didactic-drunk
@oprypin:matrix.org Now I have a workaround. Thank you
@didactic-drunk: do you wnat me to move ioctl.cr to crystal-posix? if so, could you look over the code first.
didactic-drunk
@didactic-drunk
@postmodern:matrix.org You're welcome to move it now, or not. I'll have to look in a few hours but that can be handled with PR's.
How do I check if a module exists in a macro?
4 replies
Kaia Leahy
@tenebrousedge
why?
usually if I am wondering about questions of that nature, I'm checking if an object subclasses a type, or whether it responds to a given method
didactic-drunk
@didactic-drunk
I have an optional module which may not exist if not required
Jonathan Silverman
@mixflame
there is a definite bug in resolving localhost sometimes in crystal on my OS
resulting in my crystal app starting sometimes in crashed states
Nolan Mayersky
@nolyoi
I'm trying to install crystal from source and getting a You need to have a crystal executable in your path! or set CRYSTAL env variable. I've tried CRYSTAL="$HOME/crystal/bin/crystal" and export PATH="$HOME/crystal/bin/crystal:$PATH". Anyone know what I'm missing here?
Ali Naqvi
@naqvis
you need to have previous version of Crystal to compile newer version
_
Nolan Mayersky
@nolyoi
theres no way to build from source for unsupported linux distros?
figured it out. had to download the tarball and use that crystal binary to run make in the source
@watzon: I remember you were working on crypto libraries for crystal. Ever heard of libnettle and libhogweed? Just noticed them today doing a system update. https://www.lysator.liu.se/~nisse/nettle/
Crystal without preview_mt is single threaded, so as long as you call server1.listen it will block the main thread and code below will never get a chance to execute
George Dietrich
@Blacksmoke16
use nginx to listen and forward to the crystal app :P
Ali Naqvi
@naqvis
either you go with parallelism (i.e. via -Dmt_preview) or better go with two separate process each listening on its own port
or better as @Blacksmoke16 suggested, better to with some battle tested servers as proxy in-front
From IRC (bridge bot)
@FromIRC
<frojnd> Hi there
<frojnd> I just noticeds under project/lib I have files of shards I removed from shard.yml How do I clean not used shard files?