Skip to content

Commit 5619d6e

Browse files
authored
Update execution assumptions in CLAUDE.md
Clarify assumptions regarding execution limits and data types.
1 parent c79cdf5 commit 5619d6e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

CLAUDE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ Performance, execution cost, and interpreter compatibility are critical.
2020
- Prefer stack work over dictionary heavy code
2121
- Do not replace stack-based logic with dictionary-heavy abstractions.
2222
- Do not refactor for readability at the expense of execution cost.
23-
- Do not assume GhostScript-only execution.
23+
- Do not assume GhostScript-only execution. Assume modern implementation limit, and warn when approaching those limits:
24+
- Integer representation may be 32- or 64-bit. Do not assume overflow or promotion at 32-bit.
25+
- Maximum of 65535 entries within dictionaries, arrays, and on the stack. (Assume user might already have entries on the stack.)
26+
- Maximum string length is 65535 characters.
2427

2528

2629
## Build
@@ -417,4 +420,3 @@ For repetitive tests, use template procedures:
417420
418421
(INVALID) /bwipp.encoderBadData er_tmpl
419422
```
420-

0 commit comments

Comments
 (0)