HNHacker News
TopNewBestAskShowJobs

______-_-______

1,094 karma · joined January 28, 2022

submissionscomments
______-_-______··on Indirect ownership, shallow borrow and self-referential data structures in Rust
> This is also how generators and async functions actually work and where this problem often arises, so it's not a stretch to think about it like that.

There is a crate that uses async functions to accomplish exactly this. https://crates.io/crates/escher

Disclaimer, I've never actually tried using it. I've used owning_ref or ouroboros depending on what I need.

______-_-______··on Pet Airways
They're not airtight, but without ventilation, CO2 will build up.
______-_-______··on GNU Nano 6.3
Who is "we"? You might be the only person out there who types out 7 full vim commands before opening your eyes to look at what app is running
______-_-______··on So Long Surrogates: How We Moved to UTF-8 in Haskell
Windows is slowly but surely moving to UTF-8.

https://docs.microsoft.com/en-us/windows/apps/design/globali...

> As of Windows Version 1903 (May 2019 Update), you can [...] use UTF-8 as the process code page.

> Until recently, Windows has emphasized "Unicode" -W variants over -A APIs. However, recent releases have used the ANSI code page and -A APIs as a means to introduce UTF-8 support to apps.

Of course if you use this, your app will only run on very recent Windows versions. But that's how it goes with OS features. We'll start reaping the benefits 10-20 years from now.

______-_-______··on 3,200-year-old Egyptian tablet records excuses for why people missed work
I think "Brewing Beer" would be a perfectly acceptable excuse in a lot of these new hipstery startups
______-_-______··on Compile time evaluation in Nim, Zig, Rust and C++
Obviously parent is not claiming that Nim invented the concept of reference counting. They're saying that it's a recent addition to Nim, and Nim's other memory management strategies have been part of the compiler for longer.
______-_-______··on twitter/the-algorithm
That's more stars than I'll ever have on any of my repos. Maybe I made a mistake not joining a faang
______-_-______··on Why LSP?
Even longer than that. You could install Visual Studio 6 on Windows 95 and get intellisense/debugging that's quite good. A lot of newer languages still haven't caught up.
______-_-______··on Google gives Europe a ‘reject all’ button for tracking cookies
They'll gladly pay (maybe) 2 million in fines so that later they can pretend complying was extremely difficult for them. Drop in the bucket in the long run.
______-_-______··on Show HN: This AI Does Not Exist
That's pretty impressive considering the bible is only 750000 words long
______-_-______··on $34M permanently locked into AkuDreams contract forever due to bad code
At this point I just want to know why it's considered news. This site is called hacker news, after all. The sun rises in the east, another smart contract eats people's money, another shitcoin goes to zero. Here's your coffee, sir.
______-_-______··on Google’s AI-powered ‘inclusive warnings’ feature is very broken
"Motherboard" is particularly unbelievable. The motherboard runs the machine. It's a woman in a position of power. Isn't that what everyone says they want?

Or is the idea to just erase the very concept of gender from the world? Welcome to OkCupid, I am a [PERSON] seeking [PERSON]

I want out of this timeline

______-_-______··on Google’s AI-powered ‘inclusive warnings’ feature is very broken
faucet-fixer?
______-_-______··on The end of Insteon and why the smart home keeps faltering
Let's say I want to dip my toe into smart homes, maybe get a smart light switch or two. I care about:

- privacy

- staying out of the cloud (so things like TFA don't affect me)

- an open protocol interoperable between vendors

Can anyone recommend a good "for dummies" guide written from that angle? I know that software-wise Home Assistant is generally recommended, but how do you decide what hardware to get?

______-_-______··on Senators want to mandate anti-piracy technology across the web
I can't wait to wake up one morning and find out my mandatory censorship chokepoint is preventing me from viewing the number "1"

https://www.androidpolice.com/numbers-violate-google-drives-...

______-_-______··on Senators want to mandate anti-piracy technology across the web
The problem with positions of power is that the most qualified are least likely to want the job.
______-_-______··on The reason high school bullies get back in touch later in life (2019)
I'm not proud of everything I've done in the past. I've thought about reaching out to apologize but I think ultimately it's a selfish thing to do. I don't want to drag up old memories or cause this sort of anxious reaction in someone. Time has passed and the kindest thing I can do now is to stay out of their life.
______-_-______··on On anti-crypto toxicity
You're moving the goalposts. I responded to:

> But cryptocurrency doesn't address any real problems.

Nobody was comparing the market share of different forms of currency or anything like that. We can discuss the viable rate of market share growth for new forms of currency some other time.

This is a high ranking government official saying that bitcoin is helping solve a real problem. Can you at least acknowledge that maybe he's telling the truth? Or when the next bitcoin thread rolls around will you just repeat the same tired old complaint about no use cases?

______-_-______··on On anti-crypto toxicity
In the case of Ukraine, yes, this is probably a temporary state of emergency. But on a global scale, there is always a disruption somewhere. Or as one google SRE put it (I couldn't find the exact quote) "on our scale, once-in-a-million events happen every day". And, for many people out there, crypto is still the fastest way to transfer money, and the situation is very much not temporary. It's just that they are not the people that typically feature in the NYT.
______-_-______··on On anti-crypto toxicity
Crypto has addressed real problems for Ukraine's military.

> “In a situation like this, where the national bank is not fully operating, crypto is helping to perform fast transfers, to make it very quick and get results almost immediately,”

https://www.nytimes.com/2022/03/11/technology/bitcoin-ukrain...

Is this BS and marketing?

______-_-______··on Testing consistency of rqlite
Taken from the readme:

> the behavior of a cluster if it fails while such a manually-controlled transaction is not yet defined

Do you envision manually-controlled transactions working seamlessly one day? If not, have you thought about what guarantees are feasible/you hope to provide?

______-_-______··on Rewriting Sysctl(8) in Rust: Systeroid
> It's a critique of pretending that only some dependencies are dependencies.

Where exactly does this project pretend that some dependencies are not dependencies? I don't see anything like that in the blog post or the readme. In the readme I see some dependencies metioned, but it's not introduced as "here are all the dependencies", it's introduced under Requirements as "here are the commands you must run to set up your system".

If you open your distro package manager and look at the dependencies for an end-user app, it will not list header-only libraries. That's the same principle at work.

______-_-______··on TurboTax’s fight against free tax filing
Can I ask, in spite of all this, why you continue to use their product?
______-_-______··on Americans are drowning in spam
That sounds like some pretty cool tech, but the problem is that spam still interrupts your day, whether you're holding the phone to your ear or looking at it in front of your face.
______-_-______··on Americans are drowning in spam
Most of those calls originate in India. How do they deal with international calls?

EDIT: I was just commenting on the physical geographic location of the callers, not anybody's race or nationality

______-_-______··on The rise and fall of crypto culture
Ukraine's military is using it.

> “In a situation like this, where the national bank is not fully operating, crypto is helping to perform fast transfers, to make it very quick and get results almost immediately,”

https://www.nytimes.com/2022/03/11/technology/bitcoin-ukrain...

______-_-______··on Why are some egg yolks so orange?
If that's the case, tongs are your friend.
______-_-______··on Crossbeam – Tools for concurrent programming in Rust
It's not due to the memory model; it's due to the lack of a runtime. In Go/Java, virtual threads are provided by a runtime. Rust tries to stay close to the metal, and so has no runtime. It does not have virtual threads that could be suspended.

Rust used to have virtual threads pre-1.0, but they were removed since the overhead was deemed unacceptable.

______-_-______··on Is Rust Web Yet?
Those benchmarks are pretty heavily gamed. Think about things like hardcoding "Content-Length: 123" instead of computing the length at runtime.
______-_-______··on Is Rust Web Yet?
> the borrow checker rejects valid programs

That's Godel's incompleteness theorem for you. Every static type checker also rejects valid programs, but that doesn't make them any less useful. Just one of those inconvenient facts about our universe.

← PreviousPage 2 of 7Next →