HNHacker News
TopNewBestAskShowJobs

crazypython

4,542 karma · joined July 18, 2019

submissionscomments
crazypython··on Economic idea of Offset: A credit card powered by trust between people
Here's the code: https://github.com/freedomlayer/offset
crazypython··on Branch predictor: How many “if”s are too many?
Wouldn't the compiler optimize this to an array lookup?

    static const char* countries[257];
Or even:

    static const char countrycodes[514];
    return countrycodes[i * 2];
crazypython··on Cinder: Instagram's performance-oriented fork of CPython
Python has a lot of crazy metaprogramming capabilities. Ability to inspect stacks, override import, and more...

The ones they removed are not commonly used at all.

crazypython··on 60% of school apps are sending student data with third parties without consent
I told him about part of a local school district. He politely told me, if he were a student, it would make him hate the system, even though the rules are very reasonable.
crazypython··on 60% of school apps are sending student data with third parties without consent
I asked Remind– a teacher-student communication app– to remove pings to Facebook ads, DoubleClick.net, and Google Ad Services from their site when students viewed messages. Allegedly they were being used to track the performance of ads they bought, and that the ad companies promised in their ToS not to use it for ad targeting. They were polite and removed it after 2 weeks. Last time I checked they added Twitter ads analytics again...
crazypython··on .org doesn't mean credible
".ngo" requires validation of an organization's status as a Non-Governmental organization. It is administered by the same registry as .org.
crazypython··on Ask HN: Mobile phone addiction help?
I've been using https://www.getintention.com/

It's the only "blocking app" that's been helpful. Some apps do a hard block, but that just tempts you to disable. Some apps add a delay, but it's annoying so I disable it. Instead Intention reminds you of how much time you spent, asks you how much time you want to spend, and regularly reminds you to stop. A soft block, so to speak.

crazypython··on Bitcoin Core: Bitcoin Core 0.21.1 released with Taproot activation code
A pruned node is a full node. A full node is any node that is fully validating. A pruned node is fully validating;

"Full nodes download every block and transaction and check them against Bitcoin's consensus rules." (https://en.bitcoin.it/wiki/Full_node#Archival_Nodes)

Pruned nodes do just that.

The blockchain data structure means that once verified, you don't need to store old blocks. You only need the most recent blocks to verify new ones.

The nodes you're talking about, that store the entire blockchain, is called an archival node.

Anyway, encouraging people to install full nodes, pruned or not– which enforces the rules– improves Bitcoin's decentralization.[0]

[0]: https://bitcoin.org/en/bitcoin-core/features/validation

crazypython··on Bitcoin Core: Bitcoin Core 0.21.1 released with Taproot activation code
Right now (9AM EST) a low priority txn costs $0.49, medium priority costs $0.57, and high priority costs $0.66.

Most payments– imagine hiring a contractor or buying a Starbucks gift card– don't need to go through instantly.

crazypython··on Bitcoin Core: Bitcoin Core 0.21.1 released with Taproot activation code
You only need to store the most recent blocks for security to verify new blocks. 5GB– the minimum Bitcoin Knots, a variant of Bitcoin Core, allows 3 days of blocks. A chain rewrite/51% attack is unlikely to last 3 days because of the probabilistic grantees.
crazypython··on Bitcoin Core: Bitcoin Core 0.21.1 released with Taproot activation code
How does Bitcoin "enforce new rules" without creating a hard fork?
crazypython··on Bitcoin Core: Bitcoin Core 0.21.1 released with Taproot activation code
A Bitcoin full node only takes 5GB of disk space to run, and 256MB of memory.

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

[1]: https://bitcoin.org/en/full-node

crazypython··on Tell HN: I'm Covid positive I had promised that I will inform HN
Clickable link: https://news.ycombinator.com/item?id=23463592
crazypython··on Ask HN: What are the best maintained how-to sites for Linux?
https://www.android.com/ is the most popular Linux.

I think you meant to ask the best maintained how-to sites for GNU command line utilities.

crazypython··on Piano teacher gets copyright claim for Beethoven’s Moonlight Sonata [video]
Upload to a decentralized service like PeerTube or Odysee instead.
crazypython··on Opera adds native support for blockchain domain names
Doesn't seem to support Handshake, .eth, or Namecoin.
crazypython··on *.ycombinator.com Terms of Use
Their old terms of use: "When you click on a link, our server will send you the corresponding page."

I wonder what changed and made them add the new terms of use.

[0]: http://web.archive.org/web/20141020194316/https://www.ycombi...

crazypython··on Using a disk-based Redis clone to reduce AWS S3 bill
Just use a CDN like CloudFront or Cloudflare. S3 is for storage, not retrieval. Building your own poorly distributed not at edge psuedo-CDN won't help as using a real edge CDN. Edge CDNs are closer.
crazypython··on My Current HTML Boilerplate
Note that HTML allows you to avoid quoting parameters to make them easier to type:

    <html lang=en class=no-js>
This is a feature React lacks.
crazypython··on Roku says it may lose YouTube TV app after Google made anti-competitive demands
Maybe they could use a FOSS YouTube client like Nvidious. Or even install a freedom-respecting and open source decentralized solution such as Odysee (LBRY) or PeerTube, and ask people to post there.
crazypython··on How to Learn Unix Tools
I use tldr-pages: https://github.com/tldr-pages/tldr
crazypython··on Modern C++ Won't Save Us (2019)
Dlang (https://dlang.org) avoids all these mistakes through careful language design and compiler-enforced checks.
crazypython··on [dead]
Fun fact: stallmansupport.org was created by a group of women.
crazypython··on Developers on what makes their games ‘hand-drawn’
I'd buy digital wallpaper drawn in the style of the heading image.
crazypython··on Dynamic Programming vs. Divide-and-Conquer (2018)
DP is basically brute-force but you can reuse some of the subproblems.

Another approach is trying to find a "starting point" and solving subproblems. Imagine an array of problems and starting at the left.

crazypython··on Amtrak's 2035 map has people talking about the future of U.S. train travel
I hope Amtrak is capable of using these funds in a non-corrupt way.
crazypython··on Do you hate the Google's Chrome shortened address bar?
Yes.
crazypython··on Why Lichess will always be free
People often forget the freedom to modify or hire someone to modify for you is an important part of open source.
crazypython··on Ask HN: Are there any good job sites focused on tiny freelance dev task
I was looking for people to do small atomic tasks. Short frontend tasks, specifically.
crazypython··on “They introduce kernel bugs on purpose”
Trust is currency. Trust is an asset.
← PreviousPage 6 of 23Next →