It does ?
HN user
maattdd
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.
What about https://github.com/tw93/mole ?
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
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 {}
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)
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; }
OCaml has polymorphic variant which are those “not found in any language” anonymous sum type
What is your experience ? China cities are noticeably less dense than other cities in Asia (Manilla, Delhi..) or even Paris
The title of the article has changed to make it clearer than it only concerns the GTK and WPE ports.
"WebKitGTK and WPEWebKit Switching to Skia for 2D Graphics Rendering"
Can we update the title here also?
Isn't Circle already a "typescript path" evolution of C++ ?
Crystal compiles to LLVM IR, not C