zstd icon indicating copy to clipboard operation
zstd copied to clipboard

Is there any machine-readable way to get dict creation progress

Open KOLANICH opened this issue 6 years ago • 4 comments

I mean some callback called against a struct (or a pointer to it) containing actual values.

KOLANICH avatar Aug 21 '19 16:08 KOLANICH

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 ?

Cyan4973 avatar Oct 22 '19 00:10 Cyan4973

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.

KOLANICH avatar Oct 22 '19 06:10 KOLANICH

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.

Cyan4973 avatar Oct 24 '19 22:10 Cyan4973

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?

KOLANICH avatar Oct 25 '19 06:10 KOLANICH