Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<d_bot> <gar> I need some help with codept. Currently it tells me what the deps are, but it only lists module names, without context. I need it to tell me, when A depends on B which is in dir foo/bar, that the dep is not just B but (Foo Bar B) (using sexp syntax). I'm trying to do this with groups, but that only seems to work locally - if A and B are both in Foo, and A depends on B, it will tell me the dep is (Foo B). But it won't do that for oth
rgrinberg has joined #ocaml
<d_bot> <gar> ```
<d_bot> <gar> asmcomp[asmcomp/CSEgen.ml,asmcomp/CSEgen.mli, ... all srcs in asmcomp ...]
<d_bot> <gar> ...
<d_bot> <gar> lambda[lambda/debuginfo.ml,lambda/debuginfo.mli, ... all srcs in lambda ...]
<d_bot> <gar> ...
<d_bot> <gar> ```
<d_bot> <gar> Output looks like this:
<d_bot> <gar> ```
<d_bot> <gar> ((file asmcomp/afl_instrument.mli) (deps ((Asmcomp Cmm) (Debuginfo))))
<d_bot> <gar> ```
<d_bot> <gar> What I would expect here is `(Lambda Debuginfo)` instead of just `(Debuginfo)`.
<d_bot> <gar> Also, it looks like all modules are listed as `unknown`.
<d_bot> <gar> Am I misusing the tool? Anybody know how to do this?
<d_bot> <gar> btw this is my cmd line: `$ codept -nested -sexp -k -args .obazl.d/tmp/codept.args`
Tuplanolla has joined #ocaml
shawnw has joined #ocaml
zebrag has joined #ocaml
zebrag has quit [Remote host closed the connection]
zebrag has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
Tuplanolla has quit [Quit: Leaving.]
zebrag has joined #ocaml
Skyfire has quit [Ping timeout: 268 seconds]
rwmjones has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rwmjones has joined #ocaml
klu has quit [Quit: .]
klu has joined #ocaml
klu has quit [Changing host]
klu has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
waleee has quit [Quit: WeeChat 3.3]
mbuf has joined #ocaml
gravicappa has joined #ocaml
xd1le has joined #ocaml
<remexre> is there a way to make a functor polymorphic over a module type?
mbuf has quit [Quit: Leaving]
Skyfire has joined #ocaml
abraham has joined #ocaml
<d_bot> <NULL> What would it mean?
mbuf has joined #ocaml
Haudegen has joined #ocaml
zebrag has quit [Remote host closed the connection]
glassofethanol has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shawnw has quit [Ping timeout: 256 seconds]
<sim642> I guess they mean something like: functor (X: 'A) -> sig include 'A val extra: int end
glassofethanol has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
glassofethanol has joined #ocaml
glassofe1hanol has joined #ocaml
<sim642> Although for it to really be useful, you probably want X to not be fully polymorphic but have some functions at least
glassofe1hanol has quit [Client Quit]
glassofethanol has quit [Client Quit]
<sim642> Using which you could define extra functions in the extended module
glassofethanol has joined #ocaml
<sim642> Occasionally I've also wanted something like this because in a hierarchy of modules it's annoying to have to define the functor for each argument type that still contains the necessary functions and I just want to include the rest as is
qwr has quit [Ping timeout: 250 seconds]
Serpent7776 has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
jonasbits has quit [Ping timeout: 265 seconds]
jonasbits has joined #ocaml
<octachron> remexre, there are abstract module types, that can be somewhat used in this direction, but it depends a lot of what you mean by "polymorphic over a module type".
jlrnick has joined #ocaml
olle has joined #ocaml
jlrnick has quit [Ping timeout: 260 seconds]
namkeleser has quit [Ping timeout: 256 seconds]
spip has quit [Read error: Connection reset by peer]
spip has joined #ocaml
rks`_ is now known as rks`
bartholin has joined #ocaml
<d_bot> <Kakadu> Folks, did you see printf with positional arguments in OCaml? Something like `printf "Hello %2 from %1" "Kakadu" "world"`
<d_bot> <Kakadu> It could be useful in internationalization where words order matter
gravicappa has joined #ocaml
<d_bot> <Bluddy> that would be nice but you'd have to combine it with type info
jlrnick has joined #ocaml
Anarchos has joined #ocaml
jlrnick has quit [Remote host closed the connection]
<d_bot> <octachron> My internationalization library (https://github.com/Octachron/babilim) for my i18n patch on the compiler supports positional arguments for this reason.
Haudegen has quit [Quit: Bin weg.]
<d_bot> <Blubub> Hello there, i would like to ask how to test my function that i made in a file with vscode? i've made a file called test.ml i wanted to run it and test the function with input arguments. is there any solution?
<d_bot> <Blubub> i keep getting the file 'test.ml' has not the right magic number: expected Caml1999X028, got length l
<d_bot> <octachron> @gar : first point, you need to open the namespaces with `-open Asmcomp` since the compiler subsystems are not aware of any namespacing. It will allow codept to deduce that the Longindent module referred in `typing` is `(Parsing Longident)`.
<d_bot> <octachron> (And normally, codept should know that namespaces are not dependency themselves).
<d_bot> <octachron> Concerning the file location, the dependencies only refers to (namespaced) modules but at the end of the dependencies there is an atlas of modules->files that should looks like `((module (Typing Typedecl_unboxed)) (ml typing/typedecl_unboxed.ml) (mli typing/typedecl_unboxed.mli))`
<d_bot> <octachron> @Blubub , calling `ocaml test.ml` should work directly?
<d_bot> <Blubub> no i've tried
<d_bot> <Blubub> it said Cannot find file ./test.ml.
<d_bot> <andreypopp> hm... I'm getting `Fatal error: out of memory` when hitting `assert false` in code.
<d_bot> <andreypopp> originates from `caml_call_gc`
xd1le has quit [Quit: xd1le]
<d_bot> <Kakadu> Thanks! Is this compiler being used to teach frankophones some OCaml?
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
<d_bot> <octachron> No. But I did make a translation of error messages to French to have an idea of the amount of effort needed. At some point, I hope to try to release a version of this compiler with the i18n support.
Haudegen has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 250 seconds]
grobe0ba has quit [Quit: ZNC 1.8.2 - https://znc.in]
grobe0ba has joined #ocaml
mro has joined #ocaml
rgrinberg has joined #ocaml
mro has quit [Ping timeout: 245 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
waleee has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Ping timeout: 268 seconds]
mro has joined #ocaml
gdd has quit [Ping timeout: 268 seconds]
gdd has joined #ocaml
mbuf has quit [Quit: Leaving]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bartholin has quit [Quit: Leaving]
Haudegen has quit [Quit: Bin weg.]
mro has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
mro has joined #ocaml
mro has quit [Ping timeout: 260 seconds]
chrisz has joined #ocaml
kakadu has quit [Remote host closed the connection]
Tuplanolla has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<d_bot> <baobab> if i get an error message with "struct might be unmatched", what might this mean if i have an "end" in my code?
<d_bot> <octachron> It means that the parsing stopped due to an element that cannot be part of a structure before reaching the`end`.
<d_bot> <baobab> what sorts of elements cant be part of a structure
<d_bot> <octachron> It would be much easier for you to link the code (or copy-paste it in the #beginners channel)
Anarchos has joined #ocaml
glassofethanol has quit [Ping timeout: 268 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
rgrinberg has joined #ocaml
Franciman is now known as {Franciman}
mro has joined #ocaml
gravicappa has quit [Ping timeout: 268 seconds]
waleee has quit [Ping timeout: 250 seconds]
waleee has joined #ocaml
oriba has joined #ocaml
waleee has quit [Ping timeout: 240 seconds]
waleee has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
bobo_ has joined #ocaml
spip has quit [Ping timeout: 268 seconds]
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #ocaml
zebrag has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
mro_ has joined #ocaml
mro has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olle has quit [Ping timeout: 250 seconds]
Tuplanolla has quit [Quit: Leaving.]
Skyfire has quit [Quit: WeeChat 3.3]
Skyfire has joined #ocaml
Serpent7776 has quit [Quit: leaving]
mro_ has quit [Remote host closed the connection]
Skyfire has quit [Quit: brb]
mro has joined #ocaml
mro has quit [Quit: Leaving...]
rgrinberg has joined #ocaml