Readit News logoReadit News
Orphis commented on The .a file is a relic: Why static archives were a bad idea all along   medium.com/@eyal.itkin/th... · Posted by u/eyalitki
benreesman · 2 months ago
`pkg-config` works great in just about any standard scenario: it puts flags on a compile and link line that have been understood by every C compiler and linker since the 1970s.

Here's Bazel consuming it with zero problems, and if you have a nastier problem than a low-latency network system calling `liburing` on specific versions of the kernel built with Bazel? Stop playing.

The last thing we need is another failed standard further balkanizing an ecosystem that has worked fine if used correctly for 40+ years. I don't know what industry expert means, but I've done polyglot distributed builds at FAANG scale for a living, so my appeal to authority is as good as anyone's and I say `pkg-config` as a base for the vast majority of use cases with some special path for like, compiling `nginx` with it's zany extension mechanism is just fine.

https://gist.github.com/b7r6/316d18949ad508e15243ed4aa98c80d...

Orphis · 2 months ago
Have you read the rationale about CPS? It gives clear examples as to why it doesn't work. You need to parse the files and then parse all the compiler and linker arguments in order to understand what to do with those to properly consume them.

What do you do if you use a compiler or linker that doesn't use the same command line parameters as they are written in the pc file? What do you do when different packages you depend on have conflicting options, for example one depending against different C or C++ language versions?

It's fine in a limited and closed environment, it does not work for proper distribution, and your Bazel rules prove it as it is not working in all environments clearly. It does not work with MSVC style flags, or handles include files well (hh, hxx...). Not saying it can't be fixed, but that's just a very limited integration, which proves the point of having a better format for tool consumption.

And you're not the only one who has worked in a FAANG company around and dealt with large and complex build graphs. But for the most part, FAANGs don't all care about consuming pkg-config files, most will just rewrite the build files for Blaze / Bazel (or Buck2 from what I've heard). Very few people want to consume binary archives as you can't rebuild with the new flavor of the week toolchain and use new compiler optimizations, or proper LTO etc.

Orphis commented on The .a file is a relic: Why static archives were a bad idea all along   medium.com/@eyal.itkin/th... · Posted by u/eyalitki
benreesman · 2 months ago
It is unclear to me what the author's point is. Its seems to center on the example of DPDK being difficult to link (and it is a bear, I've done it recently).

But its full of strawmen and falsehoods, the most notable being the claims about the deficienies of pkg-config. pkg-config works great, it is just very rarely produced correctly by CMake.

I have tooling and a growing set of libraries that I'll probably open source at some point for producing correct pkg-config from packages that only do lazy CMake. It's glorious. Want abseil? -labsl.

Static libraries have lots of game-changing advantages, but performance, security, and portability are the biggest ones.

People with the will and/or resources (FAANGs, HFT) would laugh in your face if you proposed DLL hell as standard operating procedure. That shit is for the plebs.

It's like symbol stripping: do you think maintainers trip an assert and see a wall of inscrutable hex? They do not.

Vendors like things good for vendors. They market these things as being good for users.

Orphis · 2 months ago
pkg-config works great in limited scenarios. If you try to do anything more complex, you'll probably run into some complex issues that require modifying the supplied .pc files from your vendor.

There's is a new standard that is being developed by some industry experts that is aiming to address this called CPS. You can read the documentation on the website: https://cps-org.github.io/cps/ . There's a section with some examples as to why they are trying to fix and how.

Orphis commented on Covert web-to-app tracking via localhost on Android   localmess.github.io/... · Posted by u/sebastian_z
bravesoul2 · 3 months ago
There are surely other ways to achieve this. If you are logged into an app and the site at tbe same time they can use the server to communicate. Discord doesn't need to know if the app is installed to work. That sounds sketchy.
Orphis · 3 months ago
It's just a way to ensure you open the desired context on a local Discord instance, not any instance that might be logged in to your account. I have a few personal computers logged in on Discord on the same account that could be active at the same time for example.
Orphis commented on 240W USB-C PD chargers are nearly here, says Framework CEO   theverge.com/2023/6/8/237... · Posted by u/blakeashleyjr
CoastalCoder · 2 years ago
Is it possible for a (laptop + USB-C PD power charger) to support multiple charging rates?

My Lenovo Legion 5 has a 300W charger. Caveats: (a) I'm not sure if that's input power or output power; and (b) it's not a USB-C PD connector , but my question isn't specific to this laptop.

Airplane A/C power outlets aren't willing to deliver that much power. And even if I was willing to slow-charge the laptop on an airplane or with my car, the laptop isn't willing to cap the charge rate, so it's simply not an option.

So I'm wishing for some scheme that lets me slow-charge a laptop in those situations, even if it meant having two different A/C adapters.

Orphis · 2 years ago
I have this laptop and I've charged it with USB-C PD at 90W on multiple occasions. What chargers have you tried?
Orphis commented on Advantages of Monorepos (2015)   danluu.com/monorepo/... · Posted by u/Naac
honkycat · 3 years ago
The thing about monorepos is similar to the the thing about micro-services: they require a lot of tooling and discipline and documentation that most organizations do not have.

On our multi-repos I have consistently seen dozens, if not hundreds, of stale pull requests and branches and issues piling up never to be merged. This compounds with a monorepo.

Additionally, how do you avoid doing pointless builds when new features are pushed? I can only imagine what the `.github` folder in a monorepo looks like.

For me it is similar to the "one large file" argument, and why I don't agree: obfuscation is bad, but information hiding is GOOD. When I open a file, I want the information relevant to the current domain I am working in, not all of the information all at once.

Similarly, when I open a github page, I want its issues, pull requests, branches, and wiki to represent the state of a single project. The one I am currently interested in. You lose this with a monorepo.

You can argue "well tooling can..." yes tooling that does not exist and that I do not want to implement. Similar to the "one large file" argument, editors are set up to manage many different files with tabs. You COULD just compile the code and navigate symbols, but that isn't the world we currently live in.

Orphis · 3 years ago
> Additionally, how do you avoid doing pointless builds when new features are pushed? I can only imagine what the `.github` folder in a monorepo looks like.

It's simple, with proper tooling, you know exactly the dependencies, so you know which test depend on the affected files and can run those tests, the rest shouldn't be impacted. And that tooling exists. It's not the one you may be using, but it exists, and not just in FAANG.

Orphis commented on HTTP/3: Everything you need to know about the next-generation web protocol   portswigger.net/daily-swi... · Posted by u/homarp
throw0101a · 4 years ago
> HTTP/3 runs over QUIC – an encrypted general-purpose transport protocol that multiplexes multiple streams of data on a single connection.

Kind of sucks that SCTP, which also allows for multiplexing, never caught on for general use—probably because lack of support in various mid-network network boxen.

I guess we're generally stuck with tunnelling everything over HTTP (TCP and UDP) going forward. Every other kind of protocol implementation is out of the question because of NAT and various proxies.

Orphis · 4 years ago
It would help to have quality implementations of the full SCTP specs first.
Orphis commented on Apple will charge 27% commission for alternative payment systems in Netherlands   9to5mac.com/2022/02/04/ap... · Posted by u/walterbell
makecheck · 4 years ago
Apple allows “free apps” that are entirely ad-supported, never giving Apple a dime (aside from $99/year), yet they are consuming infrastructure: hosting pages, downloads, reviewer time, etc. Why isn’t Apple concerned about any of those costs? Simple: they make overwhelmingly most of their App Store money from the handful of developers that offer purchases. This also leads to perverse outcomes like Apple dragging its feet on scams that make them heaps of money.

Developers are literally subsidizing other developers, and it’s not necessarily the richest ones helping the poorest ones. Someone trying to make money on a $0.99 app is sacrificing more to Apple than Facebook does with their free app.

That’s why I find all these percentage and payment discussions weird: income is so insanely distributed that a lot of this literally does not apply to more than 80% of the stuff on the store. There are fundamental issues that need to be resolved too.

Orphis · 4 years ago
Do you really think the hardware costs THAT much too?

Users are already paying a premium for the privilege of buying an iOS device. And Apple knows that usually it will add some pressure on friends and family to have devices in the same family. Everything related to the app store is already paid for, the bandwidth is cheap, maintaining the service is cheap enough and covered by the device premium AND the developer subscription.

Whether the apps are free or paid for (with a big cut for Apple), the company is already making money. The tax on top of everything is just a way to make a lot of money and favor Apple services when compared to competitors in the same segment.

Orphis commented on Minitel: The Online World France Built Before the Web (2017)   spectrum.ieee.org/minitel... · Posted by u/adrian_mrd
JPLeRouzic · 4 years ago
Thanks, In France it started with PPPoA, yet quickly it moved to PPPoE (~1999). People indeed used PCs not minitels to connect to the new thing of the time (Internet). At the time there was a need to update PCs as most individual or family customers had Windows 98. My experience is that it added instabilities to PC with Win98 where if I remember correctly PPPoE worked out of the box with Win2K and WinXP (it's was a long time ago). Anyway most home PCs of the time where not to able to deal with the speed of ADSL. I remember that the owner of a restaurant in Rennes wanted us to pay them a new PC!
Orphis · 4 years ago
While PPPoE worked on WinXP, driver support when transitioning to XP was quite a big issue for some. I still remember hacking the inf files to get my modem work on it as an early adopter.
Orphis commented on Minitel: The Online World France Built Before the Web (2017)   spectrum.ieee.org/minitel... · Posted by u/adrian_mrd
topicseed · 4 years ago
http://3611.re/ to have a feel
Orphis · 4 years ago
And it's not even dummy data, I was able to look up relatives on it :o
Orphis commented on Unvaccinated workers who lose jobs ineligible for unemployment benefits (Canada)   edmontonjournal.com/news/... · Posted by u/peteradio
logicalmonster · 4 years ago
Whatever one thinks about seatbelts and the ethics of seatbelt laws, they’re a horrendously bad analogy for “vaccines”. A seatbelt can always be removed after use. A “vaccine” cannot. If somebody is concerned about potential issues with the “vaccine” comparing it to a seatbelt feels disingenuous because the “vaccine” can never be undone.
Orphis · 4 years ago
Your body is undoing the vaccine just fine. It's just ARN, it's discarded after a while. Didn't you learn that in your bio classes or did you think it would never be useful? The rest is just practice for that precious immune system. What's wrong about it? Don't you trust it to do the right thing?

I personally don't because I know about autoimmune diseases, but hey, you seem to be of that "crowd" who only talks in quotes because they don't understand much.

u/Orphis

KarmaCake day312February 12, 2018View Original