<bluestorm_>
there was a lot of noise about some python code in the KDE svn recently
<bluestorm_>
but there was ocaml code for a long time
<ita>
thethe noise is because the kde libraries are requiring python
<ita>
this is new
<ita>
nothing like an app requiring python or other tools
<mrvn>
xen requires python
<mrvn>
I was playing with the idea of rewriting dpkg/apt in ocaml.
<ita>
mrvn: why not invent something new instead ? :-)
<bluestorm_>
Xavier Leroy worked on package management recently
<bluestorm_>
but it was server-side management
<ita>
while talking about that, does anybody know a library or a piece of code for graph coloring, that is finding minimum amount of colors necessary for a graph ?
<mrvn>
Uh, wasn't that 5 or 7 or something?
<ita>
for a random graph ?
<bluestorm_>
hm
<mrvn>
It is 4 for a planar graph or not?
<bluestorm_>
you use ocaml-twt ?
<bluestorm_>
for a map it's 4
<mrvn>
bluestorm_: a map is a planar graph.
<bluestorm_>
ita: is there a way to translate .kdi into .sem ?
<bluestorm_>
hm
<ita>
bluestorm_: .kdi files are opened without trouble ..in theory
<bluestorm_>
semantik support .kdi too, great ^^
<ita>
this is a preview, it is not safe to move your documents yet (i mean, documents containing pictures)
<ita>
i am afraid picture handling is buggy - i did not test it
<ita>
on the other hand it is possible to make nicer maps (try the force-based map reorganization)
<ita>
[planarity constraints and optimizations will come later]
<ita>
bluestorm_: and do not look at the code either :-)
<mrvn>
I tried that once in combination with corral growth to generate better freeciv maps.
<ita>
mrvn: ¿did it work?
<bluestorm_>
hm
<bluestorm_>
Traceback (most recent call last):
<bluestorm_>
File "<string>", line 126, in ?
<bluestorm_>
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 3223-3225: invalid data
<bluestorm_>
Segmentation fault
<bluestorm_>
(while typing something in the search bar of the linear view, but i can't reproduce it anymore)
<mrvn>
Quite well.
joshcryer has quit [Read error: 104 (Connection reset by peer)]
<ita>
bluestorm_: which qt version ?
<bluestorm_>
4.2.2
<ita>
thanks for the feedback, i will add a more restrictive filter for string data
<bluestorm_>
force-fixed reorganization is cool
<bluestorm_>
hm
<bluestorm_>
one little problem is the fact that disconnected graph may end really far one from another
<ita>
known problem
<bluestorm_>
(this gives a lot of new features ideas ^^)
<ita>
yes
<ita>
there are many other unimplemented things
<ita>
and as usual, undo+redo come last :-/
<ita>
the mouse interaction has been changed, now it is possible to do almost everything from the select mode
<ita>
(wheel to zoom, middle-button to scroll, double-click on a link to disconnect, click on items to link)
dark_light has quit [Remote closed the connection]
<ita>
an interesting feature i have found when doing the caml bindings is that without CAMLparam0 and CAMLreturn the garbage collector can make crashes very difficult to track
<ita>
as soon as a value is used
<ita>
with only integers (as in the fibo example) everything is fine
<bluestorm_>
metaphore.setData(holomorphe);
<mrvn>
As soon as you store the address of a value accross gcc calls you are screwed.
<mrvn>
s/gcc/gc/
<ita>
bluestorm_: so whqt ? :-)
<ita>
"code is poetry"
<bluestorm_>
hm
<bluestorm_>
this is obfuscation :p
<ita>
bluestorm_: no, this is waiting kdelibs 4 (not safe for hacking right now)
<ita>
the code is really ugly yes
<ita>
lots of "stuff", "x" and others
mshlimov has quit [Read error: 110 (Connection timed out)]
chowmeined has joined #ocaml
chowmeined has left #ocaml []
ygrek has quit [Remote closed the connection]
pango has quit [Broken pipe]
screwt8 has quit [Success]
pango has joined #ocaml
_blackdog has joined #ocaml
screwt8 has joined #ocaml
ikaros has joined #ocaml
ygrek has joined #ocaml
ikaros has quit ["segfault"]
Zzompp has quit [Remote closed the connection]
kig has quit ["bing"]
cjeris has joined #ocaml
cjeris has quit [Read error: 104 (Connection reset by peer)]
LeCamarade has joined #ocaml
<LeCamarade>
Forgotten how it is that I load a lib. Is it by #load Unix;; ? Don't work ...
<LeCamarade>
On the REPL, that is.
pango has quit [Remote closed the connection]
pango has joined #ocaml
<bluestorm_>
LeCamarade:
<bluestorm_>
you mean, in the interactive toplevel ?
<LeCamarade>
bluestorm_: Yes.
<bluestorm_>
#load "unix.cma";;
<LeCamarade>
bluestorm_: And what are you doing here? Spying? Aren'
<bluestorm_>
?
<LeCamarade>
t you supposed to ne in #haskell?
<bluestorm_>
yes
<bluestorm_>
my wonderful irc client support multiple channels
<bluestorm_>
:)
<LeCamarade>
bluestorm_: Doesn't work, it seems.
<LeCamarade>
Doesn't.
<bluestorm_>
hm
<LeCamarade>
Syntax error on the dot.
<LeCamarade>
Oh!
<LeCamarade>
Hold.
<LeCamarade>
Worked!
<LeCamarade>
My bad.
<LeCamarade>
Thanks.
<LeCamarade>
:oD
<LeCamarade>
We have the whole channel to ourselves! :oD
Hadaka has quit [zelazny.freenode.net irc.freenode.net]
<bluestorm_>
:p
<bluestorm_>
LeCamarade:
<bluestorm_>
you can add the Unix support at launch
<bluestorm_>
ocaml unix.cma
<bluestorm_>
(and when you're gonna compile, ocamlc unix.cma ...)
<LeCamarade>
Yeah, but I think it
<LeCamarade>
'was good to remember how to do it with #load.
<LeCamarade>
Okay, now I keep getting the error, that reference to undefined global variable Unix.
<LeCamarade>
And yet I did ocamlc -o sock sock.ml unix.cma
<LeCamarade>
Oh, figured it. Order of args. :oD
pedro_soc has joined #ocaml
smimou has joined #ocaml
pattern has quit [zelazny.freenode.net irc.freenode.net]
pattern has joined #ocaml
ita is now known as ita|away
<ygrek>
there is no ocamlmklib on windows - right?
Smerdyakov has joined #ocaml
<ygrek>
how can I compile ocamlgsl on windows with mingw?
<ygrek>
or with msvc?
jlouis has joined #ocaml
<ygrek>
huh. looks it works. not a piece of cake..
<ygrek>
but only bytecode. though it is enough right now.
mikeX has joined #ocaml
fremo has joined #ocaml
ygrek has quit []
<LeCamarade>
Okay, A call to Unix.read keeps terminating at the next new line. Isn't there another function I can use?