Fluence Developer Updates
143 subscribers
2 photos
54 links
Updates, announcements, changes, fixes
Download Telegram
If you are looking to learn how to implement a dedicated signing node with Fluence JS or wrap EVM RPC APIs with Marine and use Aqua to seamlessly compose those services into protocols, look no further than the recently released near-integration examples.
Finally, the rust node is switched to the recent vanilla rust-libp2p v0.42.0 and fluence-js is updated to the latest typescript-compatible js-libp2p v0.33.0. The changes are not backwards compatible, so you need to update your projects to at least fluence-js v0.19.0. But feel free to run our examples, they are up-to-date.
Aqua 0.6.1 (as well as 0.6.0) is out. While 0.6.0 was mainly focused on internal changes to unlock new language features in the near future, 0.6.1 brings new functionality to work with the Fluence network, most notably deploy and remove services with aqua dist.
We have also completely deprecated fldist tool that was previously used to interact with the network. Be sure to switch over from fldist to aqua everywhere!
The next developer community call is tomorrow, on Thursday at 18.00 CET/11 AM CT!

Agenda
- Demos of the projects built with Fluence by the community members
- Q&A
- Fluence Registry, the default routing layer for the Fluence network. Design overview & demo
Add to calendar

The call is via zoom


We are going to present Fluence Registry, the default routing layer for the Fluence network. Will have design overview and demo. Going to be fun (everyone will be able to participate in the demo, if it's going to work actually:), and useful for almost any real-life use-case of Fluence: replica sets, worker clusters, peer-to-peer message delivery, and more. Also we will touch TrustGraph, but it's not going to be covered
Released Aqua 0.6.2 – a minor update with two user-facing changes: support for scheduling scripts on the Fluence network using Aqua CLI, and support for Top/Bottom types for better debugging experience that's going to be delivered to aqua-lib/builtins.aqua later. See the Changelog for details.
We are proud to announce that we have reached the 1st milestone of Marine-web! It is a technology intended to run wasm modules in browser and Node.js environments. It works like wasm-bindgen, but has more potential and can run wasm modules built with marine.

The Marine-web project is divided into 3 milestones:
Moving AquaVM from wasm-bindgen to Marine-web. Integrated into fluence-js 0.20
☑️ Single-module marine services support: it will be possible to run them smoothly in Node.js and browser, like on Rust Fluence Peer.
☑️ Multi-module services support. We will use it to implement a full-featured Fluence JS Peer with full WASM support.

It is not only a huge improvement of the Fluence network, but also a WASM ecosystem upgrade: it is the first browser runtime that supports Interface Types with its ability to easily pass complex structures and arrays between JS and WASM modules!
Released AquaVM 0.21 with a support of recursive streams. Such streams allows extentsion while iterating over it - it's possible to write to a stream inside a fold block and then iterate over new values again. It lets on to implement a bunch of distributed algos and was a major blocker for Kademlia.
Just released Aqua 0.6.3, a minor update with one syntax addition that's expected to be very useful: collection creation. Now you can use ["hello"] to create a value of type []string, ?[flag!] to create ?bool, and even *[1, 2, 3] to create a stream of numbers. Compiler will try to derive the type of the resulting collection by intersecting all the argument types. See more in the Aqua PR#445.
Aqua 0.6.4 fixes the closures behavior. Now closures, whenever called, execute on the definition site's peer, adding all the necessary topology moves. Previously there was no way to enclose over topology.
If, for any reason, you want to have a "topologically detached" closure, it's still possible with new syntax. See closures documentation for details.
Released Aqua 0.7.0 that is switching FluenceJS Compiler interfaces from v2 to v3. Works only with FluenceJS version 0.21.3 or later – that's a breaking change. It improves JS support for optional Aqua types. Also, all features from the deprecated fldist tool moved to Aqua CLI. All interactions with peer moved to aqua remote subcommand:
aqua remote --help
...
Subcommands:
deploy_service
Deploy service from WASM modules
remove_service
Remove service
create_service
Deploy service from existing blueprint
add_blueprint
Add blueprint to a peer
list_modules
List all modules on a peer
list_blueprints
List all blueprints on a peer
list_interfaces
List all service interfaces on a peer by a given owner
get_interface
Show interface of a service
Descriptions of all commands can be found in Aqua book
As of Aqua 0.7.1, available just now, Aqua supports arithmetic operators (e.g. foo(x+1) ), arrow calls in any place (e.g. for x <- foo(3 + bar()) par...) and simple comparisons (e.g. if a > 3). See the changelog for more.
We are proud to announce the release of Fluence Registry with Aqua Routing API. This is an essential part of the Fluence protocol that provides service advertisement and discovery. Routing API and Registry specify the unified approach to register and resolve services by stable identifiers like IPNS.

To start using Registry, read the documentation.
For more in-depth materials, see our community talk.
See Registry in action on demo presentations (1, 2).
Accompanying the release of Fluence Registry, we are now shipping Signing Service with FluenceJS starting from version v0.21.6. Signing Service allows you to sign arbitrary data with Ed25519 and is quite useful when your Aqua workflow requires signed data or needs to perform signed data verification. Fluence JS Signing Service is a fully interoperable complement to Aqua's builtin signing service.
Please, refer to documentation to learn more about it.
Fluence JS v0.23.0 released!

This update gets one step closer to universal Marine runtime for browser peers on user devices. Now you can execute Wasm services on Fluence JS peers and bring computation to user devices for data privacy use cases and better decentralization.

This is made possible thanks to Marine-JS (milestone 2). The provided API allows hosting marine services on js peer and making them accessible from aqua code. This feature blurs the line between two types of peers and enables service reuse between them.

Please note that a little upgrade is required to switch to v0.23.0.
If you want to learn more - check out the documentation,
and the demo project.
Fluence Developer Updates
Fluence JS v0.23.0 released! This update gets one step closer to universal Marine runtime for browser peers on user devices. Now you can execute Wasm services on Fluence JS peers and bring computation to user devices for data privacy use cases and better…
Aqua 0.7.2 complements the recent Fluence JS update.

In addition to updated dependencies and a long list of bugfixes, the release provides new Aqua CLI capabilities, including better JSON data's type derivation for aqua run, array arguments support, and more.

See the full list of changes in the Changelog.
If you thought we took the summer off, think again. The core team's been super busy and has major updates across the stack. Get ready to rev your dependencies.

AquaVM updates

This release includes several major updates of AquaVM, which has achieved a major milestone and is now convergent. That is, AquaVM can merge traces from every possible AIR script. Convergence was achieved by introducing a new instruction canon and a new value type canonicalized stream. The former allows fixing a state of AquaVM's CRDT-like streams at the particular moment of execution on the specific peer producing a canonicalized stream that can be used like an ordinary AIR scalar value. For more info, see the explanation on GitHub.

Please note that the introduction of convergence prohibits using streams in certain positions of AIR instructions, such as a match or call arguments.

The second major improvement concerns the fold operator, whose signature has been extended to support an additional instruction executed on the last step of a recursive next call. This allows carefully adjusted behavior of fold with all combinators. And to make the old scheme with fold par work, the new instruction never has been introduced.

Finally, a lot of bugs have been fixed. See more updates in the change log.
Rust peer updates

Since the last announcements, we have had a lot of updates for Rust Peer.

The Rust peer is now available in three docker flavors: minimal, ipfs, and rich. See the repo for all the images.

- The minimal version provides the Rust Peer executable with builtins, and the curl binary
- The ipfs edition comes with all the features of minimal plus an IPFS daemon
- The rich version provides all the features of the ipfs edition plus Ceramic (Glaze) binaries, the Bitcoin CLI and the Geth CLI.

In addition

- Metrics were added for Wasm services and libp2p in Prometheus
- Logs for Loki were set up
- libp2p was migrated from forked to upstream
- json builtin was added
Fluence CLI updates

For the past months, there has been a lot of work put into Fluence CLI - a tool that makes it easier to work with Fluence Network. We tested the tool on our internal hackathon and found a lot of improvements that can be done, but generally decided that it's almost ready to be used by the developers.

It is designed to manage Fluence decentralized application lifecycle and assist developers. Currently, it can:

- Install all the required dependencies for working with Fluence Network
- Install aqua libraries and help Aqua VSCode plugin to find them
- Store and manage keypairs
- Store and provide ids of the deployed services to aqua and js/ts
- Create services and template modules
- Define deployment config and deploy
- Run and compile Aqua and Marine

The tool is actively developed, and we will soon roll out a lot of updates related to what we found out during the Hackathon (e.g., easier quick start workflow, etc.)

Currently, all the existing docs for Fluence CLI are available in the repo or when running --help with any of the Fluence CLI commands.

Fluence CLI configs are written in YAML format, and info about the configs is currently available only in comments inside of the configs themselves and in JSONSchemas that each config has (you can use redhat.vscode-yaml extension for autocomplete)
Aqua updates

Announcing Aqua 0.7.7

A language server was developed, and we introduced a VSCode extension to support Fluence’s Aqua language. Compile-on-save, compilation error hints, and go-to-definition features were added.

New features in Aqua CLI include:

- Running services directly from CLI
- Running builtin services without any input
- Testing your code with plugins for local js services (experimental!)

Additional advances have been realized in the Aqua compiler:

- AIR generation was updated to support the latest AquaVM version (0.31.0)
- Data structures are now not allowed to have fields of stream type

Also, there were a lot of bug fixes both in CLI and the compiler. See the list of updates.
Fluence JS updates

Fluence JS v0.27.0 was released and the following updates

- Implemented a new builtin json to work with JSON-like structures
- Added v4 version of compiler support making it possible to use any name for functions and data structures in Aqua without colliding with variable names in FluenceJS
- Renamed toB58String to getPeerId for fluence-keypair
- Updated libp2p to v0.36.2