adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Upcoming OCaml MOOC: https://huit.re/ocamlmooc | OCaml 4.03.0 release notes: http://ocaml.org/releases/4.03.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
rpip has joined #ocaml
regnat[m] has joined #ocaml
veggie_ has quit [Ping timeout: 260 seconds]
tmtwd has joined #ocaml
smondet has joined #ocaml
struktured has joined #ocaml
madroach has joined #ocaml
rpip has quit [Ping timeout: 240 seconds]
M-Illandan has quit [Ping timeout: 240 seconds]
brunoro_ has joined #ocaml
cpdean has quit [Ping timeout: 260 seconds]
madroach has joined #ocaml
cpdean has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
brunoro_ has quit [Ping timeout: 260 seconds]
msch_ has quit [Ping timeout: 240 seconds]
wu_ng has joined #ocaml
msch_ has joined #ocaml
mfp has quit [Ping timeout: 260 seconds]
M-Illandan has joined #ocaml
struktured has quit [Ping timeout: 268 seconds]
rpip has joined #ocaml
srenatus[m] has quit [Ping timeout: 240 seconds]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
M-jimt has quit [Ping timeout: 251 seconds]
timclassic has quit [Ping timeout: 251 seconds]
srenatus[m] has joined #ocaml
flux has joined #ocaml
flux has quit [Remote host closed the connection]
sh0t has joined #ocaml
timclassic has joined #ocaml
M-jimt has joined #ocaml
M-Illandan has quit [Ping timeout: 240 seconds]
M-pesterhazy has quit [Ping timeout: 240 seconds]
parataxis has quit [Ping timeout: 240 seconds]
M-martinklepsch has quit [Ping timeout: 240 seconds]
madroach has joined #ocaml
parataxis has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
timclassic has quit [Ping timeout: 240 seconds]
minn has joined #ocaml
<minn> Are there any plans to implement tail recursion modulo cons in future OCaml releases? I can find a feature request from 2003, but everything goes dark from there on out.
M-Illandan has joined #ocaml
Guest23668[m] has quit [Ping timeout: 240 seconds]
lpw25[m] has quit [Ping timeout: 240 seconds]
barkmadley[m] has quit [Ping timeout: 240 seconds]
jyc has quit [Ping timeout: 240 seconds]
bitbckt_ has quit [Ping timeout: 240 seconds]
manualcrank has joined #ocaml
M-martinklepsch has joined #ocaml
jyc has joined #ocaml
M-pesterhazy has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
timclassic has joined #ocaml
agarwal1975 has quit [Quit: agarwal1975]
lpw25[m] has joined #ocaml
Guest23668[m] has joined #ocaml
barkmadley[m] has joined #ocaml
bitbckt has joined #ocaml
bitbckt has joined #ocaml
bitbckt has quit [Changing host]
smondet` has joined #ocaml
M-pesterhazy has quit [Ping timeout: 240 seconds]
smondet has quit [Ping timeout: 240 seconds]
<copy`> There's something more recent here: https://github.com/ocaml/ocaml/pull/181
madroach has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
madroach has quit [Read error: Connection reset by peer]
M-pesterhazy has joined #ocaml
Sorella has quit [Ping timeout: 241 seconds]
Sorella has joined #ocaml
agarwal1975 has joined #ocaml
agarwal1975 has quit [Client Quit]
zpe has joined #ocaml
average has joined #ocaml
M-ErkkiSeppl has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 248 seconds]
zpe has quit [Ping timeout: 265 seconds]
madroach has joined #ocaml
jimt_ is now known as jimt
madroach has quit [Read error: Connection reset by peer]
timclassic has quit [Ping timeout: 240 seconds]
silver has quit [Quit: rakede]
wu_ng has quit [Ping timeout: 259 seconds]
wu_ng has joined #ocaml
M-ErkkiSeppl has joined #ocaml
brunoro_ has joined #ocaml
groovy2shoes has joined #ocaml
bitbckt has quit [Ping timeout: 240 seconds]
M-pesterhazy has quit [Ping timeout: 240 seconds]
alpen- has quit [Ping timeout: 240 seconds]
regnat[m] has quit [Ping timeout: 240 seconds]
madroach has joined #ocaml
Bluddy[m] has quit [Ping timeout: 240 seconds]
jyc has quit [Ping timeout: 240 seconds]
Guest23668[m] has quit [Ping timeout: 240 seconds]
lpw25[m] has quit [Ping timeout: 240 seconds]
madroach has quit [Read error: Connection reset by peer]
barkmadley[m] has quit [Ping timeout: 240 seconds]
M-ErkkiSeppl has quit [Ping timeout: 240 seconds]
darkf has joined #ocaml
brunoro_ has quit [Ping timeout: 248 seconds]
timclassic has joined #ocaml
jyc has joined #ocaml
regnat[m] has joined #ocaml
alpen has joined #ocaml
Bluddy[m] has joined #ocaml
rpip has quit [Ping timeout: 240 seconds]
M-pesterhazy has joined #ocaml
lpw25[m] has joined #ocaml
Guest23668[m] has joined #ocaml
barkmadley[m] has joined #ocaml
M-ErkkiSeppl has joined #ocaml
conrad1 has joined #ocaml
timclassic has quit [Ping timeout: 240 seconds]
bitbckt has joined #ocaml
darkf has quit [Ping timeout: 260 seconds]
Bluddy[m] has quit [Ping timeout: 240 seconds]
Bluddy[m] has joined #ocaml
darkf has joined #ocaml
madroach has joined #ocaml
conrad1 has quit [Ping timeout: 268 seconds]
rpip has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
timclassic has joined #ocaml
hellofunk has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
M-ErkkiSeppl has quit [Ping timeout: 240 seconds]
barkmadley[m] has quit [Ping timeout: 240 seconds]
M-martinklepsch has quit [Ping timeout: 240 seconds]
barkmadley[m] has joined #ocaml
M-ErkkiSeppl has joined #ocaml
Bluddy[m] has quit [Ping timeout: 240 seconds]
timclassic has quit [Ping timeout: 240 seconds]
srenatus[m] has quit [Ping timeout: 240 seconds]
srenatus[m] has joined #ocaml
timclassic has joined #ocaml
lpw25[m] has quit [Ping timeout: 240 seconds]
Guest23668[m] has quit [Ping timeout: 240 seconds]
darkf has quit [Ping timeout: 248 seconds]
regnat[m] has quit [Ping timeout: 240 seconds]
darkf has joined #ocaml
M-martinklepsch has joined #ocaml
M-pesterhazy has quit [Ping timeout: 240 seconds]
lpw25[m] has joined #ocaml
Guest23668[m] has joined #ocaml
Bluddy[m] has joined #ocaml
madroach has joined #ocaml
regnat[m] has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
M-pesterhazy has joined #ocaml
FreeBirdLjj has joined #ocaml
rpip has quit [Ping timeout: 240 seconds]
M-Illandan has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
M-Illandan has joined #ocaml
wu_ng has quit [Ping timeout: 248 seconds]
manualcrank has left #ocaml ["Leaving"]
srenatus[m] has quit [Ping timeout: 240 seconds]
rpip has joined #ocaml
zpe has joined #ocaml
madroach has joined #ocaml
jyc has quit [Ping timeout: 240 seconds]
madroach has quit [Read error: Connection reset by peer]
Bluddy[m] has quit [Ping timeout: 240 seconds]
timclassic has quit [Ping timeout: 240 seconds]
jyc has joined #ocaml
srenatus[m] has joined #ocaml
bitbckt has quit [Ping timeout: 240 seconds]
barkmadley[m] has quit [Ping timeout: 240 seconds]
M-ErkkiSeppl has quit [Ping timeout: 240 seconds]
oriba has quit [Quit: WeeChat 1.6]
zpe has quit [Ping timeout: 248 seconds]
regnat[m] has quit [Ping timeout: 240 seconds]
lpw25[m] has quit [Ping timeout: 240 seconds]
regnat[m] has joined #ocaml
lpw25[m] has joined #ocaml
struktured has joined #ocaml
bitbckt has joined #ocaml
Bluddy[m] has joined #ocaml
timclassic has joined #ocaml
brunoro_ has joined #ocaml
M-ErkkiSeppl has joined #ocaml
barkmadley[m] has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
brunoro_ has quit [Ping timeout: 260 seconds]
srenatus[m] has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
red_caml has joined #ocaml
srenatus[m] has joined #ocaml
madroach has joined #ocaml
red_caml has quit [Ping timeout: 268 seconds]
madroach has quit [Read error: Connection reset by peer]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
fraggle_ has joined #ocaml
hellofunk has quit [Ping timeout: 240 seconds]
average has quit [Quit: leaving]
wu_ng has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
fraggle_ has quit [Ping timeout: 250 seconds]
struktured has quit [Ping timeout: 250 seconds]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
pierpa has quit [Ping timeout: 260 seconds]
justicefries has joined #ocaml
alienbot has quit [Read error: Connection reset by peer]
struktured has joined #ocaml
timclassic has quit [Ping timeout: 240 seconds]
alienbot has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
brunoro_ has joined #ocaml
timclassic has joined #ocaml
brunoro_ has quit [Ping timeout: 240 seconds]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
brunoro_ has joined #ocaml
conrad1 has joined #ocaml
timclassic has quit [Ping timeout: 240 seconds]
brunoro_ has quit [Ping timeout: 250 seconds]
conrad1 has quit [Ping timeout: 268 seconds]
timclassic has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
rpip has quit [Ping timeout: 240 seconds]
rgrinberg has quit [Ping timeout: 250 seconds]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
rpip has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
justicefries has left #ocaml [#ocaml]
cpdean has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
brunoro_ has joined #ocaml
M-jimt has quit [Ping timeout: 240 seconds]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
brunoro_ has quit [Ping timeout: 250 seconds]
M-jimt has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
MercurialAlchemi has joined #ocaml
nomicflux has quit [Quit: nomicflux]
AlexDenisov has joined #ocaml
madroach has joined #ocaml
brunoro_ has joined #ocaml
sh0t has quit [Remote host closed the connection]
brunoro_ has quit [Ping timeout: 260 seconds]
timclassic has quit [Ping timeout: 240 seconds]
M-ErkkiSeppl has quit [Ping timeout: 240 seconds]
barkmadley[m] has quit [Ping timeout: 240 seconds]
Bluddy[m] has quit [Ping timeout: 240 seconds]
lpw25[m] has quit [Ping timeout: 240 seconds]
regnat[m] has quit [Ping timeout: 240 seconds]
Guest23668[m] has quit [Ping timeout: 240 seconds]
barkmadley[m] has joined #ocaml
M-ErkkiSeppl has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 260 seconds]
timclassic has joined #ocaml
Guest23668[m] has joined #ocaml
Bluddy[m] has joined #ocaml
lpw25[m] has joined #ocaml
regnat[m] has joined #ocaml
archer121 has joined #ocaml
bgft has joined #ocaml
nayden has joined #ocaml
archer121 has quit [Ping timeout: 260 seconds]
regnat[m] has quit [Ping timeout: 240 seconds]
brunoro_ has joined #ocaml
regnat[m] has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
srenatus[m] has quit [Ping timeout: 240 seconds]
conrad1 has joined #ocaml
brunoro_ has quit [Ping timeout: 248 seconds]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
regnat[m] has quit [Ping timeout: 240 seconds]
timclassic has quit [Ping timeout: 240 seconds]
srenatus[m] has joined #ocaml
timclassic has joined #ocaml
conrad1 has quit [Ping timeout: 265 seconds]
tg has joined #ocaml
apache2_ has joined #ocaml
regnat[m] has joined #ocaml
MercurialAlchemi has joined #ocaml
tennix has joined #ocaml
Algebr has joined #ocaml
nayden has quit [Quit: Leaving]
djellemah has joined #ocaml
FreeBirdLjj has joined #ocaml
etc has joined #ocaml
<etc> Hi there! I'm trying to build a library first, and then later use it to build an executable. (specifically, with a different ocamlbuild command) Anyone know how to do this or have an example?
sabina____ has joined #ocaml
<sabina____> how to use tuple as a single argument for function
<sabina____> anyone here? :)
cpdean has joined #ocaml
bitbckt has quit [Ping timeout: 240 seconds]
sabina____ has quit [Client Quit]
<Algebr> sabina____: you pass it? let foo (a, b, c) = print_endline a ^ b ^ c
<Algebr> etc: oasis will make this easy
bitbckt has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
<etc> Algebr: Ok cool I'll give it a try - thanks!
FreeBird_ has joined #ocaml
cpdean has quit [Ping timeout: 250 seconds]
brunoro_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
alfredo has joined #ocaml
zv has quit [Ping timeout: 260 seconds]
brunoro_ has quit [Ping timeout: 260 seconds]
<etc> Algebr: Awesome I've got oasis almost working -- do you know how to use a ppx while building an executable with it?
inr has joined #ocaml
archer121 has joined #ocaml
srenatus[m] has quit [Ping timeout: 240 seconds]
<archer121> hi! what is the difference between type: `(’a * ’a) list` and type: `( ’a * ’a list)` ?
M-Illandan has quit [Ping timeout: 240 seconds]
zv has joined #ocaml
<etc> archer121: the first is a list of tuples, like [(1,2); (3,4)]. The second is a tuple with the second element being a list. Like (1, [2;3;4;5])
<Algebr> etc: add it to BuildDepends
archer121 has quit [Ping timeout: 260 seconds]
srenatus[m] has joined #ocaml
M-Illandan has joined #ocaml
<etc> Algebr: hmm that doesn't seem to be working... does it make a difference that this is an ast_mapper executable ppx?
archer121 has joined #ocaml
<archer121> I got disconnected, so I did not receive any message, if any.
<archer121> hi! what is the difference between type: `(’a * ’a) list` and type: `( ’a * ’a list)` ?
<etc> archer121: the first is a list of tuples, like [(1,2); (3,4)]. The second is a tuple with the second element being a list. Like (1, [2;3;4;5])
M-jimt has quit [Ping timeout: 240 seconds]
freusque has joined #ocaml
<archer121> oh, great! that's what I was missing. it's like ('a * ('a list))!
M-jimt has joined #ocaml
<archer121> thanks
<etc> exactly - np!
<archer121> etc: I still have some trouble. Mind if I bother you?
<etc> archer121: I can try - what's up?
<archer121> I have a type definition: `type 'a graph = ( 'a * 'a list) list;;`. But this declaration is throwing an error: `let (G: int graph) = [1, [2; 3]];;`
<archer121> the error is: Error: This variant pattern is expected to have type int graph. The constructor G does not belong to type list
<archer121> "G" is underlined.
htch has joined #ocaml
kakadu has joined #ocaml
<etc> archer121: It's because G is capitalized, I guess you can only use capitalized names for 'constructors'
bitbckt has quit [Ping timeout: 240 seconds]
<archer121> thanks again.
<etc> np!
FreeBird_ has quit [Remote host closed the connection]
bitbckt has joined #ocaml
brunoro_ has joined #ocaml
<etc> Algebr: adding 'ppx_orb' to the build depends results in a warning that the tag "pkg_ppx_orb" will have no effect and may be a typo
zpe has joined #ocaml
brunoro_ has quit [Ping timeout: 240 seconds]
archer121 has quit [Ping timeout: 260 seconds]
zpe has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
conrad1 has joined #ocaml
fraggle-boate has joined #ocaml
sh0t has joined #ocaml
sh0t has quit [Remote host closed the connection]
conrad1 has quit [Ping timeout: 268 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
freusque has quit [Quit: WeeChat 1.4]
freusque has joined #ocaml
ygrek has joined #ocaml
AlexDenisov has joined #ocaml
<companion_cube> sgronblo_: there is ocp-json or something like this, too
FreeBirdLjj has joined #ocaml
<companion_cube> if you don't want ppx
dhil has joined #ocaml
vapid has joined #ocaml
vapid is now known as xenti
Simn has joined #ocaml
johnelse_ has joined #ocaml
bitbckt has quit [Ping timeout: 240 seconds]
bitbckt has joined #ocaml
etc has quit [Ping timeout: 260 seconds]
M-pesterhazy has quit [Ping timeout: 240 seconds]
M-martinklepsch has quit [Ping timeout: 240 seconds]
hank has joined #ocaml
bitbckt has quit [Ping timeout: 240 seconds]
<Algebr> ah, etc == charles
hbar_ has joined #ocaml
brunoro_ has joined #ocaml
M-pesterhazy has joined #ocaml
M-martinklepsch has joined #ocaml
bitbckt has joined #ocaml
brunoro_ has quit [Ping timeout: 265 seconds]
mfp has joined #ocaml
hank has quit [Ping timeout: 268 seconds]
<kakadu> Folks, are scripts that upgrade opam repositories from 1.2.2 to 2.0-something publicly availabe
<kakadu> ?
<kakadu> but maybe I will manage to fix old repo manually
chattere` has joined #ocaml
chattere` is now known as chattered
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brunoro_ has joined #ocaml
minn has quit [Ping timeout: 265 seconds]
jyc has quit [Ping timeout: 240 seconds]
jyc has joined #ocaml
AlexDenisov has joined #ocaml
rpip has quit [Ping timeout: 240 seconds]
jwatzman|work has joined #ocaml
rpip has joined #ocaml
larhat has joined #ocaml
zpe has joined #ocaml
xenti is now known as vapid
tennix has quit [Quit: WeeChat 1.6]
vapid is now known as xenti
xenti is now known as vapid
djellemah has quit [Ping timeout: 260 seconds]
djellemah has joined #ocaml
cpdean has joined #ocaml
cpdean has quit [Ping timeout: 250 seconds]
conrad1 has joined #ocaml
smondet` has quit [Ping timeout: 250 seconds]
conrad1 has quit [Ping timeout: 250 seconds]
Orion3k has quit [Ping timeout: 268 seconds]
hank has joined #ocaml
bgft has quit [Ping timeout: 260 seconds]
johnelse_ is now known as johnelse
bitbckt has quit [Ping timeout: 240 seconds]
Guest23668[m] has quit [Ping timeout: 240 seconds]
lpw25[m] has quit [Ping timeout: 240 seconds]
Bluddy[m] has quit [Ping timeout: 240 seconds]
bitbckt has joined #ocaml
bitbckt has joined #ocaml
bitbckt has quit [Changing host]
redf has joined #ocaml
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bluddy[m] has joined #ocaml
Guest23668[m] has joined #ocaml
lpw25[m] has joined #ocaml
hank has quit [Ping timeout: 260 seconds]
AlexDenisov has joined #ocaml
_whitelogger has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
demonimin has quit [Remote host closed the connection]
red_caml has joined #ocaml
demonimin has joined #ocaml
brunoro_ has quit [Ping timeout: 268 seconds]
srenatus[m] has quit [Ping timeout: 240 seconds]
regnat[m] has quit [Ping timeout: 240 seconds]
srenatus[m] has joined #ocaml
regnat[m] has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
demonimin has quit [Ping timeout: 248 seconds]
Reshi has joined #ocaml
chindy has joined #ocaml
ygrek has joined #ocaml
red_caml has quit [Ping timeout: 268 seconds]
yomimono has joined #ocaml
wu_ng has quit [Ping timeout: 248 seconds]
brunoro_ has joined #ocaml
demonimin has joined #ocaml
demonimin has quit [Changing host]
demonimin has joined #ocaml
average has joined #ocaml
AlexDenisov has joined #ocaml
regnat[m] has quit [Ping timeout: 240 seconds]
fraggle_ has joined #ocaml
regnat[m] has joined #ocaml
M-jimt has quit [Ping timeout: 240 seconds]
M-jimt has joined #ocaml
Reshi has quit [Quit: WeeChat 1.5]
M-Illandan has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
M-pesterhazy has quit [Ping timeout: 240 seconds]
M-pesterhazy has joined #ocaml
NhanH has quit [Ping timeout: 240 seconds]
NhanH has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 265 seconds]
M-Illandan has joined #ocaml
ygrek has quit [Ping timeout: 260 seconds]
M-pesterhazy has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
chindy has quit [Ping timeout: 260 seconds]
M-pesterhazy has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FreeBirdLjj has joined #ocaml
fraggle_ has quit [Ping timeout: 260 seconds]
conrad1 has joined #ocaml
srenatus[m] has quit [Ping timeout: 240 seconds]
srenatus[m] has joined #ocaml
agarwal1975 has joined #ocaml
conrad1 has quit [Ping timeout: 250 seconds]
silver has joined #ocaml
agarwal1975 has quit [Quit: agarwal1975]
timclassic has quit [Ping timeout: 240 seconds]
timclassic has joined #ocaml
AlexDenisov has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
Nahra` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<companion_cube> I think you can wait for opam 2 to be released
grayswandyr has joined #ocaml
Nahra has joined #ocaml
cpdean has joined #ocaml
cpdean has quit [Ping timeout: 260 seconds]
<grayswandyr> hi I wonder whether it is possible to define a non-abstract type for nonempty lists where standard functions may be (almost) directly implementable using the standard List functions and (almost) without runtime overhead
<grayswandyr> i.e. I want to be able to perform pattern matching so no abstract datatype
<companion_cube> module NonEmptyList : sig type 'a t = private 'a list val make : 'a -> 'a list -> 'a t … end = struct … end
<companion_cube> you're looking for "private aliases"
<companion_cube> pattern matching works, but not building values
<grayswandyr> right I knew private types but I had the feeling that it wouldn't solve the second part... that is almost directly relying on module List... perhaps I should have thought it more
<grayswandyr> I couldn't help but think some phantom type would have been necessary
<companion_cube> no, it's not necessary
<companion_cube> for instance you can write `map` by just aliasing to List.map
<grayswandyr> cool
<grayswandyr> oh yeah now I see :-) no access to [] so everything's ok
<grayswandyr> meaning no write access
<companion_cube> yeah, no way of building an empty list
<grayswandyr> yep I got it
<companion_cube> since you provide all t he functions that are allowed to produce new lists, you can ensure they will never yield empty lists
<grayswandyr> so do you use such a datatype for instance in your code
<companion_cube> for non empty lists, no
<grayswandyr> to avoid checing invariants
<companion_cube> but I have a lot of private aliases
<companion_cube> yes
<companion_cube> I have some AST types, coupled with constructor functions that enforce invariants
<jstolarek> is there a way to check whether an executable is a byt or native version?
<grayswandyr> e.g. (as you know it:) Kodkod blocks are non empty lists of formulas, representing a big conjunction
<grayswandyr> so I don't want to check all the time that my lists are indeed nonempty
<companion_cube> I mean, I have exactly one such formula
<companion_cube> hmm, I don't go that far into the type-safety ^^
<companion_cube> I could add a check at `mk_problem`, though
<companion_cube> but in practice it will never ever happen anyway
<grayswandyr> pb_goal
<grayswandyr> yeah sure but if you pattern match such formulas or need to perform a treatment that applies to nonempty lists only (meaning : no default case for []), how do you do
brunoro_ has quit [Ping timeout: 260 seconds]
<companion_cube> | [] -> assert false
<companion_cube> | _::_ -> …
<grayswandyr> yeah
<grayswandyr> I don't like that :)
<companion_cube> I tried to put more into types at some point (still have a very old branch with GADTs everywhere)
<companion_cube> but it was too much of a pain
<grayswandyr> yeah I wish we had some Liquid OCaml
<companion_cube> ah, that would be interesting indeed
<companion_cube> but right now, KISS
srenatus[m] has quit [Ping timeout: 240 seconds]
M-pesterhazy has quit [Ping timeout: 240 seconds]
M-jimt has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
<grayswandyr> BTW what is your strategy regarding errors. On a previous project of mine, I tried to forbid letting exceptions leak out of module boundaries but I wasn't followed by my fellow programmers
ygrek has joined #ocaml
<grayswandyr> I tried to get them to use result
<grayswandyr> (well an in-house variation of that at the time)
red_caml has joined #ocaml
<grayswandyr> I don't like the mix between assert false / invalid_arg /failwith / or_error and so on... I'd love to fix a better startegy
<companion_cube> hmmm, for nunchaku it's mostly "all errors are fatal" + Printexc.register_printer
<companion_cube> for non-fatal errors I try to use result/option, indeed, so it's more explicit
<grayswandyr> ok
M-pesterhazy has joined #ocaml
M-jimt has joined #ocaml
srenatus[m] has joined #ocaml
<companion_cube> the worst is when Not_found escapes, this really annoys me
<companion_cube> so, more options, less Not_found, more happiness
mcspud has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
<grayswandyr> all right thanks
chindy has joined #ocaml
<companion_cube> no pb
<companion_cube> have you tried the variable representation we discussed yet?
jyc has quit [Ping timeout: 240 seconds]
bitbckt has quit [Ping timeout: 240 seconds]
fraggle_ has joined #ocaml
jyc has joined #ocaml
M-pesterhazy has quit [Ping timeout: 240 seconds]
M-pesterhazy has joined #ocaml
bitbckt has joined #ocaml
red_caml has quit [Ping timeout: 265 seconds]
<grayswandyr> I made tests and I will indeed go this way
groovy2shoes has quit [Quit: Leaving]
mcspud has joined #ocaml
djellemah has quit [Ping timeout: 268 seconds]
fraggle_ has quit [Ping timeout: 260 seconds]
brunoro_ has joined #ocaml
chindy has quit [Remote host closed the connection]
djellemah has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
grayswandyr has quit [Quit: Page closed]
dhil has joined #ocaml
agarwal1975 has joined #ocaml
srenatus[m] has quit [Ping timeout: 240 seconds]
M-jimt has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 260 seconds]
conrad1 has joined #ocaml
bitbckt has quit [Ping timeout: 240 seconds]
barkmadley[m] has quit [Ping timeout: 240 seconds]
srenatus[m] has joined #ocaml
barkmadley[m] has joined #ocaml
bitbckt has joined #ocaml
bitbckt has joined #ocaml
bitbckt has quit [Changing host]
conrad1 has quit [Ping timeout: 260 seconds]
M-jimt has joined #ocaml
cpdean has joined #ocaml
fraggle_ has joined #ocaml
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
M-martinklepsch has quit [Ping timeout: 240 seconds]
M-martinklepsch has joined #ocaml
Guest23668[m] has quit [Ping timeout: 240 seconds]
lpw25[m] has quit [Ping timeout: 240 seconds]
<Algebr> hmm, tried loading up a library in utop with require and I get external function foo is not available, usually when that's the case its cause of a blow up from a shared lib not existing, but this is new to me
redf has quit [Quit: Page closed]
lpw25[m] has joined #ocaml
Guest23668[m] has joined #ocaml
beginner_ has joined #ocaml
orbifx-m has joined #ocaml
sh0t has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
nomicflux has joined #ocaml
FreeBirdLjj has joined #ocaml
shinnya has joined #ocaml
pierpa has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 268 seconds]
AlexDenisov has joined #ocaml
shinnya has quit [Read error: Connection reset by peer]
shinnya has joined #ocaml
dave___ has joined #ocaml
dave___ has quit [Client Quit]
dave___ has joined #ocaml
dave___ has left #ocaml [#ocaml]
shinnya has quit [Ping timeout: 250 seconds]
t4nk911 has joined #ocaml
pierpa` has joined #ocaml
dhil has joined #ocaml
pierpa` has quit [Client Quit]
pierpa` has joined #ocaml
nomicflux has quit [Quit: nomicflux]
hundo has joined #ocaml
t4nk911 has quit [Client Quit]
t4nk796 has joined #ocaml
shinnya has joined #ocaml
veggie_ has joined #ocaml
timclassic has quit [Ping timeout: 240 seconds]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 260 seconds]
shinnya has joined #ocaml
timclassic has joined #ocaml
AlexDenisov has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
<Algebr> is the ocmal dynlink search path in the env var CAML_LD_LIBRARY_PATH?
FreeBirdLjj has joined #ocaml
regnat[m] has quit [Ping timeout: 240 seconds]
orbifx-m2 has joined #ocaml
orbifx-m has quit [Ping timeout: 248 seconds]
regnat[m] has joined #ocaml
M-Illandan has quit [Ping timeout: 240 seconds]
red_caml has joined #ocaml
copy` has joined #ocaml
fraggle_ has quit [Ping timeout: 260 seconds]
orbifx-m has joined #ocaml
red_caml has quit [Ping timeout: 260 seconds]
M-Illandan has joined #ocaml
orbifx-m2 has quit [Ping timeout: 240 seconds]
sh0t has quit [Ping timeout: 240 seconds]
alfredo has quit [Quit: Textual IRC Client: www.textualapp.com]
fraggle_ has joined #ocaml
MercurialAlchemi has joined #ocaml
nomicflux has joined #ocaml
noddy has joined #ocaml
fraggle_ has quit [Ping timeout: 250 seconds]
ryanartecona has joined #ocaml
srenatus[m] has quit [Ping timeout: 240 seconds]
brunoro_ has quit [Ping timeout: 260 seconds]
dakk has quit [Ping timeout: 268 seconds]
timclassic has quit [Read error: Connection reset by peer]
M-Illandan has quit [Remote host closed the connection]
barkmadley[m] has quit [Read error: Connection reset by peer]
Guest23668[m] has quit [Write error: Connection reset by peer]
regnat[m] has quit [Write error: Connection reset by peer]
M-martinklepsch has quit [Write error: Connection reset by peer]
M-ErkkiSeppl has quit [Write error: Connection reset by peer]
Bluddy[m] has quit [Write error: Connection reset by peer]
lpw25[m] has quit [Write error: Connection reset by peer]
M-pesterhazy has quit [Write error: Connection reset by peer]
M-jimt has quit [Read error: Connection reset by peer]
conrad1 has joined #ocaml
lpw25[m] has joined #ocaml
conrad1 has quit [Ping timeout: 248 seconds]
freusque has quit [Quit: WeeChat 1.4]
smondet has joined #ocaml
struktured has quit [Ping timeout: 250 seconds]
regnat[m] has joined #ocaml
M-jimt has joined #ocaml
timclassic has joined #ocaml
M-pesterhazy has joined #ocaml
srenatus[m] has joined #ocaml
M-Illandan has joined #ocaml
Bluddy[m] has joined #ocaml
M-martinklepsch has joined #ocaml
Guest23668[m] has joined #ocaml
barkmadley[m] has joined #ocaml
M-ErkkiSeppl has joined #ocaml
jeffmo has joined #ocaml
al-damiri has joined #ocaml
malina has joined #ocaml
htch has quit [Ping timeout: 265 seconds]
slash^ has joined #ocaml
dhil has quit [Ping timeout: 248 seconds]
NhanH has quit [Ping timeout: 240 seconds]
t4nk796 has quit [Quit: Page closed]
rpip has quit [Ping timeout: 240 seconds]
NhanH has joined #ocaml
orbifx-m2 has joined #ocaml
larhat has quit [Quit: Leaving.]
orbifx-m has quit [Ping timeout: 268 seconds]
djellemah has quit [Ping timeout: 260 seconds]
pierpa has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rpip has joined #ocaml
pierpa has joined #ocaml
beginner_ has quit [Quit: Leaving]
two_wheels has joined #ocaml
two_wheels has quit [Client Quit]
brunoro_ has joined #ocaml
dhil has joined #ocaml
brunoro_ has quit [Ping timeout: 260 seconds]
fraggle_ has joined #ocaml
jmiven has quit [Quit: co'o]
jyc has quit [Ping timeout: 240 seconds]
mcspud has quit [Ping timeout: 240 seconds]
yomimono has quit [Quit: Leaving]
jyc has joined #ocaml
jmiven has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
mcspud has joined #ocaml
t4nk758 has joined #ocaml
zpe has quit [Remote host closed the connection]
htch has joined #ocaml
nomicflux has quit [Quit: nomicflux]
htch has quit [Ping timeout: 250 seconds]
djellemah has joined #ocaml
eh_eff_ has joined #ocaml
Algebr has quit [Ping timeout: 260 seconds]
alienbot has quit [Ping timeout: 240 seconds]
dhil has quit [Quit: Quit]
brunoro_ has joined #ocaml
jeroud has quit [Read error: Connection reset by peer]
jeroud has joined #ocaml
shinnya has quit [Ping timeout: 250 seconds]
dhil has joined #ocaml
mbrock has quit [Ping timeout: 240 seconds]
brunoro_ has quit [Ping timeout: 250 seconds]
parataxis has quit [Ping timeout: 240 seconds]
mbrock has joined #ocaml
parataxis has joined #ocaml
rightfold has quit [Ping timeout: 258 seconds]
M-jimt has quit [Ping timeout: 240 seconds]
rightfold has joined #ocaml
M-jimt has joined #ocaml
conrad1 has joined #ocaml
Orion3k has joined #ocaml
conrad1 has quit [Ping timeout: 250 seconds]
slash^ has quit [Read error: Connection reset by peer]
Algebr has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
dakk has joined #ocaml
Bacferi has joined #ocaml
Bacferi has quit [Client Quit]
Bacferi has joined #ocaml
pierpa has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Bacferi has quit [Client Quit]
pierpa` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
djellemah has quit [Ping timeout: 250 seconds]
htch has joined #ocaml
pierpa has joined #ocaml
two_wheels has joined #ocaml
AlexDenisov has joined #ocaml
htch has quit [Ping timeout: 248 seconds]
dakk has quit [Ping timeout: 260 seconds]
AlexDenisov has quit [Client Quit]
veggie_ has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
orbifx-m has joined #ocaml
rgrinberg has quit [Ping timeout: 250 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
thizanne_ has quit [Ping timeout: 240 seconds]
thizanne_ has joined #ocaml
orbifx-m2 has quit [Ping timeout: 268 seconds]
nomicflux has joined #ocaml
djellemah has joined #ocaml
brunoro_ has joined #ocaml
brunoro_ has quit [Ping timeout: 260 seconds]
orbifx has joined #ocaml
AlexDenisov has joined #ocaml
mcspud has quit [Ping timeout: 240 seconds]
veggie_ has joined #ocaml
orbifx has quit [Ping timeout: 265 seconds]
kakadu has quit [Quit: Konversation terminated!]
<sgronblo_> theres no >> for Lwt?
mcspud has joined #ocaml
noddy has quit [Ping timeout: 265 seconds]
dhil has quit [Ping timeout: 260 seconds]
rgrinberg has joined #ocaml
<Algebr> you can implement it in one line
mcspud has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
Algebr has quit [Ping timeout: 260 seconds]
dakk has joined #ocaml
htch has joined #ocaml
octachron has joined #ocaml
htch has quit [Ping timeout: 268 seconds]
mcspud has joined #ocaml
adi___ has quit [Read error: Connection reset by peer]
adi___ has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
veggie_ has quit [Ping timeout: 248 seconds]
<sgronblo_> any idea why this doesnt work: Printf.sprintf "Could only send %d/%d bytes when calling sendto\n" written_count expected_count
<sgronblo_> im getting some garbage about a type mismatch even though this should be a simple case
<sgronblo_> ocaml 4.02.3
<octachron> sgronblo_, this code fragment works for me, the error is probably elsewhere
<sgronblo_> yeah oops there was a leftover copied line somewhere else :(
<sgronblo_> thanks
kakadu has joined #ocaml
brunoro_ has joined #ocaml
veggie_ has joined #ocaml
brunoro_ has quit [Ping timeout: 265 seconds]
rgrinberg has quit [Ping timeout: 260 seconds]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
orbifx-m2 has joined #ocaml
zpe has quit [Ping timeout: 250 seconds]
orbifx-m has quit [Ping timeout: 268 seconds]
rgrinberg has joined #ocaml
conrad1 has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
conrad1 has quit [Ping timeout: 248 seconds]
noddy has joined #ocaml
orbifx-m has joined #ocaml
octachron has quit [Quit: Leaving]
orbifx-m2 has quit [Ping timeout: 250 seconds]
djellemah has quit [Ping timeout: 268 seconds]
minn has joined #ocaml
ryanartecona has joined #ocaml
zpe has joined #ocaml
larhat has joined #ocaml
rgrinberg has quit [Read error: Connection reset by peer]
brunoro_ has joined #ocaml
_whitelogger has joined #ocaml
djellemah has joined #ocaml
brunoro_ has quit [Ping timeout: 260 seconds]
veggie_ has quit [Ping timeout: 240 seconds]
t4nk758 has quit []
orbifx-m2 has joined #ocaml
orbifx-m has quit [Ping timeout: 260 seconds]
rgrinberg has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 268 seconds]
veggie_ has joined #ocaml
rgrinberg has quit [Read error: Connection reset by peer]
Algebr has joined #ocaml
brunoro_ has joined #ocaml
cpdean has joined #ocaml
jyc has quit [Ping timeout: 240 seconds]
brunoro_ has quit [Ping timeout: 240 seconds]
jyc has joined #ocaml
rgrinberg has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
eh_eff_ has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Read error: Connection reset by peer]
_whitelogger_ has joined #ocaml
jyc has quit [*.net *.split]
veggie_ has quit [*.net *.split]
_whitelogger has quit [*.net *.split]
larhat has quit [*.net *.split]
thizanne_ has quit [*.net *.split]
M-jimt has quit [*.net *.split]
rpip has quit [*.net *.split]
barkmadley[m] has quit [*.net *.split]
M-ErkkiSeppl has quit [*.net *.split]
Guest23668[m] has quit [*.net *.split]
M-pesterhazy has quit [*.net *.split]
smondet has quit [*.net *.split]
M-Illandan has quit [*.net *.split]
Bluddy[m] has quit [*.net *.split]
srenatus[m] has quit [*.net *.split]
M-martinklepsch has quit [*.net *.split]
regnat[m] has quit [*.net *.split]
timclassic has quit [*.net *.split]
lpw25[m] has quit [*.net *.split]
bitbckt has quit [*.net *.split]
ygrek has quit [*.net *.split]
silver has quit [*.net *.split]
hbar_ has quit [*.net *.split]
zv has quit [*.net *.split]
kolko has quit [*.net *.split]
Muzer has quit [*.net *.split]
reynir has quit [*.net *.split]
saidinwot1 has quit [*.net *.split]
cschneid- has quit [*.net *.split]
jyc_ is now known as jyc
M-ErkkiSeppl has joined #ocaml
barkmadley[m] has joined #ocaml
Bluddy[m] has joined #ocaml
minn has quit [Quit: Leaving]
malina has quit [Ping timeout: 265 seconds]
silver_ has quit [Ping timeout: 265 seconds]
ryanartecona has quit [Ping timeout: 265 seconds]
tg has quit [Remote host closed the connection]
mfp has quit [Ping timeout: 265 seconds]
hbar has joined #ocaml
mfp has joined #ocaml
ygrek has joined #ocaml
Algebr has quit [Ping timeout: 260 seconds]
malina has joined #ocaml
regnat[m] has joined #ocaml
Muzer has joined #ocaml
hbar has quit [*.net *.split]
averell has quit [*.net *.split]
Drup has quit [*.net *.split]
jlouis has quit [*.net *.split]
mehdib has quit [*.net *.split]
lobo has quit [*.net *.split]
noplamodo_ has quit [*.net *.split]
myst|fon has quit [*.net *.split]
jun has quit [*.net *.split]
lpw25[m] has joined #ocaml
tg has joined #ocaml
noddy has quit [*.net *.split]
fraggle-boate has quit [*.net *.split]
M-pesterhazy has joined #ocaml
M-jimt has joined #ocaml
timclassic has joined #ocaml
zv has joined #ocaml
M-martinklepsch has joined #ocaml
srenatus[m] has joined #ocaml
mbrock has quit [Ping timeout: 260 seconds]
Guest23668[m] has joined #ocaml
winterfury has joined #ocaml
M-Illandan has joined #ocaml
mbrock has joined #ocaml
mehdib has joined #ocaml
jlouis has joined #ocaml
lobo has joined #ocaml
Drup has joined #ocaml
noplamodo_ has joined #ocaml
myst|fon has joined #ocaml
jun has joined #ocaml
hbar has joined #ocaml
saidinwot1 has joined #ocaml
eh_eff_ has joined #ocaml
rpip has joined #ocaml
strmpnk has quit [Ping timeout: 260 seconds]
strmpnk has joined #ocaml
eh_eff_ has quit [Ping timeout: 250 seconds]
cpdean has joined #ocaml
alpen has quit [Ping timeout: 260 seconds]
conrad1 has joined #ocaml
yunxing has quit [Ping timeout: 260 seconds]
yunxing has joined #ocaml
alpen has joined #ocaml
djellemah has quit [Ping timeout: 248 seconds]
conrad1 has quit [Ping timeout: 268 seconds]
dakk has joined #ocaml
brunoro_ has joined #ocaml
eh_eff_ has joined #ocaml
cpdean has quit [Read error: Connection reset by peer]
cpdean has joined #ocaml
brunoro_ has quit [Ping timeout: 258 seconds]
smondet has joined #ocaml
noddy has joined #ocaml
silver__ has quit [Quit: rakede]
eh_eff_ has quit [Ping timeout: 268 seconds]
rpcope has quit [Quit: ZNC - http://znc.in]
rpcope has joined #ocaml
jeffmo has quit [Quit: jeffmo]
cpdean has quit [Ping timeout: 260 seconds]
hank has joined #ocaml
zpe has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
veggie__ has quit [Quit: WeeChat 1.5]
veggie_ has joined #ocaml
two_wheels has quit [Ping timeout: 260 seconds]
hank has quit [Ping timeout: 260 seconds]
tmtwd has joined #ocaml
winterfury has quit [Quit: Page closed]
kakadu has quit [Remote host closed the connection]
eh_eff_ has joined #ocaml
two_wheels has joined #ocaml
cpdean has joined #ocaml
nicholasf has joined #ocaml
alienbot has joined #ocaml
brunoro_ has joined #ocaml
fraggle-boate has joined #ocaml
Simn has quit [Quit: Leaving]
eh_eff_ has quit [Ping timeout: 260 seconds]
agarwal1975 has quit [Quit: agarwal1975]
shinnya has joined #ocaml
brunoro_ has quit [Ping timeout: 258 seconds]
shinnya has quit [Ping timeout: 258 seconds]
fraggle-boate has quit [*.net *.split]
shinnya has joined #ocaml
orbifx-m has joined #ocaml
orbifx-m2 has quit [Ping timeout: 268 seconds]
fraggle-boate has joined #ocaml
two_wheels has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
orbifx-m has quit [Ping timeout: 260 seconds]
madroach has quit [Read error: Connection reset by peer]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
conrad1 has joined #ocaml
two_wheels has joined #ocaml
conrad1 has quit [Ping timeout: 258 seconds]
madroach has joined #ocaml
brunoro_ has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
dakk has quit [Ping timeout: 258 seconds]
brunoro_ has quit [Ping timeout: 258 seconds]
two_wheels has quit [Quit: My Mac has gone to sleep. ZZZzzz…]