Iteration RevisitedIdea: generalise iteration by index, rather than by pointer 24ITERATION REVISITED FLUX ▸ Flux (github.com/tcbrindle/flux) is a C++20 library exploring these ideas ▸ Aims: ▸ Much improved safety by default ITERATION OPERATIONS WITH FLUX ▸ flux�::first(seq) returns a cursor, which represents a sequence position ▸ For contiguous sequences, this is just an integer index ▸ flux�::is_last(seq, cur) returns the cursor is past-the-end ▸ flux�::read_at(seq, cur) accesses the element at the cursor position ▸ flux�::inc(seq, cur) increments the cursor 26ITERATION REVISITED FLUX CONCEPTS ▸ A type which provides0 码力 | 56 页 | 5.27 MB | 6 月前3
Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOTreactive library of choice for Spring WebFlux. It provides the Mono and Flux API types to work on data sequences of 0..1 (Mono) and 0..N (Flux) through a rich set of operators aligned with the ReactiveX vocabulary plain Publisher as input, adapts it to a Reactor type internally, uses that, and returns either a Flux or a Mono as output. So, you can pass any Publisher as input and you can apply operations on the ServerCodecConfigurer bean (see the Web Handler API). To parse multipart data in streaming fashion, you can use the Fluxreturned from an HttpMessageReader instead. For example, in an annotated controller, 0 码力 | 182 页 | 2.52 MB | 1 年前3
The Path to GitOpsCode Challenges of Infrastructure as Code Containers Change the Game Argo CD Flux Open Cluster Management Other GitOps Tools PipeCD Keptn Pulumi Kubernetes OpenGitOps Sandbox project. The next chapter introduces the basic tools for GitOps, notably Argo CD and Flux. References [1.1] https://developers.redhat.com/topics/devops [1.2] https://developers.redhat status in the CNCF. Flux In the chapter What is GitOps? I told the story of how Weaveworks recovered from an outage, inspiring cofounder Alexis Richardson to coin the term “GitOps.” Flux (and Flagger) were0 码力 | 45 页 | 1.09 MB | 1 年前3
Spring Framwork RSocket v5.3.36 SNAPSHOTReactor simplifies the job of implementing the protocol. For applications it is a natural fit to use Flux and Mono with declarative operators and transparent back pressure support. The API in RSocket Java models the four request interaction types with Mono representing a promise for a single message, Flux a stream of messages, and io.rsocket.Payload the actual message with access to data and metadata have a client or server requester, you can make requests as follows: Java ViewBox viewBox = ... ; Fluxlocations = requester.route("locate.radars.within") ① .data(viewBox) ② 0 码力 | 19 页 | 279.85 KB | 1 年前3
《Slides Dev Web》 08 . RSSplusieurs médias • Dans les journaux : dépêches, bandes dessinées, … • Télévision : jeux, séries • Web : Flux RSS / Atom – 1 source de donnée, plusieurs abonnés – Contenu : news, blogs, podcast, … – Accès unique unique à plusieurs sources d’informations – Mises à jour fréquentes Historique • Feed (fil ou flux) RSS • Format d’échange de données en XML – fournir ou recueillir des données structurées • Utilisation wikipedia.org/wiki/Comparison_of_feed_aggregators 2 Générer un flux RSS • Fichier XML : – Canal / Items (RSS) – Entrées (Atom) • Indiquer le flux au navigateur • Permettre l’abonnement : logo visible dans0 码力 | 7 页 | 52.98 KB | 1 年前3
C++20 Modules: The Packaging and Binary Redistribution Storyof the importers import fmt; fmt.cxx fmt.pcm fmt.oCompilation time #include <flux.hpp> took 319 ms import flux; took 14 msYour imports (can) have imports export module foo; import bar; the gate for a mechanical issue compilation terminated.BMI compatibility (cont’d) add_subdirectory(flux) add_subdirectory(fmt) add_subdirectory(argparse) add_library(foo) target_sources(foo PUBLIC foo fmt::fmt flux::flux argparse::argparse) /lib/llvm-16/bin/clang++ -I/usr/lib/gcc/aarch64-linux-gnu/12/include -I/cxx-modules/cmake-example/fmt/include -I/cxx-modules/cmake-example/flux/include -O30 码力 | 76 页 | 2.09 MB | 6 月前3
THE GITOPS GUIDE
TO BUILDING &
MANAGING INTERNAL
PLATFORMSFlagger to automate canary releases in a GitOps pipeline. Whenever the GitOps operator, in their case, Flux, detects a new version, Flagger spins up a new canary release and shifts traffic gradually over from to Git. Leverage open source tools like Flux & Flagger as a POC GitOps is powered by open source tools that are backed by large developer communities. Flux and Flagger are two key open source tools delivered a transformative open source tool with Flux; managing Kubernetes deployments at scale is now easy and fast.” — Nicolas Chaillan, DoD Along with Flux and Flagger, leveraging open source tools like0 码力 | 15 页 | 623.52 KB | 1 年前3
React Native TutorialWe will use the React Native Router Flux in this chapter. You can run the following command in terminal, from the project folder. npm i react-native-router-flux --save Step 2 Since we want our router Native – Router React Native 68 import { Router, Scene } from 'react-native-router-flux' import Home from './Home.js' import About from './About.js' const Routes = () => (import { TouchableOpacity, Text } from 'react-native'; import { Actions } from 'react-native-router-flux'; const Home = () => { const goToAbout = () => { Actions.about() } return 0 码力 | 117 页 | 2.60 MB | 1 年前3
Spring Framwork Language Support v6.0.0-M2experience overall. To retrieve a list of User objects in Java, you would normally write the following: Fluxusers = client.get().retrieve().bodyToFlux(User.class) With Kotlin and the Spring Framework following: val users = client.get().retrieve().bodyToFlux () // or (both are equivalent) val users : Flux = client.get().retrieve().bodyToFlux() As in Java, users in Kotlin is strongly typed, but Kotlin’s the Mono can be empty or not (with the advantage of being more statically typed) • fun handler(): Flux becomes fun handler(): Flow For input parameters: • If laziness is not needed, fun handler(mono: 0 码力 | 42 页 | 602.76 KB | 1 年前3
Spring Framwork Language Support v5.3.36 SNAPSHOTexperience overall. To retrieve a list of User objects in Java, you would normally write the following: Fluxusers = client.get().retrieve().bodyToFlux(User.class) With Kotlin and the Spring Framework following: val users = client.get().retrieve().bodyToFlux () // or (both are equivalent) val users : Flux = client.get().retrieve().bodyToFlux() As in Java, users in Kotlin is strongly typed, but Kotlin’s the Mono can be empty or not (with the advantage of being more statically typed) • fun handler(): Flux becomes fun handler(): Flow For input parameters: • If laziness is not needed, fun handler(mono: 0 码力 | 42 页 | 603.79 KB | 1 年前3
共 220 条
- 1
- 2
- 3
- 4
- 5
- 6
- 22













