News for hackers. Stuff that matters.
Re:Sourcehut's Second Year in Alpha by __henil on Sunday November 15, 2020 @10:25AM (#25101864)
> Welcome to sourcehut! This suite of open source tools is the software development platform you've been waiting for.

> Git and Mercurial hosting, mailing lists, bug tracking, continuous integration, and more

> Absolutely no tracking or advertising

> All features work without JavaScript

> 100% free and open source software

For someone who is not familiar with sourcehut what other benefits does it provide over gitlab?

(Don't get me wrong i absolutely like that every feature works without javascript, i am just curious)

Re:Sourcehut's Second Year in Alpha by wpietri on Sunday November 15, 2020 @11:02AM (#25102145)
There's a nice feature list on their home page: https://sourcehut.org/

The one that made me go "oooh!" is this:

  Powerful continuous integration
    - Runs fully virtualised builds on various Linux distros and BSDs
    - Submit ad-hoc jobs without pushing to your repository
    - Post-build triggers for email, webhooks, etc
    - Log in with SSH after build failures to investigate further
Submitting jobs without pushing and logging in after failed builds are two features that I didn't know I wanted. But now that I see them, I really want them.
Re:Sourcehut's Second Year in Alpha by sytse on Sunday November 15, 2020 @12:54PM (#25103153)
The parent asked which features of sourcehut are not in GitLab. I think manual triggers are in GitLab https://forum.gitlab.com/t/gitlab-ci-run-pipeline-manually/1... and I assume post build triggers are.

Logging in via SSH seems useful although that would mean keeping the machine running after a failed build.

Re:Sourcehut's Second Year in Alpha by eatonphil on Sunday November 15, 2020 @01:04PM (#25103245)
Somewhat related to this thread: a frustration I have with most CI systems is how hard it can be to reproduce the run locally using (ideally all of the) same configuration.

For example, Gitlab CI has a local runner but it's not really first class, definitely isn't kept up to date with the real runners. It seems like it's more of a recreation of a job system based off of (an older version of) Gitlab CI configuration files.

Circle CI has a more decent story around this if I remember correctly. But first-class support for local reproduction of CI runs is the kind of thing I'd like to see as table stakes today.

It can be challenging to debug certain things in the live CI system for developers without being able to recreate locally (otherwise you have to bring in the team that manages the CI system to help them debug with you which takes time).

Re:Sourcehut's Second Year in Alpha by Macha on Sunday November 15, 2020 @01:24PM (#25103400)
The trick is to do as much as possible outside the CI system. Ideally, each step should just call a single script, Makefile command, or your language's build tool equivalent.
Re:Sourcehut's Second Year in Alpha by zbentley on Sunday November 15, 2020 @02:45PM (#25104109)
That gets deeply complicated where integration or automation tests are concerned, and those types of tests provide the most value per effort in environments where test-authoring, QA, and refactoring time is limited.
Re:Sourcehut's Second Year in Alpha by Arnavion on Sunday November 15, 2020 @03:00PM (#25104253)
>That gets deeply complicated where integration or automation tests are concerned

I don't understand why this would be true.

For $dayjob I've been writing end-to-end tests that run via GitHub Actions. Each test starts with a package of the compiled code (built by another GHA workflow), deploys a bunch of cloud resources including a VM, scp's the package to the VM, and ssh's to the VM to install the package and run the test. The package contains multiple services that must be individually configured based on the particular test, and then a test process interacts with these services in a bunch of ways. I think we can agree these are complicated tests; they're not just unit tests you can run in a Docker container and be done with (which we also have, of course).

Now, these tests are written entirely in a shell script. It has been designed from the start that a developer can run the script locally and get exactly the same result as when GHA runs it. The things like auth tokens for the cloud are read as environment variables, so when running as a GHA workflow the env vars are hooked up to repository secrets, but when running locally the developer can just provide their own auth token via env vars to the script. Furthermore, the script cleans up the cloud resources when it finishes, but if the developer wants to investigate the failure they can just comment out the cleanup step from the script.

I'm sure there are third-party GH Actions to create those cloud resources, to scp files to remote targets, and to run commands via ssh against remote targets. But using those actions not only removes the ability to run the tests locally, it also requires learning arbitrary DSLs ("How does this action take parameters? What limitations does it have? How do I process the output of one action to be the parameter of the next? How do I parallelize these two actions that don't need to run in series?") and introduces third-party code that you have to trust with your cloud auth token.

Re:Sourcehut's Second Year in Alpha by rwj on Sunday November 15, 2020 @06:21PM (#25105951)
I've found it pretty easy debug GitLab CI issues. You know the docker image, so you can create the environment locally. You then need to concat the scripts together.
Re:Sourcehut's Second Year in Alpha by sytse on Sunday November 15, 2020 @01:32PM (#25103466)
Local CI is very important to quickly solve failed runs.

The problem is that we need a ton of logic in the coordinator. For example on how to do matrix builds. For local builds to be perfectly similar we would have to recreate that logic inside the runner. This is hard, not in the least because it are different programming languages.

Re:Sourcehut's Second Year in Alpha by PuercoPop on Sunday November 15, 2020 @04:35PM (#25105109)
They are not talking about manual triggers. afaik, and correct me in I'm wrong, I have to write a commit and push yaml file to the repo to be able to run the pipeline. On srht's builds on the other hand I can submit a yaml file by itself to start a job. That way when setting up the build you don't have to go through the whole edit/commit/push cycle.
Re:Sourcehut's Second Year in Alpha by sytse on Sunday November 15, 2020 @05:05PM (#25105368)
That sounds interesting and useful. Thanks for the explanation.
Re:Sourcehut's Second Year in Alpha by mfsch on Sunday November 15, 2020 @10:35AM (#25101944)
I think the most consequential difference is that sourcehut is built on top of existing tools for distributed development with the goal of avoiding lock-in. Instead of replacing the distributed tools traditionally used in FLOSS development (mailing lists, patches) with centralized ones (issue tracker, pull requests), the goal is to provide an interface that makes it easier to use the tools of the distributed model.
Re:Sourcehut's Second Year in Alpha by __henil on Sunday November 15, 2020 @10:48AM (#25102035)
I have known that development of linux, git was done over email, And always wondered how PR worked there, but I never took time to know how actually it was done.

For someone like me this[0] looks like a good start.

[0]: https://git-send-email.io/

Re:Sourcehut's Second Year in Alpha by musicmatze on Sunday November 15, 2020 @12:24PM (#25102847)
The No.1 reason for me is that it makes you use git like it is supposed to be used: Via email and your MUA.

The "pull-request-model" invented by github is an abomination of a workflow. Communities stop scaling because of it (see nixos/nixpkgs) because it does not allow horizontal scaling at all - thousands of "PRs" open, nobody feeling responsible and slowdown overall.

Having a tool that provides only an "overlay" over the workflow git wants to be used with, and that's what sourcehut is, but not a replacement for it (which is what github is), is refreshing and promising!

Re:Sourcehut's Second Year in Alpha by ChickeNES on Sunday November 15, 2020 @01:01PM (#25103226)
> The No.1 reason for me is that it makes you use git like it is supposed to be used: Via email and your MUA.

Welp, that puts me off using it entirely sadly. I hate dealing with mailing lists and refuse to contribute to any project that requires dealing with text patches in 2020. Like it or not, the pull request model is simply easier to deal with and is easier for new users to use.

Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @01:04PM (#25103243)
The pull request model is not easier to use, you just already know how to use it. Anyone who maintains a large enough GitHub project can attest that there are many people who don't grok GitHub pull requests, either.

If you prefer to use a web-based workflow, then you can both prepare and review patches on our web UI, and they're automatically sent as emails. You don't actually have to interact with email directly at all.

And, once you're used to it, pretty much everyone who uses email can assure you that it's much easier to use, much more efficient, and much more scalable than pull requests.

Re:Sourcehut's Second Year in Alpha by ChickeNES on Sunday November 15, 2020 @01:23PM (#25103399)
No, it's not unfamiliarity, I have had to use email to manage and submit patches before, and hated it. This just stinks of doing things the old way in cargo cult like fashion. This whole approach, some development in email, some on the web, and some on a disused IRC channel is exactly why projects like Cairo suffer from lack of contributions. Do people really want to deal with text patches in 2020? I appreciate the back-to-basics approach and aesthetics, but srht just seems to be throwing out the baby with the bathwater.
Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @01:36PM (#25103499)
>is exactly why projects like Cairo suffer from lack of contributions

I don't really agree with this. Many projects enjoy a vibrant development community on mailing lists today. Cairo suffers from different issues - and ultimately in Cairo's case it doesn't really matter. Cairo has been "done" for years, it's not the end of the world if it doesn't see much activity.

>Do people really want to deal with text patches in 2020?

Yes. You'll find many of them in this very thread. SourceHut is a brand-new service, only around for 2 years in alpha, and in 2020 alone it transacted 37,000 emails. There's obviously demand here.

One thing that can matter a lot if you're trying out the email workflow is making sure you're using a good client. I made one that I recommend as such: https://aerc-mail.org. Other good choices include mutt and alpine.

Re:Sourcehut's Second Year in Alpha by hvis on Sunday November 15, 2020 @04:12PM (#25104888)
Can you comment on individual lines of a changeset in an email and reply to such comments separately, and then see such conversations in the context of the diff? And then mark them as resolved when that happens?

Can you read those discussions later in a "flat" presentation without scrolling through emails one-by-one?

These are some of the killer features of the PR/MR Github/Gitlab workflows.

To clarify, I'm talking about steps 4-7 here: https://docs.github.com/en/free-pro-team@latest/github/colla...

As well as the "Resolving conversations" section.

Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @04:13PM (#25104905)
>Can you comment on individual lines of a changeset in an email and reply to such comments separately, and then see such conversations in the context of the diff? And then mark them as resolved when that happens?

Yes, except for the last bit. Unlike GitHub/GitLab you can also respond to several comments at once.

>Can you read those discussions later in a "flat" presentation without scrolling through emails one-by-one?

I don't know what this means.

Re:Sourcehut's Second Year in Alpha by comex on Sunday November 15, 2020 @06:18PM (#25105931)
Judging from my GitHub experience, I think they mean seeing, under each chunk of code, the whole conversation thread pertaining to that chunk. In other words, where a standard mailing list format looks like:

    Person 1
        > Chunk of code 1
        Comment
        > Chunk of code 2
        Comment
    Person 2
        > Chunk of code 1
        Comment
        > Chunk of code 2
        Comment
they want a view like:

    Chunk of code 1
        Person 1
            Comment
        Person 2
            Comment
    Chunk of code 2
        Person 1
            Comment
        Person 2
            Comment
Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @06:22PM (#25105957)
Yeah, we have a view like that.
Re:Sourcehut's Second Year in Alpha by comex on Sunday November 15, 2020 @06:29PM (#25106016)
Out of curiosity, do you have an example of what it looks like? (I checked several patches on https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches but couldn't find anything with line-by-line discussion.)
Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @06:34PM (#25106055)
Re:Sourcehut's Second Year in Alpha by hvis on Sunday November 15, 2020 @08:18PM (#25106871)
Thanks for the reply. It's more than I expected (even if the UI and the lack of interactivity inside the browser are still a problem for me).

Looking forward to experiencing it in practice someday. Maybe Emacs will finally migrate off Debbugs.

Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @08:22PM (#25106894)
You should go ask them! There's an ongoing discussion about it on the mailing list right now.
Re:Sourcehut's Second Year in Alpha by hvis on Sunday November 15, 2020 @09:05PM (#25107151)
I'm on the mailing list ;-)

The issue is brought up repeatedly, but there's no real movement right this moment (or for the last several months, really).

There are several proponents of SourceHut thanks to its email-based workflows and (apparently?) LibreJS compatibility. But none are passionate enough to push for it, thus far, and do the work required.

As opposed to, say, advocates of Gitlab (which got effectively banned by a long list of requirements, alas).

Re:Sourcehut's Second Year in Alpha by Qwertious on Sunday November 15, 2020 @04:54PM (#25105283)
"and in 2020 alone it transacted 37,000 emails. There's obviously demand here."

Um, what?

Suppose you have 10 developers sending an average of 10 emails a day. That's 100 * 365, or 36 500 emails a year.

That stat doesn't sound very useful. 10 developers isn't demand.

Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @05:14PM (#25105437)
Most projects on SourceHut don't receive anywhere near 10 patches per day. There are not any many large projects on sr.ht - established projects are slow to move off other platforms, and new projects haven't had a lot of time to gather steam. The top lists peak at like, 3 per day. What matters more is their volume: 1,447 of them were created in 2020.
Re:Sourcehut's Second Year in Alpha by nyanpasu64 on Monday November 16, 2020 @05:57AM (#25110326)
>Cairo has been "done" for years, it's not the end of the world if it doesn't see much activity.

Cairo's fast antialiasing mode had a memory corruption bug that took 5 years after the bug report to be fixed. https://gitlab.freedesktop.org/cairo/cairo/-/issues/44

Re:Sourcehut's Second Year in Alpha by Znafon on Sunday November 15, 2020 @04:02PM (#25104804)
Do you have a recommendation for a good GUI mail client?
Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @04:07PM (#25104850)
Claws mail is pretty good IMO.

There are some more options here:

https://useplaintext.email

Re:Sourcehut's Second Year in Alpha by Znafon on Sunday November 15, 2020 @04:28PM (#25105043)
Thanks, last time I tested aerc I couldn't find a way to make it download all my mails locally. Is this possible?
Re:Sourcehut's Second Year in Alpha by Icyphox on Sunday November 15, 2020 @09:23PM (#25107268)
Try mbsync or OfflineIMAP. Both great tools to sync a remote mailbox to local.
Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @04:28PM (#25105055)
No, but you can use it in combination with something like imapsync.
Re:Sourcehut's Second Year in Alpha by aaravchen on Sunday November 15, 2020 @02:33PM (#25104008)
For one, many corporate environments no longer directly tie email user identity and code user identity directly together, they frequently manage them thru a third service that both services connect to instead (e.g. OAuth, ActiveDirectory, etc).

This also only works well if you have: 1) one commit per change, 2) every reviewer has a fully up to date copy of any/all repos being reviewed, 3) a single change only affects a single repo.

The one-commit-per-change (squashed changes) is not always the preference, but it's effectively mandatory since the presentation format for patches only lends itself well to an isolated patch-diff and not a VCS history of changes (ironic since it's intended for the latter). As a great example of this, it's very difficult to compare the differences between the resulting code between two patches submitted to the same thread when I want to confirm a series of corrections to the original submissions were made properly and without side-effect.

Every reviewer having a fully up-to-date copy of the repo the changes are going into works amazingly well for a fully distributed VCS, defining the gatekeeping maintainer's copy as the ultimate source of truth for the "latest". When multiple maintainers for the repo exist, as in most corporate environments and the monorepo organization, this breaks down. The ultimate source of truth for "latest" is now a remotely hosted repository that no one individual gatekeeps. Therefore all maintainers need to constantly duplicate the remote copy and keep it up to date. Either the maintainer is an active developer that's also creating changes constantly and will therefore need to keep two different copies so they can be building and testing their own development changes while keeping a pristine copy purely for review purposes, or they don't usually do a lot of active development themselves and keeping a local copy at all is purely for the purposes of review. In terms of pushing proliferation of copies of the distributed VCS it works, but when more (but not completely) centralized as most corporate environments/users need it's an extra hurdle that impedes the process rather than helping.

For a single change to affect only a single repo requires at the extreme a monorepo layout, or an extremely well modularized design. As noted before, monorepo is very much against the design (few people should need a fully history copy of the entire repo locally with a monorepo, and many maintainers control the same repo) and defining sufficiently modularized breakdown is nigh impossible with larger projects. The Linux project is a great example of this problem, but has a semi-solution that involves having an even larger developer base involved at different levels of a heirarchy, and split repos for "modules" (independently maintained subcomponents or specialty areas) that have to manually cross-related. This is demonstrably problematic even now when a sub-area uses a separate repo and submits wholesale changes to the downstream project, losing almost all of the history and cross-linked-tracking information in so doing. Recognized as a common problem, the community has either gone the monorepo route where all changes go into the single larger repo at the cost of much greater coordination requirements, or the submodule-like route where each sub-part becomes more isolated but may have cross-cutting changes across multiple separate repos. As the repos proliferate in the latter case, individual maintainers often become responsible for a larger number of repos and the other two problems impact them more.

In summary, the mailing list solved a basic problem for a specific narrow use case at a time when technological constraints and solution options were very different than they are now. While the development/maintenance process can still be made to fit its usage, the large scale needs often no longer match, nor do the same technological restrictions apply. GitHub PRs aren't necessarily significantly better, but they do at least move the same concept to a place where an individual user/maintainer can keep their individual source of truth in one place (online), interact with it without needing a full development system/setup present, AND provides options for moving development processes in a new direction. The last has stagnated pretty badly, but throwing it out for a return to a system that has little to no options for modifying the process to meet modern needs seems overly agressive.

Re:Sourcehut's Second Year in Alpha by mixedCase on Sunday November 15, 2020 @01:45PM (#25103567)
Where do I see all patches neatly organized in threads, ready to be open as a timeline feed? Anything that involves custom filters or scripting an e-mail client is not easier nor more efficient than a web UI made for purpose.

How do I make a minor adjustment to a patch as a response to feedback without resending the whole thing? Anything more complicated than git commit && git push to my remote clone is not easier nor more efficient than the status quo.

These are just two off the top of my head. PRs as a code contribution approach can be improved upon, but mailing lists are not better at all for small projects and are only situationally better for bigger ones.

Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @01:47PM (#25103584)
>Where do I see all patches neatly organized in threads, ready to be open as a timeline feed? Anything that involves custom filters or scripting an e-mail client is not easier nor more efficient than a web UI made for purpose.

https://lists.sr.ht/~sircmpwn/sr.ht-dev

>How do I make a minor adjustment to a patch as a response to feedback without resending the whole thing? Anything more complicated than git commit && git push to my remote clone is not easier nor more efficient than the status quo.

git commit && git push also re-sends the entire thing, assuming you rebased, and you should very definitely be rebasing.

Re:Sourcehut's Second Year in Alpha by mixedCase on Sunday November 15, 2020 @02:17PM (#25103854)
> https://lists.sr.ht/~sircmpwn/sr.ht-dev

That's a multi-purpose mailing list, where I had to read for a couple of minutes to assume belongs to the whole project sr.ht instead of a specific repo (I trusted your response to mean this was an actual 1:1 replacement and that I missed it), and I had to go into one of the patches and find a link to an issue in the tracker, and from there I had to go to the main page of that issue's project, and from there I see there's an ad-hoc association between the tracker and the actual repo by a link in the description which I assume you added because you noticed that it's useful to associate issue trackers and repos. And that's just for finding one of the repos that mailing list covers.

In the end, I still have to come up with custom filters to use to get only the patch requests for the specific repo I'm interested in, and assume everybody follows every single non-obvious instruction to the letter to make it all work.

The whole experience feels like a grabbing a bunch of general purpose tools and trying to get them to work for the project's purpose as well as possible, because there is no solution that solves the problem in obvious ways that doesn't require learning and carefully following a bunch of ceremony without failure. Except in this case, there are such solutions, and I'd have to be a sadist to try to get coworkers to learn and follow every single convention to the letter when they have problems just working well with git in the first place.

> git commit && git push also re-sends the entire thing

Which is not what I wanted, since even half-arsed PR implementations like Bitbucket's (let alone better ones like GitLab's) support dealing with direct feedback and changes that respond to them in a single PR.

> assuming you rebased, and you should very definitely be rebasing.

I do, when working on feature branchs. But that's another nonintuitive thing to get people to unlearn and relearn. Which of course, also includes git send-email.

Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @02:23PM (#25103918)
I agree that it should be easier to find related resources, like the git repo a patch applies to. This is one of the issues prioritized during the alpha, and I'll ask for your patience and understanding that it doesn't represent an unfixable flaw - stuff like this is why we still have the alpha designation.

You can already filter by project, though. Here are all the git.sr.ht patches:

https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches?search=prefi...

The feature is hinted at in the placeholder text on the search box.

>support dealing with direct feedback and changes that respond to them in a single PR.

Linking multiple versions of a patch together into one cohesive patchset is another thing which is possible in theory and prioritized for the alpha.

>I do, when working on feature branchs. But that's another nonintuitive thing to get people to unlearn and relearn. Which of course, also includes git send-email.

Both of which we have detailed tutorials for!

https://git-send-email.io

https://git-rebase.io

Re:Sourcehut's Second Year in Alpha by mixedCase on Sunday November 15, 2020 @02:58PM (#25104233)
Well, for what little it's worth, you've convinced me to give sourcehut a try for a personal project where any of these shortcomings should not pose a problem.

You leave me thinking you actually give a shit about not leaving the average person behind and that ease of use is a priority. So if you can eventually couple the simplicity and performance you already have with slight changes to make the UI at least as obvious as GitHub to both programmers and students, then that's a winner. Just subscribed in hopes to seeing that happen.

Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @03:03PM (#25104276)
Cheers :) Let me know if you come up with any questions or feedback, my door is always open at [email protected].
Re:Sourcehut's Second Year in Alpha by Technically on Sunday November 15, 2020 @01:54PM (#25103644)
What is "easier" about having to deal with github than your email?

Github has needed a non-web-app interface since 2007. It's good to see real competition and not just another clone of github's, erm, interesting design choices.

Re:Sourcehut's Second Year in Alpha by Aeolun on Sunday November 15, 2020 @06:55PM (#25106216)
Have you dealt with email in the past 10 years? If there is one thing I do not need more of it’s email.

I also want nothing in the critical part for development to be email, so I can completely ignore the whole email client.

Re:Sourcehut's Second Year in Alpha by SulfurHexaFluri on Monday November 16, 2020 @12:55AM (#25108553)
Github lets me instantly jump in and contribute to a project with an issue report without having to sign up to a mailing list. I hate mailing lists with a passion because they spam my inbox with rubbish.

Yes I know you can automate filtering them in to folders but that isn't simple to do when you self host email and use it across multiple computers because most filtering is done client side.

I also have one mailing list that seems to have messed up and I'm stuck on the list despite trying to unsubscribe a few times.

Re:Sourcehut's Second Year in Alpha by ddevault on Monday November 16, 2020 @08:17AM (#25111247)
You don't have to sign up for most mailing lists to send an email to them. The default permissions for new lists on SourceHut allow postings from non-subscribers. It's very common to fire off a patch without subscribing.
Re:Sourcehut's Second Year in Alpha by Technically on Tuesday November 17, 2020 @09:52AM (#25124334)
Email would let me participate without having to sign up with github.

Anyway, email has threading, at least. At the very minimum github needs to step up and acknowledge how terrible issues are for communicating.

Re:Sourcehut's Second Year in Alpha by Znafon on Sunday November 15, 2020 @12:47PM (#25103082)
It's not "an abomination of a workflow", and it's very possible for communities to have difficulties in scaling with a mailing list and have a bus factor of 1 despite plenty of movement on the mailing list.

Git also had a git-request-pull command that prepares a mail with the same information that you can find in a pull request on GitHub even before GitHub existed.

There is no "one true way" to Git and if organization to adapt their workflow to their needs they can have issues both with mailing lists and the centralised forge model.

Re:Sourcehut's Second Year in Alpha by throwaway894345 on Sunday November 15, 2020 @12:28PM (#25102895)
Can you elaborate on how sourcehut or other git workflows scale better?
Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @12:43PM (#25103035)
Re:Sourcehut's Second Year in Alpha by slmjkdbtl on Sunday November 15, 2020 @10:37AM (#25101957)
Not a sourcehut power user myself but for me personally the user experience and aesthetics is way superior. The web client made me think about how tech directly relates to user experience, by having no javascript and minimal style means there's less chance to fuck up, everything is super responsive and simple, there are a lot of features but very well sorted and clear. Also I always prefer softwares that have a lead dev who I respect.
Re:Sourcehut's Second Year in Alpha by alexwennerberg on Sunday November 15, 2020 @11:16AM (#25102265)
> no javascript

To be clear, sourcehut does occasionally use JavaScript, it’s just very conservative and optional.

Re:Sourcehut's Second Year in Alpha by gray_-_wolf on Sunday November 15, 2020 @11:19AM (#25102287)
> and optional.

This is imho the most important part.

Re:Sourcehut's Second Year in Alpha by shakna on Sunday November 15, 2020 @10:36AM (#25101949)
Everything is modular and "vendorless".

To put it another way, if I want to use the CI, then I can drag in sources from anyone. GitHub, GitLab, raw HTTP, etc. Multiple projects. Then build against not just the usual suspects, but also BSD.

If I want to open up an issue tracker without it being connected to any project, I can go ahead and do that. I can also make it frictionless and have user's without an account go ahead and open up/comment on issues.

And I can self-host each of these "modules" myself, with full documentation on how to do that.

Re:Sourcehut's Second Year in Alpha by busterarm on Sunday November 15, 2020 @10:45AM (#25102015)
It's actually open source (instead of the source available/open core nonsense).

Whether that matters to you or your business is a different story.

Re:Sourcehut's Second Year in Alpha by SulfurHexaFluri on Monday November 16, 2020 @12:56AM (#25108559)
The open source section of Gitlab is very powerful and perfectly usable on its own.
Re:Sourcehut's Second Year in Alpha by busterarm on Monday November 16, 2020 @03:21AM (#25109369)
The problem with open-core licenses is that you always have to weigh the risk of whether the feature you depend on will get pulled into the paid license, pegging you on a release forever without updates.

If you look at the direction of most popular products that are open-core, you have a spectrum from ElasticSearch (Slightly hobbled, the free x-pack features that you WILL use in production put you at risk of dipping into paid uses and in violation. running Amazon's fork/open distro is strictly better) to Neo4j (completely unusable in a production context without a paid, mega-expensive, cost-of-a-nice-house-per-year license. No clustering, can't be effectively monitored, none of the tuning knobs that you will need as your dataset grows).

Open-core licenses are entirely hostile to the spirit of OSS and just pay it lip service to delude the ignorant.

Re:Sourcehut's Second Year in Alpha by njkleiner on Sunday November 15, 2020 @10:37AM (#25101953)
I imagine the builtin email support might be the single biggest selling point, if you're into that kind of workflow...

Also, the simplicity is certainly appreciated.

Re:Sourcehut's Second Year in Alpha by rainingcatndogs on Sunday November 15, 2020 @10:33AM (#25101922)
I haven't used them but I think the most important benefit is collaboration (sending pull requests etc...) is done via email and thus is less centralised platfomr than github/gitlab which uses their own mechanisms.
Re:Sourcehut's Second Year in Alpha by brianzelip on Sunday November 15, 2020 @10:55AM (#25102092)
Here's a video on the email workflow by Sourcehut's author, https://spacepub.space/videos/watch/1619c000-7c44-4330-9177-...
Re:Sourcehut's Second Year in Alpha by dnr on Sunday November 15, 2020 @02:28PM (#25103960)
Wow, that video feels pretty disingenuous.

- The whole premise assumes that you need to make a new account for each project you contribute to, because they're hosted on individual gitea or similar instances. Some are, but let's be honest, the vast majority of projects are currently hosted on a very small set of services (github, gitlab, one or two others), and most developers will already have accounts on them.

(I get that part of the goal is to eliminate dependency on large code hosting services, and I agree with that. But we should do that with federation standards so people can use individual gitea/whatever instances without making accounts on all of them, not by traveling back in time 20 years.)

- He spends a lot of time complaining about silly password requirements. The complaint is valid but not relevant to the comparison.

- The graylisting thing is an own-goal, sorry.

- He complains that forking the repo and creating the PR require context-switching from the cli to the web and back, but there are cli tools that can fork repos and create PRs for you on github, gitlab, etc. to fix that.

- Let's allow that submitting a single patch, starting from outside the project, is faster for the contributor with an email workflow. But that's a tiny part of the process. There's a lot of things that happen after that patch: the project maintainers have to triage it, they have to review it, make comments on specific lines of the diff, or sometimes on line that aren't part of the diff, and then indicate that the submitter should make changes and try again. The submitter then has to make changes and submit it again. The reviewers, at that point, will probably want to see the diff between the first and second revision.

Triage: The github/gitlab UI for this is not great but acceptable. Viewing a mailing list in my email client mixes discussion and patches. I can't mark threads with labels or priorities. I can't assign a particular review to a particular person and have it show up in their todo list.

Review: Sure, you can reply to a patch posted on a list and intersperse comments, but web uis for code review are pretty decent these days. You can easily see much more of the context when required, your comments and replies on specific lines get threaded even across revisions of the code, each comment thread can have an individual "done" indicator, etc. The review as a whole has a global status of whose turn it is to take an action next. All of these seem much harder by email; you end up just using a lot of conventions.

You can use a web-based review tool with email-based patches, of course, but... why bother? If you're doing web-based review, just do the whole workflow there and it'll be a lot simpler and easier to understand.

Resubmit: Resubmitting a patch set by email posts brand new diffs. How do I see the differences between different versions of the patch? Sure, I can rig up a bunch of scripts to do this, but is it integrated with the review tool, etc.?

- What happens when I become a maintainer? I have to sign up for a new mailing list. And that means I have to go in my email client settings, make a new folder, make a new filter rule to direct email from that list into that folder. That's a huge amount of friction that doesn't exist in the web-based workflows.

Re:Sourcehut's Second Year in Alpha by tristan957 on Monday November 16, 2020 @12:10AM (#25108271)
When that video was made, github CLI was not an official thing, and I have never even heard of a gitlab CLI.

You can mark emails with labels though depending on your Email client. The onus is on you. SourceHut also supports adding labels to SourceHut tickets through email I believe.

You can assign a review to someone. You literally just CC them on the email.

> And that means I have to go in my email client settings, make a new folder, make a new filter rule to direct email from that list into that folder. That's a huge amount of friction that doesn't exist in the web-based workflows.

If that is a lot of friction for you, then you probably either have a horrible email client, or don't know how to use it.

Re:Sourcehut's Second Year in Alpha by dnr on Monday November 16, 2020 @03:01PM (#25116287)
> When that video was made, github CLI was not an official thing, and I have never even heard of a gitlab CLI.

I used "hub" back in 2013, so it's at least that old. It wasn't official, though I'm not sure why that makes any difference. Searching on google for "gitlab cli clients" shows a bunch, at least some of which have histories dating back to 2013.

> You can mark emails with labels though depending on your Email client. The onus is on you.

But those are local to you and your client. I'm talking about labels that are shared state, that the whole project and the public can see. Those are widely used on github for categorization, triage, communicating the stage of the review, etc. They're undeniably useful to teams. You can put all that information in English text in email bodies, but then everyone has to read a whole thread to understand the state of things, and there's more potential for confusion.

> You can assign a review to someone. You literally just CC them on the email.

Same thing: how do I assign a reviewer so that everyone can quickly and unambiguously see who is assigned to review that PR/patch set? With PR metadata, this is trivial. With mailing lists, it depends on social conventions.

> If that is a lot of friction for you, then you probably either have a horrible email client, or don't know how to use it.

Thank you for insulting my intelligence. I didn't say it's hard, I said that it adds friction.

I'm not claiming that the web-based PR and review UI works for everyone; obvious email works fantastically well for Linux (though I'm not convinced something else couldn't work even better). I do think it works very well for small to medium size projects (which are most projects, after all).

An accurate comparison of the strengths and weaknesses of each model would need to be much more thorough and look at the entire development cycle, for projects of different sizes. I don't agree that that video was anything like that. It seemed like a cheap shot, based on one cherry-picked metric (time to submit an initial patch starting from nothing) that's not particular representative.

Re:Sourcehut's Second Year in Alpha by nathcd on Sunday November 15, 2020 @11:08AM (#25102186)
To add to others' comments, another nice detail is that you can simply push to a non-existing repository to create it, rather than having to first create it through the web ui.
Re:Sourcehut's Second Year in Alpha by judge2020 on Sunday November 15, 2020 @11:28AM (#25102357)
Sounds like a good way to accidentally create a repo, hopefully it’s private by default.
Re:Sourcehut's Second Year in Alpha by ddevault on Sunday November 15, 2020 @11:36AM (#25102425)
It gives you a link to click to confirm the new repository creation, or you can use git push options to set the visibility and description (git push -o visibility=public -o description="my cool repo")
[dead]
Re:Sourcehut's Second Year in Alpha by MaxBarraclough on Sunday November 15, 2020 @12:37PM (#25102976)
1. Please don't do this. HackerNews is not the place to hurl empty insults.

2. I'm not sure if your intent was to insult Drew DeVault personally, or to insult the SourceHut project. Drew has given us no reason to doubt his competence, and SourceHut is already accepting payments. Neither sense of the word amateur applies here.

3. That's not what security-by-obscurity means. It would be a bad default, instead, but as Drew has since explained, it's not even that. Unless you explicitly request creation of a public repo, you won't get a public repo.

Re:Sourcehut's Second Year in Alpha by mahkoh on Sunday November 15, 2020 @10:31AM (#25101904)
I've been using sr.ht to run unit tests on OpenBSD. Performance has been excellent and prices are low (from $2/month.)
Re:Sourcehut's Second Year in Alpha by eatonphil on Sunday November 15, 2020 @10:33AM (#25101924)
I haven't used Sourcehut, but almost no other CI service I know of provides FreeBSD or OpenBSD runners.
Re:Sourcehut's Second Year in Alpha by arch-ninja on Sunday November 15, 2020 @10:34AM (#25101934)
I count simplicity as a feature. Not knocking GitLab, from a business perspective they provide the same capability.
Re:Sourcehut's Second Year in Alpha by hprotagonist on Sunday November 15, 2020 @10:38AM (#25101959)
ideological purity.