flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.0 out now! Get yours from http://caml.inria.fr/ocaml/release.html
<fremo> thank you, nice to talk with you :)
<fremo> I go back to my code...
<fremo> (got to code my grand-father xmas present)
authentic has quit [Connection timed out]
^authentic is now known as authentic
<psnively> Nice to talk to you too. Good luck!
Guest38267 is now known as cygnus_
<fremo> psnively: thank you :)
marmotine has quit ["mv marmotine Laurie"]
psnively has quit []
_zack has joined #ocaml
TaXules has quit [Remote closed the connection]
mpeter has quit []
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
bzzbzz has quit ["leaving"]
_zack has quit [Read error: 113 (No route to host)]
seafood has joined #ocaml
TaXules has joined #ocaml
seafood has quit []
jeddhaberstro has quit []
ygrek has joined #ocaml
palomer has quit ["Leaving"]
ygrek has quit [Remote closed the connection]
Snark has joined #ocaml
_zack has joined #ocaml
Kerris7 has joined #ocaml
snhmib has quit [Remote closed the connection]
snhmib has joined #ocaml
snhmib has quit [Read error: 104 (Connection reset by peer)]
snhmib has joined #ocaml
marmotine has joined #ocaml
<Camarade_Tux> anyone know a wc to count only inside ocaml comments ? I'd like to measure how much code a rewrite saved
<Camarade_Tux> (and I've commented what I've 'removed')
<flux> camarade_tux, write a tool to extract only comments? shouldbe relatively easy..
ikaros has joined #ocaml
<Camarade_Tux> flux, yeah, I think that's what I'll do
<fremo> with Lexer and Parser modules, I think you directly have ocaml comments...
<Camarade_Tux> I don't think I ever used them
<Camarade_Tux> I'll try to finish the code I'm working on first, hopefully it should be a matter of hours
<Camarade_Tux> (not counting the family preventing me from doing anything ;p )
<rwmjones> Camarade_Tux, if your comments are "well-behaved" then this awk script will extract them:
<rwmjones> awk '/\(\*/,/\*\)/' < input.ml
<rwmjones> it only really works for multi-line comments though ...
Camarade_Tux_ has joined #ocaml
Camarade_Tux has quit [Read error: 110 (Connection timed out)]
<rwmjones> Camarade_Tux_, did you see my reply above?
itewsh has joined #ocaml
<Camarade_Tux_> rwmjones, nope
<rwmjones> Camarade_Tux, if your comments are "well-behaved" then this awk script will extract them:
<rwmjones> awk '/\(\*/,/\*\)/' < input.ml
<rwmjones> it only really works for multi-line comments though ...
vixey has joined #ocaml
<Camarade_Tux_> I have some nested comments
<Camarade_Tux_> they don't account for much of the code but still
<Camarade_Tux_> and I'm stupid, I know how to use Lexer and Parser actually ><
<vixey> the ocamllex and stuff?
Camarade_Tux_ is now known as Camarade_Tux
<Camarade_Tux> vixey, yes
Kerris7 has quit []
Kerris7 has joined #ocaml
Kerris7 has quit [Client Quit]
_zack has quit ["Leaving."]
itewsh has quit ["KTHXBYE"]
<fremo> heu, nop, I mean ocamllex can do it but Lexer and Parser do it out of the box IIRC
<fremo> but that's may be faster to do it from scratch with ocamllex if you are used to it :)
<olegfink> heh, someone should make an awk variant supporting structural regexps
<Camarade_Tux> fremo, I have enough time to learn but arent ocamllex and Lexing basically the same thing ?
<olegfink> Camarade_Tux: I think you mix up Lexer and Lexing
<fremo> oups, yep, or Genlex ?
<olegfink> the former is a naive lexer not capable of anything fun; the latter is a library which ocamllex-generated code uses
<olegfink> right, s/Lexer/Genlex/
<olegfink> sorry
<fremo> np
<olegfink> I don't think using Lexing in without ocamllex is useful
<Camarade_Tux> right, do you have links to Lexer ? I remember reading some things about it but that's it
<fremo> by the way, is it possible to use Genlex without Caml lexing conventions ?
<fremo> Camarade_Tux: do you mean Genlex ?
ikaros has quit [".quit"]
<Camarade_Tux> fremo thanks, I had looked at it but was surprised to see something that short and thought I was looking at the wrong page =P
<fremo> hehe :)
<Camarade_Tux> anyone remember the name of the gecko bindings ? (by rwmjones iirc)
<fremo> Interresting, to embbed gecko in ocaml code or the opposite?
<rwmjones> Camarade_Tux, not by me ... GtkMozEmbed: http://www.mozilla.org/unix/gtk-embedding.html
<fremo> Did I dream or is there a way to write netscape style plugins in Ocaml?
<Camarade_Tux> rwmjones, ok thanks
<Camarade_Tux> fremo, as far as I've understood, the obrowser guys want to do something about this
<Camarade_Tux> and there is npocaml
<Camarade_Tux> (hmmm, not npocaml)
<fremo> yep, no result on google :(
<Camarade_Tux> npocaml was the name I gave my project which I stopped when I discovered there was an already workign project
<Camarade_Tux> and that was the project you just linked to
<fremo> :)
<fremo> ha ok :)
<fremo> nice
<fremo> it would be even nicer to be able to build native plugins...
<Camarade_Tux> you could maybe do that with 3.11
<Camarade_Tux> (because of natdynlink)
itewsh has joined #ocaml
Jedai has quit ["KVIrc 3.4.0 Virgo http://www.kvirc.net/"]
Stefan_vK has joined #ocaml
Stefan_vK1 has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
Associat0r has joined #ocaml
Kerris7 has joined #ocaml
_zack has joined #ocaml
itewsh has quit ["KTHXBYE"]
johnnowak has joined #ocaml
jeddhaberstro has joined #ocaml
ikaros has joined #ocaml
johnnowak has quit []
_zack has quit ["Leaving."]
johnnowak has joined #ocaml
johnnowak has quit [Remote closed the connection]
Snark has quit ["Ex-Chat"]
ikaros has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
^authentic has joined #ocaml
kig has joined #ocaml
authentic has quit [Read error: 110 (Connection timed out)]
^authentic is now known as authentic
mrpingoo has joined #ocaml
sporkmonger has joined #ocaml
love-pingoo has quit [Read error: 110 (Connection timed out)]
mbishop has quit [Remote closed the connection]
smimou has quit ["bli"]
mbishop has joined #ocaml
alexyk has joined #ocaml
<alexyk> how can I intercept Failure("int_of_string") raised deep somewhere, from main, and see what the offending string was?
<Smerdyakov> I don't think you can see what the string was, without changing every piece of code in the chain.
<Smerdyakov> Well, actually, just changing [int_of_string] would be enough.
<Camarade_Tux> or tracing it
^authentic has joined #ocaml
<alexyk> Smerdyakov: cool idea; yet I link many cmo/cma's which call int_of_string. [How] can I link in my own without changing all the modules?
<Smerdyakov> My conclusion is that you need to instrument your own calls to that function.
authentic has quit [Read error: 110 (Connection timed out)]
^authentic is now known as authentic
<Camarade_Tux> \o/
funebre has joined #ocaml
smimou has joined #ocaml
<flux> alexyk, a relatively simple task would be to change the standard library to implement your instrumentation, which has the potential to break other code (which could be considered broken already..)
<alexyk> flux: I really like pre-linking crufty li'l libs which would change standard functions, the question is whether I can do it with ocaml without actually relinking standard library :)
ikaros has quit [Remote closed the connection]
<flux> I don't believe you can
jlouis has joined #ocaml
itewsh has joined #ocaml
smimou has quit ["bli"]
Kerris7 has quit []
<Camarade_Tux> I've nearly finished the webkit-gtk bindings, they only need some polishing and checking but they should become available very soon (tm)
<Camarade_Tux> olegfink, ^^ (thought you could find that interesting, especially since the api finally lets you handle downloads and new windows correctly)
mrpingoo has quit ["Connection reset by pear"]
<olegfink> Camarade_Tux: cool!
<olegfink> Camarade_Tux: do I understand correctly that with natdynlink I can do webkit stuff from a topleve?
<olegfink> +l
<Camarade_Tux> I've already used webkit from the toplevel without natdynlink
<olegfink> oh, didn't know it was possible with bindings
<Camarade_Tux> actually it's even a bit easier to get the bindings compile and work for bytecode
<olegfink> nice, I think my dream browser would be a page rendering toplevel
<Camarade_Tux> it's a bit hard because you'd had to deal with threads and blocking (that's a general annoyance when using lablgtk2 [as in 'toplevel'])
<Camarade_Tux> but I'll have to think at how to make plugins for my browser :p
<Camarade_Tux> (I've never been happy with firefox, I find it to be one of the world's worst browser)
<Camarade_Tux> anyway, I can sleep peacefully now, good night :)
<thelema> Camarade_Tux: all browsers suck - firefox sucks less
vixey has quit ["There exists an infinite set!"]
marmotine has quit ["mv marmotine Laurie"]