Skip to content

Add jsmn_zig JSON tokenizer#54

Open
Ferki-git-creator wants to merge 1 commit into
nrdmn:masterfrom
Ferki-git-creator:master
Open

Add jsmn_zig JSON tokenizer#54
Ferki-git-creator wants to merge 1 commit into
nrdmn:masterfrom
Ferki-git-creator:master

Conversation

@Ferki-git-creator
Copy link
Copy Markdown

Add jsmn_zig - Memory-efficient JSON tokenizer

jsmn_zig is a Zig port of JSMN with significant improvements:

Key Features:

  • 4-byte compact tokens (vs 20+ bytes in standard tokens - 80% memory savings)
  • Zero-copy streaming with proper state management
  • Hybrid memory allocation - auto-switches between stack/heap
  • SIMD-ready optimizations for x86/ARM
  • Comptime-configurable for embedded use

Perfect for:

  • Embedded systems where memory matters
  • High-performance JSON parsing
  • Network protocol implementations
  • Configuration file parsing

The library maintains JSMN's simplicity while leveraging Zig's comptime power and memory safety.

## Add jsmn_zig - Memory-efficient JSON tokenizer

**jsmn_zig** is a Zig port of JSMN with significant improvements:

### Key Features:
- **4-byte compact tokens** (vs 20+ bytes in standard tokens - 80% memory savings)
- **Zero-copy streaming** with proper state management
- **Hybrid memory allocation** - auto-switches between stack/heap
- **SIMD-ready optimizations** for x86/ARM
- **Comptime-configurable** for embedded use

### Perfect for:
- Embedded systems where memory matters
- High-performance JSON parsing
- Network protocol implementations
- Configuration file parsing

The library maintains JSMN's simplicity while leveraging Zig's comptime power and memory safety.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant