<adam12>
havenwood: A little sad your rename proposal didn't seem to be moving. There's a few things in stdlib where I notice juniors get hung up on.
<havenwood>
adam12: We could add it to the devs meeting. I just wanted to get it on the books since I agree it does hang up new folk, who we could just be kind to with conventions.
<havenwood>
adam12: I remember the names to require, *usually*, but it's something I've long wished just worked as anticipated.
<adam12>
There's another good issue that looks interesting and it's callable objects in $LOAD_PATH
<adam12>
Ooh, caching instruction ssequences is getting visibility again too. I wonder if it's gonna go anywhere since normalperson has been absent. https://bugs.ruby-lang.org/issues/16847
stryek has joined #ruby
bkuhlmann has joined #ruby
dorian has joined #ruby
<dorian>
hey question about rack: what is the convention for signalling that a request is a subrequest? i want to leave like an easter egg in the env so that a middleware can detect it and not run
<dorian>
i realize i can make that be anything, i'm trying to figure out if there is a convention though
impermanence has quit [Quit: Connection closed]
<adam12>
dorian: I'm not sure I've seen a convention. Maybe just namespace it to avoid a collision.
<dorian>
word
<dorian>
i mean there is `rack.recursive.include`
<dorian>
but i haven't tested whether that's there unconditionally
kinduff has quit [Read error: Connection reset by peer]
donofrio has quit [Remote host closed the connection]
TCZ has joined #ruby
jinmiaol1 has joined #ruby
davispuh has joined #ruby
xco has joined #ruby
bandithijo has joined #ruby
yxhuvud has joined #ruby
bandithijo has quit [Client Quit]
crankharder has quit [Ping timeout: 258 seconds]
Lachezar has joined #ruby
<Lachezar>
Hey all. I have the task to integrate with an existing Ruby application that has a Web-Socket server (Cable?). I do not understand the protocol that is being used. Where can I find th eprotocol definition?
<Lachezar>
havenwood: Seems that the app is Ruby (probably Rails), but the WebSocket connection is served by a different component. I suspect it's a node.js application.
<havenwood>
Lachezar: The modern Rails option for WebSockets is Action Cable, which I linked above.
chalkmonster has quit [Quit: WeeChat 2.8]
crankharder has joined #ruby
<havenwood>
Lachezar: So you want to use Socket.IO from Ruby? That's what your goal is here?
<Lachezar>
havenwood: Thanks for the help. It turns out the Cable *is* used but not for the component that I'm trying to integrate with.
DTZUZU has quit [Quit: WeeChat 2.8]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crisfm has quit [Read error: Connection reset by peer]
spiette has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
ldepandis has quit [Ping timeout: 265 seconds]
howdoi has joined #ruby
maxxx888_ has quit [Read error: Connection reset by peer]
maxxx888 has joined #ruby
gix has joined #ruby
infinityfye has quit [Quit: Leaving]
pwnd_nsfw has quit [Quit: Leaving]
pwnd_nsfw has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
TCZ has joined #ruby
s2013 has joined #ruby
Minall has joined #ruby
snickers has joined #ruby
davispuh has quit [Ping timeout: 265 seconds]
<Minall>
Hello ruby community! anyone know what dependencies are in rvm?, I'm trying to install it but it doesn't recognize my system, so it can't install dependencies, I'm at clear linux
inanepenguin has quit [Quit: inanepenguin]
<gueorgui>
Minall: What errors are you getting?
<gueorgui>
Also are you installing from a clear linux package or from source?
maxxx888 has quit [Remote host closed the connection]
<Minall>
RVM was not able to detect your system type and does not know how to load extra library paths for your system (if it's needed), read:
<Minall>
> rvm help autolibs
davispuh has joined #ruby
maxxx888 has joined #ruby
maxxx888 has quit [Read error: Connection reset by peer]
<gueorgui>
And when are you getting this error?
<Minall>
When trying to run the command to install rvm with rails: curl -sSL https://get.rvm.io | bash -s stable --rails
<gueorgui>
It's possible they didn't test it with the clear linux package manager or something, and so can't autodetect what they need
<jhass>
yeah it should have installed RVM successfully
<jhass>
it just failed at installing ruby
<jhass>
try to disable autolibs and then just rvm install ruby
<Minall>
You're right, it installed rvm, but not ruby...
<Minall>
Ok, I'm on it, thanks
<Minall>
I'm trying to install ruby now,
maxxx888 has quit [Remote host closed the connection]
maxxx888 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Minall>
Installing ruby fails, the first line of the error is /home/Minall/.rvm/src/ruby-2.7.0/lib/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- openssl (LoadError)
<jhass>
do you have openssl including development headers available?
<Minall>
So I assume that those dependencies that rvm wanted to install on my system were necessary, so I need to know what those dependencies are in order to install them manually
<jhass>
a clearer alternative might digging out the build scripts for your distros official ruby package
<Minall>
Wow... Ok let me see if I can find all those dependencies on clear linux, I'm installing a bundle of dev packages
<gueorgui>
clear's package management is interesting
<gueorgui>
it's bundles rather than individual packages?
<Minall>
Yes, ruby-basic bundle, ruby-dev, desktop-gnome, desktop-kde... I can't give any details since I just started 2 hours ago with this new system... I only installed some bundles like this dev bundle...
<Minall>
But for individual apps, we use flatpak, I installed steam, discord, gnome maps and boxes...
schne1der has joined #ruby
<Minall>
Also java-basic as bundle, which worked perfectly for booting minecraft, lol
<jhass>
fwiw I'm sure somebody made a ruby flatpak
<gueorgui>
out of curiosity, why did you choose Clear over another distro? I've got to admit I've never even heard of Clear until today
<jhass>
also what's wrong with the ruby bundle they provide that you're already installing RVM?
<Minall>
gueorgui: They focus on performance, and have amazing performance over intel architecture that supports the system... Also some AMD CPUs seem to go great with it... Some benchmarks against Ubuntu, my OS of choise before installing Clear Linux, showed that Clear Linux beat Ubuntu in the majority of the benchmarks... So I'm here to see if that affects every day usage, and gaming, 3D or when compiling
<gueorgui>
Minall: gotcha, thanks for explaining!
<xco>
greetings
<Minall>
jhass: I could install that package with I assume is the latest ruby, but rvm gives developers more control over their versions, for example, I work with rails, and some projects are in an old version
maxxx888 has quit [Read error: Connection reset by peer]
maxxx888 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
chouhoulis has joined #ruby
comet23 has joined #ruby
Minall_ has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
Minall has quit [Ping timeout: 258 seconds]
Minall_ is now known as Minall
<jhass>
and apparently in 1.9 you could compare procs, but 2.0 lost Proc#== and Proc#eql?
<jhass>
also no more marshalling Time!
<jhass>
xco: what kind of archeology is this for btw?
<xco>
gueorgui
<xco>
jhass i'm trying to study the history of Ruby
<xco>
I'm happy with 2.7.0 for all my projects :D
<xco>
just digging around to see what's changed
<comet23>
ruby 4 is out
<gueorgui>
hi
<xco>
gueorgui sorry called you out with the wrong key press
<jhass>
heh, fair. I guess generating a little website listing the added and removed methods per ruby minor version could be nice thing
<xco>
jhass that's ACTUALLY what i'm doing
<jhass>
haha <3
<jhass>
well stuff the above in a loop and you're basically done :D
<xco>
are you telepathic? jhass :D
<jhass>
sometimes :D
<xco>
haha
vondruch has quit [Ping timeout: 272 seconds]
ellcs has quit [Ping timeout: 260 seconds]
CrazyEddy has quit [Ping timeout: 256 seconds]
<jhass>
the sad part is only ever know after the fact :(
<jhass>
comet23: what's new in Ruby 4?
<gueorgui>
static typing, one would hope
<gueorgui>
*ducks*
<xco>
gueorgui no please
<jhass>
static typing is great. Don't confuse it with mandatory type annotations :D
<jhass>
doesn't ruby 3 actually want to implement gradual typing? I don't follow it so closely
arekushi has joined #ruby
crankharder has joined #ruby
Minall has quit [Ping timeout: 256 seconds]
<Scriptonaut>
do you guys recommend using God to spawn resque workers in production, or is there an easier way?
<Scriptonaut>
not sure I want to go through the process of learning God, or creating a big monit config for this project just so my resque workers are spawned in their own processes instead of threads
<jhass>
what OS are you deploying on?
Dreamer3 has quit [Quit: Leaving...]
kristian_on_linu has quit [Remote host closed the connection]
djdduty has joined #ruby
<Scriptonaut>
jhass: ubuntu 18.04 I think
<Scriptonaut>
couldn't I just make a ruby script that calls the resque:work rake task in a loop?
<jhass>
so, just write a systemd unit?
maxxx888 has quit [Read error: Connection reset by peer]
<Scriptonaut>
I could do that ya
<jhass>
why in a loop?
pwnd_nsfw has quit [Read error: Connection reset by peer]
<Scriptonaut>
jhass: I'm having an issue with resque. The rake resque:workers rake task spawns each worker in a thread. I need them in separate processes for production
maxxx888 has joined #ruby
<jhass>
since when is resque thread based oO
<Scriptonaut>
it's thread based if you use that rake task apparently
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
yes it's kinda misleading
<jhass>
the readme was fixed since
<Scriptonaut>
another issue with that is the PIDFILE= env var. If you have COUNT=5 PIDFILE=/path/to/file.pid rake resque:workers, it will create a single pid file for the first worker
<Scriptonaut>
which makes killing the other ones hard
<Scriptonaut>
so I was thinking of just writing a rake task, that called rake resque:work multiple times, with PIDFILE=resque-#{app_environment}-#{i}
<Scriptonaut>
and wanted to see how y'all felt about that
<jhass>
I mean for production just make a systemd template unit and instantiate as many as you need
<Scriptonaut>
ah ok, so just call the rake task multiple times in the system d template
schne1der has quit [Ping timeout: 256 seconds]
<jhass>
yeah, ExecStart=/your/ruby/env/stuff/bundle exec rake resque:work, save it as resque_worker@.service and start/enable resque_worker@one, resque_worker@two as many times as you want
<comet23>
jhass: ruby 4 has a tell me feature where you speak to it
<comet23>
Just kidding that's siri
<comet23>
But ruby 4 has intelligent code completion. Write something that makes sort of sense and it will rewrite your logic so that your code passes all the edge cases
drincruz has quit [Ping timeout: 256 seconds]
bkuhlmann has quit []
<comet23>
This begs the question why can't there be a feature where you're just focused on writing test cases and the computer writes the most optimized code that is secure and free of bugs?
<comet23>
And if we're working on a rails app we'll have to write the HTML and say where everything goes and ruby will handle the logic for us
<comet23>
Automatically installing and configuring databases and redesigning architecture to automatically scale as the need arises
Rakko has quit [Ping timeout: 265 seconds]
Rakko has joined #ruby
TCZ has quit [Quit: Leaving]
ldepandis has joined #ruby
BTRE has quit [Ping timeout: 264 seconds]
Rakko^ has joined #ruby
bambanx has joined #ruby
Rakko has quit [Ping timeout: 265 seconds]
elcuervo has quit [Read error: Connection reset by peer]
masticass has joined #ruby
BTRE has joined #ruby
maxxx888 has quit [Read error: Connection reset by peer]
maxxx888 has joined #ruby
Rakko^ has quit [Quit: Leaving]
DTZUZU has quit [Quit: WeeChat 2.8]
<adam12>
Wow, Resque and God. Haven't heard either of those in ages.
entel has quit [Quit: Connection closed for inactivity]
TCZ has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evdubs has quit [Remote host closed the connection]