I’m following the Email app tutorial but there is one thing that I can’t understand: why is there this “data handle” thing? Why not just use the “name + tag”?
As far as I understand, DataId commands don’t interact with the network, but rather, they only interact with the launcher / FFI libraries. They are a sort of helper methods. I believe that each SD/Immutable/Appendable command needs to allocate memory and do some transactions that can be optimized with this approach, but I’m afraid that this can lead to memory leaks on websites.
Unless I’m missing some point, this brings to the average JS developer the same risks of using a memory handling language, such as C. We know that it is easy for very good developers to create memory allocation related bugs, that’s the main reason why Rust was created in first place, so imagine this power given to the average web-developer. It won’t be a surprise if mostly safe sites don’t free these handlers after its use, leading to memory problems after some time navigating through safe websites.
Sorry if misunderstood this feature, I hope that I had and I’ll be glad if someone clarify it to me
PS: I don’t know where to put this question. Is it here or on the safe dev forum?