Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Native Lib example
Page 1 of 1

Native Lib example

PostPosted: Mon May 05, 2008 9:46 am
by Rudi
Hi

have anybody a orbforms native lib example that works fine with the

"Palm OS Developer Suite" ???

I have any "beginner problems" ... i tried to convert the orbworks native lib samples for the palm os developer suite ...

best regards,
Rudi

Re: Native Lib example

PostPosted: Mon May 19, 2008 8:17 pm
by Rudi
hey,
is here really nobody who have a native lib built with palm os developer suite?
all guys here develope only with codewarrior?

Greetings
Rudi

Re: Native Lib example

PostPosted: Mon May 19, 2008 8:37 pm
by kda406
Rudi,

I develop in OrbForms, but do not use the native lib. I have never needed to with what is provided.

What kind of beginner problems are you having? Perhaps you are trying to access native functions when you should be using Orb built-in functions.

-Kyle

Re: Native Lib example

PostPosted: Tue May 20, 2008 5:27 am
by Rudi
Hi,

why i need native libs?
Because my brainfuck ide is so slow :) (look here: http://www.my-palm.de) Brainfuck is a esotheric programming language (http://en.wikipedia.org/wiki/Brainfuck) and runs as a "virtual turing machine" on my palm. To speed up the virtual engine dramatical, i plan to do this with a native lib.

what kind of beginner problems i have?
I never used the palm os developer suite before. The problems are, how to create a lib, how to create a working makefile, how to set up a working output and so on ...

Why i dont use the metrowerks codewarrior?
codewarrior for palm os is dead, you cant download it or buy it anymore.
>>> CodeWarrior for Palm OS has been discontinued and is no longer sold or supported. <<<
http://www.freescale.com/webapp/sps/sit ... 61788213D5
There are update files to download, but they dont work without a basis installation :( - 30 days trial demo of codewarrior)

Greetings,
Rudi

Re: Native Lib example

PostPosted: Tue May 20, 2008 12:58 pm
by kda406
Rudi,

I did not know that CodeWarrior is dead. I am familiar with Brainfuck.

I will tell you that one of my programs takes more than 5 minutes to process records in OrbForms on some PDAs. So the user will not think the PDA has locked up, I draw a bar graph and include a cancel button which is polled using events(false) periodically. The user sees the progress and knows the PDA is working. If they cannot tolerate the wait, they can cancel the process. I do not know if a similar approach may work for you.

I am not qualified to answer your deeper questions on making libs, or makefiles. At least not with any language pertaining to PDAs.

-Kyle

Re: Native Lib example

PostPosted: Tue May 20, 2008 1:33 pm
by Rudi
Hi Kyle,

the idea with a progress indicator i 've realized for other projects too :) But for Brainfuck, this is no option, because the user know that the programm is alive - a "grafical display" shows always the current status of memory, but it is slowley, because the virtual turin engine is programmed 100% in orbforms. Now, i go to optimize some routines and the stack-handler to speed up - but in all cases, a native lib with a complete brainfuck-turing-engine is the fastest solution.

I work with function pointers in my engine, this is fast - but the functions i called itself work not really fast. A simple example:
The [ and ] command in brainfuck. This "while current_memory_cell[]" commands need to find the correct "close", if i find a "[", then i must find the right "]". But there are constructs like this: [[[ ]]] :)
So you say, wait - there is a very fast solution, why do you not compile the code before running and store the adresses of "[" and "]" in a stack-like table? Yes - this is a option, but there is a problem :) Brainfuck runs on "harvard" and "von neumann" architectures - this means, in one of this cases the code can be self-modified :) - self-modifying code and (pre)compiled-code, two incompatible worlds :)

An other "brake" is this: a brainfuck engine works with UNSIGNED 8Bit memory-cells. But orbforms work only with SIGNED 8Bit chars. Because this, i need to do this on an increment command of brainfuck:

// memory is char * memory;
void inccell()
{
int x; //not char, int - because the signed char !!!!! char x dont work
x = memory[d_ptr];
x ++;
if(x<0) x = 256+x;
memory[d_ptr] = x;
cell_dirty = true;
}

So, enough brainfucked theory about turing machines simulated on palm devices :)

There are many other cases too for programming a native library, e.g. real bluetooth access or other hardware-related things.

Greetings,
Rudi (and yes, i'm really a fan of alan turing, this guy was a great computer-pioneer and a great crypto-cracker and he died to young ... wiki knows a lot of the great job british enigma/lorenz cracking in ww2 and alan turing ...)

Re: Native Lib example

PostPosted: Thu May 22, 2008 7:48 pm
by Percival
You can make a native lib using prc-tools. I can send you the SampleAddIn example for prc-tools if you want to.

Re: Native Lib example

PostPosted: Fri May 23, 2008 9:31 am
by Rudi
Percival wrote:You can make a native lib using prc-tools. I can send you the SampleAddIn example for prc-tools if you want to.


Hey,
thats great :)
Thank you !!!! for support ...
please send the example to: orbc@my-palm.de

Greetings,
Rudi

Re: Native Lib example

PostPosted: Tue May 27, 2008 2:18 am
by earlcasper
Percival,
Could you post your SampleAddIn example for prc-tools somewhere where everyone can download it?
-Earl

Re: Native Lib example

PostPosted: Wed May 28, 2008 7:45 pm
by Percival
Sure. I have uploaded it to http://www.few.vu.nl/~tcg400/palm/orb/S ... ctools.zip
Just type make in cygwin to compile.

It was based on an example I found on this forum: viewtopic.php?f=11&t=2789