<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: sonthonax</title><link>https://news.ycombinator.com/user?id=sonthonax</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sat, 28 Nov 2026 09:19:30 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=sonthonax" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[Show HN: DemandMap – Memory Mapping S3 into Polars on macOS Without FUSE]]></title><description><![CDATA[
<p>Basically this exists to solve one of my biggest pain-points with dataframe libraries and big data. It's basically impossible to lazily download data on S3 with polars unless you're processing it strictly sequentially, and even then, it won't work with arrow and numpy data.<p>This allows you to "download" a multi-gigabyte file on S3 into a Polars DataFrame in <100ms.<p># Demo<p><pre><code>    alloc = demandmap.S3Alloc(
        "./cache.bin",
        # number of blocks
        capacity=512,
        # one megabyte block (per request chunk size)
        block_size=1048576
    )

    buf1 = alloc.get(S3_PATH)
    # Big file
    assert buf1.nbytes > 400000000
    # But this takes ~100ms
    df = pl.DataFrame([buf1])

</code></pre>
It's one of those problems that manages to be both simple and difficult.  I'd wager <5% of devs know what a memory map is (higher on HN) and I'd wager 1% of devs who know what mmap is know you can catch page faults in user-space, and yet another 1% of those devs know that it's possible to do userfaultfd in macOS with truly obscure mach_send_msg calls.<p>I'd really like to build a cross platform user faulting library covering Linux and Windows too, because nearly everyone who's touched a dataframe has had this exact problem.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48810223">https://news.ycombinator.com/item?id=48810223</a></p>
<p>Points: 2</p>
<p># Comments: 1</p>
]]></description><pubDate>Mon, 06 Jul 2026 20:40:27 +0000</pubDate><link>https://github.com/sonthonaxrk/demandmap</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=48810223</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48810223</guid></item><item><title><![CDATA[New comment by sonthonax in "SQLite is all you need for durable workflows"]]></title><description><![CDATA[
<p>The thing that people forget about databases is that they are just really complicated ways of writing to a file.<p>The crux of all these “you only need sqlite” posts isn’t that you need SQLite, it’s that your architecture only ever needed flat appendable log file to begin with.<p>Once you realise that SQLite is just an aggregated view over this log it calls into question if you needed a third party query engine at all, suddenly the whole NoSQL vs SQL debate becomes a meaningless implementation detail.<p>Server based databases aren’t special beyond the fact they’re just distributed synchronisation primitives  over files on a file system. But the utility of this is quite limited in practice, writing to a table will always require some sort of synchronisation, using SQLite vs Postgres is just a case of where you put the lock - in your own code or in a 3rd party server.</p>
]]></description><pubDate>Sun, 31 May 2026 11:52:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=48345005</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=48345005</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48345005</guid></item><item><title><![CDATA[New comment by sonthonax in "Jaguar Land Rover hack cost UK economy an estimated $2.5B"]]></title><description><![CDATA[
<p>They’re extremely temperamental vehicles because they’re not fit for purpose.<p>The original Range Rover is an upmarket agricultural vehicle, and used the same platform from 1970 until the 2000s. When you actually use them as intended, for off road farm work you realise they’re better off road than they are on road.</p>
]]></description><pubDate>Wed, 22 Oct 2025 13:32:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=45668892</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=45668892</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45668892</guid></item><item><title><![CDATA[New comment by sonthonax in "Django: One ORM to rule all databases"]]></title><description><![CDATA[
<p>You just set the alembic version yourself in the alembic.version table.  It’s not rocket science.</p>
]]></description><pubDate>Sun, 12 Oct 2025 15:25:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=45558863</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=45558863</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45558863</guid></item><item><title><![CDATA[New comment by sonthonax in "Cap'n Web: a new RPC system for browsers and web servers"]]></title><description><![CDATA[
<p>To the contrary, a simple expression language is one of those things that can easily be done in that size.</p>
]]></description><pubDate>Tue, 23 Sep 2025 07:37:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=45343936</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=45343936</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45343936</guid></item><item><title><![CDATA[New comment by sonthonax in "Thunderbird 140 “Eclipse”"]]></title><description><![CDATA[
<p>Yeah, parent comment is deeply unserious.<p>Imagine you're writing trading software, you have an algo go haywire and it machine guns the whole order book, and then you refuse to put a "max order size" outside of the algo to stop it from happening again because you can't figure out why it happened in the first place.<p>Try telling a regulator or your boss that was your reasoning.</p>
]]></description><pubDate>Thu, 10 Jul 2025 12:46:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=44520397</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=44520397</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44520397</guid></item><item><title><![CDATA[New comment by sonthonax in "Why do transit agencies keep falling for the hydrogen bus myth?"]]></title><description><![CDATA[
<p>Just not true. Lots of oil companies have a vested interest in renewables now. A lot of the infrastructure for offshore oil is being redeployed for offshore wind.</p>
]]></description><pubDate>Sun, 16 Mar 2025 08:59:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=43377731</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=43377731</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43377731</guid></item><item><title><![CDATA[New comment by sonthonax in "New York Times Tech Guild goes on strike"]]></title><description><![CDATA[
<p>600 people on a median 200k salary in New York, when including taxes and obligatory benefits is about $150 million dollars a year just in payroll.  This is an enormous spend.  Unlike a game studio or a software company like Adobe, these people are all operational cost centres, they're not the bread and butter of the firm.<p>In a true software firm, more capital invested in headcount loosely means more features which is what drives sales.  Here you can attribute a per employee profitability.  When you hire more employees at a tech firm, the expectation is that you become more profitable.<p>At a non-tech company like a newspaper, technologists are a cost centre, you invest in technology in order to be more efficient, and hire as few people as possible.<p>Of course some technologists at the NYT will be profit centres. like those who work on advertising operations and games.  But the NYT at its core is a news firm, it makes money on its influence and prestige which is driven by its journalism.  Writers and content creators are the profit centres, everything else is a cost of doing business.</p>
]]></description><pubDate>Mon, 04 Nov 2024 21:47:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=42046309</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=42046309</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42046309</guid></item><item><title><![CDATA[New comment by sonthonax in "New York Times Tech Guild goes on strike"]]></title><description><![CDATA[
<p>I know they have a larger range of services, but are they 20x the breadth of services?  Think of what other companies do with 600 tech people and compare what the profitability per employee should be at an tech organisation of such a scale.</p>
]]></description><pubDate>Mon, 04 Nov 2024 18:39:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=42044693</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=42044693</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42044693</guid></item><item><title><![CDATA[New comment by sonthonax in "New York Times Tech Guild goes on strike"]]></title><description><![CDATA[
<p>They have at least 600 employees, get some perspective on just how much that is.  It's least $150 million dollars a year in technology payroll alone.  They have more technology workers than some major newspapers have in staff alone.<p>Why do you think that people on 200k should have a union? How does it benefit anyone besides people looking for sinecure jobs?<p>Unions were needed to combat the powers of corporations where you are in some ways trapped by the relationship; like miners in appalachia who had to fight cartels of mining companies who suppressed their wages; or teachers who have one state employer.<p>If you're a competent tech worker, you're at the other end of the spectrum.  So much so you're generally advised to switch jobs every few years in order to maximise your salary.  There's nothing binding you to a particular employer, particularly in New York!<p>To be honest, if you're a good technologist, you should be looking at making 400k a year in at a trading firm.  If you're working for the NYT you're doing it because you're weirdly attracted to the prestige of working there, or you're looking for a cushy job.<p>If the job is no longer as cushy as you want, have the dignity to leave and find other employment rather than trying to hold your employer hostage.</p>
]]></description><pubDate>Mon, 04 Nov 2024 18:32:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=42044604</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=42044604</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42044604</guid></item><item><title><![CDATA[New comment by sonthonax in "New York Times Tech Guild goes on strike"]]></title><description><![CDATA[
<p>If it's low for the market why choose to work at the NYT?<p>Being a tech worker isn't like being a steelworker where you're kinda screwed if the plant shuts down.  You're fully capable of moving job if you're dissatisfied.<p>> Why they have 600 people is a question for management, no?<p>It's a question for everyone at the organisation.  If you're joining a firm with a massively bloated headcount you need to think if you're going to be there in a year's time when someone in management finally gathers the political capital to slim your department down to sane levels.<p>It's certainly not a position to start bargaining even more concessions from the hand that's feeding you.</p>
]]></description><pubDate>Mon, 04 Nov 2024 17:58:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=42044229</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=42044229</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42044229</guid></item><item><title><![CDATA[New comment by sonthonax in "New York Times Tech Guild goes on strike"]]></title><description><![CDATA[
<p>The New York Times is a glorified blogging platform.  Not to long ago it was a Wordpress site.<p>I'm fully aware of how jaring it is for the median HN reader to hear this, but maintenance of a news website isn't the kind of skilled labour that commands a 250k a year paycheck anymore.</p>
]]></description><pubDate>Mon, 04 Nov 2024 17:36:44 +0000</pubDate><link>https://news.ycombinator.com/item?id=42043970</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=42043970</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42043970</guid></item><item><title><![CDATA[New comment by sonthonax in "Microsoft says EU to blame for the worst IT outage"]]></title><description><![CDATA[
<p>Linux outages and upgrade fuckups happen all the time.  The difference is that Linux isn't on a unified upgrade cycle so issues come as a trickle rather than a dulge, so the problems are usually localised to a corporation and don't make the news.<p>Also Linux fanboys will usually blame the system admin for not configuring things properly if things break: "it's not the operating system, it's <something stolen from OpenBSD>".<p>End of the day Linux is only popular because of the inertia UNIX had on mini-computers/servers.  For standard end users GNU Linux is lightyears behind Windows and macOS in terms of usability and stability.</p>
]]></description><pubDate>Tue, 23 Jul 2024 18:43:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=41049397</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=41049397</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41049397</guid></item><item><title><![CDATA[New comment by sonthonax in "Python toolkit for quantitative finance"]]></title><description><![CDATA[
<p>Surely you've worked with other traders who get confused by import statements.  Whole point of this file is to provide a common interface for common math operations that might be exposed by either plain python or pandas/numpy functions.<p>You're obviously not the target market if you're able to review good and bad code.</p>
]]></description><pubDate>Sat, 29 Jun 2024 20:56:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=40833297</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=40833297</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40833297</guid></item><item><title><![CDATA[New comment by sonthonax in "Enhancing New York Times Web Performance with React 18"]]></title><description><![CDATA[
<p>Wait until you learn that they believe they need Kafka.  Their engineers are probably bitter they work at a media company and not a FAANG.<p><a href="https://www.confluent.io/en-gb/blog/publishing-apache-kafka-new-york-times/" rel="nofollow">https://www.confluent.io/en-gb/blog/publishing-apache-kafka-...</a><p>> The Monolog is our new source of truth for published content. Every system that creates content, when it’s ready to be published, will write it to the Monolog, where it is appended to the end.<p>> The Monolog contains every asset published since 1851. They are totally ordered according to publication time. This means that a consumer can pick the point in time when it wants to start consuming. Consumers that need all of the content can start at the beginning of time (i.e., in 1851), other consumers may want only future updates, or at some time in-between.<p>> As an example, we have a service that provides lists of content — all assets published by specific authors, everything that should go on the science section, etc. This service starts consuming the Monolog at the beginning of time, and builds up its internal representation of these lists, ready to serve on request. We have another service that just provides a list of the latest published assets. This service does not need its own permanent store: instead it just goes a few hours back in time on the log when it starts up, and begins consuming there, while maintaining a list in memory.<p>Absolutely insane.  The only reason this works is that the NYT publishes less than 300 articles per day so you can get away with doing un-indexed full table scans of your entire database.  But the engineers can put "I created a log based time-series architecture on their resumes".</p>
]]></description><pubDate>Sat, 29 Jun 2024 20:53:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=40833280</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=40833280</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40833280</guid></item><item><title><![CDATA[New comment by sonthonax in "Ask HN: Is KDB a sane choice for a datalake in 2024?"]]></title><description><![CDATA[
<p>Thanks for the thorough response.<p>But firstly:<p>> If your firm has had KDB for ages there's a good chance it's big enough to be signed up to one of the research groups who maintain a set of test-suites they will run over a vendor's latest hardware offering, letting them claim the crown for the fastest Greeks or something. If your firm is a member you may be able to access the test-suites and look at how the data in the options tests is being written and read, and there are quite a few, I think.<p>Unfortunately my firm isn't that big ~150 in total and maybe about ~40 developers, if which there are 2 full time KDB devs who's job is mostly maintaining the ingestion and writing some quite basic functions like `as_of`.  There's only two people who work on our options desk as developers, so there's a lack of resourcing for KDB.  When I have these issues with KDB around performance, it's quite hard to get support within my firm from the two KDB devs (one of which is very junior).<p>> I've never worked on options data and so can't opine on the problems it presents<p>The thing about options data is that it's generally lower frequency but a lot more complex.  If spot data is 1 dimensional, and futures data is 2 dimensional, options are 3 dimensional.  You also have a lot more parameterizations which leads me to the second point :)<p>> you may not want to load data out of KDB a day at a time. Try to do the processing in KDB<p>Just to give you a very specific example of the processing I need to do.  I have a data structure in KDB like this (sort of typescript notation):<p><pre><code>     row = mapping<datetime, { a: number, b: number, mu: number: sigma: number, rho: number}>
</code></pre>
This is vol surface. To convert that into volatility requires:<p><pre><code>    f = log_moneyness - m;
    total_var = a + b * (rho * f + (f * f + sigma * sigma).sqrt())
    vol = total_var / time
</code></pre>
Then in order to calculate the log_moneyness I need to calculate the forward price from an interest rate which is slightly more trivial.<p>Now I have a base in which I can start generating data like the delta, but this also requires a lot of math.<p>I was pulling this stuff out of KDB because I already had my code in rust that does all of this.<p>> You said you're scared to do queries that return a lot of data, and that it often freezes. Are you sure the problem is at the KDB end?<p>Yeah, I'm pretty sure in my case.  We have some functions designed for getting data written by the KDB guys.  Even for functions that return 30 something rows, like an as_of query it takes ~10s.</p>
]]></description><pubDate>Mon, 10 Jun 2024 08:23:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=40631359</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=40631359</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40631359</guid></item><item><title><![CDATA[New comment by sonthonax in "Ask HN: Is KDB a sane choice for a datalake in 2024?"]]></title><description><![CDATA[
<p>What did you do for your backtesting testing?</p>
]]></description><pubDate>Mon, 10 Jun 2024 07:52:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=40631215</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=40631215</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40631215</guid></item><item><title><![CDATA[New comment by sonthonax in "Ask HN: Is KDB a sane choice for a datalake in 2024?"]]></title><description><![CDATA[
<p>> Loading your rust code into your existing KDB data lake and periodically updating it will be a significantly smaller lift than rewriting your data lake.<p>This is probably going to be what I do until KDB creaks over.<p>> You sound very set on some sort of rewrite<p>I vacillate between the two things.  I'm personally used to data engineering with parquet and spark, which are widely used outside of finance, and don't have expensive vendor lock in.<p>And then I realise that I'd have to own this stuff, and my job isn't a data engineer, and I'm a quant dev.</p>
]]></description><pubDate>Sun, 09 Jun 2024 19:28:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=40626856</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=40626856</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40626856</guid></item><item><title><![CDATA[New comment by sonthonax in "Ask HN: Is KDB a sane choice for a datalake in 2024?"]]></title><description><![CDATA[
<p>So I’ve actually contributed to this project.<p>My concern with adding custom libraries into KDB, while better than writing duplicative Q code is the maintenance nightmare of keeping them up to date in KDB.<p>It’s still an investment but I need to be aware of of the risks and downsides.</p>
]]></description><pubDate>Sun, 09 Jun 2024 19:08:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=40626713</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=40626713</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40626713</guid></item><item><title><![CDATA[New comment by sonthonax in "Ask HN: Is KDB a sane choice for a datalake in 2024?"]]></title><description><![CDATA[
<p>If it’s partitioned this should be even faster.</p>
]]></description><pubDate>Sun, 09 Jun 2024 19:00:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=40626657</link><dc:creator>sonthonax</dc:creator><comments>https://news.ycombinator.com/item?id=40626657</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40626657</guid></item></channel></rss>