adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.06.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.06/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
dhil has joined #ocaml
am55 has quit [Quit: am55]
alicemaz has joined #ocaml
jbrown has quit [Quit: Leaving]
bartholin has quit [Remote host closed the connection]
dhil has quit [Ping timeout: 265 seconds]
<LACampbell> 'string Not_exposed_properly.Import.sexp_list' - I'm loving these new Base types :p
<companion_cube> wat
<LACampbell> companion_cube: it's what I get when I play with Jane Street Base in utop
<LACampbell> I'm probably doing something wrong
<LACampbell> I'll file an issue
<LACampbell> hmm almsot certainly a utop issue actually. looks fine in merlin
orbifx has quit [Ping timeout: 260 seconds]
<LACampbell> really weird. everything in utop has types like "sexp_list"
<companion_cube> :D
Hydan has joined #ocaml
Hydan is now known as chkhd
chkhd is now known as hydan
sh0t has quit [Remote host closed the connection]
<zolk3ri> yea, pervs
am55 has joined #ocaml
kbit has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
shinnya has joined #ocaml
<alicemaz> hi all. I'm trying to build a very simple program with `ocamlbuild -package base main.native` and getting an error "No implementations provided for the following modules: Base__ referenced from main.cmx" that I'm not sure how to resolve. the program is just `open Base` and `let x = String.sub "hello world" 0 5`. I got ocaml and base from opam. this only happens when using some functions... for instance a
<alicemaz> program with String.length compiles and runs fine, so my base works/links to at least some extent
barcabuona has joined #ocaml
<alicemaz> all I was able to find on google is that the error in general is usually caused by forgetting to include something but Base__ seems to be an internal submodule. I get a similar error when trying same with Core_kernel (Core itself has additional missing modules)
<LACampbell> alicemaz: I got told to use jbuilder here the other day. works really well.
<LACampbell> there's hello world with Jane Street Core
<alicemaz> ah ok, that worked. thank you!
am55 has quit [Quit: am55]
am55 has joined #ocaml
mfp has quit [Ping timeout: 252 seconds]
am55 has quit [Quit: am55]
ziyourenxiang has joined #ocaml
govg has joined #ocaml
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
cbot has quit [Ping timeout: 260 seconds]
sz0 has joined #ocaml
gtrak_1 has quit [Ping timeout: 256 seconds]
gtrak_1 has joined #ocaml
<cmk_zzz_> .wub3
nomicflux has joined #ocaml
Andros has joined #ocaml
hydan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ziyourenxiang has quit [Ping timeout: 256 seconds]
moei has quit [Quit: Leaving...]
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
nomicflux has quit [Quit: nomicflux]
mbuf has joined #ocaml
gtrak_1 has quit [Ping timeout: 256 seconds]
gtrak_1 has joined #ocaml
pierpa_ has quit [Quit: Page closed]
jimmyrcom has quit [Ping timeout: 265 seconds]
jimmyrcom has joined #ocaml
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
barcabuona has quit [Ping timeout: 256 seconds]
ziyourenxiang has joined #ocaml
Pierpa has quit [Ping timeout: 260 seconds]
moei has joined #ocaml
moei has quit [Client Quit]
moei has joined #ocaml
Pierpa has joined #ocaml
tarptaeya has joined #ocaml
<Khady> Is this result expected with json output of an alcotest test? https://paste.isomorphis.me/Yq1
<Khady> I have only one test, it is failing, but there is still one success in the json
<Khady> a test which is a success is a test that has been run. But it doesn't seem very obvious
<Khady> maybe success should be renamed
LACampbell has quit [Ping timeout: 268 seconds]
Pierpa has quit [Ping timeout: 260 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
leah2 has quit [Ping timeout: 276 seconds]
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leah2 has joined #ocaml
kbit has joined #ocaml
bartholin has joined #ocaml
zpe has joined #ocaml
BitPuffin has joined #ocaml
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
kakadu has joined #ocaml
jimmyrcom has quit [Ping timeout: 268 seconds]
tarptaeya_ has joined #ocaml
tarptaeya_ has quit [Remote host closed the connection]
tarptaeya has quit [Ping timeout: 256 seconds]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 is now known as Guest47294
infinity0 has joined #ocaml
barcabuona has joined #ocaml
barcabuona has quit [Ping timeout: 240 seconds]
dakk has joined #ocaml
cbot has joined #ocaml
<def`> ELLIOTTCABLE: hi
<def`> ELLIOTTCABLE: thanks for your contribution on merlin, I hope to review this soon, but I don't have much time for that these days :)
mfp has joined #ocaml
<remix2000> Is it possible to build a program that would be able to dynamically load plugins at runtime?
cbot has quit [Quit: Leaving]
bacam has quit [Quit: reboot]
bacam has joined #ocaml
am55 has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
barcabuona has joined #ocaml
malc_ has joined #ocaml
Pierpa has joined #ocaml
tarptaeya has joined #ocaml
<remix2000> flux[m]: Thank you! :)
orbifx has joined #ocaml
zolk3ri has joined #ocaml
shinnya has quit [Ping timeout: 248 seconds]
gtrak_1 has quit [Ping timeout: 268 seconds]
Pierpa has quit [Ping timeout: 260 seconds]
gtrak_1 has joined #ocaml
dakk has quit [Remote host closed the connection]
mbuf has quit [Ping timeout: 268 seconds]
hydan has joined #ocaml
hydan has quit [Client Quit]
Pierpa has joined #ocaml
Haudegen has joined #ocaml
mbuf has joined #ocaml
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
am55 has quit [Quit: am55]
am55 has joined #ocaml
sh0t has joined #ocaml
cross has joined #ocaml
sh0t has quit [Remote host closed the connection]
sh0t has joined #ocaml
orbifx has quit [Ping timeout: 240 seconds]
am55 has quit [Quit: am55]
mbuf has quit [Quit: Leaving]
nomicflux has joined #ocaml
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FreeBirdLjj has joined #ocaml
kbit has joined #ocaml
SiGe has joined #ocaml
<SiGe> Hey guys. I am trying to compile a simple program with corebuild but I get an error that Core_kernel__ is not available. Here's the build log: https://gist.github.com/anonymous/12b83108bfa8e0e633d42b0ea418b7ff
<SiGe> Any thoughts on what might be going on?
<SiGe> I can run the program in interpreted mode with proper use/require statements, i.e., #use topfind;; #thread;; and #require core;;
<SiGe> The command that I am using to run the program is: corebuild -log build.log -verbose 8 freq.byte
<octachron> SiGe, this is in indirect issue, pin jbuilder to beta17: "opam pin jbuilder 1.0+beta17"
mbuf has joined #ocaml
<rgr[m]> The other issue is to simply switch your project to jbuilder :)
kuwze has joined #ocaml
nomicflux has quit [Quit: nomicflux]
am55 has joined #ocaml
tane has joined #ocaml
gtrak_1 has quit [Ping timeout: 252 seconds]
<SiGe> octachron: Thanks. That didn't solve the problem - I had to tweak the command to: opam pin [add] jbuilder 1.0+beta17
gtrak_1 has joined #ocaml
<SiGe> rgr[m]: can you explain more? I am just following a book and was wondering how I can get corebuild to work.
<rgr[m]> Hmm, so RWO still uses corebuild? That tool is basically deprecated. The dev version of RWO uses dune (formerly known as jbuilder). You can learn how to use it here http://dune.readthedocs.io/en/latest/
<rgr[m]> You can still use corebuild if you want for now though. You will need to run octachron 's command
<SiGe> Awesome! thanks. rgr[m] pining didn't help, it still gives me the same error, maybe I have to remove the build cache?
<octachron> you need to rebuild core
<rgr[m]> you should do $ opam reinstall core_kernel
<rgr[m]> The reason why you need to do this is that dune is a "build" dependency. Hence it's dependents will be not be recompiled once jbuilder is reinstalled.
mengu has joined #ocaml
ziyourenxiang has quit [Ping timeout: 276 seconds]
pierpa_ has joined #ocaml
Pierpa has quit [Ping timeout: 260 seconds]
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
<SiGe> Ah, thanks a lot! That solved the problem, octachron and rgr[m]
nomicflux has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
nomicflux has quit [Quit: nomicflux]
ruffy__ has joined #ocaml
am55 has quit [Quit: am55]
orbifx has joined #ocaml
gtrak_1 has quit [Ping timeout: 245 seconds]
gtrak_1 has joined #ocaml
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
tarptaeya has quit [Quit: Leaving]
govg has quit [Ping timeout: 256 seconds]
jxv has joined #ocaml
<remix2000> I'm creating a program based upon a plugin architecture. I have a field that contains current state of the program. Each plugin can define its own state type. Other plugins can check this state, but it's not obligatory to handle states emitted by every plugin, and also no plugin can know all the states. Now, the question is: What should be the type of the `state`?
<octachron> a list or map of extensible variant seems like a good match
gtrak_1 has quit [Ping timeout: 256 seconds]
gtrak_1 has joined #ocaml
am55 has joined #ocaml
zolk3ri_ has joined #ocaml
zolk3ri_ has quit [Client Quit]
<malc_> remix2000: string
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
cbot has joined #ocaml
ahf_ has quit [Quit: leaving]
Jesin has joined #ocaml
<remix2000> octachron: What exactly do you mean? Could you show an example?
Jesin has quit [Max SendQ exceeded]
Jesin has joined #ocaml
<octachron> remix2000, you can define "type data = .. "
<justin_smith> remix2000: here's a doc link https://caml.inria.fr/pub/docs/manual-ocaml/extn.html#sec265 - it's an interesting feature
<justin_smith> err, mistag, that was for octachron ^
<octachron> then each plugin can add its own constructor "type data += Plugin_1 of data"
<octachron> then the program can have a list "type full_data = data list"
<octachron> and a given plugin can retrieve the data it knows with "List.fold_left ( fun acc -> (function Plugin_1 data -> data :: acc | Plugin_2 -> … | _ -> acc) … "
<octachron> justin_smith, I am not completely convinced that I need a link to the manual
<justin_smith> octachron: it was a double reverse mistag
<pierpa_> mismistag
<remix2000> octachron, justin_smith: Thank you, that's an awesome feature! :D
pierpa_ is now known as pierpa
xfbs has joined #ocaml
Jesin has quit [Quit: Leaving]
mbuf has quit [Quit: Leaving]
gtrak_1 has quit [Ping timeout: 256 seconds]
jimmyrcom has joined #ocaml
am55 has quit [Quit: am55]
mengu has quit [Remote host closed the connection]
ruffy__ has quit [Ping timeout: 276 seconds]
pierpa has quit [Ping timeout: 260 seconds]
jao has joined #ocaml
jxv has quit [Quit: zzz…]
jxv has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
SpiceGuid has joined #ocaml
SpiceGuid has quit [Client Quit]
Haudegen has joined #ocaml
jxv has quit [Quit: zzz…]
am55 has joined #ocaml
xfbs has quit []
jxv has joined #ocaml
zlsyx has joined #ocaml
zlsyx has quit [Client Quit]
malc_ has quit [Remote host closed the connection]
jxv has quit [Quit: zzz…]
mengu has joined #ocaml
orbifx has quit [Quit: WeeChat 2.0.1]
Denommus has joined #ocaml
SiGe has quit [Remote host closed the connection]
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
Andros has quit [Quit: Leaving]
gtrak_1 has joined #ocaml
sh0t has quit [Remote host closed the connection]
sh0t has joined #ocaml
gtrak_1 has quit [Ping timeout: 260 seconds]
gpietro has joined #ocaml
sh0t has quit [Ping timeout: 240 seconds]
tane has quit [Quit: Leaving]
jxv has joined #ocaml
jxv has quit [Quit: zzz…]
am55 has quit [Quit: am55]
BitPuffin has quit [Remote host closed the connection]
gtrak_1 has joined #ocaml
am55 has joined #ocaml
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
webshinra has quit [Remote host closed the connection]
kbit has joined #ocaml
tokomak has joined #ocaml
jxv has joined #ocaml
kakadu has quit [Remote host closed the connection]
am55 has quit [Quit: am55]
zmt00 has quit [Quit: Leaving]
zmt00 has joined #ocaml
tokomak has quit [Quit: No Ping reply in 180 seconds.]
tokomak has joined #ocaml
am55 has joined #ocaml
tokomak has quit [Ping timeout: 256 seconds]
tokomak_ has joined #ocaml
kbit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kbit has joined #ocaml
am55 has quit [Quit: am55]