[mercury-users] How to make huge db in Mercury

Peter Schachte schachte at cs.mu.OZ.AU
Wed May 8 11:28:00 AEST 2002


On Tue, May 07, 2002 at 06:28:23PM +1000, Ralph Becket wrote:  
> The right(ish) thing to do is, indeed, use io__read to slurp in the data 
> from an external file (unfortunate because your executable is now two
> files)

... or perhaps change the compiler to allow ground terms to be
represented without having a variable for every subterm?  Call it
hyper homogeneous form.

> or (and this may leave a strange taste in the mouth) use
> io__read_from_string on a string constant.

Phtht!  I'm still shuddering.

I can't see why there should be *any* runtime cost (not even GC cost)
associated with constant terms.


-- 
Peter Schachte              Designing grand concepts is fun; finding nitty
schachte at cs.mu.OZ.AU        little bugs is just work.
www.cs.mu.oz.au/~schachte/  -- Frederic Brooks, _The Mythical Man-Month_ 
Phone: +61 3 8344 9166      
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list