Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffBsT-0007IV-MD for pgsql-general@arkaria.postgresql.org; Mon, 16 Jul 2018 22:21:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ffBsR-0003CE-NG for pgsql-general@arkaria.postgresql.org; Mon, 16 Jul 2018 22:21:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffBsR-0003C7-9T for pgsql-general@lists.postgresql.org; Mon, 16 Jul 2018 22:21:55 +0000 Received: from mail-pl0-x235.google.com ([2607:f8b0:400e:c01::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ffBsO-0003Up-Mj for pgsql-general@postgresql.org; Mon, 16 Jul 2018 22:21:54 +0000 Received: by mail-pl0-x235.google.com with SMTP id e11-v6so2909425plb.3 for ; Mon, 16 Jul 2018 15:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=CKi/MOpKJS3tjEPhN2iofVlZF9jl7KyRri/EVdJI01A=; b=oUrDqt8xKY3p+7D1BP98wpe24vmOCiX1TPSnxjPJpBGPDxFkVIPEkvz4ERp2e+lp50 kl/foM65fmAA3wvHeqHo3x/aDsmrr7ZAzOnmI2jl5pb04SnYTzve9wxXeg0yFcsCNtwy KK+/EZn+/3nifYke484j4nLcIEvNYHzObUcmXUpNci209GNGZilhbNJuDZPDoiWDzKVs KkvLz5sWYhSsyXDHIwWTkygsCV19GMfYwZLQTnVcyAAVVG4I9H0L9tVkccKY8yOKt+hw n2V4xReV7HgjKsHvtelw1wUrQcldOoysPau6nC+eLYXXvBeaMKfL6KZi9NF7qd99IG9z E1Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=CKi/MOpKJS3tjEPhN2iofVlZF9jl7KyRri/EVdJI01A=; b=syoqDoAOOn82ORmwodYbWFFIj7agVv8PRAVywkBNmrtASgSsxyc3461b8+XftJ3Pa2 jBKNdDRdv/c9Zsbc0XoqfV8AqIUvtuE3J2DsK8k+4BIffvg0fLphnerkWXKuQHfCn2pR lMPxc5vzgp3QSHH8aN6SHjz+b49j0RjGubvx0rKedteK9eqPnioWX2lHr9GHV5XXGesu 5ixcpJHBPssemeoOo/6QQLpV2rDKDO2ml3vCN0TS5VZ8mRu4nN2iXsCoPd5BRXPi+lH8 pCTnpF08BFK4mWqhMdnVj6mkvgDpo80f4EI0TTi+JJiRFpGUP5sBtQv72JOMEM3ZtM5k gOTQ== X-Gm-Message-State: AOUpUlGkc9dYEtlorYmlIfyBwDCy+XHVq2lHgdLWZ5Q8xU0tZiWB9Dpc xRJF4lj+10L1WP3UvCNcX8C0X2HV X-Google-Smtp-Source: AAOMgpcGJiS/c5fE9avij0UNv1MpFNp0oi4neCPO5cjlLJDKkMSZh7BqqlZNNEms2w6XUsbt5hHREA== X-Received: by 2002:a17:902:1a9:: with SMTP id b38-v6mr18019859plb.89.1531779710791; Mon, 16 Jul 2018 15:21:50 -0700 (PDT) Received: from tim-desktop (2001-44b8-31f2-bb00-808d-9050-eb5d-6e34.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:808d:9050:eb5d:6e34]) by smtp.gmail.com with ESMTPSA id a11-v6sm59135854pfl.66.2018.07.16.15.21.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 15:21:50 -0700 (PDT) References: <874lh0qh8g.fsf@gmail.com> User-agent: mu4e 0.9.18; emacs 26.1 From: Tim Cross To: Dmitry Igrishin Cc: cjgunzel@gmail.com, pgsql-general@postgresql.org Subject: Re: Do we need yet another IDE (SQL development assistant) for PostgreSQL? In-reply-to: Date: Tue, 17 Jul 2018 08:21:46 +1000 Message-ID: <87601e4y9x.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Dmitry Igrishin writes: > =D0=BF=D0=BD, 16 =D0=B8=D1=8E=D0=BB. 2018 =D0=B3. =D0=B2 1:14, Tim Cross = : > >> >> Your idea to make it integrate with user's preferred editor is a good >> idea as editors are like opinions and certain anatomical parts - >> everyone has one! Finding an appropriate API to do this will be a >> challenge. >> > I see two options here: the core of the tool acts as a long-lived server = or > as a short-lived > console application which communicates with the editor's plugin via > stdin/stdout. > Btw, what the text editor do you prefer? :-) > Most of the time, I use Emacs on either Linux or macOS. With the support it has for running a psql process, it works pretty well for most things. There are pretty reasonable packages for writing SQL and 'static' completion. Getting things setup can take a bit of effort, but once it is working, it tends to work pretty well. The two areas where it lacks are dynamic completion i.e. completing on objects the user has created such as table names and column names/function names etc. and decent result formatting.=20 >> >> I seem to remember reading somewhere that Oracle was going to remove >> swing from the core java library. I've always been a little disappointed >> with Java UIs and found they don't give the cross-platform support that >> Java originally promised, plus OSX/macOS has not made Java as welcome as >> it use to be. If you do choose Java, it will need to work under openJDK >> as this is what most Linux users will have installed. >> > For now, the possible options for the GUI part are Qt, wxWidgets or FLTK, > or even Electron. I would look at either Qt or even Electron (I believe visual code is written using Electron, which is the other editor I use from time to time). There was an Emacs project called Eclaim (I think) which interfaced with Eclipse services in order to provide dynamic completion when doing Java. That could be worth checking out for ideas to borrow. Tim --=20 Tim Cross