companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
rgrinberg has joined #ocaml
<rgrinberg> dons what are you planning to use the lsif for?
<dons> i'm looking for a way to index ocaml source code for navigation and search (via glean). to do so needs an indexer, either a "native" that emits code information, or an lsif-based one
<dons> lsif is a bit of a gronky format, but at least its semi standard
<dons> (for Meta-internal code search/code navigation stuff, there's a few ocaml projects that i'm trying to support a bit better)
<dons> but need an indexer
<dons> the cheap way would be something that already exists, works with dune, and emits an lsif dump.
<dons> slightly more expensive, would be something that exists, and emits a format that's parseable (e.g. thrift, protobufs, json), and has locations/files/references/symbol names/hovers
<rgrinberg> the most reliable thing would be to compile the projects with dune and construct the index from the produced cmt's
<dons> ok. the .cmt binary files
<dons> that looks plausible. would need to scoop them up, parse them. write the results. is the format documented somewhere?
<dons> yes, the cmt looks right. similar approach in ghc, where the .hie files are scooped up and become the index.
<rgrinberg> cmt_format.mli in the ocaml repo. parsing them would be a pain, but you can easily unmarshal them in ocaml
<dons> yeah , would write a little ocaml indexer to do the conversion
<dons> thanks. that's a good lead
vicfred has joined #ocaml
gereedy has joined #ocaml
Haudegen has quit [Ping timeout: 258 seconds]
hyphen has quit [Ping timeout: 255 seconds]
hyphen has joined #ocaml
gereedy has quit [Quit: gereedy]
waleee has quit [Ping timeout: 258 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
amosbird- has left #ocaml [WeeChat 2.8-dev]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gereedy has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
rgrinberg has joined #ocaml
adanwan has quit [Ping timeout: 240 seconds]
adanwan has joined #ocaml
gereedy has quit [Quit: gereedy]
Sankalp has quit [Ping timeout: 276 seconds]
Sankalp has joined #ocaml
Sankalp has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiferrei2000 has joined #ocaml
wilfred has joined #ocaml
tiferrei has quit [Quit: ZNC 1.8.2+deb2build1 - https://znc.in]
bobo has joined #ocaml
spip has quit [Ping timeout: 244 seconds]
Sankalp has quit [Ping timeout: 260 seconds]
zebrag has quit [Quit: Konversation terminated!]
Sankalp has joined #ocaml
Sankalp has joined #ocaml
Serpent7776 has joined #ocaml
Sankalp has quit [Ping timeout: 258 seconds]
bobo has quit [Quit: Konversation terminated!]
tiferrei2000 has quit [Remote host closed the connection]
tiferrei has joined #ocaml
Tuplanolla has joined #ocaml
mro has joined #ocaml
Haudegen has joined #ocaml
gravicappa has joined #ocaml
SquidDev has quit [Quit: Bye!]
SquidDev has joined #ocaml
mbuf has joined #ocaml
mro has quit [Quit: Leaving...]
bartholin has joined #ocaml
wingsorc has quit [Quit: Leaving]
Anarchos has joined #ocaml
<Anarchos> hello
motherfsck has quit [Ping timeout: 258 seconds]
wilfred has quit [Quit: Connection closed for inactivity]
bartholin has quit [Ping timeout: 258 seconds]
bartholin has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
<d_bot> <Butanium (@me on reply)> Hi
Sankalp has joined #ocaml
Sankalp has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
motherfsck has joined #ocaml
<d_bot> <blobfish> is there any resources for ocaml threads ?
olle has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
dons has quit [Ping timeout: 240 seconds]
xgqt has quit [Ping timeout: 258 seconds]
xgqt has joined #ocaml
tiferrei has quit [Remote host closed the connection]
tiferrei has joined #ocaml
mbuf has quit [Quit: Leaving]
hyphen has quit [Ping timeout: 246 seconds]
Serpent7776 has joined #ocaml
hyphen has joined #ocaml
waleee has joined #ocaml
greenbagels has quit [Ping timeout: 250 seconds]
h11 has quit [Quit: You have been kicked for being idle]
hyphen has quit [Ping timeout: 276 seconds]
greenbagels has joined #ocaml
hyphen has joined #ocaml
cedric has joined #ocaml
hyphen has quit [Ping timeout: 246 seconds]
hyphen has joined #ocaml
mro has joined #ocaml
tiferrei has quit [Ping timeout: 240 seconds]
tiferrei has joined #ocaml
hyphen has quit [Ping timeout: 260 seconds]
mro has quit [Remote host closed the connection]
hyphen has joined #ocaml
<d_bot> <inkbottle> Is there a simple GADTs way to fix `let [ even; odd ] = ... fix_poly ...` from https://okmij.org/ftp/Computation/fixed-point-combinators.html
<d_bot> <octachron> There is no GADTs needed in this specific case?
<d_bot> <NULL> You would need to know the length if you want to do it cleanly
<d_bot> <inkbottle> Yes, saying that the argument is a list of a given length... Encoding the length through GADTs
<d_bot> <inkbottle> I'm wondering how they do it in https://dl.acm.org/doi/10.1145/3294032.3294078, since I don't speak MetaOCaml at all.
olle has left #ocaml [#ocaml]
<d_bot> <octachron> It is not particularly useful to encode the list length. Using a heterogeneous list (as replacement for an n-ary tuple type) is a better fit.
<d_bot> <inkbottle> Hum, I could use some pointers here
<d_bot> <NULL> ```ocaml
<d_bot> <NULL> type nil = Nil
<d_bot> <NULL> type _ het_list = []: nil het_list | (::) : 'a * 'b het_list -> ('a * 'b) het_list
<d_bot> <NULL> ```
<d_bot> <NULL> Then have fun putting whatever in a single list
<d_bot> <NULL> Oh, I forgot this was #general since there are barely any bots in the current view. Sorry for if this spammed
klu has joined #ocaml
klu has quit [Changing host]
klu has joined #ocaml
<d_bot> <octachron> Note that you also need to define a companion index type to define the heterogeneous version of `nth`: `get: ('elt,'list) index -> 'list hlist -> 'elt`.
<d_bot> <inkbottle> Yes, I thought as much
<d_bot> <NULL> `type (_, _) index = | O: ('a, 'a * 'b) index | S: ('a, 'b) index -> ('a, 'c * 'b) index` would work
<d_bot> <NULL> Writing nth is left as an exercise to the reader
<d_bot> <inkbottle> I'll tell you when I've put it all together
mro has joined #ocaml
hyphen has quit [Ping timeout: 272 seconds]
hyphen has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bartholin has quit [Quit: Leaving]
hyphen has quit [Ping timeout: 246 seconds]
hyphen has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
aspe has joined #ocaml
hyphen has quit [Ping timeout: 255 seconds]
hyphen has joined #ocaml
spip has joined #ocaml
hyphen has quit [Ping timeout: 246 seconds]
tiferrei has quit [Ping timeout: 240 seconds]
gravicappa has quit [Ping timeout: 258 seconds]
tiferrei has joined #ocaml
hyphen has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
azimut_ has joined #ocaml
mro has quit [Quit: Leaving...]
tiferrei has quit [Ping timeout: 240 seconds]
tiferrei has joined #ocaml
Serpent7776 has quit [Quit: leaving]
cedric has quit [Quit: Konversation terminated!]
waleee has quit [Ping timeout: 255 seconds]
waleee has joined #ocaml
tiferrei has quit [Ping timeout: 240 seconds]
tiferrei has joined #ocaml
Haudegen has quit [Ping timeout: 246 seconds]
oriba has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]