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
liberiga has joined #ocaml
dhil has quit [Ping timeout: 246 seconds]
sonologico has quit [Remote host closed the connection]
jao has quit [Ping timeout: 272 seconds]
AtumT has quit [Quit: AtumT]
q9929t has quit [Quit: q9929t]
laudecay has joined #ocaml
laudecay is now known as Guest93626
Guest93626 has quit [Ping timeout: 258 seconds]
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 272 seconds]
sonologico has joined #ocaml
mfp has quit [Ping timeout: 272 seconds]
liberiga has quit [Ping timeout: 260 seconds]
lalitmee has joined #ocaml
gravicappa has joined #ocaml
narimiran_ has joined #ocaml
malina has quit [Ping timeout: 245 seconds]
sonologico has quit [Remote host closed the connection]
lalitmee has quit [Remote host closed the connection]
narimiran_ is now known as narimiran
bartholin has joined #ocaml
ggole has joined #ocaml
lalitmee has joined #ocaml
lalitmee has quit [Max SendQ exceeded]
lalitmee has joined #ocaml
lalitmee has quit [Max SendQ exceeded]
sgnb has quit [Remote host closed the connection]
iovec has quit [Quit: Connection closed for inactivity]
lalitmee has joined #ocaml
_13h has joined #ocaml
Guest93626 has joined #ocaml
Guest93626 has quit [Ping timeout: 245 seconds]
<Armael> you can also just type (+);; without #show
bitwinery has joined #ocaml
Haudegen has joined #ocaml
lalitmee has quit [Ping timeout: 244 seconds]
rwmjones|hols is now known as rwmjones
<rwmjones> Leonidas: which git repo?
ygrek has joined #ocaml
bitwinery has quit [Quit: Leaving]
jao has joined #ocaml
jnavila has joined #ocaml
lalitmee has joined #ocaml
n0v4 has joined #ocaml
<xvilka> hi! How vim-merlin plugin finds the .merlin file? Seems it can't find the .merlin located in project/.merlin when I edit files in project/lib/mylib/some_file.ml - it doesn't load merlin from project/.merlin, thus returning a bunch of errors for every module import
<Leonidas> rwmjones: ocaml-augeas
<Leonidas> rwmjones: I get remote: error: object ec9d1b17efcd982969ff001b5625165e7b5383c9: badDate: invalid author/committer line - bad date
<Leonidas> Though when I take a look at that commit with git show it looks fine.
jnavila has quit [Ping timeout: 252 seconds]
<Nikkel> I'm trying to create a button, that I can click, and which is then updated with the value of remote service call, in Eliom: https://pastebin.com/dQiYR1Ve
ollehar has joined #ocaml
<Nikkel> But i'm getting a unimplemented javascript primitive caml_pure_js_expr error when trying to execute it
ollehar has quit [Read error: Connection reset by peer]
lalitmee has quit [Remote host closed the connection]
<Leonidas> rwmjones: `git fsck` complains about multiple commits
lalitmee has joined #ocaml
lalitmee has quit [Max SendQ exceeded]
lalitmee has joined #ocaml
<rwmjones> hmm
<rwmjones> Leonidas: that repo was originally imported using one of those cvs to git tools (I forget which exactly)
<Nikkel> caml_pure_js_expr error is gone, but it just doesn't react
<pino|work> rwmjones: i think it has the same issues i fixed in libvirt-ocaml when we migrated it to libvirt.org
<Leonidas> pino|work: how did you fix it?
<pino|work> Leonidas: editing the commits with git filter-branch
<Leonidas> pino|work: but what needed fixing?
<Leonidas> if I look at the commit I can't see anything obviously wrong
<pino|work> Leonidas: the dates have a weird format, ie stuff after the actual timestamp
<pino|work> git just reads the timestamp and ignores the rest, not when strictly checking the commits
<Leonidas> rwmjones: could you then maybe filter your original repo? That would make it more interoperable and the fallout from changing the commits should be minimal :)
<Leonidas> I can also do that but then it gets hard to send commits back to upstream
<Leonidas> sorry for bothing you folks so much about that old project, but I thought it would be nice to give it some TLC :)
<Kitambi> eh, don't apologize for that. I'm sure everyone here would like to see ocaml become much more popular, and a robust library set is a great way to achieve that :)
mfp has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
ygrek has quit [Ping timeout: 258 seconds]
slice has quit [Ping timeout: 245 seconds]
slice has joined #ocaml
zolk3ri has joined #ocaml
pino|work has quit [Quit: brb]
pino|work has joined #ocaml
_13h has left #ocaml [#ocaml]
malina has joined #ocaml
spew has joined #ocaml
dstolfa has quit [Ping timeout: 248 seconds]
lalitmee has quit [Read error: Connection reset by peer]
<Nikkel> I'm trying to append an action to a button in eliom, but I'm getting the error web.js:44428 [eliom:client] Cannot apply n/a on request node client_2 before the document is initially loaded on load
<Nikkel> The code I'm trying to use is this: https://pastebin.com/EJjYKkth
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
jbrown has quit [Ping timeout: 250 seconds]
malina has quit [Ping timeout: 272 seconds]
jbrown has joined #ocaml
Guest93626 has joined #ocaml
jbrown has quit [Ping timeout: 252 seconds]
<Nikkel> Anyone who has an idea what could be wrong?
jbrown has joined #ocaml
pierpal has quit [Remote host closed the connection]
jnavila has joined #ocaml
Guest93626 has quit [Ping timeout: 245 seconds]
Guest93626 has joined #ocaml
Guest93626 has left #ocaml [#ocaml]
laudecay has joined #ocaml
<laudecay> is there a good way to do the equivalent of a mod.rs in ocaml? like i have about 18 files in my folder that contains my library, and i'd like to expose only certain of the functions from the MLIs in the top level of the library rather than having to open every file's submodule
tane has joined #ocaml
<laudecay> so if in module/ i have a.mli, b.mli, c.mli, i'd like to be able to say module.a_function instead of module.a.a_function after having listed module as one of my libraries in my dune build file
<lyxia> laudecay: have you heard about the "include" keyword
<laudecay> yeah
<laudecay> would i make like a module.mli
<laudecay> i don't want to have to include all these modules every single time i use the library
<laudecay> there's like, a lot of files
<lyxia> I would imagine one module.mli with your interface, and one module.ml that includes all other modules to implement that interface.
<laudecay> and there's stuff that needs to be accessible from between the files that i don't want accessible to functions calling the library
<laudecay> but then would i have to say "module.module" when i use stuff from the module?
<lyxia> no you wouldn't
<laudecay> oh really
<laudecay> that's cool
<laudecay> and the submodules wouldn't be accessible?
<lyxia> it's as if you wrote let f = A.f for every function f in module A, and for every module A.
<lyxia> only what's in the mli is accessible
<laudecay> no if i had a module/module.mli, i'd still have to say module.module in the things that use it?
<lyxia> ah I see what you mean.
<lyxia> can't you keep one module unwrapped?
<laudecay> wdym unwrapped
<laudecay> wait i'm seeing in the dune docs It is however allowed to write an explicit Foo module, in which case this will be the interface of the library and you are free to expose only the modules you want.
<laudecay> i think that's what i want
<octachron> No, if you have a library.mli file, dune use it directly as the library entry point.
<laudecay> sorry i have to be a little obsessive about what's exposed, this is cryptography so i have to be careful about not letting users go futz with their private keys' internal bytes representations
<laudecay> octachron: ok perfect that's exactly what i wanted! thanks
<laudecay> how would i go about including only certain parts of a module?
<laudecay> i'm reading the module-expr tutorial but i don't see how to hide things other than just making a new module-expr with the whole struct syntax that explicitly includes what i want
Anarchos has joined #ocaml
<laudecay> hey octachron can i ask you a q about polymorphic variant types?
<laudecay> i have some key types exposed in my crypto mli, i have secret_key, private_key, and public_key. they're all just bytes under the hood, but only public_key is exposed as bytes. i'd like to write a function that would take any of these three to zero the buffer, but i'm not sure what the syntax would be for the key variant type.
<laudecay> i tried type key = [ `secret_key | `public_key | `shared_key ] and val set_zero : key -> unit, but that was wrong.
<laudecay> like how do i make it clear that a secret_key is a key without making it interchangable with public_keys
<Kitambi> give it its own type?
lalitmee has joined #ocaml
lalitmee has quit [Ping timeout: 246 seconds]
lalitmee has joined #ocaml
pino|work has quit [Quit: brb]
zolk3ri has quit [Quit: leaving]
pino|work has joined #ocaml
zolk3ri has joined #ocaml
lalitmee has quit [Ping timeout: 248 seconds]
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
jnavila has quit [Ping timeout: 245 seconds]
jnavila has joined #ocaml
lalitmee has joined #ocaml
laudecay has quit [Ping timeout: 258 seconds]
lalitmee has quit [Max SendQ exceeded]
lalitmee has joined #ocaml
laudecay has joined #ocaml
laudecay is now known as Guest77025
sonologico has joined #ocaml
lalitmee has quit [Remote host closed the connection]
n0v4 has quit [Quit: Leaving]
AtumT has joined #ocaml
Serpent7776 has joined #ocaml
iovec has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
ravenous_ has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
malina has joined #ocaml
ggole has quit [Quit: Leaving]
al-damiri has joined #ocaml
kakadu has joined #ocaml
dstolfa has joined #ocaml
jnavila has joined #ocaml
dstolfa has quit [Quit: ZNC 1.7.3 - https://znc.in]
Guest77025 has quit [Changing host]
Guest77025 has joined #ocaml
Guest77025 is now known as laudecay
gareppa has joined #ocaml
sonologico has quit [Remote host closed the connection]
sonologico has joined #ocaml
dstolfa has joined #ocaml
sonologico has quit [Remote host closed the connection]
sonologico has joined #ocaml
dstolfa has quit [Ping timeout: 272 seconds]
dstolfa has joined #ocaml
sonologico has quit [Remote host closed the connection]
sonologico has joined #ocaml
sonologico_ has joined #ocaml
sonologico has quit [Ping timeout: 252 seconds]
sonologico_ has quit [Remote host closed the connection]
sonologico_ has joined #ocaml
sonologico_ has quit [Remote host closed the connection]
sonologico_ has joined #ocaml
sonologico_ has quit [Remote host closed the connection]
zolk3ri has quit [Remote host closed the connection]
iovec has quit [Quit: Connection closed for inactivity]
Haudegen has joined #ocaml
jnavila has quit [Remote host closed the connection]
gravicappa has quit [Ping timeout: 245 seconds]
gareppa has quit [Quit: Leaving]
Serpent7776 has quit [Quit: leaving]
narimiran has quit [Ping timeout: 258 seconds]
Hrundi_V_Bakshi has joined #ocaml
tane has quit [Quit: Leaving]
Jesin has quit [Quit: Leaving]
laudecay has quit [Ping timeout: 244 seconds]
Jesin has joined #ocaml
kakadu has quit [Remote host closed the connection]
Vikfret has joined #ocaml
Hrundi_V_Bakshi has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AtumT has quit [Quit: AtumT]
Haudegen has quit [Ping timeout: 245 seconds]
dl3br[m]1 has quit [Ping timeout: 252 seconds]
aecepoglu[m] has quit [Ping timeout: 252 seconds]
dl3br[m]1 has joined #ocaml
aecepoglu[m] has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
al-damiri has quit [Quit: Connection closed for inactivity]