HNHacker News
TopNewBestAskShowJobs

maattdd

483 karma · joined October 21, 2015

submissionscomments
maattdd··on Fed hikes rates as inflation worries push up bond yields
How is 10% less than 5% ?
maattdd··on Qwen3.8-Max: A New Bar for Coding and Cowork
Interesting. My anecdotal experience is that it is.
maattdd··on Qwen3.8-Max: A New Bar for Coding and Cowork
DeepSeek without OpenRouter is wayyyy cheaper
maattdd··on Ask HN: Can Apple Ever Be Disrputed?
You are American aren't you ?
maattdd··on My Steam Machine is a 50ft HDMI cable
It does ?
maattdd··on Toshifumi Suzuki, founder of Seven-Eleven Japan, has died
> not because pizzerias in Berlin or Warsaw

Well kinda actually. In countries with good culinary, even basic konbini food can be better than more "serious" restaurant in bad culinary countries.

maattdd··on Japan Team Successfully Test Engine for Mach 5 Aircraft, Eyeing 2HR Trip to US
Your conclusion is really a false dichotomy. The square of something very very small (close to zero) is negligeable : thus subortibal hop (Concorde was flying at 18km altitute for example).
maattdd··on PHP will get an AOT compiler from the Swoole team in 2027
I don't know much of PHP, but reaching "Rust/Go" performance is not simply because they have AOT compiler, but because the semantic of the language itself allows efficient compilation.

Many attempts has been made for an AOT compiler for Python and Ruby, but they don't reach those performance because of this.

maattdd··on LinkedIn uses 2.4 GB RAM across two tabs
Again, this is not by definition. This is by deduction.
maattdd··on LinkedIn uses 2.4 GB RAM across two tabs
This is not what "by definition" means.
maattdd··on I built a $5.99 alternative to CleanMyMac because I was tired of paying $40/yr
What about https://github.com/tw93/mole ?
maattdd··on The new Apple begins to emerge
https://www.cpu-monkey.com/en/compare_cpu-apple_a18-vs-apple...
maattdd··on Bugs Apple loves
I'm (and millions other people) are using macOS with a classic scroll wheel mouse perfectly fine. Are you sure there is not something messing with the trackpad at the same time ? (this looking erratically random?)
maattdd··on 10x PostgreSQL performance boost on AWS RDS via ML-driven tuning
TLDR: DBtune identified and tuned key server parameters that seem to have had a large impact, including random_page_cost and max_wal_size
maattdd··on Claude Code gets native LSP support
Zed uses clangd, I don't think clangd support only 90% of C++ (and I don't think it avoid hard work).
maattdd··on Incomplete list of mistakes in the design of CSS
https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_...
maattdd··on In C++ modules globally unique module names seem to be unavoidable
export template extern still exists.
maattdd··on A polyglot's guide to multiple-dispatch (2016)
TIL that std::visit supports multiple variants. How new is that ?
maattdd··on Writing your own C++ standard library part 2
Obviously you can delete than iterate. He means delete while iterating.
maattdd··on Writing your own C++ standard library part 2
Examples of better design than abseil in a pure C++20 implementation
maattdd··on Knowing CSS is mastery to front end development
Most of CSS is indeed statically typed (property have statically typed valid values). It's not true anymore when you introduce custom properties and IACVT though.
maattdd··on Ask HN: What are you working on? (February 2025)
It is working with both Slack and Discord already.

I was not aware of f5bot, but I got inspired by another bot called Little Birdie which doesn't exist anymore and it's basically just a re-implementation of it.

maattdd··on Ask HN: What are you working on? (February 2025)
I've been updating my HN bot (watch comments for keywords and post to Slack/Discord) written in Crystal to use raw SQL instead of unmaintained ORM.

Turns out the whole app needs only ~ 10 SQL requests, and it's way funier to write modern SQL than fighting the ORM.

The new code looks like this :

    db_message = Model.save_new_message!(@conf.db, DbButler::Hn, item, DbState::Processing)
Than I have a Model module with all the interactions with the DB

    def self.save_new_message!(db, butler, external_id, state) : Message
        sql = {{ read_file "./db/save_new_message.sql" }}
        db.query_one(sql, butler.to_s.downcase, external_id, state.to_s.downcase, as: Message)
   end
(thanks to Crystal ability to read a file at compile time - I can write raw SQL in a file with syntax highlithing and maybe typesafe if I connect the DB to the editor)

The land page is not ready, but the bot has been working for me for months https://newsbutler.xyz/

maattdd··on Rust Is Eating JavaScript (2023)
You can avoid this with custom allocator in C++ for example, you don't have to actually do memory work at synchronous time (aka in destructor)
maattdd··on Stats – macOS system monitor in your menu bar
I switched from iStats to stats like 1 year ago. I found it more responsive (and free). I'm using Vetero for the weather functionality.
maattdd··on Java (JIT) vs C++ (AOT) for a simple hash table
It would be interesting to compile the C++ with PGO (it should catch up with JIT)
maattdd··on Enum class improvements for C++17, C++20 and C++23
Any reader who comment here hopefully has enough knowledge to understand the implied C++.

struct Add {} std::variant<Add, int> Expr;

OR

class Expr {} class Add : Expr {}

maattdd··on Enum class improvements for C++17, C++20 and C++23
My sum type example is exactly this (but I didn't use C++ std::variant<> syntax to not confuse the reader).

The most common example of a sum type is the "Expression problem" - please read some literature before commenting on a topic.

(Btw, it's called sum type for a reason: summation. The cardinality of the sum type is the sum of the cardinality of its variants)

maattdd··on Enum class improvements for C++17, C++20 and C++23
Inheritance (the subtyping part of it) is considered the OOP way to write sum type.

sum Expr { Int; Add(Int,Int) }

VS

class Expr { }

class Add extends Expr { Expr left; Expr right; }

maattdd··on Weaver: An ergonomic CLI parsing library for Roc lang
OCaml has polymorphic variant which are those “not found in any language” anonymous sum type
Page 1 of 5Next →