<albacker>
is it possible to write in a file from line 2 to line n, and then at the end write at line 1 ?
<flux>
yes, if you know beforehand how long the first line is going to be..
<albacker>
hmm, no i don't.
<flux>
or if you can pad it with some characters and know beforehand how long the first line can be at its longest
<albacker>
it'll be a file with numbers on each line., i know the number on the first line only at the end, and i dont want to store everything during the whole program.
th5 has quit [Read error: Operation timed out]
<albacker>
i don't know if it will have 2 digits or 3 digits.
<albacker>
or 1 digit.
<flux>
you can possibly write 00002 etc fixed length number?
<albacker>
??
<flux>
I got the idea the first line is going to be number
<albacker>
maybe i can 'reserve' 10 places on the first line. im sure my number wont depass that, can i do it?
<albacker>
flux: yes, its going to be a number.
<flux>
seek into offset 10 before starting to write
<flux>
then later on seek to 0 and write 10 digits
<albacker>
flux: ok, thanks. (any info on offset seeking)
<flux>
actually 9 digits and a newline
<flux>
seek_out
<albacker>
actually 2 digits, 7 spaces and a newline :p
th5 has joined #ocaml
<albacker>
dunno if this is better or storing all the info through the whole program than writing everything in order :/
<albacker>
2nd way will be slower, and take more memory that's for sure.
<albacker>
but i wont have the extra spaces after the number.
<mfp>
the shootout is degenerating into a game of tricking igouy
<mfp>
re: binary-trees benchmark -> "If you use the (illegal) -A400M setting to preallocate the heap size, GHC is very, very fast." > "Try +RTS -H (no argument) with GHC 7.0.1. I can rename it to -server if that would help :-)" > "That looks very useful."
<f[x]>
no rigid requirements on implementations -> hence the result
<mfp>
it seems to be very generalized in Haskell > 'I guess the wording in the problem description says "don't implement your own custom memory pool" which is ambiguous. (...) Shall I put up a memory pool library on hackage and then use that in the Haskell example?' > "please do!"
<mfp>
dons also added stuff to some lib of his (ByteString?) to speed up an older benchmark (the one about reading ints from a file)
<f[x]>
who cares
<mfp>
same as doping, it puts pressure on the other implementors to cheat
<mfp>
and causes long irritating discussions on the mailing list
<f[x]>
hell yes
rmitt_ has joined #ocaml
<f[x]>
people should just ignore this
munga has quit [Ping timeout: 260 seconds]
th5 has quit [Ping timeout: 240 seconds]
rmitt_ has quit [Quit: Page closed]
nejimban has quit [Ping timeout: 250 seconds]
diml has quit [Ping timeout: 250 seconds]
mal`` has quit [Ping timeout: 250 seconds]
haelix has quit [Ping timeout: 250 seconds]
_nejimban has joined #ocaml
haelix has joined #ocaml
diml has joined #ocaml
mal`` has joined #ocaml
joewilliams_away is now known as joewilliams
init1 has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
__marius__ has quit [Quit: Lost terminal]
Yoric has quit [Quit: Yoric]
little_owl1 has left #ocaml []
fraggle_ has joined #ocaml
ftrvxmtrx has joined #ocaml
joewilliams is now known as joewilliams_away
mbac has joined #ocaml
bzzbzz has quit [Quit: leaving]
yezariaely has joined #ocaml
_andre has quit [Quit: leaving]
fraggle_ has quit [Quit: -ENOBRAIN]
yezariaely has left #ocaml []
rixed_ has joined #ocaml
fraggle_ has joined #ocaml
Snark has quit [Quit: Ex-Chat]
Edward has joined #ocaml
mfp has quit [Ping timeout: 245 seconds]
init1 has quit [Quit: Quitte]
fraggle_ has quit [Ping timeout: 272 seconds]
mfp has joined #ocaml
gnuvince has quit [Ping timeout: 240 seconds]
fraggle_ has joined #ocaml
joewilliams_away is now known as joewilliams
fraggle_ has quit [Ping timeout: 245 seconds]
gnuvince has joined #ocaml
fraggle_ has joined #ocaml
Tianon has quit [Quit: brb, server needs a reboot]
boscop has quit [Ping timeout: 240 seconds]
seafood has joined #ocaml
boscop has joined #ocaml
joewilliams is now known as joewilliams_away
gnuvince has quit [Ping timeout: 240 seconds]
gnuvince has joined #ocaml
seafood has quit [Ping timeout: 272 seconds]
seafood has joined #ocaml
rixed_ has quit [Ping timeout: 255 seconds]
seafood has quit [Quit: seafood]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
seafood has joined #ocaml
albacker has quit []
albacker has joined #ocaml
albacker has quit [Changing host]
albacker has joined #ocaml
albacker has quit [Changing host]
albacker has joined #ocaml
gnuvince has quit [Ping timeout: 245 seconds]
gnuvince has joined #ocaml
ulfdoz has joined #ocaml
lamawithonel has joined #ocaml
lamawithonel has quit [Ping timeout: 255 seconds]
lamawithonel has joined #ocaml
lamawithonel_ has joined #ocaml
ulfdoz has quit [Ping timeout: 260 seconds]
lamawithonel has quit [Ping timeout: 264 seconds]
lamawithonel_ has quit [Ping timeout: 255 seconds]