Stephen von Takach
Stephen von Takach
I've been writing a Promise library for Crystal Lang and it's almost complete (core implementation complete with specs) https://github.com/spider-gazelle/promise It might not be "Structured Concurrency" in the most strict sense...
Well yeah (exposing synchronous APIs) Not sure how you escape from using the equivalent of `.then` though it's kind of the je ne sais quoi of promises. Without it all...
Promises are really complimentary to channels. Channels for distributing async work and promises for handling the results. For instance, I'm working on updating this influxdb library to the latest version...
@straight-shoota problem is running the write concurrently doesn't work on the current version of Crystal so it has to be via the channel to ensure serial writes. Basically because the...
The problem of being called from multiple different fibers is already solved by using the channel - any fiber can call the code, the channel is used to make the...
@RX14 I deliver you "a fiber which can return a value, and you can wait for it to complete with a value or error" https://github.com/spider-gazelle/promise#simple-concurrency-control It's not an alternative structured...
@straight-shoota thanks for the advice - I threw a lock around the influxdb HTTP client, you were right, was definitely the way to go. Also watched the Trio video does...
@NobuoTsukamoto could you update this for TFv2.16.1 ?
@NobuoTsukamoto ``` In file included from /home/steve/projects/tensorflow/tensorflow/lite/util.cc:30: /home/steve/projects/tensorflow/tensorflow/lite/schema/schema_generated.h:25:41: error: static assertion failed: Non-compatible flatbuffers version included 25 | static_assert(FLATBUFFERS_VERSION_MAJOR == 23 && | ^ /home/steve/projects/tensorflow/tensorflow/lite/schema/schema_generated.h:25:41: note: the comparison reduces to...
This worked to install it ```shell git clone https://github.com/google/flatbuffers.git cd flatbuffers git checkout tags/v23.5.26 cmake -G "Unix Makefiles" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr/local \ -DFLATBUFFERS_BUILD_SHAREDLIB:BOOL=ON make sudo make install ``` although...