Re: RustgreSQL

From: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>
To: Craig Ringer <craig(dot)ringer(at)2ndquadrant(dot)com>, Joel Jacobson <joel(at)trustly(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RustgreSQL
Date: 2017-01-08 23:42:11
Message-ID: 4adad615-dbcd-0590-3bae-5c9b45cf2c99@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 01/08/2017 09:19 AM, Craig Ringer wrote:
> On 8 Jan. 2017 17:10, "Joel Jacobson" <joel(at)trustly(dot)com
> <mailto:joel(at)trustly(dot)com>> wrote:
>
>
> Is this completely unrealistic or is it carved in stone PostgreSQL
> will always be a C project forever and ever?
>
>
> Incredibly unrealistic.
>
> [lots of other stuff I agree with]
>
> You'd have a lot more chance writing extensions in Rust though. If you
> can make it play OK with the exception handling in postgres and our
> memory management, at least. If you really wanted to push this
> forward... start there. Show how great it is.
>
>

Yeah. A few years ago Tom Dunstan and I started creating a sample
extension in Rust while he was here on a short visit. We ran out of time
so we didn't quite get it finished. Bottom line is it's possible but far
from straightforward. Rust's inbuilt build system makes life, er,
interesting. The fun of getting PG_MODULE_MAGIC in was one of the things
we had to deal with. We ended up using a small amount of C glue.

cheers

andrew

--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2017-01-08 23:56:58 Re: RustgreSQL
Previous Message Jim Nasby 2017-01-08 23:39:42 Re: merging some features from plpgsql2 project