Commit Graph

21 Commits

Author SHA1 Message Date
rudy
34ffd6f97a feat(compiler): new ops, reinterpret_precision and lsb 2023-12-04 10:20:06 +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
youben11
d16ce818e1 docs(compiler): build latest docs 2023-09-12 14:51:53 +01:00
aquint-zama
900d25c952 docs(compiler): fix dialect links 2023-07-13 14:53:25 +02:00
aquint-zama
b0b74ee81f chore(compiler): doc edit 2023-07-13 14:33:54 +02:00
aquint-zama
654f0de81f chore(common): rearrange docs structure 2023-07-13 14:33:54 +02:00
aquint-zama
502fcfdbe6 chore(compiler): fix typos 2023-07-13 14:33:54 +02:00
Ben
96ae2df13e docs(common): documentation edits 2023-07-13 14:33:54 +02:00
rudy
9b24e8d974 docs(optimizer): add high level doc 2023-07-13 14:33:54 +02:00
Ben
f6dc891792 chore(tools): add documentation for security curves 2023-07-13 14:33:54 +02:00
aquint-zama
649c9ddce7 chore(common): update docs structure 2023-07-13 14:33:54 +02:00
Mayeul@Zama
18b9e0d246 docs(backend): add introduction 2023-07-13 14:33:54 +02:00
Mayeul@Zama
348403d25a docs(backend): add adding_new_backend.md 2023-07-13 14:33:54 +02:00
Bourgerie Quentin
8782a28694 docs(common): add project layout for developers 2023-07-13 14:33:54 +02:00
aquint-zama
25754a656a docs(common): add FHE dialects autogenerated docs 2023-07-13 14:33:54 +02:00
aquint-zama
88bee38643 chore(common): let Gitbook handle newlines 2023-07-13 14:33:54 +02:00
youben11
d2e6cf28bc docs(compiler): update compilation docs 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
407a3b2cde docs(common): add table of content proposal 2023-07-13 14:33:54 +02:00
Jeremy Shulman
cc276dee73 chore(frontend/python): doc fixes
GITBOOK-1
2023-04-12 11:51:50 +02:00
aquint-zama
fdf6f41a89 docs(frontend/python): overhaul python frontend docs 2023-04-11 10:15:42 +02:00