SkillAgentSearch skills...

Bollywood

PoC actor model implementation

Install / Use

/learn @perbu/Bollywood
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Bollywood

Bollywood a simplistic actor model framework. I wrote this to get an idea how an actor model could be implemented in Go.

It is not meant to be used in production and doesn't do support networking, limiting the actors to work within a single process.

Usage

    e := NewEngine()
    // spawn a baker actor 
	err := e.Spawn("baker", &baker{})
	if err != nil {
		panic(err)
	}
	// send a message to the baker
	err = e.Send("baker", &bakeBread{})
	if err != nil {
        panic(err)
    }
    // stop the baker:
    err = e.Stop("baker")
    if err != nil {
        panic(err)
    }

See the tests for usage

What about a real Actor Model implementation in Go?

Please see Hollywood for a more complete implementation of the Actor Model in Go.

Related Skills

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated1y ago
Forks1

Languages

Go

Security Score

70/100

Audited on Feb 16, 2025

No findings