[Haskell] Re: HsDNS -- asynchronous DNS resolver
simons at cryp.to
Tue Jun 22 06:38:36 EDT 2004
Tomasz Zielonka writes:
> Maybe we could have two implementations behind one
It sure sounds nice, but the problem is that the API is
basically nothing more than the data types used to represent
DNS queries and answers. My API has just one single
function: query. So having the same API comes down to having
the same data types in both of our modules ... I don't know
whether this is feasible. We could have a common
DNS.Datagram module, maybe, which both libraries could use?
Also, I am not entirely free to choose the data types I use,
because I have to marshal them (efficiently) for ADNS.
If it can be done, I am all for it. But I probably wouldn't
want to invest too much time into the problem. Once your
implementation is stable, I think most people will prefer
the pure Haskell version anyway and stick with yours. I
thought of HsDNS as an interim solution anyway, it's just a
solution that works _now_.
More information about the Haskell