havenwood changed the topic of #ruby to: Ruby 3.3.0, 3.2.3, 3.1.4 https://www.ruby-lang.org | Rules https://ruby-community.com | Logs https://libera.irclog.whitequark.org/ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
Thanzex has joined #ruby
dhruvasagar has joined #ruby
rvalue has quit [Ping timeout: 264 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
dhruvasagar has quit [Ping timeout: 256 seconds]
bambanxx has joined #ruby
dhruvasagar has joined #ruby
rvalue has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
ua_ has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
c10l has quit [Quit: Ping timeout (120 seconds)]
c10l has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
<[0x1eef_]> adam12: The file doesn't have to stay on disk to be able to use it, unlinking reserves access to the current process and its children processes. You can even set permissions so that even if the file exists on disk, only the current process could access it (via its FD). Rack does that: https://github.com/rack/rack/blob/main/lib/rack/rewindable_input.rb#L79-L85
<[0x1eef_]> weaksauce: Unles you use the block form I think unlinking and closing is up to you, but there's probably finalizers in place regardless.
dhruvasagar has quit [Ping timeout: 246 seconds]
nmollerup has quit [Remote host closed the connection]
nmollerup has joined #ruby
<adam12> [0x1eef_]: Interesting approach.
<adam12> [0x1eef_]: In that rack file you linked, I don't even see a call to unlink, but it mentions it a bunch of times.
<adam12> Deleted in 2015.
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
bambanxx has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
<adam12> 1 while <expr>
<adam12> Does anybody know the backstory on something like that? I don't remember seeing it, ever. https://github.com/ruby/rdoc/blob/06137bde8ccc48cd502bc28178bcd8f2dfe37624/lib/rdoc/markup/attribute_manager.rb#L211
<adam12> A poor mans infinite loop?
<adam12> That must be it. At least in these cases, I think it's recursively parsing the same expression over and over until it returns nil. The 1 is just the placeholder.
<adam12> Maybe I have seen it. I generally try to avoid infinite loops and prefer a bounded loop, but it's a very interesting technique. Reminds me of while(1)
dhruvasagar has joined #ruby
<weaksauce> 2008
<adam12> I think it predates that file tho.
<weaksauce> yeah true
<adam12> Some of those regular expressions in rdoc are the thing of nightmares.
<weaksauce> imported from some other rcs
<adam12> Oh, nice find.
<weaksauce> 2003
dhruvasagar has quit [Ping timeout: 264 seconds]
<adam12> Not really much to it at that import.
<adam12> Except for that Ruby parser. Fun.
<weaksauce> was it a way to return 1 instead of the regex result i wonder?
<adam12> A standin for `loop; break unless re.gsub! { }; end`, I think.
<adam12> Keep gsubbing until you can't no more. gsub! returns `nil` when it doesn't match anything.
<adam12> I'd probably do something like `500.times do; break unless re.gsub! {}; end` so there's no chance that it will _never_ finish.
<adam12> bbl
dhruvasagar has joined #ruby
<weaksauce> ah nevermind i was thinking the block was being used by the while but it's passed to the gsub
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
bambanxx has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
peroazuma has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
Al2O3 has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
dhruvasagar has joined #ruby
Al2O3 has joined #ruby
Al2O3 has joined #ruby
Al2O3 has quit [Changing host]
dhruvasagar has quit [Ping timeout: 246 seconds]
donofrio has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
dhruvasagar has joined #ruby
cek has quit [Quit: Connection closed for inactivity]
<[0x1eef_]> adam12: Yeah me neither. It sets @unlinked but that's about it. I don't see where the unlink happens.
<[0x1eef_]> Ah I see now. The unlink happens when Tempfile#close! is called (ref'ed by @rewindable_io). https://github.com/ruby/tempfile/blob/master/lib/tempfile.rb#L203-L218
peroazuma has quit [Ping timeout: 255 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
_ht has joined #ruby
Vonter has quit [Read error: Connection reset by peer]
Vonter has joined #ruby
dhruvasagar has joined #ruby
Vonter has quit [Quit: WeeChat 4.2.1]
Vonter has joined #ruby
pero has joined #ruby
mange has quit [Quit: Quittin' time!]
pgib has quit [Ping timeout: 260 seconds]
schne1der has joined #ruby
pero has quit [Quit: WeeChat 4.0.5]
_ht has quit [Remote host closed the connection]
grenierm has joined #ruby
Vonter has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
Vonter has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
tun4 has joined #ruby
tun4 has quit [Client Quit]
dhruvasagar has joined #ruby
FetidToot7 has joined #ruby
FetidToot has quit [Read error: Connection reset by peer]
FetidToot7 is now known as FetidToot
grenierm has quit [Quit: Client closed]
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire1 has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
szkl has joined #ruby
goofansu has joined #ruby
yosafbridge has quit [Quit: Leaving]
yosafbridge has joined #ruby
goofansu has quit [Remote host closed the connection]
goofansu has joined #ruby
goofansu has quit [Remote host closed the connection]
goofansu has joined #ruby
goofansu has quit [Read error: Connection reset by peer]
nil78 has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
nil78 has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
reset has quit [Quit: reset]
reset has joined #ruby
crivic has joined #ruby
reinboar has quit [Ping timeout: 260 seconds]
nil78 has quit [Remote host closed the connection]
nil78 has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
Vonter has quit [Ping timeout: 246 seconds]
Vonter has joined #ruby
mange has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
dhruvasagar has joined #ruby
crivic has quit [Quit: crivic was here]
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
desnudopenguino has quit [Ping timeout: 256 seconds]
szkl has quit [Quit: Connection closed for inactivity]
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
nil78 has quit [Remote host closed the connection]
nil78 has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
ua_ has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
szkl has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
nil78 has quit [Remote host closed the connection]
nil78 has joined #ruby
infinityfye has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
wnd-conn has joined #ruby
Bounga has quit [Ping timeout: 268 seconds]
graemefawcett has quit [Ping timeout: 268 seconds]
kwilczynski has quit [Ping timeout: 268 seconds]
Hobbyboy has quit [Ping timeout: 268 seconds]
tsujp has quit [Ping timeout: 268 seconds]
jmcantrell has quit [Ping timeout: 268 seconds]
braxas has quit [Ping timeout: 268 seconds]
Manouchehri has quit [Ping timeout: 268 seconds]
marahin has quit [Ping timeout: 268 seconds]
Hobbyboy has joined #ruby
whereiseveryone has quit [Ping timeout: 268 seconds]
wnd has quit [Ping timeout: 268 seconds]
hays has quit [Ping timeout: 268 seconds]
eof has quit [Ping timeout: 268 seconds]
summerisle has joined #ruby
deadmarshal_ has quit [Ping timeout: 268 seconds]
tsujp has joined #ruby
jmcantrell has joined #ruby
whereiseveryone has joined #ruby
kwilczynski has joined #ruby
Manouchehri has joined #ruby
braxas has joined #ruby
mange has quit [Remote host closed the connection]
marahin has joined #ruby
graemefawcett has joined #ruby
Bounga has joined #ruby
crivic_ has joined #ruby
deadmarshal_ has joined #ruby
hightower2 has quit [Ping timeout: 256 seconds]
szkl has quit [Quit: Connection closed for inactivity]
nil78 has quit [Remote host closed the connection]
nil78 has joined #ruby
hightower2 has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
nil78 has quit [Remote host closed the connection]
donofrio has joined #ruby
nil78 has joined #ruby
szkl has joined #ruby
nil78 has quit [Quit: Leaving...]
desnudopenguino has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
_ht has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
<adam12> [0x1eef_]: That's an interesting find. I figured it called `unlink` eventually, but I guess over the years the comments haven't kept up to the implementation :P
znpy has quit [Ping timeout: 252 seconds]
znpy3 has joined #ruby
infinity_fye has joined #ruby
dhruvasagar has joined #ruby
infinityfye has quit [Ping timeout: 252 seconds]
m_antis- has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
hightower3 has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
m__antis has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #ruby
dhruvasagar has joined #ruby
<[0x1eef_]> Yeah. It's done in a very subtle way.
dhruvasagar has quit [Ping timeout: 268 seconds]
infinity_fye is now known as infinityfye
rvalue has quit [Ping timeout: 256 seconds]
user71 has joined #ruby
rvalue has joined #ruby
polishdub has quit [Ping timeout: 260 seconds]
polishdub has joined #ruby
clemens3 has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
user71 has quit [Remote host closed the connection]
user71 has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
trillion_exabyte has quit [Ping timeout: 268 seconds]
trillion_exabyte has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
<caleb> this guy had perfect timing, as I was in the middle of writing a rollbar compatible sinatra app to catch my errors because I'm cheap
<caleb> ran into a couple issues but he's already working on fixing them
<weaksauce> that's neat
dhruvasagar has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
crivic_ has quit [Quit: crivic was here]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
<[0x1eef_]> I think there's a few solutions out there like that. At least heard of other, maybe it was based on Airbrake.
<[0x1eef_]> of one other*
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
cek has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
___nick___ has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
user71 has quit [Quit: Leaving]
<adam12> caleb: I feel like Jeremy has one too, if you feel like looking.
dhruvasagar has quit [Ping timeout: 260 seconds]
<adam12> I usually send to Sentry out of lazyness but I should really just self-host.
dhruvasagar has joined #ruby
___nick___ has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 268 seconds]
_ht has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
CRISPR has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
dalan038228335 has quit [Quit: dalan038228335]
dhruvasagar has joined #ruby
dalan038228335 has joined #ruby
infinityfye has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 268 seconds]
schne1der has quit [Ping timeout: 255 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
reset has quit [Quit: reset]
mange has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
shokohsc51081294 has joined #ruby
nmollerup has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 276 seconds]
CRISPR has quit [Ping timeout: 276 seconds]