havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.0, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
<michigan> lol
jmcgnh has quit [Ping timeout: 240 seconds]
RougeR has joined #ruby
jmcgnh has joined #ruby
mixfix41 has joined #ruby
fredlinhares has joined #ruby
ouestbillie has quit [Remote host closed the connection]
ur5us has joined #ruby
goldfish has quit [Ping timeout: 240 seconds]
CrazyEddy has quit [Ping timeout: 240 seconds]
fredlinhares has quit [Read error: Connection reset by peer]
eastbillie has quit [Remote host closed the connection]
TCZ has joined #ruby
fredlinhares has joined #ruby
CrazyEddy has joined #ruby
TCZ has quit [Quit: Leaving]
RougeR has quit [Quit: Leaving]
fredlinhares has quit [Quit: WeeChat 3.4]
michigan has quit [Quit: Connection closed for inactivity]
Rounin has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
<jaredo> is yard more popular than rdoc?
<jaredo> I can't find much info about this
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
John_Ivan has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 240 seconds]
mixfix41 has quit [Ping timeout: 240 seconds]
mixfix41 has joined #ruby
<havenwood> jaredo: I'd garner they're similarly popular. Looking at RubyGems API, I see 6,608 reverse dependencies for yard and 4,477 for rdoc — for a ballpark idea.
<jaredo> rdoc comes with ruby though, so I think that's probably not accurate for rdoc
<havenwood> jaredo: It shouldn't have a bearing on reverse dependencies.
<havenwood> jaredo: This is looking at what says it depends on rdoc and yard gems.
<jaredo> would a gem that uses rdoc have rdoc as a dep, if its already included?
<jaredo> I assumed not
<havenwood> jaredo: It can, and 4,477 do.
<jaredo> interesting
<jaredo> thanks
<jaredo> I guess this is as close as I will get to proof
<havenwood> 109,403,531 downloads for rdoc and 78,433,728 for yard.
<havenwood> jaredo: Reverse deps advantage yard and downloads advantage rdoc. I think similar but can't think of a better way to prove it.
<havenwood> np, you're welcome
<havenwood> Like you say, rdoc is probably used without folk listing it as an explicit dep.
<havenwood> Unsure if the download count actually counts default installs. I actually think it doesn't.
<havenwood> So rdoc may be more popular than it appears from reverse deps alone.
<havenwood> They're both popular.
<havenwood> Yard is something of a superset of rdoc, so go figure.
<havenwood> I've heard havendoc is probably best.
* havenwood lies
gproto23 has joined #ruby
TomyWork has joined #ruby
bluedust has joined #ruby
Guest3367 has joined #ruby
teclator has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.4]
gr33n7007h has joined #ruby
<nakilon> what do people use for websockets today?
___nick___ has joined #ruby
<nakilon> heh, bundler is smarter than gem install; installing the async-websocket was failing because ruby < 3.0 while bundler has found proper gem versions easily
<nakilon> I wish there was a way to utilize the bundler resolver without creating a Gemfile
Rounin has joined #ruby
axsuul has joined #ruby
<axsuul> I have an API endpoint that returns a streaming response but I can't figure out how to consume it (e.g. responses are being sent in chunks on a constant basis). Can anyone recommend a gem or a way to do this?
dangerousdave has joined #ruby
aeris has quit [Remote host closed the connection]
_aeris_ has joined #ruby
_aeris_ is now known as aeris
<nakilon> axsuul what class is the streaming object of? try .read
Pixi__ has quit [Ping timeout: 240 seconds]
Pixi has joined #ruby
<nakilon> I now wonder how to debug it since I get "Async::WebSocket::ProtocolError: Failed to negotiate connection: 400"
_ht has joined #ruby
joast has quit [Ping timeout: 240 seconds]
bluedust_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bluedust has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
Jonopoly has joined #ruby
bluedus__ has joined #ruby
dangerousdave has joined #ruby
bluedust_ has quit [Ping timeout: 256 seconds]
bluedust has quit [Ping timeout: 256 seconds]
oxfuxxx has quit [Ping timeout: 256 seconds]
bluedust has joined #ruby
bluedus__ has quit [Ping timeout: 240 seconds]
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 256 seconds]
bluedus__ has joined #ruby
bluedust_ has quit [Ping timeout: 240 seconds]
<nakilon> (solved, forced http/1)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nakilon> that Async do |task| task.async{ ... is weird, it's not async actually, it's pretty much stuck until the block is done; I don't get it
dangerousdave has joined #ruby
<nakilon> aha, looks like it's broken on ruby <3.0; why does it even install then...
<nakilon> I guess they forgot to put the ruby version requirement in gemspec and then after the gem is published you can't fix than unless yank the gem version I guess, so bundler will install what actually should not be installed
gr33n7007h has quit [Quit: WeeChat 3.4]
goldfish has joined #ruby
goldfish has quit [Remote host closed the connection]
goldfish has joined #ruby
goldfish has quit [Ping timeout: 240 seconds]
Jonopoly has quit [Quit: WeeChat 3.0]
<adam12> Is anybody using the non-Docker-official ruby images? ie. https://hub.docker.com/r/rubylang/ruby ?
<adam12> I wish there were Docker image options that shipped with Ruby docs.
goldfish has joined #ruby
<nakilon> what is the "non-Docker-official"? I suppose on those images you do smth like apt install ruby-doc
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nakilon> oh I see, that's some weird hub
<nakilon> never used it
<adam12> rapha: Were you the one having sqlite issues?
<adam12> rapha: I wonder if you ran into this, if so: https://news.ycombinator.com/item?id=29830214
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
<rapha> adam12: yeah, that was me. interesting link but not sure if i was hitting that, because with the command line client the db would open fine and also pass integrity checks.
goldfish has quit [Remote host closed the connection]
goldfish has joined #ruby
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
dangerousdave has joined #ruby
libsys has quit [Ping timeout: 250 seconds]
libsys has joined #ruby
John_Ivan has joined #ruby
Jonopoly has joined #ruby
libsys has quit [Remote host closed the connection]
libsys has joined #ruby
gproto23 has quit [Ping timeout: 256 seconds]
bluedust has joined #ruby
bluedus__ has quit [Ping timeout: 240 seconds]
gproto23 has joined #ruby
TomyWork has quit [Remote host closed the connection]
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 240 seconds]
sam113101 has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sam113101 has joined #ruby
Jonopoly has quit [Quit: WeeChat 3.0]
dangerousdave has joined #ruby
<axsuul> nakilon: do you mean if I were to use the Net::HTTP library?
bluedust has quit [Remote host closed the connection]
<nakilon> axsuul yeah I guess modt of the libraries should provide something like this; actually I've reread your question -- maybe it's about some infinitely large data? then it would need some other methods
<nakilon> I remember open-uri accepted a block to pass chunks to it
<axsuul> Yep it's a stream of data that's provided by the API. `curl` works with it fine out of the box in that data is streamed to it
bluedust has joined #ruby
oxfuxxx has joined #ruby
<axsuul> Thanks, think I figured it out with the HTTP Ruby gem
bluedust has quit [Remote host closed the connection]
John_Ivan_ has joined #ruby
John_Ivan has quit [Ping timeout: 256 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
gr33n7007h has joined #ruby
bluedust has joined #ruby
bluedust has quit [Remote host closed the connection]
michigan has joined #ruby
John_Ivan__ has joined #ruby
John_Ivan_ has quit [Ping timeout: 240 seconds]
Na_Klar has joined #ruby
eastbillie has joined #ruby
eastbillie has quit [Client Quit]
ouestbillie has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goldfish has quit [Ping timeout: 240 seconds]
bobdobbs has quit [Remote host closed the connection]
ur5us has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
dangerousdave has joined #ruby
<havenwood> nakilon: I'd use async-websocket, for sure.
<havenwood> nakilon: What type of app? I made an async-websocket plugin for Roda. https://github.com/socketry/roda-websockets
<havenwood> Jeremy Evans offered to link it on Roda's website and I forgot to circle back. Gotta do that. :)
<adam12> havenwood: You should do that, since I feel like the topic came up just recently again.
<adam12> Oh actually, they did link it in the discussion and I didn't even notice it. https://github.com/jeremyevans/roda/discussions/230
<havenwood> adam12: Will do! I need to update the README to socketry's style then I'll PR.
<havenwood> Need to quit my job so I have time. :P
<havenwood> No time! No time!
<adam12> LOL
<adam12> I hear ya :\
<havenwood> adam12: Another thing I'd do with time is get really up to speed on Axon. https://github.com/elixir-nx/axon/
<adam12> Neat.
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<havenwood> Almost tempted to attempt a Ruby wrapper.
<adam12> I'm not sure I'll write any more Elixir, other than maintaining my OSS Elixir I already have in the wild. Maybe if I'm paid and not in a consultant role, I would. I just find it incredibly opaque when coming back to old code. More so than Ruby. Maybe it's just being too accustomed to Ruby.
___nick___ has joined #ruby
<havenwood> adam12: I'm more comfortable in Ruby too. Nx revived my Elixir interest.
<havenwood> Nx 0.1 just released, too.
lunarkitty has joined #ruby
<havenwood> adam12: I did recently also dabble in straight Plug apps. Actually really enjoyed.
<havenwood> So Rodaesque.
<adam12> havenwood: I did that for a while. There was a micro-framework for Elixir that was fairly nice. All Plug based.
<havenwood> Rodæsque
<adam12> You see the web_pipe ruby library? It's akin to that. Quite nice.
<adam12> I'm kind of thinking I'm going to move some stuff away from Roda, ironically. I miss having named routes and classes. Perhaps either Hanami 2 or just hanami-controller and hanami-router.
<havenwood> adam12: I think I came across web_pipe but haven't actually tried it. I'll look closer. I did find application.ex more of a pain to get the way I wanted than I expected, for sure. Everything else fell in place.
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
ouestbillie has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 240 seconds]
<adam12> I don't remember it being discussed on the issue tracker, but not dropping Struct#to_a feels like a mistake when we hit 3.x.
<adam12> >> Foo = Struct.new(:to_s); Array(Foo.new("foobar"))
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<adam12> I guess for something primitive like Point = Struct.new(:x, :y) it might be OK... but outside of that, meh.
<adam12> >> true
<ruby[bot]> adam12: I'm terribly sorry, I could not evaluate your code because of an error: JSON::ParserError:A JSON text must at least contain two octets!
danjo08 has joined #ruby
<adam12> >> "Thai"
<ruby[bot]> adam12: I'm terribly sorry, I could not evaluate your code because of an error: JSON::ParserError:A JSON text must at least contain two octets!
<adam12> Oof.
danjo0 has quit [Ping timeout: 252 seconds]
danjo08 is now known as danjo0
<havenwood> That just inspired my new email autoresponder: I'm terribly sorry, but I won't be reading this because of an error: Octets!
___nick___ has quit [Ping timeout: 256 seconds]
<adam12> LOL
hanzo has quit [Quit: Connection closed for inactivity]
* havenwood tries to wait patiently for WebAssembly https://github.com/ruby/ruby/pull/5407
ur5us has joined #ruby
<adam12> I saw that come through. I'm not super up to date with WASI tho.
gproto23 has quit [Ping timeout: 256 seconds]
<havenwood> adam12: As far as I understand, it's basically libc POSIX C API for WebAssembly. "Emscripten heavily depends on JavaScript to emulate some missing features in WebAssembly itself."
<havenwood> "In short the WASI is an effort to define a standard set of syscalls for WebAssembly modules, allowing WebAssembly modules to not only be portable across architectures but also be portable across environments implementing this standard set of system calls."
<havenwood> The "non JS environments, Edge Computing platforms, IoT devices" part is neat.
<havenwood> WebAssembly without JavaScript. ;)
_ht has quit [Remote host closed the connection]
<adam12> Neat. I'm gonna check it out.
<adam12> Gotta run. bbl.
BoatToast has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
duds- has quit [Ping timeout: 276 seconds]
TCZ has joined #ruby
duds- has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
smp has quit [Ping timeout: 256 seconds]
smp has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
TCZ has quit [Quit: Leaving]
lunarkitty has quit [Quit: Connection closed for inactivity]
samgranieri has quit [Ping timeout: 240 seconds]
lunarkitty has joined #ruby
Na_Klar has left #ruby [https://quassel-irc.org - Komfortabler Chat. Überall. ]
dka has joined #ruby
smp_ has joined #ruby
smp has quit [Ping timeout: 240 seconds]
smp_ is now known as smp
smp_ has joined #ruby
smp has quit [Ping timeout: 240 seconds]
smp_ is now known as smp
constxd_ has joined #ruby
ur5us has joined #ruby
Guest3367 has quit [Ping timeout: 240 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
smp has quit [Ping timeout: 240 seconds]
ur5us_ has joined #ruby
smp has joined #ruby
ur5us has quit [Read error: Connection reset by peer]