Msgpack23 – A modern, header-only C++ library for MessagePack (de)serialization
https://github.com/rwindegger/msgpack23
#HackerNews #Msgpack23 #MessagePack #C++ #Serialization #HeaderOnlyLibrary
Msgpack23 – A modern, header-only C++ library for MessagePack (de)serialization
https://github.com/rwindegger/msgpack23
#HackerNews #Msgpack23 #MessagePack #C++ #Serialization #HeaderOnlyLibrary
I have a worker process pool in my #Python app that's usually working ok. It's a custom implementation of concurrent.futures.Executor that provides a process pool with a bunch of my app's state synchronized with the workers.
Messages are sent to the workers serialized in #messagepack, with custom types to represent functions to call. This usually works fine, but every now and then, the last two workers out of eight will import the module with the functions in it and not find the functions there. It's only ever been those last two.
Now, the modules with code in them can in fact change while the app is running, so I frequently reimport them, calling importlib.invalidate_caches() when I do. But sometimes those last two workers still can't get the functions.
Perhaps it's a file locking issue? I'm stumped otherwise. Help?
Как JSON может вас подвести
JSON - наш повседневный помощник, но его коварные стороны могут обернуться неприятностями: потеря точности чисел, гигантские файлы, путаница с датами. Рассказываю, как избежать проблем и повысить эффективность с помощью стриминга в Node.js, MessagePack и Protobuf. Узнайте, где подводные камни и как их обойти на практике!
https://habr.com/ru/articles/871616/
#json #nodejs #javascript #messagepack #protocol_buffers #api #сериализация #стриминг #большие_данные #производительность
Since I won't really be able to hunt for work for the rest of the year, I'm thinking of working on the web frontend for #LiSE, and turn it into a #django module, rather than the current situation where it's a #cherryPy "app"
Are there best practices, or maybe even frameworks similar to the #djangoRestFramework, that would show me how to make LiSE produce its #messagepack for easy consumption by browsers or whatever?
Hey, I wanted to share my little project – a multiplayer Arkanoid game built in Rust. I was in the mood to try something cool in this language and also see what HTTP/3 and MessagePack are capable of.
Here’s the repo with the code -> https://github.com/ArtemkaKun/ping-pong-arkanoid
More details in the 🧵
(Oh, and the lag is in the video, not the game itself. I didn’t bother recording it again.)
#rustlang #gamedev #multiplayergame #WebTransport #http3 #messagepack #indiedev #opensource #coding #devcommunity
Кофе по SSH, сайты в zip-архивах. Чистый HTML лучше всего
Очень интересная штука — интернет-магазин в консоли . Он позволяет авторизоваться в магазине и заказать товар (кофе), не выходя из терминала. Говорят , кофе из командной строки даже вкуснее, чем обычное. Просто заходим в магазин по SSH: ssh terminal.shop или ssh 172.65.113.113
https://habr.com/ru/companies/ruvds/articles/821443/
#ruvds_статьи #трюки_HTML #CSS #JS #HTMX #SSH #HTMLредактор #htmz #HTML_Notepad #текстовый_интерфейс #TUI #MPA_Archive #Redbean #libwebsockets #ArT_DeCo #предсказание_текста #MessagePack #стриминг_HTML #Shadow_DOM #вебкольцо #Comet #Observable #генератор_статических_сайтов #SeaMonkey #KompoZer
Connaissez-vous la RFC 8949 ? Non ? Jusqu'à ce matin, à ma grande honte, moi non plus... Pourtant le sujet est d'importance : une alternative binaire, compacte, performante, normée et pérenne. Le #CBOR: Concise Binary Object Representation.
https://cbor.io/
Le seul tuto du site renvoie à un article fr de présentation de @bortzmeyer : https://www.bortzmeyer.org/7049.html
#BSON, #protobuf, #MessagePack : chacun a ses avantages (et inconvénients) face à #JSON.
Le CBOR est une couleur de cette palette.
I keep seeing people say that #SignalR is not designed for video streaming, but I can’t help but try it. Seems like with the #HLS set up that I’m looking at, the individual file size should be minimal enough that it should be doable.
Is it naive to think that using the built in streaming mechanisms with #MessagePack wouldn’t be enough to get decent perf?
I wouldn’t l even think about doing it this way, except that it would avoid having to stand up custom tunneling infrastructure.