RE: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Mark Waddingham via use-livecode
is always generated as if 'effective' is specified (as you can't encode the notion of inheritance of property values in RTF) - however, as has been noticed, it does not support the tabStops nor tabAlign properties). Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http

Re: MouseMove less responsive in 9.0.4

2019-04-03 Thread Mark Waddingham via use-livecode
and add the controls that were in the group as the new card's objects. Which is obviously a great deal more work than just moving a control somewhere else in the internal lists. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Ever

Re: Hit Box for widgets

2019-04-02 Thread Mark Waddingham via use-livecode
import the SVG into to change the color of the fill or stroke attributes referencing it. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode

Re: What is Macintosh equivalent of relaunch handler?

2019-03-29 Thread Mark Waddingham via use-livecode
, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences

Re: What is Macintosh equivalent of relaunch handler?

2019-03-28 Thread Mark Waddingham via use-livecode
the main app. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: BACKUPS !!!

2019-03-19 Thread Mark Waddingham via use-livecode
really important you heed the little warning that comes up in macOS these days if you haven't backed up in a while! Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use

Re: LC 9 and Externals

2019-03-18 Thread Mark Waddingham via use-livecode
On 2019-03-18 16:59, Mark Wieder via use-livecode wrote: On 3/18/19 8:43 AM, Mark Waddingham via use-livecode wrote: ... although if you're using the external in a stack you're shipping to others, it may well be worthwhile to recompile it as a 64-bit external. Especially keeping in mind

Re: LC 9 and Externals

2019-03-18 Thread Mark Waddingham via use-livecode
-bit by using Get Info on the LiveCode app bundle in Finder. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: SVG icons in buttons

2019-02-27 Thread Mark Waddingham via use-livecode
You only need to recompile an svg file to a drawing if the file content changes - drawings scale using the rect of the image object, based on the viewBox and preserveAspectRatio attributes on the root node of the original svg file. If a specific SVG file isn't scaling when compiled to a drawing

Re: SVG icons in buttons

2019-02-27 Thread Mark Waddingham via use-livecode
how they scale inside the rect they are drawn into). Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit

Re: SVG icons in buttons

2019-02-27 Thread Mark Waddingham via use-livecode
en's query: the need to compile SVG to drawings, and the SVG compiler being a LiveCode library is why you can't set the filename of an image to an SVG file - the engine only understands the 'drawing' format, not SVG. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Ever

Re: AW: AW: weird video screenshot problem

2019-02-06 Thread Mark Waddingham via use-livecode
he same state should be preserved). Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, un

Re: How to tell if a field is "closed"?

2019-02-05 Thread Mark Waddingham via use-livecode
he selectedField is not empty then exit mouseUp end if answer "Go!" end mouseUp This should mean the import step won't run until a closeField handler has successfully finished. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode

Re: AW: weird video screenshot problem

2019-02-05 Thread Mark Waddingham via use-livecode
lean user account on your machine? (This is to discount that windows has, for some reason, set some piece of unknown state on a per-app-per-user basis which is causing the problem). Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can c

Re: Issues with Livecode 10.14.2 on Mojave?

2019-01-21 Thread Mark Waddingham via use-livecode
in Mojave then please let us know, the above was the only method we found late last year when we had someone ask in Support about it. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode

Re: Feature request: merge function!

2019-01-18 Thread Mark Waddingham via use-livecode
ot; (<| not being a valid sequence except in CDATA, which you can elect not to use by entity escaping chars instead). Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _

Re: The merge function is awesome!

2019-01-18 Thread Mark Waddingham via use-livecode
On 2019-01-18 06:48, Geoff Canyon via use-livecode wrote: I was in the same position with merge(). If you haven't seen it already, format() has some pretty amazing capabilities as well. To answer your question about escaping - yes there is: [[[]] -> [ [[]]] -> ] Also the merge function

Re: windows defender issues? & other AV issues

2019-01-17 Thread Mark Waddingham via use-livecode
the save is failing, or not happening as expected by checking 'the result' after the save command which is initiating the save. Hope this helps! Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps

Re: Refactoring is your friend / moving from 6.x to 9.x

2019-01-04 Thread Mark Waddingham via use-livecode
. It also contains benchmarks derived from my talk at LCG on optimization, and Curry's which he posted a while back. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use

Re: Refactoring is your friend / moving from 6.x to 9.x

2019-01-04 Thread Mark Waddingham via use-livecode
did not do Retina resolution). Of course, the latter is making the assumption that Malte has a Retina mac... Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode

Re: Refactoring is your friend / moving from 6.x to 9.x

2019-01-03 Thread Mark Waddingham via use-livecode
of the time or thereabouts (5.x would have been rendering to a 1/4 size buffer which was then upscaled by the OS to full-resolution Retina; it was only 6.x+ which started to render to a full-retina resolution window buffer on retina displays). Warmest Regards, Mark. -- Mark Waddingham ~ m

Re: What is LC's internal text format?

2018-11-13 Thread Mark Waddingham via use-livecode
to exit... Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: What is LC's internal text format?

2018-11-13 Thread Mark Waddingham via use-livecode
conversion applies). Essentially you can view file's a typed-stream - if you opened for binary read/write give/take data; if you opened for text then read/write give/take strings and default type conversion rules apply. Warmest Regards, Mark. -- Mark Waddin

Re: How to find offsets in Unicode Text fast

2018-11-13 Thread Mark Waddingham via use-livecode
ot on a 4 byte boundary. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, u

Re: What is LC's internal text format?

2018-11-13 Thread Mark Waddingham via use-livecode
a char is not used in conversion in number context, the code of a byte is not used either. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-live

Re: How to find offsets in Unicode Text fast

2018-11-13 Thread Mark Waddingham via use-livecode
d then we would not be having this discussion - it would have been a similar discussion as used to come up a lot with comparing the output of compress() and other functions which have always produced binary data - and why comparisons seemed 'not as one would expect'. Warmest Regards, Mark.

Re: What is LC's internal text format?

2018-11-13 Thread Mark Waddingham via use-livecode
large - 21-bit) Unicode code table; Unicode characters can be composed of multiple codepoints (e.g. [e,combining-acute] and thus don't have a 'number' per-se. Warmest Regards, Mark. I've looked in the dictionary and I don't see anything that comes close to describing this. gc On Mon, Nov 12, 20

Re: How to find offsets in Unicode Text fast

2018-11-12 Thread Mark Waddingham via use-livecode
what happens when one or other is uppercased, based on what precise language is being represented). -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.

Re: What is LC's internal text format?

2018-11-12 Thread Mark Waddingham via use-livecode
as UTF-32, you will get a four byte string, which will then turn back into a 4 (native) character string when passed to offset. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _

Re: SVG to image

2018-09-16 Thread Mark Waddingham via use-livecode
Perhaps the drawing library could do with 'CompileIcon' which does the wrapping as your code does and then compiles the resulting SVG XML. In the interim - IIRC - there is an '_internal' command used in the drawing library which returns the bbox of an SVG path string which will allow you to

Re: Livecode's CEF Builds

2018-09-11 Thread Mark Waddingham via use-livecode
On 2018-09-11 07:32, Mark Waddingham via use-livecode wrote: So, your binaries would actually be non-GPLv3 licensed; but you would then be providing the source-code (which you own the copyright to) under GPLv3 on GitHub. Whether that works depends on what the requirements on your project are re

Re: Livecode's CEF Builds

2018-09-11 Thread Mark Waddingham via use-livecode
for that etc… although again IANAL. Apart from the issue of having a license to use the patent encumbered code - which is entirely orthogonal issue to licensing. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps

Re: Livecode's CEF Builds

2018-09-11 Thread Mark Waddingham via use-livecode
. * I'd point out here that building and maintaining custom CEF builds is not a small endeavour either time-wise or resource-wise so before undertaking such a thing we need to make sure it is actually 'worth-while' in terms of ROI. -- Mark Waddingham ~ m...@livecode.com ~ http

Re: Livecode's CEF Builds

2018-09-10 Thread Mark Waddingham via use-livecode
was GPLv3 pure - as any impurity creates friction and issues with combining with other GPLv3 software in your own applications. Warmest Regards, Mark. * -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps

Re: Livecode's CEF Builds

2018-09-10 Thread Mark Waddingham via use-livecode
the copyright to) under GPLv3 on GitHub. Whether that works depends on what the requirements on your project are re GPLv3 / Open-Sourceness. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps

Re: Livecode's CEF Builds

2018-09-09 Thread Mark Waddingham via use-livecode
H264 is patent encumbered - in order to distribute software containing an implementation you need to license the MPEG-LA patent pool. That's why you won't find any public CEF prebuilts with the flag enabled. Warmest Regards, Mark. Sent from my iPhone > On 9 Sep 2018, at 18:04, Tom Glod via

Re: This is disturbing!

2018-09-06 Thread Mark Waddingham via use-livecode
say whether the language would be better or worse if only 'strict' numeric strings were considered equal. After all you'd still have that "1.0" is "1" is "1.0" is ... which whilst more obvious perhaps, still means you have to work harder to do strict string

Re: This is disturbing!

2018-09-06 Thread Mark Waddingham via use-livecode
is making sure that such cases are 'edge' cases and easily avoided. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: This is disturbing!

2018-09-06 Thread Mark Waddingham via use-livecode
rded it is a little misleading. All the comparison operator docs could do with some revision to make the actual behavior crystal clear :D Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___

Re: This is disturbing!

2018-09-06 Thread Mark Waddingham via use-livecode
rk. P.S. The engine has *always* worked like this - as have xTalks in general. It's why you never have to put any explicit type conversion anywhere when you are interchanging anything and things still work as expected. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode:

Re: Timezone library - how to use in Livecode Server?

2018-09-06 Thread Mark Waddingham via use-livecode
x86-linux, if you are running on a 32-bit host) This tells the engine where to find the 'tz' library which is referenced by the foreign handler bindings in the tz extension. Warmest Regards, Mark. P.S. https://github.com/livecode/livecode/pull/6660 -- Mark Waddingham ~ m...@livecode

Re: Contractors and open source software

2018-09-04 Thread Mark Waddingham via use-livecode
, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Up to date installation guide for LiveCode community server?

2018-09-02 Thread Mark Waddingham via use-livecode
File a bug and we'll see if we can move the (appropriate) information into a guide in the main repo (so the docs aren't just a webpage). mergJSON is licensed under the GPL - https://github.com/montegoulding/mergJSON/blob/master/LICENSE.txt Warmest Regards, Mark Sent from my iPhone > On 2

Re: Searching for a word when it's more than one word

2018-09-01 Thread Mark Waddingham via use-livecode
quot; in tText end repeat Warmest Regards, Mark. P.S. The above will be reasonable quick for small sets of phrases / small source texts - but I think as the size of either increases it will get very slow, very quickly! -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCod

Re: Searching for a word when it's more than one word

2018-09-01 Thread Mark Waddingham via use-livecode
' - and you algorithm does not perform the requested operation. It reports Palm Beach West *and* Palm Beach as being present - whereas, only 'Palm Beach West' is present :D Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create

Re: Searching for a word when it's more than one word

2018-09-01 Thread Mark Waddingham via use-livecode
he towns in East Hartfordshire Would become: C**ABCDE**BC*B***I*H**E*FG The original phrase list is processed similarly to give: ABCDE FG H I Searching the transformed source text using your algorithm with the list of transformed phrases would give the correct set of found phrase

Re: Searching for a word when it's more than one word

2018-09-01 Thread Mark Waddingham via use-livecode
Regards, Mark. P.S. The problem is actually exactly the same - in the single-word case your alphabet are the characters in the language. In the multi-word case, your alphabet is the set of words in all phrases, with a 'stop' word. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com

Re: Searching for a word when it's more than one word

2018-09-01 Thread Mark Waddingham via use-livecode
the above would become: *,East,Hartford,*,West,Hartford,* The "*" tokens block matching multi-word phrases. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps __

Re: Searching for a word when it's more than one word

2018-09-01 Thread Mark Waddingham via use-livecode
st Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Mark Waddingham via use-livecode
ough with hindsight perhaps we should have considered textBold / textItalic ... ]. Warmest Regards, Mark. P.S. Of course, at least one 'smart-ass' will ask 'why do those have brackety things when the others don't' - but aren't teachers well versed in dealing with such inquisitive mind

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Mark Waddingham via use-livecode
as implemented a few versions ago precisely to allow the functionality you describe to be implemented very easily... Prior to it, the IDE menu items still did the right thing - but the code was, well, nowhere near a single line... -- Mark Waddingham ~ m...@livecode.com ~ http:/

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Mark Waddingham via use-livecode
ext style completely separately. Perhaps I misunderstand what you meant? Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.run

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Mark Waddingham via use-livecode
than just on the words... Warmest Regards, Mark. P.S. I'm not saying that 'the wordIndex of ' might not be useful, but I do wonder if the above actually solves your problem in an easier / more consistent with the rest-of-the-world way ;) -- Mark Waddingham ~ m...@livecode.com ~ http://www.li

On Performance of Array Access

2018-08-31 Thread Mark Waddingham via use-livecode
r than 6mins (one phase of processing actually saw a 5x speed up!). Anyway, thought this might make some potentially pleasing Friday afternoon news :) Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps

Re: What do we know about LC 10?

2018-08-31 Thread Mark Waddingham via use-livecode
for the greater part of what the engine is now regardless of what it was as MetaCard. Aside from any complaints I might make, I do still love working on it; even though, as I get older, my enjoyment from writing C/C++/Obj-C/Obj-C++/Java declines year-on-year. Warmest Regards, Mark. -- Mark Waddingham

Re: Not many people know this.

2018-08-17 Thread Mark Waddingham via use-livecode
On 2018-08-17 02:56, Mark Wieder via use-livecode wrote: On 08/16/2018 11:21 AM, Mark Waddingham via use-livecode wrote: reason we treat that particular 10,000 odd lines of code with a great My goodness. I thought I was the only one who wrote odd lines of code... Haha! I didn't even see

Re: Not many people know this.

2018-08-16 Thread Mark Waddingham via use-livecode
ssarily thank him for the loss of hair that resulted in actually implementing them in the field object itself. There's a good reason we treat that particular 10,000 odd lines of code with a great deal of care and respect - it really doesn't like being touched very much! -- Mark Waddingham ~ m.

Re: Not many people know this.

2018-08-16 Thread Mark Waddingham via use-livecode
nformation. This reduces the overhead of the per-char styles to when they are used, rather than universally. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.

Re: Text rendering of Unicode text in LC

2018-08-15 Thread Mark Waddingham via use-livecode
- of course, that does make it much harder to track down! Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit

Re: Text rendering of Unicode text in LC

2018-08-15 Thread Mark Waddingham via use-livecode
caching issue in skia - since the first line of text is bold. Definitely something slightly odd going on anyway. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode

Re: Text rendering of Unicode text in LC

2018-08-13 Thread Mark Waddingham via use-livecode
, because we use inline “thumbnail” images that >> would span several lines. The Chinese readers haven’t complained about this >> particular issue. The do complain that the characters don’t have enough >> horizontal space when rendered. &

Re: Text rendering of Unicode text in LC

2018-08-13 Thread Mark Waddingham via use-livecode
and paste the two example fields you have there (with relevant image needed for the speaker so it renders) I can take a closer look - looking at an image is not the best way to diagnose issues really! Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com

Re: Re [OT] Snakey Problem

2018-08-13 Thread Mark Waddingham via use-livecode
the years both closed and open source!). For a language system, it isn't a bad idea to be honest - it makes forks absolutely crystal clear as forks which is perhaps much more important when changes to language syntax and semantics are in play. Warmest Regards, Mark. -- Mark Waddingham ~ m

Re: LC 9 and Memory

2018-08-13 Thread Mark Waddingham via use-livecode
and (2) the ability to recover most of the batch if one piece fails. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: LC 9 and Memory

2018-08-13 Thread Mark Waddingham via use-livecode
:) Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Re [OT] Snakey Problem

2018-08-13 Thread Mark Waddingham via use-livecode
and public domain code. :P yourself What do you know - so do we (on a far greater scale, I'd perhaps venture) :oP Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use

Re: Re [OT] Snakey Problem

2018-08-13 Thread Mark Waddingham via use-livecode
think licensing is silly, then why do you sell licensed software and not just give it away for free and open source as 'public domain'? :P Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps

Re: Resetting waitDepth

2018-08-11 Thread Mark Waddingham via use-livecode
I'm pretty sure exit to top should do in most cases - however I think there might be a few implicit in-engine/external wait used which ignore it (which probably should be considered bugs). Warmest Regards, Mark. Sent from my iPhone > On 11 Aug 2018, at 16:37, Bryan Anderson via use-livecode

Re: valueDiff for arrays?

2018-08-10 Thread Mark Waddingham via use-livecode
Or the ui stack is a substack which gets duplicated as another substack under the same root, but empty, mainstack... Mark. Sent from my iPhone > On 10 Aug 2018, at 19:48, Brian Milby via use-livecode > wrote: > > In your case it may be a bit more complicated, but I would think still >

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-08 Thread Mark Waddingham via use-livecode
On 2018-08-08 22:50, Matthias Rebbe via use-livecode wrote: Thanks for the update. Now i do not have to ask at the next LC Global. ;) That is why I though it was worth mentioning it now ;) Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode

Re: valueDiff for arrays?

2018-08-08 Thread Mark Waddingham via use-livecode
On 2018-08-08 23:19, Mark Wieder via use-livecode wrote: On 08/08/2018 10:54 AM, Mark Waddingham via use-livecode wrote: Yup - but isSequence would be correct - false. The extents might be 1,10 But isSequence would check whether it was 1,9 ... Ah. OK, but I was actually replying to Dick

Re: LC Builder and 3rd Part DLLs under Windows

2018-08-08 Thread Mark Waddingham via use-livecode
, P.S. Trevor has made significant progress with his mac status bar widget - however we still haven't figured out exactly why references to the icon don't stick - thus causing it to never appear. Hopefully we will do soon! -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode

Re: valueDiff for arrays?

2018-08-08 Thread Mark Waddingham via use-livecode
Yup - but isSequence would be correct - false. The extents might be 1,10 But isSequence would check whether it was 1,9 ... Mark. Sent from my iPhone > On 8 Aug 2018, at 12:19, Mark Wieder via use-livecode > wrote: > > On 08/08/2018 04:18 AM, Mark Waddingham via use-li

Re: valueDiff for arrays

2018-08-08 Thread Mark Waddingham via use-livecode
I'd suggest transplant is actually move - an idea which has been taken to the level of obsession in modern c++ and new languages like Rust (which I want to like - but it's highly technical demands just leave a bitter taste in my mouth - impressive, yes; the right approach - definitely not, IMHO

Re: LCB Performance

2018-08-08 Thread Mark Waddingham via use-livecode
You might be better off building the primes as a List, then converting to a string at the end. Although the conversion of each number is only done once so it probably doesn't make too much difference (apart from being a bit more LCBy). In general LCB should be written to prefer structure over

Re: valueDiff for arrays?

2018-08-08 Thread Mark Waddingham via use-livecode
I think you are right - I will double check. There is actually an internal function (in C) - two in fact - IsSequence and IsNumericSequence which we should plumb into 'is a' to make this clearer. They basically use the extents internal impl (well an optimized form in one case). Warmest

Re: valueDiff for arrays?

2018-08-07 Thread Mark Waddingham via use-livecode
, but uniformly across the sequence of slots. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: valueDiff for arrays?

2018-08-07 Thread Mark Waddingham via use-livecode
On 2018-08-07 23:31, Mark Wieder via use-livecode wrote: On 08/07/2018 02:21 PM, Mark Waddingham via use-livecode wrote: However, the engine treats arrays which have all integer (string) keys starting at one and are dense (i.e. the number of elements == max(all keys)) from ones that aren't

Re: valueDiff for arrays?

2018-08-07 Thread Mark Waddingham via use-livecode
On 2018-08-07 17:15, Mark Wieder via use-livecode wrote: On 08/06/2018 08:18 PM, Mark Waddingham via use-livecode wrote: I'd expect that for two reasons. The first is that all array keys are interred strings (names) so integers need to first be converted to strings and then hashed

Re: valueDiff for arrays?

2018-08-06 Thread Mark Waddingham via use-livecode
I'd expect that for two reasons. The first is that all array keys are interred strings (names) so integers need to first be converted to strings and then hashed into a name and then hashed to the slot in the arrays hash table. The second is that byte based version is essentially using a byte

Re: [OT] The problem with programming and how to fix it

2018-08-06 Thread Mark Waddingham via use-livecode
On 2018-08-06 21:49, Richard Gaskin via use-livecode wrote: Mark Waddingham wrote: I think it might be quite unique amongst x-talks in another way too... How much of any of the others were written in themselves? Not many. Toolbook, Gain Momentum, and SuperCard are the only ones I can think

Re: valueDiff for arrays?

2018-08-06 Thread Mark Waddingham via use-livecode
On 2018-08-06 22:04, Alex Tweedly via use-livecode wrote: On 06/08/2018 16:50, Mark Waddingham via use-livecode wrote: Alex Tweedly didn't talk nonsense... Byte x [to y] of z is (truly) constant time if z is strictly a binary string. That's right - the basic principle wasn't nonsense

Re: [OT] The problem with programming and how to fix it

2018-08-06 Thread Mark Waddingham via use-livecode
I think it might be quite unique amongst x-talks in another way too... How much of any of the others were written in themselves? Mark. Sent from my iPhone > On 6 Aug 2018, at 13:26, Richard Gaskin via use-livecode > wrote: > > It isn't. SuperCard is available exclusively for macOS. There

Re: valueDiff for arrays?

2018-08-06 Thread Mark Waddingham via use-livecode
Alex Tweedly didn't talk nonsense... Byte x [to y] of z is (truly) constant time if z is strictly a binary string. tArray[x] is constant time if x is already a name - otherwise the string needs turned into a name. If x is coming from repeat for each key x - then it will already be a name.

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
t like I can come and beat you all around the head if you don't. (Of course, I *can* just not allow them to be included... GOTO TOP). Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps __

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
On 2018-08-06 00:03, Mark Wieder via use-livecode wrote: On 08/05/2018 02:48 PM, Monte Goulding via use-livecode wrote: On 6 Aug 2018, at 7:07 am, Mark Waddingham via use-livecode wrote: filter X by keeping the lines not matching pattern "regex" My point was this sta

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
On 2018-08-05 23:48, Monte Goulding via use-livecode wrote: On 6 Aug 2018, at 7:07 am, Mark Waddingham via use-livecode wrote: filter X by keeping the lines not matching pattern "regex" My point was this statement can be written as both: filter X by keeping the lines not matchi

Re: [OT] The problem with programming and how to fix it

2018-08-05 Thread Mark Waddingham via use-livecode
H - I think that is missing the point about what the current 'AI' technologies that exist actually do (as far as I can see anyway - I'd be more than happy to be proved wrong!)... They are merely mappings from one form input to another form of input - they themselves don't do any action -

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
ng in any case. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe a

Re: [OT] The problem with programming and how to fix it

2018-08-05 Thread Mark Waddingham via use-livecode
, etc... How are all these artifical intelligence assistants, and various drivers needed for the various forms of input you suggest built? I don't think there are any magic beans around you can plant to have them appear... Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http

Re: [OT] The problem with programming and how to fix it

2018-08-05 Thread Mark Waddingham via use-livecode
On 2018-08-05 21:49, Richmond Mathewson via use-livecode wrote: Who said LiveCode lost sight of that? Oh, it was me. Lost sight of what? Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
(one over left, and one over right). Also, I'm pretty sure that a 'pure' LCS solution of that as suggested above would actually be faster than the minimum 3 loops needed if you use engine array ops - above a certain array size. However, I haven't had a chance to code it yet. Warmest Re

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
On 2018-08-05 21:22, Richard Gaskin via use-livecode wrote: Mark Waddingham wrote: In your use-case for 'valueDiff' - do you need to tell the difference between a key value being the empty string and a key value not being present at all? In my own head, any name-value pair, even one in which

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
> On 5 Aug 2018, at 13:37, Mark Wieder via use-livecode > wrote: > >> On 08/05/2018 11:20 AM, Mark Waddingham via use-livecode wrote: >> That isn't overloading put - that's introducing query expressions... >> Which would (at least as far as filter currently goes

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
:29, Mark Wieder via use-livecode > wrote: > >> On 08/05/2018 07:38 AM, Mark Waddingham via use-livecode wrote: >> >> keep lines of X [ where | matching | not matching ] Y into Z -- seems >> contorted > > That seems like a good argument for overloading

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
erExpression} [into targetContainer] >>> >>> >>> So Monte’s example would be: >>> filter keys of tFoo keeping where tFoo[each] is not tBar[each] >>> (And to get Richard’s result you would need to follow this by an intersect >>> each way.

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
nificant contraction of concepts - you need to know the contractions precisely to understand it!) - the latter does precisely what it says - it is actually a fully correct and full English sentence... Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode:

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
ach) returns true, the element is kept, otherwise it is discarded. I quite like the above - it has a very simple underbelly (a single operation!), but the actual English-like syntax is a true and correct sentence. What do people think? Warmest Regards, Mark. -- Mark Wadding

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
'core' pairs of such things we have). Might be more appropriate? Of course, maybe it is just 'with' / 'without' are inappropriate, and 'where' might actually help me retrain my mind to see with/without as the sugar they truly are. Anyway, thought it worth throwing out there to see what peop

Re: valueDiff for arrays?

2018-08-05 Thread Mark Waddingham via use-livecode
from tArray1. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

<    1   2   3   4   5   6   7   8   9   10   >