[darcs-users] Binary patches
Mirian Crzig Lennox
list-darcs-users at cosmic.com
Fri Dec 5 18:44:27 UTC 2003
ser at germane-software.com ("Sean E. Russell") writes:
> On Friday 05 December 2003 06:08, David Roundy wrote:
> > If you like (and if Ruby can easily call C), the conversion to and
> > from hex is now written in C (in fpstring.c), so you could use it
> > rather than [...]
>
> Its pretty easy to convert to and from hex in Ruby, but doing it via
> the C library would be much faster. However, this would make Yarcs
> depend on compiled code, and I suspect that Kevin's shooting for a
> pure Ruby solution.
No reason one can't have both...
Not only does Ruby cope exceedingly well with calling compiled C
functions, but it can also be made to fall back gracefully to a pure
Ruby implementation if the compiled module is unavailable or fails to
load.
cheers,
Mirian (closet Ruby enthusiast)
More information about the darcs-users
mailing list