| 1 |
# Roadmap |
| 2 |
|
| 3 |
This documents some of the goals we have. Many of them are quite independent. |
| 4 |
|
| 5 |
> **Note:** Most people contributing to Jujutsu do so in their spare time, which |
| 6 |
> means that we cannot attach any target dates to any of the goals below. |
| 7 |
|
| 8 |
## Support for copies and renames |
| 9 |
|
| 10 |
We want to support copy tracing in a way that leaves it up to the commit backend |
| 11 |
to either record or detect copies. That should let us work with existing Git |
| 12 |
repos (Git does not record copies, it detects them on the fly) as well as with |
| 13 |
very large repos where detection would be too slow. See |
| 14 |
[design doc][copy-design-doc]. |
| 15 |
|
| 16 |
## Forge integrations |
| 17 |
|
| 18 |
We would like to make it easier to work with various popular forges by providing |
| 19 |
something like `jj github submit` and `jj gitlab submit`. For popular forges, we |
| 20 |
might include that support by default in the standard `jj` binary. |
| 21 |
|
| 22 |
## Submodule support |
| 23 |
|
| 24 |
Git submodules are used frequently enough in large Git repos that we will |
| 25 |
probably need to [support them][submodules]. There are still big open |
| 26 |
questions around UX. |
| 27 |
|
| 28 |
## Better Rust API for UIs |
| 29 |
|
| 30 |
UIs like [gg] currently have to duplicate quite a bit of logic from `jj-cli`. We |
| 31 |
need to make this code not specific to the CLI (e.g. return status objects |
| 32 |
instead of printing messages) and move it into `jj-lib`. |
| 33 |
|
| 34 |
## RPC API |
| 35 |
|
| 36 |
One problem with writing tools using the Rust API is that they will only work |
| 37 |
with the backends they were compiled with. For example, a regular [gg] build |
| 38 |
will not work on Google repos because it doesn't have the backends necessary to |
| 39 |
load them. We want to provide an RPC API for tools that want to work with an |
| 40 |
unknown build of `jj` by having the tool run something like `jj api` to give it |
| 41 |
an address to talk to. |
| 42 |
|
| 43 |
In addition to helping with the problem of unknown backends, having an RPC API |
| 44 |
should make it easier for tools like VS Code that are not written in Rust. The |
| 45 |
RPC API will probably be at a higher abstraction level than the Rust API. |
| 46 |
|
| 47 |
See [design doc][api-design-doc]. |
| 48 |
|
| 49 |
## Open-source cloud-based repos (server and daemon process) |
| 50 |
|
| 51 |
Google has an internal Jujutsu server backed by a database. This server allows |
| 52 |
commits and repos (operation logs) to be stored in the cloud (i.e. the database). |
| 53 |
Working copies can still be stored locally. |
| 54 |
|
| 55 |
In order to reduce latency, there is a local daemon process that caches reads |
| 56 |
and writes. It also prefetches objects it thinks the client might ask for |
| 57 |
next. It also helps with write latency by optimistically answering write |
| 58 |
requests (it therefore needs to know the server's hashing scheme so it can |
| 59 |
return the right IDs). |
| 60 |
|
| 61 |
We (the project, not necessarily Google) want to provide a similar experience |
| 62 |
for all users. We would therefore like to create a similar server and daemon. |
| 63 |
The daemon might be the same process as for the RPC API mentioned above. |
| 64 |
|
| 65 |
## Virtual file system (VFS) |
| 66 |
|
| 67 |
For very large projects and/or large files, it can be expensive to update the |
| 68 |
working copy. We want to provide a VFS to help with that. Updating the working |
| 69 |
copy to another commit can then be done simply by telling the VFS to use the |
| 70 |
other commit as base, without needing to download any large files in the target |
| 71 |
commit until the user asks for them via the file system. A VFS can also make it |
| 72 |
cheap to snapshot the working copy by keeping track of all changes compared to |
| 73 |
the base commit. |
| 74 |
|
| 75 |
Having a VFS can also be very benefial for [`jj run`][jj-run], since we can then |
| 76 |
cheaply create temporary working copies for the commands to run in. |
| 77 |
|
| 78 |
## Better support for large files |
| 79 |
|
| 80 |
We have talked about somehow using content-defined chunking (CDC) to reduce |
| 81 |
storage and transfer costs for large files. Maybe we will store files in our |
| 82 |
future cloud-based server using the same model as [XetHub][xet-storage]. |
| 83 |
|
| 84 |
[api-design-doc]: https://docs.google.com/document/d/1rOKvutee5TVYpFhh_UDNZDxfUKyrJ8rjCNpFaNHOHwU/edit?usp=sharing&resourcekey=0-922ApyoAjuXN_uTKqmCqjg |
| 85 |
[copy-design-doc]: design/copy-tracking.md |
| 86 |
[gg]: https://github.com/gulbanana/gg |
| 87 |
[jj-run]: https://github.com/jj-vcs/jj/issues/1869 |
| 88 |
[submodules]: https://github.com/jj-vcs/jj/issues/494 |
| 89 |
[xet-storage]: https://web.archive.org/web/20240914200921/https://xethub.com/assets/docs/concepts/xet-storage |