Похожие чаты

I'Ve built a utility for embedding binaries in JSON. I

created a helper for images. Does anyone know of any other "binary things" you often interact with in golang that's apart of the standard lib? Trying to avoid importing a buncha things

https://github.com/EliCDavis/jbtf

11 ответов

34 просмотра

what's the purpose? What's its use case?

Eli-Davis Автор вопроса
Eli Davis
Embedding binaries in json

https://go.dev/play/p/SYCRSMyIl7G we can already do it with encoding/json Or did I understand it wrong?

jbtf is more efficient or what's the advantage over encoding/json? I believe you should state that in the README so it's clear when to consider using it

Eli-Davis Автор вопроса
Roman Sharkov
jbtf is more efficient or what's the advantage ove...

I guess I rely heavy on people knowing GLTF. With GLTF, the buffer can be encoded directly in the JSON as base64, or have the buffer actually be a URI to a file somewhere external. And if you take it a step further, GLB, the binary is embedded as binary. Not base64 encoded.

Eli Davis
I guess I rely heavy on people knowing GLTF. With...

at that point I'd ask myself: do I really want to use JSON? I would just use https://msgpack.org instead

Eli-Davis Автор вопроса
Roman Sharkov
at that point I'd ask myself: do I really want to ...

Trying to avoid requiring external libs dealing with these files require any external dependencies.

Eli Davis
Trying to avoid requiring external libs dealing wi...

but I'd be using jbtf then, which is an external lib, right?!

Eli-Davis Автор вопроса
Roman Sharkov
but I'd be using jbtf then, which is an external l...

external as in, people wanting to work with data produced from my program

Eli Davis
external as in, people wanting to work with data p...

msgpack has various implementations in all common languages AFAIK it's pretty good

Eli-Davis Автор вопроса

Похожие вопросы

Обсуждают сегодня

Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
For all those that keep asking why no pump? why this ? and why that...? Please close ur ewt chart and open 2 others - TOTAL (total mc) and BTC.D (btc dominance). Maybe BTC a...
Inn3r_G
19
"Since pnut can flip FTM easily, I'm swapping my FTM to pnut and hoping for a easy x5-x10" Perfect recipe for disaster. NFA but chances are, you'll end up as exit liquidity ...
C. A.
7
да кстати заметил всюда почему то всех сюда прёт, ни в одном чате столько ботов не прёт как сюда.. Может чота надо доработать?
REDis
15
AMD status update? No longer in the plan but something might be around the corner later on Chinese partner? No longer in the plan. This market does not seem to be the top ...
Ben
6
I get confused when people talk about the ‘bull market’ and the ‘next bull market’ as if anyone really has a clue what’s really going on in the world. First of all - there i...
Shah
1
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Всем привет, я тут короче оторвал кусок от рут-раздела и сделал свап, перезаписал fstab, загружаюсь и меня перекидывает в дебаг-шелл. Вижу ошибки бтрфс: Device total_bytes sho...
&[SirJiga] Jiga
9
Добрый день, подскажите, пожалуйста, по проблеме. Сегодня на работе утром обнаружилось что по рдп подключиться не получается к серверу 2022. В серверную зашел - на системно...
srv
19
И никого не интересует какие пакеты кто использует. ((% Заходишь на сайт симфони и видишь поддержку Украины - по законам РФ это ж экстремизм. Только никто не отказывается от с...
Am Ambrion
11
Карта сайта