enc_hook & dec_hook factory (+ CI uv update) - #376
Conversation
| box_types: dict[Type, Struct] = {} | ||
| for ext_type in ext_types: | ||
| info = msgspec.inspect.type_info(ext_type) | ||
| if isinstance(info, CustomType): |
There was a problem hiding this comment.
docs on all this in at least the doc-string would be great ;)
There was a problem hiding this comment.
also obvi linking the msgpec docs where possible as well 🙏🏼
| # yield ext_codec | ||
| # | ||
| # ^-TODO-^ is it impossible to make something like this orr!? | ||
| # builtins we can have in same pld_spec as custom types |
There was a problem hiding this comment.
says who? link to msgspec docs pretty please :)
Shared memory array API and optional tight integration with `numpy` Landing this so many downstream major feature branches depend on it namely, - #375 - #376 - and the eventual https://pikers.dev/goodboy/tractor/pulls/10
uv update + enc_hook & dec_hook factoryenc_hook & dec_hook factory (+ CI uv update)
fbc9325 to
27e6ad1
Compare
|
@guilledk trying to figure out what we can actually distill from this without bringing in too much more then delegating to Also this needs a rebase! |
|
@guilledk needs a big rebase, but also this ended up getting moved elsewhere yah? |
|
Gotta rebase this one obvi but i think despite most of this stuff in a more refined form (i think) getting moved elsewhere, there's still a couple things we might want to keep. So i will be going through it, maybe updating and landing some content. |
The "Toward capability-based msging" section only pointed at the `#196`/`#36` epics. Fold in the concrete recent state, - `#365` as the most recent step: driving the whole `pld_spec` off plain type-annotations (e.g. annotating a context's `open_stream()` with `msgspec.Struct` subtypes) rather than explicit `pld_spec=` kwargs. - clarify that the decorator-level `@tractor.context(pld_spec=...)` is already the higher-level path (vs the lower-level `tractor.msg._ops.limit_plds()` escape hatch), pointing at `tests/msg/test_pldrx_limiting.py` + `test_ext_types_msgspec.py` which exercise both. - `#376` (from @guilledk, `auto_codecs` branch) as the drafted public factory API for the `enc_hook`/`dec_hook` pair (today only reachable via `tractor.msg._ops`). Addresses the caps-based-msging bullet in #472. (this patch was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code
No description provided.