{"title":"Felix Prasanna","subtitle":"MIT student who enjoys performance engineering, compilers, and creating unconventional code","link":[{"@attributes":{"href":"https:\/\/fprasx.github.io\/atom.xml","rel":"self","type":"application\/atom+xml"}},{"@attributes":{"href":"https:\/\/fprasx.github.io"}}],"generator":"Zola","updated":"2025-02-15T00:00:00+00:00","id":"https:\/\/fprasx.github.io\/atom.xml","entry":[{"title":"18.03 Course Notes","published":"2025-02-15T00:00:00+00:00","updated":"2025-02-15T00:00:00+00:00","author":{"name":"Unknown"},"link":{"@attributes":{"rel":"alternate","href":"https:\/\/fprasx.github.io\/notes\/","type":"text\/html"}},"id":"https:\/\/fprasx.github.io\/notes\/","content":"<p>Nice LaTex notes for <a href=\"\/18.03-ase-notes.pdf\">18.03 Differential Equations (ASE)<\/a><\/p>\n"},{"title":"Encryption in 325 Characters or Less with Bennett!","published":"2024-01-23T00:00:00+00:00","updated":"2024-01-23T00:00:00+00:00","author":{"name":"Unknown"},"link":{"@attributes":{"rel":"alternate","href":"https:\/\/fprasx.github.io\/articles\/encryption-golf-with-bennett\/","type":"text\/html"}},"id":"https:\/\/fprasx.github.io\/articles\/encryption-golf-with-bennett\/","summary":"<p>What encryption scheme is this?<\/p>\n<pre data-lang=\"python\" style=\"background-color:#2b303b;color:#c0c5ce;\" class=\"language-python \"><code class=\"language-python\" data-lang=\"python\"><span style=\"color:#b48ead;\">def <\/span><span style=\"color:#8fa1b3;\">e<\/span><span>(<\/span><span style=\"color:#bf616a;\">s<\/span><span>,<\/span><span style=\"color:#bf616a;\">d<\/span><span>,<\/span><span style=\"color:#bf616a;\">r<\/span><span>=&quot;&quot;):\n<\/span><span> p=<\/span><span style=\"color:#b48ead;\">lambda <\/span><span style=\"color:#bf616a;\">j<\/span><span>,<\/span><span style=\"color:#bf616a;\">d<\/span><span>:<\/span><span style=\"color:#d08770;\">53<\/span><span>&gt;(k:=d.<\/span><span style=\"color:#bf616a;\">index<\/span><span>(j))and d[:k]+[d[k+<\/span><span style=\"color:#d08770;\">1<\/span><span>],j]+d[k+<\/span><span style=\"color:#d08770;\">2<\/span><span>:]\n<\/span><span> or[d[<\/span><span style=\"color:#d08770;\">0<\/span><span>],j]+d[<\/span><span style=\"color:#d08770;\">1<\/span><span>:k];d=<\/span><span style=\"color:#bf616a;\">p<\/span><span>(<\/span><span style=\"color:#d08770;\">54<\/span><span>,<\/span><span style=\"color:#bf616a;\">p<\/span><span>(<\/span><span style=\"color:#d08770;\">54<\/span><span>,<\/span><span style=\"color:#bf616a;\">p<\/span><span>(<\/span><span style=\"color:#d08770;\">53<\/span><span>,d)));l,h=<\/span><span style=\"color:#96b5b4;\">sorted<\/span><span>([d.<\/span><span style=\"color:#bf616a;\">index<\/span><span>(<\/span><span style=\"color:#d08770;\">53<\/span><span>)\n<\/span><span> ,d.<\/span><span style=\"color:#bf616a;\">index<\/span><span>(<\/span><span style=\"color:#d08770;\">54<\/span><span>)]) d=d[h+<\/span><span style=\"color:#d08770;\">1<\/span><span>:]+d[l:h+<\/span><span style=\"color:#d08770;\">1<\/span><span>]+d[:l];b=<\/span><span style=\"color:#96b5b4;\">min<\/span><span>(d[-<\/span><span style=\"color:#d08770;\">1<\/span><span>],<\/span><span style=\"color:#d08770;\">53<\/span><span>);d=d[b:-<\/span><span style=\"color:#d08770;\">1<\/span><span>]\n<\/span><span> +d[:b]+[d[-<\/span><span style=\"color:#d08770;\">1<\/span><span>]];o=d[<\/span><span style=\"color:#96b5b4;\">min<\/span><span>(d[<\/span><span style=\"color:#d08770;\">0<\/span><span>],<\/span><span style=\"color:#d08770;\">53<\/span><span>)];<\/span><span style=\"color:#b48ead;\">return <\/span><span>s and(<\/span><span style=\"color:#d08770;\">53<\/span><span>&gt;o and <\/span><span style=\"color:#bf616a;\">e<\/span><span>(s[<\/span><span style=\"color:#d08770;\">1<\/span><span>:],d,\n<\/span><span> r+<\/span><span style=\"color:#96b5b4;\">chr<\/span><span>(<\/span><span style=\"color:#d08770;\">97<\/span><span>+(<\/span><span style=\"color:#96b5b4;\">ord<\/span><span>(s[<\/span><span style=\"color:#d08770;\">0<\/span><span>])-<\/span><span style=\"color:#d08770;\">97<\/span><span>+o)%<\/span><span style=\"color:#d08770;\">26<\/span><span>))or <\/span><span style=\"color:#bf616a;\">e<\/span><span>(s,d,r))or r\n<\/span><span>encrypt=e\n<\/span><\/code><\/pre>\n<p>See <strong>Bennett's<\/strong> post <a href=\"https:\/\/andorlando.github.io\/static\/blogs\/golfingwithfelix\">here<\/a>!<\/p>\n"},{"title":"Doing First Grade Math in Rust's Type System","published":"2024-01-04T00:00:00+00:00","updated":"2024-01-04T00:00:00+00:00","author":{"name":"Unknown"},"link":{"@attributes":{"rel":"alternate","href":"https:\/\/fprasx.github.io\/articles\/type-system-arithmetic\/","type":"text\/html"}},"id":"https:\/\/fprasx.github.io\/articles\/type-system-arithmetic\/","summary":"<p>Arithmetic is hard. Luckily, we can fix that using Rust's Expressive Type\nSystem\u2122\ufe0f.<\/p>\n"},{"title":"About Me","published":"2024-01-01T00:00:00+00:00","updated":"2024-01-01T00:00:00+00:00","author":{"name":"Unknown"},"link":{"@attributes":{"rel":"alternate","href":"https:\/\/fprasx.github.io\/about\/","type":"text\/html"}},"id":"https:\/\/fprasx.github.io\/about\/","summary":"<p>Hello!<\/p>\n"},{"title":"Write Yourself a Concurrent Vector","published":"2022-06-01T00:00:00+00:00","updated":"2022-06-01T00:00:00+00:00","author":{"name":"Unknown"},"link":{"@attributes":{"rel":"alternate","href":"https:\/\/fprasx.github.io\/articles\/write-a-concurrent-vector\/","type":"text\/html"}},"id":"https:\/\/fprasx.github.io\/articles\/write-a-concurrent-vector\/","summary":"<p>Book detailing the process, techniques, and challenges associated with implementing\na lock-free, thread-safe vector:\n<a href=\"\/concurrent-vector-book\/index.html\">Writing a Concurrent Vector in Rust<\/a><\/p>\n"}]}