bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support of log10?


From: arnold
Subject: Re: Support of log10?
Date: Thu, 01 Jul 2021 08:07:00 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Once again, this is off topic for this list.  Anyone who wants to
respond should do so privately, please.

Arnold

Peng Yu <pengyu.ut@gmail.com> wrote:

> >      B. Write a loadable extension in C that calls the math library's
> >         log10() function. The manual explains how to do this. This
> >         would be a very simple extension that should not take long
> >         to write.
>
>
> NAME
>        awka-elm - Awka Extended Library Methods
>
>
> DESCRIPTION
>        Awka  is  a  translator  of  AWK programs to ANSI-C code, and a library
>        (libawka.a) against which the code is  linked  to  create  executables.
>        Awka is described in the awka manpage.
>
>        The  Extended  Library  Methods (ELM) provide a way of adding new func-
>        tions to the AWK language, so that they appear in your AWK code  as  if
>        they were builtin functions such as substr() or index().
>
> It sounds like the above is an even better approach. I can just
> translate awk code to C then any C functions can be linked to the
> translated program, which automatically solves two problems: 1) speed
> up awk, 2) use functions not in awk already.
>
> Anybody who has experience with awka-elm can share your experience
> with awka-elm?
>
> -- 
> Regards,
> Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]