Readit News logoReadit News
turminal commented on Debian's Git Transition   diziet.dreamwidth.org/204... · Posted by u/all-along
amluto · a day ago
> For example, currently most Debian git repositories base their work in "pristine-tar" branches built from upstream tarball releases

I really wish all the various open source packaging systems would get rid of the concept of source tarballs to the extent possible, especially when those tarballs are not sourced directly from upstream. For example:

- Fedora has a “lookaside cache”, and packagers upload tarballs to it. In theory they come from git as indicated by the source rpm, but I don’t think anything verifies this.

- Python packages build a source tarball. In theory, the new best practice is for a GitHub action to build the package and for a complex mess to attest that really came from GitHub Actions.

- I’ve never made a Debian package, but AFAICT the maintainer kind of does whatever they want.

IMO this is all absurd. If a package hosted by Fedora or Debian or PyPI or crates.io, etc claims to correspond to an upstream git commit or release, then the hosting system should build the package, from the commit or release in question plus whatever package-specific config and patches are needed, and publish that. If it stores a copy of the source, that copy should be cryptographically traceable to the commit in question, which is straightforward: the commit hash is a hash over a bunch of data including the full source!

turminal · a day ago
For lots of software projects, a release tarball is not just a gzipped repo checked out at a specific commit. So this would only work for some packages.
turminal commented on I'm spoiled by Apple Silicon but still love Framework   simonhartcher.com/posts/2... · Posted by u/deevus
l11r · 3 months ago
S0 is a step forward. Disabling CPU entirely is just a "workaround". Both S3 and hibernation has a lot of security implications which S0 solves. Apple uses their own S0 alternative and it works... Perfectly?

The real problem is that both AMD and Intel S0 implementations are mediocre at best and this is what they should fix. Also most vendors are dickheads and cannot even verify that their system even goes to S0ix states without any problem before releasing it. Because of their laziness you can buy brand new certified "Linux ready" machine which won't even achieve S0ix states out of the box.

turminal · 3 months ago
In other words, for the user, it's not a step forward. It doesn't matter if the spec is perfect.
turminal commented on Seconds Since the Epoch   aphyr.com/posts/378-secon... · Posted by u/zdw
christina97 · a year ago
The way it is is really how we all want it. 86400 seconds = 1 day. And we operate under the assumption that midnight UTC is always a multiple of 86400.

We don’t want every piece of software to start hardcoding leap second introductions and handling smears and requiring a way to update it within a month when a new leap second is introduced.

You never worried or thought about it before, and you don’t need to! It’s done in the right way.

turminal · a year ago
But most software that would need to care about that already needs to care about timezones, and those already need to be regularly updated, sometimes with not much more than a month's notice.
turminal commented on MNT Reform Next   mntre.com/media/reform_md... · Posted by u/_Microft
turminal · a year ago
As I'm sure many of the customers can tell you, the company and the products are very real. And they come in very real milled aluminum cases, the case in the images is 3d printed because it's a prototype.
turminal commented on Systemd replacing ELF dependencies with dlopen   mastodon.social/@pid_eins... · Posted by u/klooney
turminal · 2 years ago
I don't understand the initial motivation for converting regular dynamic library dependencies to dlopen dependencies. How does that help with reducing the footprint?
turminal commented on Privacy focused platform Skiff is joining Notion, Skiff to be sunset   notion.so/blog/meet-skiff... · Posted by u/mirshko
jillesvangurp · 2 years ago
For the same reason that Skiff is being acquihired: it has simply proven to not be a viable business.

The reason Notion acquires and kills this product is not because it is in any way an interesting product or company to them but because it has investors that need bailing out that are also Notion investors. Notion gets some nice people in their team and some of them might even stay.

This is a very common practice in silicon valley. VC funded companies fail all the time. Instead of letting them go bankrupt, investors and founders swap shares and walk away with an "exit" in their pocket. Everybody wins.

turminal · 2 years ago
Except for the users.
turminal commented on So you think you know C? (2016)   wordsandbuttons.online/so... · Posted by u/tosh
ryao · 2 years ago
That is fair for 4, although would explain why it is the case for 3?
turminal · 2 years ago
If char is signed and ' ' * 13 is bigger than CHAR_MAX, you get UB by signed overflow.
turminal commented on Password may not contain: select, insert, update, delete, drop   id.uni-lj.si/DigitalnaIde... · Posted by u/jesprenj
Retr0id · 2 years ago
Optimistically, perhaps this requirement stems from an overzealous WAF
turminal · 2 years ago
That would imply WAF gets to see unhashed passwords, so not good at all.
turminal commented on Password may not contain: select, insert, update, delete, drop   id.uni-lj.si/DigitalnaIde... · Posted by u/jesprenj
turminal · 2 years ago
The funniest part of this is that they don't even check for all of the banned strings.

Source: I'm a student there and tried it out of curiosity.

turminal commented on So you think you know C? (2016)   wordsandbuttons.online/so... · Posted by u/tosh
ryao · 2 years ago
The first 4 are implementation defined rather than undefined.

That said, warnings do not necessarily mean that the code is invoking undefined behavior. For example, with if (a = b) GCC will generate a warning, unless you do if ((a = b)). The reason for the warning is that often people mean to do equality and instead write assignment by mistake, so the compilers warn unless a second set of braces is used to signal that you really meant to do that.

turminal · 2 years ago
> The first 4 are implementation defined rather than undefined.

Third and fourth are only defined in some implementations.

u/turminal

KarmaCake day1339November 20, 2020
About
Null list in concatenation
View Original