unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Nix Daemon protocol post / Tvix
@ 2023-10-30 21:02 Florian Klink
  2023-11-16 15:14 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Klink @ 2023-10-30 21:02 UTC (permalink / raw)
  To: guix-devel

Hey,

I stumbled across your post
https://guix.gnu.org/blog/2023/a-build-daemon-in-guile/.

I'm working on Tvix (https://tvix.dev/), a reimplementation of Nix in
Rust.

Different components are nicely separated, some of the nix-specific
protocols and formats are developed in a independent, intended to be
general-purpose `nix-compat` crate that doesn't depend on Tvix itself.

All with hopefully comprehensive documentation and a lot of test cases.

Tvix can already evaluate bigger chunks of nixpkgs the same way as Nix,
and come up with the same calculated output paths :-)

Some of the protcols are implemented in a nicer fashion, while providing
a Nix-compatible "view" into the system.

For example, tvix-store is using a content-addressed merkle storage DAG
(tvix-castore) under the hood, allowing partial substitution and store
path subtree sharing.
However we can still provide a Nix-compatible view into all this, so can
synthesize NAR Archives and NARInfo files for a given store path on
demand, if we want to. We currently use the HTTP Binary cache protocol
as a store interface for Nix (via `nar-bridge`, which spins up a
webserver).

At some point, we now also want to implement the daemon protocol - both
a client and server, to allow talking to Nix more directly - be it a
"remote store", or just querying the local Nix store for certain
information. This is so far mostly oriented towards store operations (as
we didn't do too much work on the Builder interface yet)


Nevertheless, I think we should collaborate.

Be that:
  - just a simple exchange of notes about the behaviour of the protocol
	 and certain operations
  - discussions about designing new protocols, ensuring interop between
	 tvix-store and guix stores (there's some ideas for P2P substitution)
  - or even collaboration and work on getting tvix-store (and tvix-build,
	 once it's there) to work with a Guile frontend :-)

I think we're sharing a lot of common interest and would like to start
having these conversations :-)

Cheers,
flokli


Some links:

  - Tvix status update from NixCon 2023
	 (https://media.ccc.de/v/nixcon-2023-35254-tvix)
  - Tvix Website: https://tvix.dev/
  - Code: https://code.tvl.fyi/tree/tvix


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-16 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-30 21:02 Nix Daemon protocol post / Tvix Florian Klink
2023-11-16 15:14 ` Ludovic Courtès
2023-11-16 19:23   ` Ensuring daemon interop, maybe also store layer standardization? John Ericson
2023-11-16 20:52     ` Florian Klink

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).