snowmelt has quit [Read error: 110 (Connection timed out)]
snowmany has quit []
themus has quit [Read error: 110 (Connection timed out)]
themus has joined #ocaml
themus has quit [Read error: 110 (Connection timed out)]
themus has joined #ocaml
themus has quit ["Client Exiting"]
themus has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
cymonts has joined #ocaml
smkl has joined #ocaml
hurdman has joined #ocaml
<hurdman>
hi there
malc has joined #ocaml
Demitar has joined #ocaml
cymonts has quit [Read error: 111 (Connection refused)]
yangsx has joined #ocaml
<yangsx>
hi, how to set up ocaml on windows? I have to compile for friends on windows, but never tried before
<yangsx>
the ocaml-book says needs to add two lines to the autoexec.bat
<yangsx>
but I run the autoexec.bat, it echos that two many parameters and didn't add the ocaml path to path
<malc>
yangsx: you have to reboot for the changes to take effect
<malc>
unless it's nt or above(2k,xp)
<yangsx>
I think I rebooted once, but only the camllib variable takes effect, the path did not
<malc>
set PATH=%PATH%;c:\ocaml\bin somewhere near the end
<yangsx>
malc: ocamlbook does not have set. but why it says too many parameters?
<malc>
yangsx: c&p autoexec and the output (privmsg)
Demitar has quit []
<yangsx>
malc: I follow the original: there is a @ before each line
<malc>
@ means suppress output
<yangsx>
I see. the two lines I added are: @set PATH=%PATH%;"c:\program files\objective files\bin" and @set CAMLLIB="c:\program files\objective caml\lib"
<yangsx>
only the second line took effect
<malc>
first of all using path's with spaces will lead to mayhem eventually(untill 3.05 is released)..
<malc>
what does set says now (type it at commnd prompt)
<yangsx>
when I compile a file: c:\progra~1\object~1\bin\ocamlopt.exe -o bar.exe bar.ml
<yangsx>
maybe I should try this ~1
<malc>
look at this autoexec of yours, maybe someline overrides your path setting
<yangsx>
there is a line before mine: like @set PATH=%PATH%;anotherpath
<yangsx>
rebooted and the ~1 does not help
<malc>
there is another possibility, your environment is too small, you can try adding shell=c:\command.com c:\ /p /e:2000 to your config.sys
<yangsx>
ok I'll try
<yangsx>
dos/win are awful to work with.
<yangsx>
still not working.
gene9 has joined #ocaml
<malc>
what set says?
<yangsx>
how can I get the message
<malc>
just type set
<yangsx>
maybe I should append the path
gene9 has quit [Client Quit]
<malc>
paste your autoexec
<yangsx>
just four lines: the first line append a new apth to path, the second line set another var, the third line the fourth ar emine just mentioned.
<yangsx>
I'm rebooting windows, when it's back, I can get it.
<malc>
ill wait
<yangsx>
now I can see the path appended by echo %PATH%
<yangsx>
that's done after appending ocaml path to existing line of setting path
<yangsx>
yet my problem is still there. when i try to compile at command line: path\ocamlc.exe -o bar.exe bar.ml
<yangsx>
it complains: cannot Pervasives.cmi
<malc>
what does ocamlc -v say?
<yangsx>
it prints the camllib
<yangsx>
I just set in the autoexec.bat
<yangsx>
which seems to be correct: c:\progra~1\object~1\lib
<malc>
is c:\progra~1\object~1\bin in the path now?
<yangsx>
yes, for I can run "ocamlc -v" directly now
<malc>
good
<malc>
and ocamlc bar.ml says that Pervasvies.cmi not found?
<yangsx>
"echo AMLLIB% | dir" gives me the directory content.
<yangsx>
that's true.
<malc>
beats me
<yangsx>
it says: cannot open Pervasives.cmi; then uncaught exception: Misc.Fatal_error
<malc>
if pervasives.cmi is in c:\progra~1\object~1\lib then im fresh out of ideas
<yangsx>
thanks so much. any idea how the Misc.Fatal_error come to be raised?
<malc>
fatal_error "cannot open pervasives.cmi"
<malc>
compile.ml
<malc>
hmmm ocamlc should say pervasives (uncap p) while ocamlopt says it with capitalized P.. but you invoke ocamlc weird
<yangsx>
sorry, it's uncapitalized.
<yangsx>
dos/win are awful to work with, i'd rather never touch it again
<malc>
try this
<malc>
at command prompt
<yangsx>
but the ocamlwin can be launched from the menu.
<malc>
set OCAMLLIB=c:\progra~1\object~1\lib
<malc>
ocamlc bar.ml
<yangsx>
the same error
<malc>
set lists OCAMLLIb?
<yangsx>
another thing is: I just tried the ocamlwin, it lauches and can open a ml file and compile, but when I call the function, it eixted.
<yangsx>
I'm experimenting with the wc_unix.ml file.
<malc>
try moving your c:\progra~1\object~1\* to c:\ocaml (default location) maybe this will help
Dalroth has joined #ocaml
<yangsx>
ok, I'll try later.
scipient has quit [Read error: 110 (Connection timed out)]
malc has quit ["no reason"]
<yangsx>
malc: I found just now why ocamlwin exited: I forgot to spell out the full path to count_file; I thought it's in the current dir.
<yangsx>
now ocamlwin works fine. the problem remains with msdos command line.
<yangsx>
Thanks for your help.
yangsx has quit ["Client Exiting"]
Dalroth has quit [Connection timed out]
redcrosseknight has joined #ocaml
Yurik has joined #ocaml
<Yurik>
hi
<redcrosseknight>
hello
Yurik has quit [Read error: 104 (Connection reset by peer)]
Dalroth has joined #ocaml
Dalroth has quit [No route to host]
Yurik has joined #ocaml
<Yurik>
re
redcrosseknight has left #ocaml []
<Dybbuk>
Howdy.
<Dybbuk>
Yurik: How's the job situation these days?
hurdman has quit ["[x]chat"]
Yurik has quit [Read error: 104 (Connection reset by peer)]
exarkun is now known as exarkun|1
exarkun|1 is now known as exarkun
exarkun is now known as exarkun|`
exarkun|` is now known as exarkun
Yurik has joined #ocaml
<Yurik>
re
<Yurik>
guys, did anybody heared about attempts to implement AOP (Aspect-Oriented Programming) for OCaml?
<exarkun>
did it succeed? :p
<Yurik>
AOP? well, it seems to be quite interesting
<Yurik>
I had a look at AspectJ, looks nicwe
<exarkun>
no, I meant the attempts to implement it for OCaml :
<exarkun>
)
<Yurik>
but no AOP implementation for OCaml :)
<Yurik>
ah :)
<Yurik>
seems that not
<Yurik>
i tried to find and failed
<Yurik>
:(
<Yurik>
not very trivial task
<Yurik>
but in theory it seems that it is possible to implement it
<Yurik>
but i dunno exactly :(
<exarkun>
I've seen an implementation for python
<exarkun>
it seemed to just make programs more confusing
<Yurik>
well, but easily extendable in view of an aspects
<Dybbuk>
What exactly does aspect-oriented programming entail?
<exarkun>
Yurik: sure, if you have a problem where aspects are useful in getting a solution :)
<Yurik>
AOP provides a notions of joinpoints which could be handled in manner you need, dividing aspects
<Yurik>
p.e., in credit card processing different aspects are debiting/crediting, transaction log, and so on
<exarkun>
Dybbuk: "interlaced functions"... it boils down to being able to register callbacks that are invoked before or after other functions
<exarkun>
then you "weave" the system together
<exarkun>
and hopefully it works
<Yurik>
exarkun: what is the name of an implementation for python?
<exarkun>
the one I'm familiar with is part of Twisted, which is a bigger library that does lots of other stuff
<exarkun>
i think there's another one that just does aspects, but the name eludes me at the moment
<mr_bubbs>
is there a famous OCaml httpd?
<mr_bubbs>
er, or any at all?
<mr_bubbs>
I've done a rather nice one in Python and was wondering about switching to OCaml for performance reasons
<Yurik>
btw, does anybody remember, how to say to ircii client (yes, that old irc client ;) to not to leave channel on joining another? :)
<exarkun>
mr_bubbs: heh, I'm sort of tangentially working on porting a python web server to ocaml :)
<mr_bubbs>
if it's old old.. you may have to recompile after changing a config header file
<mr_bubbs>
exarkun: excellent
<Yurik>
mr_bubbs: wel, not very old. i remember few years ago i knew some command to do this, but forgot it :(
<mr_bubbs>
Yurik: I'm trying to remember back to when I used it
<mr_bubbs>
the only thing that comes to mind is /set and look through it :P
<mr_bubbs>
exarkun: well, if you need any help with your httpd project, let me know
Yurik has quit [Read error: 104 (Connection reset by peer)]
<mr_bubbs>
otherwise, I'm gonna be doing some parallel project development :)
<exarkun>
mr_bubbs: have you seen Twisted?
<exarkun>
I'm porting it to OCaml
<mr_bubbs>
yeah
<mr_bubbs>
it's a great concept and it seems to shift into real use quite nicely
<mr_bubbs>
alas, I just need a good httpd
* exarkun
nods.
<exarkun>
as a web server, twisted's only mediocre... as an application server it kicks ass
<exarkun>
so maybe it's not suitable for your needs
<mr_bubbs>
yeah
smkl has quit [Read error: 110 (Connection timed out)]
Demitar has joined #ocaml
Yurik has joined #ocaml
<Yurik>
re
<Yurik>
i've finished first (beta) version of binary i/o for ocaml (w/ endianness support). anybody wanting test it before sending to humps? :)
gene9 has joined #ocaml
Yurik has quit [Read error: 104 (Connection reset by peer)]
Yurik_ has joined #ocaml
<Yurik_>
re
<gene9>
Yurik hi
Yurik_ is now known as Yurik
<Yurik>
gene9: hi
<gene9>
what's up?
<gene9>
how are you?
<Yurik>
quite ok
<Yurik>
just finished one small lib for ocaml ;)
<gene9>
vah. nice =)
<Yurik>
i'm quite ok, but not employed currently
<gene9>
it's not a problem =)
<Yurik>
i was fired recently :)
<mr_bubbs>
ouch
<gene9>
why?
<Yurik>
but now have more spare time for ocaml :))
<mr_bubbs>
seems like everyone is out of work
<Yurik>
why? well.. it was idea of both bosses and me... they payed too less money than before... and... i was angry at bosses :))
<gene9>
=)))
* Yurik
is thinking that he'll send his library to Humps soon
* Yurik
is out to smoke
<gene9>
heh. my vacation starts at monday =) going to brazil^H^H^H err... Kaunas
<gene9>
smoking is dangerous to Yurik' health =)
* gene9
afk
<Demitar>
Aaah! What's this #ocaml seems alive! Flee! :)
<mr_bubbs>
flee
* gene9
shapr, shapr, shapr, where is shapr..
<gene9>
Yurik: show me THE CODE =)
* gene9
still afk
Yurik has quit [Read error: 104 (Connection reset by peer)]
Yurik has joined #ocaml
<Yurik>
damn, i was disconnected while smoking :)
Yurik_ has joined #ocaml
Yurik_ has quit [Client Quit]
<Demitar>
See, smoking is bad for your computers health!
<Yurik>
I don't smoke near computers :)
<Yurik>
more, I smoke rarely now :)
* Yurik
is thinking what he should add to library to make it complete