On Mon, 2022-09-12 at 11:29 -0400, Tom Lane wrote:
> > Rust gives many things we wanted for decades:
>
> > 1. No undefined behavior
> > 2. No memory leaks, guaranteed at compile time
>
> Really? It seems impossible to me that a language that even thinks
> it can guarantee that could
On Mon, Sep 12, 2022 at 10:29 PM Tom Lane wrote:
>
> Lev Kokotov writes:
> > I took a small part of Postgres to get started, so just as a PoC; it
> > compiles and runs though. Larger parts will take more work (deleting
code,
> > not just swapping object files), and more fancy things like
On Mon, Sep 12, 2022 at 11:29:12AM -0400, Tom Lane wrote:
> Lev Kokotov writes:
> >> 3. Do we gain anything besides compiler hints? Postgres development is
> >> hard due to interference of complex subsystems. It will be even harder if
> >> those systems will be implemented in different languages.
Lev Kokotov writes:
>> 3. Do we gain anything besides compiler hints? Postgres development is
>> hard due to interference of complex subsystems. It will be even harder if
>> those systems will be implemented in different languages.
> Rust gives many things we wanted for decades:
> 1. No
s Rust compatible with Memory Contexts and shared memory constructs
of Postgres? With elog error reporting, PG_TRY() and his friends?
Not to my knowledge. Just by reading the implementation, jumping to
arbitrary positions in the code is against safe programming that Rust
guarantees.
> 2. Does Rus
On Fri, Sep 09, 2022 at 07:38:14PM -0700, Lev Kokotov wrote:
> Are there any plans or thoughts about adding support for other languages
> than C into Postgres, namely Rust? I would love to hack on some features
> but I worry somewhat that the C compiler won't give me enough hints that
> I'm doing
good
things.
Yet some very simple questions arise.
1. Is Rust compatible with Memory Contexts and shared memory constructs of
Postgres? With elog error reporting, PG_TRY() and his friends?
2. Does Rust support same set of platforms as Postgres? Quick glance at Build
Farm can give an impression of
Hello,
Are there any plans or thoughts about adding support for other languages
than C into Postgres, namely Rust? I would love to hack on some features
but I worry somewhat that the C compiler won't give me enough hints that
I'm doing something wrong, and the Rust compiler has been excellent at