Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .buckconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

[cells]
root = .
prelude = nix/build/prelude
toolchains = toolchains
prelude = build/prelude
toolchains = build/toolchains
none = none

[cell_aliases]
Expand Down
1 change: 0 additions & 1 deletion HACKING.md

This file was deleted.

97 changes: 0 additions & 97 deletions TEST_COVERAGE.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions build/prelude
2 changes: 1 addition & 1 deletion sgconfig.yml → build/sgconfig.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ast-grep configuration for straylight/nix
# Hypermodern C++ house style enforcement
ruleDirs:
- rules
- build/lint
# Exclude vendor and build directories
ignores:
- vendor/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
57 changes: 0 additions & 57 deletions compile_commands_gen.py

This file was deleted.

55 changes: 0 additions & 55 deletions cppcheck.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion dhall/pre-commit.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let local-hooks =
Hook::{
, id = "ast-grep"
, name = "ast-grep (errors)"
, entry = "ast-grep scan --config sgconfig.yml"
, entry = "ast-grep scan --config build/sgconfig.yml"
, language = "system"
, types_or = Some [ "c", "c++" ]
, files = Some "^src/straylight/"
Expand Down
33 changes: 20 additions & 13 deletions ARCHITECTURE.md → docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ src/
│ ├── compile/ # Binaryen codegen
│ ├── eval/ # Tree-walking interpreter
│ ├── runtime/ # WASM execution (wasmtime)
│ ├── cli/ # Evaluation CLI tools
│ └── tests/ # Property-based tests
│ └── cli/ # Evaluation CLI tools
├── nix/ # Modern utility modules (crypto, text, url, async, sync, data, etc.)
│ ├── NIH.md # NIH replacement tracking
Expand All @@ -145,12 +144,20 @@ src/
│ ├── store.h # Daemonless store
│ └── async/ # taskflow-backed concurrency
└── protocol/ # Formal protocol specs (Kaitai)
├── README.md # Protocol documentation
├── nix_daemon.ksy # Daemon protocol schema (48 ops)
├── nar.ksy # NAR format schema
├── captures/ # Binary test vectors
└── hs/, src/ # Haskell, Rust implementations
├── protocol/ # Formal protocol specs (Kaitai)
│ ├── README.md # Protocol documentation
│ ├── nix_daemon.ksy # Daemon protocol schema (48 ops)
│ ├── nar.ksy # NAR format schema
│ ├── captures/ # Binary test vectors
│ └── hs/, src/ # Haskell, Rust implementations
├── test/ # Centralized tests
│ ├── unit/ # Unit tests by module
│ ├── fuzz/ # Fuzz targets
│ ├── property/ # Property-based tests
│ └── integration/ # Integration tests
└── bench/ # Benchmarks by module
```

______________________________________________________________________
Expand Down Expand Up @@ -459,7 +466,7 @@ buck2 build //src/nix/util:util
buck2 test //src/straylight/...

# Run specific test
buck2 test //src/straylight/nix/compiler/tests:execution_test
buck2 test //src/straylight/test/unit/compiler:compiler_test
```

### Build Targets
Expand Down Expand Up @@ -543,11 +550,11 @@ primitives | 34+ files | 1,251 | - | | protocol | 3 languages | 42+ | - | | evri
buck2 test //src/straylight/...

# Specific component
buck2 test //src/straylight/nix/compiler/tests:...
buck2 test //src/straylight/nix/...
buck2 test //src/straylight/test/unit/compiler:...
buck2 test //src/straylight/test/unit/...

# Specific test file
buck2 test //src/straylight/nix/compiler/tests:execution_test
buck2 test //src/straylight/test/unit/compiler:compiler_test
```

______________________________________________________________________
Expand Down Expand Up @@ -698,7 +705,7 @@ ______________________________________________________________________
`src/straylight/nix/protocol/README.md` | Protocol specifications | | NIH Tracking |
`src/straylight/nix/docs/NIH.md` | Primitive replacement status | | Store Design |
`src/straylight/nix/store/docs/ARCHITECTURE.md` | Log-structured store | | C++ Style Guide |
`docs/cpp-style-guide.md` | Code conventions | | Contributing | `CONTRIBUTING.md` | Development
`docs/cpp-style-guide.md` | Code conventions | | Contributing | `docs/CONTRIBUTING.md` | Development
workflow |

______________________________________________________________________
Expand Down
15 changes: 10 additions & 5 deletions CONTRIBUTING.md → docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ src/
├── nix/ # core nix fork (C++23)
└── straylight/
├── evring/ # deterministic async I/O (io_uring)
└── nix/
├── compiler/ # nix → wasm compiler
├── protocol/ # formal protocol specs (kaitai)
└── {crypto,text,url,async,sync,store,...}/ # modern utility modules
├── nix/
│ ├── compiler/ # nix → wasm compiler
│ ├── protocol/ # formal protocol specs (kaitai)
│ └── {crypto,text,url,async,sync,store,...}/ # modern utility modules
└── test/ # all straylight tests
├── unit/
├── integration/
├── property/
└── fuzz/
```

## // style
Expand All @@ -57,7 +62,7 @@ Key points:
buck2 test //src/straylight/...

# run specific test target
buck2 test //src/straylight/nix/compiler/tests:execution_test
buck2 test //src/straylight/test/unit:compiler_test
```

## // commits
Expand Down
6 changes: 3 additions & 3 deletions docs/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,13 @@ buck2 build --prefer-remote //...
buck2 test //src/straylight/...

# Specific component
buck2 test //src/straylight/nix/compiler/tests:...
buck2 test //src/straylight/test/unit/compiler:...

# Single test file
buck2 test //src/straylight/nix/compiler/tests:execution_test
buck2 test //src/straylight/test/unit/compiler:compiler_test

# Run with output
buck2 test //src/straylight/nix/compiler/tests:execution_test -- --verbose
buck2 test //src/straylight/test/unit/compiler:compiler_test -- --verbose
```

### Formatting
Expand Down
Loading