companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
mxns has joined #ocaml
mxns has quit [Ping timeout: 264 seconds]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
mxns has joined #ocaml
mxns has quit [Ping timeout: 264 seconds]
afrosenpai has joined #ocaml
metreo has quit [Quit: metreo]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
afrosenpai has quit [Ping timeout: 260 seconds]
steenuil has quit [Read error: Connection reset by peer]
borne has quit [Ping timeout: 240 seconds]
smazga has quit [Ping timeout: 256 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
rock64 has quit [Ping timeout: 265 seconds]
rock64 has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
smazga has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mfp has quit [Ping timeout: 264 seconds]
catt has quit [Ping timeout: 265 seconds]
krkini is now known as kini
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
penguwin has quit [Quit: Ping timeout (120 seconds)]
penguwin has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
smazga has quit [Ping timeout: 246 seconds]
zebrag has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 272 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 265 seconds]
smazga has joined #ocaml
vicfred has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
catt has joined #ocaml
smazga has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
rdivyanshu has joined #ocaml
smazga has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ocaml
catt has quit [Remote host closed the connection]
smazga has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
smazga has quit [Ping timeout: 264 seconds]
banjiewen__ has quit [Ping timeout: 264 seconds]
banjiewen__ has joined #ocaml
decentpenguin has joined #ocaml
decentpenguin has quit [Ping timeout: 260 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
narimiran has joined #ocaml
smazga has joined #ocaml
amiloradovsky has joined #ocaml
smazga has quit [Ping timeout: 256 seconds]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
rpcope- has joined #ocaml
rpcope has quit [Ping timeout: 260 seconds]
steenuil has joined #ocaml
dborisog has joined #ocaml
borne has joined #ocaml
borne has quit [Ping timeout: 240 seconds]
shawnw has joined #ocaml
borne has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
olle has joined #ocaml
Tuplanolla has joined #ocaml
dborisog has quit [Ping timeout: 264 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
borne has quit [Ping timeout: 244 seconds]
bartholin has joined #ocaml
rdivyanshu has quit [Quit: Connection closed for inactivity]
narimiran has quit [Ping timeout: 265 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 256 seconds]
smazga has joined #ocaml
borne has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
chimay[m] has quit [Quit: Bridge terminating on SIGTERM]
jimt[m] has quit [Quit: Bridge terminating on SIGTERM]
aspiwack[m] has quit [Quit: Bridge terminating on SIGTERM]
dash has quit [Quit: Bridge terminating on SIGTERM]
lnxw37d4 has quit [Quit: Bridge terminating on SIGTERM]
labor[m] has quit [Quit: Bridge terminating on SIGTERM]
avsm[m] has quit [Quit: Bridge terminating on SIGTERM]
aecepoglu[m] has quit [Quit: Bridge terminating on SIGTERM]
flux has quit [Quit: Bridge terminating on SIGTERM]
pqwy[m] has quit [Quit: Bridge terminating on SIGTERM]
peddie has quit [Quit: Bridge terminating on SIGTERM]
smondet[m] has quit [Quit: Bridge terminating on SIGTERM]
BitPuffin has quit [Quit: Bridge terminating on SIGTERM]
samoht[m] has quit [Quit: Bridge terminating on SIGTERM]
peddie has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
neiluj has joined #ocaml
avsm[m] has joined #ocaml
labor[m] has joined #ocaml
samoht[m] has joined #ocaml
smondet[m] has joined #ocaml
lnxw37d4 has joined #ocaml
aecepoglu[m] has joined #ocaml
flux has joined #ocaml
pqwy[m] has joined #ocaml
dash has joined #ocaml
jimt[m] has joined #ocaml
chimay[m] has joined #ocaml
aspiwack[m] has joined #ocaml
BitPuffin has joined #ocaml
neiluj_ has joined #ocaml
aiowej has joined #ocaml
<aiowej> Hi! This may be more of a basic CS question than something specifically about OCaml. I'm looking to learn how to implement encoding stuff in hex/base32/base64 or similar. I'm self-taught so sorry if it's a basic question. When searching, I find a lot of examples of libraries, but I'm looking to learn how to do it with basic building blocks like functions and `char list`s. If anyone can recommend a reading resource for this I'd be very
<aiowej> thankful! Cheers
steenuil has quit [Read error: Connection reset by peer]
mfp has joined #ocaml
troydm has quit [Ping timeout: 265 seconds]
troydm has joined #ocaml
<dinosaure> for hex: you can take a look on https://github.com/mirage/ocaml-hex and for base64, you can take a look on https://github.com/mirage/ocaml-base64
<dinosaure> however, they manipulates strings (not char list) for performance reasons
narimiran has joined #ocaml
steenuil has joined #ocaml
neiluj_ has quit [Quit: leaving]
<olle> aiowej: just read the code of a lib?
smazga has joined #ocaml
steenuil has quit [Read error: Connection reset by peer]
smazga has quit [Ping timeout: 260 seconds]
motherfsck has quit [Quit: quit]
webshinra_ has quit [Remote host closed the connection]
webshinra has joined #ocaml
<aiowej> Thanks dinosaure and olle for your pointers. I'm trying to take my input string, splitting it up in chunks of 6 bits each (as dec 63 = bin 111111), and then looking up in a table what ASCII char to replace it with. DDGing I find a lot of stuff about bytes/char, but I'm having trouble finding how to get a list of 6-bit values. How can you from a string or other standard data strucutre take not 8 (char) but n bits and hold them as a
<aiowej> value?
<olle> bit shifting? dunno actually
<hannes> aiowej: as far as I know: you can't ;) what you can is get them char-by-char (byte-by-byte), then use "land" (logical and) and shifts to view the 6 bits you're interested in, preserve the 2 for the next thing, etc.
schlaftier has quit [Quit: The Lounge - https://thelounge.chat]
Haudegen has joined #ocaml
smazga has joined #ocaml
zebrag has joined #ocaml
schlaftier has joined #ocaml
shawnw has quit [Ping timeout: 246 seconds]
metreo has joined #ocaml
smazga has quit [Ping timeout: 246 seconds]
steenuil has joined #ocaml
bjorkint0sh has quit [Quit: Leaving]
mxns has joined #ocaml
aiowej has quit [Ping timeout: 272 seconds]
waleee-cl has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 256 seconds]
rak_ has joined #ocaml
aiowej has joined #ocaml
aiowej has quit [Ping timeout: 256 seconds]
mxns has quit [Ping timeout: 264 seconds]
mxns has joined #ocaml
smazga has joined #ocaml
DanC has quit [Read error: Connection reset by peer]
DanC has joined #ocaml
<d_bot> <djellemah> aiowej: Maybe this helps , never used it myself though: https://bitstring.software/documentation/
raver has quit [Quit: Gateway shutdown]
raver has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
DanC has quit [Read error: Connection reset by peer]
dckc- has joined #ocaml
TC01 has quit [Quit: No Ping reply in 180 seconds.]
TC01 has joined #ocaml
tryte has quit [Ping timeout: 268 seconds]
tryte has joined #ocaml
dckc- has quit [Read error: Connection reset by peer]
DanC has joined #ocaml
hnOsmium0001 has joined #ocaml
olle has quit [Ping timeout: 246 seconds]
borne has quit [Ping timeout: 258 seconds]
bartholin has quit [Quit: Leaving]
neiluj has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
Haudegen has joined #ocaml
metro has joined #ocaml
metreo has quit [Ping timeout: 260 seconds]
metro is now known as metreo
metreo has quit [Client Quit]
metreo has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
neiluj has joined #ocaml
neiluj has joined #ocaml
sleepydog has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
jnavila has joined #ocaml
rak has quit [Quit: rak]
jnavila_ has joined #ocaml
jnavila has quit [Ping timeout: 256 seconds]
rak_ is now known as rak
mxns has quit [Ping timeout: 264 seconds]
mxns has joined #ocaml
wonko7 has joined #ocaml
borne has joined #ocaml
wonko7 has quit [Ping timeout: 264 seconds]
catt has joined #ocaml
Jesin has quit [Quit: Leaving]
wonko7 has joined #ocaml
Jesin has joined #ocaml
borne has quit [Ping timeout: 264 seconds]
adrianbrink has quit [Ping timeout: 240 seconds]
banjiewen__ has quit [Ping timeout: 264 seconds]
banjiewen__ has joined #ocaml
adrianbrink has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
catt has quit [Remote host closed the connection]
chripell_ has quit [Quit: ZNC 1.8.2+deb2+build1 - https://znc.in]
chripell has joined #ocaml
olle has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
jnavila_ has quit [Quit: Konversation terminated!]
narimiran has quit [Ping timeout: 272 seconds]
neiluj has quit [Remote host closed the connection]
vicfred has quit [Quit: Leaving]
borne has joined #ocaml
vicfred has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
<olle> Which Ubuntu package contains OCaml C headers?
<olle> libocaml-dev something?
<olle> Not sure how that integrates with opam :d
<olle> Also, from manual: "As another optimization, unboxable record types are represented specially; unboxable record types are the immutable record types that have only one field."
<olle> Can that field be any type??
<olle> Like another record
<d_bot> <Kakadu> `apt-file search mlvalues.h`
<olle> aha
<olle> testing...
<olle> heh, already have it at /usr/lib/ocaml/caml/mlvalues.h
<olle> thanks kakadu
<olle> Anyone knows what to link for this? "undefined reference to `caml_names_of_builtin_cprim'"
<olle> This is what I do: `gcc -L/usr/lib/ocaml -lcamlrun -lm -ldl src/benchmarks/binarytrees-escaped.c`
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
<olle> Moved to stackoverflow
mxns has joined #ocaml
<olle> Installed version is version 4.02.3
mal``` has quit [Quit: Leaving]
mal`` has joined #ocaml
lookyLoo has joined #ocaml
lookyLoo has quit [Client Quit]
lookyLoo has joined #ocaml
lookyLoo has quit [Quit: Connection closed]
borne has quit [Ping timeout: 265 seconds]
amiloradovsky has quit [Remote host closed the connection]
borne has joined #ocaml