Repository navigation
Replies: 4 comments 3 replies
|
One item we might considering adding to this list is consolidating a plan for CUE documentation, in particular for newcomers to the language. Brainstorming what might fall under that umbrella (definitely not exhaustive):
Improving the core CUE documentation (independent of the Dagger docs) has the obvious benefit of helping to grow/support the wider CUE ecosystem which has derivative benefits for Dagger, but also means we can standardise on an approach with respect to:
|
0 replies
|
I added a new point: 8. Hidden fields API. |
2 replies
|
I added a new point: 9. Catch broken references to outside packages |
1 reply
|
Added point 10: stacking default values. This has been discussed elsewhere, we had just omitted to add it to this “radar”. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There is much overlap between the roadmaps of Dagger and Cue. I thought it would be useful to have a catalog of those issues, and perhaps a centralized discussion thread would help us assemble that catalog together.
I’m not 100% sure whether this should be an issue or a discussion… But since it’s quite open ended, and it’s not obvious when this discussion should evet be “closed”… I am trying the discussion format.
Below is a list of tasks or workstreams which are needed by both Cue and Dagger. Please suggest more, or start discussions on existing items as needed!
1. Cue modules
This one is obvious… Dagger can be programmed with Cue. The ability to share and reuse software components as Cue packages is crucial to the Dagger developer experience.
2. Package documentation
The ability to generate great documentation for any Cue package, similar to
go doc, would be very useful. Dagger has implemented a fill-in withdagger doc.3. Information on data flow
This is a sub-item of package documentation.
dagger docrelies on a concept of “inputs” and “outputs” which are specific to Dagger… but I believe all Cue developers would benefit from knowing which fields of a given definition are required to be set, and which fields are derived from input fields. This is equivalent to distinguishing parameters from return values in a regular programming language. Developers need help understanding the flow of data, especially in code written by someone else.4. Embedding
Dagger developers in particular, and all Cue developers in general, will benefit from seamlessly combining the contents of Cue and non-Cue files bundled together in the same Cue package. In the case of Dagger, this facilitates packaging hybrid components for the Dagger runtime: imperative code (shell, Go, Pythong, Javascript..) executed in a declaratively specified pipeine (Cue).
5. Performance
Some Dagger configurations are very slow to load, both with
daggerandcue. Some of these performance issues have been solved in past Cue updates; others are already known; more will be discovered in the future as Dagger adoption grows.6. Editor integration
A good developer experience requires good integration with code editors. That means implementing a language server, and integrating with as many editors as possible, starting with the most popular ones. The goal is that seamless integration with existing editors is not only technically possible, but easy to find and setup - or even better, just works out of the box.
7. Schema migrations
Cue encourages sharing and reusing definitions. Inevitably, some of these definitions will change in a backwards-incompatible way, causing their downstream consumers to break. In theory, Cue has the capability to help solve this problem. For example, the
cue fixwill magically modify your configuration to adapt to even major language changes. Perhaps the same could be possible one day for package changes?8. Hidden fields API
Dagger encourages the use of hidden fields (
_foo) for information private to a package. This helps keep configurations clean and readable. However, an important feature of Dagger is that it can fill “blank” fields dynamically by executing external code. At the moment Dagger can fill regular fields in this way, but not hidden fields, because the Go Cue API does not allow it.The result is that Dagger developers cannot must choose between A) making a field private, and B) filling it dynamically. This makes Dagger configurations less clean and readable than they could be.
9. Catch broken references to outside packages
This is a very specific issue, but it is a constant source of friction in the Cue development experience; and therefore the Dagger development experience.
In short: sometimes Cue catches broken references (references to values that don’t exist) and that is very useful; but sometimes Cue does not catch them, and that causes a very frustrating experience. A better experience would be for all broken references to be caught by
cue eval, so that the developer can fix them.This has been reported upstream, and I believe is a WONTFIX. That is a mistake.
Here is a snippet:
10. Stacking default values
CUE does not support stacking default values: setting multiple defaut values for the same field, in different scopes. This is discussed in a follow-up thread in #1243. This is by design, because it would break a cardinal rule of CUE whereby order doesn’t matter.
As justified as it is, this design decision can lead to developer pain. In practice it means that authors of reusable packages cannot use default values without causing their abstraction to leak. The pain can be managed, but we should monitor it, in case a solution or mitigation opportunity emerges.
cc @aluzzardi @samalba @myitcv @mpvl @jlongtine @sdboyer
All reactions