havenwood changed the topic of #ruby to: Ruby 3.4.2, 3.3.7 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
Inline has joined #ruby
konsolebox has quit [Ping timeout: 272 seconds]
konsolebox has joined #ruby
gemmaro_ has quit [Ping timeout: 268 seconds]
gemmaro has joined #ruby
konsolebox has quit [Quit: .]
xokia has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
xokia has quit [Remote host closed the connection]
xokia has joined #ruby
Inline has quit [Ping timeout: 244 seconds]
victori has quit [Ping timeout: 252 seconds]
Vonter has quit [Ping timeout: 252 seconds]
brw has quit [Remote host closed the connection]
brw has joined #ruby
Vonter has joined #ruby
crespire1 has joined #ruby
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
pages has quit [Quit: ZNC - https://znc.in]
pages has joined #ruby
xokia has quit [Ping timeout: 245 seconds]
nil78 has quit [Read error: Connection reset by peer]
CRISPR has joined #ruby
nil78 has joined #ruby
phenom has quit [Ping timeout: 276 seconds]
phenom has joined #ruby
Linux_Kerio has joined #ruby
CRISPR has quit [Ping timeout: 245 seconds]
grenierm has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
wbooze has joined #ruby
infinity__fye has joined #ruby
infinity__fye is now known as infinityfye
infinity__fye has joined #ruby
infinityfye has quit [Ping timeout: 245 seconds]
infinity__fye is now known as infinityfye
konsolebox has joined #ruby
Linux_Kerio has quit [Ping timeout: 272 seconds]
o0x1eef has quit [Quit: Brb]
o0x1eef has joined #ruby
o0x1eef has quit [Client Quit]
o0x1eef has joined #ruby
Vonter has quit [Ping timeout: 244 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
Vonter has joined #ruby
<nakilon> "Politics should have nothing to do with Ruby. That's the point." -- that's why you shouldn't care about one's personal twitter
konsolebox has joined #ruby
<nakilon> "maybe you should shut up about it as a rich white dude " -- you shouldn't care about his skin color
jasfloss has quit [Ping timeout: 260 seconds]
<ripsum> I pointed out the fragility of their comments the other day but they just ignored it ofcourse. Which is generally what people who can't think for themselves, and therefore can't really argue about anything do
<ripsum> Slowly I'm reaching the conclusion that there is definitely a not insignificant chunk of the population, that doesn't really think about anything and just holds whichever view is socially expedient at the time
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye!~infinityf@154.180.37.163))]
infinity__fye has joined #ruby
infinity__fye is now known as infinityfye
kiwi_36 has quit [Ping timeout: 268 seconds]
jasfloss has joined #ruby
sata has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
donofrio has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
donofrio has quit [Ping timeout: 248 seconds]
nil78 has joined #ruby
kiwi_36 has joined #ruby
olspookishmagus has quit [Ping timeout: 246 seconds]
donofrio has joined #ruby
olspookishmagus has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinity__fye has joined #ruby
wbooze has quit [Ping timeout: 244 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
infinity__fye is now known as infinityfye
konsolebox has quit [Ping timeout: 252 seconds]
donofrio has joined #ruby
grenierm has quit [Ping timeout: 240 seconds]
<nakilon> speaking of IRC bots, I use own gem nakiircbot -- I don't fully like the API, it does not support IRC v3 tags, but it handles the network loop and provides methods to write tests for it and to parse own logs
<nakilon> runs a twitch for almost 2 years, it's been more stable than a Nightbot, heh
donofrio has quit [Ping timeout: 272 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 245 seconds]
donofrio has joined #ruby
meinside has quit [Ping timeout: 246 seconds]
meinside has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
<o0x1eef> Like it or not, DHH represents the Ruby community and his Twitter has a wide reach (over 500k+ followers). When he defends burning The Quran as 'free speech' and other tweets that incite hatred against a group of people - usually refugees, it's going to give Ruby a bad reputation and potentially alienate people from Ruby. With that position you have to be a bit more responsible. He's not a random
<o0x1eef> nobody and he knows it.
<o0x1eef> I have nothing more to add on that topic. Let's go back to Ruby.
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
<henk> heh, interesting example :D because the opposite might also alienate other people … in the end, everything is political and nobody can hide from it or really be "apolitical"
ross has quit [Ping timeout: 246 seconds]
braxas has quit [Ping timeout: 244 seconds]
<o0x1eef> In my experience that's not entirely true. The OpenBSD community is generally neutral and expects you to leave politics at the door. Same with Matz and his tweets. Same with tenderlove. I could go on.
<o0x1eef> #OpenBSD topic: 'Political discussions and other incendiary topics are unwelcome.'
<henk> sure, you can make a certain space like an irc channel be apolitical. but I guess certain topics will still reach into that room and make it necessary to discuss politics regarding these topics. but spaces are not people.
donofrio has joined #ruby
<o0x1eef> Like I said, if you're going to be a leader in the Ruby community, and DHH is, you have to be a bit more responsible that the average joe.
ross has joined #ruby
<o0x1eef> I have nothing more to add on this. I think it proves my point. His actions only divide the community, and alienate people. That's the problem.
Vonter has quit [Ping timeout: 265 seconds]
<henk> what do you mean with "more responsible"? that’s not objectively defined … IMHO it’s every person’s responsibility to uphold values that serve everybody. but that’s just my opinion I’m convinced of is the best. other people are convinced that "white" people are better than "people of color" and they are convinced it’s every person’s responsibility to make sure that "the white man
<henk> prevails" or something.
donofrio has quit [Ping timeout: 244 seconds]
<o0x1eef> I'm not going to discuss this anymore. I've said everything I can and if you disagree then we can agree to disagree.
Vonter has joined #ruby
<henk> yeah, this is really the wrong place for this discussion. sorry for engaging. it’s a very interesting topic and hard for me to resist …
<o0x1eef> No worries
braxas has joined #ruby
donofrio has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 245 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
sata has quit [Quit: Client closed]
donofrio has joined #ruby
<ripsum> Nobody judges a programming language by what some random dude says on a social media site that no one normal actually cares about anyway. He's not harming the reputation of anything because no one normal actually knows who this DHH person is, and I'd bet a lot if not most people who write Ruby never even heard of the guy. If he wants to write insane shit on Twitter/X that is his lookout really, but it
<ripsum> doesn't seem to have anything to do with Ruby imo. You are just mistakenly assuming he is representative for some reason. In summary the problem is in your head because you mistakenly believe that anything that happens on Twitter/X actually matters
sata has joined #ruby
donofrio has quit [Ping timeout: 265 seconds]
nil78 has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
<o0x1eef> Yeah fair enough. On a more upbeat note I have had good results w/ building a GraphQL application with Rack / Warden / ActiveRecord / ruby-graphql so far. That all lives within server/, and client/ is managed by Deno (a NodeJS alternative).
nil78 has joined #ruby
<o0x1eef> Fair amount of work to get it off the ground though. If it turns into something I like hopefully it can serve as the base for future projects.
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
hightower3 has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
hightower2 has quit [Ping timeout: 272 seconds]
konsolebox has joined #ruby
Linux_Kerio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 244 seconds]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
sata has quit [Ping timeout: 240 seconds]
donofrio has quit [Ping timeout: 252 seconds]
* tweaks was excited for a big scrollog in ruby discussions! disappointed-face.png
donofrio has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
Pixi` has quit [Ping timeout: 252 seconds]
user71 has joined #ruby
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
FetidToot has joined #ruby
cappy has joined #ruby
hwpplayer1 has joined #ruby
Pixi has joined #ruby
<havenwood> tweaks: See the logs :) https://libera.irclog.whitequark.org/ruby
xokia has joined #ruby
xokia has quit [Remote host closed the connection]
polishdub has joined #ruby
<tweaks> havenwood: heh-heh-lizard.gif \o/
xokia has joined #ruby
Pixi has quit [Ping timeout: 260 seconds]
polishdub has quit [Quit: leaving]
polishdub has joined #ruby
konsolebox has quit [Ping timeout: 252 seconds]
konsolebox has joined #ruby
wbooze has joined #ruby
Pixi has joined #ruby
konsolebox has quit [Ping timeout: 250 seconds]
konsolebox has joined #ruby
cappy has quit [Quit: Leaving]
wbooze has quit [Ping timeout: 244 seconds]
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
hwpplayer1 has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
hwpplayer1 has joined #ruby
MyNetAz has quit [Remote host closed the connection]
sata has joined #ruby
<llua> weird that people seem to think opensource software isn't a political and how varies projects is governed within the ecosystem isn't politics. down to the licenses and how they may or may not interact with each other.
MyNetAz has joined #ruby
<havenwood> llua: I'd consider license interactions legal rather than political. The choices of which licenses to adopt and related things may have a political element.
<llua> laws are codied political policies tho
<llua> codified*
<havenwood> ripsum: To some extent leaders represent communities to an extent they often have the largest public mouthpiece. For example, MINISWAN. Matz is nice, so the community is nice.
<havenwood> llua: I'd quibble with that as a philosopher and attorney. Many laws are not codified. _Just_ implies no more than and there are many non-political influences on laws.
<havenwood> llua: Reading the backlog, consider "political" as a shorthand for "exclusionary political speech" rather than the broadest sense of having some political element. Most human endeavors have a political element but aren't just some refinement of politics.
Pixi has quit [Ping timeout: 272 seconds]
<havenwood> "Matz is nice and so Ruby is nice" because it's niceness that Matz brings to the community. Matz happens to be a Mormon, but he's not closely associating Mormonism with Ruby and pushing a Mormon agenda in Ruby. They're separate. It matters. Separation of church and language is analogous.
<havenwood> Ruby is 和. DHH is... not.
denvermullets has joined #ruby
denvermullets has quit [Ping timeout: 248 seconds]
denvermullets has joined #ruby
Linux_Kerio has quit [Ping timeout: 260 seconds]
MyNetAz has quit [Remote host closed the connection]
hwpplayer1 has quit [Quit: I'll be back tomorrow]
MyNetAz has joined #ruby
_ht has joined #ruby
_ht has quit [Remote host closed the connection]
<weaksauc_> nakilon only mentioned it because he brings race into things all too often
<tweaks> uh, wat
Pixi has joined #ruby
<tweaks> weaksauc_: i thought they were responding to you bringing race into it
<henk> some linter says: »require 'thread' ■ Remove unnecessary `require` statement.« why is it unnecessary?
<o0x1eef> ruby -e "p require 'thread'"
<tweaks> unless this began before o0x1eef began the dhh twitter stuff
<henk> same for 'pp'. I assume they are builtin now but where can I check that other than just trying?
sata has quit [Quit: Client closed]
<o0x1eef> require 'thread' returns false, that tells you it has already been required. You can check $LOADED_FEATURES as well.
<o0x1eef> Yes, exactly, they're loaded for you so need to require them manually
<henk> ok, but how do I know which ones are loaded for me? i.e. the reason why this linter says I should remove it …
<henk> I don’t like just being told "do this". I like to understand the why ):
<o0x1eef> $LOADED_FEATURES tell you what files have been required
<o0x1eef> =>
<o0x1eef> ["enumerator.so",
<o0x1eef> "thread.rb",
<o0x1eef> ... etc
<henk> hm, yes. ok, so `p $LOADED_FEATURES` in irb includes thread. but that doesn’t necessarily mean that it is always loaded, might just be irb loading it …
<o0x1eef> echo 'p $LOADED_FEATURES' > foo.rb
<henk> neither https://docs.ruby-lang.org/en/master/PP.html nor https://docs.ruby-lang.org/en/master/Thread.html seem to mention that they will always be loaded
<o0x1eef> ruby foo.rb
<o0x1eef> It might not be documented (yet) :) Generally there's a concept of "core classes", and anything that's available without it being required is considered to be part of "core Ruby". Thread is now included in that.
<henk> o0x1eef: yeah, sure, but is that really how this is supposed to be? o_O it seems weird that the linter only tells me "do X" and I have to either believe it and blindly follow this instruction without understanding or I have to guess or assume something and then test that assumption.
<henk> ah https://docs.ruby-lang.org/en/master/index.html#label-Core+Classes+and+Modules but that doesn’t include PP either …
<o0x1eef> PP is not a core class AFAIK. But irb depends on it. Maybe why?
<o0x1eef> If you want a clean environment then go with 'ruby yourtest.rb'
jmjl has quit [Ping timeout: 260 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
<henk> hrm, is there any pastebin that _runs_ ruby code?
konsolebox_ has joined #ruby
<o0x1eef> Yep we have a bot
<o0x1eef> I'm not sure how it works though :D
<henk> ruby[bot]: help
<o0x1eef> >> p $LOADED_FEATURES
<ruby[bot]> o0x1eef: # => ["enumerator.so", "thread.rb", "rational.so", "complex.so", "ruby2_keywords.rb", "/usr/lib/ruby/3.0. ...check link for more (https://carc.in/#/r/hp6x)
<henk> >> p require 'pp' ; PP.singleline_pp Object.new
<ruby[bot]> henk: # => true ...check link for more (https://carc.in/#/r/hp6y)
<henk> >> PP.singleline_pp Object.new
<ruby[bot]> henk: # => uninitialized constant PP (NameError) (https://carc.in/#/r/hp6z)
<henk> the linter still tells me to remove the unnecessary »require 'pp'« o_O
<o0x1eef> IRB depends on it but beyond that I think you'd have to require it manually
<henk> yeah, but the linter seems to think it’s not necessary
<henk> is this a bug or am I missing anything?
<o0x1eef> Which linter are you using?
<henk> rubocop, I guess
user71 has quit [Quit: Leaving]
<o0x1eef> Can you paste the full error?
<o0x1eef> Brb
<henk> o0x1eef: https://bpa.st/X5HQ
<henk> ah, multiple issues already seem to exist … but are closed: https://github.com/rubocop/rubocop/issues/11099 https://github.com/rubocop/rubocop/issues/11099
<o0x1eef> That's an old issue though. Unless you're running an ancient rubocop it shouldn't be an issue or it's a regression.
<henk> ah, yeah, I guess I am: 1.39.0 from debian stable (: ok, nevermind then …
<henk> thanks o0x1eef (:
<o0x1eef> No worries
<henk> since what version is thread a core class?
<o0x1eef> I'm not sure but if I was to guess maybe since 1.9
<henk> there is https://docs.ruby-lang.org/en/master/index.html#label-Core+Classes+and+Modules but I can’t find the list of core classes in https://docs.ruby-lang.org/en/2.1.0/. any idea what it could be part of?
<o0x1eef> Grep for 'thread' in each of them
<o0x1eef> Actually https://github.com/ruby/ruby/tree/master/doc/NEWS looks more helpful
<o0x1eef> Found it
<o0x1eef> * thread
<o0x1eef> * the extension library is removed. Till 2.0 it was a pure ruby script
<o0x1eef> "thread.rb", which has precedence over "thread.so", and has been provided
<o0x1eef> in $LOADED_FEATURES since 2.1.
denvermullets has quit [Ping timeout: 245 seconds]
<henk> i.e. since 2.1? even though https://github.com/ruby/ruby/blob/master/doc/NEWS/NEWS-2.1.0 doesn’t mention it?
<henk> or since 2.4 … I don’t get it
denvermullets has joined #ruby
<o0x1eef> I understood since 2.1 - there's also https://github.com/ruby/ruby/blob/master/doc/ChangeLog/ChangeLog-2.1.0 - more detailed, although nothing clearly says it.
<henk> I’m actually going through that right now
<henk> and through but I don’t see anything about it
konsolebox_ has quit [Ping timeout: 252 seconds]
<henk> neither for 2.4.0
<o0x1eef> I think the next step would be to clone the repo and grep through the source / git log
<henk> already trying that
<henk> just have only very vague ideas how to get there … grepped for LOADED_FEATURES but not sure that is the best approch
konsolebox has joined #ruby
<henk> god, this seems stupid … shouldn’t be so hard to find when such a major change was made, should it?
<o0x1eef> git log --grep thread.rb
<o0x1eef> thread_sync.c looks like it might be relevant
<o0x1eef> Nothing obvious stands out but understanding how 'core' classes are made available to Ruby would be a cool experiment
swee has quit [Remote host closed the connection]
swee has joined #ruby
denvermullets has quit [Remote host closed the connection]
<o0x1eef> Ah - so in thread_sync.c, you have rb_provide_feature("thread.rb") towards the end of the file, and then in load.c you have the implementation for rb_provide_feature: https://github.com/ruby/ruby/blob/master/load.c#L693-L711
FetidToot has quit [Quit: Ping timeout (120 seconds)]
FetidToot has joined #ruby
<henk> hm, so 0de5e1cb87 is the commit?
<henk> ok, enough time wasted on this … I’ll leave the line in. FTS
<o0x1eef> I'd go with 2.1 based on the NEWS entry, unless there's something more convincing. 'rb_provide' just appears to handle $LOADED_FEATURES in one way or the other.
infinityfye has quit [Quit: Leaving]
<henk> yeah. it just makes me sad that we have to SWAG this and/or sourcedive and that there is no simpler way to figure this out /-:
<henk> for once, I envy webdevs: for https://caniuse.com/
<o0x1eef> Yeah that's gotten a lot better, in the same way Ruby documentation has. It use to be much more bleak. So I think we're headed in the right direction.
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
mange has joined #ruby
<henk> went through some things again: https://github.com/ruby/ruby/blob/0597cbcb1d895028e954db9711681e987c56729d/doc/NEWS/NEWS-2.0.0?plain=1#L196 is the oldest NEWS file I could find where 'Thread' is mentioned under the heading "Core classes updates"
konsolebox has quit [Ping timeout: 250 seconds]
<henk> o0x1eef: thanks for your help!
<henk> good night
victori has joined #ruby
gemmaro has quit [Read error: Connection reset by peer]
<o0x1eef> Sleep well!
gemmaro has joined #ruby
jmjl has joined #ruby
cappy has joined #ruby