Re: Getting an array into a C program through mathlink
- To: mathgroup at smc.vnet.net
- Subject: [mg130316] Re: Getting an array into a C program through mathlink
- From: John Fultz <jfultz at wolfram.com>
- Date: Tue, 2 Apr 2013 03:29:29 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <khsbap$35l$1@smc.vnet.net> <20130401050011.AD2D46AE5@smc.vnet.net>
That's an interesting observation, but I can't say it matches my own experience. I've found MathLink to be remarkably compatible across major version number changes of Mathematica, and to be generally robust. It is the only way the FE and the kernel communicate with each other (not to mention other lesser components of the system), and the nature of that connection is not simple; I would say it uses a majority of the features that MathLink has to offer. It's not clear to me exactly what you're referring to as "Wolfram problem reports". But I'd certainly be interested in knowing about any issues that you or anyone else may be experiencing with MathLink. John Fultz jfultz at wolfram.com User Interface Group Wolfram Research, Inc. On Apr 1, 2013, at 12:00 AM, debguy <johnandsara2 at cox.net> wrote: > my advice is to avoid mathlink because library issues cause > compatibility problems (see Wolfram problem reports). ie after or > without upgrade it's broken for someone trying to use. > > if you can accept fast but not fastest results I suggest this: > > to use "exec" in C to call math binary with piped commands (we're > talking text input output) and use Put to get what into a file (can > even be forked, run in background, doing it that way). then your > application reads file when done (fread is fast, maybe not fast as > direct read from mathlink). > > most tasks can be done without ever using C. doing some special > graphics or something? >
- References:
- Re: Getting an array into a C program through mathlink
- From: debguy <johnandsara2@cox.net>
- Re: Getting an array into a C program through mathlink