rwmjones changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.1 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
middayc has joined #ocaml
univac has joined #ocaml
<univac> hi
<univac> [01:17] < prs> # format_time (float_of_int 1201565831)
<univac> [01:17] < prs> Integer literal exceeds the range of representable integers of type int
<univac> hmm?
<thermoplyae> ints can't exceed 2^30 or so
<thermoplyae> there's a sign bit and a GC bit
<pango> # max_int;;
<pango> - : int = 1073741823
<thermoplyae> yup, 2^30 - 1
<univac> hmm
<univac> i should cast?
<Smerdyakov> What?
<thermoplyae> yeah, what?
<univac> i should use long int or what?
<bla> 1201565831L maybe (int64)
<pango> you haven't mentionned what you're trying to do
<bla> Hm... calling float_of_int on constant seems strange. ;)
<pango> yes, so I suspect it's only an example
<Smerdyakov> Right, why not: format_time 1201565831.0
<univac> oh, .0
<univac> now ok
<bla> ;) pango it was not an example.
<univac> ocaml looks fine :)
<pango> or just 1201565831.
seafood_ has joined #ocaml
seafood_ has quit []
ita has quit ["Hasta luego!"]
kmeyer has joined #ocaml
ReachingFarr has joined #ocaml
seafood_ has joined #ocaml
pango_ has quit [Remote closed the connection]
bzzbzz has quit ["leaving"]
psnively has quit []
aska has joined #ocaml
<aska> hello
seafood_ has quit []
seafood_ has joined #ocaml
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
Mr_Awesome has joined #ocaml
seafood_ has quit []
seafood_ has joined #ocaml
seafood_ has quit [Client Quit]
seafood_ has joined #ocaml
<aska> /is jogging
<aska> oops i'm new irc
* aska jogging
* aska is jogging
thermoplyae has left #ocaml []
* aska apologizes for her newbie-ness
kmeyer has quit [Remote closed the connection]
oooook101 has quit ["Leaving."]
<ReachingFarr> OK, so some given code I have for my homework has a `type class_name = string` and I need to return a class_name type object. How do I cast a normal string into a `class_name` type?
kmeyer has joined #ocaml
Snrrrub___ has quit [Read error: 110 (Connection timed out)]
<flux> I wouldn't really call it casting (type relabeling maybe?), but ("string" : class_name) would make the string of type class_name
<ReachingFarr> flux: thanks. Didn't quite know what to call it.
jonathanv has joined #ocaml
ReachingFarr has left #ocaml []
jonafan has quit [Read error: 110 (Connection timed out)]
aska has left #ocaml []
ozzloy is now known as stalk-loy
stalk-loy is now known as ozzloy
ttamttam has joined #ocaml
madroach has joined #ocaml
maayhem has joined #ocaml
<maayhem> hello
<maayhem> can someone point me out a resource that indicate how to deal with exception priority in ocaml ?
<maayhem> well, actually my problem might be more subtle than this :
<maayhem> I have nested try ... with ..
<maayhem> and Id like the outter with .. to take control whatever exception is triggered (or even already handled) in the inner try .. with
<maayhem> (e.g. if an exception is triggered in the inner try, I want to handle it in the outter try, after or in replacement of the inner handling
<maayhem> )
<flux> you mean like: try .. (try .. with exn -> output_string "plap\n"; raise exn) .. with exn -> .. ?
<madroach> I think the only way to achieve this is to remove the inner with branch for the exception you want to handle.
<madroach> If you want to handle it twice you could just raise the exception again.
<maayhem> madroach, good point
<maayhem> flux, thanks too
<maayhem> yea, raising it again is the solution
<maayhem> ah well .. that might be a problem to do that from the inner code ..
<maayhem> the api is used somewhere else too
<maayhem> Ill give it a try
middayc_ has joined #ocaml
seafood_ has quit []
middayc has quit [Read error: 110 (Connection timed out)]
filp has joined #ocaml
madroach has quit [Remote closed the connection]
sergez has quit [Read error: 104 (Connection reset by peer)]
alexp has joined #ocaml
middayc_ has quit []
<flux> writing that packrat gramamr is more difficult than I expected.. although parsing smc files (which changes the lexing function in the middle of the file) could be difficult with more traditional techniques too
<flux> (although I'm thinking perhaps just hand-writing it is a good idea ;-))
<flux> aurochs' greatest weakness so far has been its error reporting
rwmjones has joined #ocaml
gthey has joined #ocaml
ertai has quit ["leaving"]
ertai has joined #ocaml
hkBst has joined #ocaml
ertai has quit [Client Quit]
ertai has joined #ocaml
maayhem has left #ocaml []
ertai has quit [Client Quit]
ertai has joined #ocaml
gthey has left #ocaml []
Yoric[DT] has joined #ocaml
<Yoric[DT]> hi
seafood_ has joined #ocaml
seafood_ has quit []
seafood_ has joined #ocaml
univac has left #ocaml []
ulfdoz_ is now known as ulfdoz
ita has joined #ocaml
ita has quit ["Hasta luego!"]
<hcarty> \
dramsay has joined #ocaml
mattam has quit [Remote closed the connection]
flux has quit [Read error: 104 (Connection reset by peer)]
flux-_ has joined #ocaml
mattam has joined #ocaml
AxleLonghorn has joined #ocaml
AxleLonghorn has left #ocaml []
asmanur has joined #ocaml
seafood_ has quit []
seafood_ has joined #ocaml
Tetsuo has joined #ocaml
Snrrrub has joined #ocaml
cs130wan has quit ["BitchX-1.1-final -- just do it."]
bluestorm has joined #ocaml
netx has quit ["Leaving"]
netx has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
postalchris has joined #ocaml
jonathanv is now known as jonafan
filp has quit ["Bye"]
Snrrrub has quit [Read error: 110 (Connection timed out)]
olleolleolle has joined #ocaml
olleolleolle has quit []
CRathman has joined #ocaml
Morphous has joined #ocaml
ttamttam has left #ocaml []
jderque has joined #ocaml
Morphous_ has quit [Read error: 110 (Connection timed out)]
marmottine has joined #ocaml
smimou has joined #ocaml
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
alexp has quit ["Leaving"]
Mr_Awesome has joined #ocaml
ygrek has joined #ocaml
Snrrrub has joined #ocaml
jderque has quit [Read error: 113 (No route to host)]
jderque has joined #ocaml
ita has joined #ocaml
RobertFischer has joined #ocaml
<bluestorm> in case someone is interested
<bluestorm> i adapted my toy camlp4 extension "concurry" (implicit declaration of constructor functions when declaring ADTs) to use type-conv
<bluestorm> hm, interesting
<bluestorm> nothing is done yet
<bluestorm> and people are already arguing on the version control system :p
<hcarty> For some of us, it's the only thing we have a chance to voice a somewhat informed opinion on :-)
<hcarty> That does not stop everyone's informed opinion from being different...
gene9 has joined #ocaml
marmottine has quit [Excess Flood]
marmottine has joined #ocaml
gene9 has quit ["leaving"]
<flux-_> bluestorm, which project?
<bluestorm> wich project ?
<bluestorm> if you're referring to the vcs debate, it's the nebulous "ocaml community-maintained distribution" being discussed on the mailing-list
<flux-_> oh.. who's winning?-)
<flux-_> darcs cannot go, because of its haskell-profile. git fails, due to heavy c-inheritage. svn fails, because it doesn't extend the cvs model sufficiently and also it provides bindings only for c and python.
<flux-_> ?-)
<flux-_> maybe I need to get onto those ml's..
<flux-_> I suppose caml weekly will give the outline
<bluestorm> flux-_: i'm quite startled by the "haskell-profile" arugment
<bluestorm> i mean
<bluestorm> haskell is a lovely language imho
<bluestorm> and i don't get the "We couldn't assume using a haskell vcs for an ocaml project"
<bluestorm> sounds childish, doesn't it ?
<flux-_> yeah, I use darcs
<flux-_> it's excellent
<flux-_> it does however have other problem which may mean it isn't suitable for (potentially) large projects; maybe they'll be fixed
<bluestorm> the argument probel may be a real stopper here
<bluestorm> (although it seems from what i read that they only intend to version-control meta files)
<bluestorm> but "Hey we can't use that, it's haskell" is really strange
<bluestorm> i've have thought some would even say "hey we should use that, it's cool and functional"
<pango> I'm using Mercurial, it's good too
<pango> but I don't know about bindings
ttamttam has joined #ocaml
postalchris has quit ["Leaving."]
postalchris has joined #ocaml
seafood_ has quit []
albacker has joined #ocaml
ttamttam has left #ocaml []
middayc has joined #ocaml
ygrek has quit [Remote closed the connection]
asmanur has quit [Remote closed the connection]
jderque has quit [Read error: 113 (No route to host)]
RobertFischer has left #ocaml []
ReachingFar1 has joined #ocaml
thermoplyae has joined #ocaml
ita has quit [Remote closed the connection]
CRathman has quit ["ChatZilla 0.9.80 [Firefox 2.0.0.11/2007112718]"]
roentge1 has joined #ocaml
roentge1 has left #ocaml []
ReachingFar1 has quit ["Leaving."]
ReachingFarr has joined #ocaml
kig has quit [Read error: 110 (Connection timed out)]
Tetsuo has quit [Remote closed the connection]
Yoric[DT] has quit ["Ex-Chat"]
StoneNote has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
seafood_ has joined #ocaml
dramsay has quit [Read error: 110 (Connection timed out)]
StoneNote has quit []
thermoplyae has quit ["daddy's in space"]
StoneNote has joined #ocaml
hkBst has quit ["Konversation terminated!"]
marmottine has quit ["Quitte"]
seafood_ has quit []
albacker has quit [Read error: 110 (Connection timed out)]