<hcarty>
It's not all down, as 'ocaml odb.ml' still works
ikaros has joined #ocaml
pumpkin has joined #ocaml
pumpkin is now known as copumpkin_
copumpkin has quit [Disconnected by services]
copumpkin_ is now known as copumpkin
Kakadu has quit [Read error: Operation timed out]
Kakadu has joined #ocaml
xmichaelx has joined #ocaml
pumpkin has joined #ocaml
copumpkin has quit [Ping timeout: 276 seconds]
ttamttam has joined #ocaml
pumpkin is now known as copumpkin
thomasga has quit [Quit: Leaving.]
icrusade has left #ocaml []
Cyanure has quit [Read error: Operation timed out]
ikaros has quit [Quit: Ex-Chat]
ikaros has joined #ocaml
Cyanure has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
<xmichaelx>
i've got a question about pattern-matching, for this code: http://pastebin.com/iFUVq27J how can I match transformation T for some point (x,y) with given vector (a,b)?
<xmichaelx>
i'm currently learning ocaml
<thelema>
L12?
<thelema>
| T (1., 2.) -> ...
<thelema>
if your vector is constant, you can use the constants in the pattern match
<thelema>
(the vector (a,b)
<flux>
although equality operator on floating operators is often a bad idea
<thelema>
if the vector (a,b) is not known ahead of time, you can | T (x,y) when x = a && y = b ->
<xmichaelx>
ok, i know how can i use Sx "transform Sx (1.0, 1.0);;"
<flux>
but a guard pattern | T (a, b) when abs_float (1.0 -. a) < 0.00001 && abs_float .. ->
<xmichaelx>
how can i use in the similar way T transformation?
<xmichaelx>
i was using transform T (1.0,2.0) (1.0,1.0), this meant that i tried to give two tuples to T function?
<thelema>
T isn't a function, but a constructor.
<thelema>
I guess ocaml could figure out what you meant from the definition of T, but it's easier to not require type definitions to parse function calls
<thelema>
"transform T (1.0,2.0) (1.0,1.0)" looks like transform takes three arguments: T and two tuples
<xmichaelx>
ok, it's starting to look clearer for me now :)
_andre has quit [Quit: leaving]
ttamttam has quit [Quit: Leaving.]
ikaros has quit [Quit: Ex-Chat]
sepp2k has quit [Ping timeout: 240 seconds]
ttamttam has joined #ocaml
ttamttam has quit [Client Quit]
ttamttam has joined #ocaml
ikaros has joined #ocaml
sepp2k has joined #ocaml
EmmanuelOga has quit [Ping timeout: 252 seconds]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
<xmichaelx>
anyone here uses OcalIDE on windows?
<thelema>
not I - emacs/linux
<xmichaelx>
ok, is Parser some kind of built-in ocaml module?
<bitbckt>
it took longer than I care to admit, but I think ocaml-uint is oasis-ified.
<thelema>
bitbckt: nice. Can you upload it to oasis-db?
<bitbckt>
support for OMakefiles would be great...
<bitbckt>
yup
<bitbckt>
do you already have ocaml-ketama up there?
<thelema>
nope, that'd be useful too
<thelema>
except I think the oasis-db site is borked now.
<bitbckt>
it uses quickcheck for tests; I'll oasis that up, too.
<thelema>
easy installs are great.
<bitbckt>
the more the merrier.
<adrien>
btw, does oasis-db needs the whole "chain"? if some lib depends on lablgtk2, does lablgtk2 also have to be using oasis for the lib to be in odb?
ttamttam has quit [Quit: Leaving.]
<thelema>
no
<thelema>
lablgtk2 isn't in oasis-db, but cairo is in oasis-db, and it works fine (if you have lablgtk2 installed already)
<thelema>
more specifically, if you have a findlib-enabled lablgtk2 installed
<adrien>
so as long as you take come care (install lablgtk2 yourself first), you can take advantage of everything oasis-db* offers?
<thelema>
yes
<adrien>
ah, great =)
<thelema>
odb doesn't care how the dep was installed, as long as it's there.
<adrien>
so it can't really install several libs at once?
<thelema>
yes
<thelema>
err, no, err...
<adrien>
^ ^
<thelema>
it's not parallel, but it can accept many libs on the command line and it'll install them all
<adrien>
as I thought, ok
sebz has quit [Quit: Computer has gone to sleep.]
ankit9 is now known as ankit9|zzz
<adrien>
I need to add support for some annotations to cowboy and then I can put the result on odb (I need @since)
<thelema>
great.
<thelema>
I hope the server doesn't cause you problems like it's causing me.
sebz has joined #ocaml
leoncame1 has quit [Ping timeout: 252 seconds]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
ygrek has quit [Ping timeout: 248 seconds]
lamawithonel has joined #ocaml
Snark has quit [Quit: Quitte]
sebz has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Remote host closed the connection]
sebz has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
dnolen has joined #ocaml
edwin has quit [Remote host closed the connection]
Anarchos has joined #ocaml
willb has quit [Ping timeout: 260 seconds]
willb has joined #ocaml
Amorphous has quit [Ping timeout: 240 seconds]
Amorphous has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
sepp2k has joined #ocaml
agust1n has joined #ocaml
<agust1n>
hello
<everyonemines>
just say what you want and someone will reply eventually