systems changed the topic of #ocaml to: Archive of Caml Weekly News http://pauillac.inria.fr/~aschmitt/cwn/ | ICFP Programming Contest 2003 http://www.dtek.chalmers.se/groups/icfpcontest/ | A tutorial http://merjis.com/richj/computers/ocaml/tutorial/ | Good free book http://cristal.inria.fr/~remy/cours/appsem/ | Mailing list (best mailing list ever for any computer language) http://caml.inria.fr/bin/wilma/caml-list
<Riastradh> Oops, sorry, I had to go assist the preparation of supper.
<Smerdyakov> I knew it. Riastradh is 16.
<Riastradh> In terms of SRFI support, SISC beats every other implementation I can think of -- gauche is the only one I can think of that comes anywhere near --.
<Smerdyakov> OMG! The most horrendous abuse of hyphens ever!!!
<Smerdyakov> --.
* Smerdyakov falls over.
* Riastradh grumbles at the typical poor education of Americans about the use of emdashes.
<Smerdyakov> --. --. --. !!!!!
<Riastradh> Would you write ').' ?
brwill_zzz is now known as brwill
<Smerdyakov> I wouldn't write it as a sentence by itself!
<Riastradh> OK, suppose the sentence were:
<Smerdyakov> I think -- is a separator, not a beginning-end delimter.
<Smerdyakov> iter
<Riastradh> In terms of SRFI support, SISC beats every other implementation I can think of (gauche is the only one I can think of that comes anywhere near).
<Riastradh> Would you have complained about my putting a punctuation mark after the closing parenthesis?
<Smerdyakov> No, but parentheses are always dodgy as far as formal grammar goes, anyway. :)
brwill is now known as brwill_out
<Riastradh> Why, then, would you complain about the same sentence but with emdashes instead of parentheses?
<Smerdyakov> Because there is no portion of the sentence after the 2nd --.
<Riastradh> An emdash may act as either a separator or similarly to a parenthesis.
<Riastradh> There is no portion of the sentence after the closing parenthesis, either.
<Smerdyakov> Only the WEAK use them like parentheses.
<Smerdyakov> Small scrawny-men who wipe their noses on flowers
<Riastradh> If by that you mean only the people who actually have a clue about English grammar, then yes.
mrvn_ is now known as mrvn
* Riastradh now goes off to eat that pfhood that he mentioned.
Kinners has joined #ocaml
lam has quit ["Lost terminal"]
Maddas has quit [Read error: 110 (Connection timed out)]
bk_ has quit ["I'll be back"]
Maddas has joined #ocaml
Kinners has left #ocaml []
<phubuh> i wrote "foo -- bar --; baz" recently
foxster has quit [Client Quit]
lam has joined #ocaml
foxster has joined #ocaml
bk_ has joined #ocaml
mattam_ has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
mrvn_ has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
mrvn_ is now known as mrvn
foxster has quit [Client Quit]
det has joined #ocaml
bk_ has quit ["I'll be back"]
systems has joined #ocaml
Demitar has joined #ocaml
systems has quit [No route to host]
det has quit ["sleep"]
srv has quit [Remote closed the connection]
bk_ has joined #ocaml
Demitar has quit [Read error: 110 (Connection timed out)]
teratorn has quit [Read error: 110 (Connection timed out)]
polin8 has quit [Remote closed the connection]
polin8 has joined #ocaml
foxster has joined #ocaml
buggs|afk has joined #ocaml
systems has joined #ocaml
<Smerdyakov> If anyone wants to see a structured wiki programming language database I'm working on, go to http://pldb.net/
systems has quit ["Client Exiting"]
buggs has quit [Nick collision from services.]
buggs|afk is now known as buggs
bk_ has quit ["I'll be back"]
<Maddas> bloody verisign
<phubuh> indeed
musasabi has joined #ocaml
<musasabi> Can ocaml be used on embedded systems (and what modifications does it need)?
<phubuh> what do you mean by embedded systems?
<musasabi> in this case a system without an OS, with limited memory resources, (but a 32-bit architecture)
<musasabi> or rather there is an OS, but it is very primitive.
Xcalibor has joined #ocaml
<Xcalibor> hiyas :)
<mrvn> If you get the ocaml interpreter running or if theres a compiler why not?
foxster has quit [leguin.freenode.net irc.freenode.net]
polin8 has quit [leguin.freenode.net irc.freenode.net]
brwill_out has quit [leguin.freenode.net irc.freenode.net]
rox has quit [leguin.freenode.net irc.freenode.net]
Xcalibor has quit [leguin.freenode.net irc.freenode.net]
mrvn has quit [leguin.freenode.net irc.freenode.net]
mattam_ has quit [leguin.freenode.net irc.freenode.net]
Maddas has quit [leguin.freenode.net irc.freenode.net]
wax has quit [leguin.freenode.net irc.freenode.net]
musasabi has quit [leguin.freenode.net irc.freenode.net]
cm has quit [leguin.freenode.net irc.freenode.net]
buggs has quit [leguin.freenode.net irc.freenode.net]
whee has quit [leguin.freenode.net irc.freenode.net]
phubuh has quit [leguin.freenode.net irc.freenode.net]
vect has quit [leguin.freenode.net irc.freenode.net]
Hipo has quit [leguin.freenode.net irc.freenode.net]
vegai has quit [leguin.freenode.net irc.freenode.net]
mellum has quit [leguin.freenode.net irc.freenode.net]
lam has quit [leguin.freenode.net irc.freenode.net]
Riastradh has quit [leguin.freenode.net irc.freenode.net]
smkl has quit [leguin.freenode.net irc.freenode.net]
Smerdyakov has quit [leguin.freenode.net irc.freenode.net]
mellum has joined #ocaml
Hipo has joined #ocaml
vect has joined #ocaml
phubuh has joined #ocaml
vegai has joined #ocaml
whee has joined #ocaml
buggs has joined #ocaml
Smerdyakov has joined #ocaml
smkl has joined #ocaml
Riastradh has joined #ocaml
lam has joined #ocaml
Xcalibor has joined #ocaml
musasabi has joined #ocaml
foxster has joined #ocaml
polin8 has joined #ocaml
mrvn has joined #ocaml
mattam_ has joined #ocaml
Maddas has joined #ocaml
wax has joined #ocaml
brwill_out has joined #ocaml
rox has joined #ocaml
cm has joined #ocaml
musasabi has left #ocaml []
systems has joined #ocaml
systems has quit [Connection timed out]
Vincenz has joined #ocaml
mattam_ has quit [Read error: 110 (Connection timed out)]
brwill_out is now known as brwill
<Xcalibor> laters!
Xcalibor has quit ["Terminando cliente"]
buggs has quit [Read error: 110 (Connection timed out)]
systems has joined #ocaml
brwill is now known as brwill_out
systems has left #ocaml []
srv has joined #ocaml
<srv> hi all! I have a pretty big problem and i need your help. I have troubles linking an Ocaml lib with some C code.
<srv> I'd like to be sure how the ocaml lib must be made
<whee> srv: I've done nothing with this, but I'll try to help
<whee> you're trying to call ocaml code (as a library) from within C?
<whee> or just use C from within ocaml
<srv> some ocaml code from C
<srv> my first pb is: how to make the .a lib? (do I need a .a lib?)
<mrvn> ocamlopt -c bla.ml ?
<srv> well.. this only creates a .o and a .cmx
<whee> there's a good description of doing things in section 18.7
<whee> and 18.8
<srv> I've already seen this doc
<srv> the pb is that our ocaml lib is BIG
<whee> it seems to explain it pretty well
<srv> so we'd like to make 1 lib, and then link the C program with the lib
<whee> you just need to write a wrapper set of functions in C
<srv> whee: done
<whee> right, that's what this seems to do
<whee> (what this explains how to do, anyway)
<srv> the actual problem is that when we try to link the C executable, we have a lot of errors (with gcc)
<whee> I'm just looking at section 18.8 in that link I pasted; it looks like you just compile to object files and use ar to put them in one library
<whee> what kind of errors?
<srv> libasmrun.a(startup.o)(.text+0x17c): In function `init_atoms':
<srv> : undefined reference to `caml_data_segments'
<srv> libasmrun.a(startup.o)(.text+0x187): In function `init_atoms':
<srv> : undefined reference to `caml_data_segments'
<srv> ...
<srv> pages like this
<srv> first, i'd like to make sure that my .a lib is fine
<srv> after that, I'll try to solve the linking pb
<whee> err, that's odd
<srv> well... yes
<srv> :)
<whee> heh
<whee> caml_data_segments really should be in that libasmrun library
<whee> are you using the right library with the right tool (ocamlc or ocamlopt)
<srv> what do you mean?
<whee> well, are you using ocamlc with libcamlrun and ocamlopt with libasmrun
<whee> when you use ar to create that static lib
<whee> er, libcamlrun
<srv> well the static lib is made by ocamlmklib right now
<srv> thanks to the '-oc' option
<srv> isn't that right?
<srv> do I need to ranlib the .a after that?
<whee> oh, that's a neat command
<whee> heh
<srv> I gessed :)
<whee> looks like you don't
<srv> ok
<srv> thx
<whee> I have no idea about what's wrong, though
<whee> I haven't done much with ocaml and C interaction
<srv> ok I'll try one or two ideas...
<whee> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&threadm=fa.bfdij5v.1h1es3d%40ifi.uio.no&rnum=25&prev=/groups%3Fq%3Docamlmklib%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26safe%3Doff%26selm%3Dfa.bfdij5v.1h1es3d%2540ifi.uio.no%26rnum%3D
<srv> gcc ../libnn/libnn.a funcaml.o marvin.o main.c -o plop -lasmrun -L/usr/lib/ocaml/
<srv> isn't that right?
<srv> (funcaml.o: compiled stubs, marvin.o: .ml compiled with -output-obj, main.c: guess! :) )