Byte primitives: at, count, isUtf8

Open
#266 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
56/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
backend

Research direction

Start with the core byte utilities and the consumer noted in jedit’s DL-0159 design draft. Implement bounded, metered byte access, counting, and UTF-8 validation as specified; done means all three operations return the stated types and satisfy those constraints.

Written by the indexing model from the issue text.

Description

Generic byte utilities Jim's text law needs, none of which knows about text editing: core.bytes.at(bytes, i) -> U8 (UTF-8 boundary checks), core.bytes.count(bytes, byte) -> U64 (line-break metrics), and core.bytes.isUtf8(bytes) -> Bool (replacement validity), each bounded and metered. Consumer: jedit DL-0159 drafts (https://github.com/flyingrobots/jedit/blob/main/docs/design/0159-edict-rope-representation.md).

Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/edict

All issues in flyingrobots/edict

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.