Skip to content

Directory structure rationalization  #43

Open

Description

@septract

We should reorganize the directory structure to be more reasonable. Currently it looks like this:

cn-tutorial/
├─ check.sh
├─ Makefile
├─ src/
│  ├─ tutorial.adoc
│  ├─ examples/
│  │  ├─ 3.c
│  │  ├─ ...
│  ├─ example-archive/
│  │  ├─ check-all.sh
│  │  ├─ check.sh
│  │  ├─ simple-examples/
│  │  │  ├─ working/
│  │  │  ├─ broken/
│  │  ├─ .../

Some anomalies:

  • The example-archive folder is buried, and we might want to lift it to the top level
  • Examples are categorized by name in src/examples but by folder in src/example-archive/

@bcpierce00

Activity

  1. thatplguy commented on Jul 15, 2024

    @thatplguy
    Collaborator

    Perhaps we can move example-archive into the CN repo, once it's split from the Cerberus repo? As remarked in the past, the example archive is less about teaching CN to new users and more for characterizing CN capabilities for us (tool developers) and for regression testing.

    I hear from @dc-mak that the CN/Cerberus repo split is underway and will hopefully be complete in the not too distant future.

  2. bcpierce00 commented on Jul 15, 2024

    @bcpierce00
    Collaborator
  3. thatplguy commented on Jul 15, 2024

    @thatplguy
    Collaborator

    I think some duplication is OK? I don't think it's a problem if the tutorial examples change independently of the example archive (e.g. improving readability, adding comments, etc.), and any structural changes we need to make, like syntax changes, will be more painful due to the number of examples in the archive rather than the relatively small bit of duplication.

  4. bcpierce00 commented on Jul 15, 2024

    @bcpierce00
    Collaborator
  5. septract commented on Jul 15, 2024

    @septract
    CollaboratorAuthor

    Agree. We should probably colocate example-archive with the CN test-cases that are already in the cerberus repo here.

  6. bcpierce00 commented on Jul 15, 2024

    @bcpierce00
    Collaborator
  7. cp526 commented on Jul 16, 2024

    @cp526
    Collaborator

    That's what I was thinking too: having everything, including the tutorial, in one place will make the CI setup smoother.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions