Re: Re[2]: [Haskell] reading binary files

2006-04-07 Thread minh thu
thanks a lot Bulat ! i ve seen the lib use System.Stream which i don't know... the fact you can discribe a layout then read a file according to the layout is just a feature i thought about. i'll definitely learn your library. minh thu 2006/4/6, Bulat Ziganshin <[EMAIL PROTECTED]>: > Hello minh,

Re[2]: [Haskell] reading binary files

2006-04-06 Thread Bulat Ziganshin
Hello minh, Thursday, April 6, 2006, 12:41:32 PM, you wrote: > the code you give in the mail is +/- what i thought about ... is-it > the fastest way ? if you will say about your task and speed requirements, i will say how you can do it. the fastest way is to use asm :) > thank you also for your

Re: [Haskell] reading binary files

2006-04-06 Thread minh thu
thanks a lot ! the code you give in the mail is +/- what i thought about ... is-it the fastest way ? thank you also for your lib, i will read it later in the day. when i said "would have to be the same" in previous mail, it's because i like to see haskell as a really high-level abstraction where

Re: [Haskell] reading binary files

2006-04-06 Thread Bulat Ziganshin
Hello minh, Wednesday, April 5, 2006, 10:41:02 PM, you wrote: > but in 1/, i have to choose between different kind of array > representation (and i dont know which one is better) and it seems to > me that the resulting code (compiled) would have to be the same. no, the code will be slightly diff

[Haskell] reading binary files

2006-04-05 Thread minh thu
hi all, two things: 1/ i do something and i'd like to know if it is correct 2/ i propose something about 1/ 1/ i want to read some binary file (e.g. targa file format : *.tga). i do this : -- first way : via IOUArray showInfoHeader1 handle = do a <- newArray_ (1,8) :: IO (IOUArray Int Word