Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2468

Re: Get["file.mx"] doesn't work

From David Bailey <dave@removedbailey.co.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Get["file.mx"] doesn't work
Date 2011-05-18 11:15 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ir09p4$20l$1@smc.vnet.net> (permalink)
References <iqtnbm$io4$1@smc.vnet.net>

Show all headers | View raw


On 17/05/2011 12:49, Sjoerd C. de Vries wrote:
> If you saved the file using DumpSave the result may be machine specific (MaxOS vs Win vs Linux; 32 bit vs 64 bit). Other kinds of saving results (a normal save in a .nb notebook or using Save are machine independent if I'm not mistaken).
>
> Cheers -- Sjoerd
>
> Mathematica questions quickly answered at StackOverflow
> http://stackoverflow.com/questions/tagged/mathematica
>
>
There is an interesting alternative to using MX files, which seems to be 
portable:

str=OpenWrite[file,BinaryFormat->True];
       BinaryWrite[str,Compress[expr],"TerminatedString"];
    Close[str];

This is not quite as fast as using an mx file, but it is still very fast.

David Bailey
http://www.dbaileyconsultancy.co.uk

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Get["file.mx"] doesn't work "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2011-05-17 11:49 +0000
  Re: Get["file.mx"] doesn't work David Bailey <dave@removedbailey.co.uk> - 2011-05-18 11:15 +0000
    Re: Get["file.mx"] doesn't work Albert Retey <awnl@gmx-topmail.de> - 2011-05-19 11:44 +0000
      Re: Get["file.mx"] doesn't work Peter Pein <petsie@dordos.net> - 2011-05-20 11:02 +0000
        Re: Get["file.mx"] doesn't work Albert Retey <awnl@gmx-topmail.de> - 2011-05-21 10:47 +0000
    Re: Get["file.mx"] doesn't work Ulf-Dietrich Braumann <braumann@uni-leipzig.de> - 2011-05-20 10:38 +0000

csiph-web