News for hackers. Stuff that matters.
Re:Rails' CookieStore isn't broken by progn on Monday October 14, 2013 @08:16AM (#6546757)
> I always assumed cryptography is slower than IO

Cryptography is a CPU-bound operation that often has specialized hardware support. Here's a rule of thumb: in modern computing, IO incurs a greater cost than pretty much anything you can do locally on-CPU. IO is incredibly expensive: cryptography, not so much. If you pipeline your crypto operations and disk fetches, you won't increase response latency at all.

Re:Rails' CookieStore isn't broken by etfb on Monday October 14, 2013 @08:27AM (#6546807)
Ruby has a reputation for slowness ([citation needed]?) so is the cryptographic stuff implemented in the language itself or via C-or-equivalent foreign library? I could understand the "too slow, must avoid" kneejerk reaction if it's all in Ruby, even if the reputation is no longer deserved. Human nature.
Re:Rails' CookieStore isn't broken by FooBarWidget on Monday October 14, 2013 @09:27AM (#6547076)
Cryptography in Ruby uses OpenSSL wrapper, so it's essentially C.