adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
larhat has quit [Quit: Leaving.]
jlongster has joined #ocaml
jlongster has quit [Client Quit]
<P4Titan> How do multiword file names (such as test_file.ml) turn into a module?
<P4Titan> Would anyone know?
<companion_cube> just capitalize the first letter
<companion_cube> that's the only change
<companion_cube> module will be Test_file
<P4Titan> is there a way to get it to be Test.File
<P4Titan> but to have the contents of Test.State in a different file?
<P4Titan> for example
marsam has quit [Ping timeout: 240 seconds]
spew has joined #ocaml
snhmib has quit [Quit: WeeChat 1.6]
spew has quit [Client Quit]
govg has quit [Quit: leaving]
govg has joined #ocaml
apache3_ is now known as apache3
wtetzner has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
ziyourenxiang has joined #ocaml
pyx has joined #ocaml
pyx has quit [Client Quit]
jlongster has joined #ocaml
spew has joined #ocaml
jlongster has quit [Client Quit]
silver has quit [Read error: Connection reset by peer]
manizzle has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
jlongster has joined #ocaml
shinnya has joined #ocaml
tobast1 has quit [Ping timeout: 240 seconds]
copy` has quit [Quit: Connection closed for inactivity]
spew has quit [Quit: foobar]
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 240 seconds]
jao has quit [Remote host closed the connection]
BitPuffin|osx has quit [Ping timeout: 264 seconds]
jao has joined #ocaml
wtetzner has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ziyourenxiang has quit [Quit: Leaving]
wtetzner has quit [Remote host closed the connection]
frug72 has quit [Quit: ZNC - http://znc.in]
shinnya has quit [Ping timeout: 256 seconds]
jao has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ocaml
rpg_ has quit [Ping timeout: 240 seconds]
cbot_ has quit [Quit: Leaving]
moei has quit [Quit: Leaving...]
pilne has quit [Quit: Quitting!]
moei has joined #ocaml
MercurialAlchemi has joined #ocaml
_whitelogger has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
kakadu has joined #ocaml
tane has joined #ocaml
Muzer has quit [Ping timeout: 256 seconds]
argent_smith has joined #ocaml
DASE has joined #ocaml
DASE has quit [Client Quit]
Muzer has joined #ocaml
ziyourenxiang has joined #ocaml
Autolycus has joined #ocaml
bungoman has joined #ocaml
AlexDenisov has joined #ocaml
slash^ has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
larhat has joined #ocaml
Autolycus has quit []
argent_smith has quit [Quit: Leaving.]
snhmib has joined #ocaml
mfp has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
silver has joined #ocaml
ziyourenxiang has quit [Ping timeout: 258 seconds]
BitPuffin|osx has joined #ocaml
ziyourenxiang has joined #ocaml
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
kakadu has quit [Client Quit]
kakadu has joined #ocaml
larhat has quit [Quit: Leaving.]
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
nightmared_ has quit [Quit: WeeChat 1.7]
nightmared has joined #ocaml
tobast1 has joined #ocaml
bungoman has quit [Quit: Leaving]
trapz has joined #ocaml
<companion_cube> you'd have to use module aliases or packs
Algebr has joined #ocaml
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 268 seconds]
kakadu_ has quit [Ping timeout: 260 seconds]
kakadu has joined #ocaml
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 240 seconds]
trapz has quit [Quit: trapz]
orbifx has joined #ocaml
trapz has joined #ocaml
FreeBirdLjj has joined #ocaml
Space_Sheep has joined #ocaml
octachron has joined #ocaml
trapz has quit [Quit: trapz]
SpaceSheep has quit [Ping timeout: 260 seconds]
orbifx has quit [Ping timeout: 240 seconds]
orbifx has joined #ocaml
SpaceSheep has joined #ocaml
orbifx has quit [Ping timeout: 258 seconds]
rpg_ has joined #ocaml
Space_Sheep has quit [Ping timeout: 240 seconds]
<mrvn> P4Titan: module Test = struct module File = Test_File module State = Test_State end
fraggle_ has joined #ocaml
tobast1 has quit [Ping timeout: 264 seconds]
haesbaer1 has quit [Quit: leaving]
haesbaert has joined #ocaml
<mrvn> would there be any concerns in using setjmp/longjmp in C bindings within the same C call?
Algebr has quit [Ping timeout: 260 seconds]
trapz has joined #ocaml
jao has joined #ocaml
Algebr has joined #ocaml
Algebr has quit [Remote host closed the connection]
Algebr has joined #ocaml
trapz has quit [Quit: trapz]
pilne has joined #ocaml
rand__ has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
slash^ has joined #ocaml
<maattdd> Hi
spew has joined #ocaml
nightmared has quit [Quit: WeeChat 1.7]
<maattdd> What is the root of this ?
<maattdd> I mean I guess there is a rationale behind this behavior but I don't see where you would prefer having a non polymorphic function
nightmared has joined #ocaml
<octachron> maattdd, the root problem is the interaction between polymorphism and side effect
<octachron> in short function application can create internal reference, and reference type cannot be generalized
<octachron> otherwise they could be written/read with inconsistent types at different points in the same program, e.g what is the type of "r" in "let r = ref None" ?
argent_smith has joined #ocaml
P4Titan has left #ocaml ["ERC Version 5.3 (IRC client for Emacs)"]
nomicflux has joined #ocaml
wtetzner has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
govg has joined #ocaml
argent_smith has quit [Quit: Leaving.]
kakadu_ has quit []
kakadu has joined #ocaml
agarwal1975 has joined #ocaml
Algebr has quit [Ping timeout: 260 seconds]
mengu has joined #ocaml
Anarchos has joined #ocaml
Algebr has joined #ocaml
agarwal1975_ has joined #ocaml
tobast1 has joined #ocaml
agarwal1975 has quit [Ping timeout: 264 seconds]
agarwal1975_ is now known as agarwal1975
agarwal1975_ has joined #ocaml
agarwal1975 has quit [Ping timeout: 260 seconds]
agarwal1975_ is now known as agarwal1975
agarwal1975_ has joined #ocaml
agarwal1975 has quit [Ping timeout: 240 seconds]
agarwal1975 has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
agarwal1975_ has quit [Ping timeout: 240 seconds]
slash^ has quit [Remote host closed the connection]
slash^ has joined #ocaml
agarwal1975_ has joined #ocaml
agarwal1975 has quit [Ping timeout: 240 seconds]
agarwal1975_ is now known as agarwal1975
<kakadu> Folks, can I hack reexporting a type while substituting some parameters? https://paste.in.ua/2562/raw/
<Drup> No
Simn has joined #ocaml
shinnya has joined #ocaml
<flux> I don't understand how that could be legal. I mean, you're adding a type constraint there yet saying it's a type alias?
<kakadu> It still kind of alias
<kakadu> There real issue that I want be able to write ` type 'a list = ('a, 'a list) L.glist` and
<kakadu> have access to constructors of glist in place where I declare 'a list
<Drup> then do both, just not in the same declaration
<kakadu> I need them because I want to feed definition of `'a list` to ppx_deriving and make it know the structure of `(_,_) glist`
<flux> would objects work for your case. to me it sounds like you might want subtyping.
<Drup> ppx_deriving works on type aliases, you can still do two separate declaration
<Drup> you can't do one
<Drup> It's a self inflicted problem :)
<kakadu> Drup: what do you mean, works? I need a specific deriver which should know the constructors of _ glist in place where 'a list is declared
<kakadu> The only option I see is to hack ppx_deriving to have a function which look for a type by path in a current module
<Drup> type ('a, b) glist = ('a, 'b) L.glist = ... [@deriving ...]
<Drup> type 'a list = ('a, 'a list) glist [@deriving ...]
<kakadu> As I said I want to know constructors of glist in place where `_ list` is declared.
<Drup> well, I mean, you just put the two declarations at the same place, and you have everything you want in the same scope
<kakadu> Whitequark proposed to use ppx_import to grap the glist declaration but it seems that with this approach I should save constructors somewhere in the parsetree and I can figure out why
<Drup> I don't understand your problem. If the mater is just managing to apply deriving, then I gave you the solution.
<kakadu> I want while deriving some code for type 'a list to know more information about type glist: is it a polymorphic variant or an object? If it is algebraic datatype how many constructors does it have and how they are named?
<Drup> So you want to write a non-composable deriver
<Drup> that's bad, but well, "type ... and" is your friend, I guess.
<kakadu> adding `and ` will mean that later I can't derive any type that uses glist in my way
<kakadu> It seems that I should hack ppx_derivnig and add extra parameter which will try to find type declaration in the current file by absolute path
<Drup> You don't really need to hack ppx deriving for that, you just need to incorpore the features of ppx import
<kakadu> But using ppx_import to import 'glist' I need to have a valid intermediate parsetree between invocation of ppx_import and ppx_deriving. And I can't figure out how it may look like. I made an attempt in a paste above but this attemp doesn't work
marsam has joined #ocaml
ziyourenxiang has quit [Quit: Leaving]
Algebr has quit [Ping timeout: 258 seconds]
Mercuria1Alchemi has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
rpg_ has quit [Quit: Textual IRC Client: www.textualapp.com]
wtetzner has quit [Remote host closed the connection]
cbot has joined #ocaml
argent_smith has joined #ocaml
TheLemonMan has joined #ocaml
agarwal1975 has quit [Quit: agarwal1975]
sh0t has joined #ocaml
spew has quit [Quit: foobar]
spew has joined #ocaml
spew has quit [Client Quit]
Algebr has joined #ocaml
kakadu has quit [Ping timeout: 260 seconds]
slash^ has quit [Read error: Connection reset by peer]
kakadu has joined #ocaml
copy` has joined #ocaml
cbot has quit [Ping timeout: 264 seconds]
marsam has quit [Ping timeout: 258 seconds]
ryanartecona has joined #ocaml
cbot has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
argent_smith has quit [Quit: Leaving.]
orbifx has joined #ocaml
wtetzner has joined #ocaml
shinnya has quit [Ping timeout: 268 seconds]
octachron has quit [Quit: Leaving]
wtetzner has quit [Remote host closed the connection]
Mercuria1Alchemi has quit [Ping timeout: 256 seconds]
dmoerner has joined #ocaml
manizzle has quit [Ping timeout: 260 seconds]
rand__ has quit [Quit: leaving]
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
vinoski has quit [Ping timeout: 252 seconds]
vinoski has joined #ocaml
bitbckt has quit [Ping timeout: 252 seconds]
bitbckt has joined #ocaml
tane has quit [Ping timeout: 256 seconds]
thegameg has quit [Ping timeout: 252 seconds]
asmanur has quit [Ping timeout: 252 seconds]
asmanur has joined #ocaml
thegameg has joined #ocaml
larhat has joined #ocaml
<orbifx> sup all?
tane has joined #ocaml
sh0t has quit [Remote host closed the connection]
orbifx has quit [Ping timeout: 268 seconds]
tane has quit [Quit: Leaving]
ygrek has joined #ocaml
Simn has quit [Quit: Leaving]
ryanartecona has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
ygrek has quit [Ping timeout: 240 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
cbot has quit [Ping timeout: 240 seconds]
Algebr has quit [Remote host closed the connection]
cbot has joined #ocaml
agarwal1975 has joined #ocaml
snhmib has quit [Ping timeout: 260 seconds]
kakadu has quit [Remote host closed the connection]
maattdd has quit [Read error: Connection reset by peer]
wtetzner has joined #ocaml
cbot has quit [Quit: Leaving]
sgronblo has quit [Ping timeout: 246 seconds]
marsam has joined #ocaml
sgronblo has joined #ocaml