开发者

Ruby - What is ppp.rb?

In this ans开发者_开发技巧wer I've read about ppp.rb. It is mentioned as "well-known", but can't find anything about it on Google.

I found it interesting and I've adapted it to build my own version of caller_binding.

But, for my knowledge, what is ppp.rb? What does "ppp" stand for? Where do I find info about it?


A search of Japanese sites via Google Translate reveals many blog posts and conversations about it. Apparently the author's page is here:

http://www.rubyist.net/~rubikitch/computer/ppp/

It appears to have been written in 2006, and not updated since. Most of the conversations are in the 2006-7 time frame.

So I'd say the OP's definition of "well-known" may be limited to Japan circa 2006-2007 :)


Excuse me for the confusion, but it was really well-known for its hack value at the time. One reason is because the original author is a core Ruby hacker - so everyone who was following major Ruby hacker blogs at that time knew about it.

The only problem was that it depended on Ruby's bug (not sure which one), so it quickly faded away once the bug was fixed. It's no wonder recent Ruby programmers never heard about it.

My version does not depend on a bug, but had problem with 1.9.[012] due to different bug in Ruby (#4347 - I think this is fixed with 1.9.3). So original worked because Ruby had a bug, and new version did not because of it :-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜