Re: [ANN] This Week in LiveCode 78

2017-04-10 Thread Richard Gaskin via use-livecode

Peter TB Brett wrote:

> On 10/04/2017 16:10, Richard Gaskin via use-livecode wrote:
>> Thank you, Panos.
>>
>> This item was particularly interesting:
>>
>>Add a new script library implementing unified diff generation and
>>patch application: Expected in LiveCode 9.0 DP-7
>>
>>
>> It wasn't immediately clear to me from the notes in that PR what that
>> does, but the description sounds enticing.
>>
>> Can you offer a little background on that?
>
> It's exactly what it says on the tin: a library that implements an
> algorithm for finding a minimal line-based edit script between two
> input texts, along with the ability to turn that into a unified diff.
>
> Go have a look at the source code, which contains inline
> documentation:
> 
https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/diff.livecodescript

>
> You could also have a look at the tests:
> 
https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/test

>
> Its development was sponsored by David Simpson.

Thanks, Peter.  These things may seem obvious to you, but it seemed a 
bit of an edge-case feature vis a vis others in the queue, so the 
background you provided is very helpful.


And thanks, David.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] This Week in LiveCode 78

2017-04-10 Thread Peter TB Brett via use-livecode



On 10/04/2017 16:10, Richard Gaskin via use-livecode wrote:

Thank you, Panos.

This item was particularly interesting:

   Add a new script library implementing unified diff generation and
   patch application: Expected in LiveCode 9.0 DP-7
   

It wasn't immediately clear to me from the notes in that PR what that
does, but the description sounds enticing.

Can you offer a little background on that?


It's exactly what it says on the tin: a library that implements an 
algorithm for finding a minimal line-based edit script between two input 
texts, along with the ability to turn that into a unified diff.


Go have a look at the source code, which contains inline documentation:
https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/diff.livecodescript

You could also have a look at the tests:
https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/test

Its development was sponsored by David Simpson.  Check out FMProMigrator. :)

  Peter

--
Dr Peter Brett 

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] This Week in LiveCode 78

2017-04-10 Thread Richard Gaskin via use-livecode

Thank you, Panos.

This item was particularly interesting:

   Add a new script library implementing unified diff generation and
   patch application: Expected in LiveCode 9.0 DP-7
   

It wasn't immediately clear to me from the notes in that PR what that 
does, but the description sounds enticing.


Can you offer a little background on that?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode