3 ms·
> what can be done with absolutely no runtime memory allocations. How does it handle long inputs then? > var input_buffer: [max_input]u8 = undefined; Well, I
by nyanpasu64 5y ago
> what can be done with absolutely no runtime memory allocations.
How does it handle long inputs then?
> var input_buffer: [max_input]u8 = undefined;
Well, I suppose setting a fixed maximum length for user input is a way to never allocate.
- davegauer 5y agoHa ha, exactly. Again, I emphasize that this is a toy. On the other hand, there generally _is_ a limit: $ getconf ARG_MAX 2097152