Search found 972 matches

by Janschenkel
Mon Jun 10, 2013 5:10 am
Forum: Engine Contributors
Topic: LCContextGet
Replies: 33
Views: 5747

Re: LCContextGet

Most operating systems have Java as an afterthought, and native applications written in C (or some similar language) load a Java VM in their own process. Android was designed from the start around the concept of a VM for running applications, and when you open a LiveCode executable, it actually clon...
by Janschenkel
Sun Jun 09, 2013 6:30 pm
Forum: Engine Contributors
Topic: Android/Java externals
Replies: 8
Views: 3894

Re: Android/Java externals

Some implementation notes On the C side, we could have a class MCJavaExternalProxy which inherits from MCExternal and acts as a go-between for the classic externals interface and the JNI part, so the rest of the engine can be happily ignorant of the fact that the actual implementation is done in Ja...
by Janschenkel
Sun Jun 09, 2013 3:44 pm
Forum: Engine Contributors
Topic: Android/Java externals
Replies: 8
Views: 3894

Android/Java externals

The recent topic hacking desktop externals for mobile touched on the implementation of Android/Java externals for LiveCode. Now I've been pondering and studying this since the conference, and I promised the other day I'd bundle my thoughts on such an implementation. Base principle: it should feel na...
by Janschenkel
Wed Jun 05, 2013 10:37 pm
Forum: Engine Contributors
Topic: Keyword Spelling Consistency
Replies: 46
Views: 10930

Re: Keyword Spelling Consistency

I vaguely recall using abbreviations in HyperTalk because it made code smaller and parse faster. Back in the late 1980s that still mattered.
But if I see how quickly a complete LiveCode build in Xcode executes on my Mac, I wouldn't lose sleep over it any more ;-)

Jan Schenkel.
by Janschenkel
Wed Jun 05, 2013 10:17 pm
Forum: Engine Contributors
Topic: Debugging tips?
Replies: 6
Views: 1363

Re: Debugging tips?

Well that was embarrassing - and now the debug breakpoint kicks in where I want it to.
Turns out I had a few more mistakes to fix, but your post put the train back on the rails.
Thanks, Mark! Going to add a big red note that all table entries must be in alphabetical order...

Cheers,

Jan Schenkel.
by Janschenkel
Wed Jun 05, 2013 9:30 pm
Forum: Engine Contributors
Topic: Debugging tips?
Replies: 6
Views: 1363

Re: Debugging tips?

@runrevmark I did extend the switch structure in newobj.cpp - as a copy+paste+adapt artist I slavishly followed your example ;-) Anyway, I pushed it to an experiment branch here https://github.com/quartamsoftware/livecode/tree/experiment-tinker_command Just in case anybody wants to take a look and ...
by Janschenkel
Wed Jun 05, 2013 9:18 pm
Forum: Engine Contributors
Topic: Debugging tips?
Replies: 6
Views: 1363

Re: Debugging tips?

Looks like I have gdb and it's running as soon as I launch LiveCode from within Xcode. Here's the beginning of the Xcode console output: GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the G...
by Janschenkel
Wed Jun 05, 2013 2:08 pm
Forum: Engine Contributors
Topic: hacking desktop externals for mobile
Replies: 22
Views: 4709

Re: hacking desktop externals for mobile

I haven't taken that part of the code apart yet, but I do know how easy it is to 'mangle' JNI memory management. If you're not careful, the C-side may prevent an object from getting garbage collected, or the C-side may think it has a hold of an object method but the JVM has moved it behind its back....
by Janschenkel
Wed Jun 05, 2013 11:16 am
Forum: Engine Contributors
Topic: the properties
Replies: 137
Views: 24710

Re: the properties

Maybe we could provide Oxford-dictionary synonyms in the language? *ducks*

Jan Schenkel.
by Janschenkel
Wed Jun 05, 2013 11:13 am
Forum: Engine Contributors
Topic: hacking desktop externals for mobile
Replies: 22
Views: 4709

Re: hacking desktop externals for mobile

The idea is that you wouldn't have to instantiate the object yourself; the engine automatically finds all implementations of the 'com.runrev.livecode.external.ExternalLibrary' interface at startup, instantiates them and makes appropriately annotated methods available as externalCommands/externalFunc...
by Janschenkel
Wed Jun 05, 2013 10:59 am
Forum: Engine Contributors
Topic: Debugging tips?
Replies: 6
Views: 1363

Debugging tips?

Hi guys, While working on the filter enhancements, I ran into problems where the IDE decided to not start completely - I guess because it uses the 'filter' command extensively and I screwed the pooch :-( So I decided to test my work by adding a 'tinker' command and putting the code into it. I follow...
by Janschenkel
Wed Jun 05, 2013 6:09 am
Forum: Engine Contributors
Topic: hacking desktop externals for mobile
Replies: 22
Views: 4709

Re: hacking desktop externals for mobile

There is no requirement for static linking on Android, and all .dex files in the .apk package are automatically put on the classpath. All you need is a very thin layer of JNI and reflection to be added to the engine. Even simpler if we could move to Android 2.3 as minimum. And I too wish we had a si...
by Janschenkel
Tue Jun 04, 2013 9:31 pm
Forum: Engine Contributors
Topic: hacking desktop externals for mobile
Replies: 22
Views: 4709

Re: hacking desktop externals for mobile

Ah, but there's the rub: people want to tap straight into Java externals, not build C externals as a gateway to Java functions. And Java developers rarely like the idea of writing their own JNI calls. A few annotations should be enough and the system has to figure out the rest. While I do have a pre...
by Janschenkel
Tue Jun 04, 2013 8:06 pm
Forum: Engine Contributors
Topic: hacking desktop externals for mobile
Replies: 22
Views: 4709

Re: hacking desktop externals for mobile

Ah, yes - Android externals. *oops*
I've been pondering that since the conference, but got a bit distracted by the filter enhancements.
Give me a few more days to write up a proposal...

Jan Schenkel.
by Janschenkel
Mon Jun 03, 2013 9:21 pm
Forum: iOS Deployment
Topic: Lice code requires 5.1 SDK, I have SDK 6
Replies: 3
Views: 1170

Re: Lice code requires 5.1 SDK, I have SDK 6

Ah, oops, that manual goes beyond adding older SDKs to Xcode, straight into the realm of building your own version of LiveCode Community. In your case, you don't have to go beyond the 'Now cleanup' section. I'm not an expert on iOS deployment, but LiveCode won't generate Xcode projects; rather, it l...

Go to advanced search