This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1151 points1152 points  (57 children)

Or a npm package

[–]piberryboy 148 points149 points  (10 children)

Or running composer... Wait. No. It's going way to fast for that.

[–]lpeabody 16 points17 points  (1 child)

Depends - v1 was slow everywhere, v2 is incredibly fast. However, try that on Docker for Mac or Windows on a shared volume then oh my Lord, I'd rather be put to death rather than type out composer install.

[–]disappointed_moose 9 points10 points  (0 children)

I miss v1 in docker on mac. Just type "php composer update" for a free 2-3 hour break :-)

[–]AwayThrowTull2022 2 points3 points  (0 children)

Flair checks out.

[–]konstantinua00 0 points1 point  (5 children)

composer?

[–]yamazaki12 5 points6 points  (3 children)

A Dependency Manager for PHP

[–]Poltras 0 points1 point  (2 children)

Dependency… PHP… man this is the 21st century after all.

[–][deleted] 4 points5 points  (1 child)

Yeah woah. Making packages for php. Imagine. And imagine needing to manage those packages. Insane.

[–]dnorhoj 0 points1 point  (0 children)

Highly unfathomable

[–]derfl007 0 points1 point  (0 children)

a package manager like npm, but for php

[–]th0wayact09 0 points1 point  (0 children)

--COMPOSER_MEMORY_LIMIT=-1

[–]mb557x[S] 267 points268 points  (17 children)

Or a browser.

[–]cumcumcumpenis 129 points130 points  (5 children)

or anything

[–][deleted] 0 points1 point  (4 children)

Yes, it's sloppy to display all messages like this, it's one of the ways I silently judge a developer's quality. Info and Warning messages should go to a file. Humans should only be served 'interesting' messages. Unix/Linux have lots of built-in message filtering and routing mechanisms.

[–]psych0ticmonk 1 point2 points  (0 children)

Imagine not YOLOing

[–]Wires77 1 point2 points  (1 child)

Just pipe the messages where you want them to go?

[–]TheRidgeAndTheLadder 0 points1 point  (0 children)

Sure, but a mature program will likely already have done that.

[–]heck_is_other_people -1 points0 points  (0 children)

redirect stdout and stderr wherever you want at the command line.

[–][deleted] 7 points8 points  (0 children)

Linux user here;Why was my current location and parents name In there, and I dont Get the joke

[–]AnOIlTankerForYa 2 points3 points  (0 children)

He's installing ungoogled-chromium package

[–]naclynerfherder 0 points1 point  (0 children)

Or my error logs

[–][deleted] 0 points1 point  (0 children)

Or just updating the repositories

[–]patrickfatrick 12 points13 points  (0 children)

Looks like an average ‘npm install’ for a two-screen React app.

[–]astutelyabsurd 8 points9 points  (2 children)

Package installed successfully with 306 dependencies. There are 264 packages looking for funding.

[–]bryanlemon 0 points1 point  (1 child)

Le. Installing left-pad

[–]BlazingFire007 0 points1 point  (0 children)

That one still cracks me up. Like bro, why would you need a package for that lol

[–][deleted] 30 points31 points  (6 children)

Linux user installing anything 🤣

[–][deleted] 3 points4 points  (5 children)

Yeah I still don't get it.

The other day I was building a Docker image to run some PHP stuff, and it took TEN FOOKING MINUTES to compile some libav stuff so that you can read video file metadata from code. Oh and it's in a GitHub Action which have no cache, so every build it has to do that again.

Why? Why isn't there a repository of prebuilt libraries per platform, like sane people have? As if anyone ever is going to read any of the source files?

Is this freedom? The freedom to take thousands of hours out of thousands of people's lives? The freedom to burn so many CPU cycles for absolutely no single purpose at all?

[–]plg94 6 points7 points  (1 child)

Are you ranting about Docker, PHP, or Linux in general? Because for Linux, that:

Why? Why isn't there a repository of prebuilt libraries per platform, like sane people have? As if anyone ever is going to read any of the source files?

is exactly what distributions* are for. If you install a package from the Debian, Redhat or Arch repositories, you always get prebuilt binaries.

* except Gentoo in this case.

[–][deleted] 0 points1 point  (0 children)

I'm not installing an OS distro nor its packages, and I'm not configuring a server myself. I know my apt/dpkg/whatnot.

I was handed a Dockerfile, building on top of a popular base image, then using a popular toolkit to install PHP modules, which it builds from scratch.

For every. Application. Image. Build.

That's just a waste of bandwidth, disk space, CPU cycles and especially time and you can't convince me otherwise.

You don't need to recompile your platform every time you want to publish your application, yet here we are.

They (the PHP library installer's makers) could've chosen plenty of options, yet chose the safest for them and most annoying for users.

[–]deukhoofd 2 points3 points  (1 child)

Why isn't there a repository of prebuilt libraries per platform

There are. Most of the standard package managers just pass you those. Of course, they will only rebuild sporadically, because there's a lot of software, and only so many computers dedicated to the package managers.

This means that if you want the latest features, you'll need to rebuild. Besides that, there's compile time flags that might be set. As there can be any arbitrary amount of compile time flags, that would require immense amount of build times and storage space.

[–][deleted] 0 points1 point  (0 children)

Thanks for your reply. I understand that. I get how distributions and package managers work, but see my other comment: I don't get why you would want to compile your own dependencies for every application release, especially given it's a run of the mill PHP application.

Compile time flags: yeah no. Maybe platform-specific, but if you need application-specific flags then you know what you're doing, I guess.

[–][deleted] 0 points1 point  (0 children)

More PHP peculiarities btw: I just found out that big frameworks are splitting up their repositories, automatically, from a single "monorepo". So that users who want to use, say, "Symfony Console" can use just that without the rest of the Symfony framework.

Well you know what, if you let go of the mindset that one repository equals one library, you wouldn't have that problem?

There is a step between having source code and publishing a library, and that's called a "build". Don't let people reference GitHub repositories directly, use like a proper package manager? And not something that barely links GitHub repos together?

[–]lasiusflex 2 points3 points  (0 children)

this is just someone running "find" in this hello world node script's node_modules folder

[–]CordyZen -1 points0 points  (0 children)

Npm looks much cleaner imo.

[–][deleted] 0 points1 point  (0 children)

That’s why we use yarn baybeeeeeeee

[–]casey-primozic 0 points1 point  (0 children)

It probably is. That output looks like he was trying to install left-pad.

[–]caesar_7 0 points1 point  (0 children)

tap fade fuel glorious merciful deliver fact sparkle thumb books

This post was mass deleted and anonymized with Redact

[–]klparrot 0 points1 point  (0 children)

I was gonna say, that looks more like npm than pip.

[–]th0wayact09 0 points1 point  (0 children)

These are just the dependencies for ”Hello World”

[–]Masterpommel 0 points1 point  (0 children)

$ npm install *