<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: mikeayles</title><link>https://news.ycombinator.com/user?id=mikeayles</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Mon, 13 Apr 2026 19:05:00 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=mikeayles" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by mikeayles in "Open source CAD in the browser (Solvespace)"]]></title><description><![CDATA[
<p>you may find this useful: <a href="https://phaestus.app/blog/blog0031" rel="nofollow">https://phaestus.app/blog/blog0031</a><p>Edit: Forgot I also got doom running in openscad: <a href="https://www.mikeayles.com/blog/openscad-doom/" rel="nofollow">https://www.mikeayles.com/blog/openscad-doom/</a><p>and doom running in openscad in the browser at <a href="https://doom.mikeayles.com/" rel="nofollow">https://doom.mikeayles.com/</a></p>
]]></description><pubDate>Tue, 31 Mar 2026 15:07:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=47588469</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47588469</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47588469</guid></item><item><title><![CDATA[New comment by mikeayles in "Does RAG Help AI Coding Tools?"]]></title><description><![CDATA[
<p>I benchmarked Claude Code and GitHub Copilot on the same model (Haiku 4.5) with and without RAG-powered semantic search across 60 queries on a real codebase.<p>RAG didn't make search more accurate on Claude Code, but it cut token consumption by 28%. On Copilot, it cut time to resolution by 44% and improved F1 by 19.5%.<p>The bigger finding: controlling for model, tool design alone accounts for a 30pp recall gap between the two tools. Benchmark code and data are open source.</p>
]]></description><pubDate>Tue, 31 Mar 2026 09:07:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=47584605</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47584605</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47584605</guid></item><item><title><![CDATA[Does RAG Help AI Coding Tools?]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.mikeayles.com/blog/rag-coding-tools/">https://www.mikeayles.com/blog/rag-coding-tools/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47584604">https://news.ycombinator.com/item?id=47584604</a></p>
<p>Points: 2</p>
<p># Comments: 1</p>
]]></description><pubDate>Tue, 31 Mar 2026 09:07:46 +0000</pubDate><link>https://www.mikeayles.com/blog/rag-coding-tools/</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47584604</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47584604</guid></item><item><title><![CDATA[Show HN: I reproduced the CL1 DOOM demo in 132 parameters]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.mikeayles.com/blog/its-just-weights/">https://www.mikeayles.com/blog/its-just-weights/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47326437">https://news.ycombinator.com/item?id=47326437</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 10 Mar 2026 17:41:36 +0000</pubDate><link>https://www.mikeayles.com/blog/its-just-weights/</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47326437</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47326437</guid></item><item><title><![CDATA[New comment by mikeayles in "Ask HN: What Are You Working On? (March 2026)"]]></title><description><![CDATA[
<p>Rewriting the backend Bitwise Cloud, my semantic search for embedded systems docs Claude Code plugin from Python to Go.<p>The problem was the ML dependencies. The backend uses BGE-small-en-v1.5 for embeddings and FAISS for vector search. Both are C++/Python. Using them from Go means CGO, which means a C toolchain in your build, platform-specific binaries, and the end of go get && go build.<p>So I wrote both from scratch in pure Go.<p>goformer (<a href="https://www.mikeayles.com/blog/goformer/" rel="nofollow">https://www.mikeayles.com/blog/goformer/</a>) loads HuggingFace safetensors directly and runs BERT inference. No ONNX export step, no Python in the build pipeline. It produces embeddings that match the Python reference to cosine similarity > 0.9999. It's 10-50x slower than ONNX Runtime, but for my workload (embed one short query at search time, batch ingest at deploy time) 154ms per embedding is noise.<p>goformersearch (<a href="https://www.mikeayles.com/blog/goformersearch/" rel="nofollow">https://www.mikeayles.com/blog/goformersearch/</a>) is the vector index. Brute-force and HNSW, same interface, swap with one line. I couldn't justify pulling in FAISS for the index sizes I'm dealing with (10k-50k vectors), and the pure Go HNSW searches in under 0.5ms at 50k vectors. Had to settle for HNSW over FAISS's IVF-PQ, but at this scale the recall tradeoff is fine.<p>The interesting bit was finding the crossover point where HNSW beats brute-force. At 384 dimensions it's around 2,400 vectors. Below that, just scan everything, the graph overhead isn't worth it. I wrote it up with benchmarks against FAISS for reference.<p>Together they're a zero-dependency semantic search stack. go get both libraries, download a model from HuggingFace, and you have embedding generation + vector search in a single static binary. No Python, no Docker, no CGO.<p>Is it better than ONNX/FAISS? Heck no. I just did it because I wanted to try out Go.<p>goformer: <a href="https://github.com/MichaelAyles/goformer" rel="nofollow">https://github.com/MichaelAyles/goformer</a><p>goformersearch: <a href="https://github.com/MichaelAyles/goformersearch" rel="nofollow">https://github.com/MichaelAyles/goformersearch</a></p>
]]></description><pubDate>Mon, 09 Mar 2026 09:14:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=47306582</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47306582</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47306582</guid></item><item><title><![CDATA[New comment by mikeayles in "The Physics and Economics of Moving 44 Tonnes at 56mph"]]></title><description><![CDATA[
<p>Fantastic comment, thanks! A review of the state of BEV's was actually going to be one of my next articles (hopefully after the additives).<p>Are you happy for me to drop you an email to review a draft when I'm ready?</p>
]]></description><pubDate>Thu, 26 Feb 2026 14:46:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=47166836</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47166836</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47166836</guid></item><item><title><![CDATA[New comment by mikeayles in "The Physics and Economics of Moving 44 Tonnes at 56mph"]]></title><description><![CDATA[
<p>I do now: <a href="https://www.mikeayles.com/rss.xml" rel="nofollow">https://www.mikeayles.com/rss.xml</a></p>
]]></description><pubDate>Thu, 26 Feb 2026 13:45:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=47166006</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47166006</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47166006</guid></item><item><title><![CDATA[New comment by mikeayles in "The Physics and Economics of Moving 44 Tonnes at 56mph"]]></title><description><![CDATA[
<p>Good spot, and gruez is right about the caption too (fixed both, thanks).<p>The car's L/hr figure was wrong. At 45 mpg (imperial) and 70 mph cruise, a car burns ~7 L/hr, not 3. That makes the flow rate ratio ~4x, which is consistent with 5x per mile and the truck travelling 20% slower.<p>The ~3 L/hr I originally had is what you'd see as an average over a mixed driving cycle — ~30 mph mean across urban, suburban, and motorway. I was carelessly mixing the cars combined-cycle flow rate with the truck's cruise-only figure in the same row.<p>The truck doesn't have this problem because a long-haul artic genuinely spends most of its operating hours in that narrow 50-60 mph cruise band. "Average fuel burn rate" and "fuel burn rate at cruise" are nearly the same number. For a car they're very different, transient acceleration, idling in traffic, and low-speed urban driving all drag the average flow rate  down well below the motorway figure.</p>
]]></description><pubDate>Thu, 26 Feb 2026 13:17:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=47165657</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47165657</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47165657</guid></item><item><title><![CDATA[New comment by mikeayles in "The Physics and Economics of Moving 44 Tonnes at 56mph"]]></title><description><![CDATA[
<p>Probably the first thing to consider is the trucks have their speed calibrated periodically to ensure the accuracy of their tachographs (in the UK at least) so a truck doing 90kmph may show as 100kmph+ in a passenger car, I know my Volvo is 7% out, and my Seat is closer to 10% out.<p>That said, depending on the truck, there's fuses you can pull, ECU remaps and even for the older trucks with the magnetic sensor in the gearbox, the trick is/was to stick a magnet on the sensor (with a bit of string, so you can pull it off remotely if you get pulled over). All of these methods are becoming less feasible, as things like the aggregate wheel speed sensors used for ABS get used, you can't just fool one thing now.<p>As for the weight limit problem, that's a whole other rabbit hole!</p>
]]></description><pubDate>Thu, 26 Feb 2026 13:03:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=47165492</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47165492</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47165492</guid></item><item><title><![CDATA[New comment by mikeayles in "The Physics and Economics of Moving 44 Tonnes at 56mph"]]></title><description><![CDATA[
<p>Sorry, got mixed up there, will amend, the 60 is for +3.5t!<p>Edit: Nope, despite the vehicles only being able to propel themselves to 90kmph, the speed limit is indeed 60mph (in England and Wales, Scotland is a more sensible 56mph)<p><a href="https://www.gov.uk/speed-limits" rel="nofollow">https://www.gov.uk/speed-limits</a></p>
]]></description><pubDate>Thu, 26 Feb 2026 12:45:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=47165311</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47165311</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47165311</guid></item><item><title><![CDATA[New comment by mikeayles in "The Hydrogen Truck Problem Isn't the Truck"]]></title><description><![CDATA[
<p>I have done a deep dive here: <a href="https://www.mikeayles.com/blog/on-vehicle-hydrogen-generation/" rel="nofollow">https://www.mikeayles.com/blog/on-vehicle-hydrogen-generatio...</a><p>Short answer, it takes more energy to generate than the energy it produces.<p>You can do things like only producing electrical power from the alternator when decelerating, ensuring no load comes off the engine, but that would require accumulation as you're not actually burning fuel then either.<p>But running the numbers on the power requirements, I reviewed one commercially available system (at 12v 14A) and calculated that the HHO they are able to produce is 0.037% by energy going into the engine vs regular fuel.<p>When presented with 0.037% of the fuel substituted, their 10-15% claim on fuel savings becomes a bit of a red flag.</p>
]]></description><pubDate>Thu, 26 Feb 2026 07:39:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=47163065</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47163065</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47163065</guid></item><item><title><![CDATA[New comment by mikeayles in "The Hydrogen Truck Problem Isn't the Truck"]]></title><description><![CDATA[
<p>Fair point that a full TCO comparison would be more complete, and it's something I'm planning to cover in a later post. But the capital cost argument actually reinforces the conclusion rather than undermining it. Hydrogen fuel cell trucks are currently 2-3x the price of diesel equivalents, roughly comparable to battery electric. The infrastructure CAPEX is dramatically higher for hydrogen (£2-5M per station vs. transformer upgrades for depot charging). And the fuel cost gap means hydrogen has higher opex too. Diesel wins today on upfront cost, yes, but hydrogen doesn't beat BEV on capital or operating costs in any current scenario I've seen. Happy to be shown numbers that say otherwise.<p>The big thing I haven't covered yet is HVO, which provides the WTT CO₂ saving at a slight fuel cost surcharge, which matters if a fleet is mandated to reduce their CO₂. The TCO assuming a £100k diesel truck and £200k lifetime fuel cost, a 10% HVO surcharge brings the TCO to £320k, versus a £250-350k BEV truck that costs maybe £80k in electricity over the same life. That's £320k with an 80-90% CO₂ reduction from a drop in fuel you can put in your existing trucks tomorrow, versus £280k for battery electric with zero tailpipe. Both of those are available now, with existing infrastructure. Hydrogen is asking you to spend £300k+ on the truck, £150k+ on fuel, and hope someone builds a station within range of your routes.</p>
]]></description><pubDate>Thu, 26 Feb 2026 07:31:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=47163006</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47163006</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47163006</guid></item><item><title><![CDATA[New comment by mikeayles in "The Hydrogen Truck Problem Isn't the Truck"]]></title><description><![CDATA[
<p>Good catches, both of them. The hydrogen pathway should include grid transmission before the electrolyser, you're right. In practice it doesn't change the overall ratio much (multiplying by 0.95 on both sides) but the diagram should be consistent.<p>The BEV cost not adjusting with the electricity slider is a bug, not a choice. I'll fix both. Thanks.</p>
]]></description><pubDate>Thu, 26 Feb 2026 07:19:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=47162947</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47162947</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47162947</guid></item><item><title><![CDATA[CO2 Is the Wrong Number: Greenhouse Gas Equivalents for Road Freight]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.mikeayles.com/blog/co2-vs-ghg-equivalents/">https://www.mikeayles.com/blog/co2-vs-ghg-equivalents/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47155514">https://news.ycombinator.com/item?id=47155514</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Wed, 25 Feb 2026 18:24:00 +0000</pubDate><link>https://www.mikeayles.com/blog/co2-vs-ghg-equivalents/</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47155514</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47155514</guid></item><item><title><![CDATA[Every Diesel Truck Has a Chemical Plant Bolted Underneath]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.mikeayles.com/blog/aftertreatment-chemistry/">https://www.mikeayles.com/blog/aftertreatment-chemistry/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47137936">https://news.ycombinator.com/item?id=47137936</a></p>
<p>Points: 4</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 24 Feb 2026 14:56:22 +0000</pubDate><link>https://www.mikeayles.com/blog/aftertreatment-chemistry/</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47137936</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47137936</guid></item><item><title><![CDATA[New comment by mikeayles in "The Hydrogen Truck Problem Isn't the Truck"]]></title><description><![CDATA[
<p>Thanks. Both good questions, and they come up a lot.<p>To be clear, I'm fully behind decarbonising freight. It's one of the hardest sectors to clean up and it needs serious attention. But hydrogen for road transport requires jumping in with both feet (due to infrastructure requirements) when there are dozens of smaller, commercially proven steps that get you equivalent results. Better route planning, driver training, aerodynamic retrofits, hybrid and battery electric for shorter routes, even just reducing empty running.<p>These aren't exciting and they don't get press releases, but they compound. The industry could cut emissions meaningfully with changes that pay for themselves today, without waiting for a national hydrogen infrastructure that doesn't exist yet.<p>On surplus offshore wind: the economics only work if you assume the electricity is genuinely surplus, meaning there's literally no other use for it. In practice, the UK grid still runs gas plants for roughly 40% of generation. Every MWh of offshore wind that goes into an electrolyser instead of displacing gas is a missed decarbonisation opportunity. "Surplus" renewable electricity is a future state, not a current one, and even when we get there, interconnectors, grid storage, and demand response will compete for those MWh. The electrolyser only makes sense after all of those higher value uses are saturated.<p>On £1.50/kg: that would genuinely change the fuel cost picture, getting you to roughly 12-15p per mile which is competitive with diesel. But the distribution problem doesn't go away at any price point. You still need compression or liquefaction, transport, and a national network of dispensing stations. The UK has 11 public hydrogen stations. Even free hydrogen doesn't help if there's nowhere to fill up. The grid is already everywhere. Adding a charger to a depot is a transformer upgrade. Adding a hydrogen station is a £2-5M civil engineering project.<p>The place where cheap green hydrogen gets really exciting is exactly the applications where you can't just plug in: steel, ammonia, seasonal storage, maritime. Those don't need a distributed national refuelling network, they need point to point bulk delivery to industrial sites and ports, which is a much more tractable logistics problem.</p>
]]></description><pubDate>Tue, 24 Feb 2026 13:34:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=47136963</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47136963</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47136963</guid></item><item><title><![CDATA[The Hydrogen Truck Problem Isn't the Truck]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.mikeayles.com/blog/hydrogen-refuelling-road-freight/">https://www.mikeayles.com/blog/hydrogen-refuelling-road-freight/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47135542">https://news.ycombinator.com/item?id=47135542</a></p>
<p>Points: 57</p>
<p># Comments: 71</p>
]]></description><pubDate>Tue, 24 Feb 2026 10:58:29 +0000</pubDate><link>https://www.mikeayles.com/blog/hydrogen-refuelling-road-freight/</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47135542</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47135542</guid></item><item><title><![CDATA[New comment by mikeayles in "The Physics and Economics of Moving 44 Tonnes at 56mph"]]></title><description><![CDATA[
<p>I was reading the NASA truck aerodynamics thread earlier and realised that commercial freight is one of those fields that touches everyone's daily life (everything you own arrived on a truck) but sits in a complete knowledge blindspot for most people.<p>I work in fleet fuel efficiency and wrote up the foundational mental model, covering why trucks weigh what they weigh, why they're all doing exactly 56mph, why diesel is so hard to replace, and why 1% fuel savings matters when you're burning 43,000 litres a year.<p>This is the first in a series, there's already a 2-part deep dive on hydrogen up as well. Tried to keep it accessible without dumbing it down.</p>
]]></description><pubDate>Mon, 23 Feb 2026 22:00:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=47129590</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47129590</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47129590</guid></item><item><title><![CDATA[The Physics and Economics of Moving 44 Tonnes at 56mph]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.mikeayles.com/blog/heavy-haulage-basics/">https://www.mikeayles.com/blog/heavy-haulage-basics/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47129589">https://news.ycombinator.com/item?id=47129589</a></p>
<p>Points: 135</p>
<p># Comments: 112</p>
]]></description><pubDate>Mon, 23 Feb 2026 22:00:58 +0000</pubDate><link>https://www.mikeayles.com/blog/heavy-haulage-basics/</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47129589</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47129589</guid></item><item><title><![CDATA[New comment by mikeayles in "A NASA Engineer Discovered a World of Semi Truck Aerodynamics by Accident"]]></title><description><![CDATA[
<p>Correct, the engines will have a peak reported torque at one particular RPM, usually quite low (maybe 900RPM off the top of my head), at higher RPM, the peak torque may only be 90% of the peak torque, but at 50% more RPM, you end up with (100 * 0.9 * 1.5)=35% more 'power' despite the torque being lower.<p>This is detailed in J1939 (canbus protocol) PGN (parameter group number) EC1 (engine configuration 1) if you fancy a rabbit hole.<p>The vertical clusters will be a combination of gearing and cruise control, exactly. At the vehicle speed limit in the top gear (usually 12) most trucks will cruise around 1200rpm (exception being the scanias with supercruise). It's likely this truck did a lot of urban driving or was in average speed zones.<p>You also get a lot of drivers (suprisingly more younger than older drivers) that are happy to set it at 53mph, get the green tick for the telemetry to try and get a bonus, but then have a really low stress drive. It creates a bigger speed differential so they can be overtaken by other trucks easier, and realistically results in 10-20mins over a 10hr shift, to some, a 10hr chilled out shift is better than 9hr40mins of pushing it.</p>
]]></description><pubDate>Mon, 23 Feb 2026 21:29:28 +0000</pubDate><link>https://news.ycombinator.com/item?id=47129139</link><dc:creator>mikeayles</dc:creator><comments>https://news.ycombinator.com/item?id=47129139</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47129139</guid></item></channel></rss>