Re: Projects I may be willing to sponsor

  • From: Stefano <phd.st.p@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 11 Dec 2014 10:19:25 +0000

On 10 Dec 2014 23:30, "Mike Pall" <mike-1412@xxxxxxxxxx> wrote:
>
> Joe Ellsworth wrote:
> > What I really want is a patch that will allow me to use 40 gig of
> > FFI allocations on a server that contains 80 Gig of Ram.
>
> local x = ffi.cast("double *", ffi.C.malloc(40*2LL^30))
>
> But, yes ... you need to manually manage the memory. There's
> simply no way to get reliable, performant and automatic memory
> management under these constraints.

Well, wrapping it in a struct with a __gc metamethod is automatic enough
for me....or am I missing something?

Stefano

>
> [Ask the Java people about the horrendous things they need to do
> to work around the 'best of their class' garbage collectors for
> huge memory loads.]
>
> --Mike
>

Other related posts: