bug-gawk
[Top][All Lists]
Advanced

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

Re: Support of log10?


From: Peng Yu
Subject: Re: Support of log10?
Date: Thu, 1 Jul 2021 09:47:08 -0500

Not necessarily. This is a question related to addressing a missing feature
of gawk. The solution may not be in gawk itself. But people using gawk may
be interested in knowing a better solution even the solution is not in gawk.

On Thu, Jul 1, 2021 at 9:07 AM <arnold@skeeve.com> wrote:

> 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
>
-- 
Regards,
Peng


reply via email to

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