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
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 264 seconds]
f1reflyylmao is now known as f1refly
chachasmooth has quit [Ping timeout: 260 seconds]
chachasmooth has joined #crystal-lang
woodruffw has quit [Ping timeout: 264 seconds]
woodruffw has joined #crystal-lang
where_is_x has quit [Ping timeout: 264 seconds]
where_is_x has joined #crystal-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
_ht has joined #crystal-lang
ua has quit [Ping timeout: 240 seconds]
ua has joined #crystal-lang
hendursa1 has joined #crystal-lang
hendursaga has quit [Ping timeout: 268 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
<frojnd> Congrats on 1.0 :) \o/
* frojnd is dancing joyfully
<frojnd> Can I get beta version of crystal for armv7l
mipmip has quit [Quit: WeeChat 3.1]
<FromGitter> <Dan-Do> Just know that the sleep on a spawn fiber block the main thread. Doesn't it?
<FromGitter> <naqvis> no, it shouldn't
<FromGitter> <Dan-Do> I use this shard, https://github.com/hugoabonizio/schedule.cr
<FromGitter> <Dan-Do> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=605c5b48a7dfe1372ef7cbfa]
<FromGitter> <Dan-Do> "done!" was not printed
<FromGitter> <naqvis> that you would have to look into how that code is implemented, but in normal stdlib, it shouldn't stop ⏎ https://carc.in/#/r/alww
<FromGitter> <naqvis> when program exits, that terminates the main thread, so does all of the fibers
<FromGitter> <naqvis> so normal practice is to `sleep` or `Fiber.yield` at the end of program, to give Fibers a chance to finish execution
<FromGitter> <naqvis> as in above example, Fiber doesn't even get a chance to execute, because main thread terminated and exited
<FromGitter> <naqvis> @Dan-Do that's because code below `Kemal.run` doesn't get executed
<FromGitter> <naqvis> you will need to move that above that for it run
<FromGitter> <Dan-Do> > you will need to move that above that for it run ⏎ ⏎ Now it blocks the main thread, `Kemal.run` was not reached
<FromGitter> <Dan-Do> @naqvis You are correct. That's my bad, my code was wrong.
<FromGitter> <Dan-Do> Thank you.
<FromGitter> <naqvis> 👍
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
entel has quit [Quit: Connection closed for inactivity]
Vexatos has quit [Quit: ZNC Quit]
Stephie has quit [Quit: Fuck this shit, I'm out!]
Stephie has joined #crystal-lang
Vexatos has joined #crystal-lang
<FromGitter> <jrei:matrix.org> congrats for your "promotion" straight-shoota!
<FromGitter> <jrei:matrix.org> by curiosity, what was your previous job/sector? (you don't have to answer)
<straight-shoota> Thank you
<straight-shoota> I've mostly been doing freelance stuff, webdev, ops, and some non-tech
<FromGitter> <jrei:matrix.org> from some feedbacks I got, there is mixed feelings about freelancing - what is fine?
<FromGitter> <jrei:matrix.org> *was it fine for you?
<straight-shoota> yeah, I suppose it depends on what you do and what expectations you have about work
<FromGitter> <bararchy> I'm seeing ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=605ca47a9ebdfd164099f5f1]
_ht has quit [Remote host closed the connection]
_ht has joined #crystal-lang
bazaar has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
bazaar has joined #crystal-lang
<FromGitter> <riffraff169> i dont really like freelancing, i need more security i guess...too iffy, no control
drakonis has quit [*.net *.split]
snapcase has quit [*.net *.split]
PixeLInc_ has quit [*.net *.split]
repo has quit [*.net *.split]
dom96 has quit [*.net *.split]
deavmi has quit [*.net *.split]
baweaver has quit [*.net *.split]
asterite has quit [*.net *.split]
robacarp has quit [*.net *.split]
raz has quit [*.net *.split]
snapcase_ has joined #crystal-lang
asterite has joined #crystal-lang
PixeLInc_ has joined #crystal-lang
repo has joined #crystal-lang
deavmi has joined #crystal-lang
baweaver has joined #crystal-lang
robacarp has joined #crystal-lang
raz has joined #crystal-lang
dom96 has joined #crystal-lang
drakonis has joined #crystal-lang
mps has quit [*.net *.split]
FromGitter has quit [*.net *.split]
HumanG33k has quit [*.net *.split]
richbridger has quit [*.net *.split]
straight-shoota has quit [*.net *.split]
mps has joined #crystal-lang
straight-shoota has joined #crystal-lang
FromGitter has joined #crystal-lang
richbridger has joined #crystal-lang
HumanG33k has joined #crystal-lang
SuperFamicom[m] has quit [Ping timeout: 240 seconds]
FromGitter has quit [*.net *.split]
andremedeiros has quit [*.net *.split]
where_is_x has quit [*.net *.split]
woodruffw has quit [*.net *.split]
avane has quit [*.net *.split]
jhass has quit [*.net *.split]
DeBot has quit [*.net *.split]
robertmeta has quit [*.net *.split]
robacarp has quit [*.net *.split]
raz has quit [*.net *.split]
Flipez has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
badeball_ has quit [*.net *.split]
maxpowa has quit [*.net *.split]
r0bby has quit [*.net *.split]
fifr` has quit [*.net *.split]
Nekka has quit [*.net *.split]
coderobe has quit [*.net *.split]
straight-shoota has quit [*.net *.split]
PixeLInc_ has quit [*.net *.split]
ua has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
wmoxam has quit [*.net *.split]
justinmcp has quit [*.net *.split]
jhass has joined #crystal-lang
dostoyevsky has joined #crystal-lang
r0bby has joined #crystal-lang
ua has joined #crystal-lang
coderobe has joined #crystal-lang
woodruffw has joined #crystal-lang
maxpowa has joined #crystal-lang
raz has joined #crystal-lang
straight-shoota has joined #crystal-lang
Nekka has joined #crystal-lang
avane has joined #crystal-lang
andremedeiros has joined #crystal-lang
justinmcp has joined #crystal-lang
markmarkmark has joined #crystal-lang
Liothen has quit [Ping timeout: 272 seconds]
Liothen has joined #crystal-lang
SuperFamicom[m] has joined #crystal-lang
_whitelogger has joined #crystal-lang
frojnd has joined #crystal-lang
sorcus has joined #crystal-lang
bazaar has quit [*.net *.split]
_ht has quit [*.net *.split]
Stephie has quit [*.net *.split]
skrzyp has quit [*.net *.split]
commavir has quit [*.net *.split]
early` has quit [*.net *.split]
jrayhawk has quit [*.net *.split]
jrayhawk has joined #crystal-lang
_ht has joined #crystal-lang
skrzyp has joined #crystal-lang
commavir has joined #crystal-lang
skrzyp is now known as Guest89349
bazaar has joined #crystal-lang
Guest89349 has quit [Client Quit]
skrzyp1 has joined #crystal-lang
skrzyp1 has quit [Client Quit]
skrzyp has joined #crystal-lang
early has joined #crystal-lang
frojnd has quit [*.net *.split]
issyl0 has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
oprypin has quit [*.net *.split]
ebb has joined #crystal-lang
issyl0 has joined #crystal-lang
frojnd has joined #crystal-lang
oprypin has joined #crystal-lang
yxhuvud has joined #crystal-lang
oprypin has quit [Max SendQ exceeded]
oprypin has joined #crystal-lang
yxhuvud has quit [*.net *.split]
yxhuvud has joined #crystal-lang
Liothen has quit [*.net *.split]
maxpowa has quit [*.net *.split]
r0bby has quit [*.net *.split]
Liothen has joined #crystal-lang
FromGitter has joined #crystal-lang
maxpowa has joined #crystal-lang
r0bby has joined #crystal-lang
hendursa1 has quit [*.net *.split]
hendursa1 has joined #crystal-lang
mps has quit [*.net *.split]
richbridger has quit [*.net *.split]
asterite has quit [*.net *.split]
Vexatos has quit [*.net *.split]
postmodern has quit [*.net *.split]
duane has quit [*.net *.split]
Welog has quit [*.net *.split]
johnny101 has quit [*.net *.split]
oz has quit [*.net *.split]
xybre has quit [*.net *.split]
olbat has quit [*.net *.split]
deavmi has quit [*.net *.split]
HumanG33k has quit [*.net *.split]
drakonis has quit [*.net *.split]
repo has quit [*.net *.split]
dom96 has quit [*.net *.split]
baweaver has quit [*.net *.split]
snapcase_ has quit [*.net *.split]
chachasmooth has quit [*.net *.split]
f1refly has quit [*.net *.split]
mps has joined #crystal-lang
olbat has joined #crystal-lang
postmodern has joined #crystal-lang
oz has joined #crystal-lang
chachasmooth has joined #crystal-lang
asterite has joined #crystal-lang
HumanG33k has joined #crystal-lang
f1refly has joined #crystal-lang
johnny101 has joined #crystal-lang
richbridger has joined #crystal-lang
<frojnd> straight-shoota: ru by any chance Alpine Linux user? https://github.com/crystal-lang/crystal/issues/8738
deavmi has joined #crystal-lang
Vexatos has joined #crystal-lang
baweaver has joined #crystal-lang
Welog has joined #crystal-lang
drakonis has joined #crystal-lang
<straight-shoota> I use alpine as build and deployment system, yes
dom96 has joined #crystal-lang
<straight-shoota> but not on my workstation
renich has joined #crystal-lang
snapcase has joined #crystal-lang
<frojnd> I see.. edge?
repo1 has joined #crystal-lang
<frojnd> Why does crystal fails CI for Alpine?
renich has quit [Client Quit]
renich has joined #crystal-lang
<straight-shoota> current failures are tracked in https://github.com/crystal-lang/crystal/issues/10366
<straight-shoota> seems to be some kind of incompatibility introduced in alpine 3.13
<straight-shoota> 3.12 should be good
repo1 has quit [Client Quit]
repo1 has joined #crystal-lang
<mps> well, I'm starting to think this could be problem with GC (boehm gc)
<straight-shoota> sounds likely, yes
SuperFamicom[m] has quit [Ping timeout: 245 seconds]
renich has quit [Remote host closed the connection]
<straight-shoota> but the only relevant difference between 3.12 and 3.13 in main/gc is this commit https://git.alpinelinux.org/aports/commit/?id=775c5968350fcfd3c9ae8f07dbae0bc54b83d33f
<straight-shoota> and even that doesn't seem like a substantial change
<mps> right
<mps> another cause could be our builders, lxc
<mps> because also 0.35.0 didn't passed on CI but passed on builders
<straight-shoota> oh, that's interesting
<mps> though I tried on my local machine in 'bare metal' mode but it failed, maybe because not enough RAM
<mps> and I'm tempted to just push 1.0.0 to builders
<mps> and if fail on builders to disable test/check
<straight-shoota> well, what's to lose? :D
<mps> hehe, right
<mps> but I'm not official maintainer though I maintain it last two years
<mps> that is only what 'keeps' me
<straight-shoota> so how do you become maintainer?
<straight-shoota> unless you don't want to...
<mps> alpine doesn't have any formal process for that, usually talk on irc, or of current maintainer is inactive and don't respond to mail
<mps> but jirutka is still very active on other packages
<straight-shoota> maybe ask him if he wants to transfer maintainership to you?
<straight-shoota> whatever non-formal process might not exist for that ^^
<mps> I would like him to be official maintainer because his knowledge is a lot better than my about crystal
<straight-shoota> okay :+1:
<mps> anyway, I closed old MR (you know it) and will open new one with 1.0.0 version
<straight-shoota> great, let's see how it goes
<straight-shoota> btw. the official distribution package builds the compiler on alpine 3.13 and it works
<mps> yes, build pass fine
SuperFamicom[m] has joined #crystal-lang
<straight-shoota> the docker images hat do be reverted to 3.12 to get CI working
<straight-shoota> docker images use gc package and the linux package process builds its own libgc with the multithreading patch
<mps> btw, I didn't come to solution about fixing version patch
<straight-shoota> sry, what was that about?
renich has joined #crystal-lang
<mps> I made this to not take git rev of alpine aports as crystal version
entel has joined #crystal-lang
<straight-shoota> can't u configure CRYSTAL_CONFIG_BUILD_COMMIT
<straight-shoota> ideally with the sha from crystal repo commit, or make it empty to disable the output
<mps> actually I thought to make it empty, especially now when the crystal is stable
<straight-shoota> the release commit has always been stable =)
<straight-shoota> the sha is mostly useful for non-release versions, true
renich has quit [Ping timeout: 240 seconds]
<mps> well, not sure what to do, when I finish with MR I will inform you to add comment or patch to fix it ;)
<mps> whatever you think is ok
<mps> straight-shoota: just curios, I read in backlog here that you got new position, is it related to crystal?
<straight-shoota> you could just add `CRYSTAL_CONFIG_BUILD_COMMIT=` to the make arguments
<straight-shoota> yes, I've joined manas to work on Crystal
<mps> ah, good, hope it will be good for you (for crystal I'm sure)
fifr` has joined #crystal-lang
<mps> straight-shoota: https://tpaste.us/7gYB is this ok for version fix
<FromGitter> <winni2k> Hi there, I am trying to compile crystal and I am getting a single error when running `.build/std_spec`. Here is the error report: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ This looks like a small deviation, but it might be important. Has anyone seen this kind of error before? [https://gitter.im/crystal-lang/crystal?at=605ce9a328e6153d7242e164]
<FromGitter> <Blacksmoke16> what os/architecture are you on?
r0bby has quit []
<FromGitter> <winni2k> I'm on CentOS/7, but compiling within a conda environment
r0bby has joined #crystal-lang
<straight-shoota> mps, looks good
<mps> straight-shoota: thanks
<straight-shoota> @winni2k I wouldn't worry about that
<straight-shoota> Math.gamma is a direct call to libm function, if it returns something different, it's probably not a big deal
<_ht> I have trouble locating method Crystal::System::Process.prepare_args(command, args, shell). I am looking in process.cr, but it is not in that file?
<FromGitter> <winni2k> Ok, thanks!
<FromGitter> <Blacksmoke16> _ht pretty sure thats an internal method
<FromGitter> <Blacksmoke16> i.e. not public
<_ht> Ah, where can I find out what it is doing? Because it seems to "eat" spaces in options like "--css somefile.css"
<FromGitter> <Blacksmoke16> got some example code?
<_ht> No, I'll see if I can create a minimal example
<straight-shoota> definition should be somewhere in src/crystal/
<_ht> Thanks!
hightower2 has joined #crystal-lang
<hightower2> Hey if I add a dependency in shard.yml for 2.0 does this mean 2.0.* ? And similarly, does 2 mean 2.* ?
<hightower2> Or I'm better using / should use ~> 2.0 ?
<_ht> I have created a minimal example of the space-in-arguments issue: https://gist.github.com/htdebeer/811256bdc672fde31e0a791663ac797b
<_ht> I do expect "--to html" and "--to=html" to behave the same as the underlying command accepts both ways of writing options
<_ht> But maybe I should escape something?
<FromGitter> <Blacksmoke16> what if you do `["--to", "html"]`?
<mps> straight-shoota: pushed to builders, lets see in about hour
<_ht> That works!
<_ht> I did not expect that, but I can work with that
<hightower2> aha the 2.0 only works for crystal version, not in deps
<_ht> Blacksmoke16: Thanks for helping out!
<FromGitter> <winni2k> Once I have compiled crystal from source, what files are necessary for the binary to work? As in, if I wanted to install the compiled binaries, which ones would I need to copy to `/usr/local`?
<FromGitter> <oprypin:matrix.org> i think of those only basically src directory is required
<FromGitter> <jrei:matrix.org> ...what. is. this. repo
<FromGitter> <jrei:matrix.org> a branch per package
<FromGitter> <winni2k> Perfect! Thanks @oprypin:matrix.org
<FromGitter> <oprypin:matrix.org> it's subversion, branches are not an equivalent concept there
<FromGitter> <oprypin:matrix.org> (mirrored from subversion)
<FromGitter> <jrei:matrix.org> I see, hopefully. This branches are like individual repos inside a project
_ht has quit [Remote host closed the connection]
<FromGitter> <winni2k> Right, I'm sure I will...
<FromGitter> <winni2k> If i get the error "Error: can't find file 'prelude'", then is that because I haven't copied over the src dir yet?
<FromGitter> <oprypin:matrix.org> @winni2k: yes either not copied or not added to path (last link)
<FromGitter> <oprypin:matrix.org> @winni2k: is this for distro packaging or for yourself?
<FromGitter> <oprypin:matrix.org> for yourself it's much easier to just keep the binary in the repo directory
<FromGitter> <winni2k> @oprypin:matrix.org: Naw, unfortunately this is for distro packaging. I'm trying to create a conda package of crystal (https://github.com/conda-forge/staged-recipes/pull/14379)
<FromGitter> <winni2k> For some reason crystal segfaults when compiling a hello world example after packaging the linux tarball. I thought that compiling from source might fix it, but it looks like I'm not having any luck there either.
DTZUZU has joined #crystal-lang