HNHacker News
TopNewBestAskShowJobs

codys

1,283 karma · joined October 6, 2011

podcast-again-1k@icloud.com
submissionscomments
codys··on RED is suing Nikon for infringing on its video compression patents
The FDA used to not be funded by the pharmaceutical industry, and instead be directly funded. There are routine questions about how the current arrangement influences FDA decision making in a way that negatively affects their ability to independently review drugs. IOW: the current setup causes the FDA to approve things they probably should not have approved, because they are incentivized to "get along" with the companies paying them.
codys··on How did Tropicana lose $30M in a packaging redesign?
Whoops: I missed a "not" in the last sentence. Should be:

> So in this case, the plastic straw issue does _not_ necessarily appear to be related to the redesign.

codys··on How did Tropicana lose $30M in a packaging redesign?
The article indicates the re-design in question was "launched" in January 2008. This is the date where planning the redesign began.

Another article [1] indicates that the new design was deployed on January 8th, 2009, and Tropicana announced a return to the old design on February 23rd, 2009.

A quick search shows an article [2] indicating around 2018 was when the panic around plastic straws began (with, for example, Seattle banning plastic straws starting in July 2018).

So in this case, the plastic straw issue does necessarily appear to be related to the redesign.

1: https://www.thebrandingjournal.com/2015/05/what-to-learn-fro...

2: https://www.eater.com/2018/7/12/17555880/plastic-straws-envi...

codys··on Android Chrome 99 expands Certificate Transparency, breaking all MitM dev tools
what tools/methods exist for MitM-ing iphone traffic in this case?
codys··on Strengths, weaknesses, opportunities, and threats facing the GNU Autotools
The lack of parallelization is also a pain point. When I needed something to test platform specific stuff and set defines/etc, I found that writing something to generate ninja & integrate the define generation (which ended up in some generated headers) into the total build process. This was very snappy.

These days I use meson mostly, but I would love to see a complete build system really get into parallelizing platform checking and merge it into the normal build process.

codys··on New C++ features in GCC 12
- a WG paper by a google employee regarding breaking the C++ ABI: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p186...

- A post about a C++ ABI break being voted against: https://cor3ntin.github.io/posts/abi/

I would not be surprised if google (or others in favor of breaking the ABI for the c++ standard library) would refocus on their alternate non-std std-replacement-ish library implementations (like abseil) instead given the lack of willingness to fix things in std proper from the committee.

codys··on USB-C hubs and my slow descent into madness (2021)
I've found https://dancharblog.wordpress.com/2021/02/05/usb4-tb4-docks/ has a nice comparison of the many very similar (only slightly differentiated) thunderbolt 4 docks.

It notes that the Kingston, Sonnet, and others are rebrands of the Goodway DBD1100.

codys··on Toward a better list iterator for the Linux kernel
The difference appears to be:

`sys/queue.h` has it's pointers to the next element rather than the next list_node, while `ccan` and `linux` have pointers to the next list_node, which then are adjusted if needed to obtain the containing element.

In practice, this means that `sys/queue.h` is entirely macros, while linux & ccan's lists can use normal functions for most operations (with primarily obtaining the element pointer being handled by macros). Whether or not this is useful is somewhat dependent on compile time costs for macros vs code, and how small the list operations are in code size (ie: are they always inlined, or is it useful to be able to have a single instance of them). With the linux model, this can be determined at any time (by the compiler, or by the linked list library by changing it a bit), with the bsd model it is somewhat more difficult to make work (one could possibly do this by passing in the offset of the list_node structure to functions).

codys··on Toward a better list iterator for the Linux kernel
For more advanced intrusive lists in C, I've found that ccan's tlist2 (https://github.com/rustyrussell/ccan/blob/master/ccan/tlist2...) provides a decent model here.

Compared to the linux kernel's intrusive lists, it also tracks the offset of the list_node within the structure contained by the list, which eliminates another class of problems. It does still have the "using the iterator after the for loop is over" issue discussed in this article, but it also already tracks the types as Linus proposed doing in the article to resolve the issue.

codys··on ntfs2btrfs: In-place conversion of NTFS filesystem to Btrfs
Not the OP, but I deployed btrfs on tens of embedded systems that had their power consistently cut on a daily basis. Ended up with unmountable filesystems repeatedly. Switched to ext4 and never had an unmountable filesystem again.

These were single disk systems, no raid at all.

codys··on Intel to Acquire Tower Semiconductor for $5.4B
That sounds a lot like a tying arrangement, which could be unlawful under US anti-trust laws.
codys··on Scientists must resist cancel culture
This article mis-represents criticisms of Angewandte Chemie publishing Tomáš Hudlický's essay (opposing efforts to increase diversity in organic synthesis) by attributing them to a "Twitter firestorm" while other publications note this event caused members of Angewandte Chemie's international advisory board to resign in protest, and other Chemists criticized the essay [1].

There may be a way to thoughtfully discuss this issue, but this article is a poor attempt at it.

1: https://cen.acs.org/research-integrity/ethics/Essay-criticiz...

codys··on The ITC declares Google infringed on audio tech patents held by Sonos [pdf]
"Simple Jack panel, but computer controlled" is not novel and should not be patentable.
codys··on Rust Moderation Team Resigns
Alternately, there's this: https://news.ycombinator.com/item?id=28515306
codys··on The Serde Rust Framework
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.

codys··on Examining Btrfs
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.

codys··on Examining Btrfs
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.

codys··on Apple Delays Rollout of Child Safety Features
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)

codys··on Improving Git protocol security on GitHub
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)
codys··on A Chinese-Built Highway Drove Montenegro into Crippling Debt
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.

codys··on The Elephant at WWDC
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.

codys··on Malloc broke Serenity's JPGLoader, or: how to win the lottery
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.
codys··on OpenPOWER Foundation announces LibreBMC, a POWER-based, fully open-source BMC
The press release notes that they expect to run the OpenBMC software on this LibreBMC hardware
codys··on WinGet is terrible, I want AppGet back
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

codys··on Why Rust strings seem hard
`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).

codys··on Debian Running on Rust Coreutils
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.
codys··on LastPass Android app has got 7 trackers in it
For those just scanning the comments, "full remote access" is just being used to mean "has an automatic update system" here
codys··on Balthazar Personal Computing Device, a 13” RISC-V laptop
SSH would not be the way to accomplish that.
codys··on How We Ported Linux to the M1
I feel like we're missing some of the details/steps here, perhaps because the folks at corellium have a bunch of existing experience with apple SoCs and as a result had non-public knowledge about the platform.

For example: determining that interrupts were being routed to FIQ. It's unclear how one would have figured that was occurring. Or that there was an special AIC (apple interrupt controller) that needed talking to, and how to talk to it. It feels like there's a lot of "reverse engineer some Apple kernel bits" that's potentially being elided over.

Edit: or alternately, some debug interface that isn't being mentioned (swd/jtag/itm).

codys··on 2020 Saw Unprecedented Murder Spike in Major U.S. Cities
Maybe I've missed this somewhere, but:

- do you have a finer grained (month by month, for example) break down to support your assertion of the correlation in timing of the NYPD disbanding the "anti-crime" units and the homicide rate?

- if so, is there something indicating there is causation rather than a coincidence?

← PreviousPage 5 of 14Next →