copy` has quit [Quit: Connection closed for inactivity]
ygrek has quit [Ping timeout: 258 seconds]
ansiwen has quit [Ping timeout: 240 seconds]
coddinkn has quit [Ping timeout: 240 seconds]
coddinkn has joined #ocaml
ansiwen has joined #ocaml
oriba has quit [Quit: WeeChat 1.7]
zv has quit [Ping timeout: 276 seconds]
groovy2shoes has quit [Ping timeout: 255 seconds]
groovy2shoes has joined #ocaml
shinnya has joined #ocaml
silver has quit [Read error: Connection reset by peer]
tobast has quit [Ping timeout: 255 seconds]
AlfredENeuman has quit [Ping timeout: 240 seconds]
tobast has joined #ocaml
AlfredENeuman has joined #ocaml
djellemah has quit [Ping timeout: 240 seconds]
cross has quit [Ping timeout: 260 seconds]
cross has joined #ocaml
djellemah has joined #ocaml
mfp has quit [Ping timeout: 245 seconds]
shinnya has quit [Ping timeout: 240 seconds]
mrnugget has joined #ocaml
vicfred has joined #ocaml
mrnugget has quit [Ping timeout: 256 seconds]
FreeBirdLjj has joined #ocaml
zv has joined #ocaml
djellemah has quit [Ping timeout: 240 seconds]
djellemah has joined #ocaml
oschwald has quit [Remote host closed the connection]
lopex has quit [Quit: Connection closed for inactivity]
_y has quit [Ping timeout: 260 seconds]
_y has joined #ocaml
nomicflux has quit [Quit: nomicflux]
ygrek has joined #ocaml
snhmib has quit [Ping timeout: 240 seconds]
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ygrek_ has joined #ocaml
ygrek has quit [Ping timeout: 255 seconds]
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
rgrinberg has quit [Remote host closed the connection]
_y has quit [Ping timeout: 260 seconds]
_y has joined #ocaml
FreeBirdLjj has joined #ocaml
tennix has joined #ocaml
_y has quit [Ping timeout: 240 seconds]
_y has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
f[x] has joined #ocaml
ygrek_ has quit [Ping timeout: 255 seconds]
f[x] has quit [Ping timeout: 255 seconds]
larhat has joined #ocaml
larhat has quit [Client Quit]
mrnugget has joined #ocaml
_y has quit [Ping timeout: 240 seconds]
f[x] has joined #ocaml
MercurialAlchemi has joined #ocaml
_y has joined #ocaml
_y has quit [Ping timeout: 245 seconds]
_y has joined #ocaml
peddie has quit [Disconnected by services]
FreeBirdLjj has joined #ocaml
peddie_ has joined #ocaml
philtor has quit [Ping timeout: 240 seconds]
chetshah has joined #ocaml
<chetshah>
Hello all, Ocaml beginner here, was trying to wrap my head around the fact that cyclic data structures (e.g. doubly linked list) would necessarily need to use mutability/ref features?
<chetshah>
If yes, why so?
MercurialAlchemi has quit [Ping timeout: 245 seconds]
AlexDenisov has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
ryanartecona has joined #ocaml
average has joined #ocaml
<flux>
chetshah, hmm, let's say you have a double linked list of a single element. how would you go about making a version of the list with two elements?
MercurialAlchemi has joined #ocaml
mrnugget has quit [Ping timeout: 240 seconds]
Guest82 has joined #ocaml
AlexDeni_ has joined #ocaml
AlexDenisov has quit [Ping timeout: 255 seconds]
freusque has joined #ocaml
chetshah has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
Guest82 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
freusque has quit [Quit: WeeChat 1.4]
alfredo has joined #ocaml
AlexDeni_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryanartecona has quit [Quit: ryanartecona]
malc_ has joined #ocaml
Simn has joined #ocaml
freehck has joined #ocaml
manizzle has quit [Ping timeout: 240 seconds]
manizzle has joined #ocaml
manizzle has quit [Max SendQ exceeded]
manizzle has joined #ocaml
manizzle has quit [Max SendQ exceeded]
manizzle has joined #ocaml
manizzle has quit [Max SendQ exceeded]
manizzle has joined #ocaml
jnavila has joined #ocaml
chetshah has joined #ocaml
<chetshah>
good point flux, I realise since everything node is reachable from anywhere in a cyclic data structure, verisioning/immutability by structural sharing doesn't make much sence.
<chetshah>
So better use ref making a cyclic data structure.
SomeDamnBody has joined #ocaml
<SomeDamnBody>
So, I can't get opam to install camlp4
AlexDenisov has joined #ocaml
<flux>
somedamnbody, what does it say?
<SomeDamnBody>
flux: well, I give the command `opam install camlp4`, and it dies missing a particular file. I wouldn't have removed some cmi file within some part of the compiler pbase
<SomeDamnBody>
topdirs.cmi: No such file or directory
<flux>
seems like the package could be missing some dependency, or is otherwise broken
<flux>
somedamnbody, do you have topdirs.cmi? find ~/.opam -name topdirs.cmi
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<SomeDamnBody>
that spits out .opam/4.02.3/lib/ocaml/topdirs.cmi
mengu has joined #ocaml
chetshah has quit [Ping timeout: 260 seconds]
<SomeDamnBody>
can I somehow get opam to clean camlp4 as though it needed to rebuild it? Because I don't think it is rebuilding it, and it's been a while since I've been back at ocaml
<SomeDamnBody>
so my box has sat around, not updated for like several months, then I needed to upgrade a bunch of packages and stuff to get the latest tools that I needed to continue writing software
<SomeDamnBody>
So, likely there is some gap between months of upgrades to software that I just leaped over
<SomeDamnBody>
If there were something similar to what port has for reinstalling everything that would be fine. I was looking for it but didn't find that.
AlexDenisov has joined #ocaml
mrnugget has joined #ocaml
larhat has joined #ocaml
<SomeDamnBody>
Oh! I had a pinned package that I thought I had removed, but that I didn't realize I needed to unpin. That fixed it, things are installing now
<flux>
great :). what was the package?
<SomeDamnBody>
bap
djellemah_ has joined #ocaml
djellemah_ has quit [Remote host closed the connection]
<SomeDamnBody>
A while back I had been working on a custom component, and was going to merge it in. But then I took a part time second job
johnelse has quit [Quit: Lost terminal]
johnelse has joined #ocaml
f[x] has quit [Ping timeout: 255 seconds]
mrnugget has quit [Ping timeout: 255 seconds]
AltGr has joined #ocaml
silver has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zpe has joined #ocaml
AlexDenisov has joined #ocaml
SomeDamnBody has quit [Remote host closed the connection]
sz0 has joined #ocaml
rwmjones has quit [Ping timeout: 255 seconds]
rwmjones has joined #ocaml
mfp has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
_andre has joined #ocaml
nightmared has quit [Quit: WeeChat 1.7]
nightmared has joined #ocaml
foo30303 has joined #ocaml
mengu has quit [Remote host closed the connection]
frefity has quit [Ping timeout: 260 seconds]
mengu has joined #ocaml
frefity has joined #ocaml
tennix has quit [Ping timeout: 264 seconds]
tennix has joined #ocaml
sillyotter has joined #ocaml
zpe has quit [Remote host closed the connection]
sillyotter has quit [Quit: WeeChat 1.4]
ziyourenxiang has joined #ocaml
AlfredENeuman has quit [Ping timeout: 256 seconds]
AlfredENeuman has joined #ocaml
rossberg has quit [Ping timeout: 264 seconds]
AlfredENeuman has quit [Ping timeout: 240 seconds]
snhmib has joined #ocaml
AlfredENeuman has joined #ocaml
rossberg has joined #ocaml
zpe has joined #ocaml
frefity has quit [Ping timeout: 258 seconds]
malina has joined #ocaml
jao has joined #ocaml
frefity has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
jao has quit [Ping timeout: 255 seconds]
ChatSharp has joined #ocaml
emilymhorsman has quit [Ping timeout: 240 seconds]
ChatSharp has left #ocaml [#ocaml]
vramana1 has joined #ocaml
vramana has quit [Ping timeout: 258 seconds]
vramana1 is now known as vramana
al-damiri has joined #ocaml
rpg has joined #ocaml
emilymhorsman has joined #ocaml
malina has quit [Ping timeout: 240 seconds]
malina has joined #ocaml
nomicflux has joined #ocaml
john51_ has joined #ocaml
malina has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
vramana1 has joined #ocaml
sh0t has quit [Read error: Connection reset by peer]
dlat has joined #ocaml
_2can_ has joined #ocaml
bacam_ has joined #ocaml
_andre_ has joined #ocaml
fds_ has joined #ocaml
j0sh has joined #ocaml
kandu has joined #ocaml
kandu is now known as Guest76058
dlat_ has quit [Write error: Broken pipe]
j0sh_ has quit [Write error: Broken pipe]
_andre has quit [Write error: Broken pipe]
_2can has quit [Write error: Broken pipe]
averell has quit [Excess Flood]
vramana has quit [Remote host closed the connection]
bacam has quit [Remote host closed the connection]
fds has quit [Remote host closed the connection]
Guest86343 has quit [Remote host closed the connection]
vramana1 is now known as vramana
fre has quit [Ping timeout: 255 seconds]
john51 has quit [Ping timeout: 258 seconds]
freusque has joined #ocaml
sh0t has joined #ocaml
fre has joined #ocaml
fre has quit [Client Quit]
fre has joined #ocaml
freusque has quit [Ping timeout: 245 seconds]
lucybun has quit [Quit: lucybun]
lucybun has joined #ocaml
nomicflux has quit [Quit: nomicflux]
averell has joined #ocaml
tane has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
silver has quit [Read error: Connection reset by peer]
silver has joined #ocaml
lopex has joined #ocaml
malina has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
AlexDenisov has quit [Read error: Connection reset by peer]
AlexDenisov has joined #ocaml
tennix has quit [Ping timeout: 240 seconds]
larhat has quit [Quit: Leaving.]
larhat has joined #ocaml
shinnya has joined #ocaml
rgrinberg has joined #ocaml
FreeBirdLjj has joined #ocaml
malc_ has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
tennix has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
vicfred has quit [Quit: Leaving]
Soni has quit [Read error: Connection reset by peer]
AlfredENeuman has quit [Ping timeout: 240 seconds]
Soni has joined #ocaml
AlfredENeuman has joined #ocaml
mengu has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
P4Titan has joined #ocaml
mengu has quit [Ping timeout: 255 seconds]
<P4Titan>
Hi all. Does anyone have expirience w/ ppx_deriving_protobuf?
<P4Titan>
I would like to ask if there is a way to serialize a Zarith Z.t type?
<Drup>
P4Titan: can't you go through a string ?
malina has quit [Ping timeout: 252 seconds]
<P4Titan>
Drup: that's what I'm thinking, going through bytes
<P4Titan>
but how does one go through?
<P4Titan>
I've got some code, but it doesn't look terribly elegant
<Drup>
there is an attribute in ppx deriving to change the function used for a specific field/type/whatever
<P4Titan>
oo
malina has joined #ocaml
foo30303 has quit [Quit: leaving]
dmbaturin has quit [Ping timeout: 260 seconds]
dmbaturin_ has joined #ocaml
obadz has quit [Ping timeout: 260 seconds]
obadz has joined #ocaml
evhan has quit [Ping timeout: 276 seconds]
ryanartecona has joined #ocaml
MercurialAlchemi has joined #ocaml
<P4Titan>
Drup: it seems that ppx_deriving_protobuf doesn't have such changing function ability as eq or ord
<Drup>
hum, that looks like an oversight/bug
<Drup>
(well, you can always define a module Z = struct include Z let protobuf_function ... end
Simn has quit [Ping timeout: 260 seconds]
ziyourenxiang has quit [Quit: Leaving]
obadz has quit [Ping timeout: 240 seconds]
obadz has joined #ocaml
<P4Titan>
I ended up writing my own probuf encoding and decoding functions
<P4Titan>
I've got one other question however
<P4Titan>
Take Uint32 (but I've seen this in numerous places), there is a value Uint32.zero
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<P4Titan>
which is internally defined as a constant
<P4Titan>
better yet, with Bytes.empty
<P4Titan>
isn't that dangerous since this value is globally shared, and if I found a way to modify its contents, it would scew with the entire program
<Drup>
P4Titan: for the two cases you cited, you can't modify those
<Drup>
(but this is why for values that can be modified , the function to generate empty things is of type unit -> t. hashtables are an example)
<P4Titan>
why can't I modify those, in particular, can't bytes be modified in place
freusque has joined #ocaml
<P4Titan>
when passed in as an arg?
<Drup>
you can modify the content, but not the lenght
<P4Titan>
ic ic
<P4Titan>
and that is strict
<Drup>
empty as 0 length, hence no content, so you can't modify it
<P4Titan>
very well
<P4Titan>
thanks a bunch!
<Drup>
(not that you still have the issue for constant strings)
slash^ has quit [Remote host closed the connection]
larhat has joined #ocaml
jao has joined #ocaml
AlfredENeuman has quit [Ping timeout: 240 seconds]
kakadu has joined #ocaml
foo30303 has joined #ocaml
rgrinberg has quit [Ping timeout: 240 seconds]
AlfredENeuman has joined #ocaml
MercurialAlchemi has joined #ocaml
foo30303 has quit [Ping timeout: 255 seconds]
jao has quit [Remote host closed the connection]
ryanartecona has joined #ocaml
foo30303 has joined #ocaml
okeuday_bak has joined #ocaml
foo30303 has quit [Ping timeout: 240 seconds]
<okeuday_bak>
When I attempt to do "ocamlopt -c file.ml" with source code that uses Error.t, it says "Error: Unbound module Error" and I don't see Error.t use in /usr/lib/ocaml , is there a .cmxa or .cma file to use to get it, or is my version 4.02.3 of ocaml too old?
<companion_cube>
are you reading Real World Ocaml?
<okeuday_bak>
Yes, though I am moving around in the book alot, using the tutorial too
<companion_cube>
so, they explain you need to use "core"
<companion_cube>
Error.t is defined in core, not in the standard library
<okeuday_bak>
companion_cube: ok, yeah, my mistake, is there something else I can use to avoid using the janest core? I want to make sure my ocaml is generic, Result.t is normal ocaml it seems, but I am wondering if I need to just have the error type as a string, or if there is a better alternative
jao has joined #ocaml
<companion_cube>
it's quite usual to use ('a, string) result, in my experience, yes
<okeuday_bak>
companion_cube: k, cool, thanks
<companion_cube>
if you're looking for alternatives to core, there are batteries and containers ;-)
dhil has joined #ocaml
<okeuday_bak>
companion_cube: nah, I am trying to avoid all dependencies, and just focus on ocaml itself