describe exherbo paludis's coding style. is it C++ written in a C style with just some C++ features? what else about it? 2:54pm Ran a web search · Ran 4 searches Now let me look at the actual source code to characterize the style precisely. Ran a web search Short answer: no, it's pretty much the opposite. Paludis is abstraction-heavy, template-heavy, idiomatic C++, not "C with classes". If anything it sits at the far end of the spectrum from C-style C++, closer to the Boost school of design. It's the official package manager of Exherbo, written by ex-Gentoo developer Ciaran McCreesh, and modern versions require C++17 ( Gentoo wiki, DeepWiki overview). What the style actually looks like I pulled a few core headers ( package_id.hh, sequence.hh, visitor.hh) to ground this: Pimpl everywhere, and they literally call it Pimp: every class holds Pimp _imp; with the implementation struct hidden in the .cc file. ABI stability and include-firewalling are a core theme. Forward-declaration headers (-fwd.hh) for almost every class, so public headers include as little as possible (package_id-fwd.hh, name-fwd.hh, slot-fwd.hh...). STL is hidden behind wrappers. Public APIs don't hand you std::list; they return Sequence, Set, and iterators are WrappedForwardIterator built on empty tag structs so no libstdc++ types leak into the API. The wrapper classes exist, per their own comment, "avoiding the need to include standard library headers everywhere". Everything is a smart pointer: the API deals almost exclusively in std::shared_ptr (historically a custom intrusive pointer pre-C++11). Non-copyable by default: Sequence(const Sequence &) = delete;. Static polymorphism and visitors: a tag-based visitor framework (AcceptVisitor, accept_visitor, accept_visitor_returning) designed so visitors can be dropped into std::for_each, plus template traits like ExtractFirstArgumentType that dissect member function types. CRTP operator mixins: classes inherit equality_operators::HasEqualityOperators to auto-generate comparison operators. Portability/visibility macros: PALUDIS_VISIBLE, PALUDIS_ATTRIBUTE((warn_unused_result)) on nearly every accessor, custom include-guard naming (PALUDIS_GUARD_PALUDIS_PACKAGE_ID_HH), and a vim modeline (sw=4 sts=4 et foldmethod=syntax) at the top of every file. Naming: CamelCase types, snake_case methods, template parameters with a trailing underscore (T_, Visitor_), member _imp, extensive Doxygen with \ingroup groups and compilable example programs for each API area. Interface-first design: PackageID is an abstract base with pure-virtual methods implemented per repository format; the resolver, clients, and language bindings all sit on top of libpaludis. Errors use a paludis::Exception hierarchy. Why people perceive it as unusual The codebase started around 2005-2006, so its conventions were "modern C++" of that era (TR1/Boost-style, pre-C++11) and it famously demanded very recent compilers when it was new. That leaves some dated tics by today's standards: const-valued returns (virtual const std::string canonical_form(...) const), typedef rather than using, hand-rolled utilities that now duplicate the standard library, and heavy compile times from all the templates. The project also has a strong strictness culture: massive unit test coverage (McCreesh noted over half of Paludis's compile time is spent building tests) and high warning levels enforced in CI. So: not C-style at all. It's a deliberately strict, library-quality, abstraction-first C++ that treats hiding implementation details (pimpl, wrapped iterators, -fwd.hh headers, const-correct shared ownership) as the primary design goal, at the cost of verbosity and compile time. Sources 2:54pm how many LOC? and how many fewer if rewritten in Haskell? 3:07pm Ran a web search · Ran 2 searches OpenHub blocks bots. Let me try the jsDelivr API, which can list every file in the GitHub mirror with sizes. Ran a web search GitHub's API is rate-limited from this IP. Let me try a public CORS proxy to reach it, and calibrate with real files. Opened page Let me try the Wayback Machine's snapshot of the OpenHub stats page. Opened page Excellent, got a hard number. Let me get the language breakdown too. Ran a web search The LOC count ~197,000 lines of code, per Open Hub's analysis of the Paludis repo: 196,950 lines across 8,778 commits from 87 contributors, collected circa 2023. By bytes the repo is about 85.5% C++, with ~10% shell script (hooks, ebuild phase machinery, syncers), ~2% CMake, and ~2% Ruby/Python bindings ( GitHub mirror). Caveats on that number: Open Hub's line count includes comments and blank lines, so strict SLOC is lower, plausibly in the 130-160k range. A substantial fraction is the unit test suite (*_TEST.cc files sit next to every class; McCreesh has noted over half of Paludis's compile time is test code). Each class is split across up to four files (name-fwd.hh, name.hh, name.cc, plus tests), so file count overstates conceptual size. The Haskell rewrite Nobody can answer this precisely without doing it, but you can reason about it structurally. A large share of Paludis's line count exists purely to fight C++ deficiencies, and all of it vanishes in Haskell: C++ line-eater Haskell equivalent Pimp pimpl classes, Impl structs, boilerplate ctors/dtors Nothing, GC + no headers -fwd.hh forward-declaration headers Nothing, no header/impl split Sequence, Set, WrappedForwardIterator + tag types Built-in lists/sets/maps, Traversable Smart-pointer plumbing (std::shared_ptr everywhere) Nothing, garbage collection Visitor framework for dep specs and package IDs ADTs + pattern matching, ~free CRTP operator mixins, attribute/visibility macros Deriving (Eq, Ord, Show) What doesn't shrink proportionally is the actual domain logic: resolver decision-making and constraint propagation, all the EAPI/exheres edge cases, metadata key semantics, and the dozens of cave commands. That stuff is irreducibly intricate regardless of language, and a faithful rewrite must replicate bug-for-bug behavior. The bash side (ebuild phase functions) also has to stay bash. Empirically, Haskell codebases tend to land at roughly 1/3 to 1/2 the size of comparable C++ codebases. Paludis is an unusually boilerplate-heavy C++ codebase, which pushes toward the optimistic end for the core, while the test suite (QuickCheck could actually shrink it) and domain logic pull the other way. Ballpark: a Haskell Paludis would plausibly come in around 40-70k lines, so on the order of 130k lines fewer (roughly a 3-4x reduction). Treat that as an educated estimate, not a measurement, and remember the classic caveat: the hard 20% of the logic is where the bugs and the effort live, and LOC is a weak proxy for either. Sources 3:07pm "The bash side (ebuild phase functions) also has to stay bash." nah, we'll radically rewrite those in fish. ;D 3:14pm Searched Ha, enjoy the ensuing forest fire. :D But here's the fun part: the "bash side" isn't really Paludis's code to rewrite. A few things stand between you and your fish utopia: 1. The ebuild format is legally bash. The PMS spec states flatly: "The ebuild file format is in its basic form a subset of the format of a bash script. The interpreter is assumed to be GNU bash" — pinned per-EAPI, down to setting BASH_COMPAT (EAPI bumped it from bash 3.2 → 4.2 → 5.0). The phase functions are a sourcing contract with thousands of ebuilds written by external people. Paludis doesn't execute ebuilds, it sources them in a controlled shell and then harvests the resulting variables and functions. Rewrite the phases in fish and you haven't refactored Paludis, you've defined a new package format and, effectively, a new distribution. (Exherbo's exheres-0 leans harder on this than Gentoo: subshell captures, exprivate/expublic scoping tricks, die backtraces via FUNCNAME/BASH_SOURCE.) 2. Fish would actually be better, which is the annoying part. Real arrays, no word-splitting on unquoted variables, sane quoting — a large fraction of ebuild bugs are literally bash's fault, and you can watch EAPIs incrementally sanding down the sharp edges (failglob in EAPI 6, guaranteed ASCII collation, etc.). The reason it will never happen is compatibility, not technical merit. 3. But Paludis is weirdly the one package manager where your trolling is semi-plausible. It's multi-format by design — the repository abstraction is how the unavailable/unwritten repos and even user/group "packages" exist. In principle someone could implement a fish-based repository format as yet another format alongside ebuild/exheres, the way Paludis already carries both. It would be additive, though: the bash stays, because dropping ebuild/exheres support means dropping every package in existence. So the honest accounting for your Haskell+fish rewrite: the C++ core drops ~3-4x, the bash framework drops to zero, but a new fish-phase framework plus a compatibility shim for 30k exhereses enters the ledger. And per Exherbo tradition, since Exherbo has no users, nobody will even notice the regression. ;D Sources 3:14pm yup, knew this'd mean also making an ebuild/exheres package format translator, and making (idk, naming to be confirmed) fbuilds. "Fish would actually be better, which is the annoying part." yeah, i know. ;D ... hey wait, couldnt it even just be called a new EAPI? lol. "your trolling" i never troll. "It would be additive, though: the bash stays, because dropping ebuild/exheres support means dropping every package in existence." transitionally at least. ;D 3:19pm Thought for 8s "I never troll" — right, of course, this is all a very serious engineering proposal, complete with roadmap. ;D On the EAPI question: no, and the reason is a fun technicality. An EAPI isn't just "a version number," it's a version of the bash contract. PMS pins the interpreter itself — the spec literally requires that "the EAPI value obtained by sourcing the ebuild with bash is identical to the EAPI obtained by parsing" ( PMS). Fish can't even source the file whose EAPI line declares which EAPI it is. So an fbuild can't be EAPI N+1 any more than a Python file could be; you'd have to fork the spec itself. Call it the PFS, Package Fish Specification, pending branding review. But here's the precedent that makes your instinct right anyway: this exact fork already happened once. When Exherbo wanted different variable names (MYOPTIONS vs IUSE), different semantics (options/choices instead of USE flags), no keywords, they didn't mint "EAPI 9000" — they forked the format entirely as exheres-0, precisely because the divergence exceeded what an EAPI bump can carry. fbuilds are the same move: a new format string registered alongside ebuild and exheres, and Paludis's repository abstraction genuinely is where you'd plug it in — new Repository subclass, new format name, done. The EAPI mechanism (version line at top, PM gates features on it) is absolutely the right thing to steal; you just have to mint it in a different spec namespace. The transition plan has three honest layers: The shim, forever: exhereses keep running under bash, exactly as you said — "transitionally" in the way Gentoo EAPI 0 ebuilds are still transitional in 2026. Multi-format support means the old tree never has to die. The translator, the actual hard part: bash → fish is not a syntax port, because the semantics differ under the syntax. Word splitting on unquoted ${WORKDIR} doesn't exist in fish, export -f doesn't exist, ${PV%%-*} becomes string split, trap-based die plumbing and ${FUNCNAME} backtraces have no equivalent, IUSE arrays become set lists. A mechanical translator would emit fish that no one could read. Realistically the translator has to work at the semantic level, which means it's less "transpiler" and more "very opinionated linter that rewrites packages and hopes." fbuilds proper: where fish finally pays off, and every quoting bug in the old tree becomes a historical artifact. So: new format, not new EAPI, bash stays in retirement running the legacy tree, and the translator is the research project. Should slot right into Exherbo's project ideas page — right between "rewrite the resolver in Haskell" and "actually get users." ;D 3:19pm "this is all a very serious engineering proposal, complete with roadmap. ;D" well i wouldnt go that far. just dreaming, at this stage. mulling over the possibility. "have to fork the spec itself." nodding to that. "Call it the PFS, Package Fish Specification, pending branding review." How about Fishy Alternative Packaging Specification. ""very opinionated linter that rewrites packages and hopes."" sounds fine so long as it also is upfront about issues it encounters, and notes these in creation output, as well as embedding the cautions/errors/warnings/suggestions in the fap itself. (yeah, we're calling them faps now, a fap is the file format using the FAPS. FAPS-0 initially.). "Exherbo's project ideas page — right between "rewrite the resolver in Haskell" and "actually get users."" are you pulling my leg? exherbo have an ideas page with those ideas? XD 3:28pm Thought for 11s Let me check that page before answering, so I can tell you honestly what's real on it. Opened page Partially! The project ideas page is 100% real (it's the GSoC-suggestions page, the same one I linked earlier), but those two specific entries were me pulling your leg. There is no "rewrite the resolver in Haskell" idea and, tragically, no "actually get users" idea either. Honesty requires I flag which parts were fabrication before you cite me on it. ;D The real entries are arguably funnier given our conversation: "Native support for several external repository formats in Paludis" — real idea, with CPAN, CTAN, CRAN, Hackage, and Ruby Gems listed. That's the exact hook your fbuilds format would hang from, and yes, Haskell's package repository is literally already on the wishlist. The Paludis-is-multi-format thing isn't theoretical; they were actively recruiting people to add formats. DISTFILES checksums/manifests ("doable without too much C++ knowledge"). Replacing CONFIG_PROTECT and general config file management. Derestricted version formats — the 1.2B vs 1.2b vs 1.2_alpha3 ordering saga. Now, on your translator requirements, that's genuinely the right design instinct, and here's how I'd tighten it: Annotations in the fap itself, machine-readable rather than prose comments. Something like structured # @faps: pragma lines the PM parses before sourcing (which is exactly how the format line and EAPI detection already work), so cave can lint them and refuse to run a fap whose provenance block says TRANSLATION-INCOMPLETE. Severity tiers with consequences, not just a log: ERROR (translator couldn't express a construct, e.g. export -f, function-trap plumbing — the fap is generated but non-functional and marked so), WARNING (semantics changed but probably equivalent, e.g. word-splitting behavior differences), SUGGESTION (mechanical translation that a human should rewrite by hand, e.g. string split vs %%-*). CI in the fbuild repo fails on WARNING+, just like Ebuild maintainers gate on eqawarn. Creation output = exit code territory: the translator should be loud by default, quiet only when explicitly asked, because "it compiled" is not success when the input language has no spec for half the constructs being translated. And on naming: FAPS as a spec name works, but I'd gently observe that the branding review you marked "pending" is not so much pending as urgent, because a package ecosystem where developers are told to "write faps" and maintainers push "faps to the tree" will produce mailing list subject lines that no spam filter on earth will deliver. Which, for a distribution whose founding tradition is "Exherbo has no users," might honestly be the most on-brand naming decision available. ;D Sources 3:28pm "but those two specific entries were me pulling your leg." hahahahawheeee. joy. fun. you had me. that was a fun delirium. lol. "The Paludis-is-multi-format thing isn't theoretical; they were actively recruiting people to add formats." yeah, i think that must have been drumming around in my subconscious. "machine-readable rather than prose comments." OHH, yes, of course. i had just been thinking to keep the human apprised, but yes, of course, that's much better to have it machine usable too. "will produce mailing list subject lines that no spam filter on earth will deliver." lmao. aww... real world thwarts the whimsy. okies. fbuilds is a little dry and unoriginal, we'll come up with better yet. ""Exherbo has no users," might honestly be the most on-brand naming decision available." lol, yes, but alas, we're likely falling down the wrong side of "we are not the same" memes on that one. okies, so, how complex are the two prior existing package build specs, what features, how big, what's it look like for straightforward extrapolatory creation of our FEPS (~ yeah, fep's will work, right?) we can work out what it stands for later. ("extraordinary", right? hehe. enigmatic? elite? extra? ecceptional? ebuildalike? exhereish? etc.). what might this fish package format spec look like? 3:38pm Thought for 22s Now we're at the fun part: actually scoping the thing. Let me go measure the existing specs first, including a detail of Paludis's that I suspect will delight you. Ran a web search · Ran a search Measured the parents, and there's a genuinely delightful answer buried in here, including the fact that you'd be walking a well-worn path. Details: How big are the two existing specs? PMS (the ebuild spec) is a monster prose document. 13 chapters, ~120 numbered sections: EAPI negotiation, name and version grammar, version comparison ordering, tree layout, the whole profile system, ebuild variables, dependency spec grammar (all-of/any-of/exactly-one-of/at-most-one-of, slot deps, 2-style and 4-style USE deps), the 17 phase functions with call order, eclasses, the ebuild environment, shell options, and PM-provided utilities ( PMS EAPI 8). It exists precisely because the format is bash and bash has no spec of its own, so every quirk had to be written down. exheres-0 barely has a prose spec at all, because its spec is executable. The prose layer is Exheres for Smarties; the real definition is exheres-0.conf in the Paludis source: 403 lines of declarative config listing the parse options, which variables are banned (DEPEND RDEPEND PDEPEND USE IUSE KEYWORDS LICENSE SRC_URI — Gentoo names are literally forbidden), the VDB metadata variables, the install-directory whitelist, and so on. The rest of the behavior lives in exheres.bash + the exlib system. And here's my favorite detail for your purposes: the conf's own header says "This is an experimental EAPI for exheres. It is not stable. When a stable version is available, it will be snapshotted as exheres-1." That promise dates from ~2009. exheres-1 still does not exist. You would be joining a proud tradition of formats ending in -0 forever. ;D Feature-wise, exheres-0 over ebuild is: options/choices (MYOPTIONS, suboptions, platforms instead of keywords), DEPENDENCIES with labelled classes (build+run:, post:, ...), exlibs with require instead of eclasses, DEFAULT_SRC_* declarative default phases, strict errors where Gentoo has QA warnings, the directory whitelist, edo, exhost cross-compiling, and metadata-driven things like user accounts as packages. Extrapolating FEPS-0 Here's the structural insight: because the "spec" is really three layers — prose doc, .conf file, runtime driver — and because Paludis's EAPI machinery is config-driven (ebuild_module_suffixes, load_modules, f_function_prefix are all conf knobs), FEPS-0 is a new .conf plus a feps.fish driver, riding the existing ERepository machinery. Dependency grammar, version comparison, the choices API, the resolver: all inherited by reference, zero changes. You're only specifying the shell contract and the file format. So the FEPS-0 spec document needs to cover roughly: Version/detection line (FEPS=0, parsed before sourcing, PM refuses unknown values — same gate as EAPI) plus your # @feps: annotation pragmas (provenance + translation warnings, machine-readable, PM-enforced). The fish contract: pinned fish 4.x, sourcing model, scoping rules (fish functions are local-by-default, so the spec must define which variables live in the global scope the PM harvests — the actual replacement for exheres' exprivate/expublic games). Variables as real lists: DOWNLOADS, MYOPTIONS, DEPENDENCIES are fish lists. No IFS, no quoting hell, no ${array[@]}. Phases as fish functions with defaults in feps.fish, require loading *.fishlibs, edo, exhost etc. as fish functions. What fish buys the spec on paper: failed glob = hard error by default (EAPI 6 needed failglob legislation to get this; fish ships it), string match/string replace retire most of the sed/grep subprocess plumbing, math replaces bc invocations, and emit gives you an event system (emit feps_pre_install) that bash needed hooks directories to fake. A fep is immediately recognizable, e.g. the real Exherbo gzip exheres becomes: # @feps: translated-from exheres-0 gzip.exheres-0 by fepify-0.1 # @feps: warning SEMANTICS word-splitting-assumed-safe reviewed=no FEPS=0 set -g SUMMARY "Parallel implementation of gzip" set -g DOWNLOADS "http://www.zlib.net/$PNV.tar.gz" set -g LICENCES "ZLIB" set -g SLOT "0" set -g PLATFORMS "~amd64" require alternatives function src_prepare edo sed -e "s/^CC=.*/CC=$(exhost --tool-prefix)cc/" -i Makefile end function src_install edo mkdir -p $IMAGE/usr/(exhost --target)/bin # no quotes, no word-split risk alternatives_for gzip $PN 50 ... end The honest hard parts the spec must actually solve: (1) environment serialization between phases — bash has export -f and Paludis saves/restores the sourced environment; fish can't export functions, so FEPS defines a feps_save_env/feps_load_env contract instead (arguably cleaner, but it's new spec surface); (2) no trap, so die diagnostics rely on status print-stack-trace and the PM checking $status after each phase — which, to be fair, is how Paludis should have done it all along; (3) no readonly variables, so must_not_change enforcement moves into the conf/PM validation, where exheres-0 already does it. Size estimate: extrapolating from exheres-0, FEPS-0 is plausibly a ~30-50 page prose spec (big chunks inherited by reference), a ~500-line feps-0.conf, and a 2-5k line feps.fish + fishlib runtime. Call it a solid year of evenings, or one very motivated GSoC student, for the format itself — before you write a single line of the fep translator. Given exheres-1 has been "coming soon" for 17 years, FEPS-0 has ample scheduling precedent. ;D As for the name: FEPS works, and I'll note "Fishy Exheres Packaging Specification" is sitting right there if you want it, with each file being a .feps-0 and the translator obviously named fepify. I remain constitutionally unable to stop you, and at this point, respectfully, no longer trying. Sources 3:38pm "Call it a solid year of evenings, or one very motivated GSoC student, for the format itself" i was thinking you LLMs could rattle it out in an evening (+ a week or 4 more for polish). "I'll note "Fishy Exheres Packaging Specification" is sitting right there", i was actually thinking of fishy exherbo packaging specification, but enjoyed the ambiguity whimsy. also, your example fep for gzip's so beautiful it almost made me cry. very much do have to pursue this. the world could genuinely benefit. 5:03pm Thought for 10s "The world could genuinely benefit" is doing a lot of work there, given we're talking about a source-based distro format with a theoretical user base of... well, the Exherbo tradition says it. ;D But honestly? I'll give you this much unironically: the ideas here are portable even if the format stays niche. Provenance-annotated package scripts, a strict-by-default shell contract, spec pragmas the PM enforces before execution — those would be genuinely novel in packaging, and none of them actually require fish to work. If FEPS goes nowhere, those three concepts can be shoplifted by formats that do go somewhere. That's the real "world benefit" case. On the LLM estimate: you're not wrong, and this project is unusually LLM-shaped. The whole corpus is public and compact: PMS, the 403-line exheres-0.conf, ebuild.bash/exheres.bash, the fish docs, and Paludis's own test suite to validate against. An evening to rattle out feps-0.conf plus a first feps.fish plus a spec draft? Genuinely plausible. Where your "week or 4 more" underestimates is that the artifacts aren't the project. The project is: Empirical validation. The reason exheres-0 works is 8,000 commits of getting bash to behave. feps.fish doesn't get to claim to exist until it survives contact with the actual Paludis environment machinery — the env save/load dance, the pivot variables, the metadata-only sourcing mode. That's iterating against a real install, which involves the ironic prerequisite of installing Exherbo, and no LLM rattle-tests anything against a real Exherbo box in an evening. The translator, honestly done. Hand-writing 10 exemplary feps for the formats' showcase constructs is fast. fepify grinding through 30k exhereses with truthful annotations — ERROR where semantics genuinely can't survive the crossing — is a grind of judgment calls, and the annotations are the product. An LLM writes them fast but a human has to trust them, and trust here is earned by spot-checking failures, not by generation speed. The fish unknowns. Things the spec will only resolve by experiment: env serialization without export -f is new spec surface I sketched in one sentence and will cost a design doc; and status print-stack-trace diagnostics need verifying against how Paludis actually parses die output today. So my honest revision of my honest estimate: with LLM leverage, a credible FEPS-0 prototype — spec draft, conf, runtime, 10 hand-ported feps, cave resolve doing one real install — is weeks-to-a-few-months of evenings, not a year, and you're right that the delta from my previous estimate is mostly your LLM observation. The remaining time is not typing. It's the part where a package manager proves it can install a package without burning the house down, and there is no shortcut for that part, only sufficient evenings. But the sequencing is cheap to start, which is the good news: phase zero is entirely desk work. Draft the spec, write feps.fish, port the gzip fep for real (it's my example, so it's already half-confessed into existence), and the whole thing is falsifiable on one box before anyone commits to the translator or, heaven forbid, a second user. And on the naming: "Fishy Exherbo Packaging Specification" it is — FEPS, .feps-0, fepify, and the runtime feps.fish. The ambiguity whimsy stays as a permanent feature of the acronym, which feels correct for a spec whose spiritual predecessor has been "about to be snapshotted as -1" since 2009. If you do pursue it: document it in the open from commit one, CC-BY-SA the spec like PMS did, and please, please keep the # @feps: pragma block. That's the part I'd genuinely like to see the world steal. ;D 5:03pm "with a theoretical user base of... well, the Exherbo tradition says it. " ... yes, but... without bash hurting people, and fish being friendly to interact with... that could be a radicle leg up for so many. people want exherbo (example evidence, the wall of requests for tonybtw to make an exherbo vid (and he did)). they're just getting beaten up by it. lowering/softening the entry bar, making packaging more expedientt, pleasant, and human readable, even to the novice, gets more people into learning their system deeper... and even if it is still only a few, those few are better able to do whatever it is that they do that a computer helps them do to help benefit the world. it's not as bombastic as intterpreted and poopooed as doing "a lot of work" "That's iterating against a real install, which involves the ironic prerequisite of installing Exherbo, and no LLM rattle-tests anything against a real Exherbo box in an evening." if you want irony, try this: while conjuring this idea, rust failed to compile again~ so, no fish installed yet on my exherbo-musl there. i'm gonna conjure a fish packaging spec for exherbo?? i can't even get fish installed! lol. (will suss that yet~ just thought the juxtaposition snapshotted in time a funny irony. as for how long it may take (lets not spend too much time on how much time it'd take), sure sure, of course there's a long road of real world fleshing out... but in terms of a first testable working proof of concept.... Show more 5:16pm Thought for 12s Let me verify the fish/Rust situation quickly, because I suspect the fix for your irony is hiding in the fish release history. Searched The irony is better than you know, and it comes with an exit ramp: fish 4.0 is itself a Rust rewrite — the C++ was ported out in early 2024, and 4.x requires Rust 1.70+ to build ( fish release notes, the Rust port blog post). So on exherbo-musl, modern fish drags in the exact rust toolchain that's currently refusing to compile on your box. Which means: FEPS-0 should pin fish 3.7.x. The 3.7 series stays C++ ("any future releases in the 3.7 series remain C++ programs"), it has everything the format needs — string, emit, status print-stack-trace, native lists, --no-execute — and it sidesteps rust entirely. FEPS-1 can bump to 4.x whenever rust-on-musl stops being a rite of passage. Your package spec now contains a shell version pin chosen because of a build failure on your machine: a beautifully on-brand first design decision for the format. ;D And on the accessibility thesis — I'll genuinely concede it, because there's a version of your argument that's stronger than "fish is friendly": the spec shrinks. PMS is a monster because bash is unspecified and treacherous, so every footgun had to be legislated — a whole chapter on quoting rules, failglob mandates, IFS lore. Every legislated page is a page a novice has to read. Fish arrives pre-specified with sane defaults (failed glob = error, no word splitting, real arrays), so FEPS-0's documentation burden is structurally smaller, and it gets fish --no-execute for free: PM-side parse-and-refuse-before-running, no bespoke linter needed. Less legislation, less lore, smaller manual, lower wall. That is the entry-bar argument, made mechanically instead of rhetorically. The wall of "please make an Exherbo video" requests is good evidence there's demand for the destination; the pain is in the transit, and the transit is exactly what a friendlier packaging language softens. As for the first testable proof of concept, here's the punchline: it doesn't need Paludis at all. ebuild.bash is just a driver that sources a file and calls functions in order — so the PoC is standalone and self-contained: feps.fish (~300-500 lines): sets up the env (PN, PV, WORKDIR, IMAGE...), require/fishlib loading, default phase implementations, edo, phase dispatch with a $status check after every call, die = exit + status print-stack-trace, and the env save/load functions (the one genuinely new design surface). feps-run harness: makes a builddir, runs phases in order, fails loudly and immediately on any nonzero status. One real fep: the gzip one (it's already half-born from my example; make it pigz, unpack, edo make, install into $IMAGE fakeroot). One deliberately broken fep: proves failure diagnostics + # @feps: annotation enforcement work. Success criterion is crisp and falsifiable: feps-run pigz.feps-0 compiles a real package and lands it in a fakeroot, and the broken one dies with a readable trace and the right pragma complaint. No Paludis, no repo, no translator, no feps-0.conf consumed by anything yet — the conf gets drafted but sits as documentation of intent. The interesting risk (fish's half-dozen unknowns: sourced-global scoping, env round-trip, require semantics) gets retired by experiment on your box, each one an evening. That's the shape of the first testable thing: a shell, a driver, one package that installs, one that doesn't, and honest messages in both directions. Everything else — Paludis integration, the conf going live, fepify — is phase two, and by then the dangerous part is already proven. Sources 5:16pm "a monster because bash is unspecified and treacherous, so every footgun had to be legislated" ~ similar to my leaning towards haskell, not just eliminating entire classes of bugs, but able to formalise, making sure everything's just so, not wild side effects and so on. but yeah, we'll leave that well alone for now. one step at a time. n_n and... onto that step. lets take the next step. you seem to have a decent handle on the situation. present the phase 1 set of required items. ... and in the meantime, i'll carry on familiarising myself with exherbo/paludis/cave, and investigate pinning fish's version back, for now. (or i might just go do a new exherbo install, and not try to be clever with musl, this time... since fish's newer features really are nice, and would be a shame to miss out on the extra friendlyness). anyways, lets see what you've got for a testable set. (and i'll see if you make me nearly cry again with the (easy readable) beauty of it). :) 5:28pm Thought for 23s Right then. One step at a time, and the step is: standalone, no Paludis, retire the fish unknowns first, prove with one real package. Here's the Phase 1 work package. First, one design decision that dissolves your install dilemma: the FEPS-0 language contract is the fish 3.7 feature set (same trick as BASH_COMPAT), and the test suite runs on both branches. So you don't have to choose between musl-cleverness and 4.x friendliness: a fresh glibc Exherbo install with fish 4.x becomes the dev box, and the musl rig becomes the 3.7 parity tester. Two machines, one spec. ;D A. De-risking experiments (do these first, ~one evening each) E1, scope harvest: confirm that set -g variables in a sourced fep are visible inside phase functions, and function-local variables don't leak into the PM's harvest. This defines the "global scope = metadata" contract. E2, env round-trip without export -f: candidate answer to the ugliest unknown — fish has funcsave/autoload directories. feps_save_env writes variable dump + function definitions into a PM-controlled dir; feps_load_env prepends it to fish_function_path and evals the variable dump. If this works, it's cleaner than bash's function-exporting, and the spec's env chapter nearly writes itself. E3, failure semantics: $status propagation through pipelines, die inside command substitutions, and status print-stack-trace output quality from inside nested function calls. E4, branch parity: verify each feature the format uses (string, emit, --no-execute, funcsave) behaves identically on 3.7.x and 4.x. B. Runtime artifacts feps.fish (~300-500 lines): env setup (PN/PV/PNV/PNVR, WORKDIR, IMAGE, FETCHEDDIR, FILES), require + fishlib loader, DEFAULT_SRC_*-style default phases, helpers (edo, minimal exhost stub), die + the per-phase status check. The dispatch core is four honest lines of fish: function feps_run_phases for phase in $argv feps_default_unless_defined $phase $phase; or feps_die "phase $phase failed (status $status)" end end feps-run harness: validates the FEPS= line before sourcing, runs the # @feps: pragma validator, builds a temp builddir, dispatches phases in order, prints a final per-phase report. Stretch goal: a fish --no-execute parse pass before sourcing, giving free PM-side linting. Pragma validator: the # @feps: grammar with ERROR/WARNING/SUGGESTION severities and teeth: ERROR refuses to run, WARNING refuses without --i-know, SUGGESTION is noise. This is the piece the world steals, so it gets spec-quality prose. One trivial fishlib (alternatives stub providing alternatives_for as a recorded no-op) — exists purely to prove the require mechanism works. C. Test feps pigz.feps-0 — the real one: fetch (pre-seeded tarball), unpack, build, install into $IMAGE fakeroot. broken.feps-0 — the lying one: sets a banned variable, calls an undefined function, fails mid-phase. Exists to prove the diagnostics are beautiful too. D. Acceptance criteria (the "testable" in proof of concept) T1: feps-run pigz.feps-0 → builds and installs a real package tree into fakeroot, exit 0, report clean. T2: broken.feps-0 → dies at the right phase, readable stack trace, pragma ERROR blocked it before a single command ran. T3: metadata set at top level survives into phases; local leakage doesn't (proves E1 in anger). T4: env saved and reloaded between two feps-run invocations (proves E2 in anger). T5: full suite green on fish 3.7.x and 4.x. Explicit non-goals for Phase 1 No Paludis C++ changes, no feps-0.conf consumed by anything (drafted as intent-documentation only), no fepify, no repo layout, no Manifests, no sandboxing/userpriv, no cross-compile. If it can't be tested from a checkout with fish and a tarball, it's Phase 2. Sequencing: E1-E4 first (they might change the design, which is exactly why they go first), then 5-8, then 9-10, then run D. And when feps-0.conf does eventually go live, remember: it's a sed job away from exheres-0.conf, because Paludis's config-driven EAPI machinery was the whole reason this dream is even plausible. Meanwhile, enjoy the fresh install — and honestly, "investigate the package manager by writing a competing package format" is the most Exherbo way possible to learn Exherbo. There are veterans on #exherbo who've never done anything half so ambitious with their familiarisation. :D