Tobu has quit [Quit: No Ping reply in 180 seconds.]
jonafan has quit [Ping timeout: 248 seconds]
Tobu has joined #ocaml
gildor has quit [Ping timeout: 248 seconds]
Associat0r has joined #ocaml
gildor has joined #ocaml
arubin has joined #ocaml
lopex has quit []
Rickasaurus has joined #ocaml
smerz has quit [Quit: Ex-Chat]
ecooper has quit [Ping timeout: 276 seconds]
pantsd has quit [Ping timeout: 276 seconds]
ecooper has joined #ocaml
pantsd has joined #ocaml
bzzbzz_ has joined #ocaml
mehdid_ has joined #ocaml
bitbckt_ has joined #ocaml
schmx has joined #ocaml
schmx has quit [Changing host]
schmx has joined #ocaml
chewbran1a has joined #ocaml
willb1 has joined #ocaml
gildor_ has joined #ocaml
wtetzner_ has joined #ocaml
patronus has joined #ocaml
mehdid has quit [Ping timeout: 240 seconds]
bitbckt has quit [Ping timeout: 240 seconds]
philed has quit [Ping timeout: 240 seconds]
patronus_ has quit [Ping timeout: 240 seconds]
schme has quit [Ping timeout: 240 seconds]
chewbranca has quit [Ping timeout: 240 seconds]
willb has quit [Ping timeout: 240 seconds]
bzzbzz has quit [Ping timeout: 240 seconds]
gildor has quit [Ping timeout: 240 seconds]
Fullma has quit [Ping timeout: 240 seconds]
wtetzner__ has quit [Ping timeout: 240 seconds]
alexyk has quit [Quit: alexyk]
bitbckt_ is now known as bitbckt
bitbckt has quit [Changing host]
bitbckt has joined #ocaml
ymasory has quit [Quit: Leaving]
wtetzner_ is now known as wtetzner
alexyk has joined #ocaml
emmanuelux has quit [Quit: =>[]]
emmanuelux has joined #ocaml
sgnb` has joined #ocaml
arubin has quit [Ping timeout: 260 seconds]
sgnb has quit [Ping timeout: 260 seconds]
schmx has quit [Ping timeout: 260 seconds]
arubin has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
schme has joined #ocaml
myu2 has quit [Ping timeout: 264 seconds]
myu2 has joined #ocaml
alexyk has joined #ocaml
Associat0r has quit [Quit: Associat0r]
alexyk has quit [Read error: Connection reset by peer]
Asmadeus_ is now known as Asmadeus
ymasory has joined #ocaml
dgfitch has quit [Ping timeout: 246 seconds]
dgfitch has joined #ocaml
astory has left #ocaml []
emmanuelux has quit [Remote host closed the connection]
caligula__ has quit [Remote host closed the connection]
myu2 has quit [Ping timeout: 246 seconds]
caligula has joined #ocaml
myu2 has joined #ocaml
ulfdoz has joined #ocaml
hyperboreean has quit [Ping timeout: 276 seconds]
hyperboreean has joined #ocaml
ymasory has quit [Quit: Leaving]
ulfdoz has quit [Ping timeout: 260 seconds]
larhat has joined #ocaml
rrenaud has quit [Read error: Operation timed out]
Yoric has joined #ocaml
rrenaud has joined #ocaml
ttamttam has joined #ocaml
ikaros has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
yezariaely has joined #ocaml
thomasga has joined #ocaml
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
arubin has quit [Quit: arubin]
edwin has joined #ocaml
Yoric has quit [Quit: Yoric]
thomasga has quit [Quit: Leaving.]
ftrvxmtrx has joined #ocaml
philtor has quit [Ping timeout: 276 seconds]
thomasga has joined #ocaml
Fullma has joined #ocaml
vivanov has joined #ocaml
ikaros has quit [Remote host closed the connection]
Yoric has joined #ocaml
<vivanov>
to make a function tail-recursive, i put computation of type unit into argument: let rec loop computation = function ... .i never use the computation argument and the program compiles even if i put it () or _ instead of "computation", like that: let rec loop () = function ... .is it ok to use () as an argument of loop function?
Cyanure has joined #ocaml
<rproust>
vivanov: not sure of what you're trying to do, but, from what I undeerstand, it's ok
<rproust>
I don't see why you would need the "computation" argument though
<vivanov>
rproust: let rec loop () = function h::t -> loop ( output_string h ch ) t | [] -> ()
<vivanov>
instead of -- let rec loop comp = function h::t -> loop ( output_string h ch ) t | [] -> ()
yezariaely has left #ocaml []
<rproust>
and why not let rec loop = function h::t -> output_string h ch; loop t | [] -> () ?
ttblrs_ has joined #ocaml
<rproust>
I think it's also tail rec
<rproust>
anyway, it's ok to put () as an argument to loop in the function declaration
<vivanov>
:)
<vivanov>
ok -- thanks
caligula has quit [Read error: Connection reset by peer]
ttamttam has quit [Read error: Connection reset by peer]
sgnb` is now known as sgnb
caligula has joined #ocaml
jamii has joined #ocaml
jamii has quit [Read error: Connection reset by peer]
<rindolf>
How do I make a let with a recursive function?
<rindolf>
flux: that's OK, I already indented it.
<flux>
let rec to_the_infinity () = to_the_infinity ()
<rindolf>
flux: thanks
<rindolf>
OK. now I'm getting Fatal error: exception Xmlm.Make(String)(Buffer).Error(_, _)
<vivanov>
when using String.length, List.length, Array.length (and the like) several times in a row, is there any use preevaluating the values?
myzt has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
myzt has quit [Client Quit]
myzt has joined #ocaml
myzt has quit [Client Quit]
<kaustuv>
vivanov: By "preevaluating" do you mean memoizing the results? If so, no, OCaml has no implicit memoization. However, note that String.length and Array.length are constant time operations
<vivanov>
kaustuv: exactly, my question is about the time the operations take -- thanks
_andre has joined #ocaml
notk0 has joined #ocaml
<notk0>
hello, is it possible in lexbuf to make rule that takes any character except some ?
<notk0>
like _ without 'a' for example
<rproust>
notk0: are you generating your lexer through ocamllex?
<notk0>
rproust, yes
<kaustuv>
From the ocamllex manual:
<kaustuv>
[ ^ character-set ] Match any single character not belonging to the given character set.
<rproust>
rindolf: can you paste the error output too?
<notk0>
on the example page '{' [^ '\n']* '}'{ toy_lang lexbuf }(* eat up one-line comments *)
<notk0>
but when I do '{' (_*) '}' for multiline comments I get an error
<rindolf>
rproust: there is no error output.
notk0 has quit [Quit: bye bye]
<rproust>
rindolf: then what do you mean by "it yields the wrong line numbers"?
jamii has quit [Ping timeout: 248 seconds]
<rindolf>
rproust: I'm getting dest/t2-homepage/art/better-scm/index.html|517| and still maintain. Now "SCM" stands for "Source Configuration Management"
<rindolf>
rproust: while it's line 514
ftrvxmtrx has joined #ocaml
<rproust>
rindolf: maybe it has to do with comments handling
<rproust>
try removing them from the file and see if it changes anything
<rproust>
(especially multiline comments)
<rindolf>
rproust: :-S
<rproust>
:%s/<!--.*-->//g or something like it in vim
<rindolf>
rproust: didn't help.
ikaros has joined #ocaml
pdhborges has joined #ocaml
rindolf has quit [Ping timeout: 240 seconds]
ymasory has joined #ocaml
pdhborges has quit [Ping timeout: 252 seconds]
<vivanov>
in oasis, when running make doc i get: Error: Unbound module Mutex, but the library compiles just fine. how to fix it?
<vivanov>
make && make test work ok
<gildor_>
vivanov: this is related to ocamldoc and the fact that it doesn't find external doc for Mutex
<gildor_>
vivanov: you can safely ignore this
<gildor_>
vivanov: you'll just end up with a e.g. val foo: Mutex.t -> unit Mutex.t not being a ling
<gildor_>
link
<vivanov>
gildor_: but i dont end up with a built documentation
<gildor_>
vivanov: I can reproduce your bug outside oasis
<gildor_>
vivanov: with just lock.ml and ocamlfind ocamldoc
<gildor_>
vivanov: did you have a working example before ?
<mrvn>
adr1en: that seems like something you write in 10 lines or less.
<adr1en>
mrvn: famous last words :P
<adr1en>
mrvn: depends on the features: if you want to display, if you want to parse, ... ;-)
<gildor_>
vivanov: humm, I correct myself, I fix the bug
<gildor_>
vivanov: can I see the lock.ml code ?
StepanKuzmin has joined #ocaml
<mrvn>
Well, you have a type t for your varibles, an initial element start : t and rules is a map of t -> t list and then a method to iterate
<mrvn>
adr1en: parsing and displaying is another matter
<mrvn>
adr1en: I was thinking a functor you apply to some hardoded L-system
<adr1en>
ah, I was thinking about something more complicated than it actually is =)
<adr1en>
even though I see a potential issue
ymasory_ has joined #ocaml
ymasory_ has quit [Read error: Connection reset by peer]
<adr1en>
the systems can "turn" 50°, which means that you might not (and usually won't) land on a pixel
<adr1en>
bah, room is too noisy to do anything
lopex has quit []
Rickasaurus has quit [Ping timeout: 246 seconds]
Cyanure has quit [Quit: Quitte]
larhat has quit [Quit: Leaving.]
dnolen has joined #ocaml
ymasory has quit [Ping timeout: 246 seconds]
vivanov has quit [Read error: Connection reset by peer]
lopex has joined #ocaml
<mrvn>
adr1en: "turn" 50° is already an interpretation of the data related to turtle graphics. Nobody says your L system represents a command sequence for a turtle.
<mrvn>
You also need to do this with some autoscaling so that larger results use smaller steps.
<adr1en>
yeah, I was actually worried about precision but it's not an issue actually
<scooty-puff>
thats the same site i had been looking around - its weird there isn't more extensive documentation (template haskell seemed to have plenty, i'm just saying...)
<thelema_>
my guess is that not enough people learn camlp4, and those that do are so busy building the future to have much time for helping others learn camlp4
<gildor_>
oasis released in GODI ;-)
<adrien>
\o/
<scooty-puff>
i wonder if they'd be less busy if they had more help from those who learned
<thelema_>
gildor_: any chance I can get some cleaning-up options on oasis-db -- delete a package, edit package name
<gildor_>
(for ocaml 3.11 release line)
<gildor_>
thelema_: just for odb admin panel or in general ?
<thelema_>
admin panel, and maybe also for files uploaded by me
<gildor_>
to remove a package in the admin panel, just set it to version none in testing
<thelema_>
yes, got that part
<gildor_>
oasis-db won't allow easy removal of packages uploaded (except for admin)
<thelema_>
I uploaded pcre as pcre-ocaml, and had to re-upload to fix the name
<gildor_>
I suppose, you are talking about pcre-ocaml
<thelema_>
yup
<gildor_>
well, you don't have to fix the name this way
<gildor_>
its real name is pcre-ocaml, after all
<gildor_>
but the findlib name is pcre
<thelema_>
I do have to have a package named pcre
<gildor_>
that is something that you can change once the online edit of _oasis will be made possible
<thelema_>
ok
* gildor_
still busy working on various aspect of oasis-db
adlsaks has joined #ocaml
lopexx has joined #ocaml
lopex has quit [Ping timeout: 260 seconds]
thelema_ has quit [Remote host closed the connection]
<scooty-puff>
what is the difference between IdLid, IdUid, and IdAnt? my guess is first is a standard literal, second is a unicode (does ocaml support unicode in source?) literal, and i have no clue what IdAnt is