Search found 224 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: 347

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: 347

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: 857

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: 6423

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: 857

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
Fri Aug 15, 2014 11:46 pm
Forum: Feature Requests
Topic: Multicast support
Replies: 5
Views: 2562

Re: Multicast support

An alternative to the optional clause 'from group <ip address>' for accept is to allow an address:port pair where a port is used. This it might be like this: accept datagram connections on port 239.9.4.211:5000 with message "gotDatagram" One problem with that is that (as is) it looks the same in ope...
by DarScott
Thu May 29, 2014 6:30 am
Forum: Feature Requests
Topic: Networking layer feature requests
Replies: 7
Views: 2712

Re: Networking layer feature requests

Where is UDP broadcast missing?
by DarScott
Wed May 28, 2014 8:35 pm
Forum: LiveCode Global Jam
Topic: turning on Unicode for arrayEncode/arrayDecode?
Replies: 17
Views: 5145

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: 5145

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: 3660

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: 3660

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: 3660

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: 8135

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: 8135

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: 1174

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?

Go to advanced search