Crates.io | bulletin-board-mathematica |
lib.rs | bulletin-board-mathematica |
version | 0.3.0 |
source | src |
created_at | 2024-10-13 22:54:28.680892 |
updated_at | 2024-11-09 17:17:35.599433 |
description | Mathematica client for BulletinBoard |
homepage | |
repository | https://github.com/YShoji-HEP/BulletinBoard |
max_upload_size | |
id | 1407737 |
size | 26,943 |
BulletinBoard
is an object strage for ArrayObject
for debugging and data taking purposes.
For more details, see BulletinBoard
.
BulletinBoard
and dbgbb
is ensured for the most minor version numbers.)First, you need to clone the repository:
cargo clone bulletin-board-mathematica
# OR
git clone https://github.com/YShoji-HEP/BulletinBoard.git
Then, go to bulletin-board-mathematica
directory and run
cargo build -r
If it does not compile, see wolfram-library-link
. Notice that Mathematica
or Wolfram Engine
has to be installed before the compilation.
Then, copy target/release/libbulletin_board_mathematica.dylib
to the same directory as bulletin-board.wl
, which can be downloaded from here.
To post and read the bulletins,
<< "bulletin-board.wl";
BBSetAddr["192.168.0.3:7578"];
BBPost["test",{1,2,3}];
BBRead["test"]
Function | Description |
---|---|
BBSetAddr[address] | Set the address of the server. The address is either "ADDRESS:PORT" or "SOCKETPATH". If this function is not called, the default address is "127.0.0.1:7578". |
BBPost[title, tag(optional), data] | Post the data to the server. title and tag are Text. data can be Integer, Real, Complex, Text, or List. For List, the types of the elements should be the same and has to have the same number of elements for nested Lists. If tag is not set, the default value "Mathematica" is used. |
BBRead[title, tag(optional), revisions(optional)] | Read the bulletin. revisions can be Integer or List of Integer. |
BBRelabel[titleFrom, tagFrom, titleTo, tagTo] | Relabel a bulletin. The last three arguments can be ommited by setting them as "". |
BBVersion[] | Show the version of the server. |
BBStatus[] | Show the status of the server. |
BBLog[] | Show the log of the server. |
BBViewBoard[] | List the bulletins. |
BBGetInfo[title, tag(optional)] | See the details of the bulletin. |
BBClearRevisions[title, tag(optional), revisions] | Clear the specified revisions. |
BBRemove[title, tag(optional)] | Remove all revisions of the specified bulletin. |
BBArchive[archiveName, title, tag(optinoal)] | Save the bulletin to an archive and make the data persistent. |
BBLoad[archiveName] | Load the archived data. (The archive name is added to the tag) |
BBListArchive[] | List the archives. |
BBRenameArchive[archiveFrom, archiveTo] | Rename an archive. This is executed when BBReset is called. |
BBDeleteArchive[archiveName] | Delete an archive. This is executed when BBReset is called. |
BBDump[archiveName] | Save all the bulletins to an archive. |
BBRestore[archiveName] | Reset the server and restore the archived data. (The data is restored to memory/file without modification of the tag) |
BBClearLog[] | Clear the log of the server. |
BBResetServer[] | Reset the BulletinBoard server. |
BBTerminateServer[] | Terminate the BulletinBoard server. |
Feature | Description |
---|---|
unix |
Use the UNIX socket instead of TCP. Only for UNIX-like OS. |