zstd
zstd copied to clipboard
Is there any machine-readable way to get dict creation progress
I mean some callback called against a struct (or a pointer to it) containing actual values.
API using callbacks have drawback: interoperability is limited.
C/C++ program & library using same compiler is probably fine, but beyond that, callback conventions are not specified rigidly enough.
Portability and interoperability being a prime concerns, we should try to find a solution which doesn't expose to such problems.
Maybe a polling solution, triggered from user side, could prove good enough for this use case ?
but beyond that, callback conventions are not specified rigidly enough.
I don't quite understand how calling a callback differs from calling a just function and how a callback convention differs from just a calling convention for a function.
Maybe a polling solution, triggered from user side, could prove good enough for this use case ?
Maybe. But spawning a separate thread in a CLI app for a progressbar is IMHO an overkill.
I don't quite understand how calling a callback differs from calling a just function and how a callback convention differs from just a calling convention for a function.
I think this becomes an issue when interfacing beyond the C/C++ world. For example, think about a python or java wrapper.
I think this becomes an issue when interfacing beyond the C/C++ world. For example, think about a python or java wrapper.
don't ffi libs deal with the most of it?