Skip to content

Commit

Permalink
docs: prepare for 0.0.8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Feb 7, 2024
1 parent 553341a commit 7179093
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 21 deletions.
26 changes: 19 additions & 7 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ This is the largest Riot release yet, and we are splitting the package into 4 su
and moving to Weak references for processes to ensure they get garbage
collected timely.

* Introduce Process Priorities and Process Stealing – the scheduler has been
improved to support processes with different priorities (High, Normal, and
Low), and stealing work from other schedulers (following the priorities) so
that eventually the workloads will be balanced, regardless of how they are
spawned. Thanks @LeedsJohn for the contribution! 👏
* Introduce Process Priorities – the scheduler has been improved to support
processes with different priorities (High, Normal, and Low). Thanks
@LeedsJohn for the contribution! 👏

* Introduce `receive` Timeouts – you can now call `receive ~after:10L ()` and
if there are messages fetched in 10 microseconds `receive` will raise a
Expand Down Expand Up @@ -55,7 +53,9 @@ This is the largest Riot release yet, and we are splitting the package into 4 su
closest we have to a future. A `Task` is typed, executes a single function,
and MUST be awaited with `Task.await ?timeout task`.

* Introduce specialized Dashmap's with the `Dashmap.Make` functor.
* Introduce `Crypto.Random` module with high-level utilities for creating
random data of different types, including integers of different sizes,
strings, bytestrings, bytes, characters, and ASCII strings.

* Introduce new named pid functions `Process.where_is` and `Porcess.await_name`
to make it easier to find pids by name, and await a name to be registered.
Expand All @@ -64,12 +64,24 @@ This is the largest Riot release yet, and we are splitting the package into 4 su

* Improve logging on most modules with namespaces

* Initializing the Riot runtime twice results in a runtime exception – thanks
@julien-leclercq for the contribution! 👏

* Introduce `Ref.cast` to do type-safe type-casting based on runtime
information of a Ref at its instantiation time.

* Introduce a `Stream` module that extends the stdlib Seq with a `reduce_while` combinator.

* Introduce inmemory key-value `Store` that works in a process-friendly
fashion, similar to Erlang's ETS.

### Bytestring

* First implementation of efficient immutable byte strings with cheap view and
concat operations. Thanks to @felipecrv for contributing! 👏

* Iterators and Transient builders.
* Iterators and Transient builders for efficiently examining, destructuring,
and constructing byte strings from different sources.

* Preliminary Bytestrings syntax support (via a ppx) for constructions and
efficient pattern matching using the `%b` sigil.
Expand Down
6 changes: 3 additions & 3 deletions bytestring.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ authors: [
"Felipe Oliveira Carvalho <[email protected]>"
]
license: "MIT"
homepage: "https://github.com/leostera/riot"
bug-reports: "https://github.com/leostera/riot/issues"
homepage: "https://github.com/riot-ml/riot"
bug-reports: "https://github.com/riot-ml/riot/issues"
depends: [
"io" {= version}
"ocaml" {>= "5.1.1"}
Expand All @@ -36,4 +36,4 @@ build: [
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/leostera/riot.git"
dev-repo: "git+https://github.com/riot-ml/riot.git"
1 change: 1 addition & 0 deletions bytestring/dune
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
(pps ppxlib.metaquot)))

(library
(package bytestring)
(name naughty_strings)
(modules naughty_strings))

Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(cram enable)

(source
(github leostera/riot))
(github riot-ml/riot))

(authors "Leandro Ostera <[email protected]>")

Expand Down
6 changes: 3 additions & 3 deletions gluon.opam
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ maintainer: ["Leandro Ostera <[email protected]>"]
authors: ["Leandro Ostera <[email protected]>"]
license: "MIT"
tags: ["async" "io" "tcp" "udp" "iocp" "multicore"]
homepage: "https://github.com/leostera/riot"
bug-reports: "https://github.com/leostera/riot/issues"
homepage: "https://github.com/riot-ml/riot"
bug-reports: "https://github.com/riot-ml/riot/issues"
depends: [
"io" {= version}
"bytestring" {= version}
Expand All @@ -30,4 +30,4 @@ build: [
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/leostera/riot.git"
dev-repo: "git+https://github.com/riot-ml/riot.git"
6 changes: 3 additions & 3 deletions io.opam
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ maintainer: ["Leandro Ostera <[email protected]>"]
authors: ["Leandro Ostera <[email protected]>"]
license: "MIT"
tags: ["multicore" "io" "streams" "read" "write"]
homepage: "https://github.com/leostera/riot"
bug-reports: "https://github.com/leostera/riot/issues"
homepage: "https://github.com/riot-ml/riot"
bug-reports: "https://github.com/riot-ml/riot/issues"
depends: [
"cstruct" {>= "6.2.0"}
"ocaml" {>= "5.1"}
Expand All @@ -26,4 +26,4 @@ build: [
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/leostera/riot.git"
dev-repo: "git+https://github.com/riot-ml/riot.git"
6 changes: 3 additions & 3 deletions riot.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ maintainer: ["Leandro Ostera <[email protected]>"]
authors: ["Leandro Ostera <[email protected]>"]
license: "MIT"
tags: ["multicore" "erlang" "actor" "message-passing" "processes"]
homepage: "https://github.com/leostera/riot"
bug-reports: "https://github.com/leostera/riot/issues"
homepage: "https://github.com/riot-ml/riot"
bug-reports: "https://github.com/riot-ml/riot/issues"
depends: [
"bytestring" {= version}
"castore" {with-test & >= "0.0.2"}
Expand Down Expand Up @@ -43,4 +43,4 @@ build: [
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/leostera/riot.git"
dev-repo: "git+https://github.com/riot-ml/riot.git"
2 changes: 1 addition & 1 deletion test/task_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let () =
let _ = Logger.start () |> Result.get_ok in
Logger.set_log_level (Some Info);

let task = Task.async (fun () -> count_to 0 10_000) in
let task = Task.async (fun () -> count_to 0 1_000) in

match Task.await ~timeout:100_000L task with
| Ok n ->
Expand Down

0 comments on commit 7179093

Please sign in to comment.