Better HN
topnewbestaskshowjobs
Log inSign up

crazypython

4,542 karma · joined Jul 18, 2019 (7y ago) · 1,228 submissions

Submissions

comment 5y ago · link · parent

I'm not sure I understand how this works. Can someone explain?

comment 5y ago · link · parent

Dlang is nice. It's essentially C++, but with the warts fixed. Using dpp[0], you can #include C headers into D, and use their complex macros.

[0]: https://code.dlang.org/packages/dpp

123.

Community meeting on the future of our IRC presence(fsf.org ↗)

2 points · by crazypython · 5y ago · 1 comment

comment 5y ago · link · parent

Zsh autocomplete is much slower than Bash autocomplete.

comment 5y ago · link · parent

This is misleading. Fig's completions data files are open-source, but the completion engine that runs the completions is completely proprietary.

That means you contribute free ("open source") completions to them, but the scope and type of the completions is limited by their proprietary engine.

--- YC has pinned the founder comment and made it an impossible to reply to the top-level comment.

They say the most effective forms of advertising are the ones we don't realize are ads. Well, this is an ad.

comment 5y ago · link · parent

macOS runs an older version of GPLv2 GNU Bash. The newer GPLv3 GNU Bash has much better autocomplete built-in and many useful features (like |& for unified stdout/stderr redirect). Install it like this:

    brew install bash

127.

Beyond the shouting match: what is a blockchain, really?(planet.gnu.org ↗)

2 points · by crazypython · 5y ago · discuss

comment 5y ago · link · parent

Indeed, a .pkg is just a compressed folder and a bash script.

comment 5y ago · link · parent

People should be able to control the ratio of battery degradation to charging time.

Anyone or their business who depended on the old charging speed for mission-critical functions is screwed.

comment 5y ago · link · parent

Proprietary software strikes again.

It shouldn't be radical to say that you should control the software that runs on physical devices like cars you own.

comment 5y ago · link · parent

> Blockchain is proposed for various things like, for example, land registries. They have to be kept around indefinitely long. In many countries financial institutions are required by law to keep financial transactions around for 4 years. Ans so on.

If you have a copy of the latest block and the older verified block headers, you can trustlessly verify older blocks that people give you.

> But yeah, sure, go ahead and remove all historical data "because new transaction is mathematically valid".

Archival nodes– nodes that store full history– still exist and are still needed. You can query them from a normal full node and get their blocks.

comment 5y ago · link · parent

> you need to make a consumer-friendly distribution of the node software

https://bitcoinknots.org

It's a distribution of Bitcoin Core. It needs 5GB to store enough blockchain state to fully verify everything. AFAIK Bitcoin Core also has a convenient GUI interface.

I set up a node on my computer. I didn't touch the command-line once. It has a nice GUI and built-in wallet.

comment 5y ago · link · parent

> So many reputations and projects in blockchain rest on this flawed idea that users need to run nodes.

BSV obviates the idea completely.

Any mistake the miners make, is forever.

Without this, miners could increase the money supply by indefinitely postponing the block reward.

> "He ought to find it more profitable to play by the rules" > If a group of miners wants to change the protocol, it takes another group of miners to counter it.

No one is going to mine on a chain that produces worthless coins users don't accept. Users forced miners to activate Segwit in 2017, and almost all hashpower is still with Bitcoin.

comment 5y ago · link · parent

Yes, the blockchain data structure ensures that if you verify the older transactions, the newer transactions on top of it are verified. If the old version was valid, the newer block built on top of it is too.

comment 5y ago · link · parent

Hi. Bitcoin.org contributor[0] here. You can start and run a fully validating Bitcoin node with 7GB of storage space and 128MB-256MB RAM. Download the official GUI Bitcoin software here[1]. Enable pruning to store just 7GB. This validates all blocks.

The ability to prune older blockchain data is an inherent feature of blockchain, as explained by Satoshi himself:

> Once the latest transaction in a coin is buried under enough blocks, the spent transactions before it can be discarded to save disk space. To facilitate this without breaking the block's hash, transactions are hashed in a Merkle Tree [7][2][5], with only the root included in the block's hash. Old blocks can then be compacted by stubbing off branches of the tree. The interior hashes do not need to be stored.

Only the recent several days need to be stored for security, which allows Bitcoin to run very securely with just 7GB of space.

[0]: https://github.com/bitcoin-dot-org/Bitcoin.org/pull/3624

[1]: https://bitcoincore.org/

comment 5y ago · link · parent

This is precisely what happened in 2017. Miners and exchanges unanimously supported increases Bitcoin's blocksize limit from 4MB to 8MB, in Segwit2x. However, users stopped them.

137.

Block Chain – Bitcoin Developer(developer.bitcoin.org ↗)

1 points · by crazypython · 5y ago · discuss

comment 5y ago · link · parent

> As you say, they are economic actors, so when faced with the decision of having a severe service disruption and giving in to miner demands, the choice may well be the latter. After all, why would they prefer to use a "original Bitcoin" that only has 1% of the hash rate? Because it has the original brand?

Why would anyone mine Bitcoin that merchants don't accept?

139.

[bitcoin-dev] Announcing a new standard for soft fork activation(lists.linuxfoundation.org ↗)

1 points · by crazypython · 5y ago · discuss

comment 5y ago · link · parent

The F-150 is considered a heavy-duty truck, I think the Ford brand and advertising would help

comment 5y ago · link · parent

> If they make it Open Source, Microsoft will add it to VScode and eat their lunch.

Put the code under the GPL so no one can use it to build proprietary software. Visual Studio Code contains proprietary components, so this would prevent that.

comment 5y ago · link · parent

Can you send a link? I'd like to help.

comment 5y ago · link · parent

On AWS, yes.

On Scaleway and Hetzner, there is unmetered 100Mbps bandwidth.

On Linode, Vultr, and DigitalOcean, there is a 1-month 1TB limit.

comment 5y ago · link · parent

Imagine a cloud provider has 300GB RAM. What if they plotted and let other people later download the plot?

comment 5y ago · link · parent

I accepted Bitcoin as payment for a service– I received $X at the current BTC-USD exchange rate.

comment 5y ago · link · parent

Is it possible to optimize plotting to use I/O less and RAM more? Or is it an inherent boundary of the protocol like energy use is in PoW?
1
456
41