wbooze has quit [Remote host closed the connection]
wbooze has joined #ocaml
cr1901_ has joined #ocaml
cr1901 has quit [Ping timeout: 260 seconds]
wickedshell has joined #ocaml
Inline has quit [Ping timeout: 245 seconds]
wbooze has quit [Ping timeout: 260 seconds]
cr1901_ is now known as cr1901
wickedshell has quit [Ping timeout: 276 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
Anarchos has quit [Quit: Client closed]
bartholin has joined #ocaml
Haudegen has joined #ocaml
Tuplanolla has joined #ocaml
alfiee has joined #ocaml
Inline has joined #ocaml
wbooze has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
cr1901 has quit [Read error: Connection reset by peer]
wickedshell has joined #ocaml
cr1901 has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
j0lol has joined #ocaml
cr1901_ has joined #ocaml
cr1901 has quit [Ping timeout: 260 seconds]
alfiee has joined #ocaml
cr1901_ is now known as cr1901
alfiee has quit [Ping timeout: 276 seconds]
Inline has quit [Ping timeout: 245 seconds]
wbooze has quit [Ping timeout: 268 seconds]
Anarchos has joined #ocaml
alfiee has joined #ocaml
wbooze has joined #ocaml
Inline has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
wickedshell has quit [Read error: Connection reset by peer]
<sleepydog>
this is kind of an open question; has anyone used an API for encoding TLV structures that they really liked? I've always found it to be a little awkward because of the need to track the length as you write
alfiee has joined #ocaml
<companion_cube>
What kind of TLV?
alfiee has quit [Ping timeout: 244 seconds]
<companion_cube>
For stuff like protobuf you can encode backwards
Inline has quit [Ping timeout: 268 seconds]
wbooze has quit [Ping timeout: 272 seconds]
<sleepydog>
sure, protobuf, asn1 BER, anything where the length comes before the data and is variable
<sleepydog>
right now i'm working with Netlink which is the same
<sleepydog>
encoding backwards is a good idea
<sleepydog>
i find i make a lot of mistakes calculating the amount of data i've written because i'm doing it manually
<sleepydog>
like `let written = len - remaining_len (* oops I shadowed len and it's not what I think *)`
<companion_cube>
I have a protobuf library where I do the writing backward
<companion_cube>
Into a kind of resizable byte array but where data is at the end, not at the beginning
<sleepydog>
is it ocaml-protoc ?
<sleepydog>
i think remember stumbling across a commit message from you about writing in reverse years ago
mange has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
bartholin has quit [Quit: Leaving]
alfiee has joined #ocaml
Der_Teufel has quit [Ping timeout: 248 seconds]
alfiee has quit [Ping timeout: 268 seconds]
Serpent7776 has quit [Quit: leaving]
DerTeufel has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]