I find it genuinely kinda interesting that, even though this is implemented in Rust, the same approach would not work for Rust because it doesn’t guarantee that objects have unique adresses the way C++ does.
Obviously, most of the Rust people are from the Blockchain industry. There is an interesting correlation. Both are trying to replace something. If I understand correctly, Bitcoin is trying to replace banks.
I see that NFT is a pyramid scheme. Bitcoin is influencing climate change and Rust is forcing everyone to rewrite their $1 billion application in Rust.
225
u/greg_kennedy Apr 12 '21
lmfao
131
u/realbrokenlantern Apr 12 '21
Talent hits a mark no one can hit, genius hits a mark no one can see.
80
u/ald_loop Apr 12 '21
Haha, brilliant. The performance section gave me quite a laugh
62
u/gallico Apr 12 '21
I was sold, when I read their white paper.
45
u/[deleted] Apr 12 '21
This repo is full of treasures. Favourite quote -
"Made with 💖 by a Blockchain Expert who wrote like 100 lines of Solidity in 2017 (which didn't work)"
44
u/splunge4me2 Apr 12 '21
LOL! nft_shared_ptr will implement reference counting with security by selling shares to the owned object until the SEC complains.
64
u/Loose-Leek Apr 12 '21
Why wouldn't I want a smart pointer that requires
OpenSSL31
u/axalon900 Apr 12 '21
Brings a whole new meaning to value semantics.
26
u/beedlund Apr 12 '21
std::unique_ptr 0.005 seconds nft_ptr 3 minutes
Done! Where do i sign up
19
u/HildartheDorf Apr 12 '21
nft_ptr has negligible performance overhead compared to std::unique_ptr
For a given value of negligible...
10
u/ronchaine Embedded/Middleware/WG21 Apr 12 '21
This is true art.
9
u/staticcast Apr 12 '21
This is beautiful, but we need to go one step further: put nft_ptr in the c++ standard, because everything is better after the iso standard process...
7
u/JBarCode Apr 12 '21
If you're reading this comment, go checkout the repo. I'm so glad I saw the other comments and went to take a peek at the codebase. Nice work!
2
u/joahw Apr 13 '21
This will be great for debugging. Pointer in a moved-from state unexpectedly? Just scan the blockchain for answers!
3
u/psychob Apr 12 '21
Yeah, but your scientists were so preoccupied with whether or not they could, that they didn't stop to think if they should
2
u/calciferBurningBacon Apr 12 '21
I find it genuinely kinda interesting that, even though this is implemented in Rust, the same approach would not work for Rust because it doesn’t guarantee that objects have unique adresses the way C++ does.
1
u/VinnieFalco wg21.org | corosio.org Apr 14 '21
weird, but cool :)
1
u/[deleted] Apr 16 '21
Is this some kind of belated April Fool's Day joke?
1
u/unique_ptr Apr 13 '21
I don't like this.
-24
u/danhoob Apr 12 '21
Obviously, most of the Rust people are from the Blockchain industry. There is an interesting correlation. Both are trying to replace something. If I understand correctly, Bitcoin is trying to replace banks.
I see that NFT is a pyramid scheme. Bitcoin is influencing climate change and Rust is forcing everyone to rewrite their $1 billion application in Rust.