Re: Question for LCB FFI workshop attendees at upcoming conference

2019-05-24 Thread Trevor DeVore via use-livecode
On Fri, May 24, 2019 at 11:53 AM hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thank you very much for sharing these examples.


You’re welcome. One thing I forgot to mention - you need to have LC 9.0.5
or 9.5 installed to test the Pocketsphinx example. A bug was fixed related
to passing null to variadic expressions.

-- 
Trevor DeVore

> ScreenSteps
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-24 Thread Mark Wieder via use-livecode

On 5/24/19 9:54 AM, Bob Sneidar via use-livecode wrote:

Bad link


lmgtfy...
https://github.com/novastone-media/MQTT-Client-Framework

--
 Mark Wieder
 ahsoftw...@gmail.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-24 Thread Bob Sneidar via use-livecode
Bad link

Bob S


> On May 11, 2019, at 06:19 , Michael Muthmannn via use-livecode 
>  wrote:
> 
> Hi Trevor,
> 
> In the forums a couple of times there were some questions about MQTT 
> integration into livecode.
> 
> I found  found a native Objective-C iOS library  here:
> 
> https://github.com/novastone-media/MQTT ... -Framework


___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-24 Thread JJS via use-livecode

Thank you Trevor

Op 24-5-2019 om 17:00 schreef Trevor DeVore via use-livecode:

On Tue, May 7, 2019 at 8:35 AM Trevor DeVore 
wrote:


This is for anyone who plans on attending my workshop on using FFI in LCB
at the conference. Is there any code (a macOS Framework, Windows API, DLL,
dylib, etc.) that is written in Objective-C or that has a C wrapper that
you are interested in wrapping with LCB in order to make it available to
LiveCode?


For those interested you can find the source code for the projects we
discussed in the LCB FFI Workshop at the San Jose Conference. The
pocketsphinx project is an experiment to get it working and teach some
concepts. The mosquitto project is an example of wrapping an API and making
it available to LiveCode. The demo stack is fully functional and you can
subscribe to and publish messages with other people if they are connected
to the same server.

https://github.com/trevordevore/lc-pocketsphinx

https://github.com/trevordevore/lc-mosquitto



___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-24 Thread hh via use-livecode
Thank you very much for sharing these examples.

> Trevor DeV. wrote:
> For those interested you can find the source code for the projects we
> discussed in the LCB FFI Workshop at the San Jose Conference. The
> pocketsphinx project is an experiment to get it working and teach some
> concepts. The mosquitto project is an example of wrapping an API and making
> it available to LiveCode. The demo stack is fully functional and you can
> subscribe to and publish messages with other people if they are connected
> to the same server.
> 
> https://github.com/trevordevore/lc-pocketsphinx
> https://github.com/trevordevore/lc-mosquitto




___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-24 Thread Trevor DeVore via use-livecode
On Tue, May 7, 2019 at 8:35 AM Trevor DeVore 
wrote:

> This is for anyone who plans on attending my workshop on using FFI in LCB
> at the conference. Is there any code (a macOS Framework, Windows API, DLL,
> dylib, etc.) that is written in Objective-C or that has a C wrapper that
> you are interested in wrapping with LCB in order to make it available to
> LiveCode?
>

For those interested you can find the source code for the projects we
discussed in the LCB FFI Workshop at the San Jose Conference. The
pocketsphinx project is an experiment to get it working and teach some
concepts. The mosquitto project is an example of wrapping an API and making
it available to LiveCode. The demo stack is fully functional and you can
subscribe to and publish messages with other people if they are connected
to the same server.

https://github.com/trevordevore/lc-pocketsphinx

https://github.com/trevordevore/lc-mosquitto

-- 
Trevor DeVore
ScreenSteps
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-17 Thread Trevor DeVore via use-livecode
On Fri, May 17, 2019 at 11:41 AM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 5/17/19 7:01 AM, Trevor DeVore via use-livecode wrote:
>
> > I decided to look into this further and I eventually found libMosquitto.
> It
> > is a C library with an API that that could be wrapped with FFI without
> too
> > much trouble (no structs within structs that I had to deal with). With
> Mark
> > and Monte's help I now have a library on macOS that can connect to the
> > test.mosquitto.org server and publish/subscribe to topics. So we should
> be
> > able to send messages around to each other during the workshop! Hopefully
> > there are no surprises on the Windows side...
> >
> That's very cool. Has anyone tried using Mosquitto to communicate with
> RabbitMQ? I know there at one point was a third-party RabbitMQ plugin
> for compatibility, but I'm not sure it ever got out of the preview
> stage. I'm not sure what the current status is now that RabbitMQ
> supports MQTT 3.11 via an included plugin. I would assume then that it
> just works out of the box, but you know what they say about assuming...
>

I was reading the RabbitMQ page on the MQTT plugin earlier:
https://rabbitmq.com/mqtt.html

That page says you have to manually enable the plugin in order for it to
work. Once it is enabled there is no reason Mosquitto wouldn't work with
it. They both support MQTT 3.

There is also a RabbitMQ C library that provides support for AMQP. It is
available here:

https://github.com/alanxz/rabbitmq-c

And this page seems to have some information on using it:

https://www.cloudamqp.com/docs/c.html

I haven't looked over the source code to see how easy it would be to wrap
in LCB though.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-17 Thread Mark Wieder via use-livecode

On 5/17/19 7:01 AM, Trevor DeVore via use-livecode wrote:


I decided to look into this further and I eventually found libMosquitto. It
is a C library with an API that that could be wrapped with FFI without too
much trouble (no structs within structs that I had to deal with). With Mark
and Monte's help I now have a library on macOS that can connect to the
test.mosquitto.org server and publish/subscribe to topics. So we should be
able to send messages around to each other during the workshop! Hopefully
there are no surprises on the Windows side...

That's very cool. Has anyone tried using Mosquitto to communicate with 
RabbitMQ? I know there at one point was a third-party RabbitMQ plugin 
for compatibility, but I'm not sure it ever got out of the preview 
stage. I'm not sure what the current status is now that RabbitMQ 
supports MQTT 3.11 via an included plugin. I would assume then that it 
just works out of the box, but you know what they say about assuming...


--
 Mark Wieder
 ahsoftw...@gmail.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-17 Thread Trevor DeVore via use-livecode
On Sat, May 11, 2019 at 8:20 AM Michael Muthmannn via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Trevor,
>
> In the forums a couple of times there were some questions about MQTT
> integration into livecode.
>
> I found  found a native Objective-C iOS library  here:
>
> https://github.com/novastone-media/MQTT ... -Framework
>

I decided to look into this further and I eventually found libMosquitto. It
is a C library with an API that that could be wrapped with FFI without too
much trouble (no structs within structs that I had to deal with). With Mark
and Monte's help I now have a library on macOS that can connect to the
test.mosquitto.org server and publish/subscribe to topics. So we should be
able to send messages around to each other during the workshop! Hopefully
there are no surprises on the Windows side...

-- 
Trevor DeVore
ScreenSteps
https://www.screensteps.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-17 Thread Trevor DeVore via use-livecode
On Tue, May 14, 2019 at 2:51 AM trevix via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Trevor.
> I know that is a bit late and that I will not be able to attend anyhow
> (sigh).
>
> I would love to see how to implement the Flic Bluetooth button library  (
> www.flic.io ).
> It is a small battery powered button that interact with iOS, Desktop and
> Android (1 click, 2 click, hold click)
>
> Libraries are available for Swift, ObjC and C++ here, with working xCode
> example:
> https://github.com/50ButtonsEach 
> and a tutorial here
> https://partners.flic.io/partners/devel ... s-tutorial <
> https://partners.flic.io/partners/developers/ios-tutorial>
>

Thanks for the suggestion Trevix. While I won't be able to spend time on
this particular library perhaps someone else will after the session!

-- 
Trevor DeVore
ScreenSteps
https://www.screensteps.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


Question for LCB FFI workshop attendees at upcoming conference

2019-05-14 Thread trevix via use-livecode
Hi Trevor.
I know that is a bit late and that I will not be able to attend anyhow (sigh).

I would love to see how to implement the Flic Bluetooth button library  
(www.flic.io ).
It is a small battery powered button that interact with iOS, Desktop and 
Android (1 click, 2 click, hold click)

Libraries are available for Swift, ObjC and C++ here, with working xCode 
example: 
https://github.com/50ButtonsEach 
and a tutorial here
https://partners.flic.io/partners/devel ... s-tutorial 


> Trevor DeVore via use-livecode 
> 
>  Tue, 07 May 2019 06:44:56 -0700 
> 
> This is for anyone who plans on attending my workshop on using FFI in LCB
> at the conference. Is there any code (a macOS Framework, Windows API, DLL,
> dylib, etc.) that is written in Objective-C or that has a C wrapper that
> you are interested in wrapping with LCB in order to make it available to
> LiveCode?
> If so, let me know in a response to this thread and I can take a look at it
> before the workshop to see if I can include it.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.com


Regards

Trevix


___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-11 Thread Michael Muthmannn via use-livecode
Hi Trevor,

In the forums a couple of times there were some questions about MQTT 
integration into livecode.

I found  found a native Objective-C iOS library  here:

https://github.com/novastone-media/MQTT ... -Framework

> Am 07.05.2019 um 15:35 schrieb Trevor DeVore via use-livecode 
> :
> 
> This is for anyone who plans on attending my workshop on using FFI in LCB
> at the conference. Is there any code (a macOS Framework, Windows API, DLL,
> dylib, etc.) that is written in Objective-C or that has a C wrapper that
> you are interested in wrapping with LCB in order to make it available to
> LiveCode?
> 
> If so, let me know in a response to this thread and I can take a look at it
> before the workshop to see if I can include it.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.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


___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-10 Thread Lagi Pittas via use-livecode
Hi,

It will be sad, a great loss or even a travesty if the worshops are not
recordered somehow.

Even if by using a couple of mobile phones for good sound and "so so" video.

The simulcast won'rt be anywhere near as useful as it could be without
these Workshops.

If the slides,text, resources  etc ultimately become available that could
go someway towards mitigating the situation,
and not waste of all that programming wisdom by limiting it's access to the
wider community.

We still haven't got our 2000 widgets after nearly 4 years, and  I will let
others decide why this is - I have my own opinions.

Any Workshops -  whether Monty's, Marks Ali's or yours -  should be
recorded (I hope people in the audience don't have their phones confiscated
for making "bootleg" copies).

If LC wants an extra pound of flesh then so be it - but "Say it ain't so".

My 2 Pence worth

Lagi

On Fri, 10 May 2019 at 15:26, Trevor DeVore via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On Fri, May 10, 2019 at 9:18 AM Trevor DeVore 
> wrote:
>
> >
> > I was hoping to just grab the precompiled DLL for it but the downloadable
> > version has a bug in it and would just exit whenever I tried to use it.
> > With Mark Waddingham's help (a lot of it) I now have a basic version
> > working on both macOS and Windows. Even the macOS version required some
> > interesting steps so that the dylibs (pocketsphinx and sphinxbase) would
> > only load the dylibs in the extension's code folder. Wrapping the code
> was
> > also an educational experience and has a number of teaching points that I
> > will bring up in the workshop.
> >
>
> I should also point out that Monte also provided some valuable guidance on
> variable types to use with the API and working with variadic arguments.
> Lots of good stuff for the workshop.
>
> --
> Trevor DeVore
> ScreenSteps
> www.screensteps.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
>
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-10 Thread Trevor DeVore via use-livecode
On Fri, May 10, 2019 at 9:18 AM Trevor DeVore 
wrote:

>
> I was hoping to just grab the precompiled DLL for it but the downloadable
> version has a bug in it and would just exit whenever I tried to use it.
> With Mark Waddingham's help (a lot of it) I now have a basic version
> working on both macOS and Windows. Even the macOS version required some
> interesting steps so that the dylibs (pocketsphinx and sphinxbase) would
> only load the dylibs in the extension's code folder. Wrapping the code was
> also an educational experience and has a number of teaching points that I
> will bring up in the workshop.
>

I should also point out that Monte also provided some valuable guidance on
variable types to use with the API and working with variadic arguments.
Lots of good stuff for the workshop.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-10 Thread Paul Dupuis via use-livecode

On 5/10/2019 10:18 AM, Trevor DeVore via use-livecode wrote:

Thanks for the suggestion Paul. This ended up being a really good example
to work on.

Wow! Thank you Trevor!

I have slowly (far too slowly) been trying to develop my LCB expertise 
to wrap Sphinx, but the C side of things (building the DLLs and where to 
place them was stumping me). I am pretty sure, with the files in the 
right places and the minimal interface working, I can add functionality 
to a Pocket Sphinx library widget.


-- Paul

___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-10 Thread Trevor DeVore via use-livecode
On Tue, May 7, 2019 at 12:14 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 5/7/2019 9:35 AM, Trevor DeVore via use-livecode wrote:
> > This is for anyone who plans on attending my workshop on using FFI in LCB
> > at the conference. Is there any code (a macOS Framework, Windows API,
> DLL,
> > dylib, etc.) that is written in Objective-C or that has a C wrapper that
> > you are interested in wrapping with LCB in order to make it available to
> > LiveCode?
> >
> > If so, let me know in a response to this thread and I can take a look at
> it
> > before the workshop to see if I can include it.
> >
>
> I would love to see a sample LCB wrapper for PocketSphinx!
>
> https://cmusphinx.github.io/wiki/tutorialpocketsphinx


Thanks for the suggestion Paul. This ended up being a really good example
to work on.

I was hoping to just grab the precompiled DLL for it but the downloadable
version has a bug in it and would just exit whenever I tried to use it.
With Mark Waddingham's help (a lot of it) I now have a basic version
working on both macOS and Windows. Even the macOS version required some
interesting steps so that the dylibs (pocketsphinx and sphinxbase) would
only load the dylibs in the extension's code folder. Wrapping the code was
also an educational experience and has a number of teaching points that I
will bring up in the workshop.

For those of you who offered up other suggestions - I took a look at the
pages you sent but I didn't see any obvious C interfaces and they also look
like much more involved projects. FFI will not work with C++ right now.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-08 Thread JJS via use-livecode
I'm not there, but what would be fantastic is to get TUIO running in 
Livecode.


https://www.tuio.org/?software

It's the most used protocol on big touch screens which are used in 
Offices, Hospitals, big companies, Workshops, Board meetings etcetera


There are even screens now with integarted Windows PC's and even with 
integrated Android which use this protocol.


On the TUIO site many program languages are supported, but not LC.


Op 7-5-2019 om 15:35 schreef Trevor DeVore via use-livecode:

This is for anyone who plans on attending my workshop on using FFI in LCB
at the conference. Is there any code (a macOS Framework, Windows API, DLL,
dylib, etc.) that is written in Objective-C or that has a C wrapper that
you are interested in wrapping with LCB in order to make it available to
LiveCode?

If so, let me know in a response to this thread and I can take a look at it
before the workshop to see if I can include it.



___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-08 Thread Alan Stenhouse via use-livecode
openCV (open source Computer Vision) perhaps?

https://github.com/opencv/

Sadly not attending this year though!

cheers

Alan

On 7 May 2019, at08:35:21,Trevor DeVore 
mailto:li...@mangomultimedia.com>> wrote:


This is for anyone who plans on attending my workshop on using FFI in LCB
at the conference. Is there any code (a macOS Framework, Windows API, DLL,
dylib, etc.) that is written in Objective-C or that has a C wrapper that
you are interested in wrapping with LCB in order to make it available to
LiveCode?

If so, let me know in a response to this thread and I can take a look at it
before the workshop to see if I can include it.

--
Trevor DeVore
ScreenSteps
www.screensteps.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-08 Thread Jose Enrique Montero via use-livecode
Hi Trevor I like to  attend your workshop, but in this opportunity I
can't.

About the code, doy you try the use the firebase SDK
https://firebase.google.com/docs/cloud-messaging/?authuser=0#implementation_paths
.

best regards and a successful workshop

Jose

El mié., 8 de may. de 2019 a la(s) 02:34, Monte Goulding via use-livecode (
use-livecode@lists.runrev.com) escribió:

>
>
> > On 8 May 2019, at 9:25 am, Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > On 5/7/19 4:06 PM, Monte Goulding via use-livecode wrote:
> >>> On 8 May 2019, at 2:36 am, Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> is just too unreadable, unmaintainable, and error-prone to deal with.
> >> Yes it would probably be helpful to be able to write `h1024` and have
> it convert to and from a CArray type which could have an element type
> property (in this case UInt8) and a length property (1024) and bridge to a
> list of the element type and syntax to move to and from Data if necessary.
> >
> > I'd prefer 1024h, but I'm good with either. I've rant^H^H^Hsuggested
> this several times, but it hasn't gone anywhere.
>
> I’m not really sure if the aggregate type is intended to be a stopgap
> solution so perhaps if it is that may be a good reason not to spend too
> much time handling cases like this and figuring out how best to handle
> unions etc. You can do what you need to do it’s just not a huge amount of
> fun when dealing with complex structs.
>
> Ideally we would have a foreign record type where you could specify member
> names and there would be syntax to support unions so they aren't so tricky
> to handle and the engine can figure out padding if union members are
> different sizes etc.
>
> Cheers
>
> Monte
> ___
> 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
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Monte Goulding via use-livecode


> On 8 May 2019, at 9:25 am, Mark Wieder via use-livecode 
>  wrote:
> 
> On 5/7/19 4:06 PM, Monte Goulding via use-livecode wrote:
>>> On 8 May 2019, at 2:36 am, Mark Wieder via use-livecode 
>>>  wrote:
>>> 
>>> is just too unreadable, unmaintainable, and error-prone to deal with.
>> Yes it would probably be helpful to be able to write `h1024` and have it 
>> convert to and from a CArray type which could have an element type property 
>> (in this case UInt8) and a length property (1024) and bridge to a list of 
>> the element type and syntax to move to and from Data if necessary.
> 
> I'd prefer 1024h, but I'm good with either. I've rant^H^H^Hsuggested this 
> several times, but it hasn't gone anywhere.

I’m not really sure if the aggregate type is intended to be a stopgap solution 
so perhaps if it is that may be a good reason not to spend too much time 
handling cases like this and figuring out how best to handle unions etc. You 
can do what you need to do it’s just not a huge amount of fun when dealing with 
complex structs.

Ideally we would have a foreign record type where you could specify member 
names and there would be syntax to support unions so they aren't so tricky to 
handle and the engine can figure out padding if union members are different 
sizes etc.

Cheers

Monte
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Mark Wieder via use-livecode

On 5/7/19 4:06 PM, Monte Goulding via use-livecode wrote:




On 8 May 2019, at 2:36 am, Mark Wieder via use-livecode 
 wrote:

is just too unreadable, unmaintainable, and error-prone to deal with.


Yes it would probably be helpful to be able to write `h1024` and have it 
convert to and from a CArray type which could have an element type property (in 
this case UInt8) and a length property (1024) and bridge to a list of the 
element type and syntax to move to and from Data if necessary.


I'd prefer 1024h, but I'm good with either. I've rant^H^H^Hsuggested 
this several times, but it hasn't gone anywhere.




FWIW my talk which is on directly before Trevor’s workshop will be a whirlwind 
tour of LCB FFI so that anybody that feels they want a refresher/primer before 
entering the workshop can get one.


Cool. But  it's opposite Ali's can't-miss morning talk. I need 
two of me... good thing these are getting recorded for later.


--
 Mark Wieder
 ahsoftw...@gmail.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Monte Goulding via use-livecode


> On 8 May 2019, at 2:36 am, Mark Wieder via use-livecode 
>  wrote:
> 
> is just too unreadable, unmaintainable, and error-prone to deal with.

Yes it would probably be helpful to be able to write `h1024` and have it 
convert to and from a CArray type which could have an element type property (in 
this case UInt8) and a length property (1024) and bridge to a list of the 
element type and syntax to move to and from Data if necessary.

FWIW my talk which is on directly before Trevor’s workshop will be a whirlwind 
tour of LCB FFI so that anybody that feels they want a refresher/primer before 
entering the workshop can get one.

Cheers

Monte
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Trevor DeVore via use-livecode
On Tue, May 7, 2019 at 1:27 PM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 5/7/19 10:17 AM, Trevor DeVore via use-livecode wrote:
>
> > I will be introducing them but I can’t fix limitations of the engine.
> >
>
> Heh. Right, I was just hoping you had another way of dealing with this.
> No worries.


I haven’t had to wrap code that used such a beast so I haven’t investigated
other approaches myself.

-- 
Trevor DeVore
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Mark Wieder via use-livecode

On 5/7/19 10:17 AM, Trevor DeVore via use-livecode wrote:


I will be introducing them but I can’t fix limitations of the engine.



Heh. Right, I was just hoping you had another way of dealing with this. 
No worries.


--
 Mark Wieder
 ahsoftw...@gmail.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread hh via use-livecode
> > Matthias R. wrote:
> > Are the workshops also available through Simulcast or are they "offline"? 
> > Would be great even if only watching would be possible w/o interaction, 
> > but i am afraid they aren´t, right? 
> 
> Trevor D. wrote:
> I don’t know the answer to that. I’m not sure what is being broadcast and 
> what isn’t. 

From a current LC offer:

"Livestreaming includes track 1, track 2 and the LiveCloud workshop.
Other workshops are not recorded or streamed."

So the (most interesting) FFI workshop is *sadly* not even recorded.


___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Trevor DeVore via use-livecode
On Tue, May 7, 2019 at 12:14 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 5/7/2019 9:35 AM, Trevor DeVore via use-livecode wrote:
> > This is for anyone who plans on attending my workshop on using FFI in LCB
> > at the conference. Is there any code (a macOS Framework, Windows API,
> DLL,
> > dylib, etc.) that is written in Objective-C or that has a C wrapper that
> > you are interested in wrapping with LCB in order to make it available to
> > LiveCode?
> >
> > If so, let me know in a response to this thread and I can take a look at
> it
> > before the workshop to see if I can include it.
> >
>
> I would love to see a sample LCB wrapper for PocketSphinx!
>
> https://cmusphinx.github.io/wiki/tutorialpocketsphinx


I'll take a look.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Paul Dupuis via use-livecode

On 5/7/2019 1:14 PM, Paul Dupuis wrote:

On 5/7/2019 9:35 AM, Trevor DeVore via use-livecode wrote:
This is for anyone who plans on attending my workshop on using FFI in 
LCB
at the conference. Is there any code (a macOS Framework, Windows API, 
DLL,

dylib, etc.) that is written in Objective-C or that has a C wrapper that
you are interested in wrapping with LCB in order to make it available to
LiveCode?

If so, let me know in a response to this thread and I can take a look 
at it

before the workshop to see if I can include it.



I would love to see a sample LCB wrapper for PocketSphinx!

https://cmusphinx.github.io/wiki/tutorialpocketsphinx




I should have added, even just the minimal of a LCB library where I can 
write a script like:


on mouseUp
  ask file "Please select a WAV audio file to convert to text:" with 
type "WAV Audio FIle|wav|WAVE"

  if it is empty then exit mouseUp
  put sphinxTranscribe(it) into fld "Text"
end mouseUp

where sphinxTranscribe takes a WAV file and used PocketSphinx to return 
the transcribed text of the audio using the default settings.


Just that bit would be a boost t getting into further LCB development 
around pocketSphinx.



___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Trevor DeVore via use-livecode
On Tue, May 7, 2019 at 11:37 AM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 5/7/19 6:35 AM, Trevor DeVore via use-livecode wrote:
> > This is for anyone who plans on attending my workshop on using FFI in LCB
> > at the conference. Is there any code (a macOS Framework, Windows API,
> DLL,
> > dylib, etc.) that is written in Objective-C or that has a C wrapper that
> > you are interested in wrapping with LCB in order to make it available to
> > LiveCode?
> >
> > If so, let me know in a response to this thread and I can take a look at
> it
> > before the workshop to see if I can include it.
>
> Are you going to be covering foreign aggregate types? For me that's the
> brick wall I run into when attempting to use LCB to access APIs. I have
> yet to run into a case where I don't need to access an embedded buffer
> in a C struct. If it's an 8-byte buffer, I can use
>
> public foreign type tType binds to "CType:"
>
> but when I need a 1024-byte buffer,


I will be introducing them but I can’t fix limitations of the engine.

-- 
Trevor DeVore
ScreenSteps

>
>
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Tom Glod via use-livecode
PocketSphinx ...LC Wrapper...Yes!

On Tue, May 7, 2019 at 1:14 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 5/7/2019 9:35 AM, Trevor DeVore via use-livecode wrote:
> > This is for anyone who plans on attending my workshop on using FFI in LCB
> > at the conference. Is there any code (a macOS Framework, Windows API,
> DLL,
> > dylib, etc.) that is written in Objective-C or that has a C wrapper that
> > you are interested in wrapping with LCB in order to make it available to
> > LiveCode?
> >
> > If so, let me know in a response to this thread and I can take a look at
> it
> > before the workshop to see if I can include it.
> >
>
> I would love to see a sample LCB wrapper for PocketSphinx!
>
> https://cmusphinx.github.io/wiki/tutorialpocketsphinx
>
>
>
> ___
> 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
>
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Paul Dupuis via use-livecode

On 5/7/2019 9:35 AM, Trevor DeVore via use-livecode wrote:

This is for anyone who plans on attending my workshop on using FFI in LCB
at the conference. Is there any code (a macOS Framework, Windows API, DLL,
dylib, etc.) that is written in Objective-C or that has a C wrapper that
you are interested in wrapping with LCB in order to make it available to
LiveCode?

If so, let me know in a response to this thread and I can take a look at it
before the workshop to see if I can include it.



I would love to see a sample LCB wrapper for PocketSphinx!

https://cmusphinx.github.io/wiki/tutorialpocketsphinx



___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Mark Wieder via use-livecode

On 5/7/19 6:35 AM, Trevor DeVore via use-livecode wrote:

This is for anyone who plans on attending my workshop on using FFI in LCB
at the conference. Is there any code (a macOS Framework, Windows API, DLL,
dylib, etc.) that is written in Objective-C or that has a C wrapper that
you are interested in wrapping with LCB in order to make it available to
LiveCode?

If so, let me know in a response to this thread and I can take a look at it
before the workshop to see if I can include it.


Are you going to be covering foreign aggregate types? For me that's the 
brick wall I run into when attempting to use LCB to access APIs. I have 
yet to run into a case where I don't need to access an embedded buffer 
in a C struct. If it's an 8-byte buffer, I can use


public foreign type tType binds to "CType:"

but when I need a 1024-byte buffer,

"CType:"

is just too unreadable, unmaintainable, and error-prone to deal with.

--
 Mark Wieder
 ahsoftw...@gmail.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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Trevor DeVore via use-livecode
On Tue, May 7, 2019 at 9:04 AM Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Trevor,
>
> Are the workshops also available through Simulcast or are they "offline"?
> Would be great even if only watching would be possible w/o interaction,
> but i am afraid they aren´t, right?


I don’t know the answer to that. I’m not sure what is being broadcast and
what isn’t.

-- 
Trevor DeVore
ScreenSteps
___
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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Matthias Rebbe via use-livecode
Trevor,

Are the workshops also available through Simulcast or are they "offline"?
Would be great even if only watching would be possible w/o interaction, but i 
am afraid they aren´t, right?


Matthias


> Am 07.05.2019 um 15:35 schrieb Trevor DeVore via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> This is for anyone who plans on attending my workshop on using FFI in LCB
> at the conference. Is there any code (a macOS Framework, Windows API, DLL,
> dylib, etc.) that is written in Objective-C or that has a C wrapper that
> you are interested in wrapping with LCB in order to make it available to
> LiveCode?
> 
> If so, let me know in a response to this thread and I can take a look at it
> before the workshop to see if I can include it.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.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



Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de 
https://winsignhelper.dermattes.de 
___
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

Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread Trevor DeVore via use-livecode
This is for anyone who plans on attending my workshop on using FFI in LCB
at the conference. Is there any code (a macOS Framework, Windows API, DLL,
dylib, etc.) that is written in Objective-C or that has a C wrapper that
you are interested in wrapping with LCB in order to make it available to
LiveCode?

If so, let me know in a response to this thread and I can take a look at it
before the workshop to see if I can include it.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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