Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 2y ago · link · parent

It’s a protocol, not an implementation. If you say your implementation of the protocol says objects are defined by their hash, then your implementation can also assert that the hash of the retrieved file matches the hash you looked it up with^ (which you should do in your library/app regardless of what the protocol says will be returned, though ideally your protocol would define some sort of merkle tree or whatever to verify the hash piecemeal).

^ which you, by definition, already have

comment 2y ago · link · parent

> The second change was to create a DNS record in AWS Route53 for `database.notifications.service.gov.uk` with a 1 second TTL (time to live) [..] our migration script just needed to update the DNS weighting in AWS to 100% of results being sent to the target database location and wait 1 second for the TTL to expire. Then, when our apps next try to query our database they will be querying our target database.

Wait. Their (or Python's default?) db orm blocks while it performs a DNS lookup for each and every query!? It doesn't cache resolved addresses for any length of time? No connections are pooled and reused?

comment 2y ago · link · parent

Willow solves the biggest problem I have always had with IPFS: it’s content addressable, which is nice for specific things but not generic enough to make the protocol actually practical and usable in the real world outside of specific use cases. (Namely you can’t update resources or even track related updates to resources.)

(Mathematically, a name-addressable system is actually a superset of content-addressable systems as you can always use the hash of the content as the name itself.)

comment 2y ago · link · parent

> Interestingly, because /bin/sh sets $SHELL, fish doesn’t change that value, so my fish shell reports /bin/sh as the value for $SHELL

Fish actually doesn’t write to (or directly use?) $SHELL at all, as it doesn’t consider it part of the shell’s contract to do so. At least if I’m not misremembering.

comment 2y ago · link · parent

At this point, I assume this is the default and don’t expect data recovery to not be provide on the same physical machine (even across virtualization barriers).

If your data is that sensitive, run it on dedicated hardware. Papering over this with mitigation over mitigation is a fool’s errand: both a genuine waste of compute resources and guaranteed to be a game of cat and mouse.

comment 2y ago · link · parent

Ok, yeah, I agree. But the world of cost-cutting and penny-saving would never allow that - same reason FireWire lost out to USB. As passive and dumb peripherals as possible won out (for cheaper parts and faster time to market).

comment 2y ago · link · parent

Hebrew also lost the voiceless pharyngeal fricative (Heth/ح) which iirc can only be pronounced by Mizrahi Jews (aka of Jewish Arab origin). It was merged into the voiceless uvular fricative כ khaf (خ in Arabic). Though as I understand it, interestingly the letters themselves are still found in Hebrew with distinct glyphs (ח vs כ) but one has just lost its unique pronunciation.

comment 2y ago · link · parent

The idiots removed the 1-click checkout feature and replaced it with a Dropbox to choose which address to deliver to, but it no longer ties that address to a payment method.

comment 2y ago · link · parent

Looks cool but judging purely by the screenshot it seems to be systemwide w/ filters rather than per-adapter?

comment 2y ago · link · parent

I get what you’re saying but not specifically how you’re imagining the implementation. What do you envision the difference between thunderbolt and usb would be in this case? All complex/bandwidth-intensive applications would be better suited to use PCIe directly, but the problem has always been that for various peripherals this imposes a (small) cost manufacturers would rather not pay and would prefer to have the usb spec abstract over.

comment 2y ago · link · parent

It’s the beauty and elegance of the PCIe design. Thunderbolt just provides convenient ported access to those lanes.

comment 2y ago · link · parent

Absolutely. Sorry, I meant quadratic but had a brain fart.

comment 2y ago · link · parent

The team is all agreed on the importance of such a write up at some point — but it’s not clear we’ve experienced all the fun stuff as of yet.

comment 2y ago · link · parent

Ironically the RIIR project makes this more difficult; we lost support for Cygwin altogether and I think the msys2 stuff would need to be re-explored if it even remains possible.

comment 2y ago · link · parent

Absolutely not. Fish may be written in more of a cross-platform language/ecosystem now but as a unix shell, we make heavy use of unixisms that have no windows equivalent throughout its architecture, design, and implementation.

Is it theoretically, someday possible? Sure. Does rust bring us closer? Maybe a tiny bit, but honestly not much (it has a more elegant per-platform targeting/conditional compilation model but it’s nothing that wasn’t possible in C/C++, and we don’t use the “native” oob cross-platform std lib stuff like launching procs).

WSL is a priority target though.

comment 2y ago · link · parent

> The connection shows up as a ethernet port on Windows

Do you know if this is the case for all thunderbolt generations (speed differences aside)? Does it apply to thunderbolt using mini DisplayPort too or only over USB PHY?

comment 2y ago · link · parent

It doesn’t scale. Number of connections/hardware is exponential to the number of nodes.

comment 2y ago · link · parent

Implying faint microwave signals also make their way out, of course.

comment 2y ago · link · parent

Just missing a (multi) file upload widget in general and an image upload one in specific.

comment 2y ago · link · parent

I wonder how prohibitively expensive (or not) this will be. The other comments talking about lack of applications they're able to think of on the spot are rather besides the point, the only questions are whether this will be produced at scale and at what cost.

comment 2y ago · link · parent

Anyone find a way to get raspivid (or a lower abstraction) to play nice with WebRTC and negotiate the bit rate depending on the connection quality?

comment 2y ago · link · parent

It’s a very barebones link, but I’m curious. Is this CPU or GPU? What are some of the salient features of this particular project besides the language?

comment 2y ago · link · parent

Huh, just found this db tui as well via that site: https://terminaltrove.com/gobang/

comment 2y ago · link · parent

I did not get a chance to give this a whirl yet but I am excited to do so. I mainly used pgcli but it’s pretty buggy and certainly doesn’t approach IDE status.

comment 2y ago · link · parent

I’ll again plug the P9 network file sharing protocol (from Plan 9) as a fuse/smb/nfs/webdav alternative that is simple to implement and fairly performant, used by Microsoft to provide file access across the WSL boundary with little overhead. I didn’t know about it until a few years ago and people I tell are always surprised to learn about it.

comment 2y ago · link · parent

At the cost of many others not buying the more expensive plan because it was their only option.

comment 2y ago · link · parent

It’s (much) more complicated than that. HEIC format allows multiple “frames” to be stored in the container, each one derived from the source (or each other). So there may literally be just one file but it has (algorithmically) the definition for generating (losslessly) the other files, too. So there isn’t/wouldn’t be even a separate “smaller copy” at all as it is generated on-the-fly.

comment 2y ago · link · parent

Developers are being asked to use them. It doesn’t matter if developer machines use a bit more power to save magnitudes more over the lifetime of all client use of the resulting, more efficient, product.

comment 2y ago · link · parent

That’s crazy. I always knew you could hassle but didn’t realize you could get that much off!

comment 2y ago · link · parent

You’re telling me a dealership somewhere in the USA was selling a brand new ICE for ~$5k a mere twelve years ago?

Iirc the cheapest new car in the US market then was the Versa. And it was not $5k.

1
373839
277