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
copy_ has quit [Quit: Connection closed for inactivity]
shinnya has quit [Ping timeout: 258 seconds]
peterpp has quit [Ping timeout: 240 seconds]
pierpa has quit [Quit: Page closed]
nullifidian_ has joined #ocaml
nullifidian has quit [Ping timeout: 246 seconds]
enterprisey has joined #ocaml
bjs has quit [Ping timeout: 252 seconds]
bjs has joined #ocaml
eh_eff has joined #ocaml
Denommus has joined #ocaml
eh_eff has quit [Ping timeout: 248 seconds]
cbot has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
ziyourenxiang has joined #ocaml
apatil has joined #ocaml
Denommus has quit [Remote host closed the connection]
apatil has quit [Quit: Page closed]
mfp__ has quit [Ping timeout: 240 seconds]
yawaramin_ has joined #ocaml
FreeBirdLjj has joined #ocaml
samrat has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #ocaml
yawaramin_ has quit [Ping timeout: 258 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
sharno has joined #ocaml
FreeBirdLjj has joined #ocaml
bjs has quit [Ping timeout: 258 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
bjs has joined #ocaml
FreeBirdLjj has joined #ocaml
yawaramin_ has joined #ocaml
samrat has quit [Ping timeout: 248 seconds]
nior has joined #ocaml
ziyourenxiang has quit [Remote host closed the connection]
sz0 has joined #ocaml
nior has quit [Quit: /thread]
_whitelogger has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
ziyourenxiang has joined #ocaml
sharno has quit [Remote host closed the connection]
Atrumx has joined #ocaml
Atrumx has quit [Quit: exit]
eh_eff has joined #ocaml
eh_eff has quit [Ping timeout: 264 seconds]
Fardale_ has quit [Ping timeout: 240 seconds]
tobiasBora has quit [Ping timeout: 255 seconds]
igmp has quit [Ping timeout: 255 seconds]
Fistine has quit [Ping timeout: 255 seconds]
yawaramin_ has quit [Ping timeout: 258 seconds]
yawaramin_ has joined #ocaml
infinity0 has quit [Ping timeout: 240 seconds]
infinity0 has joined #ocaml
tobiasBora has joined #ocaml
FreeBirdLjj has joined #ocaml
Fistine has joined #ocaml
igmp has joined #ocaml
cbot has quit [Quit: Leaving]
Fardale_ has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
enterprisey has quit [Read error: Connection reset by peer]
samrat has joined #ocaml
yawaramin_ has quit [Ping timeout: 246 seconds]
Simn has joined #ocaml
ShalokShalom has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
xuanrui has quit [Quit: Leaving]
enterprisey has joined #ocaml
eh_eff has joined #ocaml
samrat has quit [Ping timeout: 248 seconds]
FreeBirdLjj has joined #ocaml
maelkum has joined #ocaml
eh_eff has quit [Ping timeout: 240 seconds]
AltGr has joined #ocaml
samrat has joined #ocaml
freusque has joined #ocaml
sz0 has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
samrat has quit [Ping timeout: 255 seconds]
kakadu has joined #ocaml
nahra has quit [Remote host closed the connection]
<Leonidas> Developing OCaml on Windows is possible? That sounds like a world of pain
govg has joined #ocaml
nahra has joined #ocaml
peterpp has joined #ocaml
argent_smith has joined #ocaml
peterpp has quit [Remote host closed the connection]
<def`> Leonidas: this is work in progress. David Allsop has been working hard to make that possible.
<def`> First-class opam and merlin support is close
jerith has left #ocaml [#ocaml]
TheLemonMan has joined #ocaml
ristos has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
enterprisey has quit [Remote host closed the connection]
mfp__ has joined #ocaml
eh_eff has joined #ocaml
Soni has quit [Ping timeout: 248 seconds]
Soni has joined #ocaml
eh_eff has quit [Ping timeout: 260 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
samrat has joined #ocaml
kerrhau has quit [Ping timeout: 258 seconds]
copy_ has joined #ocaml
amatheus has quit [Quit: amatheus]
amatheus has joined #ocaml
rossberg has quit [Ping timeout: 252 seconds]
rossberg has joined #ocaml
_andre has joined #ocaml
ShalokShalom is now known as ShalokShalom2
samrat has quit [Ping timeout: 264 seconds]
shinnya has joined #ocaml
freusque has quit [Quit: WeeChat 1.7.1]
freusque has joined #ocaml
groovy2shoes has quit [Ping timeout: 246 seconds]
eh_eff has joined #ocaml
tane has joined #ocaml
mengu has joined #ocaml
yawaramin_ has joined #ocaml
ziyourenxiang has quit [Quit: Leaving]
<yawaramin_> Leonidas: it's also the majority of developers and any new initiative to attract developers to OCaml will bring Windows devs.
eh_eff has quit [Ping timeout: 248 seconds]
mengu has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
apatil has joined #ocaml
<yawaramin_> (who will then likely leave)
<adrien> Leonidas: is the issue you see with "on" or "for" windows?
amatheus has quit [Quit: amatheus]
ziyourenxiang has joined #ocaml
amatheus has joined #ocaml
ShalokShalom has joined #ocaml
amatheus has quit [Client Quit]
amatheus has joined #ocaml
jbrown has joined #ocaml
ShalokShalom2 has quit [Ping timeout: 258 seconds]
mengu has joined #ocaml
samrat has joined #ocaml
<apatil> Hi all, I could use some help with an ocamlbuild issue. I am trying to compile a bytecode executable that depends on Asttypes, among other modules. If I run utop and #require "ppx_tools.metaquot" it brings Asttypes into scope. Also, if I compile my source to a .cma with
<apatil> ocamlbuild -use-ocamlfind -pkgs ppx_tools,ppx_let,ppx_tools.metaquot,yojson,str gen.cma
<apatil> it works. However, if I try to compile it to .byte with
<apatil> ocamlbuild -use-ocamlfind -pkgs ppx_tools,ppx_let,ppx_tools.metaquot,yojson,str gen.byte
<apatil> I get 'Error: Required module `Asttypes' is unavailable'. The commands generated by ocamlbuild are almost identical except that in the .cma case it uses the -a option whereas in the -byte case it uses the -linkpkg option.
<apatil> What am I missing?
sh0t has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
mengu has quit [Quit: Leaving...]
silver has joined #ocaml
argent_smith has quit [Ping timeout: 248 seconds]
jimmyrcom has quit [Ping timeout: 260 seconds]
sz0 has joined #ocaml
abeaumont has quit [Ping timeout: 252 seconds]
rks` has quit [Ping timeout: 252 seconds]
jpdeplaix has quit [Ping timeout: 252 seconds]
rks` has joined #ocaml
jpdeplaix has joined #ocaml
freusque has quit [Quit: WeeChat 1.7.1]
krktz has quit [Ping timeout: 252 seconds]
gargawel has quit [Ping timeout: 252 seconds]
SpaceSheep has quit [Ping timeout: 240 seconds]
krktz has joined #ocaml
gargawel has joined #ocaml
groovy2shoes has joined #ocaml
freusque has joined #ocaml
thegameg has quit [Quit: Bye bye.]
thegameg has joined #ocaml
argent_smith has joined #ocaml
argent_smith has quit [Quit: Leaving.]
amatheus has quit [Read error: Connection reset by peer]
amatheus has joined #ocaml
silver has quit [Quit: rakede]
shinnya has quit [Ping timeout: 240 seconds]
freusque has quit [Ping timeout: 246 seconds]
slash^ has joined #ocaml
<Leonidas> adrien: I think development on windows is such a pain in any language that I don't see how anyone could endure that.
<def`> "using windows is such a pain ..."
<yawaramin_> the truth is lots of devs happily use Windows for lots of languages--JavaScript, Java, C#, Haskell, Rust, C/C++/D ... the list goes on. when they come to OCaml they immediately get stuck. not a good onboarding story.
<Leonidas> I know zero Haskell-Developers using Windows.
argent_smith has joined #ocaml
<def`> apatil: how does your code make use of Asttypes? As Asttypes is a "interface"-only module, there are some things which cannot be done with it.
<Leonidas> The problem arises as soon as you want to compile any c stub
abeaumont has joined #ocaml
SpaceSheep has joined #ocaml
<yawaramin_> the question is not how many Haskell developers there are on Windows (whether you know of them or not), the question is how many folks are coming to OCaml because of cool new tech coming out of the ecosystem and then noping out when they see no Windows support.
<yawaramin_> and btw Haskell at least has a documented process for C bindings on Windows https://wiki.haskell.org/Windows
<Leonidas> I see much bigger issues in ocaml than windows support or not
<yawaramin_> (i realise OCaml also has that. it's just beside my original point)
sz0 has quit [Quit: Connection closed for inactivity]
<yawaramin_> of course every language has issues but a basic issue is can someone actually even install the toolchain (incl. editor support) with a reasonable amount of effort.
<Leonidas> (And the Haskell Windows support looks just as uninviting as the OCaml Windows support)
<Leonidas> I mean, sure, whatever floats your boat :)
<Leonidas> anyone knows how I can share a module between two (executable) targets in jbuilder?
<yawaramin_> i don't know if you're misunderstanding me or what, my point is not 'Haskell is better at OCaml on Windows', my point is that OCaml's onboarding for Windows devs is pretty much non-existent right now.
<maelkum> if I may interrupt; many languages (I guess) don't have "good" (by whatever standard) Windows support
<maelkum> if you're not part of a cool-club of some IDE (VS, Eclipse, etc.) you're gonna have a bad time
<def`> yawaramin_: As I said, David Allsop made a lot of progresses on that, but it is not released yet
<rgrinberg> Leonidas easiest is to create a library out of that module. Otherwise, you can mess around with copy rules
<yawaramin_> maelkum i realise that lots of languages don't have good Windows support. do you agree that every language that wants to be used in enterprise needs to have good Windows support?
<yawaramin_> def` thanks i know about David's good work there, and i look forward to its release
igstan has joined #ocaml
<maelkum> depending on how you define by "enterprise"
igstan has quit [Client Quit]
<maelkum> if that's writing desktop software used by, say, accounting - then yes, by all means you must have good windows support
<maelkum> but if you're more interested in research, embedded software, or other niches then not so much
<yawaramin_> yes, i mean writing line-of-business apps
<maelkum> ok, then I definitely agree
<yawaramin_> so, back to my original point, i know it's theoretically possible to forward commands and messages back and forth between a Windows machine and a Docker container, the concept is like SSHing in to a virtual machine running locally.
<yawaramin_> someone on the ReasonML discord mentioned they use the Docker approach for hacklang. just wondering if anyone here has it used for OCaml.
marcux has joined #ocaml
eh_eff has joined #ocaml
ziyourenxiang has quit [Ping timeout: 255 seconds]
soultadu has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
leah2 has quit [Ping timeout: 258 seconds]
pitastrudl has quit [Read error: Connection reset by peer]
pitastrudl has joined #ocaml
<apatil> def` It needs Asttypes to generate some of the types in Parsetree, eg Parsetree.type_declaration has a field 'ptype_name' whose type is from Asttypes
<adrien> Leonidas: the thing is that you'd have to do less _on_ windows when doing _for_ windows
leah2 has joined #ocaml
<octachron> apatil, did you alias the Asttypes module at some point (e.g. "module A=Asttypes")?
soultadu has quit [Ping timeout: 260 seconds]
leah2 has quit [Ping timeout: 248 seconds]
<apatil> octachron I did!
<apatil> octachron: Removing the aliases took care of the errors. How on earth did you know, and what was the problem with the aliases?
<octachron> apatil, unfortunately aliasing mli-only module is a bit complex right now; you can do it with "module rec A: module type of Asttypes = A"
<octachron> apatil, aliasing was one of problematic things with mli-only modules that def mentioned
<apatil> Got it. Thanks!
<octachron> the problem is that these mli-only modules provides only an interface file and not any kind of implementations
leah2 has joined #ocaml
<apatil> And the implementation is provided by the compiler at link time, or something like that?
<octachron> no there is no implementation at all, this works most of the time when a module contains only type definitions
<octachron> since types do not exists at runtime and thus do not require implementations; but module aliases require a full module not half of a module, thus the sibylline error
<apatil> I see. Out of curiosity, when you say it's a bit complex right now, do you mean there is a fix of some kind planned?
<yawaramin_> could the fix be to simply duplicate the type definitions in corresponding .ml files?
<octachron> apatil, not yet afaik :(; but I do believe that it ought to be fixed
<octachron> yawaramin_, creating a mirror ml file does fix the problem, but it does not answer the question "are lone mli file valid/supported or not?"
<yawaramin_> i think a fix is more important right now :-)
al-damiri has joined #ocaml
<def`> aliasing of mli-only modules, it was this case I was thinking of but I forgot the exact condition to trigger the error!
<def`> it should be fixed yes :/
ygrek_ has joined #ocaml
<apatil> Thanks for the help octachron def` and yawaramin_ !
leah2 has quit [Ping timeout: 240 seconds]
<argent_smith> ppl, does anyone have an idea how to make merlin understand effects in Multicore?
<kakadu> it should be not really easy
<kakadu> you need to start from fixing menhir parser for ocaml
<kakadu> but I'm kind of interested in merlin with effects
<argent_smith> mommy! I just wanted to make that effects tutorial )))
Algebr` has joined #ocaml
leah2 has joined #ocaml
amatheus has quit [Quit: amatheus]
tane has quit [Quit: Leaving]
amatheus has joined #ocaml
amatheus has quit [Ping timeout: 255 seconds]
samrat has quit [Ping timeout: 240 seconds]
kakadu has quit [Quit: Konversation terminated!]
aciniglio has joined #ocaml
marcux has quit [Ping timeout: 255 seconds]
leah2 has quit [Ping timeout: 240 seconds]
amatheus has joined #ocaml
<argent_smith> btw who knows what's type of (continue k x)
jnavila has joined #ocaml
<zozozo> well, that would be the return type of the continuation, no ?
<zozozo> er.. I mean the effect
tane has joined #ocaml
xuanrui has joined #ocaml
xuanrui has quit [Remote host closed the connection]
<def`> argent_smith: which ocaml switch are you using?
<argent_smith> 4.02 multicore — built it for exercising
<argent_smith> in one example I see `(continue k s) s`
apatil has quit [Ping timeout: 260 seconds]
<argent_smith> why extra s if (continue k s) continues itself? looks like in the example (continue k s) returns a function
copy_ has quit [Quit: Connection closed for inactivity]
<def`> If I have time, I will look into making a merlin works with effect ocaml :P
<def`> that*
jnavila has quit [Ping timeout: 240 seconds]
kakadu_ has joined #ocaml
<Leonidas> rgrinberg: yep, that works, thanks!
marcux has joined #ocaml
Algebr` has quit [Remote host closed the connection]
amatheus has quit [Read error: Connection reset by peer]
amatheus has joined #ocaml
<Leonidas> rgrinberg: I've split it into the library, but can't get jbuilder runtest -p redis-lwt or redis-async to work: https://gist.github.com/Leonidas-from-XIV/2c22cdcefe1143a5ae177bde29164aae
<Leonidas> rgrinberg: it always complains about the other libraries not being installed
demonimin has quit [Remote host closed the connection]
demonimin has joined #ocaml
ygrek_ has quit [Remote host closed the connection]
dakk has quit [Ping timeout: 248 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
ygrek has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
slash^ has quit [Read error: Connection reset by peer]
mengu has joined #ocaml
jnavila has joined #ocaml
enterprisey has joined #ocaml
eh_eff has quit [Ping timeout: 246 seconds]
_andre has quit [Quit: leaving]
marcux has quit [Ping timeout: 240 seconds]
argent_smith has quit [Quit: Leaving.]
AltGr has left #ocaml [#ocaml]
pierpa has joined #ocaml
jnavila has quit [Remote host closed the connection]
jerith has joined #ocaml
jbrown has quit [Ping timeout: 240 seconds]
madroach has quit [Ping timeout: 258 seconds]
madroach has joined #ocaml
yawaramin_ has quit [Ping timeout: 258 seconds]
yawaramin_ has joined #ocaml
tane has quit [Quit: Leaving]
aciniglio has quit [Ping timeout: 240 seconds]
<Leonidas> ok, looks like I just can't run runtest without having the library installed? https://github.com/andreas/ocaml-graphql-server
<Leonidas> fails in the same way as my code
shinnya has joined #ocaml
sharno has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
kakadu_ has quit [Ping timeout: 240 seconds]
ayxih has quit [Quit: Leaving]
sh0t has quit [Remote host closed the connection]
enterprisey has quit [Read error: Connection reset by peer]
yawaramin_ has quit [Ping timeout: 258 seconds]
mengu has quit [Remote host closed the connection]
kerrhau has joined #ocaml
kerrhau has quit [Changing host]
kerrhau has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
cbot has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
enterprisey has joined #ocaml
leah2 has joined #ocaml
Simn has quit [Quit: Leaving]
ryanartecona has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
govg has quit [Ping timeout: 255 seconds]
govg has joined #ocaml
leah2 has quit [Ping timeout: 258 seconds]
mengu has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 264 seconds]
Algebr has joined #ocaml
<ELLIOTTCABLE> Hi!
<ELLIOTTCABLE> I'm trying to figure out jbuilder (I'm v. new, be gentle w/ me!),
<ELLIOTTCABLE> following the Jane Street / Core example:
<ELLIOTTCABLE> unfortunately, I'm getting “Error: Unbound module Sexp”, despite having `(libraries (core))` in there
mengu has joined #ocaml
mengu has quit [Ping timeout: 248 seconds]
ziyourenxiang has joined #ocaml
cbot has quit [Ping timeout: 240 seconds]