Received: from femail30.sdc1.sfba.home.com (femail30.sdc1.sfba.home.com [24.254.60.20]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7R0KKf13305 for ; Sun, 26 Aug 2001 20:20:21 -0400 (EDT) (envelope-from knight@phunc.com) Received: from ntoa ([24.14.148.62]) by femail30.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010827002017.IZHE18117.femail30.sdc1.sfba.home.com@ntoa>; Sun, 26 Aug 2001 17:20:17 -0700 From: "Alex Knight" To: "Dr. Evil" , Subject: RE: PL/java? Date: Sun, 26 Aug 2001 17:22:38 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-reply-to: <20010826235135.29159.qmail@sidereal.kz> X-Archive-Number: 200108/865 X-Sequence-Number: 14270 I agree that there could be quite a few circumstances where you would want to utilize the class libraries. I'm doing a lot of PKI myself, and I could see how painful it would be to waste time trying in C, when Java _does_ really offer a lot. -Kevin -----Original Message----- From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org]On Behalf Of Dr. Evil Sent: Sunday, August 26, 2001 4:52 PM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] PL/java? > You make a good point about Java not being "portable" (the JVM not > being fully portable anyways). That could certainly be enough reason > to not benefit the PostgreSQL community as a whole. It _is_ a shame > that Java 2 hasn't made it over to other platforms yet. It will make it to the other platforms eventually, I hope. It's a shame that Sun's "write once, compile once, run everywhere" promise is just marketing to some extent. > Although, I haven't thought about it much, but I'm not sure I see > any advantages of using Java over PG/plsql. Other than streamlining > _some_ development since developers in a Java shop would know Java, > I don't see any language-specific advantages. pl/pgsql is a great language, I agree. However, java has some tremendous advantages. The big one is its classes. I needed to do some DES encryption within the PG database. Well, there's no DES function in PG, or in pl/pgsql, so I had to write it as a C function and then link it in. Sure, that works, but the point is, if we had pl/java, I would just call java.security.encryption.des() (or whatever it is) and it would be there. Right now I need to do some public key stuff. I could try to link that all in in C, but that would be a huge pain. The java standard classes do just about everything. pl/pgsql will never come close to that. Also, java is object oriented and more convenient for writing larger things. ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html