Recent submissions

Comment · 4 years ago
That whole example feels like a strawman, from my (maybe limited) experience something that's rather the exception than the norm.

First, lifetimes are elided in most cases.

Second, the curly braces for the closure are not needed and rustfmt gets rid of them.

Finally, the "map" on result can be replaced with a return statement below.

So, in the end we get something like:

  Trying::to_read(syntax, |like| this.can_be(maddening))?; 
  Ok(())
Comment · 4 years ago
I can vouch for purelymail (https://purelymail.com/), it's simply amazing. Their only rule is basically no marketing emails. It's also quite affordable compared to others.
Comment · 5 years ago
Yes.
Comment · 5 years ago
It uses the shared mime database, which in turn relies on both file type and content to detect the mime.
Comment · 5 years ago
Having lived through the same frustrations I've released https://github.com/chmln/handlr a year ago. It comes with lots of nifty scripting tools and significant improvements over xdg-open
Comment · 5 years ago
> One of the most common use cases for the `ctrl` key is COPYING shit and followed by PASTING shit and it DOES NOT WORK in a fucking TERMINAL... Because `ctrl-c` sends an interrupt

Most terminals today have a copy-on-select feature, which means you don't need to ctrl-c at all. Just select and ctrl-v.

Comment · 5 years ago
Shameless plug: https://wire.js.org/ as an alternative focused on type safety and productivity.
Comment · 5 years ago
> There's no consistency

Just a reminder there's like 7 different context menu styles in Windows 10, not to mention two control panels.

Comment · 6 years ago
All of these are optional, just disable and use an alternative?

I use resolved and timesyncd however and they work amazing for my basic needs on the laptop.

Comment · 6 years ago
Almost every point made here is basically false.

The best performing languages are imperative (C, C++, Rust), with functional languages being at least an order of magnitude slower both in benchmarks and real-life workloads. Whatever properties were supposed to make it faster/parallelizable have clearly not manifested themselves very well after decades.

Imperative and parallel code also does not have to be a nightmare at all, as evidenced by Rust and even Go.

Comment · 6 years ago
Immigration has a direct impact on the labor market. Unlimited migration would likely outpace any sort of economic growth and massively depress wages. I would not look forward to competing with an order of magnitude more candidates for jobs with mediocre pay.

> Your comment serves as an attempt to change the subject

That's funny because you did not refute anything I said and just brought up Trump, whose opinion I couldn't care less about.

Comment · 6 years ago
Wanting to make a livable wage is not greed.

Besides, unchecked migration would lead not only to seriously depressed wages but also massive social issues.

Comment · 6 years ago
Well the privileged extension requires root, which is what I was alluding to in my post :)
Comment · 6 years ago
Note that you can totally do all of those if you root your device. Highly recommend.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton