News for hackers. Stuff that matters.
Re:T.js - A tiny templating framework in ~400 bytes by stcredzero on Monday August 13, 2012 @07:50PM (#4378729)
I wonder if it would be possible to fit an entire webserver and web framework runtime into L2 cache? (I'm thinking Lua VM or something like that.)

EDIT Xeon 3050 has 2MB of L2 cache, so the answer is probably yes!

Re:T.js - A tiny templating framework in ~400 bytes by novalis on Monday August 13, 2012 @09:53PM (#4379011)
Out of curiosity, do you get to directly place code on the L2 cache through the Lua VM ? Is that a module ? If so, what is this voodoo and where can I find it...
Re:T.js - A tiny templating framework in ~400 bytes by stcredzero on Monday August 13, 2012 @10:18PM (#4379075)
No, I'm just thinking that one could minimize cache misses a whole lot.
Re:T.js - A tiny templating framework in ~400 bytes by ars on Monday August 13, 2012 @11:52PM (#4379304)
You don't need to store the framework you are sending to clients in the CPU cache - a good network card can read the data directly from disk, or main memory and send it off, bypassing the cpu.
Re:T.js - A tiny templating framework in ~400 bytes by stcredzero on Tuesday August 14, 2012 @02:29AM (#4379679)
That's useful. I was thinking mainly of the actual server-side app server and not what would count as its payload.