<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: malft</title><link>https://news.ycombinator.com/user?id=malft</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Tue, 20 Oct 2026 08:32:56 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=malft" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by malft in "Show HN: LLMs can generate valid JSON 100% of the time"]]></title><description><![CDATA[
<p>Regex-constrained GPT, what is a mnemonic for pi?<p>> It's a word, a short statement or phrase which you learn.<p>Can you make a good one?<p>> Man, I wish I could recommend an answer. You're not gonna remember something, because, obviously, pi's so big. Actually, let's forget pi. There's only one way: Googling for it.<p>(count the letters)</p>
]]></description><pubDate>Tue, 15 Aug 2023 06:20:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=37130812</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=37130812</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37130812</guid></item><item><title><![CDATA[New comment by malft in "My first superoptimizer"]]></title><description><![CDATA[
<p>If you are familiar with that paper, I'm a little confused by the results section. If I'm reading p01 from figure 7 correctly, the "before" is x&(x-1) and the "after" is a single instruction x&(x<<1). What am I doing wrong?<p>(The other two wins listed are "recognize the Hacker's Delight trick and replace it with the straight-forward implementation a human would write", which I like.)</p>
]]></description><pubDate>Tue, 30 May 2023 07:01:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=36121921</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=36121921</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36121921</guid></item><item><title><![CDATA[New comment by malft in "Using HDMI radio interference for high-speed data transfer"]]></title><description><![CDATA[
<p>TMDS will reduce the number of crossings, but 10110110 will still have more crossings than 0.<p>It'll be some pseudo-random mapping, not "greyscale", but it'll still be readable.<p>Look up the wikipedia page for 'ECB mode' for a nice illustration.</p>
]]></description><pubDate>Tue, 28 Feb 2023 13:18:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=34968929</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=34968929</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34968929</guid></item><item><title><![CDATA[New comment by malft in "Lenses"]]></title><description><![CDATA[
<p>The type looks a little insane, but it's just a combination of three mundane hacks that also exist in other languages.<p>The first: If you need a serializer/deserializer in a simple language like old-school Java, you can either write two methods for each class, or you can combine them into one method like this:<p>class HoveringSkull inmplements Streamable { 
String desc;
float height;
void stream(Stream c)  {
  desc = c.stream(desc);
  height = c.stream(height);
}<p>... and have two different implementations of Streamable. That's what the choice of (pro-)functor instance does -- you can swap out the implementation to get 'read' and 'write' (and 'deepClone' and 'equals' and 'hashCode' and 'defaultGui' and 'treeMatch' and ...)</p>
]]></description><pubDate>Mon, 27 Jun 2022 07:43:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=31891671</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=31891671</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31891671</guid></item><item><title><![CDATA[New comment by malft in "You don't need that CORS request"]]></title><description><![CDATA[
<p>Before you start rearchitecting your app, be sure to check if the only reason you're seeing preflights on GET is that someone added a dumb X-Requested-By header.<p>(You can even do POSTs without preflight if you use a whitelisted content-type.)</p>
]]></description><pubDate>Mon, 03 Jan 2022 06:37:00 +0000</pubDate><link>https://news.ycombinator.com/item?id=29778020</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=29778020</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29778020</guid></item><item><title><![CDATA[New comment by malft in "Microsoft_craziness.h (2018)"]]></title><description><![CDATA[
<p>'by a char or two', they said.</p>
]]></description><pubDate>Wed, 24 Nov 2021 17:39:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=29332689</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=29332689</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29332689</guid></item><item><title><![CDATA[New comment by malft in "Microsoft_craziness.h (2018)"]]></title><description><![CDATA[
<p>Pray tell, what is the size of a wchar_t on your system?</p>
]]></description><pubDate>Wed, 24 Nov 2021 17:32:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=29332597</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=29332597</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29332597</guid></item><item><title><![CDATA[New comment by malft in "Microsoft_craziness.h (2018)"]]></title><description><![CDATA[
<p>wchar_t *value = (wchar_t *)malloc(length);<p>// The documentation says that if the string for some reason was not stored with zero-termination, we need to manually terminate it. Sigh!<p>if (value[length]) { value[length+1] = 0; }</p>
]]></description><pubDate>Wed, 24 Nov 2021 15:12:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=29330711</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=29330711</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29330711</guid></item><item><title><![CDATA[New comment by malft in "The Facebook Logout – We're over Facebook"]]></title><description><![CDATA[
<p>Isn't that how fundraising works? You make people commit to "supporting your cause" with a trivial pledge, so that when you ask for actual money they can't back out without losing face.<p>"I will maybe log off at some point" sounds like maybe too weak a pledge to me, but I'm sure they've focus grouped the shit out this.</p>
]]></description><pubDate>Thu, 07 Oct 2021 15:53:00 +0000</pubDate><link>https://news.ycombinator.com/item?id=28787950</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=28787950</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28787950</guid></item><item><title><![CDATA[New comment by malft in "Functional programming is not popular because it is weird (2016)"]]></title><description><![CDATA[
<p>Java has all the security logic <i>INSIDE THE VM</i>.<p>That's the big difference.</p>
]]></description><pubDate>Tue, 14 Sep 2021 12:30:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=28523722</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=28523722</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28523722</guid></item><item><title><![CDATA[New comment by malft in "Q1K3 - An homage to Quake in 13kb of JavaScript"]]></title><description><![CDATA[
<p>"You can't compress noise." Well, humans can't tell the difference between two snippets of white noise.<p>It'll be fun. Remember jbig? (can't find the source, but iirc "most of what we're sending is text, so our fax can detect identical characters and reuse them! genius! [ten years and several bonuses later] um boss, our fax swapped a few ... 'identical' ... digits in someone's legal documents, so you have to appear in court now. also their entire scanned document archive is potentially corrupted and they may want damages")<p>I guess the 'no photos on the internet' people will have the last laugh; they won't be the ones seen criming in the background of someone else's blurry holiday photo.</p>
]]></description><pubDate>Tue, 14 Sep 2021 08:36:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=28521902</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=28521902</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28521902</guid></item><item><title><![CDATA[New comment by malft in "Lunatic is an Erlang-inspired runtime for WebAssembly"]]></title><description><![CDATA[
<p>Yes, that's the point. If you need to parse a JPEG, you spawn a VM to do so. It is allowed to use n seconds of CPU, k bytes of memory, and send a bitmap back to the caller.<p>(Sure, you <i>could</i> screw it up if the caller accepts a negative-size bitmap and corrupts <i>its</i> heap. Lets assume <i>that</i> process is written in a memory-safe language.)</p>
]]></description><pubDate>Sat, 31 Jul 2021 08:14:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=28016363</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=28016363</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28016363</guid></item><item><title><![CDATA[New comment by malft in "The P-versus-NP Page (2016)"]]></title><description><![CDATA[
<p>Why are the examples for P≟NP always so bad? "Solving TSP", "planning airlines better", "get the $1M bounty"?<p>Why not SAT? There's a $200,000 bounty paid out <i>every ten minutes</i> for solutions to a well-known SAT problem.<p>Or crypto. Math. Chess.</p>
]]></description><pubDate>Wed, 21 Jul 2021 12:16:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=27905259</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=27905259</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=27905259</guid></item><item><title><![CDATA[New comment by malft in "Neil Armstrong's reply to a Moon landing skeptic"]]></title><description><![CDATA[
<p>I assume it was flagged because unless you're already a true believer, "look! this falling building is falling according to the laws of physics" is not a very strong argument.</p>
]]></description><pubDate>Fri, 19 Jun 2020 07:22:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=23571945</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=23571945</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23571945</guid></item><item><title><![CDATA[New comment by malft in "You-Dont-Need-Lodash-Underscore"]]></title><description><![CDATA[
<p>The very first code snippet is a reimplementation of 'chunk' that is at <i>least</i> quadratic. Run away.</p>
]]></description><pubDate>Fri, 09 Aug 2019 17:32:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=20656508</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=20656508</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=20656508</guid></item><item><title><![CDATA[New comment by malft in "There is no general AI: Why Turing machines cannot pass the Turing test"]]></title><description><![CDATA[
<p>This sentence sums up the paper:<p>"Turing machines can only compute what can be modelled mathematically, and since we cannot model human dialogues mathematically, it follows that Turing machines cannot pass the Turing test."</p>
]]></description><pubDate>Sat, 15 Jun 2019 16:37:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=20190760</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=20190760</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=20190760</guid></item><item><title><![CDATA[New comment by malft in "RSA-230 has been factored"]]></title><description><![CDATA[
<p>It's very rare for something to scale sublinearly in the number of bits :-)<p>complexity(2∗∗1024)/complexity(2∗∗762) comes out to about 1500x more work.</p>
]]></description><pubDate>Thu, 23 Aug 2018 14:54:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=17827741</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=17827741</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=17827741</guid></item><item><title><![CDATA[New comment by malft in "JDK 10 Early Access Release Notes"]]></title><description><![CDATA[
<p>> The clear passwords present in jmxremote.password file will now be over-written by their SHA3-512 hash by the JMX agent<p>I must be misreading this. As far as I can tell the ability to read the new format was added in the same version. Did someone forget about forwards compatibility <i>in the jvm</i>?</p>
]]></description><pubDate>Sat, 24 Feb 2018 19:34:49 +0000</pubDate><link>https://news.ycombinator.com/item?id=16454853</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=16454853</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=16454853</guid></item><item><title><![CDATA[New comment by malft in "The root of all eval"]]></title><description><![CDATA[
<p>"It's just a normal function." No, it has magical access to the lexical scope.</p>
]]></description><pubDate>Sun, 23 Apr 2017 18:35:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=14179606</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=14179606</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14179606</guid></item><item><title><![CDATA[New comment by malft in "Images of New MacBook Pro with Magic Toolbar Leaked in MacOS Sierra 10.12.1"]]></title><description><![CDATA[
<p>Secure payments? If you hook up a display to the secure enclave, suddenly it's really expensive for malware to steal your money.<p>(Sorry, replied to the wrong comment and apparently can't delete now?)</p>
]]></description><pubDate>Tue, 25 Oct 2016 22:01:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=12792103</link><dc:creator>malft</dc:creator><comments>https://news.ycombinator.com/item?id=12792103</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=12792103</guid></item></channel></rss>