Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jldgs-00048s-0K for pljava-dev@arkaria.postgresql.org; Wed, 17 Jun 2020 19:25:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jldgp-00016x-Bz for pljava-dev@arkaria.postgresql.org; Wed, 17 Jun 2020 19:25:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jldgo-00016q-S6 for pljava-dev@lists.postgresql.org; Wed, 17 Jun 2020 19:25:39 +0000 Received: from anastigmatix.net ([68.171.219.55]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jldgm-0005xO-Mw for pljava-dev@lists.postgresql.org; Wed, 17 Jun 2020 19:25:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:Cc:References:To:Subject:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ht7PYNWaD1cKmC4H/sF6hRN3dhEx09SJBd2IjRioqPI=; b=EdXAyiGQ/Lp5wQ9xv9QEvaNNrR fI0wr0K20y0WTjv/N0qtKGbcQVcu7IcZgRiA9fFm5xD1s8AgzIjjc1cj5HKVp1NZf0EDY9PGtU1Ps Vn8hm9Smw5G50dSx6JyMX8RsHvj50QrnuMnKqkvCGMFJS9vLhn0i6UPwr1387zhcQ5ZLn1Zl64ZDy 1TNYemVCaEKhncXOlrluh7UhX4VwKWwXR2QOEcKhcesQ6qQNZVUC53l4hNR7ZZmWMM23w0cIbHUa0 ToB5UlRdqqDGaWSZrETn7JfUCjEQMu2YAJ5fTfP1Ab/nnpf2oQ0MmJkCMgE8Qls77fFZIbbxmErlm 1ML/diVA==; Received: from [184.19.31.139] (port=34044) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jldgj-000krx-Dx; Wed, 17 Jun 2020 15:25:33 -0400 From: Chapman Flack Subject: Re: Nashorn JavaScript removal coming in Java 15 To: Kartik Ohri References: <5EC17E17.7070002@anastigmatix.net> <5ED15825.9060504@anastigmatix.net> <5ED270BA.9010001@anastigmatix.net> <5ED3D488.1010401@anastigmatix.net> <5ED474CA.3000106@anastigmatix.net> <5ED4EA10.4030801@anastigmatix.net> <5ED7E74B.9020800@anastigmatix.net> <5EDA576E.2000204@anastigmatix.net> <5EDBA5D9.8090506@anastigmatix.net> <5EE7AE8C.2040201@anastigmatix.net> Cc: pljava-dev@lists.postgresql.org Message-ID: <5EEA6E2C.5030004@anastigmatix.net> Date: Wed, 17 Jun 2020 15:25:32 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-94.5 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/17/20 14:36, Kartik Ohri wrote: > Also, I saw that pljava was failing on Java 15 early builds. Doing some > digging, I found Nashorn Engine is proposed to be removed from Java 15. So, > I think it might be the probable cause. Good catch. So it's gone in 15, eh? I was hoping it might be around a little longer. That means it'll be time to add a profile with build-time dependencies on org.graalvm.js:js and org.graalvm.js:js-scriptengine. That ought to handle the uses of JS in the build itself (modulo whatever Nashorn -> GraalJS compatibility kinks we discover). I see no reason to also depend on the Graal compiler as described in [1]; what JS is being used for in the build doesn't require speed, so we can keep it simple. That will leave the problem of the snippets of JS in the self-installer jar. I really want that jar to Just Work when run on anybody's Java runtime, without making them download other stuff first. Copying/shading js.jar and js-scriptengine.jar into it might work, modulo licensing issues, but it would grow what's now about a 1 MB jar to 16 MB. Ouch! Probably time to work on the self-installer Java code and just build in the work that is currently done in the included JS. That makes it less transparent and configurable, but it hasn't needed to change much in several years so it's probably ok. I wonder if there is some very small, BSD-licensed javax.script engine for some other language that would work. Regards, -Chap