lapinou changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | http://www.ocaml.org | OCaml 4.01.0 announce at http://bit.ly/1851A3R | Public logs at http://tunes.org/~nef/logs/ocaml/
ikaros has quit [Quit: Ex-Chat]
talzeus has quit [Remote host closed the connection]
Simn has quit [Quit: Leaving]
travisbrady has joined #ocaml
S11001001 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
tautologico has joined #ocaml
freling has quit [Ping timeout: 265 seconds]
dlat has quit [Ping timeout: 265 seconds]
demonimin has quit [Ping timeout: 265 seconds]
whitequark has quit [Ping timeout: 265 seconds]
freling has joined #ocaml
whitequark has joined #ocaml
gereedy has quit [Ping timeout: 265 seconds]
leifw has quit [Ping timeout: 265 seconds]
demonimin has joined #ocaml
demonimin has quit [Changing host]
demonimin has joined #ocaml
dlat has joined #ocaml
leifw has joined #ocaml
divyanshu has joined #ocaml
gereedy has joined #ocaml
stomp has quit [Ping timeout: 265 seconds]
divyanshu has quit [Client Quit]
stomp has joined #ocaml
robink_ has quit [Read error: Connection reset by peer]
robink has joined #ocaml
jonludlam has quit [Remote host closed the connection]
q66 has quit [Quit: Leaving]
jwatzman|work has quit [Quit: jwatzman|work]
clan has joined #ocaml
robink_ has joined #ocaml
shinnya has quit [Ping timeout: 246 seconds]
robink has quit [Ping timeout: 265 seconds]
lopex has quit [Read error: Network is unreachable]
Guest17399 has joined #ocaml
Guest17399 is now known as lopex
chris2_ has joined #ocaml
_habnabit has quit [Ping timeout: 265 seconds]
bitbckt has quit [Ping timeout: 265 seconds]
chris2 has quit [Ping timeout: 265 seconds]
bitbckt has joined #ocaml
_habnabit has joined #ocaml
jwatzman|work has joined #ocaml
introom has joined #ocaml
tlockney is now known as tlockney_away
claudiuc has quit [Remote host closed the connection]
introom has quit [Client Quit]
zpe has joined #ocaml
introom has joined #ocaml
claudiuc has joined #ocaml
introom has quit [Client Quit]
chris2_ is now known as chris2
introom has joined #ocaml
zpe has quit [Ping timeout: 264 seconds]
introom has quit [Ping timeout: 246 seconds]
introom has joined #ocaml
tulloch_ has joined #ocaml
claudiuc has quit [Remote host closed the connection]
tulloch has quit [Ping timeout: 246 seconds]
boogie has quit [Remote host closed the connection]
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
tulloch_ has quit [Ping timeout: 246 seconds]
Fullma has quit [Ping timeout: 246 seconds]
divyanshu has joined #ocaml
divyanshu has quit [Client Quit]
divyanshu has joined #ocaml
studybot_ has joined #ocaml
tulloch has joined #ocaml
studybot_ is now known as talzeus
travisbrady has quit [Quit: travisbrady]
divyanshu has quit [Client Quit]
travisbrady has joined #ocaml
nikki93 has quit [Remote host closed the connection]
nikki93 has joined #ocaml
nikki93 has quit [Read error: Connection reset by peer]
nikki93 has joined #ocaml
tnguyen has joined #ocaml
travisbrady has quit [Quit: travisbrady]
travisbrady has joined #ocaml
zpe has joined #ocaml
manizzle has quit [Ping timeout: 246 seconds]
zpe has quit [Ping timeout: 240 seconds]
nikki93 has quit [Remote host closed the connection]
nikki93 has joined #ocaml
travisbrady has quit [Quit: travisbrady]
nikki93 has quit [Remote host closed the connection]
nikki93 has joined #ocaml
yacks has joined #ocaml
avsm has joined #ocaml
travisbrady has joined #ocaml
watermind has joined #ocaml
ygrek has joined #ocaml
divyanshu has joined #ocaml
tulloch has quit [Ping timeout: 246 seconds]
tulloch has joined #ocaml
travisbrady has quit [Quit: travisbrady]
zpe has joined #ocaml
zpe has quit [Ping timeout: 264 seconds]
pyon has joined #ocaml
tlockney_away is now known as tlockney
jwatzman|work has quit [Quit: jwatzman|work]
paracetamolo has quit [Quit: Page closed]
watermind has quit [Quit: Konversation terminated!]
boogie has joined #ocaml
divyanshu has quit [Quit: Computer has gone to sleep.]
manizzle has joined #ocaml
ousado_ has joined #ocaml
ousado has quit [Ping timeout: 264 seconds]
zpe has joined #ocaml
zpe has quit [Ping timeout: 246 seconds]
siddharthv_away is now known as siddharthv
divyanshu has joined #ocaml
darkf has quit [Ping timeout: 255 seconds]
robink_ is now known as robink
darkf has joined #ocaml
avsm has quit [Quit: Leaving.]
ruzu has joined #ocaml
introom has quit [Ping timeout: 246 seconds]
boogie has quit [Remote host closed the connection]
manizzle has quit [Ping timeout: 264 seconds]
zpe has joined #ocaml
divyanshu has quit [Quit: Computer has gone to sleep.]
zpe has quit [Ping timeout: 246 seconds]
divyanshu has joined #ocaml
claudiuc has joined #ocaml
divyanshu has quit [Client Quit]
introom has joined #ocaml
divyanshu has joined #ocaml
lostcuaz has joined #ocaml
divyanshu has quit [Client Quit]
divyanshu has joined #ocaml
divyanshu has quit [Quit: Computer has gone to sleep.]
tlockney is now known as tlockney_away
claudiuc has quit [Remote host closed the connection]
claudiuc has joined #ocaml
divyanshu has joined #ocaml
claudiuc has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
milosn has quit [Ping timeout: 240 seconds]
ygrek has quit [Ping timeout: 246 seconds]
milosn has joined #ocaml
phay has joined #ocaml
ddosia has joined #ocaml
axiles has joined #ocaml
nikki93 has quit [Remote host closed the connection]
nikki93 has joined #ocaml
nikki93 has quit [Ping timeout: 264 seconds]
ggole has joined #ocaml
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siddharthv is now known as siddharthv_away
siddharthv_away is now known as siddharthv
ulfdoz has joined #ocaml
angerman has joined #ocaml
Hannibal_Smith has joined #ocaml
ygrek has joined #ocaml
zpe has joined #ocaml
claudiuc has joined #ocaml
Arsenik has joined #ocaml
zpe has quit [Ping timeout: 264 seconds]
ulfdoz has quit [Ping timeout: 246 seconds]
csakatoku has joined #ocaml
Simn has joined #ocaml
wombat1 has joined #ocaml
Fullma has joined #ocaml
maattdd has joined #ocaml
claudiuc_ has joined #ocaml
Arsenik has quit [Remote host closed the connection]
claudiuc has quit [Ping timeout: 240 seconds]
yacks has quit [Quit: Leaving]
pyon has quit [Quit: zzz]
rwmjones has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
wombat1 has quit [Ping timeout: 246 seconds]
zpe has joined #ocaml
yacks has joined #ocaml
adrien_o1w is now known as adrien_oww
<adrien_oww> morning
zpe has quit [Ping timeout: 264 seconds]
avsm has joined #ocaml
phay has quit [Remote host closed the connection]
rwmjones has joined #ocaml
avsm has quit [Client Quit]
cago has joined #ocaml
phay has joined #ocaml
introom has quit [Ping timeout: 240 seconds]
wombat1 has joined #ocaml
Kakadu has joined #ocaml
ddosia has quit [Quit: Leaving.]
cago has quit [Quit: Leaving.]
cago has joined #ocaml
introom has joined #ocaml
lordkryss has joined #ocaml
mika1 has joined #ocaml
<freling> morning
<Kakadu> hi!
<companion_cube> o/
AltGr has joined #ocaml
maattdd has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
csakatoku has quit [Remote host closed the connection]
zpe has quit [Ping timeout: 246 seconds]
csakatoku has joined #ocaml
nikki93 has joined #ocaml
eni has joined #ocaml
ikaros has joined #ocaml
mort___ has joined #ocaml
introom has quit [Ping timeout: 264 seconds]
zpe has joined #ocaml
cago has quit [Ping timeout: 240 seconds]
cago1 has joined #ocaml
nikki93 has quit [Ping timeout: 240 seconds]
tulloch has quit [Read error: Connection reset by peer]
maattdd has joined #ocaml
wombat1 has quit [Ping timeout: 240 seconds]
tulloch has joined #ocaml
ousado_ is now known as ousado
ousado has quit [Changing host]
ousado has joined #ocaml
jonludlam has joined #ocaml
ohama has quit [Read error: Operation timed out]
ohama has joined #ocaml
dsheets has quit [Ping timeout: 264 seconds]
wombat1 has joined #ocaml
wombat1 has quit [Ping timeout: 264 seconds]
tulloch has quit [Ping timeout: 264 seconds]
tulloch has joined #ocaml
avsm has joined #ocaml
mort___ has quit [Ping timeout: 240 seconds]
sw1nn has joined #ocaml
zpe has quit [Remote host closed the connection]
wombat1 has joined #ocaml
zpe has joined #ocaml
csakatoku has quit []
zpe has quit [Ping timeout: 246 seconds]
cago1 has quit [Ping timeout: 240 seconds]
divyanshu has quit [Quit: Computer has gone to sleep.]
divyanshu has joined #ocaml
divyanshu has quit [Client Quit]
divyanshu has joined #ocaml
ollehar has joined #ocaml
eni has quit [Remote host closed the connection]
zpe has joined #ocaml
divyanshu has quit [Quit: Computer has gone to sleep.]
cago has joined #ocaml
ygrek has quit [Ping timeout: 264 seconds]
_andre has joined #ocaml
wombat1 has quit [Ping timeout: 246 seconds]
tulloch_ has joined #ocaml
tulloch has quit [Ping timeout: 240 seconds]
phay has quit [Remote host closed the connection]
jao has quit [Ping timeout: 240 seconds]
venk has quit [Ping timeout: 240 seconds]
phay has joined #ocaml
avsm has quit [Quit: Leaving.]
phay has quit [Ping timeout: 240 seconds]
divyanshu has joined #ocaml
cago has quit [Ping timeout: 240 seconds]
tulloch_ has quit [Ping timeout: 264 seconds]
tulloch has joined #ocaml
cago has joined #ocaml
introom has joined #ocaml
tobiasBora has joined #ocaml
talzeus has quit [Remote host closed the connection]
tulloch has quit [Read error: Connection reset by peer]
talzeus has joined #ocaml
tobiasBora has quit [Read error: No route to host]
tobiasBora has joined #ocaml
tulloch has joined #ocaml
talzeus has quit [Remote host closed the connection]
tobiasBora has quit [Ping timeout: 240 seconds]
divyanshu has quit [Quit: Computer has gone to sleep.]
sw1nn has quit [Remote host closed the connection]
divyanshu has joined #ocaml
watermind has joined #ocaml
tobiasBora has joined #ocaml
yacks has quit [Remote host closed the connection]
divyanshu has quit [Quit: Computer has gone to sleep.]
cago has quit [Ping timeout: 264 seconds]
divyanshu has joined #ocaml
ruzu has quit [Read error: Connection reset by peer]
divyanshu has quit [Client Quit]
cago has joined #ocaml
darkf has quit [Quit: Leaving]
watermind has quit [Quit: Konversation terminated!]
talzeus has joined #ocaml
talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
dsheets has joined #ocaml
tulloch has quit [Ping timeout: 246 seconds]
Hannibal_Smith has quit [Read error: No route to host]
ikaros has quit [Quit: Ex-Chat]
ikaros has joined #ocaml
nikki93 has joined #ocaml
AltGr has left #ocaml []
AltGr has joined #ocaml
claudiuc has joined #ocaml
cago has quit [Quit: Leaving.]
cago has joined #ocaml
yacks has joined #ocaml
claudiuc_ has quit [Ping timeout: 240 seconds]
Fullma has quit [Ping timeout: 264 seconds]
tulloch has joined #ocaml
nikki93 has quit [Remote host closed the connection]
avsm has joined #ocaml
travisbrady has joined #ocaml
ollehar has quit [Quit: ollehar]
yacks has quit [Ping timeout: 255 seconds]
claudiuc_ has joined #ocaml
travisbrady has quit [Quit: travisbrady]
claudiuc has quit [Ping timeout: 255 seconds]
shinnya has joined #ocaml
AltGr has left #ocaml []
AltGr has joined #ocaml
avsm has quit [Ping timeout: 264 seconds]
lostcuaz has joined #ocaml
cago has quit [Quit: Leaving.]
cago has joined #ocaml
cago has quit [Ping timeout: 255 seconds]
yacks has joined #ocaml
Khady has quit [Changing host]
Khady has joined #ocaml
travisbrady has joined #ocaml
divyanshu has joined #ocaml
tulloch has quit [Ping timeout: 264 seconds]
maattdd has quit [Ping timeout: 246 seconds]
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_andre_ has joined #ocaml
nlucaroni has joined #ocaml
ggole has quit [Excess Flood]
nikki93 has joined #ocaml
tautologico has quit [Quit: Connection closed for inactivity]
_andre has quit [Write error: Broken pipe]
ygrek has joined #ocaml
ggole has joined #ocaml
paolooo has joined #ocaml
RMacy has joined #ocaml
maattdd has joined #ocaml
sw1nn has joined #ocaml
siddharthv is now known as siddharthv_away
divyanshu has quit [Ping timeout: 264 seconds]
maattdd has quit [Ping timeout: 255 seconds]
divyanshu has joined #ocaml
divyanshu has quit [Client Quit]
divyanshu has joined #ocaml
mika1 has quit [Quit: Leaving.]
shinnya has quit [Ping timeout: 255 seconds]
tulloch has joined #ocaml
xianxu has joined #ocaml
sw1nn has quit [Remote host closed the connection]
tulloch has quit [Ping timeout: 255 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
xianxu has quit [Quit: leaving]
xianxu has joined #ocaml
ollehar has joined #ocaml
paolooo has quit [Ping timeout: 245 seconds]
jwatzman|work has joined #ocaml
claudiuc_ has quit [Remote host closed the connection]
Hannibal_Smith has joined #ocaml
tlockney_away is now known as tlockney
maattdd has joined #ocaml
maattdd has quit [Ping timeout: 255 seconds]
travisbrady has quit [Quit: travisbrady]
mcclurmc has joined #ocaml
boogie has joined #ocaml
rand000 has joined #ocaml
tnguyen has quit [Ping timeout: 246 seconds]
watermind has joined #ocaml
zpe has quit [Remote host closed the connection]
nikki93 has quit [Remote host closed the connection]
zpe has joined #ocaml
nikki93 has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
introom has quit [Ping timeout: 240 seconds]
mcclurmc has quit [Remote host closed the connection]
boogie has quit [Remote host closed the connection]
nikki93 has quit [Ping timeout: 264 seconds]
tnguyen has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
Kakadu has quit [Ping timeout: 245 seconds]
lostcuaz has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
nikki93 has joined #ocaml
boogie has joined #ocaml
mort___ has joined #ocaml
justinfront has joined #ocaml
angerman has quit [Quit: Gone]
<justinfront> is there a beginners irc or is it ok to post questions here?
<Drup> you can ask here
ghostbusters has joined #ocaml
<justinfront> I wanted to modify some code IO.nwrite ch "some text"; but trying to write svg header so it's full of characters that need escape I suspect is there a nice way to do this or do i need to add lots of \ in ?
<Drup> before you go on : which library are you using ?
<justinfront> I was looking at ttf in libs in haxe
<Drup> ok
<Drup> (do you have a direct link to the source ?)
<justinfront> https://github.com/HaxeFoundation/ocamllibs/blob/master/ttflib/tTFCanvasWriter.ml having a go at modifying it to output svg.
<Drup> I don't really know ttf lib
<Drup> but 1) I don't think you have another solution
<Drup> 2) you can put utf8 char in ocaml strings without any issues
<Drup> (except that the length and the random access are going to be wrong, but you probably don't care)
<justinfront> So I have text like this <?xml version="1.0" encoding="utf-8"?> that becomes IO.nwrite ch "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n;
<Drup> afaik, yes
maattdd has joined #ocaml
<justinfront> and it seems a bit messy textmate seems to be useful at spotting when stuff is not valid string but just was thinking it's messy
<Drup> next ocaml version will have a nicer solution for that :p
<justinfront> ok if that is correct approach that's fine can I use single quotes ?
<Drup> single quote in a string, yes
<Drup> single quote as string delimiter, no
<justinfront> another question totally unrelated except in respect it concerns same code bases, is I was wondering about ocamljava. I tried setting it up but I had some issues with https://github.com/HaxeFoundation/ocamllibs/blob/master/extc/ should it be feasible to compile stuff like this with ocamljava instead of ocaml?
maattdd has quit [Ping timeout: 255 seconds]
<tobiasBora> Hello,
<Drup> I don't know ocamljava, never used it.
<tobiasBora> I would like to know, is there a way to refer to "this" in a record ?
<dsheets> tobiasBora, what is "in a record"?
<def-lkb> let rec this = { … } in this
<def-lkb> (assuming that "in a record" is when constructing a record value)
<dsheets> is there any way to append to a row?
<tobiasBora> For exemple, I would like to have something like let foo = {x=ref 2, f=(function () -> Printf.printf "x=%d" this.x)}
<def-lkb> dsheets: row extension? sadly no
<bernardofpc> tobiasBora: !this.x you mean ?
<tobiasBora> Yes
<def-lkb> dsheets: well you can if you have static knowledge about the rest of the row… but you can't quantify over a row variable
<justinfront> Ok it looked quite interesting, from what I understand on pure Ocaml code you can largely just replace OCAMLOPT=ocamlopt
<justinfront> OCAMLC=ocamlc in the make files to use ocamljava but with a complex project it seemed to fail on some bits and you don't get the java out.
<dsheets> what def-lkb said should do it but you could make that record field mutable instead of another box
<tobiasBora> I'm trying the solution of def-lkb
<dsheets> def-lkb, right... that defeats the goal of having interoperable extensions
<def-lkb> I agree :/
<dsheets> is it label shadowing that is the problem? or just no attempts?
<def-lkb> with objects, given the implementation, I suppose that label shadowing would indeed be a problem.
RMacy is now known as RMacy|Away
RMacy|Away is now known as RMacy
<dsheets> so then i tried lists of polymorphic variants...
<def-lkb> with polymorphic variants, the type system is just not expressive enough
<dsheets> ohhhhh
* dsheets has ideas
<def-lkb> yes?
<dsheets> going to try them and report back, lest i say crazy/stupid things
<def-lkb> :)
ollehar has quit [Ping timeout: 270 seconds]
yacks has quit [Ping timeout: 240 seconds]
RMacy is now known as RMacy|Away
RMacy|Away has quit []
<tobiasBora> def-lkb: Thank you it works !
Thooms has joined #ocaml
Kakadu has joined #ocaml
<colahoh> Couple of feature usage questions I have while learning ocaml: Why use polymorphic variants over variants? The reduction in type checking seems to be a loss and I don't see the gain. And I'm having a hard time comparing modules/functors to classes/inheritence
<companion_cube> the gain is that you can re-use variants in several types
<companion_cube> and they are compatible
<companion_cube> so distinct types can overlap
<dsheets> this means you can establish interfaces that are more like protocols around collections of token rather than specific variant types
mathieui has left #ocaml []
jao has joined #ocaml
<dsheets> def-lkb, exn list
<dsheets> :-P
jao has quit [Changing host]
jao has joined #ocaml
jao is now known as Guest97126
ghostbusters has quit [K-Lined]
ygrek has quit [Ping timeout: 255 seconds]
rand000 has quit [Read error: Connection reset by peer]
xianxu_ has joined #ocaml
<def-lkb> dsheets: so you want open types (with the nice generalisation proposed by leo white)
<dsheets> def-lkb, it's more than i want but i think it would let me implement extensions
<def-lkb> but this won't offer you any static guarantee, that's of no use for me :/
<dsheets> yes, that is the sad part
morosko has joined #ocaml
xianxu has quit [Write error: Broken pipe]
zpe has joined #ocaml
jonludlam has quit [Remote host closed the connection]
n0v has quit [Ping timeout: 253 seconds]
RMacy has joined #ocaml
travisbrady has joined #ocaml
rand000 has joined #ocaml
cantstanya has quit [Ping timeout: 240 seconds]
zpe has quit [Ping timeout: 240 seconds]
n0v has joined #ocaml
<flux> colahoh, one advantage is that let's say you have a function that handles variants `A and `B. and then you have a function that accepts `A, `B and `C. the second function can then be written: let handle_abc x = match x with `C -> "c" | ab -> handle_ab ab
<flux> colahoh, and in this case all exhaustiveness checks are still valid (or actually pushed to handle_ab)
zpe has joined #ocaml
<Drup> unfortunalty, it doesn't work that well with abstraction
<Drup> let f g = function `A -> "a" | foo -> g foo ;;
<Drup> val f : (([> `A ] as 'a) -> string) -> 'a -> string
<flux> well, how well do regular variants work in that scenario?
<Drup> but g shouldn't need to handle 'A
<flux> yeah, I suppose it should infer [> ] as 'a
<Drup> as def-lkb, the type system can't express row variables
<flux> actually hmm no
<Drup> +said
<flux> so it's not that polymorphic variants aren't great, but they aren't great enough ;)
<Drup> flux: it should infer something like : ( [> a ] -> string) -> [> 'A | a] -> string ;)
tobiasBora has quit [Ping timeout: 246 seconds]
<Drup> flux: I'm a spoiled kid when it comes to type systems, it's never enough ! :D
q66 has joined #ocaml
<flux> actually I just recently used polymorphic variants to great benefit. I had several classes of commands, like type g_nonmodal = [`G4 | `G10] and type g_motion = [`G0 | `G1] (codes and groups were extracted from the specification)
<flux> but I could still put them all into one 'match' and find out for example the group of the command
<flux> and one function for splitting them into protocol register-value-pairs
<flux> yet there was no chance of accidentally mixing them up by putting a non-model state into a motion state variable
<flux> although I must admit this might not look like the pretties thing on earth: ( match gm_of_reg_value (reg, value) with | #g_nonmodal as cmd -> check ews.ew_g_nonmodal { ews with ew_g_nonmodal = Some cmd } | #g_motion as cmd -> check ews.ew_g_motion { ews with ew_g_motion = Some cmd } ..
<flux> (it looks better when it's formatted nicely, I swear ;-))
<flux> (there are 16 such disjoint groups)
<flux> I wonder though, maybe I could have imlemented it just as well with a map :-)
RMacy has quit []
<flux> or, maybe width the magic of gadts..
tulloch has joined #ocaml
RMacy has joined #ocaml
<mrvn> flux: type _ reg = Modal : modal reg | NonModal : non_modal reg?
<colahoh> flux: Thanks, that helps. I am not sure if I am sure when polymophic variants are checked for completeness vs when they aren't - I will need to consult real world ocaml again later
<def-lkb> dsheets: actually, the label shadowing problem can be worked around by marking the explicit absence of a label from a row variable
morosko has quit [Remote host closed the connection]
<dsheets> def-lkb, ya, i am reading https://www.cs.cmu.edu/~neelk/rows.pdf just now
<dsheets> and getting frighteningly close to opening the source
<def-lkb> this extension was used in the exception tracking type system for ocaml described in François Pessaux's thesis
<flux> mrvn, btw, you modeled some b-trees with gadts? was it useful?
<mrvn> flux: still trying to complete that. I'm modeling the tree depth with a witness type.
<mrvn> and also the key/value pairs are GADTs so I have an universal container.
RMacy has quit [Ping timeout: 255 seconds]
<def-lkb> dsheets: hum… this extension should even be compatible with actual implementation, this is worth considering some hacks to get a working prototype :)
<mrvn> flux: The idea is that the type system will garanty that all path in the tree have the same length and no space is wasted on storing the depth.
maattdd has joined #ocaml
<dsheets> def-lkb, http://francois.pessaux.perso.sfr.fr/these.html is the landing page. any other pointers/ideas? other related work specifically for ocaml? other systems? why was pessaux's work not incorporated?
<mrvn> flux: I've been wondering if that could be used for red/black trees too. Have the type system check the validty of rotation operations and such.
<flux> apparently one exists for haskell using gadts and existential types, so sounds doable
<mrvn> or make the string longer and longer till you get where it breaks and then look what changes at that point.
<flux> ..or possibly even portable
<mrvn> ups
<mrvn> flux: for b-tree or r/b?
maattdd has quit [Ping timeout: 240 seconds]
<flux> rb
<def-lkb> dsheets: he developed an alternative type system… a completely different type system over the same language, which purpose was to statically track exceptions
<def-lkb> this meant a lot of duplication, maintenance burden, etc.
<dsheets> oh, i see, it looked like a compiler patch but i haven't read the papers, yet
RMacy has joined #ocaml
nikki93 has quit [Remote host closed the connection]
<dsheets> def-lkb, thanks for the info. I'll read these papers and more on row types and i'll be back
<def-lkb> fine :)
<mrvn> flux: can't even read that :)
<flux> yes, pretty impenetrable :)
<mrvn> haskell is not realy intutively readable.
dsheets has quit [Ping timeout: 247 seconds]
mort___ has quit [Quit: Leaving.]
pyon has joined #ocaml
tulloch has quit [Ping timeout: 255 seconds]
nikki93 has joined #ocaml
tulloch has joined #ocaml
maattdd has joined #ocaml
mcclurmc has joined #ocaml
mcclurmc has quit []
dsheets has joined #ocaml
S11001001 has joined #ocaml
S11001001 has quit [Changing host]
S11001001 has joined #ocaml
tobiasBora has joined #ocaml
<tobiasBora> Hi again !
Arsenik has joined #ocaml
tulloch has quit [Ping timeout: 240 seconds]
Enjolras has quit [Ping timeout: 240 seconds]
ikaros has quit [Quit: Ex-Chat]
Patchou has joined #ocaml
ggole has quit []
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tamae has quit [Ping timeout: 246 seconds]
divyanshu has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuc has joined #ocaml
justinfront has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140306171728]]
mort___ has joined #ocaml
angerman has joined #ocaml
tnguyen has quit [Quit: Leaving]
tnguyen has joined #ocaml
willy_ has joined #ocaml
_andre_ has quit [Quit: leaving]
tulloch has joined #ocaml
Enjolras has joined #ocaml
<tobiasBora> Is it ugly and inneficient
xianxu_ has quit [Ping timeout: 240 seconds]
<tobiasBora> *inefficient to make a list of object or not ? (I am creating a neuron network like this :
<tobiasBora> let n1 = new neuron;; let n2 = new neuron;; let n3 = new neuron;; n3#set_input [n1,n2]
tulloch has quit [Ping timeout: 255 seconds]
<companion_cube> I'm not sure objects are the most efficient way to represent neurones
<companion_cube> neurons*
<companion_cube> shouldn't you use matrices to represent whole layers/networks of neurons?
wolfnn has joined #ocaml
<flux> most efficient would probably be a format that's suitable for using with OpenCL..
<flux> but perhaps such neuron objects can be used to generate such a representation when the need arises
freling_ has joined #ocaml
t_m has joined #ocaml
xianxu has joined #ocaml
freling_ has quit [Client Quit]
tulloch has joined #ocaml
<t_m> hi I want to install https://github.com/OCamlPro/opam on debian : method see http://xmodulo.com/2013/10/mount-google-drive-linux.html . but it breaks during make process with the following error:
tnguyen has quit [Quit: Leaving]
<t_m> ocp-build: Fatal Exception Unix_error(Cannot allocate memory, fork, ) (Program not linked with -g, cannot print stack backtrace)
<t_m> Fatal error: exception Unix.Unix_error(23, "fork", ¨ ) (Cannot print stack backtrace: program not linked with -g)
<t_m> make[1]: *** [compile] Error 2 / Make [1]: leaving directory /home/tm/ - make: *** [all] Error 2
<nlucaroni> There is a apt-repo of OPAM, simple instructions here: http://opam.ocaml.org/doc/Quick_Install.html
<nlucaroni> that should be stable, if there are any problems with the head on git
tulloch has quit [Ping timeout: 255 seconds]
avsm has joined #ocaml
<t_m> ok thx will try the version on the repo
avsm has quit [Client Quit]
AltGr has left #ocaml []
avsm has joined #ocaml
Hannibal_Smith has quit [Quit: Sto andando via]
travisbrady has quit [Quit: travisbrady]
travisbrady has joined #ocaml
venk has joined #ocaml
venk` has joined #ocaml
venk has quit [Disconnected by services]
venk` is now known as venk
pyon has quit [Quit: restart]
jonludlam has joined #ocaml
travisbrady has quit [Quit: travisbrady]
jave has joined #ocaml
angerman has quit [Quit: Gone]
avsm has quit [Quit: Leaving.]
mort___ has quit [Quit: Leaving.]
t_m has left #ocaml []
RMacy has quit []
tulloch has joined #ocaml
tulloch has quit [Ping timeout: 264 seconds]
Arsenik has quit [Remote host closed the connection]
axiles has quit [Remote host closed the connection]
<tobiasBora> companion_cube: I don't know it's the first time I try to program neurones... But it's true that a matrice should be better if the neuron network isn't too complex !
nikki93 has quit [Remote host closed the connection]
tulloch has joined #ocaml
<bernardofpc> tobiasBora: unless your neurons are completely non-linear in their combination of inputs, or too different between each other *in the same layer*, you want a matrix
<bernardofpc> if the network is too complex, either way, you will have a matrix for input on each layer
<bernardofpc> if you think it's a "sparse graph", there's "sparse matrix" in every serious linear algebra lib
nikki93 has joined #ocaml
<bernardofpc> anyway, you should have a good reason to implement number crunshin in Ocaml
<tobiasBora> You mean that it's possible to avoid to take lots of place when you have a matrix with lots of holl ?
<tobiasBora> I have to go, thank you for your help, I'll try that !
tobiasBora has quit [Read error: Connection reset by peer]
S11001001 has quit [Quit: bye bye]
willy_ has quit [Quit: Leaving]
lostcuaz has joined #ocaml
nikki93 has quit [Remote host closed the connection]
tulloch has quit [Ping timeout: 264 seconds]
Kakadu has quit [Quit: Konversation terminated!]
<pippijn> I would like deriving (Show) to be able to read back the Show'd text
tulloch has joined #ocaml
tulloch has quit [Ping timeout: 270 seconds]
tulloch has joined #ocaml
Guest97126 has quit [Ping timeout: 240 seconds]
S11001001 has joined #ocaml
RMacy has joined #ocaml
S11001001 has quit [Changing host]
S11001001 has joined #ocaml
tulloch has quit [Ping timeout: 240 seconds]
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuc_ has joined #ocaml
q66 has quit [Ping timeout: 255 seconds]
claudiuc has quit [Ping timeout: 240 seconds]
avsm has joined #ocaml
Enjolras has quit [Remote host closed the connection]
q66 has joined #ocaml
q66 has quit [Changing host]
q66 has joined #ocaml
nikki93 has joined #ocaml
lostcuaz has joined #ocaml
maattdd has quit [Ping timeout: 240 seconds]
xianxu has quit [Ping timeout: 240 seconds]
xianxu has joined #ocaml
Enjolras has joined #ocaml
nikki93 has quit [Ping timeout: 240 seconds]
claudiuc has joined #ocaml
nikki93 has joined #ocaml
Patchou has quit [Ping timeout: 240 seconds]
adrien_ has quit [Ping timeout: 240 seconds]
Patchou has joined #ocaml
adrien_ has joined #ocaml
RMacy has quit []
claudiuc_ has quit [Ping timeout: 255 seconds]
ousado has quit [Remote host closed the connection]
nikki93 has quit [Remote host closed the connection]
ousado has joined #ocaml
nikki93 has joined #ocaml
nikki93 has quit [Ping timeout: 264 seconds]
tulloch has joined #ocaml
nikki93 has joined #ocaml
wolfnn has quit [Quit: Leaving.]
darkf has joined #ocaml
Thooms has quit [Ping timeout: 264 seconds]
talzeus_ has joined #ocaml
claudiuc_ has joined #ocaml
nikki93_ has joined #ocaml
adrien__ has joined #ocaml
avsm1 has joined #ocaml
talzeus has quit [Read error: Connection reset by peer]
adrien_ has quit [Read error: Connection reset by peer]
avsm has quit [Write error: Connection reset by peer]
nikki93 has quit [Write error: Connection reset by peer]
claudiuc has quit [Ping timeout: 321 seconds]
IbnFirnas_ has quit [Ping timeout: 321 seconds]
IbnFirnas__ has joined #ocaml
IbnFirnas__ has quit [Changing host]
IbnFirnas__ has joined #ocaml
watermind has quit [Remote host closed the connection]
ohama has quit [Ping timeout: 240 seconds]
watermind has joined #ocaml
ohama has joined #ocaml
rand000 has quit [Ping timeout: 240 seconds]
avsm1 has quit [Ping timeout: 264 seconds]
rand000 has joined #ocaml
jave has quit [Ping timeout: 264 seconds]