Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5Kag-0002zY-Tt for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 21:09:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z5Kaf-00054T-WC for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 21:09:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z5Kaf-00054N-85 for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 21:09:45 +0000 Received: from smtprelay03.ispgateway.de ([80.67.31.37]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z5Kac-0000rD-3c for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 21:09:43 +0000 Received: from [88.66.14.101] (helo=Zauselmaus) by smtprelay03.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1Z5KZw-0000C6-TQ for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 23:09:01 +0200 From: "Markus KARG" To: "'List'" References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <005101d0a86a$f18ffe90$d4affbb0$@eu> <60b20bb834cf54db8232239b9c27fcc2@imap.procolix.com> <55819204.6030308@ttc-cmc.net> <55819CF9.10205@ttc-cmc.net> In-Reply-To: Subject: Re: Pre-processing during build Date: Wed, 17 Jun 2015 23:09:47 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <009201d0a941$f15ebab0$d41c3010$@eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0093_01D0A952.B4E78AB0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdCpPltihRiK7GEPTJWN4wbN31em4gAAzg9w Content-Language: de X-AVK-Virus-Check: AVA 25.1869;71FD75 X-AVK-Spam-Check: 2; str=0001.0A0C0203.5581E213.01D8,ss=2,re=0.000,recu=0.000,reip=0.000,cl=2,cld=1,fgs=0; F1206 X-Df-Sender: bWFya3VzQGhlYWRjcmFzaGluZy5ldQ== X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multi-part message in MIME format. ------=_NextPart_000_0093_01D0A952.B4E78AB0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Stephen, =20 don't fear the complexity, it will soon be shown that it is pretty = simple once everybody understood that = https://gist.github.com/mkarg/88a89ae0dbffcfb7543e solves most of the = fear and that proxies will select the right JDBC level. In the end, the = solution will be dead simple and rock solid, I hope. Let's just finish = the discussion. =20 I do not see that an annotation processor will improve anything here, = and the code change actually is not massive at all, but a necessity to = come to a feasible design. =20 -Markus =20 From: pgsql-jdbc-owner@postgresql.org = [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Stephen Nelson Sent: Mittwoch, 17. Juni 2015 22:43 To: PostgreSQL JDBC Subject: Re: [JDBC] Pre-processing during build =20 The discussion has veered off topic somewhat with the discussion of = build systems and their respective qualities. My pull request is proposing to change build system from Ant to Maven. = All existing functionality in the Ant build has been/will be replicated = in the Maven build - including the pre-processing step. There are many = advantages to using Maven as opposed to Ant. However, this is orthogonal = to the discussion I'd like to have about the pre-processing used during = the build process. Focusing on the aim of the current pre-processing step - which is to = select the appropriate spec implementation at compile time. The options = seem quite complicated to me as a relative novice in the finer points of = the language spec. Taking a step back, could this not be achieved using annotations and a = custom annotation processor to emit some code to select the correct = implementation of the spec? This seems more Java-like and not a massive = change from the existing code. ------=_NextPart_000_0093_01D0A952.B4E78AB0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Stephen,

 

don't fear the complexity, it will soon be shown that it is pretty = simple once everybody understood that https://gist.= github.com/mkarg/88a89ae0dbffcfb7543e solves most of the fear and = that proxies will select the right JDBC level. In the end, the solution = will be dead simple and rock solid, I hope. Let's just finish the = discussion.

 

I do not see that an annotation processor will improve anything here, = and the code change actually is not massive at all, but a necessity to = come to a feasible design.

 

-Markus

 

From:= = pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] = On Behalf Of Stephen Nelson
Sent: Mittwoch, 17. Juni = 2015 22:43
To: PostgreSQL JDBC
Subject: Re: [JDBC] = Pre-processing during build

 

The discussion has veered off = topic somewhat with the discussion of build systems and their respective = qualities.

My pull request is proposing to change build = system from Ant to Maven. All existing functionality in the Ant build = has been/will be replicated in the Maven build - including the = pre-processing step. There are many advantages to using Maven as opposed = to Ant. However, this is orthogonal to the discussion I'd like to have = about the pre-processing used during the build = process.

Focusing on the aim of the current = pre-processing step - which is to select the appropriate spec = implementation at compile time. The options seem quite complicated to me = as a relative novice in the finer points of the language = spec.

Taking a step back, could this not be achieved = using annotations and a custom annotation processor to emit some code to = select the correct implementation of the spec? This seems more Java-like = and not a massive change from the existing = code.

------=_NextPart_000_0093_01D0A952.B4E78AB0--