Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50ACC19FBE for ; Tue, 26 Apr 2016 02:50:07 +0000 (UTC) Received: (qmail 82577 invoked by uid 500); 26 Apr 2016 02:50:02 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 82461 invoked by uid 500); 26 Apr 2016 02:50:02 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 82449 invoked by uid 99); 26 Apr 2016 02:50:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2016 02:50:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 42082C3B61 for ; Tue, 26 Apr 2016 02:50:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id lm3s41miNEdR for ; Tue, 26 Apr 2016 02:49:58 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 772A05F60D for ; Tue, 26 Apr 2016 02:49:58 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id n10so698693obb.2 for ; Mon, 25 Apr 2016 19:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=07Mdv4gpKX4rf+jOTHDZmRIQ7Qgopb/q3oipuRvZ720=; b=hdzR32Bjb2fnXcDF+7+ZswHj1RIK0G+s+6oKPB8JentrehiUos/Aff3DigfkV0ghdf 4A5WsnHfnypqVAhuWSjvELXDavbyQ9Hw+WwB7SjM7j39kVk67xRhip0Z5BX+qkG1swCS gYHlX2rf5/H9CNb/0gzQ/CsoQkjTjZoRY1e2+RL2KZs0JRmBlnddwleo1nzJJluyyfLX BudEQb9VjgzU+va8Rk2MfT/6Nz0AX0gRw3Tz3fyFpWbS8X0sYDHStBna0I6FhdcbL4i7 eCi5wsAjOsib3AKLHFAbQwjXTfO23k6CwkR50ISUNqJLQvH6UpGFnahfjcViWb0Rcsw9 V/JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=07Mdv4gpKX4rf+jOTHDZmRIQ7Qgopb/q3oipuRvZ720=; b=huf1zvug3DefoleG1Ni9ImWHrLcp0r14t5xoyXxLOJIsgeattNIUURyP/MyasRQtkt l+6Domv1MMDFHc8k5OGvpCqbBpKtsF6YMmShO+cxns5ocoafCeHlBbZHGEGENKcVG5Bf gNXJ/1QW+etyx8pNoEdksNr6cbpWRDkY4p+EOMTVkNFPxNsh8D+HKdRkaNcaCi1TZyfn w6Eha9sZh6YevKVs4h59UZpzmDcTTPuz7Up2bJSF22+Ha/rw9jmME/TLD9hyKdgu4p4S rPDPejI5a22/9HIjDjqW6haSwcHHmxTXhCsZMg35P03pa8lbYDcmj6DoiJJTX8CMHd7S C5+g== X-Gm-Message-State: AOPr4FXBpZDaa7nxDACMXPqLPGrDQzRpm8WeY1ooqcLy6pYfFnggAQRSS1/i0q68dB0t1sx4Nb0JLtLupSih7A== MIME-Version: 1.0 X-Received: by 10.60.176.104 with SMTP id ch8mr48634oec.1.1461638992766; Mon, 25 Apr 2016 19:49:52 -0700 (PDT) Received: by 10.157.43.58 with HTTP; Mon, 25 Apr 2016 19:49:52 -0700 (PDT) Received: by 10.157.43.58 with HTTP; Mon, 25 Apr 2016 19:49:52 -0700 (PDT) In-Reply-To: References: <3E657120E422654A9EB626F537B8AA9114140284@shsmsx102.ccr.corp.intel.com> <3E657120E422654A9EB626F537B8AA91141410AA@shsmsx102.ccr.corp.intel.com> Date: Mon, 25 Apr 2016 19:49:52 -0700 Message-ID: Subject: Re: [CRYPTO] Switch from JNI to JNA From: Gary Gregory To: Commons Developers List Content-Type: multipart/alternative; boundary=089e01183138f42fe505315a58d4 --089e01183138f42fe505315a58d4 Content-Type: text/plain; charset=UTF-8 I like it. RERO! As we plan to have release sooner, marking release ALPHA tagged make sense IMO. Regards, Uma On 4/25/16, 7:02 PM, "sebb" wrote: >On 26 April 2016 at 02:56, Chen, Haifeng wrote: >>>> Sounds like a tough time schedule. It's only one week until May. >> Yeah, it's a tough time schedule. We will just try moving fast and see >>what we can reach at that time. Maybe it's not realistic in one week. > >It's expensive to change the public API once released. > >Given the timescale, maybe it would work to release an ALPHA version >on the understanding that the API may change incompatibly. > >> -----Original Message----- >> From: Benedikt Ritter [mailto:britter@apache.org] >> Sent: Tuesday, April 26, 2016 12:03 AM >> To: Commons Developers List >> Subject: Re: [CRYPTO] Switch from JNI to JNA >> >> Chen, Haifeng schrieb am Mo., 25. Apr. 2016 um >> 08:38 Uhr: >> >>> >> Maybe its an option to replace JNI by JNA [1]. This would have IHMO >>> several advantages like >>> >> * No C code needs to be written, compiled, tested and maintained >>> >> * Its easier compared to JNI (this could help attracting more >>> >> people to >>> contribute) >>> >> * Many supported platforms [2], precompiled native binaries >>> >> available >>> Agree on these advantages. >>> >>> >> Disadvantages: >>> >> * Introduce a dependency to JNA >>> >> * Performance decrease compared to JNI (direct buffers and direct >>> mapping helps minimizing this) [3] >>> The major concern will be on the performance. Because the major value >>> for Crypto is to utilize the performance optimization OpenSSL provided. >>> Need to have an evaluation on how much performance penalty will occur >>> when using JNA comparing JNI. >>> >>> The Spark community are eager to utilize this library. If we can have >>> the first release before May, there is a possibility to include it in >>>Spark 2.0. >>> >> >> Sounds like a tough time schedule. It's only one week until May. >> >> >>> Any idea to put JNA evaluation in the second release? >> >> >> Yes, why not. >> >> >>> >>> Thanks, >>> Haifeng >>> >>> -----Original Message----- >>> From: Hendrik Dev [mailto:hendrikdev22@gmail.com] >>> Sent: Saturday, April 23, 2016 6:43 PM >>> To: Commons Developers List >>> Subject: [CRYPTO] Switch from JNI to JNA >>> >>> Hi, >>> >>> i just had a brief look into commons crypto today. >>> Maybe its an option to replace JNI by JNA [1]. This would have IHMO >>> several advantages like >>> >>> * No C code needs to be written, compiled, tested and maintained >>> * Its easier compared to JNI (this could help attracting more people >>> to >>> contribute) >>> * Many supported platforms [2], precompiled native binaries available >>> >>> Disadvantages: >>> >>> * Introduce a dependency to JNA >>> * Performance decrease compared to JNI (direct buffers and direct >>> mapping helps minimizing this) [3] >>> >>> I prepared a demo [4] to show thats its generally working and how a >>> implementation could like (although tests are not working and error >>> handling is missing). >>> >>> [1] https://github.com/java-native-access/jna >>> [2] https://github.com/java-native-access/jna/tree/master/lib/native >>> [3] https://s.apache.org/q5Tl >>> [4] https://s.apache.org/DQeD >>> >>> Wdyt? >>> >>> Thanks >>> Hendrik >>> >>> -- >>> Hendrik Saly (salyh, hendrikdev22) >>> @hendrikdev22 >>> PGP: 0x22D7F6EC >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>> For additional commands, e-mail: dev-help@commons.apache.org >>> >>> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org --089e01183138f42fe505315a58d4--