Похожие чаты

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 ответов

14 просмотров

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 Автор вопроса

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

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

А случайно нет ли в паскале штатной возможности передать указатель и количество туда где array of в качестве аргумента?
zamtmn
25
@LGCYMan @JustinKKW Q/A List 1. this part confuses me on #8: "From there, a bridge between erc20 LGXY and erc20 LGXY will be out once that swap is closed." does this mean ...
Sig | LGCY | BattleVerse L1 | BitWin
1
Maine b!nance se wazirx mein 200$ deposit kiya and usdt/inr pair mein sell krdiya 1% tds kata and maine inr withdrawal krliya , ab usme 30% tax dena hoga kya?
Xanime
14
How do I get FrxEth? Need it to execute a contract
Abdullah $BTON
18
Did @Beeker really get banned? That's ridiculous. He's one of the few left here with half a brain and you might not always like his narrative @dgb_ycagel , but he often keeps ...
Leroy Gerrits
1
Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
58
Добрый день ,ребята! А подскажите пожалуйста. Есть вот у меня макбук 13 2015 года,но на нём разбит экран,всё остальное в идеале. Стоит последняя МакОсь Монтерей 12. Можно ли ...
AR
7
Ну раз я пока тут, задам пару глупых вопросов. Зачем писать на ассемблере если компилятор довольно умный, а ассемблер много времени занимает? В каких прикладных задачах сейчас...
Максим Рябцев
20
async login(req: Request, res: Response, next: NextFunction): Promise<void> { try { const { errors, input } = await RequestValidator(LoginRequest, req.body...
. .
1
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
Карта сайта