kay

Experimental high-performance actor system framework for Rust

Github星跟蹤圖

kay

kay is a...

  • High-performance actor system for Rust
  • suitable for simulating millions of entities in realtime
  • which only communicate using asynchronous messages

kay can be transparently and trivially scaled onto...

  • multiple cores
  • multiple networked computers
  • browser clients with wasm and cargo web

It offers...

  • Actor IDs identifying
    • Instances of an Actor Type
    • Broadcasts to all instances of an Actor Type
    • Generic (type-erased) Actor Trait IDs
    • Actor instances across networked computers
  • A Recipient<Message> trait in which a user implements message handling for each message type that an Actor can receive
  • InstanceStores - collections of large numbers of instances of one actor type
    • Compact and efficiently managed memory storage for dynamically-sized instance state, supplied by chunky
    • Dispatch of messages to individual instances
    • Very efficient broadcasting of a message to all instances
  • Serialisation-free persistence, snapshotting and loading of actor and system state using memory-mapped files, implemented by chunky
  • Abstractions like futures and map-reduce for awaiting and aggregating asynchronous responses from other actors
  • "Essential" message types that are handled even after a panic occurs in an Actor, allowing interactive inspection of the whole panicked system

It internally uses...

  • A message queue per Actor Type that is
    • unbounded
    • multi-writer, single-reader
    • lock-free
  • The experimental TypeId feature, to tag message blobs with their type id for runtime message handling function dispatch
  • A Slot Map in InstanceStores to assign unique IDs to instances, while always keeping them in continous memory chunks. This makes iterating over them for broadcast messages very fast.

kay is inspired by Data-Oriented Game Development, Erlang and the original ideas behind Object-Orientedness. It is thus named after Alan Kay.

主要指標

概覽
名稱與所有者mac-gallagher/MultiProgressView
主編程語言Swift
編程語言Rust (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2018-06-26 00:36:00
推送於2021-03-27 14:41:12
最后一次提交2020-07-03 03:11:47
發布數18
最新版本名稱v1.3.0 (發布於 )
第一版名稱0.1.0 (發布於 )
用户参与
星數1k
關注者數14
派生數63
提交數125
已啟用問題?
問題數14
打開的問題數5
拉請求數34
打開的拉請求數1
關閉的拉請求數5
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?