1. Lua wrappers
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Dec 14, 2005
- 643 views
I still haven't gotten any yes/no answers from you guys. Do any of you need this??? Later, Jeremy Peterson
2. Re: Lua wrappers
- Posted by C Bouzy <eucoder at hotmail.com> Dec 14, 2005
- 592 views
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.----
3. Re: Lua wrappers
- Posted by cklester <cklester at yahoo.com> Dec 14, 2005
- 597 views
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/
4. Re: Lua wrappers
- Posted by C Bouzy <eucoder at hotmail.com> Dec 14, 2005
- 588 views
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.----
5. Re: Lua wrappers
- Posted by cklester <cklester at yahoo.com> Dec 14, 2005
- 595 views
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/
6. Re: Lua wrappers
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Dec 14, 2005
- 603 views
Ok Chris, I'll post it when its finished. It should be up there by friday or sometime next week. Later, Jeremy
7. Re: Lua wrappers
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Dec 14, 2005
- 616 views
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."
8. Re: Lua wrappers
- Posted by Alex Chamberlain <alex.chamberlain at tiscali.co.uk> Dec 14, 2005
- 600 views
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
9. Re: Lua wrappers
- Posted by cklester <cklester at yahoo.com> Dec 14, 2005
- 607 views
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/
10. Re: Lua wrappers
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 14, 2005
- 617 views
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
11. Re: Lua wrappers
- Posted by cklester <cklester at yahoo.com> Dec 14, 2005
- 592 views
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/
12. Re: Lua wrappers
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Dec 14, 2005
- 614 views
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."
13. Re: Lua wrappers
- Posted by Alex Chamberlain <alex.chamberlain at tiscali.co.uk> Dec 14, 2005
- 597 views
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
14. Re: Lua wrappers
- Posted by Vincent <darkvincentdude at yahoo.com> Dec 14, 2005
- 595 views
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
15. Re: Lua wrappers
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Dec 14, 2005
- 593 views
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."
16. Re: Lua wrappers
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Dec 14, 2005
- 585 views
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."
17. Re: Lua wrappers
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 14, 2005
- 599 views
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
18. Re: Lua wrappers
- Posted by Damien <damo at lakeregioncomputing.com> Dec 14, 2005
- 626 views
- Last edited Dec 15, 2005
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"
19. Re: Lua wrappers
- Posted by John E <jwfe at talk21.com> Dec 15, 2005
- 600 views
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.
20. Re: Lua wrappers
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 15, 2005
- 600 views
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
21. Re: Lua wrappers
- Posted by John E <jwfe at talk21.com> Dec 15, 2005
- 598 views
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
22. Re: Lua wrappers
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 15, 2005
- 590 views
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
23. Re: Lua wrappers
- Posted by Bernie Ryan <xotron at bluefrog.com> Dec 15, 2005
- 595 views
- Last edited Dec 16, 2005
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
24. Re: Lua wrappers
- Posted by Bernie Ryan <xotron at bluefrog.com> Dec 15, 2005
- 594 views
- Last edited Dec 16, 2005
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
25. Re: Lua wrappers
- Posted by ags <eu at 531pi.co.nz> Dec 16, 2005
- 596 views
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
26. Re: Lua wrappers
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 16, 2005
- 603 views
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
27. Lua wrappers
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Dec 16, 2005
- 587 views
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."
28. Re: Lua wrappers
- Posted by C Bouzy <eucoder at hotmail.com> Dec 16, 2005
- 595 views
> 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.----
29. Re: Lua wrappers
- Posted by Vincent <darkvincentdude at yahoo.com> Dec 16, 2005
- 598 views
- Last edited Dec 17, 2005
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
30. Re: Lua wrappers
- Posted by C Bouzy <eucoder at hotmail.com> Dec 16, 2005
- 607 views
- Last edited Dec 17, 2005
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.----
31. Re: Lua wrappers
- Posted by C Bouzy <eucoder at hotmail.com> Dec 16, 2005
- 596 views
- Last edited Dec 17, 2005
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.----
32. Re: Lua wrappers
- Posted by D. Newhall <derek_newhall at yahoo.com> Dec 16, 2005
- 580 views
- Last edited Dec 17, 2005
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
33. Re: Lua wrappers
- Posted by Evan Marshall <1evan at sbcglobal.net> Dec 17, 2005
- 608 views
- Last edited Dec 18, 2005
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++.
34. Re: Lua wrappers
- Posted by D. Newhall <derek_newhall at yahoo.com> Dec 17, 2005
- 584 views
- Last edited Dec 18, 2005
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
35. Re: Lua wrappers
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Dec 18, 2005
- 595 views
No Vincent, I'm just a really great programmer!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."
36. Re: Lua wrappers
- Posted by Vincent <darkvincentdude at yahoo.com> Dec 18, 2005
- 587 views
- Last edited Dec 19, 2005
Jeremy Peterson wrote: > No Vincent, I'm just a really great programmer!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.
Regards, Vincent