1. Lua wrappers

I still haven't gotten any yes/no answers from you guys.  Do any of you need
this???

Later,
Jeremy Peterson

new topic     » topic index » view message » categorize

2. Re: Lua wrappers

Jeremy Peterson wrote:
> 
> I still haven't gotten any yes/no answers from you guys.  Do any of you need
> this???
> 

I think you should continue working on it. Lets say I create an app and I
want to allow people to create there own custom plugins/scripts..etc..etc,
this wrapper would be perfect for this. 
 
----If you continue to do what you have always done,
you will get what you have always gotten.----

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

3. Re: Lua wrappers

C Bouzy wrote:
> Jeremy Peterson wrote:
> > I still haven't gotten any yes/no answers from you guys.  Do any of you need
> > this???
> I think you should continue working on it. Lets say I create an app and I
> want to allow people to create there own custom plugins/scripts..etc..etc,
> this wrapper would be perfect for this. 

Maybe you guys can clarify this for me... If I've got a Eu program and it
calls a Lua program, what's the difference if I've got a Eu program and it
calls a Eu program?

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

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

4. Re: Lua wrappers

cklester wrote:
> Maybe you guys can clarify this for me... If I've got a Eu program and it
> calls a Lua program, what's the difference if I've got a Eu program and it
> calls a Eu program?
> 

Hi CK,

LUA is useful for apps that allow users to write plugins or to perform
certain tasks. Example: Lets say I write an email client, and I allow 
users to use LUA to create scripts that will automatically check mail,
delete spam, etc..etc. It would be fairly easy to do this using LUA. 
Or lets say I create a 3D engine using EU. I could then use LUA to control
my EU engine. 

----If you continue to do what you have always done,
you will get what you have always gotten.----

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

5. Re: Lua wrappers

C Bouzy wrote:
> LUA is useful for apps that allow users to write plugins or to perform
> certain tasks. Example: Lets say I write an email client, and I allow 
> users to use LUA to create scripts that will automatically check mail...

Okay, but how is this different from allowing users to use Euphoria to create
scripts? Is plug-in functionality simply easier with Lua than with
Euphoria? If so, how does Lua know how to interface with your program? Do you
write specific functions that handle requests by Lua?

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

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

6. Re: Lua wrappers

Ok Chris, I'll post it when its finished.  It should be up there by friday or
sometime next week.

Later,
Jeremy

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

7. Re: Lua wrappers

The difference is that you can use lua.  Lua is a different language that can do
different things, some things that Eu cannot do.  It also allows you to use lua
as a scripting language for Eu.

Later,
Jeremy

Unknown: "All that is necessary for evil to triumph is for good men to do
nothing."

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

8. Re: Lua wrappers

Jeremy Peterson wrote:
> 
> The difference is that you can use lua.  Lua is a different language that can
> do different things, some things that Eu cannot do.  It also allows you to use
> lua as a scripting language for Eu.
> 
> Later,
> Jeremy
> 
> Unknown: "All that is necessary for evil to triumph is for good men to do
> nothing."

But it means learning another language! I think I will rival this with my eval
script - my mock GCSEs finish tomorrow with French Reading (How boring!) so it
will be released this weekend sometime probably!

Alex

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

9. Re: Lua wrappers

Alex Chamberlain wrote:
> Jeremy Peterson wrote:
> > The difference is that you can use lua.  Lua is a different language that
> > can
> > do different things, some things that Eu cannot do.  It also allows you to
> > use
> > lua as a scripting language for Eu.
> But it means learning another language! I think I will rival this with my eval
> script - my mock GCSEs finish tomorrow with French Reading (How boring!) so
> it will be released this weekend sometime probably!

I'd LOVE to be able to have Euphoria scripting. I looked up "script" in the
archives. There are some scripting libs out there, but none that would rival
an eval() function/proc.

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

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

10. Re: Lua wrappers

cklester wrote:
> 
> Alex Chamberlain wrote:
> > Jeremy Peterson wrote:
> > > The difference is that you can use lua.  Lua is a different language that
> > > can
> > > do different things, some things that Eu cannot do.  It also allows you to
> > > use
> > > lua as a scripting language for Eu.
> > But it means learning another language! I think I will rival this with my
> > eval
> > script - my mock GCSEs finish tomorrow with French Reading (How boring!) so
> > it will be released this weekend sometime probably!
> 
> I'd LOVE to be able to have Euphoria scripting. I looked up "script" in the
> archives. There are some scripting libs out there, but none that would rival
> an eval() function/proc.

Well, you could check out euscript.  It's not in the archives, because at the
time Rob didn't want to put anything up there that would 'compete' with 
Euphoria.  You can get it from my site:
http://www14.brinkster.com/matthewlewis/projects.html#interpreter

I use it for wxEDB, as a matter of fact.  Also, you could use ooeu, which
has an eval().  Of course, it's not as fast as real Eu.

Matt Lewis

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

11. Re: Lua wrappers

Matt Lewis wrote:
> cklester wrote:
> > I'd LOVE to be able to have Euphoria scripting. I looked up "script" in the
> > archives. There are some scripting libs out there, but none that would rival
> > an eval() function/proc.
> 
> Well, you could check out euscript.  It's not in the archives, because at the
> time Rob didn't want to put anything up there that would 'compete' with 
> Euphoria.  You can get it from my site:
> <a
> href="http://www14.brinkster.com/matthewlewis/projects.html#interpreter">http://www14.brinkster.com/matthewlewis/projects.html#interpreter</a>
> 
> I use it for wxEDB, as a matter of fact.  Also, you could use ooeu, which
> has an eval().  Of course, it's not as fast as real Eu.

I was just playing around with ooeu. I've made it so my system uses ooeu to
run ".exo" files. Does ooeu handle all of DOS, Windows, and Linux programs?

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

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

12. Re: Lua wrappers

Because it's much harder to use Eu because you can't include files between if
blocks, for one reason.  Plus, Lua was created to handle things like this,
Euphoria was made for different reasons, hence it is easier to use lua.

Jeremy

Unknown: "All that is necessary for evil to triumph is for good men to do
nothing."

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

13. Re: Lua wrappers

Jeremy Peterson wrote:
> Because it's much harder to use Eu because you can't include files between if
> blocks, for one reason.

This techique is not viable when you bind/translate/shroud files so whats the
point? Just include all the files you want and call a main() function in it
between the if clause - it won't slow it down much and providing there are no
global vars in the include - it wastes no memory - so whats the problem?

And there will be a system for passing values to the program via my tag - i hope

Thanks,
 Alex

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

14. Re: Lua wrappers

Jeremy Peterson wrote:
> 
> Because it's much harder to use Eu because you can't include files between if
> blocks, for one reason.  Plus, Lua was created to handle things like this,
> Euphoria
> was made for different reasons, hence it is easier to use lua.
> 
> Jeremy
> 
> Unknown: "All that is necessary for evil to triumph is for good men to do
> nothing."

I thought we've gone over this already. Euphoria *CAN* include files in routine,
loop, top-level, and condition blocks; you just need to use my library.


Regards,
Vincent

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

15. Re: Lua wrappers

Alex Chamberlain wrote:
> 
> Jeremy Peterson wrote:
> > 
> > The difference is that you can use lua.  Lua is a different language that
> > can
> > do different things, some things that Eu cannot do.  It also allows you to
> > use
> > lua as a scripting language for Eu.
> > 

> But it means learning another language! I think I will rival this with my eval
> script - my mock GCSEs finish tomorrow with French Reading (How boring!) so
> it will be released this weekend sometime probably!
> 
> Alex

Alex, lua's syntax is close to Euphoria's and it is a simple language anyway. 
Not very hard to learn at all.

Jeremy

Unknown: "All that is necessary for evil to triumph is for good men to do
nothing."

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

16. Re: Lua wrappers

See!  Lua has an eval-like function!  Eu doesn't! That is one reason you might
want to use it.

Jeremy

Unknown: "All that is necessary for evil to triumph is for good men to do
nothing."

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

17. Re: Lua wrappers

cklester wrote:
> 
> I was just playing around with ooeu. I've made it so my system uses ooeu to
> run ".exo" files. Does ooeu handle all of DOS, Windows, and Linux programs?

Yes, it should.  It's just the RDS PD Eu plus my modifications.

Matt Lewis

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

18. Re: Lua wrappers

why not code a wrapper for perl or python? they are just as good as lua for
embedded scripting. I know perl comes with a library specifically for that
purpose, and I'm pretty sure python might.

Damo
----
"simple questions deserve complicated answers"

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

19. Re: Lua wrappers

I think I must be missing the point somewhere.
PERL?  well, just say no to complicated lanuages ;)
Python? excellent language IMHO, and if there is 
something you need, it's in the library somewhere.

Of course, it might be simpler and faster to code
your own in Eu than search and learn the use of that
existing wheel (which will require a special axle,
probably, and be too big, etc).

But Python has an interpreter, you can just 
invoke it, surely?  It's a bit big to distribute
with an Eu program, so the User would be expected to
already have it.  And therefore would be able to use
it seperately. PERL I have nothing to do with,
and do not wish to know.

But LUA is a little engine, specifically intended to be
embedded in some other program, such as a EU one.


So I would reckon that LUA has a greater claim to
any effort.

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

20. Re: Lua wrappers

Damien wrote:
> 
> why not code a wrapper for perl or python? they are just as good as lua for
> embedded scripting. I know perl comes with a library specifically for that
> purpose,
> and I'm pretty sure python might.

Python perhaps, but I'm not aware of any embeddable perl distributions.  
Although Lua was designed expressly for embedding.  More interesting I think
would be to modify the PD Euphoria source to be embedded.

Matt Lewis

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

21. Re: Lua wrappers

Matt Lewis wrote:
> 
> Damien wrote:
> > 
> > why not code a wrapper for perl or python? they are just as good as lua for
> > embedded scripting. I know perl comes with a library specifically for that
> > purpose,
> > and I'm pretty sure python might.
> 
> Python perhaps, but I'm not aware of any embeddable perl distributions.  
> Although Lua was designed expressly for embedding.  More interesting I think
> would be to modify the PD Euphoria source to be embedded.
> 
> Matt Lewis

That sounds right, Matt:  Eu^2

Maybe Mr Jackson's now rather old Interactive Euphoria Interpreter
'E!' might have some usable parts?

John

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

22. Re: Lua wrappers

John E wrote:
> 
> Matt Lewis wrote:
> > 
> > More interesting I think would be to modify the PD Euphoria source to be 
> > embedded.
> > 
>
> That sounds right, Matt:  Eu^2
> 
> Maybe Mr Jackson's now rather old Interactive Euphoria Interpreter
> 'E!' might have some usable parts?

I don't think so.  However, if you need something right now, as I told
CK, you could use Euscript:

http://www14.brinkster.com/matthewlewis/projects.html#interpreter

I think it's roughly Euphoria 2.1 or 2.2 compatible.

Matt Lewis

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

23. Re: Lua wrappers

Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

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

24. Re: Lua wrappers

Matt Lewis wrote:
> 
 
> I don't think so.  However, if you need something right now, as I told
> CK, you could use Euscript:
> 
> <a
> href="http://www14.brinkster.com/matthewlewis/projects.html#interpreter">http://www14.brinkster.com/matthewlewis/projects.html#interpreter</a>
> 
> I think it's roughly Euphoria 2.1 or 2.2 compatible.
> 

Matt:

   I have look at your Euscript in the past but I
have never been able to figure out how to use it.
Could'nt you show some simple examples that everyone
could understand other than the users that wrote it.

Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

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

25. Re: Lua wrappers

Matt Lewis wrote:
> 
> Damien wrote:
> > 
> > why not code a wrapper for perl or python? they are just as good as lua for
> > embedded scripting. I know perl comes with a library specifically for that
> > purpose,
> > and I'm pretty sure python might.
> 
> Python perhaps, but I'm not aware of any embeddable perl distributions.  
> Although Lua was designed expressly for embedding.  More interesting I think
> would be to modify the PD Euphoria source to be embedded.
> 
> Matt Lewis

Any program can link with libperl.[so|dll] to be able to interpret Perl in 
your app, but I agree with the other posters, Perl is just too big and Lua
is tailor made for such use.

Perl's not <i>that</i> complicated though :)

Gary

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

26. Re: Lua wrappers

Bernie Ryan wrote:
> 
> Matt Lewis wrote:
> > 
> > http://www14.brinkster.com/matthewlewis/projects.html#interpreter
> > 
> 
> Matt:
> 
>    I have look at your Euscript in the past but I
> have never been able to figure out how to use it.
> Could'nt you show some simple examples that everyone
> could understand other than the users that wrote it.
> 

I think using it is rather simple.  The script.ex that comes with it
shows a simple, interactive use that allows you to change a couple of
variables.  This shows the basics of setting up a couple of routines 
that can be called from within scripts using add_routine().

For a more involved example, you can check out wxEDB.  The user can create
forms and attach events. The scripting is set up through wxedbscript.e.  I 
had to wrap some Win32Lib routines, because that's how EDB started out.  I 
use the concept of different scripts--basically, the scripts from one form 
shouldn't interact with another's.  Scripts are executed by do_event() in
wxedbform.e.

Matt Lewis

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

27. Lua wrappers

I posted the lua wrapper I made a little while ago.  It should appear on the MRC
list in a few hours.

Vincent:  why should we have to use your library for something as basic as
dynamic includes.  In my opinion something like this should be built-in.  This
is not to say there's anything wrong with using your library though.

Later,
Jeremy

Unknown: "All that is necessary for evil to triumph is for good men to do
nothing."

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

28. Re: Lua wrappers

> Vincent:  why should we have to use your library for something as basic as
> dynamic includes.  In my opinion something like this should be built-in.  This
> is not to say there's anything wrong with using your library though.

What is the benefit of including files dynamically, instead of including
all of the files at runtime? I can't think of one reason why I would need
to include files dynamically.

----If you continue to do what you have always done,
you will get what you have always gotten.----

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

29. Re: Lua wrappers

Jeremy Peterson wrote:
> 
> I posted the lua wrapper I made a little while ago.  It should appear on the
> MRC list in a few hours.  
> 
> Vincent:  why should we have to use your library for something as basic as
> dynamic includes.  In my opinion something like this should be built-in.  This
> is not to say there's anything wrong with using your library though.
> 
> Later,
> Jeremy
> 
> Unknown: "All that is necessary for evil to triumph is for good men to do
> nothing."

Euphoria doesn't support dynamic inclusion functionability because of the
optional ability to bind or shroud and translate to C then compile. My library
doesn't work with bound or translated/compiled applications either.

Why should we use a different language, that is wrapped to Euphoria to do that,
when we could just do it in Euphoria? They're may be other specific uses for a
Lua wrapper, but nothing I would ever need.

Your PostgreSQL wrappers look interesting though... how did you finish it so
quickly? Did you use a program that automatically generates wrappers for you like
DAWG?


Regards,
Vincent

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

30. Re: Lua wrappers

Did you use a program that automatically generates wrappers for you
> like DAWG?


What is DAWG?

----If you continue to do what you have always done,
you will get what you have always gotten.----

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

31. Re: Lua wrappers

Never mind...I found out what DAWG is...interesting...

----If you continue to do what you have always done,
you will get what you have always gotten.----

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

32. Re: Lua wrappers

Vincent wrote:
> 
(snip)
> 
> Why should we use a different language, that is wrapped to Euphoria to do
> that,
> when we could just do it in Euphoria? They're may be other specific uses for
> a Lua wrapper, but nothing I would ever need.
> 
(snip)

The biggest plus I see for it is when translating/remaking an app that use Lua
for scripting into Euphoria. Lua is one of the "de facto" scripting languages in
use I've seen plugins written for Duke Nukem 3D, DarkBASIC, GIMP, and others.
Since it's so widespread it makes sence that we'd want it for Euphoria
applications as well. Sure, Euphoria as a scripting language would be great but
many apps use Lua and people expect Lua.


The Euphoria Standard Library project :
    http://esl.sourceforge.net/
The Euphoria Standard Library mailing list :
    https://lists.sourceforge.net/lists/listinfo/esl-discussion

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

33. Re: Lua wrappers

D. Newhall wrote:
> 
-snip
> Sure, Euphoria as a scripting language would be great but many apps
> use Lua and people expect Lua.
>

Yeah, and Euphoria as a progamming language is pretty great, but many
programs use C++ and people expect C++.

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

34. Re: Lua wrappers

Evan Marshall wrote:
> 
(snip)
> 
> Yeah, and Euphoria as a progamming language is pretty great, but many
> programs use C++ and people expect C++.

Yeah, so? The language you use to write a program isn't that important. However,
the languages supported as an innterface to your program are. Just like you
expect certain things from a text editor some people expect certain languages to
be supported for scripting. Lua is one of theose languages.


The Euphoria Standard Library project :
    http://esl.sourceforge.net/
The Euphoria Standard Library mailing list :
    https://lists.sourceforge.net/lists/listinfo/esl-discussion

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

35. Re: Lua wrappers

No Vincent, I'm just a really great programmer! smile  Just kidding.  I used 
several different tools to quickly develop that wrapper.

Jeremy.

Edmund Burke: "All that is necessary for evil to triumph is for good men to do
nothing."

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

36. Re: Lua wrappers

Jeremy Peterson wrote:

> No Vincent, I'm just a really great programmer! smile  Just kidding.  I used 
> several different tools to quickly develop that wrapper.

> Jeremy.

Heh... Well I'm sure you're a much better programmer than me. smile


Regards,
Vincent

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

Search



Quick Links

User menu

Not signed in.

Misc Menu