<jeremy_c>
Did that Away/Online message come through IRC? I just started using Kopete and don't want that stuff to come across on IRC.
<Smerdyakov>
I have no idea what you're talking about.
<jeremy_c>
Ok, then it must not have come through :-) I went away for a while and when I came back there were two messages in this IRC window that stated "You are now marked Away." ... "You are now marked as Online" ... I wanted to make sure that every 15 minutes those messages were not being echoed to everyone else on IRC.
Smerdyakov has quit ["Leaving"]
exa has quit [Remote closed the connection]
syntaxfree has joined #ocaml
<syntaxfree>
what is the best ocaml implementation for unix/os x?
<syntaxfree>
for someone coming from a Haskell experience?
bluestorm has quit ["Leaving"]
<dylan>
there is more than one?
pango_ has joined #ocaml
pango has quit [Read error: 110 (Connection timed out)]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
reltuk has joined #ocaml
jeremy_c has left #ocaml []
tristram has quit [Read error: 110 (Connection timed out)]
Alive has joined #ocaml
tristram has joined #ocaml
<Alive>
ëÔÏ ÐÏÇÏ×ÏÒÉÔØ ÈÏÞÅÔ?
Alive has left #ocaml []
tristram has quit [Remote closed the connection]
tristram has joined #ocaml
ksd has joined #ocaml
reltuk has quit []
skylan_ is now known as skylan
pango_ has quit [kornbluth.freenode.net irc.freenode.net]
noj has quit [kornbluth.freenode.net irc.freenode.net]
pango_ has joined #ocaml
AWizzArd has joined #ocaml
<AWizzArd>
I found code for calculating fibonacci numbers here: http://mureakuha.com/koodikirjasto/364 (for example the function fib2). Could you please tell me how to modify this example to calculate the correct result for big arguments, like 1000000? (how to use a type "biginteger")
<simon>
AWizzArd, you can do it in a few ways, I'm not sure which is best.
<AWizzArd>
simon: thx
<simon>
is there a way to make any function in ocaml infix? in SML, I recall that you can do "infix funname"
<simon>
AWizzArd, but you know, there's a formula for calculating the nth fibonacci digit which isn't recursive and thus less expensive when you calculate the 100,000th digit.
<pango>
functions whose name is only made of signs are infix (or something like that)
<pango>
and priority depends on the first sign used
<AWizzArd>
simon: do you mean a formular that calculates directly fib(n) without calculating fib(n-1) first? (something similar to the formular with which you can calculate the nth digit of Pi directly and fast)
<simon>
pango, yes, I know. are they the only ones that can be infix?
<pango>
simon: afaik, yes
<simon>
AWizzArd, yup.
<pango>
using gold number, iirc
<simon>
here is one way, I just read: Take the golden ratio, raise it to the power N, divide by the square root of 5, and round off the result to the nearest whole number. The answer you get will be the Nth Fibonacci number.
<AWizzArd>
ah hmm yes, thanks :)
Submarine has joined #ocaml
<pango>
# fib 92 ;;
<pango>
- : int64 = 7540113804746369024L
<pango>
# fib 93 ;;
<pango>
- : int64 = -9223372036854775808L
<pango>
not ready for fib 100000 yet ;)
__DL__ has joined #ocaml
oxygene has joined #ocaml
<AWizzArd>
pango: yup, that is what I meant ;)
<pango>
only Big_int did the job (sorry I missed the beginning of the discussion)
descender has quit ["XML is like violence, if it doesn't solve the problem, just use more."]
malc_ has quit ["leaving"]
malc_ has joined #ocaml
quamaretto has quit [Client Quit]
AWizzArd has left #ocaml []
kryptt has joined #ocaml
montpelier has joined #ocaml
shawn_ has quit ["Leaving"]
setog3 has joined #ocaml
<setog3>
hi
<setog3>
i want to do a little function , that calculate the pgcd (a,b) , with euclide, I try but don't know to do , I have problem with the reccurence function
humasect has joined #ocaml
<pango>
setog3: could you be more specific on the problem you're facing ?
montpelier has left #ocaml []
<setog3>
yes , I want to do a rec like this rest n = if (n=0) then a else if (n=1) then b else
<setog3>
reste(rest(n-2),rest(n-1);;
<setog3>
but don't seem to works
<setog3>
it's easy I think , but it's the first time I try ocaml ..
<setog3>
sorry for the last parenthesis
montpelier has joined #ocaml
<setog3>
oh .. it seem to work with the "direct ocaml rendering" .. sorry
<vodka-goo>
looks like you're using a special IDE
Raziel has quit [Read error: 110 (Connection timed out)]
<setog3>
no , only vim .. when I say direct rendering , I want to speak about ocaml in command line ..
Raziel has joined #ocaml
<vodka-goo>
ok
kryptt has left #ocaml []
kryptt has joined #ocaml
kryptt has left #ocaml []
montpelier has left #ocaml []
ski has joined #ocaml
ezraburgh has joined #ocaml
<ezraburgh>
Trying to build the ocaml-mysql bindings, I get these undefined symbols:_caml_names_of_builtin_cprim
<ezraburgh>
_caml_builtin_cprim
<ezraburgh>
anyone recognize those?
<pango>
setog3:
<pango>
let pgcd a b =
<pango>
let rec aux a b = (* a >= b *)
<pango>
if b = 0 then a else aux b (a mod b) in
<pango>
if a >= b then aux a b else aux b a
ski_ has quit [Read error: 110 (Connection timed out)]
ezraburgh has quit []
mkhl has quit [Broken pipe]
Smerdyakov has joined #ocaml
Smerdyakov has quit ["Leaving"]
<setog3>
thx pango
ezraburgh has joined #ocaml
syntaxfree has quit ["Quitting!"]
Raziel has quit [Read error: 104 (Connection reset by peer)]
jeremy_c_ has joined #ocaml
<jeremy_c_>
Is there a lib that will work with windows to allow me to access a postgresql server?
<rongenre>
Can't help you with windows, mac and linux here
<jeremy_c_>
I would like to use ocamldbi but it seems it depends on findlib and findlib says it *does not* run on windows.
<jeremy_c_>
rongenre, I am always linux, but for this project, the program has to run on windows...
<rongenre>
Ack, that's not fun
<jeremy_c_>
rongenre, your right. The more I use windows, the more I come to enjoy Linux :-)
setog3 has quit ["Terminated with extreme prejudice - dircproxy 1.0.5"]
<rongenre>
If you've got a couple hundred dollars more, consider mac too
<jeremy_c_>
rongenre, I was thinking of it. They are certainly tempting.
<rongenre>
I really really like my mini, and I was linux only for 5 years
<jeremy_c_>
rongenre, how is it w/speed though? 1.4ghz does not seem like much. I'm 3g w/my intel on linux.
<rongenre>
Yeah that's why they're doing the intel macs
<rongenre>
They can be faster on the powermacs, but they're expensive...
<jeremy_c_>
The bummer about that is that it seems you will have to still run MacOSX on one of *their* intel based computers?
<rongenre>
Yeah. Subsidizing their software efforts
<rongenre>
It'll be interesting when they come out, the betas can reportedly be booted on regular intel hardware, but it can't cost that much to get a custom apple-only bios
<rongenre>
I went mac after spending a weekend trying to get my linux box to connect to work's PPTP vpn. And run a big monitor and have sound capabilities on a laptop. it just wasn't going to work, and it was effortless on the mac
<jeremy_c_>
I hope that mac can do some damage to the ms windows standard. I guess we will not know until it happens though.
<rongenre>
it'll at least give ms more stuff to copy ;-)
<jeremy_c_>
hehe
<rongenre>
I tell people that OSX is BSD which runs excel properly
<jeremy_c_>
what kind of projects do you use OCaml for?
<rongenre>
I work for a trading firm
<jeremy_c_>
So you use it for commercial purposes? That's cool.
<rongenre>
Mainly java, but I've got an ocaml program in production which analyses some logs
<rongenre>
twice as fast as perl (easily), and I can actually maintain it
<jeremy_c_>
I'm just learning it now. I'm writing a small program that gives our linux web server access to a windows based drg grouper (medical claim analysis). Basic TCP/IP, run command program (drg grouper), process some data, return results.
<rongenre>
closest bit is sum-file
<rongenre>
gotcha
<rongenre>
stuffing it all in a cgi?
<jeremy_c_>
rongenre, it's goofy! The drg grouper is written in Java, but they've wrapped it in some exe wrapper program and therefore makes it run only in a windows environment.
<rongenre>
Yeah I've seen that too
<jeremy_c_>
rongenre, no, the web based system is written in Python w/mod_python and apache.
<jeremy_c_>
rongenre, I was able to access a .jar file and get some limited functionality out of it, but not enough to make it work.
<jeremy_c_>
We use python almost 100% at our shop.
<rongenre>
Worked pretty well, I was impressed, although it's bytecode only -- you'll get good code, but it won't be blazingly fast
MisterC has joined #ocaml
<jeremy_c_>
Hm, does the win32 version of ocaml not come with ocamlmklib ?
* jeremy_c_
almost has this ocaml postgresql thing figured out.
_jeremy_c_ has joined #ocaml
jeremy_c_ has quit [Read error: 104 (Connection reset by peer)]
_jeremy_c_ has quit [Client Quit]
_jeremy_c_ has joined #ocaml
tom_p has quit [Read error: 110 (Connection timed out)]
spiralvoice_ has joined #ocaml
<spiralvoice_>
hi, can Ocaml be used for cross-compiling? I would like to compile a prog for a mipsel arch on x86.
pango has quit ["Leaving"]
pango has joined #ocaml
Submarine has quit [Read error: 110 (Connection timed out)]
<flux__>
atleast the runtime environment with bytecode executer is possible to crosscompile
shirogane has joined #ocaml
Amorphous has joined #ocaml
<_jeremy_c_>
whew. That was a long 4 hours, but postgresql-ocaml now compiles and seems to work on my windows box :-)
<_jeremy_c_>
I do have a question, though. I have .cmx and .cmxa files that are 910 and 699 bytes. In the dir, there are a few other files, .cmi, .cmo, .a, and .o files. What is actually required to cause a link to take place?
<_jeremy_c_>
My original source files are postgresql.mli postgresql.ml and postgresql_stubs.c
jeremy_c has joined #ocaml
knobo has quit [Read error: 110 (Connection timed out)]
knobo has joined #ocaml
Submarine has joined #ocaml
shawn_ has joined #ocaml
_jeremy_c_ has quit [Read error: 110 (Connection timed out)]
kuribas has joined #ocaml
spiralvoice_ has quit [Remote closed the connection]
gim has joined #ocaml
the_ez has joined #ocaml
twobitsprite has quit [kornbluth.freenode.net irc.freenode.net]
twobitsprite has joined #ocaml
kryptt has joined #ocaml
dylan has quit [Read error: 110 (Connection timed out)]
ezraburgh has quit [Read error: 110 (Connection timed out)]