Skip to content

Commit 2dc3ff2

Browse files
committed
further refine language
1 parent e1b5019 commit 2dc3ff2

File tree

5 files changed

+25
-26
lines changed

5 files changed

+25
-26
lines changed

DESCRIPTION

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ Type: Package
33
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
44
Version: 0.8.0.9001
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
6-
a socket library implementing high-performance scalability protocols, a
6+
a socket library providing high-performance scalability protocols, a
77
cross-platform standard for messaging and communications. Serves as a
88
concurrency framework for building distributed applications, utilising 'aio'
99
objects which resolve automatically upon completion of asynchronous
10-
operations. Provides synchronisation primitives which allow R to wait upon
11-
socket events or message receives being signalled by other underlying
12-
threads.
10+
operations. Implements synchronisation primitives, allowing R to wait upon
11+
socket events or message receives being signalled by concurrent threads.
1312
Authors@R:
1413
c(person(given = "Charlie",
1514
family = "Gao",

R/nanonext-package.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
#' nanonext: NNG (Nanomsg Next Gen) Lightweight Messaging Library
2020
#'
2121
#' R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a socket
22-
#' library implementing high-performance scalability protocols, a
22+
#' library providing high-performance scalability protocols, a
2323
#' cross-platform standard for messaging and communications. Serves as a
2424
#' concurrency framework for building distributed applications, utilising
2525
#' 'aio' objects which resolve automatically upon completion of asynchronous
26-
#' operations. Provides synchronisation primitives which allow R to wait
27-
#' upon socket events or message receives being signalled by other
28-
#' underlying threads.
26+
#' operations. Implements synchronisation primitives, allowing R to wait
27+
#' upon socket events or message receives being signalled by concurrent
28+
#' threads.
2929
#'
3030
#' @section Usage notes:
3131
#'

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ knitr::opts_chunk$set(
2222
[![codecov](https://codecov.io/gh/shikokuchuo/nanonext/branch/main/graph/badge.svg)](https://app.codecov.io/gh/shikokuchuo/nanonext)
2323
<!-- badges: end -->
2424

25-
R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a socket library implementing high-performance scalability protocols, a cross-platform standard for messaging and communications. Serves as a concurrency framework for building distributed applications, utilising 'aio' objects which resolve automatically upon completion of asynchronous operations. Provides synchronisation primitives which allow R to wait upon socket events or message receives being signalled by other underlying threads.
25+
R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a socket library providing high-performance scalability protocols, a cross-platform standard for messaging and communications. Serves as a concurrency framework for building distributed applications, utilising 'aio' objects which resolve automatically upon completion of asynchronous operations. Implements synchronisation primitives, allowing R to wait upon socket events or message receives being signalled by concurrent threads.
2626

2727
Designed for performance and reliability, the NNG library is written in C and {nanonext} is a lightweight zero-dependency wrapper. Provides the interface for code and processes to communicate with each other - receive data generated in Python, perform analysis in R, and send results to a C++ program – all on the same computer or on networks spanning the globe.
2828

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ badge](https://shikokuchuo.r-universe.dev/badges/nanonext?color=3f72af)](https:/
1414
<!-- badges: end -->
1515

1616
R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a
17-
socket library implementing high-performance scalability protocols, a
17+
socket library providing high-performance scalability protocols, a
1818
cross-platform standard for messaging and communications. Serves as a
1919
concurrency framework for building distributed applications, utilising
2020
‘aio’ objects which resolve automatically upon completion of
21-
asynchronous operations. Provides synchronisation primitives which allow
21+
asynchronous operations. Implements synchronisation primitives, allowing
2222
R to wait upon socket events or message receives being signalled by
23-
other underlying threads.
23+
concurrent threads.
2424

2525
Designed for performance and reliability, the NNG library is written in
2626
C and {nanonext} is a lightweight zero-dependency wrapper. Provides the
@@ -369,7 +369,7 @@ aio
369369
#> < recvAio >
370370
#> - $data for message data
371371
aio$data |> str()
372-
#> num [1:100000000] 0.741 -0.123 0.41 -0.82 -0.109 ...
372+
#> num [1:100000000] -0.3184 -0.5206 0.0942 -0.7144 0.1338 ...
373373
```
374374

375375
As `call_aio()` is blocking and will wait for completion, an alternative
@@ -653,11 +653,11 @@ ncurl("https://httpbin.org/headers")
653653
#> [1] 7b 0a 20 20 22 68 65 61 64 65 72 73 22 3a 20 7b 0a 20 20 20 20 22 48 6f 73
654654
#> [26] 74 22 3a 20 22 68 74 74 70 62 69 6e 2e 6f 72 67 22 2c 20 0a 20 20 20 20 22
655655
#> [51] 58 2d 41 6d 7a 6e 2d 54 72 61 63 65 2d 49 64 22 3a 20 22 52 6f 6f 74 3d 31
656-
#> [76] 2d 36 34 31 64 39 62 38 39 2d 33 32 39 38 36 33 35 36 35 31 37 35 61 35 63
657-
#> [101] 64 30 39 36 64 31 34 32 38 22 0a 20 20 7d 0a 7d 0a
656+
#> [76] 2d 36 34 31 64 39 66 33 63 2d 32 37 65 35 66 36 32 31 32 33 66 63 66 33 61
657+
#> [101] 63 33 66 64 65 31 65 32 33 22 0a 20 20 7d 0a 7d 0a
658658
#>
659659
#> $data
660-
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9b89-329863565175a5cd096d1428\"\n }\n}\n"
660+
#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9f3c-27e5f62123fcf3ac3fde1e23\"\n }\n}\n"
661661
```
662662

663663
For advanced use, supports additional HTTP methods such as POST or PUT.
@@ -678,13 +678,13 @@ res
678678

679679
call_aio(res)$headers
680680
#> $Date
681-
#> [1] "Fri, 24 Mar 2023 12:46:02 GMT"
681+
#> [1] "Fri, 24 Mar 2023 13:01:48 GMT"
682682
#>
683683
#> $Server
684684
#> [1] "gunicorn/19.9.0"
685685

686686
res$data
687-
#> [1] "{\n \"args\": {}, \n \"data\": \"{\\\"key\\\": \\\"value\\\"}\", \n \"files\": {}, \n \"form\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Length\": \"16\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9b8a-2943c4756324ceec68482488\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"http://httpbin.org/post\"\n}\n"
687+
#> [1] "{\n \"args\": {}, \n \"data\": \"{\\\"key\\\": \\\"value\\\"}\", \n \"files\": {}, \n \"form\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Length\": \"16\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9f3c-0e871ca3155cd46f0e923b0a\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"http://httpbin.org/post\"\n}\n"
688688
```
689689

690690
In this respect, it may be used as a performant and lightweight method
@@ -710,7 +710,7 @@ transact(sess)
710710
#>
711711
#> $headers
712712
#> $headers$date
713-
#> [1] "Fri, 24 Mar 2023 12:46:03 GMT"
713+
#> [1] "Fri, 24 Mar 2023 13:01:49 GMT"
714714
#>
715715
#>
716716
#> $raw
@@ -721,14 +721,14 @@ transact(sess)
721721
#> [101] 69 6f 6e 2f 6a 73 6f 6e 22 2c 20 0a 20 20 20 20 22 48 6f 73 74 22 3a 20 22
722722
#> [126] 68 74 74 70 62 69 6e 2e 6f 72 67 22 2c 20 0a 20 20 20 20 22 58 2d 41 6d 7a
723723
#> [151] 6e 2d 54 72 61 63 65 2d 49 64 22 3a 20 22 52 6f 6f 74 3d 31 2d 36 34 31 64
724-
#> [176] 39 62 38 62 2d 37 64 66 32 33 34 37 66 31 35 30 61 64 38 30 36 33 64 63 62
725-
#> [201] 31 36 66 30 22 0a 20 20 7d 2c 20 0a 20 20 22 6f 72 69 67 69 6e 22 3a 20 22
724+
#> [176] 39 66 33 64 2d 36 30 61 63 36 35 35 30 30 37 37 34 39 66 33 34 34 31 34 34
725+
#> [201] 34 64 66 62 22 0a 20 20 7d 2c 20 0a 20 20 22 6f 72 69 67 69 6e 22 3a 20 22
726726
#> [226] 37 39 2e 31 37 33 2e 31 32 39 2e 32 22 2c 20 0a 20 20 22 75 72 6c 22 3a 20
727727
#> [251] 22 68 74 74 70 73 3a 2f 2f 68 74 74 70 62 69 6e 2e 6f 72 67 2f 67 65 74 22
728728
#> [276] 0a 7d 0a
729729
#>
730730
#> $data
731-
#> [1] "{\n \"args\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9b8b-7df2347f150ad8063dcb16f0\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"https://httpbin.org/get\"\n}\n"
731+
#> [1] "{\n \"args\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-641d9f3d-60ac655007749f3441444dfb\"\n }, \n \"origin\": \"131.111.5.14\", \n \"url\": \"https://httpbin.org/get\"\n}\n"
732732
```
733733

734734
[« Back to ToC](#table-of-contents)

man/nanonext-package.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)