Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #3787 > unrolled thread
| Started by | "Qu0ll" <Qu0llSixFour@gmail.com> |
|---|---|
| First post | 2011-05-08 15:35 +1000 |
| Last post | 2011-05-09 08:54 -0600 |
| Articles | 20 on this page of 39 — 12 participants |
Back to article view | Back to comp.lang.java.programmer
JNA performance "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-05-08 15:35 +1000
Re: JNA performance Knute Johnson <nospam@knutejohnson.com> - 2011-05-07 22:48 -0700
Re: JNA performance "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-05-08 16:03 +1000
Re: JNA performance Knute Johnson <nospam@knutejohnson.com> - 2011-05-08 09:54 -0700
Re: JNA performance Steve Sobol <sjsobol@JustThe.net> - 2011-05-08 13:26 -0700
Re: JNA performance "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-05-09 08:44 +1000
Re: JNA performance Jeff Higgins <jeff@invalid.invalid> - 2011-05-08 21:17 -0400
Re: JNA performance Jeff Higgins <jeff@invalid.invalid> - 2011-05-08 21:20 -0400
Re: JNA performance Jeff Higgins <jeff@invalid.invalid> - 2011-05-08 21:24 -0400
Re: JNA performance "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-05-09 13:39 +1000
Re: JNA performance Steve Sobol <sjsobol@JustThe.net> - 2011-05-08 21:54 -0700
Re: JNA performance "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-05-09 15:47 +1000
Re: JNA performance Steve Sobol <sjsobol@JustThe.net> - 2011-05-08 23:26 -0700
Re: JNA performance "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-05-09 17:07 +1000
Re: JNA performance Steve Sobol <sjsobol@JustThe.net> - 2011-05-10 12:44 -0700
Re: JNA performance Tom Anderson <twic@urchin.earth.li> - 2011-05-09 18:21 +0100
Re: JNA performance Steve Sobol <sjsobol@JustThe.net> - 2011-05-09 13:05 -0700
Re: JNA performance Tom Anderson <twic@urchin.earth.li> - 2011-05-09 21:09 +0100
Re: JNA performance Steve Sobol <sjsobol@JustThe.net> - 2011-05-09 17:58 -0700
Re: JNA performance Roedy Green <see_website@mindprod.com.invalid> - 2011-05-07 23:25 -0700
Re: JNA performance "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-05-08 16:32 +1000
Re: JNA performance Steve Sobol <sjsobol@JustThe.net> - 2011-05-08 13:27 -0700
Re: JNA performance Lew <noone@lewscanon.com> - 2011-05-08 07:58 -0400
Re: JNA performance Roedy Green <see_website@mindprod.com.invalid> - 2011-05-08 19:17 -0700
Re: JNA performance Lew <noone@lewscanon.com> - 2011-05-09 08:36 -0400
Re: JNA performance Roedy Green <see_website@mindprod.com.invalid> - 2011-05-09 06:34 -0700
Re: JNA performance Lew <noone@lewscanon.com> - 2011-05-09 09:57 -0400
O/T: Tag lines, or sigs (Was: JNA performance) Lew <noone@lewscanon.com> - 2011-05-08 08:02 -0400
Re: O/T: Tag lines, or sigs (Was: JNA performance) Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-05-08 11:24 -0300
Re: O/T: Tag lines, or sigs (Was: JNA performance) Lew <noone@lewscanon.com> - 2011-05-08 12:35 -0400
Re: O/T: Tag lines, or sigs (Was: JNA performance) Knute Johnson <nospam@knutejohnson.com> - 2011-05-08 09:54 -0700
Re: Tag lines, or sigs (Was: JNA performance) "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-05-09 03:37 +1000
Re: O/T: Tag lines, or sigs (Was: JNA performance) Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-09 15:50 +1200
Re: O/T: Tag lines, or sigs (Was: JNA performance) Lew <noone@lewscanon.com> - 2011-05-09 08:36 -0400
Re: O/T: Tag lines, or sigs (Was: JNA performance) "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-05-09 03:37 +1000
Re: O/T: Tag lines, or sigs (Was: JNA performance) Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-08 19:55 +0200
Re: O/T: Tag lines, or sigs (Was: JNA performance) Martin Gregorie <martin@address-in-sig.invalid> - 2011-05-08 19:30 +0000
Re: O/T: Tag lines, or sigs (Was: JNA performance) Steve Sobol <sjsobol@JustThe.net> - 2011-05-08 13:28 -0700
Re: JNA performance Jim Janney <jjanney@shell.xmission.com> - 2011-05-09 08:54 -0600
Page 1 of 2 [1] 2 Next page →
| From | "Qu0ll" <Qu0llSixFour@gmail.com> |
|---|---|
| Date | 2011-05-08 15:35 +1000 |
| Subject | JNA performance |
| Message-ID | <tqmdnUiqqro_tlvQnZ2dnUVZ_tmdnZ2d@westnet.com.au> |
I am about to do some Java programming involving native libraries so can anyone comment on their experiences with the performance of JNA? I note the following (somewhat concerning) statement from the JNA website: "While some attention is paid to performance, correctness and ease of use take priority." I guess there's little point in using it if it sucks performance-wise even if it is "easy to use"! I have never used JNI either but it looks not so "easy to use" (i.e. requires some C programming). And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
[toc] | [next] | [standalone]
| From | Knute Johnson <nospam@knutejohnson.com> |
|---|---|
| Date | 2011-05-07 22:48 -0700 |
| Message-ID | <t8qxp.16483$_P6.1037@newsfe05.iad> |
| In reply to | #3787 |
On 05/07/2011 10:35 PM, Qu0ll wrote: > I am about to do some Java programming involving native libraries so can > anyone comment on their experiences with the performance of JNA? I note > the following (somewhat concerning) statement from the JNA website: > > "While some attention is paid to performance, correctness and ease of > use take priority." > > I guess there's little point in using it if it sucks performance-wise > even if it is "easy to use"! I have never used JNI either but it looks > not so "easy to use" (i.e. requires some C programming). > > And loving it, > > -Qu0ll (Rare, not extinct) I've not used JNA, JNI a little and a long time ago. JNA looks easier to use. Just curious what you are going to use the JNA for? Thanks, -- Knute Johnson s/knute/nospam/
[toc] | [prev] | [next] | [standalone]
| From | "Qu0ll" <Qu0llSixFour@gmail.com> |
|---|---|
| Date | 2011-05-08 16:03 +1000 |
| Message-ID | <95adncOiLJ3Er1vQnZ2dnUVZ_sudnZ2d@westnet.com.au> |
| In reply to | #3789 |
"Knute Johnson" wrote in message news:t8qxp.16483$_P6.1037@newsfe05.iad... <snip> > I've not used JNA, JNI a little and a long time ago. JNA looks easier to > use. > > Just curious what you are going to use the JNA for? I am going to use it to access a native font rendering engine such as FreeType for use in an OpenGL (JOGL or LWJGL) application. And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
[toc] | [prev] | [next] | [standalone]
| From | Knute Johnson <nospam@knutejohnson.com> |
|---|---|
| Date | 2011-05-08 09:54 -0700 |
| Message-ID | <tVzxp.28305$vC5.15383@newsfe01.iad> |
| In reply to | #3790 |
On 05/07/2011 11:03 PM, Qu0ll wrote: > "Knute Johnson" wrote in message news:t8qxp.16483$_P6.1037@newsfe05.iad... > > <snip> > >> I've not used JNA, JNI a little and a long time ago. JNA looks easier >> to use. >> >> Just curious what you are going to use the JNA for? > > I am going to use it to access a native font rendering engine such as > FreeType for use in an OpenGL (JOGL or LWJGL) application. > > And loving it, > > -Qu0ll (Rare, not extinct) > _________________________________________________ > Qu0llSixFour@gmail.com > [Replace the "SixFour" with numbers to email me] Thanks. -- Knute Johnson s/knute/nospam/
[toc] | [prev] | [next] | [standalone]
| From | Steve Sobol <sjsobol@JustThe.net> |
|---|---|
| Date | 2011-05-08 13:26 -0700 |
| Message-ID | <MPG.28309c4e432cd5be989735@news.justthe.net> |
| In reply to | #3789 |
In article <t8qxp.16483$_P6.1037@newsfe05.iad>, Knute Johnson says... > I've not used JNA, JNI a little and a long time ago. JNA looks easier > to use. JNA is *unquestionably* easier to use. I've used both. Now I only use JNI's Invocation Interface on projects where I need to attach a JVM to a native thread. If I need to call a native library, I use JNA. -- Steve Sobol - Programming/WebDev/IT Support sjsobol@JustThe.net
[toc] | [prev] | [next] | [standalone]
| From | "Qu0ll" <Qu0llSixFour@gmail.com> |
|---|---|
| Date | 2011-05-09 08:44 +1000 |
| Message-ID | <foidnSco_dBNgVrQnZ2dnUVZ_jCdnZ2d@westnet.com.au> |
| In reply to | #3825 |
"Steve Sobol" wrote in message news:MPG.28309c4e432cd5be989735@news.justthe.net... > JNA is *unquestionably* easier to use. I've used both. Now I only use > JNI's Invocation Interface on projects where I need to attach a JVM to a > native thread. > > If I need to call a native library, I use JNA. Great, you wouldn't happen to know how to do download it would you? The website appears to be broken wrt downloads. I'd report it on their mailing list except that link is err... broken. -- And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2011-05-08 21:17 -0400 |
| Message-ID | <iq7f7f$jvf$1@dont-email.me> |
| In reply to | #3829 |
On 05/08/2011 06:44 PM, Qu0ll wrote: > > Great, you wouldn't happen to know how to do download it would you? The > website appears to be broken wrt downloads. I'd report it on their > mailing list except that link is err... broken. > svn co https://svn.java.net/svn/jna~svn/trunk
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2011-05-08 21:20 -0400 |
| Message-ID | <iq7fco$jvf$2@dont-email.me> |
| In reply to | #3829 |
On 05/08/2011 06:44 PM, Qu0ll wrote: > > Great, you wouldn't happen to know how to do download it would you? The > website appears to be broken wrt downloads. I'd report it on their > mailing list except that link is err... broken. > svn co https://svn.java.net/svn/jna~svn/trunk
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2011-05-08 21:24 -0400 |
| Message-ID | <iq7fl6$9d6$1@dont-email.me> |
| In reply to | #3832 |
On 05/08/2011 09:20 PM, Jeff Higgins wrote: > On 05/08/2011 06:44 PM, Qu0ll wrote: >> >> Great, you wouldn't happen to know how to do download it would you? The >> website appears to be broken wrt downloads. I'd report it on their >> mailing list except that link is err... broken. >> > > svn co https://svn.java.net/svn/jna~svn/trunk > > > Oops. svn co https://svn.java.net/svn/jna~svn/trunk/jnalib
[toc] | [prev] | [next] | [standalone]
| From | "Qu0ll" <Qu0llSixFour@gmail.com> |
|---|---|
| Date | 2011-05-09 13:39 +1000 |
| Message-ID | <DbSdnR0rofql_1rQnZ2dnUVZ_hKdnZ2d@westnet.com.au> |
| In reply to | #3833 |
"Jeff Higgins" wrote in message news:iq7fl6$9d6$1@dont-email.me... > Oops. svn co https://svn.java.net/svn/jna~svn/trunk/jnalib Cool, thanks. -- And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
[toc] | [prev] | [next] | [standalone]
| From | Steve Sobol <sjsobol@JustThe.net> |
|---|---|
| Date | 2011-05-08 21:54 -0700 |
| Message-ID | <MPG.283113662e01227f989739@news.justthe.net> |
| In reply to | #3837 |
In article <DbSdnR0rofql_1rQnZ2dnUVZ_hKdnZ2d@westnet.com.au>, Qu0ll says... > > "Jeff Higgins" wrote in message news:iq7fl6$9d6$1@dont-email.me... > > > Oops. svn co https://svn.java.net/svn/jna~svn/trunk/jnalib > > Cool, thanks. I need to see if I can dig up an email address for the maintainer. Looks like the site may not have survived the Great Java.net Migration. -- Steve Sobol - Programming/WebDev/IT Support sjsobol@JustThe.net
[toc] | [prev] | [next] | [standalone]
| From | "Qu0ll" <Qu0llSixFour@gmail.com> |
|---|---|
| Date | 2011-05-09 15:47 +1000 |
| Message-ID | <Ma-dneZ5ANCTHVrQnZ2dnUVZ_qKdnZ2d@westnet.com.au> |
| In reply to | #3840 |
"Steve Sobol" wrote in message news:MPG.283113662e01227f989739@news.justthe.net... > I need to see if I can dig up an email address for the maintainer. Looks > like the site may not have survived the Great Java.net Migration. That would be nice! I tried to email the maintainer using their java.net ID which translated to todd.fast@sun.com which is broken. -- And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
[toc] | [prev] | [next] | [standalone]
| From | Steve Sobol <sjsobol@JustThe.net> |
|---|---|
| Date | 2011-05-08 23:26 -0700 |
| Message-ID | <MPG.283128ebd5b03f0698973a@news.justthe.net> |
| In reply to | #3842 |
In article <Ma-dneZ5ANCTHVrQnZ2dnUVZ_qKdnZ2d@westnet.com.au>, Qu0ll says... > > "Steve Sobol" wrote in message > news:MPG.283113662e01227f989739@news.justthe.net... > > > I need to see if I can dig up an email address for the maintainer. Looks > > like the site may not have survived the Great Java.net Migration. > > That would be nice! I tried to email the maintainer using their java.net ID > which translated to todd.fast@sun.com which is broken. mmm? I don't remember the name of the maintainer, but that's not it. Anyhow, I used the "feedback" link to report the problem; hopefully it will be fixed soon. And FYI, you don't use JNA for performance reasons; it's a shim on top of JNI. You use it because it's much easier and cleaner than using plain JNI. :) -- Steve Sobol - Programming/WebDev/IT Support sjsobol@JustThe.net
[toc] | [prev] | [next] | [standalone]
| From | "Qu0ll" <Qu0llSixFour@gmail.com> |
|---|---|
| Date | 2011-05-09 17:07 +1000 |
| Message-ID | <Z9ednQ0Iwew1D1rQnZ2dnUVZ_tOdnZ2d@westnet.com.au> |
| In reply to | #3843 |
"Steve Sobol" wrote in message news:MPG.283128ebd5b03f0698973a@news.justthe.net... > mmm? I don't remember the name of the maintainer, but that's not it. > Anyhow, I used the "feedback" link to report the problem; hopefully it > will be fixed soon. Thanks for that. > And FYI, you don't use JNA for performance reasons; it's a shim on top > of JNI. You use it because it's much easier and cleaner than using plain > JNI. :) Yes, I realise that. My point was that I hope convenience doesn't come at the cost of reasonable performance. -- And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
[toc] | [prev] | [next] | [standalone]
| From | Steve Sobol <sjsobol@JustThe.net> |
|---|---|
| Date | 2011-05-10 12:44 -0700 |
| Message-ID | <MPG.283335675be275f898973d@news.justthe.net> |
| In reply to | #3840 |
In article <MPG.283113662e01227f989739@news.justthe.net>, Steve Sobol says... > > In article <DbSdnR0rofql_1rQnZ2dnUVZ_hKdnZ2d@westnet.com.au>, Qu0ll > says... > > > > "Jeff Higgins" wrote in message news:iq7fl6$9d6$1@dont-email.me... > > > > > Oops. svn co https://svn.java.net/svn/jna~svn/trunk/jnalib > > > > Cool, thanks. > > I need to see if I can dig up an email address for the maintainer. Looks > like the site may not have survived the Great Java.net Migration. I have been informed, by someone at java.net, that the JNA downloads can be found at http://java.net/downloads/jna/ - of course, that isn't where the link goes, so I also asked when they are going to fix the link. Have not received a response to that question... yet. -- Steve Sobol - Programming/WebDev/IT Support sjsobol@JustThe.net
[toc] | [prev] | [next] | [standalone]
| From | Tom Anderson <twic@urchin.earth.li> |
|---|---|
| Date | 2011-05-09 18:21 +0100 |
| Message-ID | <alpine.DEB.2.00.1105091821220.18864@urchin.earth.li> |
| In reply to | #3829 |
On Mon, 9 May 2011, Qu0ll wrote: > "Steve Sobol" wrote in message > news:MPG.28309c4e432cd5be989735@news.justthe.net... > >> JNA is *unquestionably* easier to use. I've used both. Now I only use >> JNI's Invocation Interface on projects where I need to attach a JVM to >> a native thread. >> >> If I need to call a native library, I use JNA. > > Great, you wouldn't happen to know how to do download it would you? sudo yum install jna What? tom -- It is a formal cultural policy to show unreasonable bias towards any woman who is both attractive and weird.
[toc] | [prev] | [next] | [standalone]
| From | Steve Sobol <sjsobol@JustThe.net> |
|---|---|
| Date | 2011-05-09 13:05 -0700 |
| Message-ID | <MPG.2831e90044316c1d98973b@news.justthe.net> |
| In reply to | #3865 |
In article <alpine.DEB.2.00.1105091821220.18864@urchin.earth.li>, Tom Anderson says... > > Great, you wouldn't happen to know how to do download it would you? > > sudo yum install jna Great. Let me try that on my Windows laptop. Does an RPM package even exists for JNA? > What? Indeed. -- Steve Sobol - Programming/WebDev/IT Support sjsobol@JustThe.net
[toc] | [prev] | [next] | [standalone]
| From | Tom Anderson <twic@urchin.earth.li> |
|---|---|
| Date | 2011-05-09 21:09 +0100 |
| Message-ID | <alpine.DEB.2.00.1105092107070.24657@urchin.earth.li> |
| In reply to | #3872 |
On Mon, 9 May 2011, Steve Sobol wrote: > In article <alpine.DEB.2.00.1105091821220.18864@urchin.earth.li>, Tom > Anderson says... > >>> Great, you wouldn't happen to know how to do download it would you? >> >> sudo yum install jna > > Great. Let me try that on my Windows laptop. Oh, well if you have Windows, there's a certain other piece of software you'll need to install first :). > Does an RPM package even exists for JNA? Yes, and it's called jna! There's an impressive range of Java stuff in the Fedora repositories; given that the Java world tends to have its own ways of doing dependency management (whether Maven or just shipping zips of jars), i find this a little surprising, but it's certainly convenient. tom -- So the moon is approximately 24 toasters from Scunthorpe.
[toc] | [prev] | [next] | [standalone]
| From | Steve Sobol <sjsobol@JustThe.net> |
|---|---|
| Date | 2011-05-09 17:58 -0700 |
| Message-ID | <MPG.28322da530920e398973c@news.justthe.net> |
| In reply to | #3873 |
In article <alpine.DEB.2.00.1105092107070.24657@urchin.earth.li>, Tom Anderson says... > >> sudo yum install jna > > > > Great. Let me try that on my Windows laptop. > > Oh, well if you have Windows, there's a certain other piece of software > you'll need to install first :). > > > Does an RPM package even exists for JNA? > > Yes, and it's called jna! Well, that's impressive! :) > There's an impressive range of Java stuff in the > Fedora repositories; given that the Java world tends to have its own ways > of doing dependency management (whether Maven or just shipping zips of > jars), i find this a little surprising, but it's certainly convenient. Maven manages build dependencies, more than runtime dependencies, IMHO, but I do agree with your statement (in general). -- Steve Sobol - Programming/WebDev/IT Support sjsobol@JustThe.net
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2011-05-07 23:25 -0700 |
| Message-ID | <qmdcs6hrgicldcrr8sa3irkr3n1me4vaon@4ax.com> |
| In reply to | #3787 |
On Sun, 8 May 2011 15:35:08 +1000, "Qu0ll" <Qu0llSixFour@gmail.com> wrote, quoted or indirectly quoted someone who said : >I am about to do some Java programming involving native libraries so can >anyone comment on their experiences with the performance of JNA? I note the >following (somewhat concerning) statement from the JNA website: I presume you mean JNI not JNA. The problem with JNI is the overhead of calling a JNI method is very high. What you save by writing machine code or C you lose by the extra overhead of the call. You have to do a fair chunk of work on the C side to make it pay. Most often it is used to tie into a well-written legacy library. See http://mindprod.com/jgloss/jni.html -- Roedy Green Canadian Mind Products http://mindprod.com How long did it take after the car was invented before owners understood cars would not work unless you regularly changed the oil and the tires? We have gone 33 years and still it is rare to uncover a user who understands computers don't work without regular backups.
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.java.programmer
csiph-web