Better HN
topnewbestaskshowjobs
Log inSign up

codys

1,284 karma · joined Oct 6, 2011 (15y ago) · 430 submissions

podcast-again-1k@icloud.com
Submissions

comment 5y ago · link · parent

That's with purchase sharing enabled. Otherwise, there is no shared billing for apps when using iCloud family.

comment 5y ago · link · parent

If you only want a single field in json, you define a struct with just that single field. Serde does have the ability to return an error about unknown fields, but it is not enabled by default.

This also informs your second question. If new optional fields in json are added, unless you tell serde to complain about them, it won't, and you can add the new Option at your leisure.

comment 5y ago · link · parent

Some points I think bear some clarification wrt current zfs state:

- current versions of zfs (ie: openzfs) error (unless forced) when adding non-redundant devices to a redundant pool, and have device removal to handle the case where someone bypasses the error.

- pools can grow in zfs (ie: the things one allocates storage out of). what is probably being referenced here is that one can't reshape a zraid vdev to add more disks to it (basically the reshape operation in classic raid setups). This does make expanding in some cases less flexible that old-style raid setups.

Also, I really have to agree that ARC behavior is still not great under load, and I don't think that's that much of an edge case.

comment 5y ago · link · parent

I've also recently had bad experiences where hard-power-offs of a fleet of systems with a btrfs filesystem repeatedly cause corruption (resulting in the btrfs filesystem no longer being mountable)

Some testing seems to indicate even ext4 is more reliable in the face of hard power cycles.

comment 5y ago · link · parent

I'm heavily using cache on self hosted runners that are running in ec2 machines on aws. It's my experience that the cache isn't "super slow".

Because of a bug (in my action) I was pushing/pulling gigabytes of data into the cache. On large files I was seeing ~125MB/s (that's Byte) download speeds.

I haven't used the GitHub hosted runners much so I'm not sure how it compares though.

comment 5y ago · link · parent

https://news.ycombinator.com/item?id=28369570

(while on linux one can use the docker command line tool without any docker desktop thing, on mac docker desktop wraps together running a linux vm to run the docker daemon & containers inside, making it the most straight forward way of running docker on mac)

comment 5y ago · link · parent

https supports having credentials provided by various providers (and `.netrc`, for example). Which means when using https you don't know you're getting the anonymous user experience (because it's likely using credentials from other sources)

comment 5y ago · link · parent

clippy can be used to check some of these conventions. See https://rust-lang.github.io/rust-clippy/master/#wrong_self_c..., for example.

On projects I work on, I include clippy as part of the CI process to check these types of things.

comment 5y ago · link · parent

If the state or employer is required or expected to supply additional benefits to people working abroad, the benefit to the state or employer in substituting workers with less ability (legally or otherwise) to claim or obtain those benefits is even larger than it might be in-country. (I'm ignoring the obvious issue of it potentially being less legally or politically easy to handle here as the parent comment does not mention these at all).

It sounds like you have an anecdote about some people you know working on these projects, but the details that seem intended to imply that it's unlikely that _any_ people working these projects are Chinese prisoners actually imply the opposite.

comment 5y ago · link · parent

I don't see any photos of it in that article.

There's a drawing of what it will look like when "complete", but no indication of what it currently consists of (and it's still an artist's rendering).

Would be interested in actual current photos.

comment 5y ago · link · parent

The general apple documentation for functions, etc appears to be pretty much a customized doxygen. One can see this by reading the header files for some of their frameworks and noting the doxygen comments there match up with their web-published documentation exactly.

That said: some folks didn't really get the memo, because there are important details that are sometimes included in non-doxygen comments in Apple's headers and thus aren't reproduced into Apple's generated/published docs.

In particular, the headers (sometimes) include annotations for specific types included in CF containers for return values.

comment 5y ago · link · parent

The insertion of a random factor in hashing/bucketing that you're describing would change the iteration order per _instance_ of a hash table, not per _iteration_ as the parent comment notes is the case for go maps.

comment 5y ago · link · parent

A large number of microcontrollers are ARM based, which isn't Harvard architecture. I presume the thinking is that there's some massive number of Harvard architecture chips in mundane things that lets us say "most" are Harvard arch?

comment 5y ago · link · parent

Yes, indexing into arrays in C (well, really, de-referencing pointers) in ways that are out of bounds will in the best case result in a fault which results in a BUG() invocation in Linux.

Panicing on invalid slice indexing is a non-issue.

comment 5y ago · link · parent

The press release notes that they expect to run the OpenBMC software on this LibreBMC hardware

comment 5y ago · link · parent

This assertion ignores that apple makes a profit off the 30% cut. In other words: it doesn't correspond to a real cost to Apple.

comment 5y ago · link · parent

I totally agree. I'm amazed by how opaque and difficult to understand the process to create debian packages is because of all the various layers/helpers/tools that can/should be used in different cases and the difficulty in customizing things. There's a slew of interacting tooling (`dpkg`,`dpkg-buildpackage`, `debhelper`, each of the debhelper `dh-*` helpers, `sbuild`, `pbuilder`, `git-buildpackage`) that all has different documentation of varying quality, some of it replaces other pieces, etc.

My best experiences with packaging on linux have been gentoo ebuilds & arch pkgbuilds. These keep the build model pretty straight forward if the goal is to "just build a package".

That said: creating a dpkg is not an impossible thing to do. It's just more painful than it needs to be

comment 5y ago · link · parent

`char` is a (internally) a `u32` because it represents any single unicode character. `str` is not a `[char]`, because rust doesn't store strings as utf-32 (system APIs don't accept utf-32, and it tends to waste space in many cases)

`str`'s data layout happens to be `[u8]`, but it's type provides additional guarantees about the structure of the data within it's internal `[u8]` (for example, forbidding sequences of u8 that don't encode valid utf-8).

comment 5y ago · link · parent

only clang (not gcc) ships ubsan with support for checking unsigned integer overflow. clang's ubsan does not enable it by default (it must be explicitly enabled).

As a result, it's not clear that it's a false positive in the technical sense here (as one would need to enable checking for unsigned overflow explicitly).

comment 5y ago · link · parent

Not necessarily. The non-GPL utilities the GNU coreutils are based on are presumably licensed as MIT, ISC, Public Domain, or similar. If that is the case, those licensing regimes don't forbid adding extra restrictions, so adding the restrictions of GPL would be permitted, and the new derived (again, assuming interfaces are copyrightable) work would operate as being essentially GPL licensed. Things get murky as there are proprietary utilities too that coreutils are probably based on, but then there are also specifications of behavior (SUS, Posix) which might or might not sever the "derivation path" of the work, or might introduce further licensing constraints.

comment 5y ago · link · parent

Musk is incredibly high profile and regularly receives negative press.

comment 5y ago · link · parent

While it's good that this is finally being provided, it's still somewhat amazing that there isn't any documented API to interact with iCloud.

One can of course, on Apple hardware, use apple proprietary APIs to do some things. Or one can use the iCloudJs stuff from a webpage.

But there's not an official/documented way to, say, write a program that runs on a Linux server to mirror photos in iCloud to disk (or access any other iCloud data).

There are reverse engineered APIs that folks can use to interact with it, but the official iCloud story has been data lock in.

comment 5y ago · link · parent

For those just scanning the comments, "full remote access" is just being used to mean "has an automatic update system" here

comment 5y ago · link · parent

Ya, I ran for a long time with a passphrase in a system without a TPM. I recently got a TPM for it so I could have it restart without me being present.

I used the `manage-bde` command rather than powershell:

https://docs.microsoft.com/en-us/windows/security/informatio...

The GUI for bitlocker doesn't provide access to all the functionality that manage-bde provides (iirc: if a TPM is present, the passphrase options aren't presented in the GUI. And it used to talk about a "PIN" instead of a passphrase/password, but the "PIN" can (with some gpo tweaking) contain letters/space/punct as well as numbers.

comment 5y ago · link · parent

Bitlocker can be configured (via manage-bde on the cmdline, iirc) to use a passphrase and not use the TPM at all.

comment 5y ago · link · parent

I was curious about this, and went searching, and it's fairly difficult to figure out exactly what is being referenced.

There is a reddit thread that links to deleted tweets that appears like it might be related: https://www.reddit.com/r/browsers/comments/i8nuyb

comment 5y ago · link · parent

SSH would not be the way to accomplish that.
1
567
15