companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.05.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.05/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 240 seconds]
benq has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
pierpa has quit [Quit: Page closed]
zolk3ri has quit [Remote host closed the connection]
sz0 has joined #ocaml
pete_8 has joined #ocaml
benq has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Associat0r_ has joined #ocaml
Associat0r has quit [Ping timeout: 240 seconds]
iitalics has joined #ocaml
cobreadmonster has joined #ocaml
<cobreadmonster> what's a good resource for someone wanting to start out with OCaml?
<lyxia> Real World Ocaml
<cobreadmonster> Okay.
superherointj has quit [Quit: Leaving]
govg has quit [Ping timeout: 240 seconds]
pete_8 has quit [Ping timeout: 258 seconds]
mnemem has joined #ocaml
mnemem has quit [Ping timeout: 255 seconds]
cbot_ has quit [Ping timeout: 248 seconds]
cbot has joined #ocaml
<wickedshell> cobreadmonster, note that if you are on Arch linux or anything using glibc 2.26 Core is broken atm and will cause you headaches
<cobreadmonster> wickedshell: I'm on Fedora 26.
<cobreadmonster> Okay, so currently glibc 2.25
<wickedshell> https://github.com/janestreet/core/issues/95 <- is the specific issue, it kinda broke my following along with real world ocaml on the computer I was using, but was easy to use on another :)
<cobreadmonster> wickedshell: Do you have a suggested method of setting things up?
<cobreadmonster> There's no installation instructions for Fedora.
<wickedshell> I just basically did what the book recommends I think. On Arch I just installed ocaml and opam through the package manager, then just did the relevant opam commands that the book tells you about
sz0 has quit [Quit: Connection closed for inactivity]
dedgrant has quit [Read error: Connection reset by peer]
Associat0r_ has quit [Ping timeout: 248 seconds]
Soni has joined #ocaml
alexelcu has quit [Remote host closed the connection]
alexelcu has joined #ocaml
govg has joined #ocaml
_whitelogger has joined #ocaml
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 255 seconds]
mbuf has joined #ocaml
jonasen has joined #ocaml
iitalics has quit [Quit: /thread]
cobreadmonster has quit [Quit: Connection closed for inactivity]
cbot_ has quit [Quit: Leaving]
cross has quit [Quit: Lost terminal]
pete_8 has joined #ocaml
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snhmib has joined #ocaml
mnemem has joined #ocaml
pete_8 has quit [Ping timeout: 248 seconds]
Murmus has quit [Remote host closed the connection]
mnemem has quit [Ping timeout: 240 seconds]
Murmus has joined #ocaml
infinity0_ has joined #ocaml
infinity0 is now known as Guest61270
infinity0_ is now known as infinity0
infinity0 has joined #ocaml
infinity0 has quit [Changing host]
Guest61270 has quit [Ping timeout: 240 seconds]
mnemem has joined #ocaml
jonasen has joined #ocaml
kerrhau_ has quit [Quit: bye!]
ousado has quit [Remote host closed the connection]
mnemem has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
Associat0r_ has joined #ocaml
webshinra has quit [Ping timeout: 240 seconds]
webshinra has joined #ocaml
pete_8 has joined #ocaml
dakk has joined #ocaml
mbuf is now known as mbuf|away
AltGr has joined #ocaml
mnemem has joined #ocaml
pete_8 has quit [Ping timeout: 258 seconds]
Simn has joined #ocaml
mfp has joined #ocaml
TheLemonMan has joined #ocaml
freusque has joined #ocaml
argent_smith has joined #ocaml
jonasen has quit [Ping timeout: 264 seconds]
rossberg has quit [Ping timeout: 246 seconds]
mbuf|away is now known as mbuf
kakadu has joined #ocaml
dakk has quit [Ping timeout: 248 seconds]
dakk has joined #ocaml
dakk has quit [Max SendQ exceeded]
dakk has joined #ocaml
rossberg has joined #ocaml
ziyourenxiang has joined #ocaml
dakk has quit [Remote host closed the connection]
ShalokShalom has joined #ocaml
argent_smith1 has joined #ocaml
argent_smith has quit [Ping timeout: 248 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
kerrhau has quit [Ping timeout: 255 seconds]
jonasen has joined #ocaml
dhil has joined #ocaml
shinnya has joined #ocaml
shinnya has quit [Client Quit]
shinnya has joined #ocaml
mnemem has quit [Ping timeout: 240 seconds]
mnemem has joined #ocaml
benq has joined #ocaml
sz0 has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
kakadu has joined #ocaml
mbuf has quit [Quit: Leaving]
<orbifx[m]> Does a compiler without flambda oprimise away constant if expressions?
<orbifx[m]> `let f ~(b:true) x = if b then ... else ...`?
ShalokShalom has quit [Ping timeout: 260 seconds]
<flux> that's not a constant if expression? I imagine it can optimize it way if 'f' is inlined.
lgd has joined #ocaml
<orbifx[m]> yeah, that's where I was getting at
<orbifx[m]> You then call `f .. =` where bool is either provided as a constant or left to default
<orbifx[m]> would it then optimise it?
jbrown has joined #ocaml
sepp2k has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
copy__ is now known as copy_
zolk3ri has joined #ocaml
copy_ is now known as copy`
milodavis has joined #ocaml
<milodavis> I'm trying to port a project to jbuilder, but we have an mli file without a corresponding implementation. Is there an easy way to have jbuilder ignore this file entirely?
<milodavis> To clarify, this file is used by another tool and could potentially be removed from the directory, but I'd really prefer to not change the project structure
ygrek_ has joined #ocaml
Denommus has joined #ocaml
freusque has quit [Quit: WeeChat 1.7.1]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
ShalokShalom has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
govg has joined #ocaml
dhil has joined #ocaml
nullifidian has quit [Read error: Connection reset by peer]
nullifidian has joined #ocaml
ziyourenxiang has quit [Ping timeout: 264 seconds]
ziyourenxiang has joined #ocaml
<AltGr> milodavis: Maybe using `(modules)` ? e.g. `(modules (:standard \ moduleToIgnore))`
lgd has quit [Ping timeout: 255 seconds]
benq has quit [Ping timeout: 255 seconds]
MercurialAlchemi has quit [Ping timeout: 258 seconds]
<milodavis> AltGr: I tried it, but I got the same warning. I'm wondering if it's not recognizing the mli only as a module
<milodavis> orbifx[m]: Thanks
mk9 has joined #ocaml
aciniglio has joined #ocaml
<infinity0> any of you guys tried https://bitbucket.org/camlspotter/ppx_monadic/ eg for lwt
<companion_cube> lwt already provides a ppx?
<infinity0> this one is a bit more general though
TheLemonMan has joined #ocaml
<milodavis> orbifx[m]: Is there a way to make it ignore only a single file?
mnemem has quit [Ping timeout: 240 seconds]
<orbifx[m]> according to that page, if you prepend `.#`
<milodavis> orbifx[m]: I'm trying to avoid moving or renaming the file
mk9 has quit [Quit: mk9]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FreeBirdLjj has joined #ocaml
milodavis has quit [Quit: WeeChat 1.8]
milodavis has joined #ocaml
<orbifx[m]> I don't kjow milodavis . Maybe someone on the forum or mailing list will know
<milodavis> I posted the same question on discuss.ocaml.org. Hopefully someone will respond. Thanks for your help
mk9 has joined #ocaml
FreeBirdLjj has quit []
FreeBirdLjj has joined #ocaml
mk9 has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit []
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Client Quit]
<milodavis> orbifx[m]: How about just moving an executable to the root of the source directory? All of the install locations end with the file in the .opam directory. I just want to have the binary available for the project
kolko has quit [Ping timeout: 260 seconds]
<orbifx[m]> One way would be to wrap your jbuild with a normal Makefile, which copies the `_build/...` executable into your project root.
FreeBirdLjj has joined #ocaml
<milodavis> orbifx[m]: Jbuilder doesn't provide a native way to do this?
<orbifx[m]> Another is to create a link to the file created under build milodavis
<orbifx[m]> I don't know if jbuilder can do that for you
<orbifx[m]> As far as I know, no. It's a builder.
<orbifx[m]> It can change the targets name, to call it something else and to drop the .exe extension.
jonasen has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
samrat has joined #ocaml
milodavis has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
bombastus has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
jnavila has joined #ocaml
mengu has joined #ocaml
mengu has quit [Remote host closed the connection]
jnavila has quit [Ping timeout: 240 seconds]
<CcxWrk> Hi. Anyone having working OCaml under Nix/NixOS? When I try to start utop I get Fatal error: exception Fl_package_base.No_such_package("camlp4", "required by `utop.camlp4'")
FreeBirdLjj has joined #ocaml
milodavis has joined #ocaml
superherointj has joined #ocaml
<superherointj> Hi def`. Merlin 2.5.4 is working fine with VSCode extension on WSL. But Merlin 3.0.3 is not. How do I enable the old protocol? Change the application shortcut to 'ocamlmerlin old-protocol' (application file + argument), but didn't work.
<superherointj> *changed
<def`> Hmm, maybe the old protocol has not been ported to windows.
<def`> Try with "ocamlmerlin-server old-protocol"
Anarchos has joined #ocaml
<def`> (I am not sure shortcut is the right term :P)
<superherointj> What is the right term?
<def`> I don't know :)
<def`> A commandline?
<def`> A shortcut is something windows specific and quite hackish (essentially the shell explorer lying about the content of the vfs)
al-damiri has joined #ocaml
<superherointj> 'ocamlmerlin-server' is in path, 'ocamlmerlin-server -version' shows:
<superherointj> The Merlin toolkit version 3.0.3, for Ocaml 4.04.0.
<superherointj> "reason.path.ocamlmerlin": "ocamlmerlin-server old-protocol"
<superherointj> Configured VSCode extension to:
<superherointj> Current VSCode error:
<superherointj> ocamlmerlin error: Fatal error: exception Failure("output_value: not a binary channel")
<superherointj> The error is the same of 'ocamlmerlin'.
<superherointj> Do you have any other suggestion?
<def`> Hmm, and without reason? Just the OCaml mode?
<superherointj> On Ocaml extension, worked with Merlin 2.5.4 but did not work with Merlin 3.0.3.
<superherointj> hackwaly.ocaml extension
<superherointj> Autocompleting didn't work with 2.5.4 too.
<superherointj> But it showed merlin errors messages just fine.
<superherointj> I am testing on Windows native BTW.
<superherointj> Not WSL.
<superherointj> Any other suggestion?
zolk3ri has quit [Quit: Lost terminal]
<superherointj> Tried to use Ocaml extension with WSL but didn't seem to work.
<def`> what is your windows build?
<superherointj> Creators Update
<superherointj> 1703
<superherointj> Sorry. OS Build 15063.674
<superherointj> 640bit
<superherointj> 64-bit
marcux has quit [Ping timeout: 248 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
marcux has joined #ocaml
<def`> I cannot tel
<def`> :/
<superherointj> tel? tell?
<def`> tell* :)
<superherointj> `I have no clue.` This meaning?
<def`> Yes
kakadu has quit [Quit: Konversation terminated!]
<superherointj> I've already messages VSCode Reason extension author. But he didn't know why it wasn't working with Merlin 3.
<superherointj> *messaged
<superherointj> But it doesn't work with Ocaml extension too.
FreeBirdLjj has quit [Ping timeout: 240 seconds]
<superherointj> I will try to contact David Allsopp.
<superherointj> But that wouldn't help on the WSL scenario.
<superherointj> That Merlin 3.0.3 also doesn't work
<superherointj> But Merlin 2.5.4 does.
<superherointj> I'm not sure If I have correct compiler/toolchain for windows. There is a lot of misinformation on this.
<superherointj> Not sure if that is the problem still..
lgd has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
shinnya has quit [Ping timeout: 240 seconds]
mnemem has joined #ocaml
rjungemann has quit [Read error: Connection reset by peer]
rjungemann has joined #ocaml
Algebr has joined #ocaml
superherointj has left #ocaml ["Leaving"]
enterprisey has joined #ocaml
kakadu has joined #ocaml
dhil has quit [Ping timeout: 264 seconds]
kakadu has quit [Client Quit]
samrat has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
pierpa has joined #ocaml
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kerrhau has joined #ocaml
nahra has quit [Remote host closed the connection]
nahra has joined #ocaml
AltGr has left #ocaml [#ocaml]
nahra has quit [Remote host closed the connection]
ygrek_ has quit [Ping timeout: 248 seconds]
kakadu has joined #ocaml
sepp2k has quit [Quit: Leaving.]
<rixed> If I `opam install` a package A that depends on B{build}, shouldn't I be able to uninstall B once A is installed without also removing A? opam seems to consider that A can't stay without B. Are {build} anotations only for rebuilts?
milodavis has quit [Quit: WeeChat 1.8]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
Simn has quit [Ping timeout: 255 seconds]
kerrhau has quit [Ping timeout: 255 seconds]
argent_smith1 has quit [Quit: Leaving.]
jnavila has quit [Ping timeout: 240 seconds]
mnemem_ has joined #ocaml
lgd has quit [Remote host closed the connection]
lgd_ has joined #ocaml
mnemem has quit [Ping timeout: 240 seconds]
<aantron> sooooo. lwt_camlp4 or lwt-camlp4 for the factored out camlp4 package name? lwt_ppx or lwt-ppx?
<aantron> advantage of the underscore is that there are already some underscored package names, but then again the main reason they are that way is because they contain one module, which of course has an underscore in its name
<aantron> advantage of the hyphen is it seems to be the cool thing to do nowadays
<Drup> I vote for consistency
shinnya has joined #ocaml
<aantron> there are a couple libraries with hyphens too, but they are all third-party (w.r.t. Lwt), whereas the underscored ones are a mix of stuff from Lwt (lwt_ssl) and third-party libraries. also consistency with Lwt itself, or with the ecosystem?
malc_ has joined #ocaml
<Drup> lwt
<Drup> except if there is really a consensus that syntaxes should be hyphened, but I don't think there is :)
<Denommus> damn, react-react is not working on react-native :(
<Denommus> the application cashes
enterprisey has quit [Ping timeout: 248 seconds]
<aantron> rixed: IIRC yes, {build} only allows rebuilding B not to trigger rebuilding A
enterprisey has joined #ocaml
<aantron> i was also slightly disappointed by this at one point, not sure why uninstalling B is not allowed without uninstalling A
<aantron> s/also//
cbot has joined #ocaml
aciniglio has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
malina has joined #ocaml
<Denommus> I fixed the problem I was having with react-react \o/
<Denommus> now react-react works with react-native (at least in Android, don't know about iOS)
dtornabene has joined #ocaml
mnemem_ has quit [Ping timeout: 240 seconds]
eliteffyqk has joined #ocaml
eliteffyqk has quit [Client Quit]
eliteffyqk has joined #ocaml
eliteffyqk has quit [Remote host closed the connection]
<aantron> Denommus: in the briefest terms, what was causing it? in case i/someone else has problems with it later
Associat0r_ has quit [Ping timeout: 248 seconds]
Algebr has quit [Remote host closed the connection]
andreas__ has quit [Quit: Connection closed for inactivity]
kakadu has quit [Remote host closed the connection]
ziyourenxiang has quit [Ping timeout: 240 seconds]
mnemem_ has joined #ocaml
cbot has quit [Ping timeout: 255 seconds]
mnemem_ has quit [Ping timeout: 255 seconds]