Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 6y ago · link · parent

Is there a way to get ZFS on Debian the same way as with Ubuntu (for someone that prefers text-based installers and is fine with an unsupported solution)? Debian has always had more ideological purity that got in the way of users being able to actually use their machine efficaciously.

comment 6y ago · link · parent

I don’t think you understand what raw input means. It doesn’t mean telling the OS you don’t want it to mess with your input, it means bypassing the userland OS input framework entirely and grabbing the input at a lower level preventing the default OS stack from even processing those input events.

A well-designed game would do that, anyway. I wouldn’t be surprised if the counter strike port for macOS doesn’t qualify as such.

comment 6y ago · link · parent

Games are different, though. They don’t play as part of the ecosystem; they run full-screen and do their own input processing and use no system widgets or controls. They essentially take over the lowest level of hardware they can get access to, and in many ways once launched would be indistinguishable between the various platforms (quirks and rendering idiosyncrasies aside).

comment 6y ago · link · parent

(Balk not bulk. Just FYI.)

comment 6y ago · link · parent

No, JS is slow(ish). The GC pressure alone will kill you. This is fast despite being in JS by simply doing as little as possible (while still meeting the requirements on the end result, which is where the genius lies).

The fastest code is no code. No code is fast even with pathologically slow languages/runtimes.

comment 6y ago · link · parent

CPU utilization is a zero-sum game. If you need to use the CPU to calculate checksums or do packet segmentation then it’s that much less CPU available for TLS.

comment 6y ago · link · parent

Only net profit to the owner flows out of the community. The money going to employees at the branch/showroom (which would still be retained, as they serve a purpose regardless of who runs them) is still retained in the community. Given how many auto dealerships are franchises owned by out-of-town individuals or groups, it’s already the case anyway.

comment 6y ago · link · parent

IAsyncOperation is pretty flexible. I don’t think it will be technically hard, though perhaps picking the best fit model will be a time consuming process.

comment 6y ago · link · parent

The copyright stuff is bunk, but their defense isn’t (just) what you’ve said but rather that a single block is used to decrypt multiple files so their defense is that no one copyright owner owns the block in question. Which of course is BS since any part of a component derived from illegally sourced copyrighted materials renders the entire derived work in violation (eg a mixtape with one improperly sourced song or twenty is just as “fair game” for a lawsuit).

comment 6y ago · link · parent

It poses the following question as its defense: if a file is broken down into blocks and a single block is used to recompose two or more different files but is itself unique from any of the actual components of either of the two files, then no one can claim copyright to it.

I don’t think that works the way they think it does, though. Just imagine analog data instead of digital, and take two copyrighted works, break them down into blocks, mix them together with some randomizers, and what do you get? A work derived from multiple copyrighted sources. No one needs to “own” the entirety of the source, if any part of it is derived from copyrighted materials in a way that isn’t exempted via eg fair use, then the entirety of the resulting work is in violation and is fair game for lawsuits, etc.

Simply moving this to the digital domain from analog doesn’t change the logic, does it?

3821.

WaPo and ACLU argue for public’s right to see a judge’s opinion on encryption(washingtonpost.com ↗)

3 points · by ComputerGuru · 6y ago · discuss

comment 6y ago · link · parent

Ancient History starts at 3000 BC, for context.

comment 6y ago · link · parent

It’s not lossless. It’s lossless after quantization of the color palette, and pretty much every encoder out there does a crap job of not losing too much perceptual or actual data in that step.

comment 6y ago · link · parent

It absolutely will. They’ve already started experimenting with that.

comment 6y ago · link · parent

It’s not slow, but it is not responsiveness. Electron has terrible input latency compared to native.

comment 6y ago · link · parent

I’ve implemented my own Stripe checkout for a native application in just a couple of hours, using their REST API. There’s nothing stopping everyone else from doing the same: it’s literally how you used to integrate with payment gateways before Stripe came along. No one gave you a JS library to use on your website.

comment 6y ago · link · parent

It’s to do with their “long” outlook. They’re thinking of when we’ll be in the five digits and looking back at the fours.

comment 6y ago · link · parent

I wrote this [0] up a couple of weeks ago, which is a hack to put shell code in your rust, with reasons why you would want to.

[0]: https://neosmart.net/blog/2020/self-compiling-rust-code/

comment 6y ago · link · parent

Yes, a much better version of the “light” in those classic “indestructible” Casio watches.

comment 6y ago · link · parent

It was a really big deal when they became mass market (90s, I think?) and were the peak of “cool” at the time. But they’re absolutely horrible for energy consumption.

Here’s an example: https://upload.wikimedia.org/wikipedia/commons/b/b8/66Charge...

They compete mainly with the fixed-segment monochrome LCD display market. I’ve seen some in multicolor as well.

comment 6y ago · link · parent

In 1999, my DVD player could do this smoothly without any hitches or glitches. In 2020, my Xeon can't render this fast enough to avoid stutters. Either code quality has gone way down or my DVD player had a faster CPU.

comment 6y ago · link · parent

Tangential: the scroll performance on hardware-accelerated Chrome for the landing page is absolutely atrocious on a Xeon v6 running past full frequency (3.6GHz, so not in energy-saving mode). I would have expected better of Apple. \shrug\

comment 6y ago · link · parent

It's not you, the article was written by someone that doesn't understand what they're trying to report on and is repeating facts they've been told are pertinent. Can't blame the reader for being confused.

comment 6y ago · link · parent

For all the "can't trust HGST because its owned by WD" comments: I don't think this is the case, as HGST is still selling drives that are explicitly declared to be PMR is the datasheets, e.g. here's the HGST Ultrastar DC520 [0] which includes PMR as one of its selling points.

[0]: https://documents.westerndigital.com/content/dam/doc-library...

comment 6y ago · link · parent

It really depends, newer Toshiba and HGST drives in "massive" (ie > 8TB) sizes are almost all 256MB cache for improved in-memory write reordering, but HGST calls out at least some of their drives as not only being PMR but also being better because they're PMR [0] (it's just the most recent one we purchased for our ZFS pool). We haven't had any issues with it (first order of business is writing random values to the disk then reading them back to verify integrity and check SMART values afterwards) and had sustained write speeds the entire time.

"Designed to handle workloads up to 550TB per year, the Ultrastar DC HC520 is the industry’s first 12TB drive and uses traditional perpendicular magnetic recording (PMR) technology to make it dropin ready for any enterprise-capacity application or environment."

[0]: https://documents.westerndigital.com/content/dam/doc-library... (search PMR)

comment 6y ago · link · parent

I must be missing something because I only see 37 lines and that’s a very short list. On an extremely small website’s checkout page alone we have seen ten times that.

comment 6y ago · link · parent

It’s a very interesting script! It’s like a top-down (columnar) Arabic without any of the later additions of diacritics and distinguishing dots.

comment 6y ago · link · parent

This is called WiFi handoff and any enterprise AP deployment worth a damn should have this sorted out, albeit in a proprietary manner. The WiFi standard already has a client establishing a connection to a new AP before giving up the old one at the actual “physical” transport layer, these proprietary extensions exchange existing connection state information over the wired backbone between APs when a client is attempting to move from one to the other so that it can theoretically be a “seamless” experience. In theory, anyway.

comment 6y ago · link · parent

I’m happy with the changes to rust and their pacing but I want to point out that merely asserting “you don’t have to use these features if you don’t want to” is disingenuous and particularly so for open source contributors (Steve did NOT say this but it was a common refrain in the discussion that Steve is contributing to). It threw me for a loop the first time that I saw the spread operator in an assignment in a project I was filing a PR for, and I thought I was on top of all the features.

Some changes that stand out to me: the try macro being deprecated was huge, and though the ? Operator is a thousand times nicer, that was a rather radical shift to the ecosystem where you could smell code from yesterday a mile way; I seem to remember try blocks were stabilized then removed but I seem to be mistaken on that count; async of course is a huge change and it absolutely does force you to use it since it’s a contagious language feature in pretty much all languages (I’m very disappointed with tokio on this count and have a feature I’ll probably file a PR for to help reduce this); the change allowing reusing the same variable name inside a match binding as the variable being assigned to was hugely beneficial but quickly broke backwards compatibility because of how nice it was to give up. I think the changes to std::error are also worth mentioning, they might be backwards compatible but they completely obviated an entire generation of crates and coding styles (I for one do not lament the death of quick error and co).

I feel a better metric for this might be to study the min rustc version to compile libraries, i.e. community adoption of new or breaking changes. If you take the releases from the top 250 crates in the past few years and see how many rustc versions back from whatever was stable at the time of release could compiled the release, that might give you a more data-oriented result.

Also, I think some of the real frustration might be from “core” crate breakage, such as the transition from tokio 0.1 to 0.3 and the ensuing mess or examples like gfx-rs that hundreds of other popular crates built on to get OpenGL support before they completely deprecated it and pivoted altogether such that not all are those crates left based on a dead-ended project but OpenGL users are all SOL (“just a little while longer!”) as the community-adopted alternative is wgpu which requires Vulcan/Metal/DirectX until the promised OpenGL support lands there.

I’m not complaining; NIH people generally get off easy with community deprecation of popular crates ;) and OSS developers are absolutely not beholden to anyone. But I imagine for developers plugged into the ecosystem, changes to extremely popular crates and changes to the language or standard library might result in a general annoyance that doesn’t distinguish between the two (and that’s also fair since the reason rust has a small standard library is so people use crates which can be more easily replaced or deprecated).

1
127128129
277