From: Andrew Cohen <acohen@ust.hk>
To: emacs-devel@gnu.org
Subject: Re: sorting in C
Date: Wed, 23 Feb 2022 22:12:45 +0800 [thread overview]
Message-ID: <87wnhl659e.fsf@ust.hk> (raw)
In-Reply-To: CAP_d_8XTuDPEooxf9bjqkksXdcMrQhbLmLasjDOwwTmvGpOWEg@mail.gmail.com
>>>>> "YK" == Yuri Khan <yuri.v.khan@gmail.com> writes:
YK> On Wed, 23 Feb 2022 at 19:58, Andrew Cohen <acohen@ust.hk> wrote:
>> Err, no? I have it all working but I'm using a C version of
>> TIMSORT from the web. I don't think the license is acceptable so
>> it probably needs to be written from scratch. Shouldn't be that
>> difficult (the algorithm itself is well-documented) but I'm not
>> sure how much time I have to finish it.
YK> Python’s license has been GPL-compatible for a long time[1], and
YK> Python has an implementation of timsort — in fact, Wikipedia
YK> says timsort was developed *for* Python[2]. Could probably crib
YK> that.
Thanks for the suggestion. I started with the python code (which is
where I learned about timsort in the first place :)). The description of
the algorithm is excellent, but the actual code is pretty specific to
the python case. But it is still a very useful guide.
I don't want to make a big deal of it---it shouldn't be too hard to
write an unencumbered implementation.
--
Andrew Cohen
next prev parent reply other threads:[~2022-02-23 14:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-22 2:52 sorting in C Andrew Cohen
2022-02-22 12:30 ` Eli Zaretskii
2022-02-22 12:54 ` Andrew Cohen
2022-02-22 13:11 ` Eli Zaretskii
2022-02-23 4:14 ` Andrew Cohen
2022-02-23 12:34 ` Eli Zaretskii
2022-02-23 12:53 ` Andrew Cohen
2022-02-23 13:14 ` Eli Zaretskii
2022-02-23 13:52 ` Andrew Cohen
2022-02-23 14:06 ` Andrew Cohen
2022-02-23 14:18 ` Eli Zaretskii
2022-02-26 23:54 ` Andrew Cohen
2022-02-27 2:27 ` Andrew Cohen
2022-02-27 7:28 ` Eli Zaretskii
2022-02-27 9:11 ` Andrew Cohen
2022-02-27 9:29 ` Eli Zaretskii
2022-02-27 10:42 ` Andrew Cohen
2022-03-04 0:13 ` Andrew Cohen
2022-03-04 7:05 ` Eli Zaretskii
2022-02-23 13:19 ` Yuri Khan
2022-02-23 14:12 ` Andrew Cohen [this message]
2022-02-22 13:12 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnhl659e.fsf@ust.hk \
--to=acohen@ust.hk \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.