[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: portage.png (63 KB, 750x616)
63 KB
63 KB PNG
they really chose to write this shit in python?
>>
Why wouldn't they?
Python is the patrician's choice.
>>
It works, doesn't it?
>>
>>108553290
even though its slow, not minimal, and their foundation still does DEI
>>
>>108553281
how much performance do you really need from a a package manager?
why do you think some of it is written in C?
>>
>>108553290
Yes, reserved only for Brahmin.
>>
>>108553420
>how much performance do you really need from a a package manager?
i want a lot ideally
they wrote pacman in mostly C
>why do you think some of it is written in C?
theres literally only one C file in the repo (its for checksums)
>>
>>108553281
It just works
>>
>>108553281
>they
if you don't like it, do it yourself freeloader
>>
File: image.png (129 KB, 1440x396)
129 KB
129 KB PNG
>>108553281
>>
>>108553455
It's a source-based package manager. All it does is run git clone and make for you.
>>
>>108553281
>they really chose to write this shit in python?
they had no choice, it was hard to write C++ without AI, so people who couldn't afford to hire a C++ engineer had to use primitive human-centric languages
>>
Gentoo is such a scam it's not even funny, imagine how much time it has wasted distributing code compile when the other distros figured out how to do it once and just distribute the results.
>>
>>108553982
This, they don't have to rewrite Portage in C++, if it works, it works and it does its job well.
They could do so, but it's pointless because you are not getting any marginal improvements since you are already using other toolchains for whatever package you want to compile anyways, and binhosts can be used with no issues either, so OP is pretty much making a nothingburger point, if OP doesn't like it, they could just use anything that's not Portage e.g. the Exherbo Linux project, or switch to Alpine, Chimera or Void.
>>
>>108554033
>>108553982
It still has to parse build recipes to figure out how to build each package and doing it in Python means it's probably slow as fuck. Gentoo is a joke and only idiots would fall for it.
>>
>>108553398
>even though its slow, not minimal
It's a package manager. You run it once, maybe twice a month.
>>
>>108554056
Multiplied by however many people who got tricked into using Gentoo. I do concede that even if portage is slow it's probably only a fraction of the time wasted compiling bloated monstrosity like Chromium and Firefox.
>>
>>108554046
Oh no text processing, how resource intensive! Python has it's use cases and this is a justifiable one for it. Python is only slow when trying to do something really low level like applying filters to images.
Python is actually particularly good at text processing. The functions used for string and buffer manipulation are translated directly to the C standard counterpart. That's why so many websites are written in Python.
This is a non-issue.
>>
>>108554106
If you are using Gentoo you don't care about wasting your time.
>oh let me compile this package for 4 hours to I can apply my custom CFLAGS and save 30ms of runtime efficiency over the next 20 years.
you were always just doing it for fuh.
>>
*fun
>>
funny how all the bloatlords come out of the woodwork with excuses to defend inefficient software on a distro that prides itself on performancr and machine specific optimization
>>
>>108554108
>This is a non-issue.
Maybe for jobless NEETs like you whose time is worthless.
>>
>>108554141
The only other distro capable of this is Cachy so have fun with that ig.
>>
>>108553281
Rust rewrite when?
>>
>>108553281
A bare bones package manager is naturally a shell language.
Using Python as glue isn't really much different.
>>
>>108553905
skill issue desu
>>
>>108553281
recompiling package manager takes time
>>
>package manager
bloat
There is no use case for dependency management
>>
>>108553281
>pacman: isnt written in brainfuck
literally unusable
>>
>>108553420
>>108553455
xbps is written in C.
>>
honestly, package managers should be written in scripting languages
if you want to bootstrap your distro you can just fire up the interpreter and run your package manager and call it a day
>>
>>108554153
the difference in speed between package managers is like 2 seconds, wow such a lot of time
>>
>>108554141
you're so shit at logic
bloat means size, not speed
slow does NOT equal bloat
>>
>>108554141
performance for the compiled packages, not the tool itself
>>
>>108553398
The python interpreter is not even close to being the bottleneck in the performance of a package manager.
>>
>>108554108
>Oh no text processing, how resource intensive!
no matter how many resources you have on your computer, pythons overhead will still always make it much slower than C.
>Python is actually particularly good at text processing. The functions used for string and buffer manipulation are translated directly to the C standard counterpart.
but you are doing this many many times, so the overhead with python will still slow it down
>That's why so many websites are written in Python.
no, its mainly because python code is easy to write
>>
>>108555285
the python interpreter and its standard lib is bloated
>>
>>108555320
overhead only happens once for one C function, subsequent calls use the cache
>>
>>108555320
>pythons overhead will still always make it much slower than C
And "much slower" in this case is a few hundredths of a second.
>>
>>108555356
/usr/bin/python3 is 15K on my gentoo machine
/usr/lib64/libpython.so is 5MB
.py files are text files, not part of the interpreter
>>
>>108554153
mind your own business and don't interact with neets if you hate them so much, holy shit. you are on 4chan.org, the loser site on the inernet yet you expect some kind ofquality? sorry we re just actually read that's why we are good at predictions sometimes
>>
python is garbage and was an absolute terrible choice to write the package manager. if they just want a dynamically typed language there's probably about 50 that would've been a better choice. python is garbage
>>
>>108553281
there is nothing wrong interpreted language, anon
look at SBCL, a Lisp interpreter but it's as fast as C
Cnile shit rots your brain
>>
>>108555375
overhead still happens for each call even with the cache, it just speeds it up a bit
>>
I would prefer my package manager to be written in lua.
You can call c function within it, its super small, and its still an interpreted language where you can quickly change things if something goes wrong.

It is good if you can change your package manager without needing a compiler to recompile. It's like being able to change service files and init scripts.

POSIX shell or lua ftw.
>>
>>108553420
i like python but its really fucking slow takes 10+ seconds on shit that should be instantaneous
>>
>>108554153
its much longer to write it in C than Python, for very small differences at the end. you are the neet because if you had a job in SE you would know this.
>>
>>108553420
for gentoo specifically you do need it to be reasonably quick. been away for 2 weeks, just did a sync and issuing a world update (regular full-system update), it took 59.6 seconds just to resolve what needs to be updated, like before it can even show me what it's going to do, and this is on a ryzen 9 7900x.
reason being is that unlike binary distros where it just needs to compare versions installed vs. available, and any changes deps, gentoo also needs to handle things like use flags, updates can affect use flags and libraries which affect other packages which may need to be rebuilt, etc. probably a reason it IS in python is because it's a lot more complex than a binary distro package manager
it is true that updates like this which affect many packages will spend most of the time overall actually building the packages, which is not affected by what language portage is written in, so it's likely not a high priority issue, it would still be nice to save a couple minutes each update
>>
>>108555406
how about in 2002 when it started?
>>
There is Paludis, a Portage fork written in C++.
But I don't think it's much faster.
>>
>>108555285
>bloat means size, not speed
1. wrong: https://en.wiktionary.org/wiki/bloatware
>(computing, informal) Software that is packed with too many features and therefore slow or unwieldy; software that is inefficiently designed and occupies an excessive amount of memory or disk space.
2. 'size' is similarly ambiguous and can refer to different things depending on context, for example binary size or vm size
3. for any given program specification, outside of lossless compression schemes, an interpreter always increases the lower bound on program-size complexity. you're introducing an additional unnecessary layer of indirection after all

>slow does NOT equal bloat
even taking your redifinition word games for granted, they are in many cases related. a greater number of instructions to retire can increase both size and slowness. more code and data can also increase the probability for cache misses and bad speculation.
>>
File: sip sip sip.png (5 KB, 300x300)
5 KB
5 KB PNG
>>108553281
this feels like the kind of you thread you'd make if you just learned about the overall performance of different programming languages from a chart and suddenly decided Python has no use case because idk C and Fortran are faster when you run a loop a million times
let's just do away with shell too right? why not
anyway since it's open software you're free to rewrite the whole thing in C or Lisp/Haskell if you're a functionalfag to maybe save a few seconds on some operations you run at most once every few months
>>
>>108554106
>>108554124
>what is distcc
>>
File: pacman.png (41 KB, 371x472)
41 KB
41 KB PNG
pacman is written in C
>>
>>108556251
>62.5%
You're not white.
>>
>>108554124
you make it sound like people have to sit at a tty for 4 hours watching text scroll by or something
i just let it run in the background... like anyone else doing updates
>>
>>108553281
Ah fucking downloaded it right into my recycling bin
>>
>>108553281
Yep. I've got it in my OS, and let me tell you, never ever try to make an OS by yourself. The shit they say about being stalked, harasssed, etc, as a private OS developer is true, and in ways that I cannot articulate here. It's happened to me, the grapheneos guy, terry davis,as wellas the Ian Murdock, and also several people from the tor project, whonix, as well. I know this is likely why you made the thread to talk about portage,but just in case it isn't glowie, yes my package works, and no you can't have it, and yes the source is obfuscated
>>
fuck package managers and fuck dynamic linking

everything should be portable and static

kill yourselves
>>
>>108556502
Are these stalkers in the room with us right now?
>>
>>108553420
This is the exact same cope redhat cucks would say and even they were forced to admit it sucked so much they made dnf5.
>>
File: 1340732984731.jpg (71 KB, 596x428)
71 KB
71 KB JPG
>>108553281
grim.
>>108553999
imagine how much time it has wasted in poor limited people's lives that fell for it!
>>108555320
>>108554141
gentoo troons BTFO.
>>
>>108553281
i see what you're doing. you don't need our permission. go start your rust version, tranny.
>>
>>108555713
the wiki states slowness is the result of bloatware, not the definition itself
learn to use logic
>>
File: 1753030194561449.png (558 KB, 640x480)
558 KB
558 KB PNG
>>108555142
>if you want to bootstrap
>fire up the interpreter
>>
>>108556921
Isn't that basically what stage0 is?
>>
It's a package manager, not a crypto miner
>>
File: 1756419527966569.jpg (120 KB, 823x471)
120 KB
120 KB JPG
>>108556992
>not a crypto miner
>>
>>108553281
Unrelated to the topic but Gentoo is the only distro where I NEVER been able to do a luks installation.
>>
>>108556886
>the wiki states slowness is the result of bloatware, not the definition itself
are you illiterate? i copy-pasted the definition verbatim. a conditional statement can be part of a definition. this definition is synonymous with neither "slowness" nor "size", which contradicts your original assertion.

>learn to use logic
i suggest you take your own advice
>>
Alpine Package Keeper (APK) is written in 100% C and is fast as h*ll.
>>
File: Tanenbaum_doesheknow.jpg (1.76 MB, 2317x3045)
1.76 MB
1.76 MB JPG
>>108556997
>>
>>108557622
>Alpine Package Keeper (APK) is written in 100% C and is fast as h*ll
But hills aren't fast. They don't move at all.
>>
>>108553999
>>108556728
>compiling
>wasting time
You wot m8s. Compiling has no role for the user to play - the computer handles it. It's not a bing bing wahoo situation.
>>
>>108556997
gentoo sisters...



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.