🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #349

Re: mathematical/statistical routines in Java

#349
From: Dan Jacobs
Date: Tue, 26 Mar 1996 13:57
30 lines
1941 bytes
Thomas Andrews wrote:
> 
> In article <31546CE1.1C18@BlueSky.net>,
> Dan Jacobs  <djacobs@BlueSky.net> wrote:...
> >You don't need to rewrite them.  You can use Java native methods
> >as an interface to them.
> 
> Sure, if you don't want to make your code portable.
> 
> I can't imagine using Java to do serious number crunching unless
> you wanted to be portably, however...
> --
> Thomas Andrews           Email: thomaso@centerline.com
> CenterLine Software      WWW: http://draco.centerline.com:8080/~thomaso/

In general, such native methods are as portable as the libraries to
which they are interfaced.  If you're calling functions such as those
declared in any standard math.h for example, the most you might require
is a smattering of preprocessor directives in the "C" implementation of
the native method, just as you would with *any* "C" code that needed to
build and run on a variety of platforms.

Java doesn't make "C" portable, but if there libraries that support a
common API on a range of platforms, then using native methods to access
those libraries seems preferable IMHO to another, slower wheel.
-- 

Dan Jacobs                   email:    djacobs@BlueSky.net
Tech Tonic Netsystems        voice:    617-273-5825
Burlington, MA
Technical Details
Message-ID: <3157F7D7.AE2@BlueSky.net>
Path: arc1-ca.pugleaf.net!news.bluesky.net!usenet
References: <31514E36.4E5E@baan.nl> <31546CE1.1C18@BlueSky.net> <4j6hj8$93h@wcap.centerline.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.bluesky.net!usenet
From: Dan Jacobs <djacobs@BlueSky.net>
Newsgroups: comp.lang.java,sci.math,sci.math.num-analysis,comp.lang.fortran,comp.lang.c
Subject: Re: mathematical/statistical routines in Java
Date: Tue, 26 Mar 1996 08:57:43 -0500
Organization: Tech Tonic Netsystems
Distribution: inet
Message-ID: <3157F7D7.AE2@BlueSky.net>
References: <31514E36.4E5E@baan.nl> <31546CE1.1C18@BlueSky.net> <4j6hj8$93h@wcap.centerline.com>
NNTP-Posting-Host: bs11.bluesky.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (WinNT; I)
To: Thomas Andrews <thomaso@centerline.com>