Is there some golang embeddable script language? Like lua in C

6,821 views
Skip to first unread message

Sunixm

unread,
Oct 12, 2010, 8:19:56 AM10/12/10
to golan...@googlegroups.com
Hi nuts,

James Gosling once said that every configuration file becomes a programming language

So is there some script languages can be embeded in Golang just Lua in C

It's said the Golang is much more Python like but python is maybe too big to fit the 
embeded enviroments and not so easy to use as Lua in C since python has mush .dll/.so dependency while Lua is simpler both in libs and syntax

Golang itself has a 
interpreter experimented in package exp/eval but is it or will it be strong enough to act as a scripy language just as Lua?

Ostsol

unread,
Oct 12, 2010, 8:31:01 AM10/12/10
to golang-nuts
Most interesting in this area is Eleanor Mchugh's GoLightly project, a
virtual machine written in go. Among other small languages, she is
trying to implement Ruby with it.

On Oct 12, 6:19 am, Sunixm <sun...@gmail.com> wrote:
> Hi nuts,
>
> James *Gosling* once said that every *configuration* file becomes a
> programming *language
>
> So is there some script languages can be embeded in Golang just Lua in C
>
> It's said the Golang is much more Python like but python is maybe too big to
> fit the **embeded enviroments and not so easy to use as Lua in C since
> python has mush .dll/.so dependency while Lua is simpler both in libs and
> syntax
>
> Golang itself has a *interpreter experimented in package exp/eval but is it

fango

unread,
Oct 12, 2010, 10:15:10 AM10/12/10
to golang-nuts

with the speedy compilation, GO is both good at scripting and serious
big coding. I don't want to look back to Lua, Python or Java, if lord
permits.

Cheers,
Fango

jimmy frasche

unread,
Oct 12, 2010, 10:35:19 AM10/12/10
to Sunixm, golan...@googlegroups.com
On Tue, Oct 12, 2010 at 5:19 AM, Sunixm <sun...@gmail.com> wrote:
> Hi nuts,
>
> James Gosling once said that every configuration file becomes a
> programming language
>
> So is there some script languages can be embeded in Golang just Lua in C

http://code.google.com/p/gelo/ that's what I wrote this for.

Kyle Consalus

unread,
Oct 12, 2010, 11:21:01 AM10/12/10
to Sunixm, golan...@googlegroups.com
See the "Virtual Machines and Languages" section at http://go-lang.cat-v.org/go-code

There are a number of interpreters and virtual machines, no doubt most of which could be embedded.
There also appears to be a binding to the Lua C api at http://github.com/afitz/golua

On Tue, Oct 12, 2010 at 5:19 AM, Sunixm <sun...@gmail.com> wrote:

Lars

unread,
Oct 12, 2010, 8:13:53 PM10/12/10
to golang-nuts
What type of scripting are you using Go for? I've only recently dipped
my feet in, but Go feels a little low level for everyday once-off
tasks. I'd love to discover otherwise.

Paulo Pinto

unread,
Oct 13, 2010, 12:44:21 AM10/13/10
to golang-nuts
That is also my opinion.

It is very fine for something I would use C for, but not for the high
level programming I am used to.

--
Paulo

Archos

unread,
Oct 13, 2010, 6:00:02 AM10/13/10
to golang-nuts
I'm going to use it for substitute my python scripts that manage my
systems, and also to substitute bash scripts since that it ends up
being code not maintainable.

I prefer to write much but I want to be sure that it will be as solid
as a rock.
Reply all
Reply to author
Forward
0 new messages