|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: Mathematica PluginDear Bertrand,
Is the updated mathematica plug-in for TeXmacs available somewhere? Would be great :-). Cheers, Peter. On Apr 20, 2012, at 3:01 PM, BB wrote:
_______________________________________________ Texmacs-dev mailing list Texmacs-dev@... https://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Mathematica PluginDear Peter and Bertrand,
Sorry to disappoint you but I'm afraid that getting a working mathematica plugin "out of the box" for new users is not going to happen before the summer. However a user with some motivation and knowledge can make it to work. Let me explain why. What's broken is not Andrey's mathematica plugin code itself, it's the one-time script that runs the first time the user wants to connect to mathematica. That script *compiles* the plugin code, linking it to the actual mathlink library on the user's system and puts the resulting executable in the user's Texmacs directory. Since the time when Andrey wrote the script, there has been 3 major releases of Mathematica and the added support of MacOS and Windows in Texmacs, that all broke that installation script in various ways. Now, fixing the script so that texmacs would in all cases transparently connect to mathematica without any user intervention seems unlikely to happen for the simple reason that a compiler may not even be available on the user's machine. So manual installation of the (OS-dependent) toolchain would be necessary anyway. Furthermore the new script(s) would have to handle many OSes and many possible mathematica versions, which means someone should have access to all (OS-mathematica version) configurations... but who would that be? Presently I see no solution other than providing good how-tos on the compilation, or at best platform-specific scripts. What I posted last year in the users' list (http://comments.gmane.org/gmane.editors.texmacs.user/7409) is how to perform this one-time compilation in linux, which isn't really a big deal. In Albufeira, Miguel worked out the way to do this on MacOS for Bertrand. If I understood correctly, it was not as easy as in linux and that should probably be written into a howto as well. Then it would certainly be nice to centralize these instructions at some place (the famous wiki? a forum with a dedicated "plugins" section?) so that they could be maintained up-to date with user contributions for new setups, new versions, etc. Best, Philippe _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... https://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Mathematica PluginDear Philippe,
Thank you for the information. Indeed, it would help a lot if at least scripts that are working for specific combinations of Mathematica & OS were made available somewhere. As for the problems with developing a universally working script you've mentioned, I am willing to try the scripts / help debugging them with various versions (Mathematica 7 & 8 at least) on OS X (probably I could also install & try on Windows & Linux). Moreover, if someone took the task to develop such a universal script, I am willing to provide remote access to a machine with Mathematica(s) & OS X / Linux. Best, Peter. On 25.4.2012, at 11:32, Philippe Joyez wrote: > Dear Peter and Bertrand, > > Sorry to disappoint you but I'm afraid that getting a working mathematica plugin > "out of the box" for new users is not going to happen before the summer. However > a user with some motivation and knowledge can make it to work. Let me explain > why. > > What's broken is not Andrey's mathematica plugin code itself, it's the one-time > script that runs the first time the user wants to connect to mathematica. That > script *compiles* the plugin code, linking it to the actual mathlink library on > the user's system and puts the resulting executable in the user's Texmacs > directory. Since the time when Andrey wrote the script, there has been 3 major > releases of Mathematica and the added support of MacOS and Windows in Texmacs, > that all broke that installation script in various ways. > > Now, fixing the script so that texmacs would in all cases transparently connect > to mathematica without any user intervention seems unlikely to happen for the > simple reason that a compiler may not even be available on the user's machine. > So manual installation of the (OS-dependent) toolchain would be necessary > anyway. Furthermore the new script(s) would have to handle many OSes and many > possible mathematica versions, which means someone should have access to all > (OS-mathematica version) configurations... but who would that be? > > Presently I see no solution other than providing good how-tos on the > compilation, or at best platform-specific scripts. What I posted last year in > the users' list (http://comments.gmane.org/gmane.editors.texmacs.user/7409) is > how to perform this one-time compilation in linux, which isn't really a big > deal. In Albufeira, Miguel worked out the way to do this on MacOS for Bertrand. > If I understood correctly, it was not as easy as in linux and that should > probably be written into a howto as well. Then it would certainly be nice to > centralize these instructions at some place (the famous wiki? a forum with a > dedicated "plugins" section?) so that they could be maintained up-to date with > user contributions for new setups, new versions, etc. > > Best, > Philippe > > > > > > > _______________________________________________ > Texmacs-dev mailing list > Texmacs-dev@... > https://lists.gnu.org/mailman/listinfo/texmacs-dev _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... https://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Mathematica PluginDear Philippe,
On Wed, Apr 25, 2012 at 09:32:05AM +0000, Philippe Joyez wrote: > Sorry to disappoint you but I'm afraid that getting a working mathematica plugin > "out of the box" for new users is not going to happen before the summer. However > a user with some motivation and knowledge can make it to work. Let me explain > why. > > What's broken is not Andrey's mathematica plugin code itself, it's the one-time > script that runs the first time the user wants to connect to mathematica. That > script *compiles* the plugin code, linking it to the actual mathlink library on > the user's system and puts the resulting executable in the user's Texmacs > directory. Since the time when Andrey wrote the script, there has been 3 major > releases of Mathematica and the added support of MacOS and Windows in Texmacs, > that all broke that installation script in various ways. > > Now, fixing the script so that texmacs would in all cases transparently connect > to mathematica without any user intervention seems unlikely to happen for the > simple reason that a compiler may not even be available on the user's machine. > So manual installation of the (OS-dependent) toolchain would be necessary > anyway. Furthermore the new script(s) would have to handle many OSes and many > possible mathematica versions, which means someone should have access to all > (OS-mathematica version) configurations... but who would that be? > > Presently I see no solution other than providing good how-tos on the > compilation, or at best platform-specific scripts. What I posted last year in > the users' list (http://comments.gmane.org/gmane.editors.texmacs.user/7409) is > how to perform this one-time compilation in linux, which isn't really a big > deal. In Albufeira, Miguel worked out the way to do this on MacOS for Bertrand. > If I understood correctly, it was not as easy as in linux and that should > probably be written into a howto as well. Then it would certainly be nice to > centralize these instructions at some place (the famous wiki? a forum with a > dedicated "plugins" section?) so that they could be maintained up-to date with > user contributions for new setups, new versions, etc. What I propose is that those who are willing to work on the howto's also try to fix the installation script at least in those cases when they can make it work. I agree that this is not nice to program, since it might involve tests on both the OS and the version of Mathematica. However, I think that this is really how a novel user would expect things to behave. The real pain here is that Mathematica and Maple provide so called 'Open' interfaces which we are not allowed to link in to our software. So there is not much else that we can do than compile things on the fly. Best wishes, --Joris _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... https://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Mathematica PluginIt is possible to create an executable inside mathematica
http://reference.wolfram.com/mathematica/CCompilerDriver/ref/CreateExecutable.html this maybe helps with the process of building the plugin code. Instead of using a script, directly compile it inside mathematica. my 2c. max On 25 avr. 2012, at 13:08, Joris van der Hoeven wrote: > Dear Philippe, > > On Wed, Apr 25, 2012 at 09:32:05AM +0000, Philippe Joyez wrote: >> Sorry to disappoint you but I'm afraid that getting a working mathematica plugin >> "out of the box" for new users is not going to happen before the summer. However >> a user with some motivation and knowledge can make it to work. Let me explain >> why. >> >> What's broken is not Andrey's mathematica plugin code itself, it's the one-time >> script that runs the first time the user wants to connect to mathematica. That >> script *compiles* the plugin code, linking it to the actual mathlink library on >> the user's system and puts the resulting executable in the user's Texmacs >> directory. Since the time when Andrey wrote the script, there has been 3 major >> releases of Mathematica and the added support of MacOS and Windows in Texmacs, >> that all broke that installation script in various ways. >> >> Now, fixing the script so that texmacs would in all cases transparently connect >> to mathematica without any user intervention seems unlikely to happen for the >> simple reason that a compiler may not even be available on the user's machine. >> So manual installation of the (OS-dependent) toolchain would be necessary >> anyway. Furthermore the new script(s) would have to handle many OSes and many >> possible mathematica versions, which means someone should have access to all >> (OS-mathematica version) configurations... but who would that be? >> >> Presently I see no solution other than providing good how-tos on the >> compilation, or at best platform-specific scripts. What I posted last year in >> the users' list (http://comments.gmane.org/gmane.editors.texmacs.user/7409) is >> how to perform this one-time compilation in linux, which isn't really a big >> deal. In Albufeira, Miguel worked out the way to do this on MacOS for Bertrand. >> If I understood correctly, it was not as easy as in linux and that should >> probably be written into a howto as well. Then it would certainly be nice to >> centralize these instructions at some place (the famous wiki? a forum with a >> dedicated "plugins" section?) so that they could be maintained up-to date with >> user contributions for new setups, new versions, etc. > > What I propose is that those who are willing to work on the howto's > also try to fix the installation script at least in those cases when > they can make it work. > > I agree that this is not nice to program, since it might involve tests > on both the OS and the version of Mathematica. However, I think that > this is really how a novel user would expect things to behave. > > The real pain here is that Mathematica and Maple provide so called > 'Open' interfaces which we are not allowed to link in to our software. > So there is not much else that we can do than compile things on the fly. > > Best wishes, --Joris > > > _______________________________________________ > Texmacs-dev mailing list > Texmacs-dev@... > https://lists.gnu.org/mailman/listinfo/texmacs-dev _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... https://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Mathematica PluginGubinelli Massimiliano <m.gubinelli <at> gmail.com> writes:
> > It is possible to create an executable inside mathematica > > http://reference.wolfram.com/mathematica/CCompilerDriver/ref/CreateExecutable.ht m l > > this maybe helps with the process of building the plugin code. Instead of using a script, directly compile > it inside mathematica. > > my 2c. > > max > Wow! It seems all configured to work with texmacs already! From their documentation: "If an input file is given that has an extension of .tm, CreateExecutable will treat it as a MathLink template file and use mprep to process it." Isn't it neat? :) It's only for v >=8, and you still have to provide the compiler, but that's already nice. We should definitely look into that. Philippe _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... https://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Mathematica PluginThanks Max; that seems the right way to do things; if someone has time...
In the links there is more info about building mathlinked executables. On Wed, Apr 25, 2012 at 02:04:20PM +0200, Gubinelli Massimiliano wrote: > It is possible to create an executable inside mathematica > > http://reference.wolfram.com/mathematica/CCompilerDriver/ref/CreateExecutable.html > > this maybe helps with the process of building the plugin code. Instead of using a script, directly compile it inside mathematica. > > my 2c. > > max > > > > On 25 avr. 2012, at 13:08, Joris van der Hoeven wrote: > > > Dear Philippe, > > > > On Wed, Apr 25, 2012 at 09:32:05AM +0000, Philippe Joyez wrote: > >> Sorry to disappoint you but I'm afraid that getting a working mathematica plugin > >> "out of the box" for new users is not going to happen before the summer. However > >> a user with some motivation and knowledge can make it to work. Let me explain > >> why. > >> > >> What's broken is not Andrey's mathematica plugin code itself, it's the one-time > >> script that runs the first time the user wants to connect to mathematica. That > >> script *compiles* the plugin code, linking it to the actual mathlink library on > >> the user's system and puts the resulting executable in the user's Texmacs > >> directory. Since the time when Andrey wrote the script, there has been 3 major > >> releases of Mathematica and the added support of MacOS and Windows in Texmacs, > >> that all broke that installation script in various ways. > >> > >> Now, fixing the script so that texmacs would in all cases transparently connect > >> to mathematica without any user intervention seems unlikely to happen for the > >> simple reason that a compiler may not even be available on the user's machine. > >> So manual installation of the (OS-dependent) toolchain would be necessary > >> anyway. Furthermore the new script(s) would have to handle many OSes and many > >> possible mathematica versions, which means someone should have access to all > >> (OS-mathematica version) configurations... but who would that be? > >> > >> Presently I see no solution other than providing good how-tos on the > >> compilation, or at best platform-specific scripts. What I posted last year in > >> the users' list (http://comments.gmane.org/gmane.editors.texmacs.user/7409) is > >> how to perform this one-time compilation in linux, which isn't really a big > >> deal. In Albufeira, Miguel worked out the way to do this on MacOS for Bertrand. > >> If I understood correctly, it was not as easy as in linux and that should > >> probably be written into a howto as well. Then it would certainly be nice to > >> centralize these instructions at some place (the famous wiki? a forum with a > >> dedicated "plugins" section?) so that they could be maintained up-to date with > >> user contributions for new setups, new versions, etc. > > > > What I propose is that those who are willing to work on the howto's > > also try to fix the installation script at least in those cases when > > they can make it work. > > > > I agree that this is not nice to program, since it might involve tests > > on both the OS and the version of Mathematica. However, I think that > > this is really how a novel user would expect things to behave. > > > > The real pain here is that Mathematica and Maple provide so called > > 'Open' interfaces which we are not allowed to link in to our software. > > So there is not much else that we can do than compile things on the fly. > > > > Best wishes, --Joris > > > > > > _______________________________________________ > > Texmacs-dev mailing list > > Texmacs-dev@... > > https://lists.gnu.org/mailman/listinfo/texmacs-dev > > > _______________________________________________ > Texmacs-dev mailing list > Texmacs-dev@... > https://lists.gnu.org/mailman/listinfo/texmacs-dev _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... https://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Mathematica Pluginyes It is neat...
The advantage is that the compilation for using mathlink would be launched once from Mathematica ( in place of the script ). That would solve the problem of handling many OSes ? bertrand ---------------------------------- ------ Le 25.04.12 15:04, Philippe Joyez a écrit : > Gubinelli Massimiliano<m.gubinelli<at> gmail.com> writes: > >> It is possible to create an executable inside mathematica >> >> > http://reference.wolfram.com/mathematica/CCompilerDriver/ref/CreateExecutable.ht > m > l >> this maybe helps with the process of building the plugin code. Instead of > using > a script, directly compile >> it inside mathematica. >> >> my 2c. >> >> max >> > Wow! It seems all configured to work with texmacs already! From their > documentation: > > "If an input file is given that has an extension of .tm, CreateExecutable > will treat it as a MathLink template file and use mprep to process it." > > Isn't it neat? :) > > It's only for v>=8, and you still have to provide the compiler, but > that's already nice. We should definitely look into that. > > Philippe > > > _______________________________________________ > Texmacs-dev mailing list > Texmacs-dev@... > https://lists.gnu.org/mailman/listinfo/texmacs-dev > _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... https://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Mathematica PluginOn Wed, Apr 25, 2012 at 04:53:45PM +0200, B.Bratschi wrote:
> yes It is neat... > > The advantage is that the compilation for using mathlink would be > launched once from Mathematica ( in place of the script ). > That would solve the problem of handling many OSes ? Yes, it handles everything except versions < 8 and someone who does the implementation ;^) --Joris _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... https://lists.gnu.org/mailman/listinfo/texmacs-dev |
| Free embeddable forum powered by Nabble | Forum Help |