HNHacker News
TopNewBestAskShowJobs

maattdd

483 karma · joined October 21, 2015

submissionscomments
maattdd··on Paris preserves its mixed society by pouring billions into public housing
What is your experience ? China cities are noticeably less dense than other cities in Asia (Manilla, Delhi..) or even Paris
maattdd··on WebKit switching to Skia for 2d graphics rendering
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?

maattdd··on Cooperative C++ Evolution – Toward a TypeScript for C++
Isn't Circle already a "typescript path" evolution of C++ ?

https://www.circle-lang.org/

maattdd··on Ask HN: Who is developing a programming language that compiles to C?
Crystal compiles to LLVM IR, not C
maattdd··on Strong static typing, a hill I'm willing to die on
There is this comparison of student projects in different languages https://thume.ca/2019/04/29/comparing-compilers-in-rust-hask...
maattdd··on VeraCrypt: Free open-source disk encryption for Windows, Mac OS X, Linux
I don't think you've understood my comment.
maattdd··on VeraCrypt: Free open-source disk encryption for Windows, Mac OS X, Linux
Do you know a syncing tool which would work with a VeraCrypt image? (rsync algo doesn't for example)
maattdd··on VeraCrypt: Free open-source disk encryption for Windows, Mac OS X, Linux
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 encrypted files as files) so you can sync file by file.
maattdd··on The missing C++ smart pointer
Pointers to stack sound like a recipe for disaster (all those pointers will be dangling very very soon).
maattdd··on The missing C++ smart pointer
Thank you very much for finding those proposals!
maattdd··on The missing C++ smart pointer
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 article "raw value"). But it's not valid C++.

maattdd··on The missing C++ smart pointer
How do you create recursive data structure on the stack?
maattdd··on The missing C++ smart pointer
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 an explicit std::move()

maattdd··on The missing C++ smart pointer
(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 I was mostly googling stuff around "box" or "deep shared ptr").

Thank you for the link! Kinda glad it's more widespread than what I though actually, it means we can think about making an official proposal.

maattdd··on WebKit Supports Nested CSS
Yes @nest is gone
maattdd··on WebKit Supports Nested CSS
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 has been written in a way that it doesn't prevent removing this restriction in the future. But the CSSWG would prefer to have some real world profiling data to know the actual performance cost of removing this restriction.

maattdd··on OCaml 5.0 Multicore is out
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 ?
maattdd··on LXD containers on macOS at near-native speeds
It does emulate the OS (it’s the point of running stuff in qemu ) but doesn’t translate the instructions
maattdd··on Ask HN: How do you discover features in unknown code bases?
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.
maattdd··on What the interns have wrought, 2022 edition
Dunno about this, I did my MSc at McGill and got interviewed by Jane Street (twice).
maattdd··on Steve Jobs negotiates Apple's deal with Microsoft (1997)
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
maattdd··on How we secure Monzo's banking platform
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 (not even 1 per day, how sad!)

maattdd··on A new speed milestone for Chrome
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/
maattdd··on GitLens 12 – Visual Studio Code Online Support and Premium Features
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....
maattdd··on Go performance from version 1.2 to 1.18
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 calls the database describe feature at compile-time.

maattdd··on Inja: A Template Engine for Modern C++
I would have hoped for a typesafe (compile-time checked) template engine for something dubbed "Modern C++".
maattdd··on Go performance from version 1.2 to 1.18
Typesafe SQL, typesafe template (or just useful template, not the ones in the stdlib which sucks tremendously), model metaprogramming, etc...
maattdd··on Alphabet Announces Fourth Quarter and Fiscal Year 2021 Results
Google Cloud revenue is only up 30% YoY, which seems really low considering the marketing and the focus on it (and the growth of the competitors).
maattdd··on I'm making a Typescript type-checker in Rust
Yes, and the fanciness part is done by another crate actually: https://github.com/zesterer/ariadne.
maattdd··on Hotcaml: An OCaml interpreter with watching and reloading
It's not specifically on OCaml.
← PreviousPage 2 of 5Next →