Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:02
    straight-shoota edited #10480
  • 14:45
    sdogruyol closed #10482
  • 14:42
    straight-shoota labeled #10482
  • 14:42
    straight-shoota labeled #10482
  • 14:42
    straight-shoota labeled #10482
  • 13:57
    kachick closed #10481
  • 11:32
    sdogruyol closed #10470
  • 08:00
    kachick opened #10482
  • 06:37
    kachick opened #10481
  • 03:16
    kachick edited #10477
  • Mar 06 23:48
    RX14 synchronize #10478
  • Mar 06 23:25
    RX14 synchronize #10478
  • Mar 06 23:24
    straight-shoota labeled #10478
  • Mar 06 23:24
    straight-shoota unlabeled #10478
  • Mar 06 23:05
    straight-shoota labeled #10474
  • Mar 06 23:05
    straight-shoota labeled #10474
  • Mar 06 23:05
    straight-shoota labeled #10478
  • Mar 06 23:05
    straight-shoota labeled #10478
  • Mar 06 22:58
    straight-shoota edited #10480
  • Mar 06 22:54
    straight-shoota labeled #10480
From IRC (bridge bot)
@FromIRC
<straight-shoota> with IO::Memory you can set pos = x
js
@js:nil.im
[m]
my idea was to handle the first 12 bytes like this, and then get an IO::Memory.new(packet[12, packet.size - 12], writeable: false)
oh actually, I only need the first 4
so I can already convert that to IO
From IRC (bridge bot)
@FromIRC
<straight-shoota> yeah should just use IO::Memory from the beginning
js
@js:nil.im
[m]
and then store pos, read, reset pos?
oh wait I don't need to, only for reading the original query and comparing ;)
From IRC (bridge bot)
@FromIRC
<straight-shoota> all reads are just sequential
<straight-shoota> btw. context = @queries.fetch(id) { return } avoids raising
js
@js:nil.im
[m]
ohhh, nice
thx!
From IRC (bridge bot)
@FromIRC
<straight-shoota> great
<straight-shoota> IO::ByteFormat::NetworkEndian would prob be more appropriate (although there's no actual difference)
js
@js:nil.im
[m]
seems pointless to have two things with the same value? 🙂
From IRC (bridge bot)
@FromIRC
<straight-shoota> kindof
<straight-shoota> semantic nitpicking
<straight-shoota> btw the code on fossil.nil.im is really hard to read... to much contrast, no highlights
<straight-shoota> is that a fossil default theme?
oprypin
@oprypin:matrix.org
[m]
From IRC (bridge bot)
@FromIRC
<straight-shoota> that's definitely easier on the eyes
<straight-shoota> no highlighting tho
js
@js:nil.im
[m]
huh, too much contract? I know that too little contrast is an a11y problem, but too much?
highlighting via JS would be nice indeed, though
js
@js:nil.im
[m]
interesting - I'm actually one of those having problem with reading black text on white (burns my eyes), so there is no one size fits all solution, I suppose
oprypin
@oprypin:matrix.org
[m]
wish crystal's client was anything like this
From IRC (bridge bot)
@FromIRC
<Stephie> i've thought that many times
<Stephie> i havent got around to putting in the design effort though
<Stephie> it can be tricky to compose something high-level while keeping the low-level features that the current HTTP::Client has
<Stephie> the interesting question is whether it can be done without a breaking change
<Stephie> especially stuff like middleware which could be useful, especially for cookies
From IRC (bridge bot)
@FromIRC
<yxhuvud> Argh. Where the heck am I waking that fiber except for the intended place?
<yxhuvud> I've been stuck on this bug for weeks now :⁠(
From IRC (bridge bot)
@FromIRC
<straight-shoota> @oprypin, the API of HTTP::Client isn't even that different, is it?
<straight-shoota> the implementation is a bit confusing, but that's internal details
oprypin
@oprypin:matrix.org
[m]
here they are not internal, that's the difference
From IRC (bridge bot)
@FromIRC
<straight-shoota> Stephie, my concerns are not so much about design (I think I have a good concept for that, already partly implemented in a PR), but the hard part is a solid implementation for reusable connection
<straight-shoota> *s
<straight-shoota> but aren't those methods just get, exec(method), exec(request) ?
oprypin
@oprypin:matrix.org
[m]
yea
hold up, hm maybe it is possible?
From IRC (bridge bot)
@FromIRC
<straight-shoota> that's self.exec though
From IRC (bridge bot)
@FromIRC
<Stephie> @straight-shoota, i worry more about API than implementation, because API is what hurts to change more
<Stephie> but thats fair
<straight-shoota> true