Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:51
    straight-shoota closed #12224
  • 12:51
    straight-shoota closed #13034
  • 12:15
    straight-shoota milestoned #12921
  • 12:15
    straight-shoota milestoned #12921
  • 10:44
    straight-shoota edited #12921
  • 02:39
    cyangle synchronize #12921
  • 01:08
    cyangle synchronize #12921
  • 01:08
    cyangle synchronize #12921
  • Feb 03 22:11
    straight-shoota labeled #12794
  • Feb 03 22:11
    straight-shoota assigned #12794
  • Feb 03 22:07
    straight-shoota synchronize #12959
  • Feb 03 21:38
    straight-shoota milestoned #12983
  • Feb 03 21:38
    straight-shoota milestoned #12983
  • Feb 03 17:37
    straight-shoota milestoned #13045
  • Feb 03 17:37
    straight-shoota milestoned #13045
  • Feb 03 16:49
    straight-shoota review_requested #13045
  • Feb 03 16:49
    straight-shoota review_requested #13045
  • Feb 03 16:49
    straight-shoota demilestoned #13045
  • Feb 03 16:49
    straight-shoota demilestoned #13045
  • Feb 03 16:49
    straight-shoota edited #13045
George Dietrich
@Blacksmoke16
I'd guessCrypto already exists and is nodoc
didactic-drunk
@didactic-drunk
I don't see defined Cryptoanywhere. It's implicitly defined as Crypto::{Subtle,Bcrypt,Blowfish}
oprypin
@oprypin:matrix.org
[m]
@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
oprypin
@oprypin:matrix.org
[m]
@didactic-drunk: im scared. what is it?
didactic-drunk
@didactic-drunk
From IRC (bridge bot)
@FromIRC
<oprypin> oh.
oprypin
@oprypin:matrix.org
[m]
wow what a nice deduction just from that hint
didactic-drunk
@didactic-drunk
:curtsey:
me
@me:ky.rs
[m]
@didactic-drunk I appreciate your explanation on what is not a secret, Lol.
Jonathan Silverman
@mixflame
please vote for my PR guys <3 amberframework/amber#1265
if you use amber
<3
didactic-drunk
@didactic-drunk
@me:ky.rs You'll probably like Bidet (Who doesn't? They're hours of fun)
1 reply
postmodern
@postmodern:matrix.org
[m]
@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
jhass
@jhass:m.aeshna.de
[m]
there's https://github.com/crystal-lang/bootstrap-script if you wouldn't trust that approach, but probably needs some patching up by now (and a lot of patience)
Rishav Sharan
@rishavs
is there a way to add new data to HTTP::Server::Context? I want to pass some connection specific data between middlewares
1 reply
jhass
@jhass:m.aeshna.de
[m]
If it's primitive data you could modify the request/response headers perhaps
See crystal-lang/crystal#3863 for some existing discussion around this
Matthew Berry
@mattrberry
Does anyone know of any native file browsers in crystal?
postmodern
@postmodern:matrix.org
[m]
@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/
Chris Watson
@watzon
Can't say I have @postmodern:matrix.org
postmodern
@postmodern:matrix.org
[m]
@didactic-drunk: https://github.com/kubo39/syscall.cr another repo to recruit for crystal-posix
1 reply
From IRC (bridge bot)
@FromIRC
<yxhuvud> postmodern: There seems to be native raw syscall support coming in crystal 1.1 though, as part of the uring work.
didactic-drunk
@didactic-drunk
Guess I shouldn't have contacted kubo39
postmodern
@postmodern:matrix.org
[m]
@yxhuvud curious what the API will look like?
From IRC (bridge bot)
@FromIRC
postmodern
@postmodern:matrix.org
[m]
ah interesting, you define the syscalls first instead of passing arguments to syscall(2)
Ary Borenszweig
@asterite
Whats the benefit of syscall? Can we avoid using it? It's bad for something I'm working on
Actually, nevermind
Alex Kampa
@alex-kampa
I'm trying to figure out the simplest way to listen on 2 separate tcp ports, is this going to work:
spawn do
  while client = server1.accept?
    spawn process1(client)
  end
end

spawn do
  while client = server2.accept?
    spawn process2(client)
  end
end
Ali Naqvi
@naqvis
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?
George Dietrich
@Blacksmoke16
shards prune would prob d oit
do it