Damus
Matt profile picture
Matt
@CodingInLondon

Former finance C++ dev writing about the merge of mining into the energy grid 🔋

Relays (12)
  • wss://nostr-relay.wlvs.space – read & write
  • wss://relay.snort.social – read & write
  • wss://nostr.bitcoiner.social – read & write
  • wss://relay.damus.io – read & write
  • wss://relay.nostr.info – read & write
  • wss://nostr-01.bolt.observer – read & write
  • wss://relayer.fiatjaf.com – read & write
  • wss://nostr1.tunnelsats.com – read & write
  • wss://atlas.nostr.land – read & write
  • wss://eden.nostr.land – read & write
  • wss://nostr-pub.wellorder.net – read & write
  • ws://100.69.75.120:4848 – read & write

Recent Notes

Matt profile picture
Maybe in a distant future…

It’s year 2060 and Bob is making a bitcoin transaction to top up his spending wallet from his savings. The wallet proposes 2 fees:

- classic: $0.04
- quantum safe: $86

Bob picks “classic”. The other option is just too expensive.

He heard about the quantum threat of course. Everyone was talking about it when he was a kid, especially when those ancient “Satoshi” coins started slowly moving 20 years ago. It made the headlines for a while then died out. At least it motivated savers to migrate to hybrid wallets, which are now the standard.

QC hacks became an accepted background risk and today he doesn’t really care. It never happened to him nor anyone he knows.

Rich folks who are paranoid about their millions being hacked mid-transaction are welcome to pay the higher fee if it makes them feel better.

Just like plane crashes or bank robberies, it's one of these things you know can happen but don’t affect your every-day life.
Matt profile picture
C++ nugget 💡: 



std::string_view (C++17)

A lightweight, non-owning reference to a string — zero allocation, zero copy.

Instead of passing const std::string&, use string_view to accept any string-like data (string, char*, literals) without copying.

Bitcoin Core uses it heavily in src/util/string.h:

❤️1
Matt profile picture
The role of the C++ compiler is not to protect your program from undefined behaviour.

On the contrary, it assumes there is no undefined behaviour and makes aggressive code optimisations as a result.
let’s talk about sats · 4w
🤣
🟠 isolabellart · 4w
Nope
Matt profile picture
C++ is a low time preference language.

Unlike Python or Javascript, it does not bring instant gratification, it is hard and you have to be patient.

However it is used in high time preference situations, precisely in low-latency environment (gaming / trading / fighter jets), where random delays are unacceptable.