flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
lorph has joined #ocaml
<lorph> how do I know what operations a Set supports. I made a set using type int, and I see a large list of functions, but am not sure what they all do.
<Smerdyakov> Have you read the manual pages?
<lorph> I"m looking at module Set, and it only shows 4 signatures
<Smerdyakov> There are more hyperlinks there than you think. :)
<lorph> oh ok, they don't have underlines on them, so I just thought it was syntax highlighting
Axioplase is now known as Axioplase_
hsuh has joined #ocaml
<fremo> what's the use of Set ?
<Smerdyakov> Have you read the manual pages?
<fremo> the one cited just here, yes,
<fremo> maybe not all
<Smerdyakov> You don't understand what "the set data structure" is?
<fremo> yes
<fremo> I dont
<fremo> neither ordered type
<Smerdyakov> Like sets from math
<fremo> ho, that's why I dont understand it
<Smerdyakov> If you didn't understand the message before, you need to follow the links from any blue text on the page.
<Smerdyakov> They go to further signatures.
<fremo> right :)
<fremo> thanks
jeddhaberstro has joined #ocaml
* fremo shouldn't ask after 3 in the morning...
pattern has joined #ocaml
coucou747 has quit [Read error: 113 (No route to host)]
sporkmonger has joined #ocaml
ad_ has joined #ocaml
pantsd has joined #ocaml
hsuh has quit [Remote closed the connection]
jeddhaberstro has quit []
pattern has quit [Read error: 110 (Connection timed out)]
threeve has joined #ocaml
prince has quit [Client Quit]
ad_ has left #ocaml []
<palomer> hrmph
<palomer> how do I destroy an window?
<palomer> gobj#destroy?
<thelema> Palace_Chan: sounds right to me.
<thelema> gobj#destroy ()
pattern has joined #ocaml
threeve has quit []
rhar has quit ["Leaving"]
pantsd has quit [Remote closed the connection]
rby has joined #ocaml
Associat0r has joined #ocaml
pattern has quit [Read error: 110 (Connection timed out)]
sporkmonger has quit []
struk_atwork2 has joined #ocaml
johnnowak has joined #ocaml
vixey has quit ["Leaving"]
struk_atwork has quit [Read error: 110 (Connection timed out)]
pastasauce has joined #ocaml
thelema has quit [Read error: 104 (Connection reset by peer)]
pastasauce has quit [Client Quit]
pastasauce has joined #ocaml
pattern has joined #ocaml
gdmfsob has joined #ocaml
Palace_Chan has quit [Client Quit]
Submarine has joined #ocaml
olgen has joined #ocaml
Palace_Chan has joined #ocaml
Palace_Chan has quit [Client Quit]
filp has joined #ocaml
m3ga has joined #ocaml
<flux> idea I just got: findlib could, upon ocamlfind install, check if there are any dependant modules, and give a note that they may need rebuilding
<flux> bonus points for actually checking if they do have an interface dependency
coucou747 has joined #ocaml
OChameau has joined #ocaml
marmotine has joined #ocaml
Axioplase_ is now known as Axioplase
jlouis has joined #ocaml
Yoric[DT] has joined #ocaml
Submarine has quit [Read error: 110 (Connection timed out)]
<gildor> w
rmns has joined #ocaml
Snark_ has joined #ocaml
CoffeeBuzz has joined #ocaml
petchema_ has quit [Read error: 110 (Connection timed out)]
Yoric[DT] has quit ["Ex-Chat"]
CoffeeBuzz has quit ["Leaving"]
vixey has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
Linktim has joined #ocaml
vixey has quit ["Leaving"]
thelema has joined #ocaml
petchema has joined #ocaml
johnnowak has quit []
Linktim_ has joined #ocaml
pastasauce has quit []
Linktim_ has quit [Read error: 104 (Connection reset by peer)]
Linktim has quit [Read error: 113 (No route to host)]
Linktim has joined #ocaml
GustNG has joined #ocaml
struktured_ has quit [Read error: 110 (Connection timed out)]
longh has joined #ocaml
GustNG1 has joined #ocaml
GustNG has quit [Read error: 110 (Connection timed out)]
razor0 has joined #ocaml
<razor0> hello
<flux> good evening
GustNG has joined #ocaml
<flux> ooh, a sum-up of the osp meeting: http://ocaml.janestreet.com/?q=node/38
<flux> ..with links to the projects
GustNG1 has quit [Read error: 110 (Connection timed out)]
thelema has quit [Read error: 110 (Connection timed out)]
jonafan has quit [Read error: 110 (Connection timed out)]
rby has quit ["This computer has gone to sleep"]
rby has joined #ocaml
rmns has left #ocaml []
razor0 has left #ocaml []
gdmfsob has quit [Read error: 60 (Operation timed out)]
rby has quit [Read error: 60 (Operation timed out)]
rby has joined #ocaml
Anarchos has joined #ocaml
<Anarchos> how to enable the option LOCAL_CALLBACK_BYTECODE in the runtime ?
rby has quit ["This computer has gone to sleep"]
olgen has quit []
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
<rpg> i need help with nested ifs
itewsh has joined #ocaml
<rpg> if a = 1 then let abs n = if b > 1 then 2 else if b < 1 then 3 else 0 ; else if a = 2 then let abs n = if b > 1 then 1 else if b < 1 then 2 else 0; else print_line("ERROR");;
<rpg> how wouldi fix that
<rpg> so it works
<GustNG> Use parens
<rpg> where ?
<GustNG> Around the inner if-else
<rpg> show me im confused
<petchema> you can't use `let' (without corresponding `in') inside expressions
<petchema> so you have other problems than just nested ifs
<GustNG> I really don't understand that expression.
<rpg> ok
<rpg> le me give you something else
<GustNG> What are you trying to do?
<rpg> 1 sec i show u
<rpg> note: there is a solve = 2;
Fullma has joined #ocaml
<rpg> it says syntax error at line 10
<petchema> `let' without `in' can only be used for global definitions, not within expressions
<GustNG> You're trying to define a global field 'bismuth' inside the condition
<rpg> oh
<GustNG> (Also, there's a function abs_float)
<GustNG> So it's expecting 'in' (followed by the expression the value 'bismuth is used in locally) instead of 'else'
<rpg> i dont understand this 'in' stuff
<rpg> wtf is 'in'
Axioplase is now known as Axioplase_
<rpg> and i want 'bismuth' to stay global so i can use it after
<petchema> it has no meaning by itself, only in let id = expr in expr syntactic construct
<rpg> so
<GustNG> Define 'bismuth' outside of the 'if'
<rpg> i cant...it dpeends on the 'solve'
<rpg> oh
<rpg> ure saying stick the solve if expression inside bismuth ?
<GustNG> Yes
<rpg> oh
<rpg> le me try
<petchema> I'd even suggest using `match'
<GustNG> Yes
<petchema> let bismuth x y = match solve with 1 -> if abs(x) >= 0.0 && ... | 2 -> if abs(x) > 1.0 || ... | _ -> failwith "bismuth"
<GustNG> Match would be more convenient for the other conditions
<rpg> thats next chapter :)
<GustNG> Really confusing conditions either way
<rpg> i know
<rpg> ok
<GustNG> 'let ... in expr' is used to bind values and closures locally in expressions
kig has joined #ocaml
<rpg> now it says unbound value solve
<GustNG> You forgot 'let'
<rpg> i think its working
<rpg> i just had to remove print_line error
<rpg> because it says type unit
kig has quit [Remote closed the connection]
<rpg> but what if i do want to print "ERROR"
<GustNG> You must return a value if you don't throw an exception
<GustNG> And the value must be a float because it's what you return elsewhere as well
<GustNG> Maybe make smaller functions until you understand the syntax
<rpg> i fixed it
<rpg> i just cant print a line but whatver
<rpg> thx GustNG
<GustNG> If you just printed it it would still be expected to return a number
<GustNG> While the function you call returns 'unit'
<rpg> so can i do print_line("error") ; 0
<GustNG> 0.0
<rpg> doesnt work
<rpg> anyways ill come back to that later
<rpg> i dont really need it
<GustNG> Like I said, do smaller definitions so you don't have trouble
snhmib has quit ["Good riddance!"]
thelema has joined #ocaml
<flux> rpg, btw, if I were you I would add let ax, ay = abs x, abs y and use those
filp has quit ["Bye"]
CoffeeBuzz has joined #ocaml
<CoffeeBuzz> http://www.ocaml-tutorial.org/ a decent resource for an ocaml beginner?
<hcarty> CoffeeBuzz: It is a decent start. The OCaml manual introductory chapter is nice as well.
itouch has joined #ocaml
<flux> I wonder if should be directly linked from the site..
<flux> the manual itself is linked
<hcarty> flux: That is probably a good idea
<flux> and I actually did the change
<hcarty> flux: Thanks!
itewsh has quit [Read error: 110 (Connection timed out)]
rwmjones_ has joined #ocaml
OChameau has quit ["Leaving"]
rwmjones_ has quit ["Closed connection"]
guillem has joined #ocaml
Submarine has joined #ocaml
itouch has quit [Read error: 110 (Connection timed out)]
itouch has joined #ocaml
struktured has joined #ocaml
filp has joined #ocaml
Axioplase_ is now known as Axioplase
itouch has quit [Connection timed out]
itouch has joined #ocaml
Yoric[DT] has joined #ocaml
Associat0r has quit []
Submarine has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
mohbana has joined #ocaml
itouch has quit [Remote closed the connection]
mohbana has left #ocaml []
GustNG has quit [calvino.freenode.net irc.freenode.net]
longh has quit [calvino.freenode.net irc.freenode.net]
authentic has quit [calvino.freenode.net irc.freenode.net]
rodge has quit [calvino.freenode.net irc.freenode.net]
struktured has quit [calvino.freenode.net irc.freenode.net]
CoffeeBuzz has quit [calvino.freenode.net irc.freenode.net]
palomer has quit [calvino.freenode.net irc.freenode.net]
sbok_ has quit [calvino.freenode.net irc.freenode.net]
jdev has quit [calvino.freenode.net irc.freenode.net]
haelix has quit [calvino.freenode.net irc.freenode.net]
lde has quit [calvino.freenode.net irc.freenode.net]
Linktim has quit [calvino.freenode.net irc.freenode.net]
struk_atwork2 has quit [calvino.freenode.net irc.freenode.net]
Torment has quit [calvino.freenode.net irc.freenode.net]
svenl has quit [calvino.freenode.net irc.freenode.net]
jeremiah has quit [calvino.freenode.net irc.freenode.net]
mlh has quit [calvino.freenode.net irc.freenode.net]
tab has quit [calvino.freenode.net irc.freenode.net]
bla has quit [calvino.freenode.net irc.freenode.net]
mike_mcclurg has quit [calvino.freenode.net irc.freenode.net]
struktured has joined #ocaml
CoffeeBuzz has joined #ocaml
GustNG has joined #ocaml
longh has joined #ocaml
Linktim has joined #ocaml
struk_atwork2 has joined #ocaml
Torment has joined #ocaml
svenl has joined #ocaml
jeremiah has joined #ocaml
authentic has joined #ocaml
rodge has joined #ocaml
sbok_ has joined #ocaml
mlh has joined #ocaml
lde has joined #ocaml
mike_mcclurg has joined #ocaml
palomer has joined #ocaml
jdev has joined #ocaml
bla has joined #ocaml
haelix has joined #ocaml
tab has joined #ocaml
rby has joined #ocaml
svenl has quit [Remote closed the connection]
svenl has joined #ocaml
rby has quit [Remote closed the connection]
jeddhaberstro has joined #ocaml
Linktim_ has joined #ocaml
Proteus_ has quit ["Leaving"]
Ranzi has joined #ocaml
Linktim has quit [Read error: 113 (No route to host)]
longh has quit [Client Quit]
GustNG has quit [Read error: 54 (Connection reset by peer)]
Linktim_ has quit ["Quitte"]
Amorphous has quit [Read error: 110 (Connection timed out)]
Ranzi has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
Snark_ has quit ["Ex-Chat"]
Ranzi has joined #ocaml
<olegfink> hi! is there some html parser for ocaml?
<olegfink> html, not xml. maybe like perl's WWW::Mechanize, some nice way to grok pages.
filp has quit ["Bye"]
<mbishop> olegfink: check out ocamlnet
hkBst has joined #ocaml
ofaurax has joined #ocaml
Ranzi is now known as Ramzi
<Yoric[DT]> Okay, I'm trying to get my head around -pack.
<Yoric[DT]> Assuming I have modules A, B, C, D, etc.
<Yoric[DT]> When I pack them into E, which files do I need to distribute?
<Yoric[DT]> And how do I make sure that, say, only modules B and C can be used from the outside?
Palace_Chan has joined #ocaml
kombinator has joined #ocaml
<kombinator> Hello everyone, I have a beginner's question: What is the easiest way to have 32-bit unsigned int arithmetic in ocaml? All I want are + and * modulo 2^32.
<hcarty> Yoric[DT]: I haven't used -pack directly, but for a library built with mylib.mlpack I installed the mylib.* files using findlib and everything seems to work properly
<olegfink> kombinator: see Nativeint
<hcarty> Yoric[DT]: "everything" here being building and running other code which uses the modules included in Mylib
<hcarty> olegfink: I don't think nativeint values are unsigned
<hcarty> And they are 64bit on a 64bit platform
<hcarty> kombinator: uintlib may do what you want, but I have not used it -- http://forge.ocamlcore.org/projects/uint64lib/
<Yoric[DT]> hcarty: ok.
<Yoric[DT]> Now the next question is hiding stuff.
<hcarty> Yoric[DT]: That I don't know, and have not tried
<kombinator> thanks, I'll take a look at it
<Yoric[DT]> Thanks.
<hcarty> It looks like ExtLib under godi also have the .cmi and .mli files installed
<hcarty> for each sub-module
Submarine has quit [Read error: 110 (Connection timed out)]
<Yoric[DT]> Yeah, I was wondering if not delivering the .cmi was sufficient.
<hcarty> I don't think so, as all of the sub-modules of Mylib are visible on my install
<hcarty> I'm off though. Yoric[DT], I would be interested to hear if you find a solution
<Yoric[DT]> Sure.
marmotine has quit ["mv marmotine Laurie"]
guillem has quit [Remote closed the connection]
hkBst has quit [Read error: 104 (Connection reset by peer)]
Ramzi has quit [Read error: 110 (Connection timed out)]
jlouis has quit ["Leaving"]
ofaurax has quit ["ofaurax ronfle"]
sporkmonger has joined #ocaml
kombinator has quit [Read error: 113 (No route to host)]
Yoric[DT] has quit ["Ex-Chat"]
Axioplase is now known as Axioplase_
jonafan has joined #ocaml
psnively has joined #ocaml
kombinator has joined #ocaml
coucou747 has quit ["bye ca veut dire tchao en anglais"]