adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.08 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.08/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
spew has quit [Quit: Connection closed for inactivity]
kvda has joined #ocaml
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
niklasl2 has joined #ocaml
niklasl has quit [Ping timeout: 248 seconds]
mfp has quit [Ping timeout: 245 seconds]
AtumT has quit [Quit: AtumT]
lizzin has joined #ocaml
lizzin is now known as Guest72485
Guest72485 has quit [Ping timeout: 246 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
Jeanne-Kamikaze has joined #ocaml
[rg] has quit [Quit: [rg]]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jao has quit [Ping timeout: 268 seconds]
Haudegen has joined #ocaml
kvda has joined #ocaml
Jeanne-Kamikaze has quit [Quit: Leaving]
lizzin has joined #ocaml
lizzin is now known as Guest25594
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest25594 has quit [Ping timeout: 248 seconds]
kvda has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gravicappa has joined #ocaml
themsay has quit [Ping timeout: 245 seconds]
oni_on_ion has joined #ocaml
oni_on_ion has left #ocaml [#ocaml]
whoman has joined #ocaml
oni-on-ion has quit [Ping timeout: 268 seconds]
<reynir> Leonidas: if you broaden it to 'vi's, I imagine you could probably find a proprietary vi
kvda has joined #ocaml
oni-on-ion has joined #ocaml
whoman has quit [Ping timeout: 245 seconds]
rgrant has joined #ocaml
rgrant is now known as [rg]
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
[rg] has quit [Quit: [rg]]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
narimiran has joined #ocaml
lizzin has joined #ocaml
lizzin is now known as Guest93126
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest93126 has quit [Ping timeout: 245 seconds]
bartholin has joined #ocaml
kvda has joined #ocaml
rpcope has quit [Ping timeout: 258 seconds]
rpcope has joined #ocaml
<xvilka> Hi! If I use Int32.to_int, and Int64.of_int32 it gives me different results, see size 0x7fffffff9e0068ec size32 0x9e0068ec size64 0xffffffff9e0068ec
<xvilka> how to prevent this?
<xvilka> ah, it is because it is signed
<xvilka> nvm
<xvilka> why, why there are no unsigned integers in the OCaml without 3rd party libraries!? /o\
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
oni-on-ion has quit [Remote host closed the connection]
clog has joined #ocaml
oni-on-ion has joined #ocaml
<oni-on-ion> hmmm
<oni-on-ion> is it possible to just treat -max_int as 0 ?
<xvilka> ah, they are in 4.08 already, which I can't still use because some deps didn't migrate yet
<xvilka> /o\
<xvilka> life is an awful thing
<oni-on-ion> awhh. which deps, curious ? ive got 4.08 now finally but have not used it a single time yet. =/
<oni-on-ion> (indeed life is cruel)
<xvilka> some ppx parsers, cstruct, asn1-combinators, something else
<xvilka> I didn't check in depth, just saw a lot of conflicts, decided to wait a bit
<oni-on-ion> ah. are you checking it every day and see their progress ?
oni-on-ion has quit [Read error: Connection reset by peer]
<xvilka> oni-on-ion: yes
tianon has quit [Ping timeout: 258 seconds]
<reynir> I decided to play around with 4.08.0... http://p.reyn.ir/p/Vaoxh/+x8/I
<reynir> what the hell
<reynir> okay, renaming ~/.utop-history did the trick
<xvilka> ah, also piqilib
<xvilka> yes
<xvilka> typed it by hand
<xvilka> messed the name /o\
kakadu has joined #ocaml
khodzha has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhil has joined #ocaml
andreas303 has quit [Remote host closed the connection]
andreas31 has joined #ocaml
mfp has joined #ocaml
dhil has quit [Ping timeout: 268 seconds]
dhil has joined #ocaml
jao has joined #ocaml
dhil has quit [Ping timeout: 246 seconds]
<wilfredh> what are the default warnings enabled in ocaml? If I write "-20" rather than "a-20", what warnings do I get?
<wilfredh> relatedly, is there a list describing all the error numbers? My googling has only found https://github.com/lucasaiu/ocaml/blob/master/utils/warnings.ml, which is helpful, but it's not full sentences
<octachron> "ocaml -warn-help" for listing warnings
<octachron> the default is "+a-4-6-7-9-27-29-32..42-44-45-48-50-60-66"
<wilfredh> perfect, thank you octachron!
<wilfredh> where did you find that default?
<octachron> or `man ocamlc`
jao has quit [Ping timeout: 272 seconds]
<dmbaturin> Speaking of which, what is the incantation for talking dune out of its warning as an error policy?
<hannes> dmbaturin: "--profile=release"
<dmbaturin> I see. I would think it's the other way around.
<hannes> dmbaturin: to me it makes a bit sense, since if you release sth you would not want -werror since a newer compiler may add new warnings.. in development mode, it's best current practises getting educated by the compiler (and fix all the warnings)... but tbh, i also have some projects where i compile only with --profile=release ;)
<dmbaturin> To me it's a "frustrate the developer" feature, with default settings. :)
<dmbaturin> If I'm trying to figure where I messed up so that it doesn't typecheck, warnings about unused variables or whatever treated as errors is the last thing I want.
<hannes> dmbaturin: from "man dune": --profile=VAL (absent DUNE_PROFILE env) -- i.e. you can export DUNE_PROFILE=release in your .bashrc to always use release mode
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
<dmbaturin> The docs appear to say nothing about the release vs dev profile behaviour by the way.
<dmbaturin> All in all, I'm still trying to find out what's good about dune other than "everyone uses it".
<Fardale> It is easy to use it
<Fardale> It generate .merlin file for you
<Fardale> It can generate .opam file also
<dmbaturin> Easy to use compared to what? :)
<dmbaturin> I'm still trying to find out how to use it. I do consider that it's me who's not getting it, and I can't say learning oasis was easy, but it's very far from intuitive.
<dmbaturin> ...ok, I was wrong, the docs do say about profiles, in the FAQ.
<Fardale> I don't know well the other build system, but for me it was easier to start with dune than with ocamlbuild or oasis
plow has quit [Ping timeout: 252 seconds]
AtumT has joined #ocaml
jbrown has quit [Ping timeout: 272 seconds]
Haudegen has quit [Remote host closed the connection]
wickedshell has quit [Quit: ZNC - http://znc.in]
mfp has quit [Ping timeout: 268 seconds]
kakadu has quit [Remote host closed the connection]
jbrown has joined #ocaml
lizzin has joined #ocaml
lizzin is now known as Guest7257
tianon has joined #ocaml
tianon has quit [Client Quit]
tianon has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 272 seconds]
Haudegen has joined #ocaml
jao has joined #ocaml
jao is now known as Guest13990
spew has joined #ocaml
andreas31 has quit [Remote host closed the connection]
narimiran has quit [Remote host closed the connection]
mfp has joined #ocaml
andreas303 has joined #ocaml
Guest13990 is now known as jao
dhil has joined #ocaml
FreeBirdLjj has joined #ocaml
philtor has quit [Remote host closed the connection]
philtor has joined #ocaml
jao has quit [Ping timeout: 244 seconds]
Haudegen has quit [Remote host closed the connection]
Haudegen has joined #ocaml
jao has joined #ocaml
jao is now known as Guest12800
jbrown has quit [Ping timeout: 245 seconds]
dhil has quit [Ping timeout: 268 seconds]
dhil has joined #ocaml
mildtaste has quit [Remote host closed the connection]
<Leonidas> dmbaturin: The appealing thing about dune to me is that it has sensible defaults. Like all the magic it does to wrap libraries, install the right mystery files that the compiler generates, set warnings, build incrementally
<dmbaturin> Leonidas: I really would like more complete examples though.
<Leonidas> dmbaturin: to do what?
<Leonidas> the simplest case is very short :-)
ygrek has joined #ocaml
Jesin has quit [Quit: Leaving]
Haudegen has quit [Remote host closed the connection]
Guest7257 has quit [Ping timeout: 244 seconds]
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
ziyourenxiang has quit [Ping timeout: 245 seconds]
lizzin has joined #ocaml
lizzin is now known as Guest24500
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 245 seconds]
<dmbaturin> Leonidas: Stupid question: what exactly I need to do for "dune build something" to work from the top level dir if actual source is in src/ ?
<dmbaturin> cd src && dune build something.exe works.
niklasl has joined #ocaml
niklasl3 has joined #ocaml
<Leonidas> dmbaturin: I usually just put a `dune-project` file in root and a `dune` file in `src/` and then `dune build`
niklasl2 has quit [Ping timeout: 272 seconds]
<dmbaturin> Leonidas: What tells dune to look in src/ ?
<Leonidas> `(executable (name something) (public_name something))` should be enough
<Leonidas> dmbaturin: nothing. That's just inherent dune behaviour to traverse all directories
<Leonidas> dmbaturin: notably, you can even have other dune projects checked out in some folder and it will build these too
niklasl has quit [Ping timeout: 268 seconds]
<Leonidas> which is very useful if you are working on 2 projects at the same time and want to change something in one that requires a change in another then you just dump them together and dune then builds the dependency with you
<dmbaturin> Leonidas: Oh, public_name seems to have done the trick. Before that it wasn't doing anything.
hio has quit [Quit: Connection closed for inactivity]
Haudegen has joined #ocaml
<dmbaturin> Leonidas: Thanks, I think I finally have a working dune setup and some idea how it works.
<dmbaturin> Time to try opam pinning the result.
dhil has quit [Ping timeout: 245 seconds]
Guest12800 has quit [Ping timeout: 258 seconds]
Jesin has joined #ocaml
jao has joined #ocaml
jao is now known as Guest49918
Guest49918 is now known as jao
<Leonidas> dmbaturin: yeah, dune only builds things that are required to install, so unless you ask for a thing (e.g. dune exec <your-binary>) it won't build it to save time.
<Leonidas> the fastest thing is to avoid doing the thing altogether :)
<dmbaturin> Leonidas: Until I specified the public name, it wouldn't build it from the top dir even if I did "dune build mybinary.exe".
AtumT has quit [Ping timeout: 258 seconds]
<Leonidas> yeah, because I think you need to say dune build src/yourbinary
<dmbaturin> Ah, I see.
<Leonidas> I am fuzzy on the exact details because I never do that really
<dmbaturin> Maybe I should help improve the docs.
narimiran has joined #ocaml
dhil has joined #ocaml
dhil has quit [Quit: Quit]
tristero has quit [Quit: WeeChat 2.3]
Guest24500 has quit [Ping timeout: 246 seconds]
gravicappa has quit [Ping timeout: 245 seconds]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
gravicappa has joined #ocaml
gravicappa has quit [Ping timeout: 245 seconds]
narimiran has quit [Ping timeout: 258 seconds]
lizzin has joined #ocaml
lizzin is now known as Guest34788
Guest34788 has quit [Ping timeout: 248 seconds]
spew has quit [Quit: going home]
lizzin_ has joined #ocaml
jbrown has joined #ocaml
[rg] has joined #ocaml
AtumT has joined #ocaml
jbrown has quit [Ping timeout: 257 seconds]
andreas303 has quit [Remote host closed the connection]
jbrown has joined #ocaml
andreas303 has joined #ocaml
ziyourenxiang has joined #ocaml