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…]
<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)
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]