Not that I am aware of. However, I have written file format
reader/writers (like archive/zip, and a WAVE format library) and in
both cases it was pretty easy to put together something that (at
least) works. If the file formats you need to work with are well
documented, you might consider doing that.
> Although I've read that Go might not be the best choice for massive
> number crunching
From where did you get that idea? Go's compiled code is fast to
execute, and Go doesn't have a lot of the overheads associated with
some other languages (like Java). There's no substantial reason Go
can't crunch numbers as fast as anything else.
Andrew
On 28 December 2010 11:47, darenw <darensc...@gmail.com> wrote:
> Although I've read that Go might not be the best choice for massive
> number crunching
From where did you get that idea? Go's compiled code is fast to
execute, and Go doesn't have a lot of the overheads associated with
some other languages (like Java). There's no substantial reason Go
can't crunch numbers as fast as anything else.
I might try a small demo program in Go, but it'll be far easier if I
can at least read FITS files.
I also want to work on hdf5 but I don't deal with hdf5 as often as
hdf4. NetCDF4 format is pretty much a stripped down version of HDF5 as
far as I know, and I think NetCDF3 is the simplest format to
implement.
Of course, you can always use cgo. Both pytables and pyhdf are
bindings to the C libraries.
fhs
Sébastien Binet has Go bindings for libhdf5 at
https://bitbucket.org/binet/go-hdf5/
I didn't try them and I don't know if it uses reflection for dataset
reading/writing.
At least, the interface looks usable:
http://gopkgdoc.appspot.com/pkg/bitbucket.org/binet/go-hdf5/pkg/hdf5
Rémy.
> Le 31 mars 2012 22:30, Fazlul Shahriar <fsha...@gmail.com> a écrit :
>> I started on hdf4 a while ago: https://bitbucket.org/fhs/gohdf
>> I haven't had time to work on it further, but I'm very much interested.
>>
>> I also want to work on hdf5 but I don't deal with hdf5 as often as
>> hdf4. NetCDF4 format is pretty much a stripped down version of HDF5 as
>> far as I know, and I think NetCDF3 is the simplest format to
>> implement.
>>
>> Of course, you can always use cgo. Both pytables and pyhdf are
>> bindings to the C libraries.
>
> Sébastien Binet has Go bindings for libhdf5 at
> https://bitbucket.org/binet/go-hdf5/
> I didn't try them and I don't know if it uses reflection for dataset
> reading/writing.
it does:
https://bitbucket.org/binet/go-hdf5/src/50c6c6f0bdc4/pkg/hdf5/h5t.go#cl-386
-s
--
#########################################
# Dr. Sebastien Binet
# Laboratoire de l'Accelerateur Lineaire
# Universite Paris-Sud XI
# Batiment 200
# 91898 Orsay
#########################################