home.social

#messagepack — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #messagepack, aggregated by home.social.

  1. 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?

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

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

    habr.com/ru/articles/871616/

    #json #nodejs #javascript #messagepack #protocol_buffers #api #сериализация #стриминг #большие_данные #производительность

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

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

    habr.com/ru/articles/871616/

    #json #nodejs #javascript #messagepack #protocol_buffers #api #сериализация #стриминг #большие_данные #производительность

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

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

    habr.com/ru/articles/871616/

    #json #nodejs #javascript #messagepack #protocol_buffers #api #сериализация #стриминг #большие_данные #производительность

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

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

    habr.com/ru/articles/871616/

    #json #nodejs #javascript #messagepack #protocol_buffers #api #сериализация #стриминг #большие_данные #производительность

  6. Streamlining Data Transfer: Dive into MessagePack for ActionScript 3

    In the world of web and mobile development, efficient data serialization is crucial. MessagePack for ActionScript 3 offers a powerful solution to streamline binary data handling, making it a must-know...

    news.lavx.hu/article/streamlin

    #news #tech #MessagePack #ActionScript3 #DataSerialization

  7. 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

  8. 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

  9. 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

  10. 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.)

    #rustlang #gamedev #multiplayergame #WebTransport #http3 #messagepack #indiedev #opensource #coding #devcommunity

  11. Кофе по 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

  12. Кофе по 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

  13. Кофе по 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

  14. 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.

  15. @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: as fetch request bodies were still Chrome-only by the time) or using something like instead of .

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

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

    msgpack.org/

  17. is a for .

    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

  18. is a for .

    ArduinoJson is a JSON parser written in a dialect of used for 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 .

    Website 🔗️: arduinojson.org/