#serialization — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #serialization, aggregated by home.social.
-
#Development #Pitfalls
Your JSON is lying to you · When JSON silently corrupts JavaScript data https://ilo.im/16f2gc_____
#Serialization #JSON #JavaScript #Console #Browser #DevOps #WebDev #Frontend #Backend -
Как мы сделали протобаф-адаптер CONTRACT быстрее libprotobuf
CONTRACT умеет писать protobuf-совместимый wire-формат — и в 20 из 28 замеров обогнал по скорости настоящий libprotobuf, включая его собственный сгенерированный protoc-код. Разбираем три инженерных решения, которые это дали, и два сценария, где не получилось. CONTRACT — это C++ библиотека сериализации без кодогена и рантайм-рефлексии: схема объявляется один раз, в самой C+±структуре, и работает сразу под разные форматы.
-
Сериализация one-nio: от истоков к поддержке JDK 25
Привет, Хабр! В этой статье я расскажу об эволюции подсистемы сериализации one-nio — фреймворка для создания высоконагруженных сервисов, работающего в Одноклассниках с 2012 года. Прошлой осенью я работал над обновлением подсистемы и добавил в нее новый режим работы, совместимый с актуальными версиями JDK. Ситуация, с которой мы столкнулись, довольно прозаична. Библиотеке больше десяти лет, и экстремально быстрая сериализация (превращение объекта в последовательность байтов и обратно) с самого начала строилась в ней на внутренних лазейках JVM, к которым обычный прикладной код доступа не имеет. Когда one-nio только писали, это был стандартный паттерн для высоконагруженных фреймворков. Сейчас же платформа методично «закручивает гайки»: старые бэкдоры помечаются как устаревшие, а затем безжалостно удаляются. И перед нами встал серьезный вызов: как перевести библиотеку на легальные API вплоть до JDK 25, сохранив производительность и не сломав то, что годами крутится в проде? Под катом я расскажу, зачем вообще понадобился еще один фреймворк сериализации и как он устроен, на чём держался старый режим, почему его пришлось менять, что получилось по бенчмаркам и куда движется платформа JVM.
-
Protobuf-py: Protobuf for Python, without compromises
https://buf.build/blog/protobuf-py
Comments: https://news.ycombinator.com/item?id=48827058
#HackerNews #Protobuf #Python #data #serialization #technology #coding
-
Anyone have experience with creating serial numbers/UUIDs/similar unique identifiers? I'm working to half design, half reverse engineer such a system and I'd love to get insight from those with more experience on what best practices there are.
Its for a specific use case and setting, but I'd be curious to hear a variety of applications as well to help broaden the perspective
-
People keep reinventing serialisation, generally badly. A year ago I proposed my own as a joke:
https://wiesmann.codiferes.net/wordpress/archives/38143
What I find fascinating, is that I keep seing proposals which are probably worse…
-
🚀 Ah, the ever-elusive paradise of Rust's ecosystem: a place where adding a new #serialization library is akin to asking developers to rewrite the Ten Commandments every time. 😅 Who needs coherence when you've got Rust's chaotic serialization library jamboree, right? 🎉
https://www.boxyuwu.blog/posts/an-incoherent-rust/ #Rust #Ecosystem #Chaos #Developer #Humor #HackerNews #ngated -
What's a good #format to serialize simple structured #data in an efficient way?
I'm thinking about some binary #XML encoding. Also, #ASN.1 because it natively uses integers, not just strings. Is the packed representation (PER) widely supported?
The data will be a bunch of interleaved time series streams, so variable field lengths could be a big win.
Is there a format for stuff like that?
#Matroska's EBML? Only I'd have to hack the schema in.
-
Part 16 of Modernizing .NET is out! 🛡️
Today we’re ditching the obsolete BinaryFormatter in favor of the fast and secure protobuf-net.
🚀 7x faster 📉 3x smaller ✅ Fully safe for modern .NET
https://medium.com/@michael.kopt/%EF%B8%8F-modernizing-net-part-16-replacing-binaryformatter-with-protobuf-net-for-speed-and-security-f5cc5db8055a
#dotnet #dotnetcore #dotnet8 #dotnet9 #dotnet10 #aspnet #aspnetcore #csharp #programming #serialization #protobuf -
🚀 Lodum v0.3.0 is here! 🐍✨
Lodum is high-performance serialization for Python (think Rust's serde). This release focuses on the future of Python in the browser:
✅ Robust WASM concurrency support (via Pyodide)
✅ Unified threading/locking API for Native + Browser
✅ Native NumPy/Pandas support
✅ Live in-browser demo!Try it out now with zero installation:
https://webmaven.github.io/lodum/latest/demo/#Python #WASM #Pyodide #OpenSource #DataScience #Serialization #Analytics
-
💨 Replacing Protobuf with Rust to go 5 times faster
https://pgdog.dev/blog/replace-protobuf-with-rust
#speed #software #programming #development #rust #protobuf #serialization
-
How to Stop JSON stringify From Losing Dates
Dates become strings and lose timezone data.
-
Case study: Securing AI application supply chains - https://www.redpacketsecurity.com/case-study-securing-ai-application-supply-chains/
#threatintel
#AI-security
#LangChain
#Serialization-injection
#LangGrinch
#AI-supply-chain-security -
New JDeck Release,
This release adds a few missing data types for encoders, decoders.https://github.com/AngelMunoz/JDeck/releases/tag/v1.1.0
https://angelmunoz.github.io/JDeck/encoding.html#Mixed-Type-Arrays
-
Back in her own body, Marie-Josée tries to help Commander Saito against impossible odds in the concluding chapter of Captain’s Away! A Strange Dimensions Book.
-
How to Stop JSON stringify From Dropping Symbols
Symbols vanish in JSON output.
-
JSON Handling: Which Language Makes It Easier?!
JavaScript JSON vs PHP JSON - native vs functions, which wins? SURPRISING results!
#javascript #php #jsvsphp #json #jsonparsing #serialization #jsonencode #jsondecode #viralcoding #dataformats #programmingcomparison #mindblown
-
"In #thestream metaphor you don’t experience the Stream by walking around it and looking at it, or following it to its end. You jump in and let it flow past. You feel the force of it hit you as things float by.
It’s not that you are passive in the Stream. You can be active. But your actions in there—your blog posts, @ mentions, forum comments—exist in a context that is collapsed down to a simple timeline of events that together form a narrative…the Stream replaces #topology with #serialization." -
Формат данных на C++, который не боится рефакторинга
Не про редактор и не про алгоритмы. Про то, как формат сохранения переживает переписывание логики, рост требований и годы разработки. Есть миф, что рефакторинг ломает обратную совместимость. Я 5 раз переписывал редактор графов и не сломал ни одного файла. Рассказываю, как это возможно. Почему данные переживают иерархии кода
https://habr.com/ru/articles/978216/
#C++ #serialization #gamedev #editor #QapSerialize #graphics #graph #рефакторинг #рефлексия #rtti
-
@vncresolver Python leaves the chat room, taking its imports with it.
-
Кастомная сериализация с помощью kotlinx.serialization
Привет, Хабр! Меня зовут Антон Николаев, я senior android-разработчик в Okko, работаю в команде «Молодость» — занимаюсь мультипрофилем и всем, что связано с детским контентом. Сегодня расскажу о JSON Schema и как мы используем эту спецификацию на проекте, а также о библиотеке kotlinx.serialization и том, как она упростила нам работу со схемами. Статья будет полезна разработчикам, которые интересуются библиотекой kotlinx.serialization и хотят глубже узнать её устройство. В ней обсудим: Что такое JSON Schema
-
@CuratedHackerNews That's not really serialization, at most marshalling to binary protocol.
#Serialization takes place to the format of user's choice. #Fory seem to be replacement of #Protobuf and #Cap'n'Proto.
-
I guess they're two old friends. They've seen a few things. Perhaps they're a little jaded, a little faded, a little past their prime. They're on some sort of vacation, that's why they're wearing the fishing vests. They're in no hurry, that's why they're carrying their coffee mugs. It's a relaxed series. Of course, herons eat toads, and that's got to always be on the back of both of their minds.
What about the format? It's a serialization, but ideally each post should stand on its own since it's possible, indeed probable, that the whole series won't be seen, and almost certainly not in order.
https://waferiction.blogspot.com/2025/09/toad-and-heron-balloon-trip.html