These are chat archives for ProtoDef-io/node-protodef
572 (16%) generics
what would improve go the most
I have a very simple solution - switch to Rust. rustc statically guarantees that your code is beautiful and efficient. Once you've switched, no one in your team will be able to commit shitcode to the project. It simply won't compile. In addition to that, Rust also has zero-cost abstractions, move semantics, guaranteed memory safety, threads without data
opencall to the file in the camera folder...
Global mutex and multiprocessing
The method above for implementing threading in Lua using a global mutex is inefficient on multiprocessor systems. As one thread holds the global mutex, other threads are waiting for it. Thus only one Lua thread may be running at a time, regardless of the number of processors in the system.
>> 3not just multiply by 8
byte_size(options[:buffer]) <<< 3 :: size(16)->
trunc(byte_size(options[:buffer]) * 8) :: size(16)
no match of right hand side value: <<9, 0, 5, 47, 132, 141, 188, 73, 132, 0, 0, 0, 0, 0, 0, 0, 0, 0>>
<< buffer :: size(length), rest :: binary >> = rest