kaitai_struct_compiler
kaitai_struct_compiler copied to clipboard
C# Async with .NET Core Kaitai.Struct.Runtime.Async
Relates to:
- https://github.com/kaitai-io/kaitai_struct/issues/640
- https://github.com/kaitai-io/kaitai_struct_csharp_runtime/pull/17
- https://github.com/kaitai-io/kaitai_struct_tests/pull/71
This PR adds support for Kaitai.Struct.Runtime.Async. Due to my lack of Scala skills, I have used the original implementation of csharp and added csharpasync compilar and translator.
The structure should be improved and refactored by someone skilled in Scala. The copy of translator is unnecessary duplicate, but the tight coupling between classes requires it in this simple PoC.
@pluskal are you still working on this? I think this can be a huge improvement but it seems to be stale for 3+ years...
I am sorry, but we have finished the project. I needed this a few years ago, so I do not envision improving this further.
Changes I made should be pushed in the PRs above. I have used it on massively parallel applications, and the speed was satisfactory for my needs.
I am not experienced in Scala, so I can only help a little in this repo. It mainly was copy and paste for me.
Feel free to use this code as it is or continue where I finished. I can review C# if you want to make some changes there.