318 points · by goranmoomin · 6y ago · 148 comments
The email-based workflow could be convenient for some, but speaking for myself, I'd mainly prefer to interact via the web UI. The ability to send updates to patches submitted from the web UI seems to be missing. If I made a mistake or was asked to change something, I had to completely re-submit the patch as a separate email. I couldn't find a way to communicate on mailing lists without using an external email client. Basic things, like needing to hand-wrap my emails at 70-something characters, and remember to remove quoted text from the bottom of emails, is an unfortunate barrier to entry for new contributors. All of these things could be abstracted away via the web UI for those who don't want to use email.
We're also working on web-based tools for this workflow, which allow you to create patchsets, respond to feedback, and review them entirely from the web, but these are still WIP. You can submit patchsets and view discussions on the web today, and the rest of the tools are WIP.
I've only submitted one patch, but there are enough differences from regular email to create quite a barrier.
> 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)
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.Logging in via SSH seems useful although that would mean keeping the machine running after a failed build.
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).
For someone like me this[0] looks like a good start.
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!
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.
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.
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.
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.
https://drewdevault.com/2020/09/02/Linux-development-is-prof...
To be clear, sourcehut does occasionally use JavaScript, it’s just very conservative and optional.
This is imho the most important part.
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.
Whether that matters to you or your business is a different story.
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.
Also, the simplicity is certainly appreciated.
- 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.
Same here. The fact that it's so lightweight + being FL/OSS is what pulled me from Github.
Developers are using macOS despite it continually removing features from developers, and are even in some cases defending Apple's decisions. I believe that this design actively harms the adoption of Sourcehut. There are definitely other things Sourcehut should do if they want more of GitHub's and GitLab's marketshare, changing their UI (or adding an alternative UI) is an important part of that process.
From memory it was mostly locked scrolling, slow page loads, awful rendered video, etc. Ironically i recently saw Google with the same problem on their new Phone product page (a few months back).
It seems Designers are being given too much freedom with completely no concern for practical implementation. No one on the dev side stands up and says "but that'll lag like mad" - they just implement the bloated slow mess to spec; and god knows performance is never in spec.
So yea, i might agree with the GP comment - i do prefer "modern" look over that of Sourcehuts.. if it worked. But as it stands, Sourcehut's UI is faster than every modern UI i deal with, and i want things that work - first and foremost. Fast.
Modern pages suffer here.
Sure, I want stuff to look nice too, but only if it doesn't ruin the user experience in other ways like making the site slower to load and use
SourceHut has been designed deliberately and for a specific purpose. The simplicitly of its appearance is a feature.
But my point is about mass-adoption. What I personally think of the UI isn't very important - as you say, "Design is in the eye of the beholder". But I would argue that if GitHub were to release a redesign identical to SourceHut in 2020, we'd see the largest exodus of GitHub users (for personal projects at least) ever - far, far, FAR more than any other time GitHub has changed their UI.
You can argue that GitHub and GitLab have UI that degrades a developer's experience. You can argue that their designs are FADs, and even that eventually they might change their design to be more similar to your's. And all of those arguments may be right. But right now, I'd argue that this design hurts mass adoption, and even though what design language is "in style" is completely a FAD, following the FAD does help adoption, and entire companies (e.g. fast-fashion like H&M) make tons of profit on FADs (even when they do horrible things - like how fast fashion is bad for the environment, some of GitHub's actions are bad for open source, the Apple example, etc).
I think your numbers are great evidence that you will get users with your current design, and I think that were you to release a GitHub clone (design-wise), you'd lose most of your users and would still struggle to gain non-GitHub users. I don't think there's a way to satisfy both camps of users, but perhaps a "colorful" and "minimal" theme may help? This is not as important as other things you are doing such as the things mentioned in https://news.ycombinator.com/item?id=25103662 but I do think it would help with mass-adoption (which may even be a non-goal, or may be far less important than other goals - that's totally fine too, I'm not trying to judge you or say you're completely wrong, just pointing out something which I feel is missed in these design discussions on HN).
I've switched from a mac and iPhone to Linux and Android, and as you can tell, I'm still on HN. Clearly, design isn't absolutely everything to me. But the notion that aesthetics "get in the way for the most part" is one I and most other developers I know in real life disagree with. I'd argue that HN's aesthetics get in the way. I personally have used browser extensions to change the HN CSS, due to how much I dislike the UI.
It’s one of the main reasons I left Sourcehut. No slight intended — I think Drew has built something really useful and I’ve even submitted a patch to fix a design bug. But ultimately I prefer GitLab’s visual polish.
If you want more market share build a product for the entire world, which does not run on the newest fancy version of iOS.
That's odd. Last quarter (July–September) the Mac grossed more than it ever has in one quarter: https://www.apple.com/newsroom/2020/10/apple-reports-fourth-...
Think about it.
During a global pandemic, countries shutting down and the global economy not doing so well to say the least, the Mac at 36-years old grossed a little over $9 billion. That's more than either the iPad or the Apple Watch.
It seems that people working from home for the foreseeable future bought a lot of Macs.
Should be interesting now that M1 Mac laptops are reported to have blow away performance and last as long as 20 hours on a single charge.
And these Macs come with a BSD-derived development environment and will likely run Linux in a VM faster than comparable Intel machines can run it natively.
The truth is there are some outstanding UX/UI designers and there are some really bad engineers who design terrible unfriendly shit. The reverse is more common from what I’ve seen.
Saying engineers are bad at design is fine. Most people are bad at things they don't practice, and we know most engineers don't practice design.
Saying UX/UI designers (two separate groups with totally different backgrounds) are bad at design is maligning an entire field and suggesting a team hierarchy where engineers make all decisions.
Is it not UX, is it not design? Why does design have to be graphical, and why does "UX/UI designers" get to say what it is? How can a tool even exist without an interface? And if a tool is used, surely it has a user ;)
> most engineers don't practice design
Citation needed.
I recently wrote an article for my own code hosting service where I talked a little about SourceHut and what makes it unique:
- SourceHut follows a zero investor approach [1]
- SourceHut's Principal Engineer, Drew Devault, prides himself in simple infrastructure [2]
- Drew believes Mailing List Workflows are the way forward [3]
- SourceHut is designed for accessibility first [4]
[1] https://sourcehut.org/blog/2019-10-23-srht-puts-users-first/
[2] https://sourcehut.org/blog/2020-04-20-prioritizing-simplitit...
[3] https://sourcehut.org/blog/2020-10-29-how-mailing-lists-prev...
[4] https://sourcehut.org/blog/2020-05-27-accessibility-through-...
SourceHut is an interesting concept and basically the equivalent of a built-at-home GitHub. It's based on Python (and now Go), runs on Alpine on baremetal in a datacenter in the US. Some of the above aren't just views for SourceHut though, they're more like a way of life. If you'd like to test that join the SourceHut channel on Freenode and ask if anyone has any reference for Dockerfiles or Kubernetes and see what response you get.
SourceHut and other code hosting sites are popping up as a wave of programmers push for decentralization. Some may say that it's in response to youtube-dl, but this has been happening slowly for a while. If SourceHut isn't right for you there's always Codeberg which is essentially a Gitea instance backed by a non-profit in the EU.
Looks real good in dark mode via the standard "dark reader" browser plugin most people use these days, btw. Would love to see them add a native dark mode though. That's my main gripe.
Is there anything that already exists out there to bring that functionality to the email workflow?
https://lists.sr.ht/~sircmpwn/sr.ht-dev
https://lists.sr.ht/~sircmpwn/sr.ht-discuss
https://lists.sr.ht/~sircmpwn/sr.ht-announce
https://lists.sr.ht/~sircmpwn/sr.ht-ops
Additionally, unlike GitHub, these discussions have been forwarded to all list subscribers, any of whom could trivially turn them into another public archive, independently of sourcehut. Such an archive is also available to list admins in one click for both export and import, in a standard file format. With DKIM and PGP signatures and such, you can even preserve the authenticity of these messages across arbitrary sources.
- Most developers born after 1980
Installation instructions are here: https://man.sr.ht/installation.md
There's a patchset in my review queue which will organize, update, and streamline these instructions - might be worth checking back in a week.
BTW, I think the documentation already seems nice and approachable. From your send-email helper site right through to the sr.ht docs themselves. Much appreciated.
[I was kind of asking for personal experiences - in part - because docs don't always match reality ;)]
[1] https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/images/...
The comment you’re responding to specifically calls out Gitea, which isn’t measured in forge perf. (Most likely because there isn’t a major, permanent, public instance of Gitea... it seems to currently be targeted at self hosted instances, and then its speed is obviously dependent on the hardware it’s hosted on.)
Gitea and SourceHut can both be very fast, from what I’ve seen, but I haven’t seen any objective comparison numbers.
A separate comparison would be needed to test the performance of self-hosted options. This comparison is meant to test hosted options, and in order to be fair, that has to also account for their hardware configuration, network situation, and so on, so simply adding a vaguely defined "Gitea" measure here would not be fair.
As the maintainer of the linked vis project, I can confirm that the provided SSH access to the CI environment is very convenient and saves a lot of time.
I would also like to see the NetBSD support completed. It turns out that up until last week, we missed a #define to compile out of the box[1].
[1] https://git.sr.ht/~martanne/vis/commit/01eef9f87b72b0c147367...
> gemini:// and gopher:// URLs are now permitted for profile URLs
Is that as far as SourceHut's Gemini support goes for now? Could we expect more in future?
https://drewdevault.com/2018/11/15/sr.ht-general-availabilit...
The country of Haiti? Réseau de Développement Durable d'Haïti is an autonomous non-profit that acts much like a government department. They're actually also in charge of Haiti's internet backbone, so are less likely to be inclined to come up with arbitrary rules or suddenly change what is acceptable for the ccTLD. They have bigger concerns.