gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0+beta1 http://permalink.gmane.org/gmane.comp.lang.caml.inria/49168
ikaros has quit [Quit: Leave the magic to Houdini]
slash_ has quit [Quit: Lost terminal]
jakedouglas has joined #ocaml
rbancroft has quit [Quit: leaving]
emmanuelux has quit [Remote host closed the connection]
coucou747 has quit [Quit: 0x2a]
mjonsson has joined #ocaml
marius has joined #ocaml
marius is now known as Guest51357
Guest51357 has quit []
travisbrady_ has joined #ocaml
__marius__ has joined #ocaml
travisbrady has quit [Ping timeout: 260 seconds]
travisbrady_ is now known as travisbrady
neorab has joined #ocaml
__marius__ has left #ocaml []
palomer has quit [Ping timeout: 265 seconds]
elehack has quit [Quit: not a typewriter]
_unK has quit [Remote host closed the connection]
waterChip has joined #ocaml
waterChip has quit [Client Quit]
__marius__ has joined #ocaml
jakedouglas has quit [Quit: Leaving.]
Amorphous has quit [Ping timeout: 248 seconds]
Amorphous has joined #ocaml
travisbrady has quit [Quit: travisbrady]
__marius__ has quit [Remote host closed the connection]
alexyk has quit [Quit: alexyk]
valross has joined #ocaml
ygrek has joined #ocaml
ikaros has joined #ocaml
seafood has quit [Quit: seafood]
seafood has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
coucou747 has joined #ocaml
valross has quit [Quit: Ex-Chat]
ttamttam has joined #ocaml
sepp2k has joined #ocaml
sepp2k has quit [Client Quit]
Anarchos has joined #ocaml
Anarchos has quit [Ping timeout: 276 seconds]
Anarchos has joined #ocaml
ttamttam has quit [Quit: Leaving.]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
derdon has joined #ocaml
Asmadeus has quit [Ping timeout: 252 seconds]
Asmadeus has joined #ocaml
ztfw` has quit [Remote host closed the connection]
ztfw has joined #ocaml
boscop has quit [Ping timeout: 240 seconds]
boscop_ has joined #ocaml
alexyk has joined #ocaml
psnively has joined #ocaml
psnively has quit [Quit: psnively]
robobo has joined #ocaml
<robobo> hi everyone
<robobo> i'm trying to create an array of 10,000,000 elements, but I reached the limit of the Array module
<robobo> so I though of using BigArray (with Int64 type elements)
<robobo> how do you use this module (do you guys have an example) ?
<thelema> you want a 1d array?
<robobo> yes
<thelema> open Bigarray.Array1 and use these functions: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Bigarray.Array1.html
<robobo> I don't understand this 'c Bigarray.layout : in type ('a, 'b) Bigarray.kind ->
<robobo> 'c Bigarray.layout -> int -> ('a, 'b, 'c) t,
<thelema> to create a bigarray?
<robobo> yes
<thelema> you wanted a bigarray of int64s, so use Bigarray.int64 for the kind
<thelema> for layout, just use Bigarray.c_layout (doesn't matter for 1d arrays)
<thelema> well, c_layout starts indexing at 0, fortran_layout starts indexing at 1
<robobo> ah, okey
<robobo> thanks
<thelema> so Array1.create int64 c_layout 10_000_000
<robobo> okey thanks
ccasin has joined #ocaml
emmanuelux has joined #ocaml
Anarchos has joined #ocaml
mjonsson_ has joined #ocaml
mjonsson_ has quit [Client Quit]
jakedouglas has joined #ocaml
alexyk has quit [Quit: alexyk]
derdon has quit [Ping timeout: 258 seconds]
travisbrady has joined #ocaml
boscop_ has left #ocaml []
boscop has joined #ocaml
travisbrady has quit [Quit: travisbrady]
ygrek has quit [Ping timeout: 245 seconds]
ygrek has joined #ocaml
oriba has joined #ocaml
oriba has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
rbancroft has joined #ocaml
ttamttam has joined #ocaml
derdon has joined #ocaml
neorab has quit [Quit: WeeChat 0.3.2]
alexyk has joined #ocaml
_unK has joined #ocaml
ikaros has joined #ocaml
mjsor has joined #ocaml
mjsor has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 245 seconds]
ygrek has joined #ocaml
alexyk has quit [Quit: alexyk]
robobo has quit [Read error: Connection reset by peer]
_unK has quit [Ping timeout: 260 seconds]
itewsh has joined #ocaml
itewsh has quit [Client Quit]
_unK has joined #ocaml
emmanuelux has quit [Quit: =>[]]
emmanuelux has joined #ocaml
travisbrady has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
<adrien> I'm reading lines from a big file (4GB), 4 lines at a time, any advice on how to improve the performance? (it's currently taking 40% of the time)
<ygrek> what function is hot?
<ygrek> how much is wc faster?
<adrien> time seconds seconds calls s/call s/call name
<adrien> 39.54 13.53 13.53 81548305 0.00 0.00 caml_input_scan_line
<adrien> it's the hottest by far (next is 10%), it's not a big deal but I've never had to "optimize" I/O accesses and I'm curious
<adrien> I mostly use input_line btw
<ygrek> get rid of in_channel and increase buffer size
<adrien> buffer size for what?
<adrien> hmmmm, I maybe know how many characters there are in 4 lines so it'd be pretty awesome
ttamttam has quit [Quit: Leaving.]
neorab has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
rbancroft has quit [Quit: leaving]
ftrvxmtrx has quit [Ping timeout: 260 seconds]
ftrvxmtrx has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
valross has joined #ocaml
__marius__ has joined #ocaml
__marius__ has quit [Remote host closed the connection]
<mbac> what does everyone here use ocaml for
<derdon> mbac: lexing + parsing and after that, file and content amnipulation
<derdon> *manipulation
<derdon> and if both these things work, I'll be 5 years older :D
<mbac> cool
<mbac> why ocaml?
<derdon> mbac: for fun ;)
<derdon> mbac: for practising
<mbac> good answer!
<derdon> mbac: and to improve my programming skills in general
<derdon> if you learn language B, your skills in language A will improve
<mbac> sometimes you even learn to stop using language A
<mbac> :)
<derdon> yes, I know
<derdon> like PHP :D
__marius__ has joined #ocaml