www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - mysql-native v3.2.0 - the safe update

reply Steven Schveighoffer <schveiguy gmail.com> writes:
It's happened. I opened the PR over 2 years ago, and just got around to 
bringing it up to date in the last few days.

This is a huge huge update. I've never done anything like this before, 
but I think it works as a drop-in replacement, while allowing you to 
migrate any piece you wish from unsafe code to safe code. Please let me 
know if there are *any* problems you find with this.

See the [safe migration 
doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md) 
for more details.

Note this does *not* build with dip1000, because the two underlying 
libraries (Phobos sockets and vibe.d) do not build as safe with dip1000.

-Steve
Apr 22
next sibling parent M.M. <matus email.cz> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 It's happened. I opened the PR over 2 years ago, and just got 
 around to bringing it up to date in the last few days.

 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.

 See the [safe migration 
 doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md)
for more details.

 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.

 -Steve
Looks like a great effort! Well done.
Apr 25
prev sibling next sibling parent reply bauss <jj_1337 live.dk> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 It's happened. I opened the PR over 2 years ago, and just got 
 around to bringing it up to date in the last few days.

 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.

 See the [safe migration 
 doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md)
for more details.

 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.

 -Steve
I owe you a beer, I can't tell you how long I've been waiting for this and it makes me really happy!
Apr 26
parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 4/26/22 4:40 AM, bauss wrote:
 
 I owe you a beer, I can't tell you how long I've been waiting for this 
 and it makes me really happy!
Thanks! If you want to join me for beerconf this weekend, I'll drink a beer on your behalf ;) I'm super happy to get this in, it was blocking a bunch of things for me too. I'm going to probably spend the next few weeks migrating all my vibe.d project code to be safe as much as possible. -Steve
Apr 26
prev sibling next sibling parent reply Andrea Fontana <nospam example.com> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.
Well done Steven!
 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.
Dip1000 is marked as "superseded". I don't understand what the plan is. Andrea
Apr 27
parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 4/27/22 6:15 AM, Andrea Fontana wrote:
 On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer wrote:
 Note this does *not* build with dip1000, because the two underlying 
 libraries (Phobos sockets and vibe.d) do not build as safe with dip1000.
Dip1000 is marked as "superseded". I don't understand what the plan is.
It's superseded by the implementation. Which means there's not really any description of what it represents. However, there is a -dip1000 switch, and my point was that mysql-native in safe mode won't compile with it because there are no valid socket implementations for it. I have a PR into phobos to fix it: https://github.com/dlang/phobos/pull/8438 I'm not sure how vibe can be fixed, I haven't spent much time looking at it. -Steve
Apr 27
prev sibling next sibling parent surlymoor <surlymoor cock.li> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 It's happened. I opened the PR over 2 years ago, and just got 
 around to bringing it up to date in the last few days.

 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.

 See the [safe migration 
 doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md)
for more details.

 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.

 -Steve
Awesome, thank you!
May 05
prev sibling parent zoujiaqing <zoujiaqing gmail.com> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 It's happened. I opened the PR over 2 years ago, and just got 
 around to bringing it up to date in the last few days.

 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.

 See the [safe migration 
 doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md)
for more details.

 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.

 -Steve
Thank you! I'll give it a try.
May 07