File: porting-status.md

package info (click to toggle)
laniakea 0.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 15,464 kB
  • sloc: javascript: 38,493; python: 21,153; sh: 196; makefile: 129; ansic: 3
file content (53 lines) | stat: -rw-r--r-- 4,185 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Laniakea Porting Progress

All Laniakea modules are current being either ported to pure Python 3, or to hybrid Python+D modules where that route makes sense.
In order to use SQLAlchemy through all parts of Laniakea, all D code parts that directly interact with the database need to be rewritten to
be wrapped by Python code instead.
Additionally, all modules that interact with the ZeroMQ-based communication hub need to be adapted as well.
Since these changes touch every single module of Laniakea, the porting is also used to correct a few design mistakes that could not be
fixed before without disruptive changes.
There will be no direct migration from the pure-D Laniakea version to the new version, running the two versions in parallel will be
impossible.


## Why?

D is an awesome language for writing quick algorithms, for string processing and for writing fast code with less effort than doing the same in C or C++.
However, when it comes to database connectivity, the existing 3rd-party projects have serious issues. In the past, I have run into bugs related to these modules so often,
that I spent more time addressing issues related to database connectivity than actually working on Laniakea itself. Additionally, writing web applications
in pure-D is still less fun than doing the same in Python.
All of these issues could be fixed, but Laniakea is not a project to fix issues in 3rd-party D modules and those were at some point just slowing progress down too much.
Python is a much better choice, so going the hybrid rout of Python+D is the way forward.
Since much cleverness and testing exists for the existing D code, as much of it as possible will be reused.


## Status

Module | Purpose | Depends on | Status
------------ | ------------ | ------------ | -------------
Core facilities | Generic helper library and tools | - | :heavy_check_mark: Completed
Spark | Generic task processing daemon | ZMQ communication protocol | :heavy_check_mark: Completed
Synchrotron | Synchronize packages from different suites | Core | :heavy_check_mark: Completed
Admin CLI | CLI tool for configuring modules | Core | :heavy_check_mark: Completed
Dataimport | Import archive (meta)data into the database | Core | :heavy_check_mark: Completed
Isotope | Manage recipes for distribution disk image builds. | Core | :heavy_check_mark: Completed
Daktape | Glue code to communicate with dak | - | :large_orange_diamond: In progress
Debcheck | Check package dependency graph for issues | Core, Dataimport | :heavy_check_mark: Completed
ZMQ communication protocol | Protocol modules use to communicate, needs a few design changes (e.g. messages must be versioned now) | Core | :heavy_check_mark: Completed
Lighthouse | ZeroMQ communication hub | Core, Dataimport, Debcheck, Communication Protocol | :heavy_check_mark: Completed
Keytool | Manage cryptographic keys and signatures | Core, Lighthouse | :heavy_check_mark: Completed
Planter | Generate metapackage information from seeds | Core | :heavy_check_mark: Completed
Rubicon | Accept build artifacts into a trusted area | Core, Lighthouse | :heavy_check_mark: Completed
Spears | Migrate packages between suites with Britney | Core | :heavy_check_mark: Completed
Ariadne | Package build scheduler | Dataimport, Debcheck, Lighthouse | :heavy_check_mark: Completed
Web | Web UI | All backend modules | :heavy_check_mark: Completed
Web-SWView | Web package and application browser | Dataimport, AppStream | :heavy_check_mark: Completed
Irk | IRC bot | Lighthouse | :broken_heart: Will not be ported and has been removed
Mirk | Matrix bot | Lighthouse | :heavy_check_mark: Completed
PhabBridge | Bridge to Phabricator | Lighthouse | :large_orange_diamond: In progress


:bangbang: The module ports have different complexities. The core port was the most difficult, the Lighthouse and Dataimport ports will also be time-intensive, while the other
modules will be much easier. Since all modules share quite a lot of code and design ideas, each subsequent module port will be easier than the
one before it.
The web UIs and chat / phabricator bridges will be the last items to be ported, as they depend on the other modules to be mostly done.