# Karmem - 구글 Flatbuffers 보다 10배 빠른 바이너리 직렬화 포맷

> Clean Markdown view of GeekNews topic #7105. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=7105](https://news.hada.io/topic?id=7105)
- GeekNews Markdown: [https://news.hada.io/topic/7105.md](https://news.hada.io/topic/7105.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-08-03T10:24:01+09:00
- Updated: 2022-08-03T10:24:01+09:00
- Original source: [github.com/inkeliz](https://github.com/inkeliz/karmem)
- Points: 9
- Comments: 1

## Topic Body

- WebAssembly Host 와 Guest 간 데이터 전송을 빠르고 쉽게하기 위해 만든 Binary Serialization Format   
→ "event-command 패턴"  
→ 한번 인코딩하고, 언어에 관계없이 여러 게스트가 동일 콘텐츠를 공유해서 효율적  
- TinyGo 와 WASM에 최적화   
- 반복적으로 같은 타입의 다른 콘텐츠를 읽어들이는데 효율적  
- Object-API 를 제공하지만 그래도 빠름   
- 비교   
  - Witx 는 너무 복잡하고 데이터구조 와 함수까지 정의  
  - Flatbuffers 는 원하는 만큼 빠르지 않고, 바운드 체킹이 없음   
  - Cap'n'Proto 는 좋지만, Zig 및 AssemblyScript 구현이 없음. API도 어려움

## Comments



### Comment 11632

- Author: siabard
- Created: 2022-08-04T07:35:48+09:00
- Points: 1

비교적 신생언어인 Zig 에 대한 지원 우선순위가 높다니 놀랍네요. 제작자 분께서 애정하시나 봅니다.
