adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.08 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.08/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
jao has quit [Remote host closed the connection]
jao has joined #ocaml
kvda has joined #ocaml
kleisli has joined #ocaml
nullifidian_ has joined #ocaml
nullifidian has quit [Ping timeout: 240 seconds]
nahra`` has joined #ocaml
nahra` has quit [Ping timeout: 265 seconds]
vicfred has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
bbbold has joined #ocaml
analogue has joined #ocaml
bbbold has quit [Ping timeout: 240 seconds]
tormen_ has joined #ocaml
analogue has quit [Quit: Leaving]
tormen has quit [Ping timeout: 265 seconds]
mfp has quit [Ping timeout: 240 seconds]
vicfred has quit [Quit: Leaving]
nullifidian__ has joined #ocaml
gravicappa has joined #ocaml
nullifidian_ has quit [Ping timeout: 265 seconds]
narimiran has joined #ocaml
mbuf has joined #ocaml
kleisli has quit [Ping timeout: 276 seconds]
Serpent7776 has joined #ocaml
Haudegen has joined #ocaml
Niamkik has quit [Ping timeout: 265 seconds]
jaar has joined #ocaml
Niamkik has joined #ocaml
bbbold has joined #ocaml
barockobamo has joined #ocaml
bbbold has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bbbold has joined #ocaml
Serpent7776 has quit [Ping timeout: 245 seconds]
Serpent7776 has joined #ocaml
bbbold has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gareppa has joined #ocaml
bbbold has joined #ocaml
mfp has joined #ocaml
gareppa has quit [Quit: Leaving]
malc_ has joined #ocaml
AtumT has joined #ocaml
jaar has quit [Ping timeout: 276 seconds]
malc_ has quit [Ping timeout: 265 seconds]
malc_ has joined #ocaml
kakadu has joined #ocaml
slice has quit [Ping timeout: 265 seconds]
dmiles has quit [Ping timeout: 245 seconds]
bbbold has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dmiles has joined #ocaml
zolk3ri has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
bbbold has joined #ocaml
<Leonidas> pino|work: I just ran across this: "ocaml_utils_stubs.c:37:14: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]" so I actually think that the `const` thing is a warning by default, not an error.
<Leonidas> (the code is `value* v = caml_named_value(n);`)
<Leonidas> any opam maintainers here? I am very confused what https://opam.ocaml.org/packages/ocaml-zmq/ is
gareppa has joined #ocaml
<pino|work> Leonidas: true, although this is fatal in c++ and when using Werror
<pino|work> (and in general this kind of warning hides actual bugs, or very old code written ignoring constness)
<Leonidas> I'm not disagreeing :)
<Leonidas> I was actually expecting more code to break in 4.09 because of this
<pino|work> which was released few days ago, i see
slice has joined #ocaml
<pino|work> somebody should update the topic of the channel :)
<Leonidas> adrien_: ping ---^
<adrien_> right!
adrien_ is now known as adrien
adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org
adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
ggole has joined #ocaml
<pino|work> adrien: thanks!
barockobamo has quit [Remote host closed the connection]
<adrien> you're welcome
barockobamo has joined #ocaml
jaar has joined #ocaml
bbbold has quit [Ping timeout: 240 seconds]
AtumT has quit [Quit: AtumT]
<porchetta> Where can I get more information about the lambda format used by the compiler on the -dlambda switch?
<Drup> porchetta: in the compiler sources
pino|work has quit [Quit: brb]
pino|work has joined #ocaml
Guest93686 has joined #ocaml
nullifidian__ is now known as nullifidian
malina has joined #ocaml
breitenj has joined #ocaml
pyon has joined #ocaml
Guest93686 has quit [Ping timeout: 245 seconds]
pyon has quit [Quit: ERC (IRC client for Emacs 26.3)]
liberiga has joined #ocaml
malina has quit [Remote host closed the connection]
malina has joined #ocaml
<porchetta> from the docs I don't understand something
<porchetta> what happens when I apply "if" on the field of a variable
<porchetta> when doesit evaluate to true?
<zozozo> porchetta: in lambda you mean ?
<porchetta> yep
<zozozo> iirc: 0 is false, anything else is true (usually it will be 1)
<porchetta> mmm ok thanks
zolk3ri has quit [Remote host closed the connection]
kleisli has joined #ocaml
klntsky has quit [Remote host closed the connection]
klntsky has joined #ocaml
nahra`` has quit [Remote host closed the connection]
malina has quit [Remote host closed the connection]
malina has joined #ocaml
nahra has joined #ocaml
mk__ has joined #ocaml
gareppa has quit [Quit: Leaving]
gareppa has joined #ocaml
mk__ has quit [Remote host closed the connection]
srax has quit [Ping timeout: 245 seconds]
malina has quit [Remote host closed the connection]
malina has joined #ocaml
Serpent7776 has quit [Quit: Leaving]
<Nikkel> How do I make Eliom print to the Ocsigenserver output stream?
tane has joined #ocaml
AtumT has joined #ocaml
pino|work has quit [Quit: brb]
pino|work has joined #ocaml
liberiga has quit [Ping timeout: 260 seconds]
smazga has joined #ocaml
srax has joined #ocaml
gareppa has quit [Quit: Leaving]
<rntz2> is this a reasonable place to ask about dune? I can't seem to get "dune utop" to actually load my library.
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
gareppa has joined #ocaml
vicfred has joined #ocaml
mbuf has quit [Quit: Leaving]
kleisli has quit [Ping timeout: 250 seconds]
gareppa has quit [Quit: Leaving]
<octachron> rntz2, your library is potentially wrapped, aka `file.ml` in library `lib` is mapped to `Lib.File`
malina has quit [Remote host closed the connection]
malina has joined #ocaml
gareppa has joined #ocaml
<Leonidas> rntz2: yes, it pretty much is :)
Haudegen has quit [Quit: Bin weg.]
silver has joined #ocaml
gareppa has quit [Quit: Leaving]
ziyourenxiang has quit [Ping timeout: 276 seconds]
<Kitambi> Nikkel: look at "Ocsigen_messages"
yomimono has joined #ocaml
barockobamo has quit [Remote host closed the connection]
TheLemonMan has joined #ocaml
narimiran has quit [Ping timeout: 265 seconds]
jao has joined #ocaml
gareppa has joined #ocaml
Haudegen has joined #ocaml
malina has quit [Remote host closed the connection]
Serpent7776 has joined #ocaml
<Nikkel> Kitambi: thanks
<Nikkel> Wow that's exactly what I've been looking for
jacobian has joined #ocaml
gareppa has quit [Quit: Leaving]
analogue has joined #ocaml
jaar has quit [Ping timeout: 245 seconds]
jnavila has joined #ocaml
narimiran has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
gareppa has joined #ocaml
kakadu_ has joined #ocaml
ggole has quit [Quit: Leaving]
gareppa has quit [Quit: Leaving]
kleisli has joined #ocaml
malina has joined #ocaml
bitwinery has joined #ocaml
gareppa has joined #ocaml
bitwinery has quit [Remote host closed the connection]
bitwinery has joined #ocaml
gareppa has quit [Client Quit]
kakadu__ has joined #ocaml
kakadu has quit [Ping timeout: 240 seconds]
analogue has quit [Quit: Leaving]
kakadu has joined #ocaml
kakadu__ has quit [Ping timeout: 268 seconds]
<rntz2> octachron: aha, thanks, that was it!
gravicappa has quit [Ping timeout: 245 seconds]
jnavila has quit [Ping timeout: 276 seconds]
apostolis has joined #ocaml
jao has quit [Ping timeout: 245 seconds]
gareppa has joined #ocaml
AtumT has quit [Read error: Connection reset by peer]
AtumT has joined #ocaml
jnavila has joined #ocaml
jao has joined #ocaml
jao is now known as Guest59747
jnavila has quit [Ping timeout: 246 seconds]
Madars has quit [Ping timeout: 245 seconds]
tane has quit [Quit: Leaving]
jaar has joined #ocaml
Guest59747 has quit [Remote host closed the connection]
jao- has joined #ocaml
<apostolis> Hello, is there a way to access the internal structure of a datatype from OCaml?
yomimono has quit [Quit: Lost terminal]
<apostolis> Something like this, but without getting outside of OCaml.
<apostolis> I want to construct ill-typed objects, that is the reason.
<apostolis> In other words I want to evade OCaml's type system.
<zozozo> apostolis: I have made this to inspect the representation of OCaml values : https://github.com/Gbury/ocaml-memgraph
gareppa has quit [Quit: Leaving]
<zozozo> However it doesn't help you craft values
<apostolis> zozozo : too bad :(
<zozozo> apostolis: why do you need to circumvent the type duquel
vicfred has quit [Ping timeout: 276 seconds]
<zozozo> *system
<zozozo> ?
<apostolis> I am comiling Agda to ocaml-flambda , and agda is more general than OCaml's type system.
<zozozo> Ok, but trying to circumvent the type system might interact badly with some optimizations done by flambda...
<zozozo> Though you could take some inspiration by what Coq does
<apostolis> I am using malfunction.
<apostolis> Maybe, malfunction has the answer all along.
<def`> apostolis: there is no type system in malfunction, so you have nothing to circumvent. So there is not much to introspect, you have to encode adga data in malfunction value
kleisli has quit [Ping timeout: 245 seconds]
<apostolis> def` : Yea, I need to create a function that takes an untyped algebraic datatype and turn into it into something the database will accept as a correct value.
Madars has joined #ocaml
<apostolis> def` : So this function needs to be written in malfunction.
<def`> which database ?
<apostolis> either lmdb or irmin , both accept strings, but if you know a better one, please tell.
<def`> At this point, OCaml marshalling is good enough :P.
<apostolis> Could you explain? I am quite new with OCaml.
<def`> OCaml has a generic infrastructure for saving and loading (untyped) values
<apostolis> Cool.
<def`> I have to go. Good luck :)
<apostolis> def` : thanks , have fun :)
vicfred has joined #ocaml
zolk3ri has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
vicfred_ has joined #ocaml
vicfred has quit [Ping timeout: 268 seconds]
narimiran has quit [Ping timeout: 245 seconds]
vicfred__ has joined #ocaml
vicfred_ has quit [Ping timeout: 240 seconds]
vicfred_ has joined #ocaml
vicfred__ has quit [Ping timeout: 240 seconds]
vicfred__ has joined #ocaml
vicfred_ has quit [Ping timeout: 276 seconds]
vicfred_ has joined #ocaml
vicfred__ has quit [Ping timeout: 245 seconds]
vicfred has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
smazga has quit [Quit: leaving]
vicfred_ has quit [Ping timeout: 265 seconds]
jnavila has joined #ocaml
vicfred_ has joined #ocaml
jnavila has quit [Remote host closed the connection]
vicfred has quit [Ping timeout: 276 seconds]
Serpent7776 has quit [Quit: leaving]
vicfred__ has joined #ocaml
vicfred_ has quit [Ping timeout: 240 seconds]
vicfred_ has joined #ocaml
vicfred__ has quit [Ping timeout: 268 seconds]
b0bby__ has joined #ocaml
<b0bby__> hello
<b0bby__> I'm getting a type error and can't figure out why
<b0bby__> what is wrong with this code?
<lyxia> what does the type error say
malc_ has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<b0bby__> lyxia: This expression has type 'a -> 'a list -> 'a list
<b0bby__> but an expression was expected of type 'a -> 'a list -> 'a
<lyxia> acc :: h did you mean acc @ [h]
<b0bby__> let me try it
<lyxia> acc is a list, h is a single element
<lyxia> the arguments of (::) are an element and a list, in that order, not a list and an element
<b0bby__> lyxia: ok thank you
<b0bby__> so I need acc @ [h] to append?
<lyxia> yes, but if you do it many times it is a pretty slow operation, it's faster to build the list in reverse order (h :: acc) and reverse it at the ned.
<lyxia> reverse it at the end
<b0bby__> ok thanks
b0bby__ has quit [Quit: Leaving]
vicfred__ has joined #ocaml
vicfred_ has quit [Ping timeout: 240 seconds]
vicfred has joined #ocaml
vicfred__ has quit [Ping timeout: 240 seconds]
kakadu_ has quit [Remote host closed the connection]
malc_ has joined #ocaml
malc_ has quit [Client Quit]
vicfred has quit [Ping timeout: 265 seconds]
apostolis has quit [Quit: WeeChat 2.3]
RalfJ has quit [Ping timeout: 276 seconds]
vicfred has joined #ocaml
jao- has quit [Remote host closed the connection]
RalfJ has joined #ocaml
jao has joined #ocaml
RalfJ has quit [Ping timeout: 276 seconds]
RalfJ has joined #ocaml
vicfred_ has joined #ocaml
vicfred has quit [Ping timeout: 240 seconds]
vicfred_ has quit [Ping timeout: 240 seconds]
vicfred has joined #ocaml
vicfred_ has joined #ocaml
vicfred has quit [Ping timeout: 245 seconds]
vicfred__ has joined #ocaml
vicfred_ has quit [Ping timeout: 276 seconds]
vicfred__ has quit [Ping timeout: 276 seconds]
vicfred has joined #ocaml
jaar has quit [Ping timeout: 276 seconds]
silver has quit [Read error: Connection reset by peer]
vicfred_ has joined #ocaml
silver has joined #ocaml
vicfred has quit [Ping timeout: 240 seconds]
vicfred__ has joined #ocaml
vicfred_ has quit [Ping timeout: 240 seconds]
ziyourenxiang has joined #ocaml