[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Compiling C components for mirage-xen



Naive question: for low-level primitives like crypto that require speed, when do you/we prefer native implementation (in C at the libOS level) vs oCaml implementation?

regards,

Arnaud


On Thu, Jan 14, 2016 at 9:41 AM, Hannes Mehnert <hannes@xxxxxxxxxxx> wrote:
Hi Tim,

On 01/08/2016 11:19, Tim Cuthbertson wrote:
> I'd like to use `Bcrypt` from the `safepass` opam module in passe[0].
> There is sadly no `safepass-xen` package, and trying to just use
> `safepass` results in link errors:

I wonder whether it'd be more than a day of work to implement bcrypt
directly in OCaml. Would for sure safe from linking trouble (and be
automatically memory safe). An initial version might be 50% or 90% of
the speed of the pure C variant, but does this really matter for bcrypt?


hannes

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.