thrasibule has quit [Read error: 110 (Connection timed out)]
<tvn2009>
is there any preference when using sprintf vs ^ to create string ? e.g., let s = sprintf "my value is %d" 5 vs let s = "may value is " ^ (string_of_int 5) ?
<mrvn>
I think sprintf first counts how much space it needs, allocates a big enough string and then prints into it.
<mrvn>
^ allocates a new string for every occurance.
<tvn2009>
so sprintf is more efficient ?
<eldragon>
Sather is middle-level imperative, good! re-birth it!
<eldragon>
i want a way to do .s -> .o, .c -> .o, .sa -> .o and link them.
bohanlon has quit [Remote closed the connection]
ikaros_ has quit ["Leave the magic to Houdini"]
<mrvn>
tvn2009: if you have more than just one ^ then I would think so.
<mrvn>
tvn2009: also easier to localize and easier to read imho.
<mrvn>
If you build a string bit by bit through multiple functions I would also rather use the Buffer module than ^.
<mrvn>
e.g. when you want to turn an int list into a string
<tvn2009>
ic
<tvn2009>
thanks
<mrvn>
might be just me though.
M| has joined #ocaml
thrasibule has joined #ocaml
M| has quit [Remote closed the connection]
Associat0r has quit []
onigiri has quit [Read error: 110 (Connection timed out)]
onigiri has joined #ocaml
M| has joined #ocaml
M| has quit [Remote closed the connection]
clog_ has joined #ocaml
clog has quit [Read error: 110 (Connection timed out)]
clog_ is now known as clog
M| has joined #ocaml
_andre has quit ["Lost terminal"]
verte has joined #ocaml
ski_ has quit ["Lost terminal"]
M| has quit [Remote closed the connection]
thrasibule has quit [Read error: 110 (Connection timed out)]
M| has joined #ocaml
_unK has quit [Remote closed the connection]
thrasibule has joined #ocaml
caligula_ has joined #ocaml
caligula__ has quit [Read error: 110 (Connection timed out)]
verte has quit ["~~~ Crash in JIT!"]
tmaeda is now known as tmaedaZ
verte has joined #ocaml
jkr has joined #ocaml
jkr has left #ocaml []
notnoughtknot has joined #ocaml
notnoughtknot has left #ocaml []
tmaedaZ is now known as tmaeda
tmaeda is now known as tmaedaZ
thrasibule has quit [Read error: 110 (Connection timed out)]
M| has quit [Remote closed the connection]
slash_ has joined #ocaml
ulfdoz has joined #ocaml
Yoric has joined #ocaml
ygrek has joined #ocaml
Snark has joined #ocaml
ygrek has quit [Remote closed the connection]
ulfdoz has quit [Read error: 60 (Operation timed out)]
hjpark has joined #ocaml
<hjpark>
i need to translate functional language to imperative style intermediate language. any idea?
<Yoric>
hi
<Yoric>
What's the problem, exactly?
<hjpark>
I'm implementing a simple scheme compiler with Ocaml.
<hjpark>
Parsing and evaluating is quite easy, But There's big hurdle translating to intermediate language. :)
ttamttam has joined #ocaml
sramsay has joined #ocaml
<Yoric>
Well, that's a bit difficult to explain by IRC.
<Yoric>
You'll probably need to open a book on compilation.
Yoric has quit []
Yoric has joined #ocaml
<verte>
there is a video that takes you through writing a scheme compiler somewhere.
<verte>
the guile 1.9 compiler tower is a good read, too, but a little superfluous.
<hjpark>
verte: ah, thanks.
ttamttam has quit [Read error: 113 (No route to host)]
munga_ has joined #ocaml
<flux>
ocamlbuild-plus looks interesting, but no idea how to use it :)
_zack has joined #ocaml
sramsay has quit ["Leaving"]
julm has quit ["Lost terminal"]
mal`` has quit ["Coyote finally caught me"]
mal`` has joined #ocaml
julm_ has joined #ocaml
julm_ is now known as julm
|Jedai| has joined #ocaml
Jedai has quit [Read error: 60 (Operation timed out)]
Yoric has quit []
ygrek has joined #ocaml
Associat0r has joined #ocaml
Yoric has joined #ocaml
munga_ has quit [Read error: 113 (No route to host)]
<sgnb>
it's quite independent of ocsigen, actually
BiDOrD has joined #ocaml
bluestorm has joined #ocaml
ttamttam has joined #ocaml
slash_ has quit [Client Quit]
mishok13 has joined #ocaml
Yoric has quit []
_zack has joined #ocaml
M| has joined #ocaml
seanmcl has joined #ocaml
<hcarty>
Camarade_Tux: Thanks!
patronus has joined #ocaml
<hcarty>
Camarade_Tux: I think that may solve the issues I was having - I don't think that copied over all of the opttoploop.* modules. With those, perhaps findlib + ocamlnat will work.
<Camarade_Tux>
:)
jcaose has joined #ocaml
_zack has quit ["Leaving."]
thrasibule has joined #ocaml
kaustuv has quit ["ERC Version 5.3 (IRC client for Emacs)"]
munga_ has quit [Read error: 113 (No route to host)]
rwmjones has quit [Remote closed the connection]
onigiri has joined #ocaml
ski__ has joined #ocaml
_zack has joined #ocaml
bluestorm has quit [Read error: 113 (No route to host)]