mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.0 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
seafoodX has joined #ocaml
abez has quit ["mmmm"]
<mbishop> Anyone here use the SDL bindings?
seafoodX has quit []
romanoffi has left #ocaml []
bzzbzz has quit ["leaving"]
piggybox__ has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
seafoodX has joined #ocaml
piggybox_ has quit [Read error: 110 (Connection timed out)]
Smerdyakov has quit ["Leaving"]
seafoodX has quit []
seafoodX has joined #ocaml
pantsd has quit [Read error: 110 (Connection timed out)]
ygrek has joined #ocaml
shawn has quit ["This computer has gone to sleep"]
kelaouchi has joined #ocaml
pantsd has joined #ocaml
shawn has joined #ocaml
G_ is now known as G
pantsd has quit [Read error: 110 (Connection timed out)]
thermoplyae has joined #ocaml
<thermoplyae> I know it's 2 AM on a Monday morning, but does anyone awake know if there's a glGenTextures equivalent in lablGL?
<thermoplyae> (there's no lablgl channel, and so i assume this is a semi-appropriate place to ask)
<thermoplyae> I'll stay connected overnight in the hopes that someone sees this in the morning and knows something :)
buluca has joined #ocaml
jlouis has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
ygrek has quit [Excess Flood]
netx has quit ["Leaving"]
netx has joined #ocaml
leo037 has joined #ocaml
piggybox has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
fmardini has joined #ocaml
piggybox__ has quit [Read error: 110 (Connection timed out)]
fmardini has quit []
fmardini has joined #ocaml
Mr_Awesome has quit ["time to impregnate a moth"]
piggybox_ has joined #ocaml
fmardini has quit []
kelaouchi has quit [Client Quit]
piggybox has quit [Connection timed out]
fmardini has joined #ocaml
fmardini has quit []
pantsd has joined #ocaml
junis has joined #ocaml
fmardini has joined #ocaml
seafoodX has quit []
buluca has joined #ocaml
buluc1 has joined #ocaml
buluca has quit [Nick collision from services.]
buluc1 is now known as buluca
fmardini has quit [Client Quit]
seafoodX has joined #ocaml
<flux> reading c.l.f.. I wonder if it'd be difficult to write a program that attempts to ocamlc a program, and when encountering a type error, replace it with failwith "type error"
<flux> I'm thinking many programs with type errors could actually be compiled and executed up to the erring point.. the compiler might have a different idea where the error is than the user, of course
<flux> (which is what certain people seem to like about in dynamically typed systems)
<flux> patching the compiler could be more neater, but I don't know how difficult that would be
<flux> hmh, s/more //
fmardini has joined #ocaml
smimou has joined #ocaml
Smerdyakov has joined #ocaml
screwt8 has quit [Remote closed the connection]
fmardini has quit [Client Quit]
fmardini has joined #ocaml
screwt8 has joined #ocaml
screwt8 has quit [Remote closed the connection]
fmardini has quit [Client Quit]
slipstream-- has joined #ocaml
screwt8 has joined #ocaml
meren has joined #ocaml
fmardini has joined #ocaml
screwt8 has quit [Remote closed the connection]
junis has quit [Read error: 113 (No route to host)]
slipstream has quit [Read error: 113 (No route to host)]
<thermoplyae> For those interested, I just didn't look hard enough, which is excusable at 2 AM :)
<thermoplyae> The functions were GlTex.bind_texture and GlTex.gen_textures
<thermoplyae> thanks anyway
thermoplyae has left #ocaml []
seafoodX has quit []
_blackdog has joined #ocaml
_blackdog has left #ocaml []
junis has joined #ocaml
pango has quit [Remote closed the connection]
fmardini has quit [Client Quit]
zmdkrbou has quit ["teeeeeeeleportatiiiiiiiion!"]
pango has joined #ocaml
screwt8 has joined #ocaml
zmdkrbou has joined #ocaml
screwt8 has quit [Remote closed the connection]
screwt8 has joined #ocaml
leo037 has quit ["Leaving"]
meren has quit ["fancy"]
ygrek has joined #ocaml
shawn has quit ["This computer has gone to sleep"]
_andre has joined #ocaml
<_andre> hello
<_andre> is it possible to define a function in a C extension that accepts named parameters?
<_andre> labels, i mean
<flux> hmm.. I think named arguments are just regular arguments..
<flux> but when used with ocaml they have a name
<flux> I have nothing to prove this claim :)
<_andre> i'm trying external foo : ~x:type -> ~y:type = "foo_c" in the .mli
<_andre> but it gives me a syntax error
<Smerdyakov> There you're trying to give a "named return value."
<Smerdyakov> I don't know what that would mean.
<flux> _andre, x:type -> y:type?
<_andre> yeah :)
<_andre> d'oh :p
<flux> ..and also whathesaid, -> unit perhaps to the end
<_andre> oh sorry, that was a typo
<_andre> i forgot the return value
david_koontz has joined #ocaml
shawn has joined #ocaml
mc__ has joined #ocaml
<mc__> hello! is there anyway in ocaml to use single-precision floats? i'm thinking of using OpenGL with OCaml but using double precision instead of single-precision all the time would be a big performance hit i guess
<rwmjones> mc__, basically no
<rwmjones> however you can store them in Bigarrays
<rwmjones> there shouldn't be a performance penalty however because internally all modern CPUs use 64 or 80 bit floats
<mc__> rwmjones: thank you
leo037 has joined #ocaml
<flux> I don't do opengl, but I recall discussion from #coders/IRCnet where floats are judged basically worthless for 3d stuff..
<flux> and the performance difference should be minimal (32 bit floats will take less space, though, so better memory bandwidth and better cache utilization)
buluca has quit [Read error: 113 (No route to host)]
hajhouse has joined #ocaml
mc__ has quit [Read error: 104 (Connection reset by peer)]
shawn has quit [Connection timed out]
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
Smerdyakov has quit ["Leaving"]
_andre has quit [Read error: 104 (Connection reset by peer)]
ygrek has quit ["Leaving"]
kelaouchi has joined #ocaml
shawn has joined #ocaml
doy has quit [Read error: 113 (No route to host)]
junis has quit [Nick collision from services.]
Kurin has joined #ocaml
<Kurin> If I compile a program with ocamlopt -o file file.ml, is there any reason why "file" would be ocaml byte code?
<Kurin> instead of native code
<Kurin> This is on fbsd amd64
buluca has joined #ocaml
<pango> I'd say no... If native compilation was not supported on a platform, I would expect ocamlopt to be missing, not being an alias of ocamlc
<pango> what makes you think it could be bytecode?
<Kurin> <tburress@harvey:~/opt> file opt
<Kurin> opt: a /usr/local/bin/ocamlrun script text executable
eroyf has quit [Remote closed the connection]
fnord123 has joined #ocaml
<Kurin> which would explain why some of what I'm doing has been pretty slow
<Kurin> although I'm benchmarking it against c++
<pango> that indeed looks like bytecode
<Kurin> However ocamlc and ocamlopt are linked
<Kurin> so
<Kurin> weird
<pango> does 'ocamlopt' really run the ocamlopt compiler? No alias, wrapper,...?
Demitar has quit [simmons.freenode.net irc.freenode.net]
lmbdwr has quit [simmons.freenode.net irc.freenode.net]
ramkrsna has quit [simmons.freenode.net irc.freenode.net]
cmeme has quit [simmons.freenode.net irc.freenode.net]
magnus__ has quit [simmons.freenode.net irc.freenode.net]
hajhouse has quit [simmons.freenode.net irc.freenode.net]
shrimpx has quit [simmons.freenode.net irc.freenode.net]
TaXules has quit [simmons.freenode.net irc.freenode.net]
Oatmeat|umn has quit [simmons.freenode.net irc.freenode.net]
oracle1 has quit [simmons.freenode.net irc.freenode.net]
flux has quit [simmons.freenode.net irc.freenode.net]
Hadaka has quit [simmons.freenode.net irc.freenode.net]
ulfdoz has quit [simmons.freenode.net irc.freenode.net]
tty56 has quit [simmons.freenode.net irc.freenode.net]
leo037 has quit [simmons.freenode.net irc.freenode.net]
slipstream-- has quit [simmons.freenode.net irc.freenode.net]
jlouis has quit [simmons.freenode.net irc.freenode.net]
G has quit [simmons.freenode.net irc.freenode.net]
joshcryer has quit [simmons.freenode.net irc.freenode.net]
smkl has quit [simmons.freenode.net irc.freenode.net]
seafood has quit [simmons.freenode.net irc.freenode.net]
pango has quit [simmons.freenode.net irc.freenode.net]
smimou has quit [simmons.freenode.net irc.freenode.net]
Sparkles has quit [simmons.freenode.net irc.freenode.net]
kosmikus has quit [simmons.freenode.net irc.freenode.net]
ppsmimou has quit [simmons.freenode.net irc.freenode.net]
pattern has quit [simmons.freenode.net irc.freenode.net]
screwt8 has quit [simmons.freenode.net irc.freenode.net]
xavierbot has quit [simmons.freenode.net irc.freenode.net]
magius_pendragon has quit [simmons.freenode.net irc.freenode.net]
shawn has quit [simmons.freenode.net irc.freenode.net]
kelaouchi has quit [simmons.freenode.net irc.freenode.net]
david_koontz has quit [simmons.freenode.net irc.freenode.net]
Ycros has quit [simmons.freenode.net irc.freenode.net]
gaja has quit [simmons.freenode.net irc.freenode.net]
tsuyoshi has quit [simmons.freenode.net irc.freenode.net]
netx has quit [simmons.freenode.net irc.freenode.net]
svenl has quit [simmons.freenode.net irc.freenode.net]
fremo has quit [simmons.freenode.net irc.freenode.net]
mellum has quit [simmons.freenode.net irc.freenode.net]
fnord123 has quit [simmons.freenode.net irc.freenode.net]
buluca has quit [simmons.freenode.net irc.freenode.net]
pantsd has quit [simmons.freenode.net irc.freenode.net]
piggybox_ has quit [simmons.freenode.net irc.freenode.net]
gunark has quit [simmons.freenode.net irc.freenode.net]
rwmjones has quit [simmons.freenode.net irc.freenode.net]
mbishop has quit [simmons.freenode.net irc.freenode.net]
Amorphous has quit [simmons.freenode.net irc.freenode.net]
Kurin has quit [simmons.freenode.net irc.freenode.net]
gim has quit [simmons.freenode.net irc.freenode.net]
clog has joined #ocaml
ramkrsna_ has joined #ocaml
haelix has joined #ocaml
diakopter has joined #ocaml
doy has joined #ocaml
zmdkrbou has joined #ocaml
<Kurin> heh
<Kurin> So I'm testing this program against a C++ program, and I tried to stay as functional as I could with the ocaml program
<Kurin> the algorithm is O(n^2)
<Kurin> with bytecode of course ocaml is slower, but it turns out that on my linux box the c++ program grows to like 6GB and then starts swapping
<Kurin> on the fbsd box there was room for it
<pango> if an ocaml program will need more memory than physically available, it may be worth tweaking somewhat the GC... At least, be sure to totally disable memory compaction
<Kurin> No, the ocaml program never gets above about 130M
Cygal has joined #ocaml
<Kurin> I recompiled the port, now they're different files
<Kurin> Must have been one of the options I didn't understand
malc_ has joined #ocaml
ramkrsna has quit [No route to host]
Demitar has quit [anthony.freenode.net irc.freenode.net]
Demitar has joined #ocaml
malc_ has quit ["leaving"]
Cygal has quit [Read error: 104 (Connection reset by peer)]
buluc1 has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
buluc1 is now known as buluca
fnord123 has quit [Read error: 110 (Connection timed out)]
xavierbot has quit [Remote closed the connection]
xavierbot has joined #ocaml
Demitar has quit [anthony.freenode.net irc.freenode.net]
Demitar has joined #ocaml
smimou has quit ["bli"]
Mr_Awesome has joined #ocaml
noteventime has joined #ocaml
leo037 has quit ["Leaving"]
buluca is now known as bulucabot
Smerdyakov has joined #ocaml
noteventime has quit [Remote closed the connection]
noteventime has joined #ocaml
shawn has quit [Read error: 104 (Connection reset by peer)]
pantsd has quit [Read error: 110 (Connection timed out)]
pantsd has joined #ocaml
shawn has joined #ocaml
shawn has quit ["Leaving"]
bulucabot is now known as buluca
noteventime has quit ["Someone reprogrammed the connection in C++ :-O"]
pantsd has quit [Read error: 110 (Connection timed out)]
magius_pendragon has quit ["leaving"]