#MessagePack

Hacker Newsh4ckernews
2025-03-30

Msgpack23 – A modern, header-only C++ library for MessagePack (de)serialization

github.com/rwindegger/msgpack23

++

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?

2025-01-12

Как JSON может вас подвести

JSON - наш повседневный помощник, но его коварные стороны могут обернуться неприятностями: потеря точности чисел, гигантские файлы, путаница с датами. Рассказываю, как избежать проблем и повысить эффективность с помощью стриминга в Node.js, MessagePack и Protobuf. Узнайте, где подводные камни и как их обойти на практике!

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?

#backend #webdev

yuartyuart
2024-09-11

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 -> github.com/ArtemkaKun/ping-pon

More details in the 🧵

(Oh, and the lag is in the video, not the game itself. I didn’t bother recording it again.)

2024-06-24

Кофе по SSH, сайты в zip-архивах. Чистый HTML лучше всего

Очень интересная штука — интернет-магазин в консоли . Он позволяет авторизоваться в магазине и заказать товар (кофе), не выходя из терминала. Говорят , кофе из командной строки даже вкуснее, чем обычное. Просто заходим в магазин по SSH: ssh terminal.shop или ssh 172.65.113.113

habr.com/ru/companies/ruvds/ar

#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

2024-03-31

Hey so I wrote a messagepack parser and serializer: github.com/mortie/msgstream #cpp #programming #messagepack

2023-11-02

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.
cbor.io/

Le seul tuto du site renvoie à un article fr de présentation de @bortzmeyer : bortzmeyer.org/7049.html

#BSON, #protobuf, #MessagePack : chacun a ses avantages (et inconvénients) face à #JSON.
Le CBOR est une couleur de cette palette.

2023-08-22

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.

@webfussel What size and shape is the data? Must be pretty big, probably a huge array with lots of big objects? I've tackled this by writing a little streaming stringifier (caveat: #ReadableStreams as fetch request bodies were still Chrome-only by the time) or using something like #MessagePack instead of #JSON.

When transfering big amounts of data, #JSON can be a pita. Duplicating data into a string is kind of inefficient and stringifiers like `JSON.stringify` in the #browser have their limits too.

#MessagePack looks like a nice alternative. Beeing binary, it's faster and more efficient. Language support looks great. In #JavaScript / #TypeScript you can even have it produce a #ReadableStream to feed directly into fetch. Now pipe it into a #CompressionStream and you're flying!

msgpack.org/

Serge Matveenko ⚠️ movedlig@fosstodon.org
2021-09-16
2021-07-31

#MPack is a #MessagePack #library for #C.

MPack encodes and decodes messages to/from the MessagePack serialization format. MessagePack imitates the structure of JSON, but uses packed data to save space on delimiters and metadata. MPack is very fast, outperforming many other encoders. MPack can run without the standard library, simplifying use on embedded devices like microcontrollers.

Website 🔗️: github.com/ludocode/mpack

#free #opensource #foss #fossmendations #programming

2021-04-22

#ArduinoJson is a #JSON #parser for #Arduino.

ArduinoJson is a JSON parser written in a dialect of #Cpp used for #embedded devices like Arduino. ArduinoJson uses static memory allocation, preventing memory fragmentation. ArduinoJson is also faster, smaller, and uses less RAM than other JSON parsers for Arduino, while offering an expressive API. ArduinoJson supports #MessagePack.

Website 🔗️: arduinojson.org/

#free #opensource #foss #fossmendations #programming

2020-02-17

Notre bibliothèque #php QueryFlatFile supporte le format #MessagePack, à la vue des #benchmarks.

Il s'agit d'un format de données plus léger, rapide en lecture écriture et donc moins consommateur en mémoire et énergie que le format #json 😊

github.com/soosyze/queryflatfi

Le petit problème c'est que c'est moins lisible pour un humain, mais pour les flux de données c'est nickel 👍

[EN] msgpack.org/
[EN] blobfolio.com/2017/03/benchmar

Moritz Heibermoritzheiber
2017-04-08

I'm already in love with , but this seems like an excellent addition: saltpack.org/

Basically a secure version of MessagePack 😍

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst