<rmitt_>
does ocaml have the equivalent of C++ namespaces? If no, should modules be used for that purpose?
ftrvxmtrx has joined #ocaml
rmitt_ has quit [Quit: Page closed]
joewilliams_away is now known as joewilliams
drunK has quit [Remote host closed the connection]
iago has quit [Quit: Leaving]
mjonsson has joined #ocaml
xcthulhu has joined #ocaml
romanoffi has quit [Ping timeout: 264 seconds]
_andre has quit [Ping timeout: 265 seconds]
romanoffi has joined #ocaml
_andre has joined #ocaml
_andre has quit [Client Quit]
Modius_ has joined #ocaml
Modius has quit [Ping timeout: 240 seconds]
melwtech35 has joined #ocaml
<melwtech35>
hi, im having trouble with some simple list recursion, wondering if anyone has a good link on how to perform a function (the same function) on every element in a list
<melwtech35>
er, i should say each element individually
<melwtech35>
ahh iter looks good but i heard for large data you should use a recursive loop
<melwtech35>
i will try iter though!
<melwtech35>
julm: thanks
dark has quit [Remote host closed the connection]
<julm>
List.iter is tail-recursive; that should do the job for loooong lists
<melwtech35>
cool seems to work well, certainly spams my interactive hehe
mjonsson has quit [Remote host closed the connection]
<orbitz>
Can i use stream syntax usign topfind in a script?i am getting sytnax errors
joewilliams is now known as joewilliams_away
manveru has quit [Quit: WeeChat 0.3.3]
hcarty has quit [Ping timeout: 240 seconds]
hcarty has joined #ocaml
manveru has joined #ocaml
ulfdoz has joined #ocaml
mjuad has quit [Ping timeout: 265 seconds]
ldunn has joined #ocaml
ldunn has quit [Remote host closed the connection]
ldunn has joined #ocaml
ulfdoz has quit [Ping timeout: 276 seconds]
xcthulhu has quit [Quit: Ex-Chat]
ygrek has joined #ocaml
z77z has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
ygrek has joined #ocaml
Yoric has joined #ocaml
ikaros has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
alhusema has joined #ocaml
z77z has left #ocaml []
alhusema has quit [Remote host closed the connection]
alhusema has joined #ocaml
alhusema has quit [Client Quit]
ikaros has quit [Remote host closed the connection]
ftrvxmtrx has joined #ocaml
sdschulze has quit [Quit: Ex-Chat]
ldunn has quit [Remote host closed the connection]
th5 has joined #ocaml
ftrvxmtrx has quit [Read error: Connection reset by peer]
Yoric has quit [Quit: Yoric]
ygrek has quit [Ping timeout: 245 seconds]
Fullma has joined #ocaml
ftrvxmtrx has joined #ocaml
ttamttam has joined #ocaml
Tobu has quit [Quit: Leaving.]
Tobu has joined #ocaml
Yoric has joined #ocaml
Tobu has quit [Ping timeout: 240 seconds]
Tobu has joined #ocaml
ttamttam has quit [Remote host closed the connection]
junis has joined #ocaml
<junis>
greetings fine people
hcarty has quit [Remote host closed the connection]
hcarty has joined #ocaml
<flux>
discriminative now, are we ;(
<junis>
what's that flux
Yoric has quit [Quit: Yoric]
<flux>
not greeting people that aren't fine ;)
* junis
laughs
<junis>
i'm sure all people here are of the finest kind
<junis>
sauf c'est enfoiré de junis mais il ne compte pas ..
<junis>
woops
* junis
laughs
Yoric has joined #ocaml
ashish has joined #ocaml
ashish is now known as Guest13478
Guest13478 has quit [Client Quit]
hto has quit [Read error: Connection reset by peer]
hto has joined #ocaml
Tobu has quit [Quit: Leaving.]
Amorphous has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
Amorphous has joined #ocaml
drunK has joined #ocaml
pozic has joined #ocaml
drunK has quit [Remote host closed the connection]
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 276 seconds]
Yoric has quit [Quit: Yoric]
<ezyang>
'_a seems like such a hack.
<flux>
a cool hack!
<ezyang>
Perhaps.
<flux>
the alternative, that is, not allowing the cases that currently cause '_a to appear, would be worse
<flux>
especially in the toplevel
<ezyang>
"the alternative is monads" :-P
Yoric has joined #ocaml
ikaros has joined #ocaml
<flux>
so, what would be the alternative to let a = Hashtbl.create 42 ?
<flux>
run (hashtbl_create 42 >>= operate_on_hash_table) ..
<ezyang>
yup
<ezyang>
which would be annoying in OCaml, to say the least.
<ezyang>
Anyway, I'm trying to figure out if it's useful to try to use my intuition about monads to figure out when I should eta expand, or just figure out the OCaml way.
<ezyang>
Is this just a sort of generalized type of thunk?
Tobu has joined #ocaml
joewilliams_away is now known as joewilliams
jjong has quit [Quit: 전 이만 갑니다.]
yezariaely has joined #ocaml
<kaustuv>
flux: why would simply removing "weakly polymorphic" types from the language be worse?
Modius_ has quit [Quit: I'm big in Japan]
Modius has joined #ocaml
<hcarty>
kaustuv: My guess is that it would make some imperative operations more difficult and/or verbose
<hcarty>
Like flux's "let a = Hashtbl.create 42" example
<hcarty>
Or let b = ref None
yezariaely has left #ocaml []
mikemc has quit [Quit: Leaving]
th5 has quit [Quit: th5]
init1 has joined #ocaml
robthebob has joined #ocaml
init1 has quit [Quit: Lost terminal]
f[x] has quit [Ping timeout: 276 seconds]
f[x] has joined #ocaml
init1 has joined #ocaml
pozic has quit [Remote host closed the connection]
iago has joined #ocaml
boscop_ is now known as boscop
ftrvxmtrx has quit [Quit: Leaving]
Edward__ has joined #ocaml
lpereira has joined #ocaml
Yoric has quit [Quit: Yoric]
rks has quit [Ping timeout: 265 seconds]
rks has joined #ocaml
dark has joined #ocaml
robthebob has quit [Quit: Leaving]
mjuad has joined #ocaml
DimitryKakadu has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
ftrvxmtrx has joined #ocaml
oriba has joined #ocaml
oriba has quit [Client Quit]
wlep has joined #ocaml
<wlep>
What does it mean when OCaml throws an error about a library not existing when it clearly does, at the exactly location where OCaml couldn't find it?
<adrien>
how do you compile and has ocaml/labltk been installed?
<adrien>
(godi, distribution packages)
<adrien>
s/)/, ... ?)/
<wlep>
I have exactly zero clue. Uni assignment, using the distro that was already present, which I cannot modify.
<wlep>
Have to figure out if this is a problem with the install, in which case I'll have to reimage.
<adrien>
how do you compile? and which distro?
<wlep>
OCaml, the standard variant, on win32, which means no make/gcc/etc.
<wlep>
So honestly I have no clue how this could even work.
<adrien>
ah, windows, hmmm
<wlep>
I also can't find any coherent documentation, so I'm currently in a murderous rage. :(
<adrien>
you're running everything from cmd.exe?
<wlep>
Tuareg, which basically does that anyway.
<adrien>
do you know what commands gets executed? like "ocamlc ... blabla.ml" ?
<wlep>
ocaml and ocamlrun are involved, somehow.
<adrien>
you really have to do it on windows?
<wlep>
Yes.
<wlep>
First semester is windows to save everyone headaches. Sadly using caml is the source of all headaches so I have no idea what's going on through their heads. vOv
<adrien>
you have to hand a binary?
<wlep>
No offense, but caml on windows is basically a Terrible Idea.
<wlep>
Nope, sources.
<wlep>
Sources that have to run on an identical image with no modification.
<adrien>
you could compile on linux or something else and deal with the windows part later on
<adrien>
but there's something I don't get
<wlep>
I'm actually getting reports from others that they get the same error so it just might be the image itself, not caml.
<adrien>
everybody has the same environment?
<adrien>
ok
<wlep>
Christ, going to have to do this without gl :(
<adrien>
is the environment freely available?
<wlep>
Nope, unique to the uni.
<wlep>
Anyway, going to draw me my fractals with Graphics, let the prof deal with the framerate problems.
<wlep>
Thanks for the help.
wlep has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Nine out of ten l33t h4x0rz prefer it]
avsm has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
init1 has quit [Read error: Operation timed out]
init1_ has joined #ocaml
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
ulfdoz_ is now known as ulfdoz
ftrvxmtrx has quit [Ping timeout: 252 seconds]
ygrek has joined #ocaml
ftrvxmtrx has joined #ocaml
Yoric has joined #ocaml
joewilliams is now known as joewilliams_away
jonafan is now known as JONAFAN
avsm has quit [Quit: Leaving.]
joewilliams_away is now known as joewilliams
wuj has joined #ocaml
junis has quit [Remote host closed the connection]
DimitryKakadu has quit [Remote host closed the connection]
Edward__ has quit []
ldunn has joined #ocaml
Yoric has quit [Quit: Yoric]
avsm has joined #ocaml
avsm has quit [Client Quit]
ulfdoz has quit [Read error: Operation timed out]
ygrek has quit [Ping timeout: 245 seconds]
init1_ has quit [Quit: Lost terminal]
wuj has quit [Ping timeout: 245 seconds]
ikaros has quit [Quit: Leave the magic to Houdini]