HNHacker News
TopNewBestAskShowJobs

mrich

2,292 karma · joined October 30, 2010

I work on a distributed in-memory database at SAP SE.

- Previous projects: https://richtarsky.com/docs/projects.html

- Github: https://github.com/mrichtarsky

www.productive-cpp.com

s@martinien.de

submissionscomments
mrich··on Show HN: Low-cost backup to S3 Glacier Deep Archive
Definitely not enterprise-ready code but I'd say it's solid. Please point out some specifics.
mrich··on Show HN: Low-cost backup to S3 Glacier Deep Archive
Arq does not seem to be in the same ballpark as Deep Archive with regards to pricing. Also I needed a Linux solution, they support Win/Mac only unfortunately (same as Backblaze).
mrich··on Show HN: Low-cost backup to S3 Glacier Deep Archive
This explains it pretty well:

https://blog.synology.com/data-durability

> Data durability: the ability to keep the stored data consistent, intact without the influence of bit rot, drive failures, or any form of corruption. 99.999999999% (11 nines) durability means that if you store 10 million objects, then you expect to lose an object of your data every 10,000 years.

mrich··on ErgodoxE EZ – an ergonomic keyboard with open source firmware
Moved to Ergodox EZ with highly customized Colemak layout half a year ago. The first weeks weren't easy but now it is a breeze and I can highly recommend. Much more relaxed typing and the customizing together with Karabiner and Rectangle allows me to have the same hotkeys on macOS as I have on Windows.

Kids are loving it too with the backlit keys and animations :)

mrich··on Show HN: Devbox – Easy, predictable shells and containers
When there are issues with debugging breakages of such environments, will a wrapper be sufficient? Does devbox have extra handling for such scenarios?
mrich··on Ask HN: Can I see your scripts?
System setup and scripts:

https://github.com/mrichtarsky/linux-shared

The repo name is a bit outdated, it works on macOS too. Lots of scripts are missing, will add them soon.

mrich··on Tell HN: Transfer your Google domain to other registrar before it locks you out
Hosting and domains can be two different products, and you can just switch hosting, right? All registrars I have seen allow custom DNS so this should not be an issue.
mrich··on A deepening crisis forces physicists to rethink the structure of nature’s laws
Just recently finished the Three Body trilogy and there are some interesting connections to the described dilemma in there (alien objects hindering scientific progress of mankind by messing with particle colliders, n dimensional space and weapons that destroy whole dimensionalities)
mrich··on How to speed up the Rust compiler in 2022
Recently I integrated the mold linker into a Rust project and linking of the main executable saw a speedup of 3.35x. This is pretty helpful for incremental builds where you typically edit one file and then build, so you have one compile and then the link. There is no build-job parallelism at that point so every second counts :)
mrich··on Tell HN: You are not alone this Christmas
thanks for the book, very kind of you. it is rated 4.9/5 stars in Amazon too!
mrich··on Running your own email is increasingly an artisanal choice, not a practical one
:)
mrich··on Running your own email is increasingly an artisanal choice, not a practical one
In my dealings with outlook postmaster my experience is as follows:

They ignore any argument you make or proof you show them that their servers are accepting emails and then silently dropping them. So that's basically the experience you mention.

However they will immediately unban your IP when you mention that you will recommend your customers switch away from Outlook email since it is unreliable.

That's for a totally clean IP with no spam issues.

mrich··on Ask HN: What's the best book you read in 2021?
I did enjoy this tome too :) It's amazing how many well-researched and detailed biographies of US presidents are out there. The Rise of Theodor Roosevelt is another one, only managed to read the first book. What I find interesting is how the men behind the scenes have wielded much of the power even back then.
mrich··on Ask HN: What's the best book you read in 2021?
Can also recommend. It provides a great overview of the climate change problem and all the components of the solution we have, the economics of them, and what is still missing. This gets you up to speed on what will change in your life in the future. I believe it also provides a nice insight into Bill Gates' investment portfolio, quite a few of the startups working on solutions to the climate crisis are part of it.
mrich··on Tinyssh
I think the original point still stands. When the application tries to handle memory pressure itself by writing data structures to disk, it will hit the case where the kernel has already paged that memory out, has to reload it, only to write it to disk and free the memory afterwards.
mrich··on Tinyssh
It's not malloc() but mmap() if I understand correctly.

It's a beautifully powerful function :)

https://man7.org/linux/man-pages/man2/mmap.2.html

mrich··on European alternatives for digital products
Hetzner is missing!
mrich··on Test your product on a crappy laptop
Also use https://pagespeed.web.dev/
mrich··on Libmobi: C library for handling eBook formats
I think you are exactly right and it's sad that you are getting downvoted for this. The "bright" side for coders unwilling to learn new things is that there is lots of legacy C code to maintain to last a lifetime. It's still a bit sad since Rust is just lots of fun to work with.
mrich··on Libmobi: C library for handling eBook formats
> comparing c interchangeably with c++

For the sake of the arguments made with regards to using Rust instead, they are exactly the same and comparable - both do not have memory safety, suffer from races and lots of undefined behavior. That was the whole argument. Sure, you can use only parts of C++ and use RAII to make much of that go away. But then again you can do the same in C. And nobody can enforce that everyone adheres to it.

mrich··on Libmobi: C library for handling eBook formats
You know, seeing one of the few existing Rust CVEs, which is a freak case, hard to exploit - makes me directly want to go back to the language family with the majority of the CVEs assigned. The existence of CVE itself arguably is a result of unsafe C/C++.
mrich··on Libmobi: C library for handling eBook formats
If we are starting to get snarky: There are two kinds of people who choose Rust over C++. Beginners who think C++ is too hard, and seasoned developers with years of experience working in large teams who _know_ C++ is too hard to get right.
mrich··on Libmobi: C library for handling eBook formats
It's not hard to build a library in Rust that can be consumed the same way a C library can. Orders of magnitudes easier than getting your C/C++ program safe.

https://docs.rust-embedded.org/book/interoperability/rust-wi...

mrich··on Libmobi: C library for handling eBook formats
C is a subset of C++. The key point is that both languages suffer from the same problems, e.g. memory safety issues, undefined behavior, data races.

The software industry has been dealing with the fallout of these issues for the past three decades. It's about time we moved the bar higher.

By the way, the main data structure of my first large Rust program was simply a vector of a custom struct, optimized for memory footprint. Just like in C, with the same low overhead serialization.

With C, you always have to be careful to not overrun a buffer. The recent NSS vulnerability is a great example of this:

https://googleprojectzero.blogspot.com/2021/12/this-shouldnt...

Even though this code was heavily fuzzed and tested, the problem slipped through. Not possible in Rust. Also, with Rust you can throw away all your sanitizer infrastructure and save all the associated costs.

mrich··on Libmobi: C library for handling eBook formats
I will probably get downvoted for this, but I feel writing any new libraries in C/C++ is a bit of a waste when Rust is now available. Especially for file format parsing which is prone to overflows and the like. Yes there are safe coding practices but why not just choose a better tool for the job.
mrich··on Defrag Like It's 1993
I wish ZFS had a defrag option. On a server I run that would allow me to move all the used blocks to the beginning of storage and use the rest for hypervisor level snapshots.

But I'll still take ZFS over any other file system :)

mrich··on Defrag Like It's 1993
For most file systems performance suffers at latest at the 90% full mark, if not before.
mrich··on Mold 1.0: the first stable and production-ready release of the high-speed linker
Are they using split dwarf? This avoids linking the debug info.
mrich··on Ask HN: Why have we accepted the cookie pop-up situation across the web?
Great, thank you!
mrich··on Ask HN: Why have we accepted the cookie pop-up situation across the web?
Are there any good browser extensions for dealing with these banners? (auto clicking or blocking?)

On a side note, recently I built a website and did not need cookies at all (even though you can buy stuff, but there's not shopping cart)

← PreviousPage 3 of 19Next →