#protobuf

2025-05-22

🎉 The CUE project has just released v0.13.0 - the culmination of a year's worth of work to enable the new, faster, better, (stronger? harder?) evaluator by default! 🎉

github.com/cue-lang/cue/releas

The release also packs in loads of new features, such as support for absolute module packages, dozens of JSON Schema improvements, and a new experimental XML encoding.

#CUE #cuelang #JSON #YAML #TOML #DevOps #SysAdmin #DataValidation #Policy #Data #Schema #JSONSchema #OpenAPI #ProtoBuf

GripNewsGripNews
2025-04-14

🌘 GitHub - nathanhleung/protobuf-ts-types:無需代碼生成與編譯的Protobuf訊息至TypeScript型別推斷工具
➤ 實驗性工具實現Protobuf與TypeScript型別無縫對接
github.com/nathanhleung/protob
透過TypeScript模板字面類型技術,直接從Protobuf訊息定義推導TypeScript型別,免除傳統代碼生成流程。
+ 「終於有工具能跳過繁瑣的protoc生成步驟,期待正式版支援oneof和map類型!」
+ 「概念驗證階段就如此實用,但生產環境導入前可能需等服務調用功能完備。」
#

Larry GarfieldCrell@phpc.social
2025-04-11

Why is it the language-agnostic formats for defining data models are either

1. Grossly over-engineered for one purpose
2. Grossly over-verbose
3. Both

Where's my clean, easy syntax for defining data classes that can be generated into *simple* PHP, JS, Kotlin, etc? Where's my DTO-maker format?

#Programming #Rant #Protobuf #Openapi #jsonschema #PHP #Javascript

Larry GarfieldCrell@phpc.social
2025-04-09

PHP friends. I am looking to experiment with Protobuf as a way to define an API, for which we'll want code-generation for both (modern) PHP and Javascript/TypeScript. What's your recommendation? I'm finding lots of decade-old projects...

Alternatively, is there tooling to generate Protobuf off of PHP code/attributes, the way OpenAPI can?

#PHP #Protobuf #Javascript

2025-04-09

[Перевод] Эффективная передача данных: используем Protocol Buffers для коммуникации между ESP32 и QT/QML

Привет, Хабр! Сегодня я хочу рассказать вам о том, как можно эффективно использовать Protocol Buffers в сочетании с ESP32 и Qt Framework. Для наглядности я сделаю это на примере собственного хобби-проекта, который представляет из себя гидропонную систему. В этом проекте мы попытаемся наладить коммуникацию между ESP32 и приложением Qt/QML, используя Protocol Buffers через UDP.

habr.com/ru/companies/otus/art

#esp32 #qml #protobuf #protocol_buffers #Nanopb

2025-04-02

[Перевод] Мы взломали Google Gemini и скачали его исходный код (частично)

В 2024 году мы выпустили пост We Hacked Google A.I. for $50,000 , в котором говорилось, как наша группа в составе Рони «Lupin» Карта (это я), Джозефа «rez0» Тэкера и Джастина «Rhynorater» Гарднера поехала в 2023 году в Лас-Вегас, чтобы искать уязвимости Gemini на проводимом Google мероприятии LLM bugSWAT. В этом году мы повторили нашу поездку…

habr.com/ru/articles/896092/

#llm #google_gemini #утечки_данных #песочницы #protobuf

VictoriaMetricsvictoriametrics
2025-02-11

🚀 (Protocol Buffers) is a way to serialize data into a compact binary format . This makes it smaller and faster to transmit over the network, though at the cost of being less human-readable.

📚 Learn more in Phuong's latest post!

victoriametrics.com/blog/go-pr

Kevin McDonaldkmcd
2025-02-11

🪧 Protovalidate: Can Input Validation Be This Easy?: Effortless input validation for Protobuf! Protovalidate lets you define rules directly in your .proto files.
kmcd.dev/posts/protovalidate/

2025-02-11

🪧 Protovalidate: Can Input Validation Be This Easy?: Effortless input validation for Protobuf! Protovalidate lets you define rules directly in your .proto files.
kmcd.dev/posts/protovalidate/
#protobuf #grpc #protovalidate #buf #web

Brandon Bennettnemith@hachyderm.io
2025-01-24

Buf.build's pricing model is insane.

buf.build/pricing#FAQs

Imagine redesigning your API to remove enums and messages to optimize cost.

#golang #protobuf #buf #grpc

Jeppe Fihl-PearsonTenzer@s.waq.dk
2025-01-24

A #Protobuf question, for anybody who might know:

Is there any big downside to marking all fields optional in proto3, besides the resulting wire format being slightly larger?

Being able to know whether a field has been populated or not seems like a nice benefit of marking fields optional (and also seems to be the default for the new "2023 edition”).

I wonder if it's an anti-pattern or is this a matter of structuring the messages in a format so this isn't an issue at all?

despair driven developmentel_timmy
2025-01-01

Shameless self promotion, I wrote a code generator to generate clients and service interfaces for based on definitions. This addresses the dodginess of the Go SDK type-safety wise !

github.com/thomas-maurice/prot

卡拉今天看了什麼ai_workspace@social.mikala.one
2024-12-28

Nobody Gets Fired for Picking JSON, but Maybe They Should? · mcyoung

Link
📌 Summary:
本文深入探討了JSON的設計及其所帶來的問題,強調即便JSON因其簡單性而廣受歡迎,但它的設計缺陷卻導致許多資料損壞的隱患。尤其是因為缺乏明確的模式來解析隨機JSON文件,許多常見的角落案例會導致數據損失。文章還指出,JSON在數字表示和解析上存在多樣性,使得不同的實現之間極度不相容,此外,難以處理特殊數字、無效的Unicode字符和字元串等問題也使得JSON難以修復。總的來說,雖然JSON是流行的選擇,然而作者建議使用如Protobuf等更強大的選擇來替代。

🎯 Key Points:
- JSON的基本概念與簡單性使其在REST API中非常流行,但其實際定義和實現複雜,缺乏統一的標準。
- 不同語言與實作中的解析器行為的差異導致JSON解析的不一致,尤其在數字處理上常導致數據損失。
- JSON不支持直接傳遞字節字串,常依賴於base64進行編碼,這會影響可讀性和帶來潛在的互操作問題。
- JSON在數據串流方面的支持有限,不易於實現實時數據處理。
- 雖然目前已經有其他格式(如BSON、Protobuf等)能解決JSON的上述問題,但許多仍面臨自己的挑戰。

🔖 Keywords:
#JSON #數據損失 #解析器 #學習 #Protobuf

Kevin McDonaldkmcd
2024-12-17
2024-12-11
2024-11-25

Разработка и управление едиными контрактами API

Привет, Хабр! Пол года назад на AnalystDays #18 я рассказывал про API-контракты, и доклад вызвал большой интерес у аудитории. Пока видео не опубликовали, решил адаптировать материал в формат статьи.

habr.com/ru/articles/860960/

#api #контракты #openapi #protobuf #graphql #soap #grpc #websocket #webhook #rest

Jamie Gaskinsjamie@zomglol.wtf
2024-11-22

Just released v2.3.1 of the Protobuf code generator for Crystal with a PR that was originally posted 3 years ago that had completely slipped my mind. 😬

github.com/jeromegn/protobuf.c

#Crystal #Protobuf

2024-11-16

When you take protobuf out of the equation, this is basically the core of gRPC: github.com/sudorandom/fauxrpc/

#grpc #protobuf

Client Info

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