<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: happy4crazy</title><link>https://news.ycombinator.com/user?id=happy4crazy</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Mon, 20 Jul 2026 09:32:53 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=happy4crazy" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by happy4crazy in "Turning the Puzzle Sideways: Sleep, Diet and the Brain-Gut Connection"]]></title><description><![CDATA[
<p>Interesting! I have the opposite experience. I've gone on a bunch of very low-carb diets, maybe ten at this point (not sure if they were exactly ketogenic or not), and I've enjoyed them. But every time I try low-carb, my sleep gets extremely light (I'll wake up 3 or 4 times a night), I sleep a couple hours less than normal, and I get weirdly vivid dreams. It's always the weird sleep that makes me quit the diet.</p>
]]></description><pubDate>Mon, 08 Apr 2019 13:27:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=19604941</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=19604941</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=19604941</guid></item><item><title><![CDATA[New comment by happy4crazy in "Let's remove Quaternions from every 3D Engine"]]></title><description><![CDATA[
<p>It's analogous to the real and imaginary parts of a complex number. Does it makes sense to add a real number and a purely imaginary number? Aren't they different kinds of things? Yes, and yes!</p>
]]></description><pubDate>Sat, 03 Nov 2018 12:39:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=18369913</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=18369913</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18369913</guid></item><item><title><![CDATA[New comment by happy4crazy in "A Friendly Introduction to Cross-Entropy Loss (2016)"]]></title><description><![CDATA[
<p>I personally don't find the "bits"y explanation of entropy/cross-entropy/KL etc. to be all that intuitive; as fundamental as it may be, I don't think about compression/encodings all that often. I've always preferred the "surprise" interpretation: <a href="http://charlesfrye.github.io/stats/2016/03/29/info-theory-surprise-entropy.html" rel="nofollow">http://charlesfrye.github.io/stats/2016/03/29/info-theory-su...</a><p>In short: given some event of probability p, -log p = log 1/p is its "surprise". (If p = 1, log 1/1 = 0, so zero surprise; as p -> 0, the surprise gets bigger and bigger; and the surprise for two independent events, p = p1 * p2, is the sum of their individual surprises: log 1/(p1*p2) = log 1/p1 + log 1/p2.)<p>The entropy of a distribution is its average surprise: Sum/Integral of p log 1/p.<p>KL(p || q) is your excess surprise if you think something's distribution is q but it's actually p: Sum/Integral p (log 1/q - log 1/p). The KL divergence is always non-negative because surely if you think the distribution is q but it's actually p, on average you're going to be more surprised than someone who knows it's p.</p>
]]></description><pubDate>Thu, 07 Jun 2018 13:19:02 +0000</pubDate><link>https://news.ycombinator.com/item?id=17255485</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=17255485</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=17255485</guid></item><item><title><![CDATA[New comment by happy4crazy in "Harvard Classics Book Download"]]></title><description><![CDATA[
<p>Hard to say if it's worth the effort, but I've taught myself enough French to read classics (e.g. Hugo, Déscartes, Tocqueville), and it really is an immense pleasure. I imagine I'll get a kick out of it for the rest of my life.</p>
]]></description><pubDate>Sat, 26 May 2018 18:32:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=17163573</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=17163573</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=17163573</guid></item><item><title><![CDATA[Flow cookbook (gradual typechecker for js)]]></title><description><![CDATA[
<p>Article URL: <a href="http://sitr.us/2016/12/20/flow-cookbook.html">http://sitr.us/2016/12/20/flow-cookbook.html</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=13326938">https://news.ycombinator.com/item?id=13326938</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Thu, 05 Jan 2017 13:31:03 +0000</pubDate><link>http://sitr.us/2016/12/20/flow-cookbook.html</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=13326938</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=13326938</guid></item><item><title><![CDATA[New comment by happy4crazy in "Ask HN: To those who became fluent in a second language, what did you do?"]]></title><description><![CDATA[
<p>I've been teaching myself French (from scratch) for the past two years. I read nearly as well as I do in English, and I listen well (some slangy television dialogue is still a bit tough).<p>Some things that have worked for me:<p>0. Goes without saying, but consistent effort. I've done at least a little French every day for the past two years.<p>1. Reading a lot. I started with the Harry Potters and now read for pleasure pretty much exclusively in French.<p>2. Reading on a Kindle. Instant dictionary lookup! This is such a big efficiency boost that I think that reading physical books is simply a mistake.<p>3. Listening a lot. I listen to about an hour of French podcasts/youtube channels a day.<p>4. Studying grammar. I mainly study grammar when I run into something tricky while reading, but I really do study.<p>5. Flashcards. I've only started making them in the past month or so, but yes, they really do work. I feel silly for not realizing that sooner. I highlight interesting words/expressions as I read and periodically dump them onto index cards.</p>
]]></description><pubDate>Sun, 16 Oct 2016 13:19:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=12718475</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=12718475</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=12718475</guid></item><item><title><![CDATA[New comment by happy4crazy in "How Quaternions encode rotations: derivation and sample code"]]></title><description><![CDATA[
<p>For another resource, Alan Macdonald has some nice videos that accompany his books, "Linear and Geometric Algebra" and "Vector and Geometric Calculus": <a href="https://www.youtube.com/channel/UCymE67THrWoeTABxzJm1wdg/playlists" rel="nofollow">https://www.youtube.com/channel/UCymE67THrWoeTABxzJm1wdg/pla...</a></p>
]]></description><pubDate>Wed, 07 Sep 2016 12:29:02 +0000</pubDate><link>https://news.ycombinator.com/item?id=12442777</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=12442777</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=12442777</guid></item><item><title><![CDATA[New comment by happy4crazy in "What Kind of Name Is That? How to Name Fictional Characters"]]></title><description><![CDATA[
<p>My favorite Pynchon name is Carmine "Two-Ton" Torpidini, from Vineland.</p>
]]></description><pubDate>Tue, 09 Feb 2016 20:59:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=11068704</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=11068704</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11068704</guid></item><item><title><![CDATA[New comment by happy4crazy in "Briefly on the Purpose of Functors, Applicatives and Monads"]]></title><description><![CDATA[
<p>I like to think of a functor/applicative/monad f a as being "more or less" an a.<p>For example, take a list of Strings. It's "more or less" a single string, it just hasn't made up its mind yet :) When you say fmap reverse myStrings, you're saying: yeah yeah, I know my string hasn't made up its mind yet, but just reverse it. So you reverse all the possibilities. When you say<p><pre><code>  (++) <$> myStrings <*> yourStrings
</code></pre>
you're saying: yeah yeah, I know my string hasn't made up its mind yet, and neither has your string, but just concatenate them. So you concatenate all the pairwise possibilities. The monad stuff says you can do control flow: (yeah yeah), but if my string is this long, and your string is a palindrome...<p>Promises: A Promise Int isn't an Int, but eh, it's more or less an Int. Just as you can add 1 to a regular Int, you can fmap (+1) promisedInt. Just as you can replicate 3 'a' to get "aaa", you can<p><pre><code>  replicate <$> promisedInt <*> promisedChar
</code></pre>
to promise some repetitive String. (And presumably promisedInt and promisedChar will resolve themselves in parallel!) The monad stuff: if this promised Int ends up being prime, then...<p>Parsers: A Parser Int (something that can gobble up a string and produce an Int) isn't an Int, but (in some contexts, if it's helpful) you can think of it as being more or less an Int. Saying fmap (+1) intParser says make a parser that parses whatever intParser does, and then adds 1 to the result. Doing<p><pre><code>  replicate <$> intParser <*> charParser
</code></pre>
makes a parser that tries to parse an Int, and then a Char, and then gives you a repetitive String. Monad stuff: if I parse a prime number, then...<p>Functions that take some fixed argument type, say Float. A Float -> String isn't a String, obviously, but it's more or less a String :) It's just missing a Float. If I say fmap reverse justNeedAFloatToBeAString, I'm making a new function will take a float and then reverse whatever you get by feeding it to justNeedAFloatToBeAString. If I<p><pre><code>  (++) <$> almostAString <*> almostAnotherString,
</code></pre>
I'm making a new function of type Float -> String that feeds a Float (the same Float) to both subcomputations and then concatenates their results. Monad stuff: if this almost-Int ends up being prime...<p>Functor says you can treat a single f a as more or less a single regular a. Applicative says you can treat any number of f a values as more or less any number of regular a values. Monad says you can do control flow with f a values as if they were regular a values.</p>
]]></description><pubDate>Sun, 29 Nov 2015 14:24:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=10644623</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=10644623</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=10644623</guid></item><item><title><![CDATA[New comment by happy4crazy in "How does a soccer ball swerve?"]]></title><description><![CDATA[
<p>Hakan Calhanoglu's absurd free-kick from near the half-field line has to rank up there with Roberto Carlos's: <a href="http://www.highlighthub.com/hakan-calhanoglu-scores-amazing-free-kick-against-dortmund-video/" rel="nofollow">http://www.highlighthub.com/hakan-calhanoglu-scores-amazing-...</a></p>
]]></description><pubDate>Tue, 17 Jun 2014 13:23:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=7904235</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=7904235</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=7904235</guid></item><item><title><![CDATA[Intuitionistic mathematics for physics]]></title><description><![CDATA[
<p>Article URL: <a href="http://math.andrej.com/2008/08/13/intuitionistic-mathematics-for-physics/">http://math.andrej.com/2008/08/13/intuitionistic-mathematics-for-physics/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=7805947">https://news.ycombinator.com/item?id=7805947</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 27 May 2014 18:17:02 +0000</pubDate><link>http://math.andrej.com/2008/08/13/intuitionistic-mathematics-for-physics/</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=7805947</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=7805947</guid></item><item><title><![CDATA[Smooth infinitesimal analysis]]></title><description><![CDATA[
<p>Article URL: <a href="http://en.wikipedia.org/wiki/Smooth_infinitesimal_analysis">http://en.wikipedia.org/wiki/Smooth_infinitesimal_analysis</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=7802437">https://news.ycombinator.com/item?id=7802437</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 27 May 2014 01:38:21 +0000</pubDate><link>http://en.wikipedia.org/wiki/Smooth_infinitesimal_analysis</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=7802437</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=7802437</guid></item><item><title><![CDATA[New comment by happy4crazy in "Co-routines as an alternative to state machines (2009)"]]></title><description><![CDATA[
<p>Neat, I was just wondering about this. I'm using the same idea with core.async channels in ClojureScript to parse the BitTorrent peer protocol[0], but I wasn't sure how to describe it.<p>[0] <a href="https://github.com/happy4crazy/ittybit/blob/master/src/ittybit/protocol.cljs#L93" rel="nofollow">https://github.com/happy4crazy/ittybit/blob/master/src/ittyb...</a></p>
]]></description><pubDate>Wed, 30 Apr 2014 22:29:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=7676906</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=7676906</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=7676906</guid></item><item><title><![CDATA[New comment by happy4crazy in "Group Matchmaking Startup The Dating Ring (YC W14) Launches In San Francisco"]]></title><description><![CDATA[
<p>Here's what I want: "Study Grouper". Grouper but you go do something educational, e.g. a wine class, cooking class, dance class, amateur astronomy class, painting class...</p>
]]></description><pubDate>Thu, 13 Feb 2014 23:43:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=7235572</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=7235572</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=7235572</guid></item><item><title><![CDATA[New comment by happy4crazy in "Hemingway makes your writing bold and clear"]]></title><description><![CDATA[
<p>If you'd like to read a deep investigation into writing styles, let me suggest Clear and Simple as the Truth[0]. Steven Pinker discusses the book in a fun talk on communicating science[1].<p>[0] <a href="http://classicprose.com/" rel="nofollow">http://classicprose.com/</a>
[1] <a href="http://video.mit.edu/watch/communicating-science-and-technology-in-the-21st-century-steven-pinker-12644/" rel="nofollow">http://video.mit.edu/watch/communicating-science-and-technol...</a></p>
]]></description><pubDate>Wed, 12 Feb 2014 15:20:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=7224723</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=7224723</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=7224723</guid></item><item><title><![CDATA[New comment by happy4crazy in "Clojure vs. Scala"]]></title><description><![CDATA[
<p>Can you expand on the CanBuildFrom travesty?<p>(It seems like you've got interesting things to say, but you're being a bit strident. It bums me out that Scala discussions on HN take such a heated tone.)</p>
]]></description><pubDate>Tue, 24 Dec 2013 16:31:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=6959985</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=6959985</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=6959985</guid></item><item><title><![CDATA[New comment by happy4crazy in "George Orwell: Politics and the English Language (1946)"]]></title><description><![CDATA[
<p>Pinker references the book Clear and Simple as the Truth at the end of his talk. It's one of my favorites: <a href="http://www.amazon.com/Clear-Simple-Truth-Writing-ebook/dp/B004OC00IM/" rel="nofollow">http://www.amazon.com/Clear-Simple-Truth-Writing-ebook/dp/B0...</a></p>
]]></description><pubDate>Thu, 31 Oct 2013 00:43:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=6644587</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=6644587</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=6644587</guid></item><item><title><![CDATA[New comment by happy4crazy in "A Jewel at the Heart of Quantum Physics"]]></title><description><![CDATA[
<p>I'm not remotely qualified to comment on the content, but I was very lucky to have Nima as a professor in college. He was an <i>incredibly</i> exciting lecturer--he practically glowed with intellectual energy.</p>
]]></description><pubDate>Wed, 18 Sep 2013 12:58:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=6404943</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=6404943</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=6404943</guid></item><item><title><![CDATA[New comment by happy4crazy in "The Setup: Mike Fogus"]]></title><description><![CDATA[
<p>Yes! I was just telling my coworkers how these interviews sound like they're lifted straight from American Psycho.</p>
]]></description><pubDate>Fri, 01 Mar 2013 16:07:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=5304989</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=5304989</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=5304989</guid></item><item><title><![CDATA[Ask HN: How do you get your code reviewed?]]></title><description><![CDATA[
<p>I'd like to do more code review, both as the coder being reviewed and the reviewer looking at code, with the goal being to improve my programming.<p>How do you get your code reviewed? How do you review other people's code? Do you use specific tools/sites/mailing lists/IRC channels/friends?</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=5146214">https://news.ycombinator.com/item?id=5146214</a></p>
<p>Points: 8</p>
<p># Comments: 6</p>
]]></description><pubDate>Thu, 31 Jan 2013 17:52:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=5146214</link><dc:creator>happy4crazy</dc:creator><comments>https://news.ycombinator.com/item?id=5146214</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=5146214</guid></item></channel></rss>