<thelema>
once you #use a file, its contents are brought right in. no module name. If you put a module in that file, you get the module.
<thelema>
why do you want to use ocaml like this? why not compile?
rwmjones_ has joined #ocaml
onigiri has quit [Client Quit]
andre___ has joined #ocaml
Cromulent has quit []
ulfdoz has joined #ocaml
<eyda|mon>
thelema: I come from an interpreted background. For me to transition into its use, it will be easier for me to do it this way. A big attraction for me with ocaml in general is its ability te interpreted, native compiled, and byte compiled
<eyda|mon>
_andre: thank you :)
Spiwack has quit ["Leaving"]
<eyda|mon>
how come I can't use Sys.getcwd as an argument to print_endline? after all, it does return a string
<thelema>
print_endline (Sys.getcwd ())
<thelema>
Sys.getcwd is a function, you could pass it as an argument, but not to print_endline.
_andre has quit [Read error: 110 (Connection timed out)]
andre___ is now known as _andre
<eyda|mon>
yes, I had that syntax figured out, but if Sys.getcwd() returns a string, and print_endline takes a string, why can't I write print_endline Sys.getcwd() when I can write print_endline "/blah" ?
<thelema>
because [print_endline Sys.getcwd ()] gives print_endline 2 arguments
<eyda|mon>
what are the two arguments it gives? unit and string?
<thelema>
Sys.getcwd and ()
<eyda|mon>
so Sys.getcwd requires an argument?
<thelema>
yes.
<thelema>
f g x != f (g x)
<eyda|mon>
oic. is there any function which does not take an argument?
<thelema>
we call functions that don't take any arguments "values"
<thelema>
functions are [x -> y], values are [y]
<eyda|mon>
and to declare a value? it would be let a = 3 ?
<thelema>
yup.
<eyda|mon>
hm, that fills in a big piece of the puzzle
<eyda|mon>
thanks much :)
<thelema>
you're welcome. It's good to have someone teach this - it's mighty hard to learn on your own.
<eyda|mon>
I appriciate the time you've taken to help me out btw.
<eyda|mon>
agreed. things like this make me wish I had studied CS at school
<eyda|mon>
but since I didn't, and now work in software, I feel like languages like these are important to understand.
<_andre>
eyda|mon: you asked about a glob function yesterday, didn't you?
<thelema>
CS wouldn't help you too much with this. a math background might.
<kaustuv>
print_string "Have you had enough yet? (y/n) ";
<kaustuv>
let str = read_line () in str.[0] <> 'y'
<kaustuv>
in while ask () do () done ;;
slash_ has joined #ocaml
_andre has quit ["leaving"]
Camarade_Tux has joined #ocaml
MichaelGG has joined #ocaml
Narrenschiff has joined #ocaml
jimmyb2187 has left #ocaml []
Anarchos has joined #ocaml
bzzbzz has quit ["leaving"]
ulfdoz has quit [Read error: 110 (Connection timed out)]
thelema_ has joined #ocaml
Ched has quit ["Ex-Chat"]
Anarchos has quit ["Vision[0.9.7-H-090423]: i've been blurred!"]
Narrenschiff has quit []
MichaelGG has quit ["Leaving"]
bombshelter13_ has quit [Client Quit]
yurug has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090115, built on: 2009/03/07 00:45:02 UTC http://www.kvirc.net/"]
Cromulent has joined #ocaml
<Camarade_Tux>
w :)
<Camarade_Tux>
about godi's slowness, godi_console is bytecode, even on i386 or x86_64 (compiled with -custom, that's why 'file' doesn't say it's bytecode)
<Camarade_Tux>
a native code version runs about twice as fast
<Camarade_Tux>
(actually up to thrice)
jeddhaberstro has joined #ocaml
onigiri has quit [Client Quit]
onigiri has joined #ocaml
onigiri has quit [Client Quit]
sgnb has quit [Read error: 104 (Connection reset by peer)]
sgnb has joined #ocaml
Demitar has quit ["Ex-Chat"]
lanaer has quit [Read error: 113 (No route to host)]
Cromulent has quit []
thrasibule has joined #ocaml
lanaer has joined #ocaml
Cromulent has joined #ocaml
<hcarty>
Camarade_Tux: Interesting find. Is it difficult to build a native code version of godi_console?
<Camarade_Tux>
hcarty: no, not at all, if you have godi, you can get one of the .tar.gz/.tgz (I'll find the good one in a second), extract it, cd, and make opt, that simple
<hcarty>
Camarade_Tux: Very nice, thanks.
<Camarade_Tux>
hcarty: here, I have /ocaml/build/godi/godi-tools/work/godi-tools-2.0.10/console-src , go there and 'make opt', it will produce console/godi_console.opt
<Camarade_Tux>
time to go to bed now, good night :)
<hcarty>
Camarade_Tux: Thanks again! Looks like it works here.
<Camarade_Tux>
:)
<hcarty>
Good night
<hcarty>
Wow... that really is faster.
<Camarade_Tux>
it's probably pretty easy to change (I'd done that but I didn't have godi sources ='( )
<Camarade_Tux>
hcarty: hehe :P
* Camarade_Tux
disappears
mbishop_ has joined #ocaml
mbishop has quit [Read error: 113 (No route to host)]
mbishop_ has quit [Read error: 110 (Connection timed out)]