Похожие чаты

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

21 просмотр

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

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

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

А как старый хаскел с новым стыковать ? потому как тут работает https://play.haskell.org/saved/C3xpMzcd, а вот тут https://stepik.org/lesson/7602/step/9?unit=1473 нет ошибка C...
Fedor
131
что насчет пагинга? на осдеве непонятно(
Vi Chapmann 🪙
26
Guys what is ur real (no jokes) expectation of link price during this cycle?
Hobbyist
28
hey everyone I'm not able to input come characters in my flatpak apps, they get ignored by the application. all other non-flatpak apps are fine with these characters. I search...
elo
20
>>> Failed to install app-alternatives/awk-4, Log file: >>> '/var/tmp/portage/app-alternatives/awk-4/temp/build.log' * Messages for package app-alternatives/awk-4: * Pa...
[cocoa] wizzy hell
1
Вопрос я правильно понимаю что в коде newtype ArrowMap k v = ArrowMap { getArrowMap :: k -> Maybe v } getArrowMap есть функция типа k -> Maybe v, если да, то не понимаю задач...
Fedor
64
Hey everyone! How's your weekend going so far?
Noah Noure
17
Hey, it seems like a solid project for the gaming industry. What are your initial thoughts?
Josh
26
Ребят, что лучше для реверса: гидра или ида?
En Vind Av Sorg
26
Делаю велосипед логгер. К сообщению хочу прикрутить некоторую информацию, типа, кем отправлено, какой уровень, и всякое такое. И тут подумалось мне, почему бы не хранить весь...
Serjone
24
Карта сайта