Belgarion has quit [Read error: 110 (Connection timed out)]
kruskal has joined #ocaml
gl has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
gl has quit [sendak.openprojects.net irc.openprojects.net]
themus has quit [sendak.openprojects.net irc.openprojects.net]
exarkun has quit [sendak.openprojects.net irc.openprojects.net]
gl has joined #ocaml
exarkun has joined #ocaml
themus has joined #ocaml
* jlamar
is away: shotz0r
smkl has joined #ocaml
malc has joined #ocaml
themus has quit [sendak.openprojects.net irc.openprojects.net]
gl has quit [sendak.openprojects.net irc.openprojects.net]
exarkun has quit [sendak.openprojects.net irc.openprojects.net]
gl has joined #ocaml
exarkun has joined #ocaml
themus has joined #ocaml
golya has joined #ocaml
<golya>
Hi, I've a very primitive question.
<golya>
After installing ocaml, I tried to install lablgtk.
<golya>
The compilation failed with the message: Cannot find file std_exit.cmo
<golya>
However, my environment variables seems correct.
<golya>
System: windows mingw, compilation under cygwin environment
<golya>
Environment variables:
<golya>
OCAMLLIB=/cygdrive/c/ocamlmgw/lib
<golya>
CAMLLIB=/cygdrive/c/ocamlmgw/lib
<golya>
The mingw ocaml is installed under c:\ocamlmgw\, and the bin subdir is in the path
<malc>
is std_exit.cmo present in ...\lib?
<golya>
Yep
<malc>
i conclude that you are doing something terribly wrong
<golya>
Particularly?
<malc>
i guess youd have to figure this out the hard way and on your own
<golya>
So you've no idea?
<malc>
unfortunatelly no
<golya>
SIGH. OK, I'll keep trying.
<golya>
BTW anybody can show me a good lablgtk tutorial?
<malc>
ocaml is compiled with cygwin btw?
<malc>
there is no good lablgtk tutorial
<golya>
Under cygwin, but following the instructions for mingw.
<golya>
The mingw gcc compiler was in the path at the first place
<malc>
what if you set CAMLLIB as /ocamlmgw/lib ?
<golya>
Uff. I don't except much, but I'll try it.
<golya>
Cygwin's root directory != c:\
<malc>
as for lablgtk, there is dedicated hump for it.. maybe it can provide something educational
<malc>
just set it in windows convention
<golya>
OK, will try it.
<golya>
The lablgtk hump is about complete project isn't it? I'm searching for very tiny examples.
<malc>
very tiny examples are included in the lablgtk distribution
<golya>
Yes, but not too much explanations, indeed they're working examples, they are not like a tutorial.
<malc>
yes. but anyway they did fine for me
kruskal has left #ocaml []
<golya>
I'm not too much experienced in ocaml, however I've learnt functional programming (SML), so for me these examples are a bit hard to read.
<malc>
tough luck
<golya>
thx
<golya>
I mean, I'll keep on reading the examples.
<malc>
might help after a while
golya has left #ocaml []
golya has joined #ocaml
golya has left #ocaml []
malc has quit ["no reason"]
kruskal has joined #ocaml
* jlamar
is back (gone 06:45:25)
jlamar has left #ocaml []
jlamar has joined #ocaml
Yurik has joined #ocaml
<Yurik>
re
<pnou>
yop Yurik :)
<Yurik>
pnou: hi :)
* Yurik
is thinking on which ocaml primitive to use to build pool class
<pnou>
to pool what ?
<Yurik>
anything
<Yurik>
structure like (something, counter)
<Yurik>
to make effective pooling
<Yurik>
to pool connections, or so
<Yurik>
to use needed normalizing function
<Yurik>
so i mean ('a * int) structure
<Yurik>
with need to sort and *update* it handy
<pnou>
what for will you use it?
<jlamar>
My guess is (a' * int) array
<jlamar>
Err..
<jlamar>
('a * int) array
<jlamar>
If it needs to be updated and sorted, I think the array will be most efficient, but if you like lists, you could get away with them too using a list ref
Yurik- has joined #ocaml
<Yurik->
re
<Yurik->
oops
<Yurik->
i got disconnected :(
<Yurik->
did you got my msgs?
<jlamar>
Nope
<Yurik->
pity
<jlamar>
Did you get mine??
<Yurik->
nope
<jlamar>
I said I'd use an array or a listref
<Yurik->
may be
<Yurik->
but seems not very handy, anyway :(
<jlamar>
What's not handy about it?
<Yurik->
well, generally it is possible
<Yurik->
i'm seeking for performance effective one
<jlamar>
I think the array has the best performance when you're doing imperative stuff like you describe
kruskal has left #ocaml []
<jlamar>
It even has a handy sort function in the standard library!
<Yurik->
i know
<Yurik->
seems that array is really the solution that is around
<jlamar>
You might also try a (int, something) Hashtbl.t
<Yurik->
i tried hashtbl
<Yurik->
(Ohashtbl.c, in fact)
<Yurik->
but.... seems that it is less handy than array
<Yurik->
it is easy to lookup by key..
<Yurik->
but by value..
<Yurik->
but may be
<jlamar>
Oh, you need to go both ways? Or you need to iterate over the collection?
<smkl>
you can have two hashtables then
<Yurik->
i'm unfamiliar with ocaml implementation of hashtbl
<Yurik->
i need to go both ways
<Yurik->
i know that i can use two hashtables. but as for me it is a last variant (it is not mature)
<jlamar>
Well, if you need to look up by value, I think two hashes will be quicker to do that than an array
<Yurik->
you think?
<Yurik->
i'll try
Belgarion has joined #ocaml
<jlamar>
Well, think of it, it's like, you can only order the array by the values of one of the pairs, so with respect to the other one, the array will essentially be random
<Yurik->
well, seems that you're right. thanks :) i'm a bit slow today
<jlamar>
Haha, but you could also do a binary search on two arrays
* Yurik-
is talking on livejournal.com...
Yurik has quit [Read error: 104 (Connection reset by peer)]
Yurik- is now known as Yurik
* Yurik
is back
* Yurik
is smoking..
Yurik- has joined #ocaml
<Yurik->
re
<Yurik->
disconnected again :(
<jlamar>
That happens to me a lot too
<Yurik->
dialup, too?
<jlamar>
No, it's DSL, and it's still nutty
* Yurik-
wanna xDSL here
Yurik has quit [Read error: 104 (Connection reset by peer)]
<Yurik->
since in this godforsaken country is no real ADSL.. :(
Yurik- is now known as Yurik
<jlamar>
What country?
<Yurik>
Ukraine
<jlamar>
Cool!
<Yurik>
what is cool?
<jlamar>
The Ukraine, I've never met anyone from there
<Yurik>
ah
<Yurik>
it is not "The",
<Yurik>
:)
<Yurik>
The USSR, but not The Ukraine .) as far as I know English rules
<Yurik>
:)
<jlamar>
Oh, I don't know why I called it that, you're right
<Yurik>
but /me thinks that not too much ppl know what and where Ukraine is
<jlamar>
I thought it was right smack against russia, kind of on the southeasterly side
<Yurik>
southwest
<jlamar>
Oh yeah, I got my east and west confused
<Yurik>
we're near Poland
<jlamar>
I put you over by china...haha
<Yurik>
:))
<jlamar>
I live in the US
<Yurik>
china is far away from here :))
<Yurik>
US is far away too
<Yurik>
:)
<jlamar>
Yeah, but I've always wanted to visit eastern europe
<Yurik>
what for?
<jlamar>
I like sausage
<Yurik>
hah
<Yurik>
you have no sausage in U.S.? I don't believe in this :))
<jlamar>
We have sausage, but my guess that the sausage is better there
<Yurik>
hm, i haven't compared
<Yurik>
i know only one reason why europeans and americans wanna visit eastern europe
<Yurik>
very cheap alcohol
<jlamar>
All the best sausage here is like german and polish and hungarian
<Yurik>
:)
<jlamar>
Haha
<jlamar>
I don't drink at all, though, I'm motivated by pure sausage love
<Yurik>
see - I'm drinking a can of beer right now. it costs about 35c
<Yurik>
:)))
<jlamar>
That's pretty cheap!
<Yurik>
sausage.. i've lot of it in my refrigerator
<Yurik>
yeah
* Yurik
is thinking that after week or so he willn't have neither beer nor sausage
<jlamar>
Why not?
<Yurik>
i'm still unemployed from the end for June
<Yurik>
s/for/of/
<jlamar>
Oh, me too
<Yurik>
i have my last $20 and more than $160 of active debt :((
<jlamar>
That's no good...
<Yurik>
yeah..
<Yurik>
trying to find profitable job
<Yurik>
:)
<jlamar>
Yeah, me too, but it's difficult
<Yurik>
aha
<Yurik>
especially after IT crisis and 11 Sep
<jlamar>
What really bugs me is that most of the people with IT jobs here don't have a clue what they are doing
<Yurik>
m?
<jlamar>
They seriously come out of college without knowing what a main() function is
<Yurik>
ah
<Yurik>
ek
<Yurik>
that's bad
<jlamar>
Yeah it is
<Yurik>
it compromises us
<Yurik>
ooh
<Yurik>
wrong word
<Yurik>
err... i can't find translation... ummm
<jlamar>
It's ok
<jlamar>
I think I get what you're saying
<Yurik>
ah
<Yurik>
it is right word
<Yurik>
i've checked
<jlamar>
Yeah, it bothers me when people are just in it for the money, I'm thinking of taking up a different profession and just programming for fun
<Yurik>
btw, at the end of July i was at russian Linux Festival (4th). it really rocks
<Yurik>
afaik, it is MUCH better than western ones :)
<jlamar>
Haha, I don't think we have Linux Festivals
<Yurik>
jlamar: i thought of it, too
<Yurik>
jlamar: it was really great (as 3rd, too :) - forest, river, sun and few days of fun
<jlamar>
I've only been to the meetings of my local Linux Users Group
<Yurik>
also a lot of "shashlyk" - caucasian analogue of barbeque (right?) - it is very popular here for a lot of years
<Yurik>
i don't participate my local LUG - they're still kids
<jlamar>
Most of mine are way older than I am
<Yurik>
my local LUG guys are about 18
<Yurik>
and their ideas are zero :(
<Yurik>
it's pity
<Yurik>
mostly because my plans are big as about to Linux (i'm developing OSS project)
<jlamar>
They aren't developers?
<Yurik>
yeah, they are sys. admins (it is good for them), but mostly their are inmature students, that are "around" linux
<Yurik>
s/their/they/
<Yurik>
sorry for my bad English :(
<jlamar>
It's ok
<jlamar>
Most of mine are sysadmins too
<Yurik>
i was sysadmin, but not for a long term (about 0.5 year)
<Yurik>
in fact, i like programming more than administration
<jlamar>
I don't know so much about administration
<Yurik>
i knew but lost a lot of
<Yurik>
and it is ok for me
<jlamar>
Yeah, it seems like it's more fun to program
<Yurik>
aha
<pnou>
especially in ocaml :)
<jlamar>
Yeah!!
<Yurik>
aha!! :)
<pnou>
will you compete for the icfp contest ?
<Yurik>
me - no
<jlamar>
Not me, I'm still pretty much a rookie
<pnou>
pffffffffff
<Yurik>
?
<jlamar>
??
<pnou>
bad dispense :)
<jlamar>
What does that mean?
<pnou>
oups french :/
<smkl>
hopefully i wont make that mistake again
<pnou>
bad excuse :)
<Yurik>
in fact, IFCP is for cool functional guys, right?
<Yurik>
i can't present much stuff in functional programming yet :(
<pnou>
no
<Yurik>
i have some bits of it, but...
<pnou>
there are even C entries
<Yurik>
but what is the goal of IFCP?
<Yurik>
general idea?
<pnou>
it's to determine what is the coolest language for discriminating hackers :)
<Yurik>
ah
<Yurik>
:)
<Yurik>
what is the term?
<Yurik>
err
<Yurik>
are the terms?
<pnou>
well, at the end of the month the task will be put on a web server
<Yurik>
hmmm.. may be i'll try - if i'll finish my 'uservice'... if it is applicable to IFCP
<pnou>
then you have three days to implement a solution
<jlamar>
It's free to enter?
<pnou>
sure
<jlamar>
Maybe I'll give it a whack
<Yurik>
ah
<Yurik>
i understand
<Yurik>
so they'll propose a task to solve, right?
<pnou>
yes Yurik
<Yurik>
i was miskated about what is IFCP
<Yurik>
mistaked
<Yurik>
may be i'll try
<pnou>
last year it was a xml like source cleaner
<pnou>
it's fun to compare your result with those of big teams
<pnou>
like the Leroy's one
<Yurik>
heh
<Yurik>
bah
* Yurik
will be back later
Yurik has quit ["Leaving"]
gene9 has joined #ocaml
graydon has joined #ocaml
TimFreeman has joined #ocaml
<TimFreeman>
I'm interested in using a glade-like tool with ocaml. The options seem to be mlglade, zoggy, and the glade stuff that comes with lablgtk. Does anyone have any information about which of these I should expect to be more ...
<TimFreeman>
reliable?
<pnou>
i use zoggy
<TimFreeman>
pnou: Which version?
<pnou>
0.93
<TimFreeman>
And of course the important part: do you use it despite great pain, or are you happy with it?
<pnou>
i don't think it's released
<pnou>
i'm happy :)
<pnou>
but my needs are limited
<jlamar>
Doesn't regular glade have a way of generating interfaces in XML?
<TimFreeman>
pnou: Thanks. Debian has 0.91-3. Do you know if that version is usable, or should I go with their latest from CVS?
<pnou>
yes jlamar
<pnou>
0.91 is ok
<TimFreeman>
jlamar: Yes, I think its normal output file is xml. The question in my mind is which xml-to-ml translation I should use (except I think zoggy simple replaces glade).
<jlamar>
Ohhh..ok
<pnou>
and the lastest cvs version is hard to compile, i think
<TimFreeman>
pnou: Thanks much. I'll probably be giving zoggy 0.91 a try soon.