adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
<Algebr> Why does Random.bits give back 30 random bits and not 31?
<Algebr> why does a record need to be a named type in this example: type k_bucket = {a: string} list
<Algebr>
al-damiri has quit [Quit: Connection closed for inactivity]
agarwal1975 has joined #ocaml
smondet has quit [Ping timeout: 248 seconds]
fantasticsid has joined #ocaml
nicootje is now known as nicoo
tennix has joined #ocaml
wtetzner has quit [Remote host closed the connection]
silver has quit [Read error: Connection reset by peer]
tennix has quit [Read error: Connection reset by peer]
tennix has joined #ocaml
noddy has quit [Ping timeout: 248 seconds]
nomicflux has quit [Quit: nomicflux]
tennix has quit [Ping timeout: 248 seconds]
jlongster has joined #ocaml
fantasticsid has quit [Quit: ERC (IRC client for Emacs 25.1.50.1)]
trepta has joined #ocaml
Algebr has quit [Ping timeout: 272 seconds]
Algebr has joined #ocaml
tennix has joined #ocaml
madroach has quit [Ping timeout: 264 seconds]
Algebr has quit [Ping timeout: 255 seconds]
madroach has joined #ocaml
smondet has joined #ocaml
Algebr has joined #ocaml
teknozulu_ has joined #ocaml
teknozulu has quit [Ping timeout: 256 seconds]
noddy has joined #ocaml
infinity0 has quit [Ping timeout: 248 seconds]
infinity0 has joined #ocaml
Algebr has quit [Ping timeout: 255 seconds]
nicoo has quit [*.net *.split]
engil has quit [*.net *.split]
leah2 has quit [*.net *.split]
def` has quit [*.net *.split]
qmm has quit [*.net *.split]
Exagone313 has quit [*.net *.split]
bbc has quit [*.net *.split]
cheater2 has quit [*.net *.split]
Armael has quit [*.net *.split]
Jaxan has quit [*.net *.split]
dlat has quit [*.net *.split]
rseymour has quit [*.net *.split]
lpaste has quit [*.net *.split]
regnat_ has quit [*.net *.split]
dx has quit [*.net *.split]
evhan has quit [*.net *.split]
dlat_ has joined #ocaml
cheater2 has joined #ocaml
qmm has joined #ocaml
dx has joined #ocaml
evhan has joined #ocaml
def` has joined #ocaml
rseymour has joined #ocaml
bbc has joined #ocaml
regnat_ has joined #ocaml
Armael has joined #ocaml
engil has joined #ocaml
engil has quit [Changing host]
engil has joined #ocaml
tennix has quit [Quit: WeeChat 1.6]
leah2 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
Jaxan has joined #ocaml
Exagone313 has joined #ocaml
lpaste has joined #ocaml
infinity0 has joined #ocaml
mfp has quit [Ping timeout: 248 seconds]
alienbot has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
maicki has joined #ocaml
maicki has quit [Client Quit]
copy` has quit [Quit: Connection closed for inactivity]
mengu has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alienbot has quit [Quit: No Ping reply in 180 seconds.]
alienbot has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
Algebr` has joined #ocaml
wu_ng has joined #ocaml
teknozulu_ has quit [Ping timeout: 258 seconds]
groovy2shoes has joined #ocaml
jao has quit [Ping timeout: 272 seconds]
Algebr` has quit [Ping timeout: 255 seconds]
<milodavis> When compiling an Eliom project using the makefile created by eliom-distillery, is there a way to have it compile extra files? Its currently ignoring the .eliom and .eliomi for a seperate module I've written.
maicki has joined #ocaml
<milodavis> I'm assuming this is a simple configuration option, but I'm not sure how to do this. I've checked the documentation and can't find anywhere where multiple file projects are discussed
<milodavis> The files should be being recognized by the SERVER_FILES and CLIENT_FILES wildcard patterns if that helps
<milodavis> I'm using Eliom 6.1 with OCaml 4.0.3
rgrinberg has joined #ocaml
noddy has quit [Ping timeout: 272 seconds]
maicki has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mengu has quit [Remote host closed the connection]
nomicflux has joined #ocaml
mengu has joined #ocaml
jlongster has joined #ocaml
jlongster has quit [Client Quit]
Algebr` has joined #ocaml
infinity0 has quit [Ping timeout: 248 seconds]
wu_ng has quit [Read error: Connection reset by peer]
Algebr` has quit [Ping timeout: 255 seconds]
infinity0 has joined #ocaml
nomicflux has quit [Quit: nomicflux]
sz0 has quit [Quit: Connection closed for inactivity]
demonimin has quit [Ping timeout: 252 seconds]
pierpa has quit [Ping timeout: 258 seconds]
Mercuria1Alchemi has joined #ocaml
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
NJBS has quit [Quit: Catastrophic failure.]
noddy has joined #ocaml
Algebr` has joined #ocaml
Sorella has quit [Quit: Connection closed for inactivity]
Algebr` has quit [Ping timeout: 255 seconds]
ocaml113 has joined #ocaml
<ocaml113> I am looking for a suggesting to implement a outer loop and inner loop. How is it done using a functional language ? Is it the same for loop structure ?
<ocaml113> Currently it looks like http://pastebin.com/vD5YReSm.
<ocaml113> I think it has bug. How can it be done functionally?
maicki has joined #ocaml
grbh has joined #ocaml
noddy has quit [Ping timeout: 245 seconds]
<ocaml113> Any suggestion ?
<ocaml113> This is how I used to use loops in Java.
demonimin has joined #ocaml
<mengu> think in terms of recursion, not for loops ocaml113
<ocaml113> There is recursion even now.
alienbot has quit [Ping timeout: 248 seconds]
Algebr` has joined #ocaml
<orbitz> ocaml113: what are you trying to accomplish?
<orbitz> ocaml113: I presume the bug is on line 12 where you pass 'times' instead of 'pred' as the last parameter to loop
<orbitz> or maybe not, times seems to represent multiple things here I geuss
<ocaml113> http://pastebin.com/s2NTdMXJ This doesn't have the bug. So I want to know if functional styles don't need the 'if' loops I am using.
Algebr` has quit [Ping timeout: 255 seconds]
<ocaml113> There is an outer and inner loop just like I use in Java.
<orbitz> ocaml113: Depending on your future plans for this I'd either leave it or separate out the inner loop to a function something like: val repeat : int -> ('a -> 'a) -> 'a -> 'a
Simn has joined #ocaml
fre has joined #ocaml
jnavila has joined #ocaml
sh0t has quit [Quit: Leaving]
slash^ has joined #ocaml
trepta has quit [Ping timeout: 246 seconds]
rgrinberg has quit [Ping timeout: 240 seconds]
zv has quit [Ping timeout: 272 seconds]
d0nn1e has quit [Ping timeout: 256 seconds]
zv has joined #ocaml
d0nn1e has joined #ocaml
maicki has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noddy has joined #ocaml
Algebr` has joined #ocaml
<Leonidas> ocaml113: I try to avoid loops if possible.
Algebr` has quit [Ping timeout: 255 seconds]
lujara has quit [Ping timeout: 246 seconds]
noddy has quit [Ping timeout: 272 seconds]
lujara has joined #ocaml
lujara has joined #ocaml
lujara has quit [Changing host]
maattdd__ has joined #ocaml
AltGr has joined #ocaml
_zim_ has quit [Ping timeout: 246 seconds]
_zim_ has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
maattdd__ has quit [Ping timeout: 255 seconds]
Algebr` has joined #ocaml
maattdd__ has joined #ocaml
Algebr` has quit [Remote host closed the connection]
Algebr` has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
kakadu has joined #ocaml
johnelse has quit [Read error: Connection reset by peer]
<orbitz> is it possible to implement a tree such that the type of a node expresses information about the path in the tree that it took to reach that node? I'm assuming something with GADTs.
johnelse has joined #ocaml
maattdd has quit [Read error: Connection reset by peer]
silver has joined #ocaml
lujara has quit [Ping timeout: 255 seconds]
<Algebr`> would be amazing to have an OCaml version: https://github.com/takenobu-hs/haskell-ghc-illustrated
lujara has joined #ocaml
lujara has joined #ocaml
lujara has quit [Changing host]
<orbitz> ** TODO Check hezo runs
<orbitz> - State "DONE" from "TODO" [2017-01-04 Wed 10:18]
<orbitz> - State "DONE" from "TODO" [2017-01-05 Thu 11:05]
<orbitz> :LOGBOOK:
<orbitz> SCHEDULED: <2017-01-06 Fri +1d>
<orbitz> :END:
<orbitz> :PROPERTIES:
<orbitz> :LAST_REPEAT: [2017-01-05 Thu 11:05]
<orbitz> shit sorry, miss fire
maicki has joined #ocaml
_andre has joined #ocaml
<reynir> hah
maattdd__ has quit [Ping timeout: 255 seconds]
octachron has joined #ocaml
<octachron> orbitz, it is possible to encode the path to the node in the type; I am however not sure if it is useful
<orbitz> octachron: What I'm looking to do is I want the leaf to contain a function that, for simplicity let's say, takes the same number of int parameters as the depth it is in the tree
ltadeu has joined #ocaml
maattdd__ has joined #ocaml
<Algebr`> say I have module A and A has a type g = G of bytes. Now I have module B and I Want everything that A had, just to change g to be type h = H of bytes and have all the Usages of G now become H in B. Is this possible with include manipulations?
<octachron> orbitz, this should be doable: something like "type 'result t = Leaf: 'a -> 'a t | Node: (int -> 'a) t * (int -> 'a) t -> 'a t"
<orbitz> octachron: yeah I'm slowly getting there! Thanks!
<chelfi> Algebr`: not sure whether you can or not, but you may be interested in https://caml.inria.fr/mantis/view.php?id=7102&nbn=3
<orbitz> octachron: what I'm then trying to do is figure out how to apply the function at the end :)
<Algebr`> chelfi: very interesting
maattdd__ has quit [Ping timeout: 255 seconds]
<Algebr`> something like Error as Bad of 'b would be nice but probably not worth the hassle
xyproto is now known as yprot
yprot has left #ocaml ["WeeChat 1.6"]
maattdd__ has joined #ocaml
<octachron> orbitz, generally if you want to create a function "a t -> 'b", it may be useful to go through a generalised function "a t -> (a -> 'b) -> 'b"
<octachron> the second function argument then can carry the information about how to compute the result 'b at the current level
<octachron> Algebr`, I fear not, including module can only restrict the module signature and not alter the module implementation
<Algebr`> oh well
maattdd__ has quit [Ping timeout: 255 seconds]
<orbitz> octachron: the issue I'm running into is I only wantto call one of the functions in the leaf, the path is going to be walked based on some other information. So I need to delay application of the function until it's hit the leaf and then apply the values to taht function. I think I might just need time for the concepts to sink in, maybe this is easier than my brain wants it to be.
<orbitz> octachron: to say more concretely what I'm trying to do: I want a trie of URLs where each node is something between slashes. That something can be a literal, which is a string that is matched or it can be a variable where the valeu in the URL is remembered somehow. If I successfully get to a leaf I want to apply those variables from the URL to the function.
ocaml113 has quit [Quit: Page closed]
fraggle_ has quit [Read error: Connection reset by peer]
silver_ has joined #ocaml
ziyourenxiang has joined #ocaml
<octachron> Algebr`, note that it should be possible to use functor to factorize the code if needed
silver has quit [Ping timeout: 255 seconds]
fraggle_ has joined #ocaml
<Drup> octachron: that is not exactly true ...
<octachron> Drup, do you mean the fact that you need to encode the sum type with functions? If there is one constructor the cost is not that high?
<Drup> No, I was talking about Algebr` questions
<Drup> but in this case, destructive subsistution is probably not enough, unfortunatly
<octachron> orbitz, if you want to have a look at a toy example, see: https://gist.github.com/Octachron/a2c2a97bb432504bde5ebbdf3bbb2ef9
noddy has joined #ocaml
<Drup> It has a Format-like API, like you want, and does optimized routing
<Drup> (it also handles holes a bit more expressive than what you described)
<octachron> Drup, destructive substitution can only manipulate module type isn'it?
<Drup> octachron: yes, but you can do things like (M : module type of M with type t := ...)
<Drup> so, ocasionally, you can do weird things
silver_ is now known as silver
<Drup> orbitz: you might want to read that too, it should give you a lot of clues on how to do this kind of things: http://drup.github.io/2016/08/02/difflists/
mfp has joined #ocaml
noddy has quit [Ping timeout: 245 seconds]
<Algebr`> I tried type t := things but couldn't get it to work
jnavila has quit [*.net *.split]
demonimin has quit [*.net *.split]
menasw has quit [*.net *.split]
dch has quit [*.net *.split]
troydm has quit [*.net *.split]
pon1980 has quit [*.net *.split]
ski has quit [*.net *.split]
richi235 has quit [*.net *.split]
john51 has quit [*.net *.split]
Khady has quit [*.net *.split]
dhil has quit [*.net *.split]
Balod has quit [*.net *.split]
adrien has quit [*.net *.split]
dmiller has quit [*.net *.split]
gallais has quit [*.net *.split]
habnabit has quit [*.net *.split]
iZsh has quit [*.net *.split]
henrytill has quit [*.net *.split]
ahf has quit [*.net *.split]
justin_smith has quit [*.net *.split]
awal has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
kandu has quit [*.net *.split]
jpdeplaix has quit [*.net *.split]
shakalaka has quit [*.net *.split]
justin_s1ith has joined #ocaml
ski_ has joined #ocaml
gallais has joined #ocaml
adrien has joined #ocaml
Khady has joined #ocaml
kandu has joined #ocaml
iZsh has joined #ocaml
demonimin has joined #ocaml
demonimin has joined #ocaml
demonimin has quit [Changing host]
jpdeplaix has joined #ocaml
dhil has joined #ocaml
john51 has joined #ocaml
Balod has joined #ocaml
pon1980 has joined #ocaml
dmiller has joined #ocaml
jnavila has joined #ocaml
Khady has quit [Changing host]
Khady has joined #ocaml
henrytill has joined #ocaml
henrytill has joined #ocaml
henrytill has quit [Changing host]
Pepe_ has joined #ocaml
_habnabit has joined #ocaml
troydm has joined #ocaml
kandu is now known as Guest86343
ahf has joined #ocaml
richi235 has joined #ocaml
shakalaka has joined #ocaml
awal has joined #ocaml
menasw has joined #ocaml
dch has joined #ocaml
awal is now known as Guest63640
nicoo has joined #ocaml
octachron has quit [Quit: Leaving]
Guest63640 has quit [Changing host]
Guest63640 has joined #ocaml
Guest63640 is now known as awalgarg
fraggle_ has quit [Ping timeout: 240 seconds]
fraggle_ has joined #ocaml
<orbitz> Drup: nice thank you!
maattdd__ has joined #ocaml
<Algebr`> what's the idiotmatic way to say go through a list, find an element and then move it to the end of the list?
awalgarg is now known as awal
<companion_cube> to the end? it's not very idiomatic
<Algebr`> yea, didn't think s
<flux> some combination of finding, take until, list.tail, drop until?-)
<Algebr`> awkward
<flux> why iterate list once when you can iterate it thrice?
<Algebr`> lol
<Drup> well, it's a 3 line recursive function
<Algebr`> well....
<reynir> I'm writing some Java right now and I'm wishing I had Merlin for Java
<ltadeu> hey guys, does anyone have experience using the bitstring library? I'm stuck trying to figure out how to use bitmatch
psacrifice has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
agarwal1975 has quit [Quit: agarwal1975]
<Algebr`> ltadeu: there are probably example in the source code?
<ltadeu> Algebr`: yup, but I don't get why I get an error when I type the examples into utop
noddy has joined #ocaml
<ltadeu> Algebr`: this is the example: http://lpaste.net/350906 and this is what I get when typing it into utop http://lpaste.net/350907
<ltadeu> I had defined `filename` with a string containing the path to the file
jlongster has joined #ocaml
al-damiri has joined #ocaml
jlongster has quit [Client Quit]
<Algebr`> I think bitstring still uses camlp4
<Algebr`> so under utop you'd need to load some syntax
<ltadeu> hmm, I see. I'm still a bit confused about this camlp4 / ppx thingy. Is ppx a replacement for camlp4 syntax extensions?
<flux> ltadeu, yes
noddy has quit [Ping timeout: 246 seconds]
fraggle_ has quit [Ping timeout: 240 seconds]
fluter has quit [Ping timeout: 245 seconds]
Algebr` has quit [Ping timeout: 255 seconds]
<ltadeu> flux: thanks!
fraggle_ has joined #ocaml
cdidd has quit [Ping timeout: 258 seconds]
fluter has joined #ocaml
agarwal1975 has joined #ocaml
NJBS has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
sepp2k has joined #ocaml
yomimono has joined #ocaml
<beginner> is there a performance gain in switching to ocaml 4.04 from 4.03
maicki has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xorpse has joined #ocaml
fre has quit [Ping timeout: 240 seconds]
cdidd has joined #ocaml
xorpse has quit [Ping timeout: 255 seconds]
Algebr` has joined #ocaml
beginner has quit [Read error: Connection reset by peer]
shinnya has joined #ocaml
jlongster has joined #ocaml
maicki has joined #ocaml
yomimono has quit [Ping timeout: 245 seconds]
grbh has quit [Quit: Page closed]
yomimono has joined #ocaml
AlexDenisov has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest26_ has joined #ocaml
fre has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
noddy has joined #ocaml
Algebr` has quit [Ping timeout: 255 seconds]
ryanartecona has joined #ocaml
mpenet has joined #ocaml
mpenet has left #ocaml [#ocaml]
shinnya has quit [Ping timeout: 265 seconds]
Guest26_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<milodavis> Is there a way to get Eliom to compile additional files? The main application file is not able to find the module defined in the other files.
noddy has quit [Ping timeout: 272 seconds]
<Drup> milodavis: you added it to the array in Makefile.options ?
<milodavis> Drup: Which variable do I add it to?
<Drup> *_FILES, depending if it's client or server
<milodavis> Its a .eliom file. It should be covered by the wildcard pattern, right?
<Drup> yes it should
<Drup> Could you put your whole project in gist ? It's difficult to answer you like that
<milodavis> Sure. One moment
Guest26_ has joined #ocaml
Guest26_ has quit [Client Quit]
Mercuria1Alchemi has quit [Ping timeout: 258 seconds]
<milodavis> Does this have to do with the .depend file?
noddy has joined #ocaml
nomicflux has joined #ocaml
<Drup> possibly, you can "make distclean && make" to be sure
<milodavis> All the files are in the src directory
maattdd__ has quit [Ping timeout: 272 seconds]
<Drup> ok, so your error is different
<Drup> 1) You need to annotate side in interfaces too, such as config.eliomi
<Drup> gameID was used on the client, but only declared on the server
unbalanced has joined #ocaml
<Drup> here is a quickpatch https://bpaste.net/show/3210b776bb7d
<milodavis> Using regular let doesn't default to shared?
two_wheels has joined #ocaml
<Drup> hum, better in the right direction: https://bpaste.net/show/c804683f8f44
<Drup> milodavis: no, it defaults to server
<Drup> You can change that by putting [%%shared.start] at the top of your file
<milodavis> Okay
jlongster has joined #ocaml
<milodavis> Thanks. I think that fixes the issue
jnavila has quit [Read error: Connection reset by peer]
ciniglio has quit [Read error: Connection reset by peer]
AlexDeni_ has joined #ocaml
AlexDenisov has quit [Ping timeout: 240 seconds]
Algebr` has joined #ocaml
jnavila has joined #ocaml
maattdd__ has joined #ocaml
Algebr` has quit [Ping timeout: 255 seconds]
ocabot_ has joined #ocaml
ocabot_ has quit [Client Quit]
ryanartecona has quit [Quit: ryanartecona]
maattdd__ has quit [Ping timeout: 272 seconds]
xorpse has joined #ocaml
ryanartecona has joined #ocaml
xorpse has quit [Ping timeout: 258 seconds]
marsam has joined #ocaml
Denommus has joined #ocaml
Denommus has quit [Client Quit]
Denommus has joined #ocaml
maicki has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jao has joined #ocaml
trepta has joined #ocaml
nomicflux has quit [Quit: nomicflux]
maattdd__ has joined #ocaml
Algebr` has joined #ocaml
rgrinberg has joined #ocaml
ocabot_ has joined #ocaml
ocabot_ has quit [Read error: Connection reset by peer]
ocabot_ has joined #ocaml
Algebr` has quit [Ping timeout: 255 seconds]
maicki has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
<companion_cube> !lwt
jnavila has quit [Ping timeout: 255 seconds]
<companion_cube> yay
<companion_cube> pfiu, this upgrade on irc-client.0.4 was not that easy
<companion_cube> (cc johnelse)
<johnelse> uh oh
<companion_cube> look at the changes ;-)
<companion_cube> I'm not sure the active mode is ready
<companion_cube> (or maybe it needs better defaults, i.e. much longer timeouts)
<companion_cube> johnelse: I'll submit a PR to move from 60s to 300s by default, or something
<johnelse> when I get some time I'll try and set up some tests against a localhost ircd
<johnelse> what went wrong with 60s?
mengu has joined #ocaml
<companion_cube> well, it disconnected by itself, I think :D
<johnelse> hehe that's a start :)
<companion_cube> yeah :D
<companion_cube> also, yummy, TLS!!
<johnelse> how often does freenode send pings?
mengu has quit [Ping timeout: 240 seconds]
<aantron> lol !lwt summoned me
<aantron> i am the lwt bot
<companion_cube> I'm not sure, johnelse
<companion_cube> sorry aantron :D
<aantron> it's fine, good humor :)
<aantron> since im here, i should say that i guess lwt 2.7.0 wont be merged into opam for a while. the new opam ci and lwt will be mutually tested against each other for a while (days, or a week or more)
cdidd has quit [Ping timeout: 248 seconds]
two_wheels has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
two_wheels has joined #ocaml
<aantron> so what is ocabot_ and why does it link to old lwt docs?
ryanartecona has quit [Quit: ryanartecona]
marsam has quit [Remote host closed the connection]
smondet has quit [Ping timeout: 255 seconds]
mfp has quit [Ping timeout: 245 seconds]
ziyourenxiang has quit [Quit: Leaving]
<aantron> companion_cube: ^ well i found ocabot, but not the json it reads. otherwise would do a little PR..
<ocabot_> OK.
<Armael> !lwt
<Armael> :-)
<aantron> ah :p
<aantron> thanks
<aantron> how un-ocaml-like :p
<Drup> I propose:
<Drup> Bot.add lwt http://ocsigen.org/lwt/manual/ ;;
<aantron> let bot = Bot.add bot lwt http://ocsigen.org/lwt/manual/ ;;
mfp has joined #ocaml
noddy has quit [Ping timeout: 255 seconds]
cdidd has joined #ocaml
agarwal1975 has quit [Quit: agarwal1975]
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
ryanartecona has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justin_s1ith is now known as justin_smith
maattdd__ has quit [Ping timeout: 258 seconds]
copy` has joined #ocaml
RonnieHolm has joined #ocaml
LiberalSquash has joined #ocaml
LiberalSquash has left #ocaml [#ocaml]
fantasticsid has joined #ocaml
noddy has joined #ocaml
<milodavis> I'm working on an Eliom project and it currently returns a 404 error. I think I've registered the service correctly and get no warnings during compilation
Algebr` has joined #ocaml
<companion_cube> aantron: ah, I can dcc it to you if you want
AnxiousGarlic has joined #ocaml
AnxiousGarlic has left #ocaml [#ocaml]
freusque has quit [Ping timeout: 245 seconds]
freusque has joined #ocaml
agarwal1975 has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 246 seconds]
agarwal1975 has quit [Ping timeout: 248 seconds]
jlongster has joined #ocaml
madroach has quit [Quit: leaving]
smondet has joined #ocaml
pierpa has joined #ocaml
mengu has joined #ocaml
<aantron> companion_cube: was solved by Armael :)
<companion_cube> ah, nice
mengu has quit [Client Quit]
<jeroud> companion_cube: I quite like containers after the hour or so I've spent replacing some of my custom utility functions with it.
unbalanced has quit [Quit: WeeChat 1.6]
<companion_cube> cool ^^
jnavila has joined #ocaml
yomimono has quit [Ping timeout: 258 seconds]
sepp2k has quit [Quit: Leaving.]
asdf_ has joined #ocaml
maicki has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnavila has quit [Ping timeout: 272 seconds]
ltadeu has quit [Ping timeout: 255 seconds]
nomicflux has joined #ocaml
jnavila has joined #ocaml
<Algebr`> okay wow, Julian Assange was on the OCaml mailing list: http://caml.inria.fr/pub/ml-archives/caml-list/2000/08/6b8b195b3a25876e0789fe3db770db9f.en.html
AltGr has left #ocaml [#ocaml]
RonnieHolm has quit [Ping timeout: 256 seconds]
<aantron> Algebr`: hmmm, can't find it in this archive: https://sympa.inria.fr/sympa/arc/caml-list
<companion_cube> yeah, he was apparently holding ocaml.org for a while
<companion_cube> jeroud: if you have issues or nitpicks, don't hesitate to open an issue, it's an adequate time, I'm working a bit on 1.0
<aantron> what do you mean "holding" ocaml.org?
<companion_cube> he had the domain name
ryanartecona has quit [Quit: ryanartecona]
<aantron> then donated it to inria?
<aantron> or ocaml labs.. or whoever has it now?
<companion_cube> it was a while ago, so I think he just let it expire
<aantron> ah
<aantron> i was hoping to find the date information on that message in the other archive
<aantron> but now i am getting 500 internal server error
<Algebr`> they're onto you
<aantron> :D
smondet has quit [Ping timeout: 256 seconds]
larhat has joined #ocaml
trepta has quit [Ping timeout: 248 seconds]
jnavila has quit [Ping timeout: 272 seconds]
Denommus has quit [Ping timeout: 240 seconds]
slash^ has quit [Read error: Connection reset by peer]
asdf_ has quit [Quit: Page closed]
octachron has joined #ocaml
yomimono has joined #ocaml
shinnya has joined #ocaml
th5 has joined #ocaml
d0nn1e has quit [Ping timeout: 258 seconds]
napping has joined #ocaml
d0nn1e has joined #ocaml
Sorella has joined #ocaml
jnavila has joined #ocaml
sepp2k1 has joined #ocaml
shinnya has quit [Ping timeout: 248 seconds]
sepp2k1 has quit [Ping timeout: 255 seconds]
noddy has quit [Ping timeout: 248 seconds]
<napping> Is the visibility/usability of modules in a cma file based only on whether you have also a cmi file?
jnavila has quit [Ping timeout: 240 seconds]
<Drup> Yes
<napping> Is there no way to use other modules?
<napping> I'd like to directly use ctypes raw bindings to libffi
<Drup> You can address a module iif it has an accessible cmi
<Drup> so, if the cmi is accessible, the typechecker will reject your code
yomimono has quit [Quit: Leaving]
fantasticsid has quit [Ping timeout: 255 seconds]
noddy has joined #ocaml
<Drup> if the cmi isn't accessible*
<napping> Thanks, I suppose I have to figure out their build system to expose another cmi
jrslepak has quit [Quit: leaving]
<Algebr`> hacky solution, build the project yourself, copy paste the .cmi under presumably the generated _build directory, or whereever
rgrinberg has quit [Ping timeout: 245 seconds]
jrslepak has joined #ocaml
<napping> seems to work - ctypes doesn't copy the cmi under _build so I had to actually install
ryanartecona has joined #ocaml
<napping> does opam --build-doc just not work?
fantasticsid has joined #ocaml
<aantron> napping: not sure what you mean, but very few packages have doc build instructions in their opam files
<napping> I was hoping for at least generate API documentation
<aantron> ^ Drup what is the current status of odig/whatever tool does this?
<napping> If packages don't describe necessary build instructions that would explain why installing with -d doesn't produce any documentation :(
<aantron> napping: i had a large package set some months ago (dozens), and only three packages were prepared for --build-doc
<Drup> yes, -d only works if the doc instructions are present
<companion_cube> hmmm when is the doc installed?
<companion_cube> I confess I never wrote this part of opam files
<Algebr`> okay wow, --build-doc??
fantasticsid has quit [Read error: Connection reset by peer]
<Drup> companion_cube: "when" ?
<companion_cube> Drup: how*
<Algebr`> where does opam put the docs? and how are you expected to view them?
<companion_cube> there is still only one install target?
<aantron> afaik this is kind of deprecated
<napping> Algebr`: no clue, I just saw it listed in opam install --help
<aantron> however there are ~/.opam/$SWITCH/doc/$PACKAGE directories
<Algebr`> build-doc is deprecated?
<aantron> afaik the emphasis is now on mining cmt[i] files
<aantron> for local docs
<Drup> companion_cube: you add a section in your opam file "build-doc"
<Drup> it's executed after build
<Drup> and before install
<companion_cube> ok
<companion_cube> perfect workflow for oasis, it seems
<Drup> (with oasis, it's trivial, see tyxml's opam file)
twold has joined #ocaml
<companion_cube> .configure --enable-docs ; make docs ? ^^
<Drup> yeah
fantasticsid has joined #ocaml
<Drup> Algebr`: it's up to each package, but the standard will be $(opam config var doc:foo)
<Drup> (for package foo)
<Drup> if it's oasis, it will install the generated html
<Drup> aantron: that's just the odig stuff, it's not perfect though, since .cmt[i] will not include manual, man pages and all that stuff
fantasticsid has quit [Client Quit]
jrslepak has quit [Read error: Connection reset by peer]
<aantron> yeah
<companion_cube> the man pages could be generated from .cmt[i] too, couldn't they?
rgrinberg has joined #ocaml
<Drup> yeah
<companion_cube> well then I vote for this
<companion_cube> more uniform/reliable docs would be good in any case
th5 has quit [Remote host closed the connection]
<Drup> companion_cube: man pages are a bit limited, as far as documentation goes
<companion_cube> well I mean to generate both
<companion_cube> uniformly, for every package
<companion_cube> I, for one, would like to `man Z`
<Drup> sure :)
<Drup> (the usual problem is that you don't get manual/index with that)
<Drup> (same problem for odig)
larhat has quit [Quit: Leaving.]
smondet has joined #ocaml
kakadu has quit [Remote host closed the connection]
<companion_cube> maybe that needs to be integrated in .cmti? or maybe with a dummy module?
<Drup> meh. ocamldoc is capable of taking an index file written in ocamldoc syntax, that's a better solution
al-damiri has quit [Quit: Connection closed for inactivity]
octachron has quit [Quit: Leaving]
napping has quit [Quit: leaving]
ryanartecona has quit [Quit: ryanartecona]
isd has quit [Ping timeout: 248 seconds]
AlexDeni_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
wtetzner has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]