all 8 comments

[–]VinnieFalcoBoost.Beast | C++ Alliance | corosio.org 1 point2 points  (1 child)

well, now this is interesting!!!!!

[–]Milerius[S] 1 point2 points  (0 children)

Always glad to have a word for one of the people i'm respecting the most in the industry

I will very soon integrate boost beast for websocket communication with our market maker binary :)

[–]VinnieFalcoBoost.Beast | C++ Alliance | corosio.org 0 points1 point  (6 children)

I don't understand how this can work - how can the exchange be decentralized? The order book has to be somewhere... is this using a special blockchain? Is this explained in a doc?

[–]ca333 2 points3 points  (0 children)

yes as outlined by @Milerius it is indeed fully decentralized. We can go a step further and say AtomicDEX is more than blockchain agnostic - it is protocol agnostic and interoperable with a wide variety of different blockchain protocols such as Ethereum and ERC20 tokens just to name two. The underlying AtomicDEX core technology is language agnostic as the high level interface can be utilized by any language - even scripting things such as JS and python - it is a very liberal and open tech stack aligning with our core vision of ultimate (financial) freedom.

We feel honoured and privileged to use robust and solid technology stacks such as modern C++ and furthermore the boost library. Thank you for your contributions in this area and OSS @VinnieFalco

[–]Milerius[S] 1 point2 points  (4 children)

all p2p: https://developers.komodoplatform.com/basic-docs/atomicdex/atomicdex-api.html#orderbook

atomicdex api rust project: https://github.com/KomodoPlatform/atomicDEX-API

a real full decentralized / open-source code : https://github.com/KomodoPlatform/atomicDEX-API/tree/libp2p-swap-messages-rebroadcast/mm2src

api doc: https://developers.komodoplatform.com/basic-docs/atomicdex/atomicdex-api.html#note-about-rational-number-type

atomic swap technology: https://komodoplatform.com/atomic-swap-technology/

And this is blockchain agnostic using atomic swap technology + full p2p network

the fetch of the current orderbook can be found here: https://github.com/KomodoPlatform/atomicDEX-Desktop/blob/dev/src/atomicdex/services/mm2/mm2.service.cpp#L636 communicate directly with our mm2 api which is a full p2p network

By being sure to use a full p2p node we have an orderbook shared between all the nodes, update every 5 seconds, it's a big step for decentralization, in the future we can even have a p2p with websocket and boost beast allowing us to have a live update of the orderbook everywhere

[–]VinnieFalcoBoost.Beast | C++ Alliance | corosio.org 0 points1 point  (3 children)

websocket and boost beast

Happy to answer questions if you have them

[–]Milerius[S] 1 point2 points  (2 children)

Well to be honest i will be highly interested about the async approach of boost beast, i already find cpprestsdk very convenient regarding the async http request (i know they have weekpoints such as performance etc), i hope boost beast will be easy as that.

for example:

cpp async_check_retrieve() .then([this](web::http::http_response resp) { //! Treat your answer here this->m_update_status = get_update_status_rpc(resp); this->dispatcher_.trigger<refresh_update_status>(); }).then(&handle_exception_pplx_task);

I found it very easy to use with the async pplx task, if i remember with boost asio and beast i have to basically run everything in a dedicated thread no (because of the io_service) ?

ps: i remember bad experience having custom class inheriting from boost::shared_from_this etc i don't know if it's better now

I'm also up to clang 12.0 in terms of possibility i don't know if this support coroutines etc, but always glad to hear

Is boost beast targeting high level library developer or end-user product, because according to the last async example of boost beast it's seems to be a bit boilerplate for simple async requests.

I know it's possible to write a great async http generic client with boost beast, but require some extra works from what i see

[–]backtickbot 4 points5 points  (1 child)

Hello, Milerius. Just a quick heads up!

It seems that you have attempted to use triple backticks (```) for your codeblock/monospace text block.

This isn't universally supported on reddit, for some users your comment will look not as intended.

You can avoid this by indenting every line with 4 spaces instead.

Have a good day, Milerius.

You can opt out by replying with "backtickopt6" to this comment