petchema has quit [Read error: 110 (Connection timed out)]
alexp has quit ["Leaving"]
OChameau has joined #ocaml
hkBst has joined #ocaml
Tetsuo has joined #ocaml
StoneNote has quit []
<Yoric[DT]>
Does anyone know if there's a way to get ocamlc to run its error messages through Camlp4 ?
<flux>
what do you have on your mind?-o
<flux>
you could do it manually, no?
<Yoric[DT]>
With the revised syntax, 'a option becomes option 'a.
<Yoric[DT]>
Error messages in the toplevel take that into account.
<Yoric[DT]>
Error messages in ocamlc don't.
<flux>
oh
<flux>
it's not the difference between running and not running camlp4?
<Yoric[DT]>
Well, to use the revised syntax you need camlp4.
Cosmos95 has joined #ocaml
munga has joined #ocaml
middayc has joined #ocaml
ygrek_ has quit [Remote closed the connection]
ygrek_ has joined #ocaml
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
Cosmos95 has quit []
dramsay has joined #ocaml
robyonrails has quit ["Leaving"]
g361301 has joined #ocaml
blackdog_ has joined #ocaml
dramsay has quit ["Leaving"]
g36130 has quit [Read error: 110 (Connection timed out)]
munga has quit ["Leaving"]
dramsay has joined #ocaml
xavierbot has quit [Remote closed the connection]
xavierbot has joined #ocaml
dramsay has quit ["Leaving"]
petchema has joined #ocaml
<rieux>
ertai: Sorry, i was asleep. I've been trouble loading and then calling into camlp4 from a standalone program (rather than a syntax extension loaded by p4). I've managed to get a parser by linking against camlp4of.cma (which in turn requires toplevellibs.cma), which doesn't seem like the right way to do it, but it's working. To get a printer, I am applying Camlp4.Printers.OCaml.Make myself, which doesn't seem too objectionable.
<rieux>
The other interesting thing that's happening is that having camlp4 loaded causes Toploop.parse_toplevel_phrase (which I'm using to do some automation in the toploop) to read directly from stdin regardless of the buffer that it's given.
<Yoric[DT]>
flux: well, question asked on the mailing-list -- and the answer is "it's not possible".
rieux_ has joined #ocaml
dramsay has joined #ocaml
yyyar has left #ocaml []
rieux has quit [Read error: 110 (Connection timed out)]
seafood_ has joined #ocaml
kmeyer has quit [Remote closed the connection]
postalchris has joined #ocaml
ygrek_ has quit [Remote closed the connection]
rieux has joined #ocaml
rieux_ has quit []
mwc has joined #ocaml
filp has quit ["Bye"]
nameless` has joined #ocaml
<nameless`>
hi
<nameless`>
i would like to know if it exist a prolog solver in ocaml ?
<nameless`>
in others terms, how can i make some prolog command programming ocaml
<mwc>
you want to write a prolog interpreter in Ocaml?
<mwc>
or you want to do logic programming in Ocaml?
nameless1 has joined #ocaml
<nameless1>
i want to do logic programming in ocaml
<nameless1>
second
<nameless1>
i want to do logic programming in ocaml
<g361301>
Something else.. I'm using Genlex. I know how to use for integers, keywords... But for strings? I'd like stuff like "blabla" to be reported as one lex item.
<g361301>
Maybe there is a doc?
aziem has joined #ocaml
jstanley has joined #ocaml
<jstanley>
Anyone know how I can prevent ocamlopt -shared from deleting the assembly code for the startup code that it generates?
<jstanley>
-S just preserves the assembly for the .ml I'm compiling.
<postalchris>
"-ccopt -S"?
<flux>
g361301, doesn't Genlex support strings directly?
<jstanley>
postalchris: Not working, it still just invokes: as -o 'test.startup.o' '/var/folders/GP/GPcdXIPFFSOXhGwWi6+U6++++TM/-Tmp-/camlstartupe3b3ac.s'
Halabund has quit [Client Quit]
ygrek has joined #ocaml
middayc has joined #ocaml
thermoplyae has joined #ocaml
<jstanley>
Anyone know where ocamlopt -dlcode gets the startup code from? I'm trying to inspect it but it deletes the temporary files :( and -S only preserves the generated assembly for the input .ml file.
<flux>
jstanley, use the source?
jderque has quit [Read error: 113 (No route to host)]
tjohnson has joined #ocaml
<tjohnson>
so, when i try to build ocaml on a rhel4 server, I get a failure to compile libgraphics.a due to a lack of -lX11, but i have xorg-x11-devel installed. is there something else I'm missing?
<mfp>
the startup code is generated at link time
<mfp>
try -dstartup to preserve the temp file /tmp/camlstartup*.s
<jstanley>
flux: yeah, i'm a bit slow, i got it =)
<jstanley>
mfp: i just hacked the source to preserve the startup file on -S as well.
<rwmjones>
tjohnson, is this from source? GODI? from a .src.rpm?
<jstanley>
mfp: so re: our conversation yesterday, it's looking like the dylib/bundle generation + natdynlink branch isn't working for mac os x :(
<mfp>
:-|
<jstanley>
mfp: i'm poking through the generated asm on the off chance i can actually do something about it.
<jstanley>
mfp: but i'm not hopeful :)
<tjohnson>
rwmjones: plain source
<jstanley>
mfp: it's a comedy of errors, really. os x 10.4 unofficially, undocumented-ly supported non-pic code in bundles, but with undefined behavior. 10.5, which i'm using, doesn't support it all and won't link ocamlopt-generated code into a shared lib.
<tjohnson>
ahh, cool. i hadn't ever seen that before
<tjohnson>
grr. all i needed to do was add -L/usr/X11/lib64 to the library search path. i'm an idiot :-S
thermoplyae has quit ["daddy's in space"]
<jstanley>
anyone on here know much about the asm code generation backends in ocaml? specifically, anyone have a feel for how much work it'd be to get the mac platform x86 asm emitting code to generate PIC instead of the non-PIC that it currently does?
middayc has quit []
marmottine has quit ["Quitte"]
ReachingFarr has joined #ocaml
Sparkles has joined #ocaml
rwmjones has quit ["Closed connection"]
Yoric[DT] has quit ["Ex-Chat"]
ygrek has quit [Remote closed the connection]
dibblego has joined #ocaml
dusty_ has joined #ocaml
thermoplyae has joined #ocaml
RobertFischer has joined #ocaml
RobertFischer has left #ocaml []
dusty_ has quit [Read error: 111 (Connection refused)]
ita has quit ["Hasta luego!"]
aziem has quit [Read error: 113 (No route to host)]
dramsay has quit [Read error: 110 (Connection timed out)]
Tetsuo has quit ["Leaving"]
StoneNote has joined #ocaml
bluestorm has quit [Read error: 113 (No route to host)]