unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Cao Jin <lop@null.net>
To: Panicz Maciej Godek <godek.maciek@gmail.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: [ANN] An impudent introduction to Guile
Date: Sat, 6 Feb 2016 17:16:13 +0800	[thread overview]
Message-ID: <56B5B9DD.6070300@null.net> (raw)
In-Reply-To: <CAMFYt2Y1JN8jchK8nUUaXv8HtM+kuJuYSJdGRrJrJZR0Qh-k5Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2988 bytes --]

Hi Panicz,

Thank you for these information.

On 2/6/2016 14:08, Panicz Maciej Godek wrote:
> Hi
>
> 2016-02-06 1:47 GMT+01:00 Cao Jin <lop@null.net <mailto:lop@null.net>>:
>
>     It's interesting. I have used Matlab for many years, but never
>     tried R. As for as I know, there are tons of state-of-the-art
>     library in R and Matlab.
>
>     After skimming your paper, I wander that
>     1) Are these library used in your code example implemented by
>     yourself? Or other libraries are called, such as LAPACK for linear
>     algebra?
>
>
> Everything is either written from scratch, or uses one of the helper
> libraries (two such libraries are included in the repo; the other is
> SRFI-1).
> The point of the book is that it is not a tutorial on using libraries,
> but it explains some methods and translates these explanations to
> Scheme, so that they can be modified and extended easily.
>  
> If you are looking  for some serious numerical libraries for Scheme,
> there's a very powerful scmutils package available
>
> http://www.cs.rochester.edu/~gildea/guile-scmutils/
> <http://www.cs.rochester.edu/%7Egildea/guile-scmutils/>
>
> I've actually used its code for Singular Value Decomposition to
> perform Principal Component Analysis.
OK, I will try it later.
>
>     2) Is it easy to use scheme and your library, or maybe some
>     others, to do computational job? In practice, those who use R or
>     Matlab want their idea to be proved quickly, not to spend time on
>     coding style, right?
>
> I think it depends on a point of view. I initially tried using R, but
> it was causing many unexpected problems, but I already knew Scheme
> quite well, and for me even implementing the libraries from scratch
> wasn't that much of  a job.
> But the book is mostly about fun, and about understanding.
> Also, interfacing Guile with Emacs through Geiser is an incredible
> productivity boost.
>
> Interestingly, when I benchmarked the genetic algorithm that I wrote
> with genalg package from R, the Scheme version run in Guile actually
> outperformed the R version, although it was written in completely
> performance-naive style.
>
It's great to see this result.

> On the other hand, if you wanted to use the decision trees classifier,
> you'd probably want to apply memoization.
>
>     If scheme can do most computational job as python numpy does, I
>     will switch to it.
>
>
> I think that in practice Scheme can be even more convinient, as it
> provides native support for complex numbers
>
> I also think it would be helpful to interface Guile with plot
> generation. I see that Nala has a guile-plot package, but I haven't
> tried it. I personally wrote some code for generating LaTeX pgfplots
> for the project, and can add it to the repo if you llike.
>

As described above, I think it is worth trying Scheme for numerical
computing. Your work is appreciated!

Regards,
Lop


[-- Attachment #2: Type: text/html, Size: 6286 bytes --]

  parent reply	other threads:[~2016-02-06  9:16 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-06  0:47 [ANN] An impudent introduction to Guile Cao Jin
2016-02-06  6:08 ` Panicz Maciej Godek
2016-02-06  8:52   ` Arne Babenhauserheide
2016-02-06  9:16   ` Cao Jin [this message]
2016-02-06 10:18   ` Jan Wedekind
2016-02-07  9:54 ` A0
2016-02-07 21:51   ` Lawrence Bottorff
2016-02-08 19:58     ` Panicz Maciej Godek
2016-02-08 20:31       ` An impudent introduction to impudence Keith Wright
2016-02-09  6:29         ` Panicz Maciej Godek
2016-02-09  8:26       ` [ANN] An impudent introduction to Guile tomas
2016-02-09 18:41       ` Lawrence Bottorff
2016-02-10 19:47         ` Panicz Maciej Godek
  -- strict thread matches above, loose matches on Subject: below --
2016-02-04 23:09 Panicz Maciej Godek
2016-02-05  0:30 ` Christopher Allan Webber
     [not found]   ` <CAMFYt2YkMi2X0G_7eTtwkc66w1UhXndy+z91ui+PF6d0ie2Rug@mail.gmail.com>
     [not found]     ` <87zivfxg1w.fsf@dustycloud.org>
2016-02-05 21:46       ` Panicz Maciej Godek
2016-02-05  6:48 ` Shakthi Kannan
2016-02-05 18:55 ` Amirouche Boubekki
2016-02-05 22:09   ` Panicz Maciej Godek
2016-02-05 19:46 ` Lawrence Bottorff
2016-02-05 20:29   ` Panicz Maciej Godek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56B5B9DD.6070300@null.net \
    --to=lop@null.net \
    --cc=godek.maciek@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).