zozozo has quit [Remote host closed the connection]
zozozo has joined #ocaml
agarwal1975 has quit [Quit: agarwal1975]
agarwal1975 has joined #ocaml
octachron has quit [Quit: Leaving]
Simn has quit [Quit: Leaving]
zv has quit [Ping timeout: 264 seconds]
silver has quit [Read error: Connection reset by peer]
zv has joined #ocaml
snhmib has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
handlex has joined #ocaml
handlex has quit [Client Quit]
snhmib has joined #ocaml
snhmib has quit [Ping timeout: 260 seconds]
mfp has quit [Ping timeout: 240 seconds]
jeffmo has quit [Quit: jeffmo]
FreeBirdLjj has joined #ocaml
snhmib has joined #ocaml
maxirater has joined #ocaml
jao has quit [Ping timeout: 256 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
jeffmo has joined #ocaml
jeffmo has quit [Quit: jeffmo]
FreeBirdLjj has joined #ocaml
paroneayea has quit [Changing host]
paroneayea has joined #ocaml
snhmib has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Read error: Connection reset by peer]
Enjolras has quit [Quit: leaving]
FreeBirdLjj has joined #ocaml
maxirater has quit [Quit: Leaving]
maxirater has joined #ocaml
snhmib has joined #ocaml
maxirater has quit [Client Quit]
snhmib has quit [Ping timeout: 255 seconds]
wtetzner has quit [Remote host closed the connection]
snhmib has joined #ocaml
govg has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
rgrinberg has quit [Remote host closed the connection]
FreeBirdLjj has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 248 seconds]
snhmib has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
snhmib has joined #ocaml
govg has joined #ocaml
sh0t has quit [Remote host closed the connection]
snhmib has quit [Ping timeout: 260 seconds]
fedruantine has quit [Read error: Connection reset by peer]
snhmib has joined #ocaml
coddinkn has joined #ocaml
<coddinkn>
hi, I am in a compilers class using ocaml and I have a question about how to handle an issue with function application precedence
govg has quit [Ping timeout: 248 seconds]
<coddinkn>
nevermind it seems like I figured it out, just needed to surround a type constructor with parens
Enjolras has joined #ocaml
_whitelogger has joined #ocaml
snhmib has quit [Read error: Connection reset by peer]
tmtwd has joined #ocaml
snhmib has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
tmtwd has quit [Quit: Leaving]
FreeBirdLjj has joined #ocaml
shinnya has quit [Ping timeout: 255 seconds]
MercurialAlchemi has joined #ocaml
mengu has joined #ocaml
slash^ has joined #ocaml
snhmib has quit [Ping timeout: 252 seconds]
philtor has quit [Ping timeout: 240 seconds]
govg has joined #ocaml
snhmib has joined #ocaml
snhmib has quit [Ping timeout: 255 seconds]
larhat has joined #ocaml
snhmib has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
govg has joined #ocaml
jnavila has joined #ocaml
larhat has quit [Quit: Leaving.]
jnavila has quit [Remote host closed the connection]
average has quit [Ping timeout: 245 seconds]
pierpa has quit [Ping timeout: 255 seconds]
AlexDenisov has joined #ocaml
average has joined #ocaml
mengu has quit [Quit: Leaving...]
govg has quit [Ping timeout: 240 seconds]
sepp has quit [Quit: leaving]
AlexDeni_ has joined #ocaml
AlexDenisov has quit [Read error: Connection reset by peer]
orbifx has joined #ocaml
fre has joined #ocaml
elfring has joined #ocaml
mfp has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
snhmib has quit [Ping timeout: 255 seconds]
snhmib has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
Guest26 has joined #ocaml
govg has joined #ocaml
swistak35 has joined #ocaml
fraggle_ has joined #ocaml
FreeBirdLjj has joined #ocaml
jnavila has joined #ocaml
silver has joined #ocaml
troydm has joined #ocaml
govg has quit [Ping timeout: 264 seconds]
fre has quit [Ping timeout: 276 seconds]
zpe has joined #ocaml
jnavila has quit [Ping timeout: 252 seconds]
sternenseemann has joined #ocaml
AlexDeni_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<orbifx>
what' up folk?
Guest26 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
rand__ has joined #ocaml
xorpse has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
vicfred has joined #ocaml
malc_ has joined #ocaml
Guest26 has joined #ocaml
<orbifx>
I supposed everyone is too busy looking after their camels on a Saturday
Onemorenickname has joined #ocaml
<Onemorenickname>
hello people
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
fedruantine has joined #ocaml
<Onemorenickname>
after having done "opam install extlib", what have I left to do before I can "Open Extlib" without getting an "Unbound module Error" ? I can't find
Lordpigish has joined #ocaml
zpe has quit [Remote host closed the connection]
Onemorenickname has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
Onemorenickname has joined #ocaml
vicfred has quit [Quit: Leaving]
zpe has quit [Ping timeout: 240 seconds]
<Lordpigish>
hello, i have a binary tree of = Nil | Node of 'a * 'a tree * 'a tree, i have this working Node(x,l,r) -> x::conv l@ conv r;; that creates a list of all values. how do i change this to create a list with value mutiplyed by the next one?
octachron has joined #ocaml
Guest26 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
xorpse has quit [Ping timeout: 252 seconds]
<octachron>
Onemorenickname, you need to require the extlib package; for instance, you need "#require "extlib" in the toplevel
<octachron>
Lordpigish, do you mean: transform [a_0; a_1; a_2; … ] into [a_0 * a_1; a_1 * a_2; a_2 * a_3; … ] ?
<Onemorenickname>
octachron, i don't know the requires yet, i will check that, thanks :)
<octachron>
Onemorenickname, which build system are you using?
<Onemorenickname>
ocamlbuild
<Onemorenickname>
oh, it's the same thing as for unix and string ?
<octachron>
Onemorenickname, yes: package(extlib) in _tags should work
<Onemorenickname>
perfect, thanks :)
<Lordpigish>
Onemorenickname, yes thats exactly what ia m trying
<Onemorenickname>
octachron, it works ! thanks :D
<Lordpigish>
ah, ups. i meant to say octachron, thats what i want xD
<octachron>
Lordpigish, then the easiest way is probably to work directly on the list of values that you constructed first
<Lordpigish>
yeah thats the easiest way no doubt
<octachron>
then you can define a recursive function (or use a List.fold_left) to do the transformation
<Lordpigish>
that i can do, but i am really just trying to understand more trees
<Lordpigish>
i know its possible i just dont see how
zpe has joined #ocaml
<octachron>
Lordpigish, I am not sure that your function is very natural for tree. However, what you could do is redefine a specialized version of (@) and (::) to work on "multiplied list"
<octachron>
then " Node(x,l,r) -> x::conv l@ conv r;;" would works
<flux>
Yaron Minsk> Modular implicits is a big change, but unlike changes to where type information is available in the compiler, it's one that is actually in progress and seems like it's really going to land.
<flux>
nice to have someone believe that, perhaps we'll actually see them at some point :)
Simn has joined #ocaml
Onemorenickname has quit [Read error: Connection reset by peer]
orbifx has quit [Ping timeout: 240 seconds]
Onemorenickname has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
govg has joined #ocaml
zpe has quit [Ping timeout: 264 seconds]
infinity0 has quit [Ping timeout: 240 seconds]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 has joined #ocaml
fraggle_ has quit [Ping timeout: 255 seconds]
infinity0 has quit [Remote host closed the connection]
govg has quit [Ping timeout: 240 seconds]
Muzer has quit [Ping timeout: 256 seconds]
Guest26 has joined #ocaml
Guest26 has quit [Read error: Connection reset by peer]
<demu>
I still have an issue with the length: the file has 8 bytes, but in_channel_length returns 3 and if I hard code "8", I get an "End_of_file" exception.
zpe has joined #ocaml
<demu>
My file has the bytes (hex): 43 57 53 0f 18 f7 04 00
<demu>
The first 3 bytes are ASCII characters so I think that's why he outputs "3"
<yawaramin>
with malc_'s code you don't need the length, you get the entire file as a bytes value
govg has joined #ocaml
<demu>
Ok, I was able to read it with malc_'s code, I had an other issue in my code
<demu>
Thank you all
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
Flerex has joined #ocaml
yawaramin has quit [Ping timeout: 260 seconds]
zpe has quit [Ping timeout: 255 seconds]
pierpa has joined #ocaml
ski has quit [Remote host closed the connection]
demu has quit [Quit: Page closed]
copy` has joined #ocaml
nomicflux has joined #ocaml
madroach has quit [Quit: leaving]
maxirater has joined #ocaml
kakadu has joined #ocaml
maxirater has quit [Quit: Leaving]
demurgos has left #ocaml [#ocaml]
Flerex has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jao has joined #ocaml
AlexDeni_ has joined #ocaml
AlexDeni_ has quit [Remote host closed the connection]
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
AlexDeni_ has joined #ocaml
AlexDenisov has quit [Ping timeout: 255 seconds]
ocabot has joined #ocaml
ocabot has quit [Remote host closed the connection]
orbifx has joined #ocaml
rgrinberg has joined #ocaml
Flerex has joined #ocaml
nicoo has quit [Ping timeout: 240 seconds]
nicoo has joined #ocaml
fraggle_ has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
ygrek has joined #ocaml
Flerex has quit [Read error: Connection reset by peer]
wtetzner has joined #ocaml
chindy has joined #ocaml
jao has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 252 seconds]
moei has quit [Quit: Leaving...]
jmiven has quit [Remote host closed the connection]
jmiven has joined #ocaml
jao has joined #ocaml
Onemorenickname has quit [Ping timeout: 240 seconds]
chindy has quit [Ping timeout: 255 seconds]
elfring has quit [Quit: Konversation terminated!]
octachron has quit [Quit: Leaving]
AlexDeni_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
nomicflux has quit [Quit: nomicflux]
jao has quit [Remote host closed the connection]
jao has joined #ocaml
Simn has quit [Quit: Leaving]
kakadu has quit [Remote host closed the connection]
Flerex has joined #ocaml
tokenrov1 is now known as tokenrove
tane has quit [Quit: Leaving]
ocabot has joined #ocaml
atsampson has quit [Ping timeout: 255 seconds]
nicoo has quit [Ping timeout: 240 seconds]
StatelessCat has quit [Ping timeout: 248 seconds]
ocabot has quit [Remote host closed the connection]
nicoo has joined #ocaml
ocabot has joined #ocaml
jnavila has quit [Remote host closed the connection]
ocabot has quit [Remote host closed the connection]
ocabot has joined #ocaml
atsampson has joined #ocaml
ocabot has quit [Remote host closed the connection]
moei has joined #ocaml
orbifx has quit [Ping timeout: 240 seconds]
jao has quit [Remote host closed the connection]
rand__ has quit [Quit: leaving]
jao has joined #ocaml
ocabot_ has quit [Remote host closed the connection]
ocabot_ has joined #ocaml
Flerex has quit [Quit: My iMac has gone to sleep. ZZZzzz…]