15 Commits

Author SHA1 Message Date
youben11
1e08d11e17 docs(frontend): TFHE-rs compatibility guide v1 2024-09-26 10:43:06 +02:00
Umut
2968e8070f docs(frontend): add performance tips section 2024-08-02 11:17:24 +02:00
Yuxi Zhao
a0195cf315 docs(frontend): update new structure and landing page 2024-03-11 18:55:50 +01:00
rudy
05bd8cc5f2 feat(frontend-python): approximate mode for round_bit_pattern 2024-03-01 16:04:11 +01:00
Umut
8ef84bed42 feat(frontend-python): add relu extension 2024-01-11 16:09:42 +01:00
Umut
54d792c7bf feat(frontend-python): add truncate bit pattern extension 2023-12-05 14:20:54 +01:00
Alexandre Péré
e8ef48ffd8 feat(compiler): introduce concrete-protocol
This commit:
 + Adds support for a protocol which enables inter-op between concrete,
   tfhe-rs and potentially other contributors to the fhe ecosystem.
 + Gets rid of hand-made serialization in the compiler, and
   client/server libs.
 + Refactors client/server libs to allow more pre/post processing of
   circuit inputs/outputs.

The protocol is supported by a definition in the shape of a capnp file,
which defines different types of objects among which:
 + ProgramInfo object, which is a precise description of a set of fhe
   circuit coming from the same compilation (understand function type
   information), and the associated key set.
 + *Key objects, which represent secret/public keys used to
   encrypt/execute fhe circuits.
 + Value object, which represent values that can be transferred between
   client and server to support calls to fhe circuits.

The hand-rolled serialization that was previously used is completely
dropped in favor of capnp in the whole codebase.

The client/server libs, are refactored to introduce a modular design for
pre-post processing. Reading the ProgramInfo file associated with a
compilation, the client and server libs assemble a pipeline of
transformers (functions) for pre and post processing of values coming in
and out of a circuit. This design properly decouples various aspects of
the processing, and allows these capabilities to be safely extended.

In practice this commit includes the following:
 + Defines the specification in a concreteprotocol package
 + Integrate the compilation of this package as a compiler dependency
   via cmake
 + Modify the compiler to use the Encodings objects defined in the
   protocol
 + Modify the compiler to emit ProgramInfo files as compilation
   artifact, and gets rid of the bloated ClientParameters.
 + Introduces a new Common library containing the functionalities shared
   between the compiler and the client/server libs.
 + Introduces a functional pre-post processing pipeline to this common
   library
 + Modify the client/server libs to support loading ProgramInfo objects,
   and calling circuits using Value messages.
 + Drops support of JIT.
 + Drops support of C-api.
 + Drops support of Rust bindings.

Co-authored-by: Nikita Frolov <nf@mkmks.org>
2023-11-09 17:09:04 +01:00
Benoit Chevallier-Mames
af63e900cf docs(frontend): adding a Game of Life example
closes #457
2023-09-26 12:48:38 +02:00
youben11
2f8d877de8 docs(compiler): calling from other lang (rust) 2023-07-13 14:33:54 +02:00
youben11
d2e6cf28bc docs(compiler): update compilation docs 2023-07-13 14:33:54 +02:00
aquint-zama
69e6776f20 docs(common): add fhe introduction 2023-07-13 14:33:54 +02:00
Umut
8968f29052 docs(frontend-python): add progressbar section 2023-07-13 14:33:54 +02:00
Umut
c3f2b71833 docs(frontend-python): re-write rounding section 2023-07-13 14:33:54 +02:00
Andi Drebes
efec081673 docs(compiler): Add documentation for FHE-related dialects 2023-07-13 14:33:54 +02:00
aquint-zama
fdf6f41a89 docs(frontend/python): overhaul python frontend docs 2023-04-11 10:15:42 +02:00