maattdd
maattdd on Hacker News
How is 10% less than 5% ?
There are a lot of Aldi in France (also Lidl, also Action (Netherlands)...)
Not sure of your point.
Interesting. My anecdotal experience is that it is.
DeepSeek without OpenRouter is wayyyy cheaper
You are American aren't you ?
> 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.
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).
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.
Again, this is not by definition. This is by deduction.
This is not what "by definition" means.
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?)
TLDR: DBtune identified and tuned key server parameters that seem to have had a large impact, including random_page_cost and max_wal_size
Zed uses clangd, I don't think clangd support only 90% of C++ (and I don't think it avoid hard work).
export template
extern still exists.
TIL that std::visit supports multiple variants. How new is that ?
Obviously you can delete than iterate. He means delete while iterating.
Examples of better design than abseil in a pure C++20 implementation
Posted by
maattdd on Friday March 21, 2025 @11:51AM
from the show-hn dept.
https://newsbutler.xyz/
Some years ago, I discovered a bot called Little Birdie to watch HN comments for keywords and post a link to Slack. Unfortunately, it has disappeared and I've found myself missing this.So this bot is a re-implementation of it, but now also supporting Discord.It's very easy to use:
1. install the bot on your workspace/guild
2. /keywords add rust,hn,foobar (for Discord) ; @newsbutler add...
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.
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.
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/
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)
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.
It would be interesting to compile the C++ with PGO (it should catch up with JIT)
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 {}