Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Sorcery functions in C

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Belxjander <Belxjander AT 202-0-42-165.paradise.net.nz>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Sorcery functions in C
  • Date: Sun, 29 Jun 2003 02:34:52 +1200

On Sun, 29 Jun 2003 02:29, Eric Sesterhenn wrote:
> Hi,
>
> sorrow and I where thinking about reimplementing some slow sorcery
> functions in C, by starting replacing slow stuff from
> /var/lib/sorcery/modules with a wrapper like
> "function oldfunc () { spellbook oldfunc; }"
> where "spellbook" would be a compiled binary, thus getting some speed into
> this stuff. We would also volunteer in doing this. The idea is not to
> replace the entire scripts with a binary but just some slow stuff. We got
> to this idea, when sorrow implemented a "gaze size" and xiticix's python
> example was much faster than the bash implementation, but I think forcing
> everybody to use python is not a good idea, so what do you think about this
> idea?

it would be good if it was a simple /var/lib/sorcery/spellbook/<function>
binary set... that means sorcery could simply go...

if exists <functionpath> then "call <function> arguments"
else
>>current code pulled from "<function.sh>" && applied...
endif

> cu Eric/snakebyte

Belxjander/Jeremy




Archive powered by MHonArc 2.6.24.

Top of Page