Search found 203 matches

by DarScott
Sat Jul 20, 2019 7:23 pm
Forum: LiveCode Builder
Topic: Creating a large Data of a specified length
Replies: 2
Views: 4014

Re: Creating a large Data of a specified length

Thanks! An adaptation of that will beat my recursive function.

I wonder if there is something like "MCDataCreateOfLength" among the built-ins. (I just made up the name.)
by DarScott
Sat Jul 20, 2019 3:26 pm
Forum: LiveCode Builder
Topic: Creating a large Data of a specified length
Replies: 2
Views: 4014

Creating a large Data of a specified length

I have created a function in LCB that builds a Data filled with zeros based on a specified length. It works fine. (It uses put...after about 2.5log2n times.)

However, I'd like to improve speed. Is there a built-in method or trick or something I have missed?
by DarScott
Tue Apr 19, 2016 9:14 am
Forum: LiveCode Builder
Topic: Passing a buffer to a foreign handler
Replies: 1
Views: 2798

Re: Passing a buffer to a foreign handler

Ah, Peter TB Brett helped me out when I asked on the Use LiveCode list and somehow I didn't see the email. Yeah, one way to do this is to use Data and MCDataGetBytePtr().
by DarScott
Tue Apr 19, 2016 3:30 am
Forum: LiveCode Builder
Topic: Foreign Handlers and Custom Types
Replies: 35
Views: 24781

Re: Foreign Handlers and Custom Types

I do wonder whether (for the time being at least), it might be worth adding some functions which allow you to dereference an offset from a pointer as all the native C storage types - that would enable you to build and decompose structs and C-style arrays right now. Basically, with enough glue-code ...
by DarScott
Tue Apr 19, 2016 2:46 am
Forum: LiveCode Builder
Topic: Passing a buffer to a foreign handler
Replies: 1
Views: 2798

Passing a buffer to a foreign handler

This is part of the general problem of passing memory for sending or receiving arrays or structures to or from arbitrary functions in dynamic libraries created by others. I want to create some memory and pass a pointer to it to a foreign handler. One possibility is to create a value of type data and...
by DarScott
Wed May 28, 2014 8:35 pm
Forum: LiveCode Global Jam
Topic: turning on Unicode for arrayEncode/arrayDecode?
Replies: 17
Views: 18281

Re: turning on Unicode for arrayEncode/arrayDecode?

All of this has to bubble up to compatibility of documents and applications in our own applications. Like this: "ABC version 2.1 is fully compatible with version 2.0 and db files, however, though version 3.0 can read read-only version 2.0 db files, it creates smaller version 3.0 db files which are n...
by DarScott
Wed May 28, 2014 6:37 pm
Forum: LiveCode Global Jam
Topic: turning on Unicode for arrayEncode/arrayDecode?
Replies: 17
Views: 18281

Re: turning on Unicode for arrayEncode/arrayDecode?

I'm not seeing any issues with the default being an adaptive encoding. A consideration is the wording and size of the paragraph describing this in the dictionary. It might be handy to have a name for this case that can be used as the second parameter and that is the default. Otherwise, the dictionar...
by DarScott
Tue May 27, 2014 10:36 pm
Forum: Engine Contributors
Topic: git resources
Replies: 12
Views: 10599

Re: git resources

When I go to github.com (redirected from github.org) I'm invited to download github and there is a pretty picture of a GUI screen. I don't know how complete that is. I appreciate the advice. I'm going to be working at this a little each day. Maybe I should make a small change to go through the motio...
by DarScott
Tue May 27, 2014 7:23 pm
Forum: Engine Contributors
Topic: git resources
Replies: 12
Views: 10599

Re: git resources

That is probably it. I saw references to "pull request" and I was reading a request for permission to get pull or something. If I use the gitHub GUI, do I need git? I saw something called Tower for git, which might be handy when one is focusing on code and the git commands don't come to mind. Or is ...
by DarScott
Tue May 27, 2014 12:32 pm
Forum: Engine Contributors
Topic: git resources
Replies: 12
Views: 10599

Re: git resources

I've been learning about git. Should I be focusing on github?
by DarScott
Tue May 27, 2014 12:15 pm
Forum: Engine Contributors
Topic: Sockets: Multicast or Socket Options
Replies: 22
Views: 20327

Re: Sockets: Multicast or Socket Options

I've been reading about git. Maybe I should be learning about github.
by DarScott
Tue May 27, 2014 11:58 am
Forum: Engine Contributors
Topic: Sockets: Multicast or Socket Options
Replies: 22
Views: 20327

Re: Sockets: Multicast or Socket Options

I'd like to do multicast, either directly as I described or in making the setting and getting of socket options visible, as described. If the latter, I'm interested in a property syntax, as described in the topic on properties for opened things, if the merge schedule is appropriate. For the property...
by DarScott
Tue May 27, 2014 1:07 am
Forum: Engine Contributors
Topic: Tools
Replies: 1
Views: 3262

Tools

What tools do I need to play?

Xcode 5?

Visual Studio Express 2013?

Other?

Or is this detailed in a file I will get when I git?
by DarScott
Tue May 27, 2014 1:01 am
Forum: Engine Contributors
Topic: Internet Library Suggestion
Replies: 4
Views: 4896

Re: Internet Library Suggestion

I think URL for files is handled by the engine. The last I saw, PUT was not, but that might be new. I'm all for nonblocking. The blocking form allows for interesting lines like this: put processed( URL "http://alpha.com/test" ) into URL "http://beta.com/test" The nonblocking form, if implemented, mi...
by DarScott
Sun May 25, 2014 9:55 pm
Forum: Engine Contributors
Topic: Language: properties of opened things
Replies: 18
Views: 14815

Re: Language: properties of opened things

...though we can get that from the lines of the openStuff and the screenRects. Not to discourage such cool features. Just throwing that out.

Go to advanced search