Better HN
topnewbestaskshowjobs
Log inSign up

maattdd

487 karma · joined Oct 21, 2015 (11y ago) · 133 submissions

Submissions

comment 1w ago · link · parent

Amazon does it in France at least.

comment 1w ago · link · parent

Can you show it with price tracker ?

I've randomly sampled ~ 10 items I'm interested in, and they don't show any price update around October. But they got -20% today.

comment 3w ago · link · parent

Of course.

comment 2mo ago · link · parent

How is 10% less than 5% ?

comment 3mo ago · link · parent

There are a lot of Aldi in France (also Lidl, also Action (Netherlands)...) Not sure of your point.

comment 3mo ago · link · parent

Interesting. My anecdotal experience is that it is.

comment 3mo ago · link · parent

DeepSeek without OpenRouter is wayyyy cheaper

comment 3mo ago · link · parent

You are American aren't you ?

comment 5mo ago · link · parent

It does ?

comment 6mo ago · link · parent

> 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.

comment 6mo ago · link · parent

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).

comment 7mo ago · link · parent

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.

comment 7mo ago · link · parent

Again, this is not by definition. This is by deduction.

comment 7mo ago · link · parent

This is not what "by definition" means.

comment 8mo ago · link · parent

What about https://github.com/tw93/mole ?

comment 8mo ago · link · parent

https://www.cpu-monkey.com/en/compare_cpu-apple_a18-vs-apple...

comment 10mo ago · link · parent

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?)

comment 10mo ago · link · parent

TLDR: DBtune identified and tuned key server parameters that seem to have had a large impact, including random_page_cost and max_wal_size

comment 11mo ago · link · parent

Zed uses clangd, I don't think clangd support only 90% of C++ (and I don't think it avoid hard work).

comment 11mo ago · link · parent

https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_...

comment 1y ago · link · parent

export template extern still exists.

comment 1y ago · link · parent

TIL that std::visit supports multiple variants. How new is that ?

comment 1y ago · link · parent

Obviously you can delete than iterate. He means delete while iterating.

comment 1y ago · link · parent

Examples of better design than abseil in a pure C++20 implementation

25.

Show HN: A Discord/Slack bot to watch HN comments(newsbutler.xyz ↗)

5 points · by maattdd · 1y ago · discuss

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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/

comment 1y ago · link · parent

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)
12345