kaustuv changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.1 out now! Get yours from http://caml.inria.fr/ocaml/release.html
<brendan> or Unix.access
blue_prawn has quit [Read error: 101 (Network is unreachable)]
Associat0r has joined #ocaml
awwaiid has left #ocaml []
pants1 has joined #ocaml
pantsd has quit [Read error: 60 (Operation timed out)]
<hcarty> alexyk: Sys.file_exists
<alexyk> thx
ertai has quit [Remote closed the connection]
ertai has joined #ocaml
ertai_ has quit [Remote closed the connection]
ertai_ has joined #ocaml
<alexyk> why can't Unix.mkdir just create a directory with default permissions? or how to use umask to ensure say 0755?
<julm> alexyk: 022 IIRC
<alexyk> julm: well umask can be set per user; that's 022. I found I need to give mkdir 0511 to end up with 0755 for reals.
<julm> ah..
<julm> alexyk, I can't figure the link between o511 and o755..
<julm> o511 = b10100_1001
<julm> o755 = b11110_1101
<julm> o022 = b00001_0010
<julm> but d511 = o777 = b111111111
<alexyk> julm: I'm not sure, used random adjustment :)
<alexyk> until I ended up with real 0755 on the new dir
<alexyk> ah, it's enough to give 0o755
<alexyk> that works
<julm> 'k
ched_ has joined #ocaml
Ched has quit [Read error: 110 (Connection timed out)]
maskd has quit ["leaving"]
sporkmonger_ has quit []
<thelema> does anyone here know if oscigen is immune to XSS attacks through always-html-encoding strings?
* thelema wants to do old things with ocaml, and do them *right*
* thelema just got done listening to Joel Spolsky and Jeff Atwood's podcast where they lay out the obvious idea of using two different string types in a statically typed language to differentiate between html-encoded strings and non-html-encoded strings
<thelema> and to statically enforce only the first getting written to a web page
<thelema> Although you'd need different encodings for <title> and inside value="xxx"
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
Mr_Awesome has joined #ocaml
datkin has left #ocaml []
sporkmonger has joined #ocaml
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: 60 (Operation timed out)]
ulfdoz_ is now known as ulfdoz
jeddhaberstro has quit []
komar_ has quit [Read error: 60 (Operation timed out)]
komar_ has joined #ocaml
tar_ has quit []
ikaros has joined #ocaml
schme has joined #ocaml
komar_ has quit [Read error: 60 (Operation timed out)]
LeCamarade has joined #ocaml
ertai_ has quit ["leaving"]
_zack has joined #ocaml
<mfp> thelema: Ocsigen's XHTML.M module performs the required escaping for text (PCDATA) and attributes
<mfp> so code injection should be impossible
<mfp> thelema: the idea is that, instead of building the HTML by concatenating strings, you create a statically valid (X)HTML tree, and the final html -> string conversion escapes where needed
Camarade_Tux has joined #ocaml
ikaros has quit ["Leave the magic to Houdini"]
Camarade_Tux has quit ["Leaving"]
Camarade_Tux has joined #ocaml
ppsmimou has joined #ocaml
Camarade_Tux has quit ["Leaving"]
eevar2 has quit [Read error: 110 (Connection timed out)]
<mehdid> mfp: it doesn't verify html entities
<mehdid> mfp: and this can lead to non-valid documents...
<flux> mehdid, actually there is some verification going on. more verification if you use ocamlduce.
<flux> mehdid, but atleast it handles quoting as expected
Lomono has quit ["Don't even think about saying Candlejack or else you wi"]
jeanbon has joined #ocaml
<mehdid> flux: I was speaking of: val entity : string -> [> `PCDATA ] elt
rwmjones_ has joined #ocaml
Lomono has joined #ocaml
Snark has joined #ocaml
pants2 has joined #ocaml
kaustuv has joined #ocaml
<mfp> mehdid: fair enough, it could check that it's given a valid character entity, but you'd never do entity stuff_provided_by_user anyway
<mehdid> mfp: sure... but just keep it in mind :)
pants1 has quit [Read error: 113 (No route to host)]
pants2 has quit [Connection timed out]
pants1 has joined #ocaml
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
ertai_ has joined #ocaml
ertai_ has quit [Client Quit]
jado has joined #ocaml
<jado> hi, how do i compile my code if a need the Num library for instance ?
<jado> if i need*
<jado> thanks kaustuv ; last time i asked someone told me to use ocamlfind
ertai_ has joined #ocaml
<kaustuv> That works also, and is possibly better, if you have findlib installed. ocamlfind ocamlc -package num whatever.ml
<jado> thanks
<C_Tux> jado: calling directly ocamlc/opt works fine if you use only modules from the base distribution but ocamlfind is easier when you start using several modules coming from different places
<jado> ok thanks
schme has quit [Read error: 113 (No route to host)]
<kaustuv> ocamlfind really ought to be bundled with the base distribution...
<C_Tux> last time I checked (quite long ago), ocamlfind was problematic on windows
<C_Tux> but besides windows, most people probably have it with their ocaml, something in the documentation could be enough
_andre has joined #ocaml
ertai has quit [Read error: 110 (Connection timed out)]
ertai_ has quit ["leaving"]
ertai has joined #ocaml
ztfw has joined #ocaml
<Associat0r> FYI #proglangdesign #ltu
<kaustuv> C_Tux: do you mean that findlib assumes a Unixy directory structure? I've had no trouble with it under Cygwin.
hkBst has joined #ocaml
<C_Tux> kaustuv: I can't remember now, I haven't really used windows for about two years now, plus there has been work to get it work better on windows
<C_Tux> kaustuv: and that was maybe not specific to findlib
<C_Tux> anyway, I don't think findlib plays well with msvc
ikaros has joined #ocaml
delroth has quit [Excess Flood]
delroth has joined #ocaml
<Associat0r> ##concurrency
willb has quit [Read error: 110 (Connection timed out)]
ikaros has quit ["Leave the magic to Houdini"]
bombshelter13_ has joined #ocaml
ikaros has joined #ocaml
delroth has quit [Excess Flood]
delroth has joined #ocaml
holgr_ has joined #ocaml
holgr has quit [Read error: 110 (Connection timed out)]
willb has joined #ocaml
jeanbon has quit [".)(.)(."]
jonafan_ has joined #ocaml
delroth has quit [Excess Flood]
delroth has joined #ocaml
holgr has joined #ocaml
holgr_ has quit [Read error: 104 (Connection reset by peer)]
fred_ has joined #ocaml
fred_ is now known as Guest90635
Guest90635 is now known as fremo
jonafan has quit [Read error: 110 (Connection timed out)]
diapir has joined #ocaml
diapir has left #ocaml []
jeanbon has joined #ocaml
TaXules has quit [Remote closed the connection]
jado has quit [Remote closed the connection]
delroth has quit [Excess Flood]
lde has joined #ocaml
delroth has joined #ocaml
jeddhaberstro has joined #ocaml
julm has quit [Read error: 60 (Operation timed out)]
TaXules has joined #ocaml
alcazoid has joined #ocaml
deavid has joined #ocaml
<deavid> hello :-)
_zack has quit ["Leaving."]
jonafan_ is now known as jonafan
ztfw` has joined #ocaml
ztfw` has quit [Client Quit]
<deavid> I was learning haskell the past week, but i got stuck when i was trying to do OOP style programming in haskell... I'm starting with functional programming, but I found that severar programs would be very hard to write without OOP; so, today I'm taking a look to ocaml :-)
<hcarty> deavid: Welcome :-)
rwmjones_ has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
alcazoid has left #ocaml []
alexyk has quit []
ztfw has quit [Read error: 110 (Connection timed out)]
alexyk has joined #ocaml
itewsh has quit [Remote closed the connection]
r1nu- has joined #ocaml
r1nu- has left #ocaml []
Yoric[DT] has joined #ocaml
LeCamarade is now known as LeCamarade|Away
Snark has quit ["Ex-Chat"]
Submarine has joined #ocaml
<Submarine> yo
<flux> deavid, you may find at times that O'Caml's objective oriented programming is a bit of an advanced subject, but feel free to ask ;-). (of course, it is a good idea to read the documentation beforehand)
<deavid> i'm reading the tutorial :-)
<deavid> there's a lot of things that ocaml does, i'm impressed
<flux> deavid, oh, ok. well, I still suggest to read through the official manual too (http://caml.inria.fr/pub/docs/manual-ocaml/)
rwmjones_ has joined #ocaml
rwmjones_ has quit [Read error: 113 (No route to host)]
<deavid> ah, and (i'm curious) there's any standard about doing graphs for ocaml code? I'm talking about graphs that one could ""execute"" by hand (in imperative languages, these will be flow charts)
_andre has quit ["leaving"]
<Submarine> for a purely functional language that would sound somewhat weird, deavid
<mrvn> You can always make a graph but for anything worthwile the thing will be so complex that you can forget about doing it by hand.
psnively has joined #ocaml
psnively has left #ocaml []
Submarine has quit ["Leaving"]
schme has joined #ocaml
<deavid> i believe that funtional graphs should appear simpler that imperative ones; but I never seen one
<deavid> ok, i suposse that is a thing that simply doesn't exist :P
* Yoric[DT] is having fun (re)writing an implementation of HM(X).
<deavid> (btw I don't use flow charts because they are ugly and too hard to understand)
<mrvn> but how do you represent passing a subgraph as argument to a function?
<deavid> good question :-D
Associat0r has quit ["#proglangdesign #ltu ##concurrency"]
Associat0r has joined #ocaml
<deavid> if you draw a function with a rectangle, a function that, doesn't has all its inputs in place, can't be executed, so the result of that will be a function; so you can connect that to the other function
Associat0r has left #ocaml []
itewsh has joined #ocaml
Associat0r has joined #ocaml
alexyk has quit []
Yoric[DT] has quit ["Ex-Chat"]
Yoric[DT] has joined #ocaml
_zack has joined #ocaml
hkBst has quit [Read error: 104 (Connection reset by peer)]
alexyk has joined #ocaml
slash_ has joined #ocaml
jeddhaberstro has quit []
_zack has quit ["Leaving."]
komar_ has joined #ocaml
bombshelter13_ has quit []
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
rwmjones has quit [Read error: 104 (Connection reset by peer)]
itewsh has quit ["There are only 10 kinds of people: those who understand binary and those who don't"]
julm has joined #ocaml
schme has quit [Read error: 110 (Connection timed out)]
slash_ has quit [Client Quit]
ikaros has quit ["Leave the magic to Houdini"]
Associat0r has quit ["#proglangdesign #ltu ##concurrency"]
slash_ has joined #ocaml
mbishop has quit [Read error: 110 (Connection timed out)]
mbishop has joined #ocaml
jeanbon has quit [".)(.)(."]
dsturnbull has joined #ocaml
lde has quit [Remote closed the connection]
dsturnbull has left #ocaml []
jmou has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
willb has quit [Read error: 110 (Connection timed out)]
alexyk has quit []
jmou is now known as julm
ulfdoz has quit [Read error: 110 (Connection timed out)]
Yoric[DT] has quit ["Ex-Chat"]