1. Speeding up your applications..

Hi all,
Euphoria is very user friendly but regarding execution speed, it could use a
boost for certain time critical applications. One way of achieving this
could be to use self-written dll's. The good news is that these dll's do NOT
necessarily have to be written in C... There is a freeware BASIC (yes, BASIC
smile) compiler called XBasic that produces lightning fast native code. You
can also produce dll's with it!! It also has GUI features but these are much
more difficult to master than in Euphoria. Therefore you can combine the
best of both worlds: the user friendlyness of Euphoria and the speed of
XBasic, and remain programming in BASIC...
I did a small test and it worked. So far, I only exchanged integer
parameters with the dll. Don't know if the double precision number format of
Euphoria and XBasic are the same. Have to check this out.
So, if you feel like experimenting...smile
kind regards
Eddy

new topic     » topic index » view message » categorize

2. Re: Speeding up your applications..

-------Phoenix-Boundary-07081998-

Hola, Eddy Van Esch escribi=F3 el 24/01/2001 03:15:08 a.m.:

> The good news is that these dll's do
>NOT
>necessarily have to be written in C... There is a freeware BASIC (yes,
>BASIC
>smile) compiler called XBasic that produces lightning fast native code. You
>can also produce dll's with it!! It also has GUI features but these are
>much
>more difficult to master than in Euphoria. Therefore you can combine the
>best of both worlds: the user friendlyness of Euphoria and the speed of
>XBasic, and remain programming in BASIC...

Hi,

I also found what I consider a good alternative to make dlls, is a program
called
BCX that translates basic to C, is freeware, makes the most simple code for
a dll that I've seen. It's designed with LCC in mind so you can compile
everything it produces with LCC.

>From BCXs homepage:

"BCX includes the BASIC to C Translator, a DLG to BASIC code generator,
Windows HLP file, over 100 GUI, Console, and DLL samples and much more"

>From BCXs mail list:

"BCX -- The Free BASIC to C Translator
BCX consists of a small set of tools that BASIC programmers can use to
create powerful 32 bit stand-alone Windows GUI, DLL, and console mode (
command line utilities and CGI applications ).

BCX is free to use for personal and professional developments.  Development
is currently active and periodicupdates are available free from the main
web site at

http://www.users.uswest.net/~sdiggins/bcx.htm

Current BCX beta version available from the FILES area BCX generates ANSI
"C" source code that compiles flawlessly with the freely available
LCC-Win32 "C" compiler that is available at "

http://www.cs.virginia.edu/~lcc-win32

Also another interesting project is RapidQ a free visual basic. It can
produce exes, 300K for gui examples compressed with UPX. (It compresses
them automatically) Its fast, good, has many examples, free even fro
comercial use.

>From RapidQ homepage:

"Rapid-Q is a cross platform BASIC programming language capable of
generating GUI and CONSOLE applications (including CGI applications). It
directly supports MySQL, DirectX, a bit of Direct3D, Sockets, a bit of COM,
              component/object programming, and many other nice features.
Rapid-Q is currently available for Windows 95/98/NT/2000, Linux/i386,
Solaris/Sparc, and HP-UX.
Although Rapid-Q is still in Beta (for over a year already), it is fully
functional and FREE!"

Unfortunally Mr. William Yu his creator was hired by some software maker
and the project seems to be stalled, but this doesn't mean its not useful.
Some programs are very simple with this tool, documentation is good, many
good examples of GUI programming  and it's free after all.

http://www.basicguru.com/abc/rapidq/


Fabio

-------------------------------------
Fabio Ramirez R.
Administrador de Redes - CSI
-------------------------------------

-------Phoenix-Boundary-07081998---

new topic     » goto parent     » topic index » view message » categorize

3. Re: Speeding up your applications..

> The good news is that these dll's do
>NOT
>necessarily have to be written in C... There is a freeware BASIC (yes,
>BASIC
>smile) compiler called XBasic that produces lightning fast native code. You
>can also produce dll's with it!! It also has GUI features but these are



It is likely that we will be able to do that fairly easily soon in Euphoria
too,  which would be even better.


Robert has said in a previous post:
>> 12) Could the compiler be written so that the global routines
>> are exportable ? (to create DLL's, VBX'en, VXD's etc.)

>Again, you can hack this together by your self today, but
>better support will come eventually.


Regards,
Aidan

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu