<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: glangdale</title><link>https://news.ycombinator.com/user?id=glangdale</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 08 Apr 2026 10:38:33 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=glangdale" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by glangdale in "The fastest way to detect a vowel in a string"]]></title><description><![CDATA[
<p>I'm not sure what you mean here. A single cache <i>line</i> is 64B, and this table would thus occupy 4 cache lines, but typical x86 cache sizes are 32K or for more recent cores 48K. Whether consuming 1/512th or 1/768th of your level 1 cache is excessive is a value judgement, but most people wouldn't think so.</p>
]]></description><pubDate>Tue, 01 Jul 2025 08:03:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=44431685</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=44431685</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44431685</guid></item><item><title><![CDATA[New comment by glangdale in "The fastest way to detect a vowel in a string"]]></title><description><![CDATA[
<p>Yes, that's it. Vectorized SIMD annihilates this problem, a space I've been working in since 2006 and it wasn't all that new even then. A close second would be a heavily optimized (pipelined and less branchy) table or bitvector lookup. Doing anything that involves lots of control flow, like the grandparent post, will be slow as a wet week with our without bit manipulation tricks due to the inherently unpredictable nature of the branches (subject to our input).</p>
]]></description><pubDate>Sat, 14 Jun 2025 00:55:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=44273473</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=44273473</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44273473</guid></item><item><title><![CDATA[New comment by glangdale in "The fastest way to detect a vowel in a string"]]></title><description><![CDATA[
<p>To paraphrase Arthur Dent, "this must be a strange new usage of the word 'fastest' with which I am not previously familiar".<p>The fastest way to detect a vowel in a string on any reasonable architecture (Intel or AMD equipped with SIMD of some kind) is using 3-4 instructions which will process 16/32/64 (depends on SIMD length) bytes at once. Obviously access to these will require using a Python library that exposes SIMD.<p>Leaving SIMD aside, a flat byte array of size 256 will outperform a bitmap since it's always faster to look up bytes in an array than bits in a bitmap, and the size is trivial.</p>
]]></description><pubDate>Sat, 14 Jun 2025 00:20:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=44273364</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=44273364</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44273364</guid></item><item><title><![CDATA[New comment by glangdale in "Ask HN: How do you prevent the impact of social media on your children?"]]></title><description><![CDATA[
<p>Yes, we have similar metrics in NSW (Australia). Agreed on the dynamics. There are also a lot if fairly feral edutech entrepreneurs playing special interest capture here - they obviously care more about selling their dubious education novelties than any one group cares about keeping them out. So our kids' schools are littered with semi-functioning "smart whiteboards" and a host of broken edutech apps.</p>
]]></description><pubDate>Wed, 15 Jan 2025 02:22:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=42706597</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=42706597</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42706597</guid></item><item><title><![CDATA[New comment by glangdale in "Ask HN: How do you prevent the impact of social media on your children?"]]></title><description><![CDATA[
<p>100% this. Our kids were required to bring laptops to school for no particularly good reason, then allowed to zombie out on them in the library during lunch and free periods. Infuriating.</p>
]]></description><pubDate>Wed, 15 Jan 2025 00:57:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=42706077</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=42706077</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42706077</guid></item><item><title><![CDATA[New comment by glangdale in "Ask HN: How do you prevent the impact of social media on your children?"]]></title><description><![CDATA[
<p>I'm sure you are a great person and all that, but in my experience, this particular recipe has produced absolute legions of smug, arrogant people who are nowhere near as smart as they think they are. Many of these people were dangerously unprepared for a world where they weren't the smartest person in the room in a not-very-smart room.</p>
]]></description><pubDate>Wed, 15 Jan 2025 00:53:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=42706044</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=42706044</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42706044</guid></item><item><title><![CDATA[New comment by glangdale in "The Origins of Wokeness"]]></title><description><![CDATA[
<p>It's magnificently Paul Graham that he wrote some incredibly long essay called "The Origins Of Wokeness" without ever discussing, the origins of wokeness. Whatever you think about the current situation of "wokeness", the fact that pg manages to never once mention the origin of the term, going back to Marcus Garvey and Leadbelly, speaks to pg's monumental intellectual incuriosity.</p>
]]></description><pubDate>Mon, 13 Jan 2025 21:59:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=42690008</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=42690008</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42690008</guid></item><item><title><![CDATA[New comment by glangdale in "Dividing unsigned 8-bit numbers"]]></title><description><![CDATA[
<p>Not OP, but we use these tables all the time in Hyperscan (for string and character class matching) and it's a long-standing technique to use it for things like SIMD population count (obsoleted now if you have the right AVX-512 ISA, ofc).</p>
]]></description><pubDate>Sun, 22 Dec 2024 07:17:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=42484867</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=42484867</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42484867</guid></item><item><title><![CDATA[New comment by glangdale in "A (Draft) Taxonomy of SIMD Usage"]]></title><description><![CDATA[
<p>8 instructions seems very solid - guessing AND/PSHUFB for low nibble, SHIFT/AND/PSHUFB for high nibble, OR to combine plus load/store?<p>If you have AVX-512, GFNI is faster for this task, but obviously many situations where you can't use it.</p>
]]></description><pubDate>Thu, 13 Jun 2024 04:44:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=40666033</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=40666033</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40666033</guid></item><item><title><![CDATA[New comment by glangdale in "Programmers are bad at managing state (2020)"]]></title><description><![CDATA[
<p>This would be, speaking as someone who has dealt with his share of state machines, quite confusing. The uncomfortable thing about regular expression implementation as automata is either (a) non-determinism (i.e. "being in many states at once" a la Glushkov or Thompson NFAs, not "non-determinism meaning something different might happen on any given execution") or (b) state explosion (in a DFA, to represent non-determinism).<p>This has a huge impact on trying to hook actions, call-backs, etc (your "arbitrary procedure") to NFA states as you're frequently making many overlapping entries to these states, many of which go nowhere. Trying to figure out which entries correspond to which other entries isn't easy.<p>There are very stylized automata that are used in parsing that do interesting things beyond the finite automata space (like pushing things onto a stack), but they don't correspond to regex per se - instead they are generated from a grammar.</p>
]]></description><pubDate>Mon, 25 Mar 2024 09:25:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=39814163</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=39814163</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39814163</guid></item><item><title><![CDATA[New comment by glangdale in "How true is 'Speed Enforced by Aircraft' Sign? (2016)"]]></title><description><![CDATA[
<p>I always thought it was an odd turn of phrase; at most, you might have your speed detected by aircraft. "Enforced" always conjured up a picture of speed demons being strafed from above until they slowed down; maybe it's just me?</p>
]]></description><pubDate>Fri, 20 Jan 2023 15:39:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=34454513</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=34454513</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34454513</guid></item><item><title><![CDATA[New comment by glangdale in "Fast CSV Processing with SIMD"]]></title><description><![CDATA[
<p>I started to build "simdcsv" - based on similar principles to "simdjson", but succumbed to lassitude. There's still a fork kicking around.<p>Doing the CSV version of the quote convention is actually wildly easier than the JSON version, as you can just treat a record like "foo""bar",hi,1,"hatstand,teakettle" as having 'left the quotes and rentered the quotes" at the double-quote spot when you're busy looking for ','. This isn't, of course, much help for normalization, but for the bit where you're hoping to simply <i>find</i> which ',' characters are separators, it's fine to pretend that there's a gap in your "quoted stuff bitfield" that happens at the "" in "foo""bar", as of course that gap isn't going to land on a ',' anyhow. So it's much cheaper than doing a tedious shenanigan to handle some crafty user who has hit you with 100 \ characters in a row (as opposed to 99 or 101), a la JSON.<p>IMO the cost of doing the CLMUL all the time vs taking a conditional to handle the 'I have no quotes today' case is pretty low. It makes for shorter and more easily understood (in performance terms) code. I wasn't allowed to take this to extremes in simdjson - we did handle the "common case" for UTF-8 validation (although I wonder if that's a very culturally determined notion of "common case").</p>
]]></description><pubDate>Sun, 05 Dec 2021 11:31:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=29448500</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=29448500</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29448500</guid></item><item><title><![CDATA[New comment by glangdale in "Chess Grandmaster Kasparov on Mob Mentality and Groupthink"]]></title><description><![CDATA[
<p>To be clear, I don't approve of these "cancellations".<p>Public universities are not well-protected in the United States from conservatives seeking to defund programs with which they disagree. One might be well-protected against being fired directly for saying something controversial, but  if your whole department is closed, you can be gotten rid of, even with tenure.<p><a href="https://www.boisestatepublicradio.org/education/2021-04-07/lawmakers-take-aim-at-idaho-universities-diversity-programs" rel="nofollow">https://www.boisestatepublicradio.org/education/2021-04-07/l...</a><p>There's an echo chamber out there that amplifies the notion that there is some sort of epidemic of "woke cancellations" and critical race theory etc. - this is heavily emphasized by conservative media. There's plenty of ridiculous behavior by students - e.g. at Reed College - which I am aware of a massive amount of left-on-left cancellation - someone I know had their career upended by the unlimited claims of the rather stereotypically woke students there. But stupidity at places like Evergreen and Reed will beget endless think pieces and have left cancellation magnified endlessly.<p>Meanwhile, conservatives' own role in cancellation is minimized to the point of ridiculousness: so Bari Weiss can straight-facedly claim to be a fan of academic freedom.<p>There's a quieter, but considerably more effective, campaign to defund entire departments among conservatives - the model is a narrow "university as career prep". This means getting rid of the humanities and social sciences in favour of business/law/engineering/CS (good for us, I guess?).<p>In Australia, the conservative governments have been fairly unabashed in raising the cost of a humanities degree (paid for via our "HECS" scheme) in a way that seems pretty much 
Amazingly, this gets considerably less press in the echo chamber than some jackass left students acting like jackasses. I wonder why...<p>I'll agree with you that most of the noisiest and embarrassing cancellations are left-on-right or left-on-left, but this a narrow slice of "actions taken against academics", and their noisiness is not indicative of their effectiveness. Some of these cancellations are simply part of right-wing grift: schedule a talk from someone with credentials designed to enraged the "woke left" somewhere on their home turf, then enjoy the newfound credibility when you get cancelled and get to be a Free Speech Martyr.</p>
]]></description><pubDate>Fri, 19 Nov 2021 04:30:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=29273855</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=29273855</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29273855</guid></item><item><title><![CDATA[New comment by glangdale in "Chess Grandmaster Kasparov on Mob Mentality and Groupthink"]]></title><description><![CDATA[
<p>I'm not going to get into a debate about whether Cotton is an idiot with a completely ahistorical view of slavery, but I think it's intriguing that he was pushing for a federal ban on a particular bit of educational content. I got into this discussion because people were wheeling out the trope that "only lefties go after free speech", that's all.</p>
]]></description><pubDate>Fri, 19 Nov 2021 03:57:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=29273662</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=29273662</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29273662</guid></item><item><title><![CDATA[New comment by glangdale in "Chess Grandmaster Kasparov on Mob Mentality and Groupthink"]]></title><description><![CDATA[
<p>"Blog posts".<p>Your mind is going to get blown when you find out there exist whole departments at universities that <i>aren't</i> sciences, and that there's kinda of a tradition of academic scholarship that goes back centuries in the humanities.</p>
]]></description><pubDate>Fri, 19 Nov 2021 03:54:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=29273643</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=29273643</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29273643</guid></item><item><title><![CDATA[New comment by glangdale in "Chess Grandmaster Kasparov on Mob Mentality and Groupthink"]]></title><description><![CDATA[
<p>Deplatforming is not the only form of external pressure applied in the academic world. Getting entire university departments closed, for example, is considered a bit more final and effective.<p>Also, it's interesting that even the very ideological "FIRE" group (not exactly a neutral player in all this) shows roughly 60% of user-submitted cases being deplatformed "from the left", which is far from overwhelming.</p>
]]></description><pubDate>Thu, 18 Nov 2021 21:52:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=29271097</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=29271097</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29271097</guid></item><item><title><![CDATA[New comment by glangdale in "Chess Grandmaster Kasparov on Mob Mentality and Groupthink"]]></title><description><![CDATA[
<p>It's not inconsistent to want to 'badly want to help' groups that aren't on your political side. I may be a left-liberal, but working class conservatives arguing for lower taxes are in fact arguing for an arrangement that would benefit me far more than it would benefit them.</p>
]]></description><pubDate>Thu, 18 Nov 2021 21:45:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=29271030</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=29271030</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29271030</guid></item><item><title><![CDATA[New comment by glangdale in "Chess Grandmaster Kasparov on Mob Mentality and Groupthink"]]></title><description><![CDATA[
<p>Some more examples: <a href="https://www.salon.com/2021/05/01/conservatives-claim-to-hate-cancel-culture--but-its-the-heart-of-the-right-wing-agenda/" rel="nofollow">https://www.salon.com/2021/05/01/conservatives-claim-to-hate...</a><p>A right-wing think tank with strong influence on Idaho legislators produces this gem of a report:<p>'The report doesn't just call for eliminating individual courses, however. It calls for the elimination of five whole departments — Gender Studies, Sociology, Global Studies, Social Work and History — that it claims are infused with "social justice" ideology. (A sixth blacklisted department has since been added: Criminal Justice.) Eight other departments (later updated to nine) are on a watch list of sorts, judged to be "social justice in training."'</p>
]]></description><pubDate>Thu, 18 Nov 2021 20:58:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=29270434</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=29270434</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29270434</guid></item><item><title><![CDATA[New comment by glangdale in "Chess Grandmaster Kasparov on Mob Mentality and Groupthink"]]></title><description><![CDATA[
<p>Another good example (from a Nation article):<p>"Arkansas Senator Tom Cotton, in a tizzy over the discontinuation by the estate of Dr. Seuss of six lesser-known books with racist content, had the audacity to gripe via social media that “the woke mob” is trying “to erase our history and cancel anyone who disagrees.” This is the same Tom Cotton who wrote a whole legislative act aimed at banning schools from teaching the 1619 Project, the initiative exploring how the United States was indelibly shaped by slavery—or what Cotton blithely describes as “the necessary evil upon which the union was built.” Cotton is not concerned about the censoring of history; he’s just picky about what parts of history get erased. What the Arkansas senator really means when he gets prickly about preserving “our history” is making sure the mythical white-supremacist recollection of American events is the only version schoolkids can read. Along with racist Dr. Seuss books, of course."</p>
]]></description><pubDate>Thu, 18 Nov 2021 20:41:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=29270242</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=29270242</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29270242</guid></item><item><title><![CDATA[New comment by glangdale in "Chess Grandmaster Kasparov on Mob Mentality and Groupthink"]]></title><description><![CDATA[
<p>Followup: I can't Google up the studies I read on this, as all the terms I can think of are either overloaded or heavily partisan ("cancel culture"), etc. But I have a strong recollection of seeing quantitative data on number of complaints brought against academics from outside with an attempt to figure out whether this was a left/right thing and seeing a tentative conclusion that the bulk of complaints about academics are that they are "too left".<p>If this seems tendentious and unlikely, let's remember that Bari Weiss, now advocating for the University/grift that is University of Austin as a beacon of academic freedom, made her reputation attempting to get academics "cancelled" for having the wrong views on Israel.<p>There are a lot of people with a vested interest in beating the drum to claim that universities are a mess of "cancel culture", but I'd be intrigued to read some actual statistics on this, rather than heavily publicized anecdotes.<p>I tend to agree with the poster who complained this was some sort of blame-shifting ("he started it, mom!"). But the portrayal of normal academic life as being rife with endless left-wing cancel culture is a <i>project</i> being done for a reason. I don't like left-wing cancel culture either - and some of the leftiest people I know dislike it from a practical perspective (I know people personally teaching at elite institutions whose teaching has become unmanageable from constant weird student political demands). But any analysis of this that doesn't take into account the fact that universities are under pressure from the whole political spectrum is dumb.<p>It's also worth noting that "right wing cancel culture" sometimes just manifests itself by quietly shutting whole departments in favour of, say, expanding the "trade school" elements of a university. Just nuke the <i>whole</i> history department and double the size of business... obviously an apolitical act, right?</p>
]]></description><pubDate>Thu, 18 Nov 2021 20:34:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=29270150</link><dc:creator>glangdale</dc:creator><comments>https://news.ycombinator.com/item?id=29270150</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29270150</guid></item></channel></rss>