adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
Haudegen has quit [Ping timeout: 246 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
vicfred has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
amiloradovsky has quit [Ping timeout: 260 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
amiloradovsky has joined #ocaml
amiloradovsky has quit [Ping timeout: 260 seconds]
nullcone has joined #ocaml
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #ocaml
mfp has quit [Ping timeout: 246 seconds]
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
vicfred has quit [Quit: Leaving]
vicfred has joined #ocaml
Guest86335 has joined #ocaml
wagle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Fooz has joined #ocaml
<Fooz> Hi all - ocaml newbie question about modules. I have a module with a type 't' that represents an AST, and it is parameterized by a SIG with a type 'a' that is included in each constructor. I'm trying to create an instance of the AST module where 'a' includes some values of 't' (AST nodes with metadata referencing other AST nodes). The problem is
<Fooz> that I'm unable to reference the constructors of type 'a' outside of the second module's definition. Am I missing something, is there a better way to do this, etc? This instance of the AST module is one of many, and I'd like to avoid moving its definition into the AST file and making it directly recursive if possible
osa1 has joined #ocaml
<d_bot> <mseri> Inkbottle the difference should be in the number of samples. In the first plot they are 1000, in the second 10000. Also the function plotted is different, in the first are 1k normally sampled points with mean 0 and variance 1, in the second the logarithm of 10k uniformly sampled points so the distribution will have different parameters as well
<d_bot> <mseri> Inkbottle the difference should be mostly in the number of samples. In the first plot they are 1000, in the second 10000. Also the function plotted is different, in the first are 1k normally sampled points with mean 0 and variance 1, in the second the logarithm of 10k uniformly sampled points so the distribution will have different parameters as well
ggole has joined #ocaml
<d_bot> <mseri> The more the points the better they should approximate the distribution
<Fooz> Example of what I'm talking about here: https://pastebin.com/ksc5mPRN
<Fooz> Slight mistake in that one, fixed here: https://pastebin.com/zQhLDWEW
Fooz has quit [Remote host closed the connection]
jbrown has quit [Ping timeout: 260 seconds]
jbrown has joined #ocaml
mbuf has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 244 seconds]
jbrown has quit [Ping timeout: 272 seconds]
mbuf has quit [Ping timeout: 240 seconds]
jbrown has joined #ocaml
rowbee is now known as robi
waleee-cl has joined #ocaml
Haudegen has joined #ocaml
mfp has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
eureton has joined #ocaml
_whitelogger has joined #ocaml
robi has quit [Remote host closed the connection]
rowbee has joined #ocaml
dhil has joined #ocaml
mangoicedtea has joined #ocaml
oni-on-ion has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 244 seconds]
mangoicedtea has quit [Quit: Leaving]
kleisli has joined #ocaml
eureton has quit [Ping timeout: 244 seconds]
eureton has joined #ocaml
SquidDev has quit [Quit: Bye!]
SquidDev has joined #ocaml
kanishka has joined #ocaml
kanishka has quit [Client Quit]
SquidDev has quit [Quit: Bye!]
SquidDev has joined #ocaml
<lobo> somehow managed to crash utop by running module Foo = struct type t = int end;; then #typeof "Foo.t";;
<lobo> can anyone confirm that? sure, it makes no sense. just triggered the exception by playing around
tane has joined #ocaml
<waleee-cl> lobo: can confirm
<waleee-cl> Fatal error: exception File "typing/env.ml", line 965, characters 26-32: Assertion failed
osa1 has quit [Ping timeout: 240 seconds]
<d_bot> <Et7f3> typeof works on value
<d_bot> <Et7f3> like `let f : Foo.t = 3`
<d_bot> <Et7f3> `#typeof "Foo.t";;` instead use `#show "Foo.t";;`
<waleee-cl> * #show Foo.t;;
<d_bot> <Et7f3> typeof works on value - like `let f : Foo.t = 3` - `#typeof "Foo.t";;` instead use `#show Foo.t;;` mb your right
<lobo> waleee-cl: thx for testing
<lobo> i knew i was holding it wrong. just was puzzled that it acutally crashed utop :)
kleisli has quit [Ping timeout: 256 seconds]
SquidDev has quit [Quit: Bye!]
SquidDev has joined #ocaml
leah2 has quit [Ping timeout: 272 seconds]
leah2 has joined #ocaml
kleisli has joined #ocaml
Serpent7776 has quit [Quit: leaving]
dhil has joined #ocaml
narimiran has joined #ocaml
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
nullcone has joined #ocaml
narimiran has quit [Quit: leaving]
Hail_Spacecake has joined #ocaml
<Hail_Spacecake> how do I set up a toolchain to compile the code in https://ocaml.org/learn/tutorials/introduction_to_gtk.html as an executable
<Hail_Spacecake> rather than running it from the top level repl?
_whitelogger has joined #ocaml
<d_bot> <Et7f3> Assuming you use dune (instead of ocamlfind)
<d_bot> <Et7f3> (executable (name tuto)(libraries lablgtk)) in dune file
muskan has joined #ocaml
<d_bot> <Et7f3> Create a tuto.ml with code
<d_bot> <Et7f3> dune exec ./tuto.exe
eureton has quit [Remote host closed the connection]
eureton has joined #ocaml
eureton has quit [Ping timeout: 244 seconds]
Hrundi_V_Bakshi has joined #ocaml
eureton has joined #ocaml
eureton has quit [Client Quit]
ggole has quit [Quit: Leaving]
<Hail_Spacecake> hm I notice that https://ocaml.org/learn/tutorials/introduction_to_gtk.html does have instructions for compiling an executable
<Hail_Spacecake> but when I run the provided ocamlfind command, I get an error message
<Hail_Spacecake> about two .cmi files make inconsistent assumptions over interface Gtk
tane has quit [Quit: Leaving]
wagle has joined #ocaml
amiloradovsky has joined #ocaml
mangoicedtea has joined #ocaml
<d_bot> <Et7f3> dune handle low-lever for you and should avoid you this kind of error
<Hail_Spacecake> does dune have a different set of default warning/error settings compared to ocamlfind ocamlc -g -package lablgtk2 -linkpkg simple.ml -o simple ?
<Hail_Spacecake> it looks like the code in the example on that page doesn't compile with dune, but does compile with the ocamlc command
<Hail_Spacecake> the latter has a warning about some line returning a type instead of ()
FreeBirdLjj has joined #ocaml
rock64 has joined #ocaml
<rock64> i object
<rock64> searching for "ocaml functional core imperative shell" gives nothing :|
<rock64> haskell use monads for this
<rock64> what's idiomatic in ocaml?
<rock64> not caring? booo
rock64 is now known as ollehar
<ollehar> test
FreeBirdLjj has quit [Ping timeout: 244 seconds]
Hrundi_V_Bakshi has quit [Ping timeout: 264 seconds]
Haudegen has quit [Ping timeout: 264 seconds]
mangoicedtea has quit [Quit: Leaving]
muskan has quit [Ping timeout: 245 seconds]
<companion_cube> not caring about what
vicfred has quit [Quit: Leaving]
vicfred has joined #ocaml