Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'm evaluating this code in Mathematica 8.0.0 on Mac OS X 10.6.8:

Table[StringCases[TextRecognize[Binarize[Import[imgList[[i]]]]], 
  RegularExpression["[0.-9]*-[0.-9]*-[0.-9]*"]], {i, 1, 87}]

which finds every CAS registry number present in 87 GIFs.

Looking at the Activity Monitor, I can see that Mathematica calls Tesseract.exe and GIF.exe when working on the images.

Are those processes being virtualized, or is their name simply misleading?

share|improve this question
add comment

2 Answers

up vote 11 down vote accepted

Yes, the Mathematica application on Mac OS contains a few external binaries, which are mostly used for importing and exporting. These files have suffix .exe:

$ find "/Applications/Mathematica 8.app" -name '*.exe'|wc -l
49

But even though .exe is a prefix common for Windows executables, it doesn’t mean that it can’t be used for other things. In fact, Mac OS (like Linux and other Unixes) doesn’t care much how files are named, and while it is typically to name binary files on these systems without suffix at all, a .exe suffix doesn’t hurt. Moreover, you can actually check that these files are Mac OS binary:

$ file "/Applications/Mathematica 8.app/SystemFiles/Converters/Binaries/MacOSX-x86-64/GIF.exe"
/Applications/Mathematica 8.app/SystemFiles/Converters/Binaries/MacOSX-x86-64/GIF.exe: Mach-O 64-bit executable x86_64

the key point being this last part of the string: Mach-O 64-bit executable x86_64. There is thus no need to assume that Mathematica uses virtualization on Mac OS (and I'd be very surprised, to say the least, if it did).

share|improve this answer
add comment

I don't know what it is in the names that makes you think these programs are being virtualized, i.e., run in a virtual machine. Gif.exe is just an external program Mathematica runs during the Import of your gifs. Tesseract.exe is an open source OCR program currently in development by Google.

share|improve this answer
    
@SjoerdCdeVries It's because they're named like Windows programs (.exe), and I'm under OS X. I've edited my post to make that fact clearer. –  CHM Mar 30 '12 at 6:10
    
@CHM That makes quite a difference. Now I understand your question way better. –  Sjoerd C. de Vries Mar 30 '12 at 8:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.