Banana changed the topic of #ocaml to: OCaml 3.08 "Bastille Day" Release available ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn , A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ , A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list
mflux has quit [Read error: 104 (Connection reset by peer)]
mflux has joined #ocaml
GreyLensman has joined #ocaml
cjohnson has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
yauz has joined #ocaml
yauz_ has quit [Read error: 60 (Operation timed out)]
pnou_ has quit ["au dodo"]
CosmicRay has joined #ocaml
monochrom has quit ["Don't talk to those who talk to themselves."]
GreyLensman has quit ["Leaving"]
debona|r has joined #ocaml
CosmicRay has quit ["Leaving"]
monochrom has joined #ocaml
cjohnson has quit [Read error: 104 (Connection reset by peer)]
mrsolo_ has quit [Read error: 104 (Connection reset by peer)]
Herrchen_ has joined #ocaml
Herrchen has quit [Read error: 60 (Operation timed out)]
jdrake has joined #ocaml
<jdrake> how can I make an empty string list, [""] would imply a string list with an empty string in it I assume
<Riastradh> [] : string list
<jdrake> hmm, i thought I saw a list function that could modify a list in place (appending)
<Riastradh> No. Lists are immutable.
<jdrake> i guess I will need a reference to the list
<monochrom> You can use arrays.
<monochrom> strings themselves are also mutable.
<jdrake> how do you append to the end of an array a single item
<Riastradh> Arrays aren't the right thing to use if you're going to be stretching and contracting them frequently, like one often does with lists.
<jdrake> i am just adding on here
<monochrom> You've got me.
<jdrake> actually I might as well tell you what I am doing so that maybe a suggestion can be put forth as I am probably going to come up with a hack anyways
<jdrake> I need to take "create game" or... "[item][space(s)][item][space(s)][item][space(s)][item]..." and turn it into ["item", "item", "item"]
<rjudace> Does anyone know of a good symbolic equation solver, i have an equation i want an analytic solutions for and I'm pretty sure it has an analytic solution
<rjudace> let word_list_of_string s = Str.split (Str.regex " +") s
<monochrom> Str.split
<jdrake> i didn't think I saw that function
<jdrake> what is this 'Str' module
<monochrom> You have to scroll down the Str page a lot.
<monochrom> ocaml's regex module.
<jdrake> i don't see it heer
<jdrake> oh I see it
<jdrake> no wonder 'String' looks like it is missing its balls
<monochrom> heh heh heh
<jdrake> and here I was thinking ocaml's string support sucks
Nutssh has joined #ocaml
Nutssh has left #ocaml []
<jdrake> any ideas why I keep getting: Reference to undefined global `Str' even after open Str;;
<Riastradh> Not unless you show what gets you that.
<jdrake> # Str.split;;
<jdrake> also:
<jdrake> # open Str;;
<jdrake> # split;;
<Riastradh> Peculiar.
<jdrake> is Str pure ocaml
<mflux> #load "str.cma";;
<jdrake> nice
<jdrake> i suppose I will have to put str.cma on the command line for linking
<jdrake> why does ocaml seem to buffer output a little more than C
<monochrom> I don't know why. I just know it does.
<jdrake> that is my problem right now :-(
<jdrake> the prompt comes out after I enter my text
<mflux> familiarizing oneself with Printf's format strings might be worth your time
<monochrom> You input_line before you printf
<jdrake> crap, i seem to be doing this a lot
<mflux> yeah, I'm too just looking at that and no wonder it does that ;)
<monochrom> heheheh
<mflux> I would imagine ocaml's input/output is synchronized
<mflux> atleast every other language's is ;)
<jdrake> that code, corrected, without the flush it works the same way as if the code was still broken as described
<jdrake> this thing in this picture isn't emacs is it: http://laurent.moussault.9online.fr/framer/shot-1.png
<mflux> I don't think so
<jdrake> i am kind of wondering :-)
<monochrom> emacs doesn't show "preferences"
<monochrom> nedit is a good possibility
<jdrake> hmm, this is interesting: "Red Hat's Bluecurve icons displayed in the RISCOS-style of no application menu bars"
<jdrake> i wonder how they do that
<monochrom> A button bar is a menu bar. For the illiterate.
<monochrom> I'll call it "completely graphical" if they also replace "12 items (193 hidden)" by pictures.
<jdrake> how did they do that to opera though
<monochrom> For example they may show 12 dots in black and 193 dots in grey.
<monochrom> I think it is more than opera.
<monochrom> I think it is a gnome across-the-board setting.
<jdrake> well time for my reading, thank you everybody for putting up with me
FredCods has quit [Remote closed the connection]
FredCods has joined #ocaml
debona|r has left #ocaml []
mrsolo has joined #ocaml
_fab has joined #ocaml
Hipo has joined #ocaml
smimou has joined #ocaml
monochrom has quit ["Don't talk to those who talk to themselves."]
ita|home is now known as ita
<ita> looks like my svg output is good enough now http://freehackers.org/~tnagy/misc/nice-packing.png :)
<mflux> is it a complex algorithm?
jdrake has quit [Read error: 110 (Connection timed out)]
<ita> mflux: the svg output: no, the packing algorithm: yeees :)
<mflux> ita, adhoc or an actually well thought algo?-) (the latter of course)
<ita> well thought
<mflux> ita, now generalize that into three dimensions and then to n dimensions?-)
<ita> it can look at about 500000 configurations (with 15 rectangles) per second
<ita> mflux: i already have
<mflux> hmm.. so it's still brute force, but it has some smart evaluation function?
<mflux> for school, work or pleasure?-)
<ita> threesome :)
<mflux> well, you haven't yet generalized that for arbitrary shapes?-)
<ita> do you see the animation on the last url (.mng file) ?
<mflux> no, I don't think my firefox supports nmg
<mflux> mng even
<ita> no, i haven't generalized for arbitrary shapes - not enough time
<mflux> ..then you could have automatic 1000 thousand piece puzzle solver!
<ita> haha :) - solving a puzzle is trivial
<ita> there's no complexity in it
<mflux> well, yeah I suppose it could use a simpler algorithm
<ita> but packing shapes to find a global minimum is way much harder
<mflux> does your algorithm find the global minimum?
<mflux> sounds like a tricky thing to prove
<ita> eg: for n rectangles, there are 2^n*(n!) possible configurations
<mflux> anyway, a free-form version of that software could be useful in real life: imagine packing the car when going to a vacation etc ;)
<ita> my algorithm finds local minimums and may find the global minimum
<ita> yes, i know - i simply have no time for doing that (except if i get sponsored for working on it)
mrsolo has quit [Read error: 60 (Operation timed out)]
mrsolo_ has joined #ocaml
kinners has joined #ocaml
Iter has joined #ocaml
kinners has quit [Read error: 110 (Connection timed out)]
vezenchio has quit ["all that is necessary for evil to triumph is for good men to do nothing"]
pnou_ has joined #ocaml
cjohnson has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
kosmikus is now known as kosmikus|away
Herrchen_ is now known as Herrchen
pac_away has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
pac_away has left #ocaml []
Iter has quit [Read error: 110 (Connection timed out)]
gim has quit ["brb"]
gim has joined #ocaml
jdrake has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
ita is now known as ita|weekend
mrsolo_ has quit [Read error: 104 (Connection reset by peer)]
ita|weekend has quit ["leaving"]
maihem has joined #ocaml
Robert has joined #ocaml
jdrake has quit [Read error: 110 (Connection timed out)]
ionOS has joined #ocaml
mattam_ is now known as mattam
maihem has quit ["Read error: 54 (Connection reset by chocolate)"]
monochrom has joined #ocaml
ionOS has quit [Read error: 110 (Connection timed out)]
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
mflux has quit [Read error: 104 (Connection reset by peer)]
kosmikus|away has quit [Broken pipe]
kosmikus1away has joined #ocaml
FredCods has quit [Broken pipe]
FredCods has joined #ocaml
det has quit [niven.freenode.net irc.freenode.net]
det has joined #ocaml
mflux has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
fariseo has left #ocaml []
bzzbzz has joined #ocaml
Riastradh has quit [Remote closed the connection]
Riastradh has joined #ocaml
CosmicRay has joined #ocaml
jdrake has joined #ocaml
vezenchio has joined #ocaml
CosmicRay has quit ["Client exiting"]
Iter has joined #ocaml
smimou has quit ["?"]
monochrom has quit ["Don't talk to those who talk to themselves."]
pac_away has joined #ocaml
pac_away has left #ocaml []
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
mflux has quit [Remote closed the connection]
mflux has joined #ocaml
debona|r has joined #ocaml