qutebrowser development blog: Paving the road towards qutebrowser v2.0

栏目: IT技术 · 发布时间: 4年前

内容简介:Today, it's been exactly 6 months since I launched theI wanted to use this opportunity to update everyone on what has been going on, on my plans for qutebrowser's future, and on various other bits and bytes - I have a lot of things I want to write down in

Today, it's been exactly 6 months since I launched the GitHub Sponsors campaign - time flies!

I wanted to use this opportunity to update everyone on what has been going on, on my plans for qutebrowser's future, and on various other bits and bytes - I have a lot of things I want to write down in my head, so this might get rather long. Grab some beverage of your choice, and feel free to skip over sections which don't seem relevant for you!

In case you're reading this via the Python or Qt Planet and need some context:qutebrowser is a web browser with vim-like keybindings, based on Python and Qt.

Founding a company

(Note that the donation amounts mentioned here are rounded figures. Thus, they should still be roughly accurate if you substitute USD by CHF or EUR.)

After starting the crowdfunding, I had no idea what to expect. If I had to guess, I'd probably have expected a couple hundred USD per month. I'm happy to report that I'm getting an average of around 1000 USD in donations since November.

I'm very happy to receive so many donations - this is quite extraordinary for a somewhat niche open source project, and I'm grateful to have an awesome community around qutebrowser! However, getting regular donations also meant a lot of additional "bureaucracy" work. I had to fill out US tax-exemption forms (W8-BEN) for GitHub, and I had to found my own small company to take care of things like taxation or social security contributions for the income.

Founding a small freelancing company is something I wanted to do anyways: I did some small freelancing gigs during my studies, and that's something I wanted to continue building upon.

qutebrowser development blog: Paving the road towards qutebrowser v2.0

Thus, Bruhin Software was born. In case you're wondering: The bear paw is based on the family coat of arms for my last name "Bruhin", which needed to be part of the company name due to Swiss laws for sole proprietorship companies.

Getting everything set up took some time: To combat employments by a single company disguised as self-employment, you typically have to start working as a company and prove that you have at least three different customers, as well as things like a logo or business cards.

Thankfully, I already had some ideas lined up during my studies, so I could do various gigs in late 2019 and early 2020:

  • I was in Berlin in November - besides speaking at the Qt World Summit and finally meeting the people behind Qt at the Qt Contributors Summit, I also gave a training about advanced Python and pytest at a company.
  • Around January/February/March, I updated a website run by an Open Source student association (both links in German). That website is a platform for students to upload cheatsheets and other documents. I modernized it from an outdated tech stack (Django 1.8 which was supported until April 2018, Python 2, server with 2000 days uptime and broken RAID) to something current and maintainable again.
  • In February, I was in Dresden (Germany) for another Python/pytest training.
  • I gave a training on pytest basics in London in March.
  • In April, I gave a remote training on writing GUIs using Qt for Python (PySide2).
qutebrowser development blog: Paving the road towards qutebrowser v2.0

I don't intend this to get something too big - and I'm not financially dependent on either donations or freelancing work, as I'm still employed 40% by an university. Still: If you're interested in trainings or consulting around Python (especially the language itself, testing with pytest, or writing GUIs with PyQt5 or PySide2): Please reach out to florian@bruhin.software !

Back to bureaucracy: After failing to figure out how to best handle the rather unique situation around donations and such, I reached out to a tax professional (website in German) in February. That was a great idea: I'm happy to report that yesterday, I finally got the official confirmation that I'm (part-time) self-employed.

In the meantime, I also took care of some other things, like making sure my accounting (something I had ignored so far) was up-to-date. Again, I intend to get some professional help where needed, but I think it's good to have some overview over things personally as well.

Long story short: Setting things up was a rather long but exciting journey. With that out of the way, I can now get back to doing more for qutebrowser again.

Doing some other work for a while definitely was a good variation, though it can be difficult to juggle three responsibilities (employment at the university, freelancing, qutebrowser) at times.

Funding campaign

Back to the GitHub Sponsors funding: Originally, I wanted to order shirts, stickers and swag in May. This won't be happening for now, as I don't trust postal services in various countries to be reliable at the moment (and even if they are: they are overloaded enough right now).

Thus, the shipping date for those physical rewards is currently postponed indefinitely. I'll send out updates via GitHub Sponsors as soon as there's some news on that front.

qutebrowser development blog: Paving the road towards qutebrowser v2.0

Thanks to all your generous donations, I reached GitHub's $5000 matching cap around March. GitHub Sponsors still remains an excellent platform for collecting funding, as they have no fees, not even for currency conversions. I still have some ideas for alternative funding options via Stripe, but that's not a priority for me right now.

From time to time, people ask me how much money I'm still missing in donations. I struggle to find an answer for that question: Working on qutebrowser isn't primarily about money, otherwise I wouldn't still be doing it after 6.5 years. Even if you ignore the "historical" work and pick the lowest rate I'm willing to work for as a freelancer (50 USD/h which I've billed for some open-source work before, for non-commercial projects I really like): The 1000 USD would lead to around 20h of work per month. I think it's safe to say that I'm doing more than that on average, especially if you consider community reach-out, which is still something I find very important. As an example: Just today, I replied to one private mail related to qutebrowser, answered to a new issue, three mailinglist mails, a couple of Reddit posts, and some questions in IRC. I like hearing from all the people using qutebrowser (and helping them), though!

With the bureaucracy out of the way and no planned freelancing gigs right now, at this point I can commit to doing a bit more work on qutebrowser. To start with, I plan to work on qutebrowser exclusively for a day per week (in addition to the small day-to-day things). It's possible I'll be able to ramp that up soon - for the next 4-5 weeks, there's still a lot to finish for university lectures.

Around June/July/August, I might also able to devote some bigger blocks of time to qutebrowser as there are no weekly university preparation deadlines - for example, I could work for a week or two on qutebrowser only, and then on university stuff for another week or two. I will need to experiment a bit to see what works best.

Like probably a lot of people, I'm currently stuck working from my home-office, which is my 11m² bedroom. Productivity-wise, that probably isn't optimal, but we'll see how things go. So far, I seem to manage quite well, though I'm looking forward to going to the office for university work again some time in the (hopefully not too distant) future.

Pull request backlog

My immediate focus for qutebrowser - and something I know various people are waiting for - is still the backlog of contributions, some dating back to December 2017. This is still something I struggle with, as reviewing code takes a lot of time and focus (perhaps more than writing code myself) and for a long time, I felt overwhelmed by the backlog.

Still, two years later, I feel like I'm finally getting a grasp on the issue, and I feel confident that I can clear things up this time around. The thing which ended up helping me a lot is creating a GitHub project board where I'm organizing pull requests into various categories, depending on (what I think is) their current state.

qutebrowser development blog: Paving the road towards qutebrowser v2.0

This helped me tremendously and resulted in 15 PRs being merged since I opened the project board 16 days ago. I finally feel like I'm not missing the forest for the trees anymore. I hope I'll be able to continue the trend of merging around 1 PR per day on average (at least until I get to the more complex ones), but there are is also another urgent change coming up - more on that in the next section.

Thanks again to everyone for your patience. Around once a week or so, people ask me what the current state of a given pull request is - usually with a different pull request every time, since different people have different priorities. I hope the project board will result in more transparency in that regard. Note, however, that I likely won't be able to say more than that. If there aren't any open comments on a pull request, I don't know what's missing to get it merged: I haven't looked at that particular PR in detail yet.

For older PRs, often there are conflicts with the current master branch, or the author might have moved on and is not interested in continuing to invest time into get the PR merged. As a result, I usually request changes and give feedback on recent PRs, but I will pick up and finish older PRs from where they are currently.

Session changes in Qt 5.15

Loading of sessions has always been a bit of a hack in qutebrowser (though a hack other QtWebEngine browsers share as well; the original idea is coming from Otter Browser ): Since QtWebEngine doesn't provide a way to load a tab's back/forward history, qutebrowser reconstructs a binary data stream used by Qt internally to save/restore history objects.

Unfortunately, that reverse-engineered binary stream changed in the underlying Chromium version for Qt 5.15, causing it to load about:blank rather than the URLs from the session. When the session is saved again, this causes the pages originally listed in it to be overwritten. With the change, a complex "page state" blob is now required to load a tab's history, and this isn't something we can reconstruct from the data available in session files.

As a stop-gap measure, I released qutebrowser v1.11.0 this week, which works around the issue by at least opening the current URL for each tab, and also creates a backup of the session directory on the first start with Qt 5.15.

Solving the issue properly means adding support for a new history format, which stores the binary "page state" data needed by Chromium when saving a session, and restores the data when loading the session.

At the same time, some other session format changes are planned as well: Sessions will be saved as a JSON file (rather than YAML), stored inside a zip file together with the required binary data. After some discussion, this was deemed the best solution to store the needed data efficiently, while still keeping session data readable by humans and scripts alike.

Other bits and pieces

Finally, there are other smaller changes I'd like to take a look at, for a variety of reasons: A few are urgent or important for qutebrowser to continue working, some are important to me personally, others are just a good fit together with a PR I might be reviewing.

To make it more transparent what my current focus is, I opened another roadmap project board on GitHub, where I'm collecting issues I'm currently focused on or issues I'd like to tackle.

The road towards Qt 6 and qutebrowser v2.0.0

After Qt 5.15 is released in around three weeks, the next release will be Qt 6 - a new major release of Qt with backwards-incompatible changes, something that happens once all 7-8 years.

qutebrowser development blog: Paving the road towards qutebrowser v2.0

An initial timeline was proposed this week, planning a Qt 6 release for December 2020. Unfortunately, while Qt 4 and 5 were supported in parallel for three years, this time around, non-commercial support for Qt 5 will end the moment Qt 6 is released.

Therefore, qutebrowser's plan is to be ready for Qt 6 as soon as possible after it's released (or, ideally, before that). At the same time, qutebrowser will keep compatibility for Qt 5 for some time (multiple months, possibly multiple years, depending on the maintenance cost and usage. Right now it's too early to tell).

It's planned to use that opportunity to clean up various things for a qutebrowser v2.0.0 release: There will be various dependency changes with Python 3.5 support dropped , support for Qt < 5.11 dropped and some dependencies being added, swapped out or removed.

At the same time, there will be various other internal refactorings: I'd like to get back to looking at extension support and related refactorings, and also start using various automatic code-formatters such as black and isort . Those projects weren't around (or not used commonly) when qutebrowser was born, but I think they would be a good addition to make everyone's lives easier when working on qutebrowser - just like various Python 3.6+ only features, especially fstrings .

All that will cause a lot of code churn, so it will only happen after the majority of the currently open pull requests are merged. I hope that timeline will work out, and qutebrowser will be a more modern codebase by the end of the year! See the v2.0.0 milestone on GitHub for all planned changes.

Qt Company and the KDE free Qt foundation

qutebrowser development blog: Paving the road towards qutebrowser v2.0

Finally, there was a concerning announcement by the KDE Free Qt Foundation before Easter. In the announcement, they claim that:

[...] [The Qt Company] suddenly informed both the KDE e.V. board and the KDE Free QT Foundation that the economic outlook caused by the Corona virus puts more pressure on them to increase short-term revenue. As a result, they are thinking about restricting ALL Qt releases to paid license holders for the first 12 months. They are aware that this would mean the end of contributions via Open Governance in practice.

A day later, The Qt Company published a (very brief) announcement disputing those claims:

There have been discussions on various internet forums about the future of Qt open source in the last two days. The contents do not reflect the views or plans of The Qt Company.
The Qt Company is proud to be committed to its customers, open source, and the Qt governance model.

I've asked both sides for clarification ( KDE , Qt ). This was three weeks ago, and I haven't heard much more so far.

If this came true, there aren't many options for qutebrowser and me: Either add support for a different backend (such as Chromium Embedded Framework ) which means months of work on top of an already giant backlog; or throw the towel. Having a browser backend with a year delay in security updates is unacceptable to me, and due to Qt's commercial license terms, purchasing a commercial license isn't a reaslistic option either.

Needless to say, this would be a very hard decision to take. For now, it looks like The Qt Company just used this to bluff (probably to get some other provision in their contract changed). That in itself is very concerning and disheartening, but gives me hope that things can still continue as usual.

I will update everyone on this matter once (if) there's more to say - until then, there isn't much more I can do.

Wrapping up

It's been four months since the last blog post in thequtebrowser blog. Judging from the length of this post, I probably should post things more often - sorry about that, and thanks for reading until the end! I hope you are all healthy and things are going okay, despite the current circumstances. If that's not the case and you need someone to talk, please don't hesitate to reach out to me ! Let's see what the future brings and deal with things as they come up - both with qutebrowser and in general.


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

JavaScript编程精解

JavaScript编程精解

Marijn Haverbeke / 徐涛 / 机械工业出版社华章公司 / 2012-10-1 / 49.00元

如果你只想阅读一本关于JavaScript的图书,那么本书应该是你的首选。本书由世界级JavaScript程序员撰写,JavaScript之父和多位JavaScript专家鼎力推荐。本书适合作为系统学习JavaScript的参考书,它在写作思路上几乎与现有的所有同类书都不同,打破常规,将编程原理与运用规则完美地结合在一起,而且将所有知识点与一个又一个经典的编程故事融合在一起,读者可以在轻松的游戏式......一起来看看 《JavaScript编程精解》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试