Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maattdd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
maattdd
2y ago
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; }
32.
▲
by
maattdd
2y ago
OCaml has polymorphic variant which are those “not found in any language” anonymous sum type
33.
▲
by
maattdd
3y ago
What is your experience ? China cities are noticeably less dense than other cities in Asia (Manilla, Delhi..) or even Paris
34.
▲
by
maattdd
3y ago
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?
35.
▲
by
maattdd
3y ago
Isn't Circle already a "typescript path" evolution of C++ ? https://www.circle-lang.org/
36.
▲
by
maattdd
3y ago
Crystal compiles to LLVM IR, not C
37.
▲
by
maattdd
3y ago
There is this comparison of student projects in different languages https://thume.ca/2019/04/29/comparing-compilers-in-rust-hask...
38.
▲
by
maattdd
3y ago
I don't think you've understood my comment.
39.
▲
by
maattdd
3y ago
Do you know a syncing tool which would work with a VeraCrypt image? (rsync algo doesn't for example)
40.
▲
by
maattdd
3y ago
VeraCrypt is good but it doesn't work well with syncing, because changing any bit of the disk image invalidate the whole disk hash. Cryptomator works a bit differently (it changes the structure/names, but store the underlying encr
41.
▲
by
maattdd
3y ago
Pointers to stack sound like a recipe for disaster (all those pointers will be dangling very very soon).
42.
▲
by
maattdd
3y ago
Thank you very much for finding those proposals!
43.
▲
by
maattdd
3y ago
We don't care about the content of the node. The interesting part is how do you define the Node itself. struct Node<T> { Node<T> left; Node<T> right; }; would obviously be the best choice (what I call in the art
44.
▲
by
maattdd
3y ago
How do you create recursive data structure on the stack?
45.
▲
by
maattdd
3y ago
I consider C++ a copy-by-default language (and pointer/ref being the necessary evil which breaks this great default). In Rust, it's move by default and you need an explicit .clone() In C++, it's copy by default and you need a
46.
▲
by
maattdd
3y ago
(I'm the author of the blog post) Indeed it's exactly the same idea (and I think `value_ptr` is actually a better name than `box`). I've googled before writing the blog post and haven't found literature about this (but
47.
▲
The missing C++ smart pointer
(blog.matthieud.me)
79 points
by
maattdd
3y ago
|
98 comments
48.
▲
The missing C++ smart pointer
(blog.matthieud.me)
3 points
by
maattdd
3y ago
|
0 comments
49.
▲
by
maattdd
4y ago
Yes @nest is gone
50.
▲
by
maattdd
4y ago
Indeed, the reason is simply to keep the current look-ahead(1) for the CSS syntax. If you allow nested rules with selector list which doesn't start with a symbol, you need (in theory) an unbounded look-ahead. However, the current spec
51.
▲
by
maattdd
4y ago
Amazing work from the team! I wonder if this is actually the first mainstream language which has managed to remove its "global lock" without breaking changes ?
52.
▲
by
maattdd
4y ago
It does emulate the OS (it’s the point of running stuff in qemu ) but doesn’t translate the instructions
53.
▲
by
maattdd
4y ago
It's hard. Normally I start with a word that I know is fairly unique to the domain I'm looking for (in your case maybe "cssselector"). And what you are looking for is in the Blink third party folder.
54.
▲
by
maattdd
4y ago
Dunno about this, I did my MSc at McGill and got interviewed by Jane Street (twice).
55.
▲
by
maattdd
4y ago
You missed the 4:1 split in August 2020. If the rest of the calculation is correct, the value of those 18 millions stock would be almost 500 billions
56.
▲
by
maattdd
5y ago
They are the actual inspiration for my blog post against microservices 2 years ago ( https://blog.matthieud.me/2019/microservices-considered-harm... ). At least, they've only added 500 microservices in 2 years (no
57.
▲
by
maattdd
5y ago
Almost all web APIs can be used to fingerprint user (but Mozilla is reluctant to add new ones indeed when the ratio benefit/risk is too low). https://amiunique.org/
58.
▲
by
maattdd
5y ago
For anyone who is annoyed by the new Premium features/advertisement, I've published a fork of the last version (11.7.0): https://marketplace.visualstudio.com/items?itemName=maattdd....
59.
▲
by
maattdd
5y ago
In Rust: https://github.com/launchbadge/sqlx In Haskell: https://hackage.haskell.org/package/esqueleto Either it analyzes the given SQL to determine the in/out types of each SQL query, or it
60.
▲
by
maattdd
5y ago
I would have hoped for a typesafe (compile-time checked) template engine for something dubbed "Modern C++".
More ›