OSDN Git Service

joypy/Thun.git
21 months agoRemove psaces from some filenames.
Simon Forman [Tue, 6 Sep 2022 21:33:51 +0000 (14:33 -0700)]
Remove psaces from some filenames.

22 months agoRebuild HTML docs.
Simon Forman [Tue, 16 Aug 2022 22:26:07 +0000 (15:26 -0700)]
Rebuild HTML docs.

22 months agoA good talk.
Simon Forman [Tue, 16 Aug 2022 00:33:34 +0000 (17:33 -0700)]
A good talk.

22 months agoMinor edits.
Simon Forman [Mon, 15 Aug 2022 23:20:59 +0000 (16:20 -0700)]
Minor edits.

2 years agoNeed to keep definition for ucons around
Simon Forman [Tue, 5 Apr 2022 18:15:34 +0000 (11:15 -0700)]
Need to keep definition for ucons around

the Nim implementation has first and rest but not uncons.

2 years agouncons as basis
Simon Forman [Tue, 5 Apr 2022 17:06:40 +0000 (10:06 -0700)]
uncons as basis

- clear deletes stack at once, not in a loop
- make uncons basis and define first and rest in tems of it

2 years agoTwo wrappers
Simon Forman [Tue, 5 Apr 2022 17:02:01 +0000 (10:02 -0700)]
Two wrappers

One for math ops, the other for Boolean.

Fixes: https://todo.sr.ht/~sforman/thun-der/13

2 years agoMinor cleanup.
Simon Forman [Mon, 4 Apr 2022 16:09:01 +0000 (09:09 -0700)]
Minor cleanup.

2 years agoStart a per-project README for Python.
Simon Forman [Mon, 4 Apr 2022 15:01:51 +0000 (08:01 -0700)]
Start a per-project README for Python.

2 years agoStart to update README
Simon Forman [Mon, 4 Apr 2022 15:00:09 +0000 (08:00 -0700)]
Start to update README

2 years agoExpression?
Simon Forman [Mon, 4 Apr 2022 14:58:22 +0000 (07:58 -0700)]
Expression?

2 years agoRebuild HTML docs.
Simon Forman [Thu, 31 Mar 2022 17:10:22 +0000 (10:10 -0700)]
Rebuild HTML docs.

2 years agoSidebar links should be a little farther apart.
Simon Forman [Wed, 30 Mar 2022 19:12:19 +0000 (12:12 -0700)]
Sidebar links should be a little farther apart.

2 years agoI want to override some CSS.
Simon Forman [Wed, 30 Mar 2022 19:11:20 +0000 (12:11 -0700)]
I want to override some CSS.

The links on the sidebar are too close together.

2 years agoAnd the rest.
Simon Forman [Tue, 29 Mar 2022 22:11:19 +0000 (15:11 -0700)]
And the rest.

Whew!  Glad that's done.

2 years agoT's and U's.
Simon Forman [Tue, 29 Mar 2022 19:57:41 +0000 (12:57 -0700)]
T's and U's.

2 years agoThe rest of the S's.
Simon Forman [Tue, 29 Mar 2022 15:50:48 +0000 (08:50 -0700)]
The rest of the S's.

2 years agoQ, R's and some S's.
Simon Forman [Tue, 29 Mar 2022 01:39:42 +0000 (18:39 -0700)]
Q, R's and some S's.

2 years agoAnd there are the P's.
Simon Forman [Sun, 27 Mar 2022 20:04:42 +0000 (13:04 -0700)]
And there are the P's.

2 years agoThe O's.
Simon Forman [Sun, 27 Mar 2022 19:01:37 +0000 (12:01 -0700)]
The O's.

2 years agoThe N's.
Simon Forman [Sun, 27 Mar 2022 18:11:20 +0000 (11:11 -0700)]
The N's.

2 years agoCovered by EXCLAMATION-MARK•HYPHEN-MINUS.md
Simon Forman [Sun, 27 Mar 2022 18:03:57 +0000 (11:03 -0700)]
Covered by EXCLAMATION-MARK•HYPHEN-MINUS.md

2 years agoThe M's.
Simon Forman [Sun, 27 Mar 2022 17:52:17 +0000 (10:52 -0700)]
The M's.

2 years agoMore misc. ref docs.
Simon Forman [Sat, 26 Mar 2022 20:12:16 +0000 (13:12 -0700)]
More misc. ref docs.

2 years agoTwo L's.
Simon Forman [Sat, 26 Mar 2022 19:17:31 +0000 (12:17 -0700)]
Two L's.

2 years agoThe I's are done.
Simon Forman [Sat, 26 Mar 2022 00:41:31 +0000 (17:41 -0700)]
The I's are done.

2 years agoi and ii
Simon Forman [Fri, 25 Mar 2022 22:16:30 +0000 (15:16 -0700)]
i and ii

2 years agoThe H's.
Simon Forman [Fri, 25 Mar 2022 21:46:56 +0000 (14:46 -0700)]
The H's.

2 years agoThe rest of the G's.
Simon Forman [Fri, 25 Mar 2022 21:16:37 +0000 (14:16 -0700)]
The rest of the G's.

2 years agoMost of the G's.
Simon Forman [Fri, 25 Mar 2022 19:39:03 +0000 (12:39 -0700)]
Most of the G's.

2 years agoThat is the F's done.
Simon Forman [Fri, 25 Mar 2022 18:12:48 +0000 (11:12 -0700)]
That is the F's done.

2 years agoMake divmod work like the docs say it does.
Simon Forman [Fri, 25 Mar 2022 17:56:15 +0000 (10:56 -0700)]
Make divmod work like the docs say it does.

2 years agoMinor cleanup.
Simon Forman [Fri, 25 Mar 2022 03:28:37 +0000 (20:28 -0700)]
Minor cleanup.

2 years agoOnly two E's.
Simon Forman [Fri, 25 Mar 2022 03:27:22 +0000 (20:27 -0700)]
Only two E's.

2 years agoThere go the D's!
Simon Forman [Fri, 25 Mar 2022 03:11:16 +0000 (20:11 -0700)]
There go the D's!

This is a slog, but it's great to be getting it done.

2 years agoThe rest of the C's.
Simon Forman [Thu, 24 Mar 2022 20:35:37 +0000 (13:35 -0700)]
The rest of the C's.

2 years agoMost of the C's.
Simon Forman [Thu, 24 Mar 2022 19:33:20 +0000 (12:33 -0700)]
Most of the C's.

2 years agoRef docs B's.
Simon Forman [Thu, 24 Mar 2022 18:15:25 +0000 (11:15 -0700)]
Ref docs B's.

2 years agoGot through the A's.
Simon Forman [Thu, 24 Mar 2022 16:45:29 +0000 (09:45 -0700)]
Got through the A's.

2 years agoUpdate some ref docs.
Simon Forman [Thu, 24 Mar 2022 04:25:22 +0000 (21:25 -0700)]
Update some ref docs.

2 years agoUpdate some ref docs.
Simon Forman [Wed, 23 Mar 2022 21:22:53 +0000 (14:22 -0700)]
Update some ref docs.

2 years agoMinor cleanup.
Simon Forman [Wed, 23 Mar 2022 20:47:58 +0000 (13:47 -0700)]
Minor cleanup.

2 years agoUse the right files.
Simon Forman [Wed, 23 Mar 2022 20:43:18 +0000 (13:43 -0700)]
Use the right files.

2 years agoMove the build stuff to its own dir.
Simon Forman [Wed, 23 Mar 2022 20:40:20 +0000 (13:40 -0700)]
Move the build stuff to its own dir.

Now Joypy/docs/reference/*.md are just the individual function
documents.

2 years agoIt woulda looked like this,
Simon Forman [Wed, 23 Mar 2022 20:06:32 +0000 (13:06 -0700)]
It woulda looked like this,

if I hadda not had to manually tweak it.

2 years agoGoodness, that was brutal.
Simon Forman [Wed, 23 Mar 2022 20:02:19 +0000 (13:02 -0700)]
Goodness, that was brutal.

The `!-` name doesn't work as a title for the conversion from ReST to
Markdown.  Maybe that's a bug in Pandoc, but more likely it's a legit
syntax gotcha in Mearkdown itself.

    !-
    ^^^^

In ReST turns into:

    !-\^\^\^\^

In the Markdown.  :(

It should be:

    # !-

Instead.

2 years agoHow hard can it be to concatenate files with newlines between them?
Simon Forman [Wed, 23 Mar 2022 18:45:36 +0000 (11:45 -0700)]
How hard can it be to concatenate files with newlines between them?

This hard.

Now add '#'s to those headers...

2 years agoMD in the yow dir. Why not?
Simon Forman [Wed, 23 Mar 2022 18:44:38 +0000 (11:44 -0700)]
MD in the yow dir.  Why not?

2 years agoThis is some janky Rube Goldberg shtuff.
Simon Forman [Wed, 23 Mar 2022 17:59:23 +0000 (10:59 -0700)]
This is some janky Rube Goldberg shtuff.

2 years agoAnd rebuild the HTML to see how it looks.
Simon Forman [Wed, 23 Mar 2022 17:53:29 +0000 (10:53 -0700)]
And rebuild the HTML to see how it looks.

2 years agoNow pile all the ref docs into the refs dir.
Simon Forman [Wed, 23 Mar 2022 17:52:58 +0000 (10:52 -0700)]
Now pile all the ref docs into the refs dir.

2 years agoPandoc!?
Simon Forman [Wed, 23 Mar 2022 17:50:32 +0000 (10:50 -0700)]
Pandoc!?

    <p>if basis</p>
    <h2 id="discussion-60">Discussion</h2>
    <h2 id="crosslinks-59">## Crosslinks</h2>
    <h1 id="drop">drop</h1>
    <p>Basis Function Combinator</p>

2 years agoMove the MD files into the reference dir.
Simon Forman [Wed, 23 Mar 2022 17:40:04 +0000 (10:40 -0700)]
Move the MD files into the reference dir.

2 years agoAnd there we are, Markdown stubs for each function.
Simon Forman [Wed, 23 Mar 2022 17:36:30 +0000 (10:36 -0700)]
And there we are, Markdown stubs for each function.

I hate filenames, Git hates Bullet • symbol, SNAFU.
I have no idea how to properly escape gnarly filenames.  I don't want to
restrict Joy function names (any non-space, non-[] Unicode) so I just
did the quick and dirty thing to make filenames.

2 years agoWay overthinking this.
Simon Forman [Wed, 23 Mar 2022 17:33:02 +0000 (10:33 -0700)]
Way overthinking this.

I want stub Markdown files for each (as yet undocumented) function.
The functions have docstrings but they are in ReST format.  Using the
`wrod.py` script I can fins all the functions that don't yet have doc
files and write their docstrings into a ReST template.  Then I use Make
and Pandoc to convert the ReST files to Markdown.

2 years agoD'oh! Forgot to add HEADER.md file.
Simon Forman [Wed, 23 Mar 2022 04:50:52 +0000 (21:50 -0700)]
D'oh!  Forgot to add HEADER.md file.

2 years agoMake Functor-Reference from individual pages.
Simon Forman [Wed, 23 Mar 2022 04:47:23 +0000 (21:47 -0700)]
Make Functor-Reference from individual pages.

This is a little clunky, for example, see "!-" aka "not negative".

2 years agoMinor cleanup.
Simon Forman [Wed, 23 Mar 2022 04:42:24 +0000 (21:42 -0700)]
Minor cleanup.

2 years agoMove some misc docs.
Simon Forman [Wed, 23 Mar 2022 04:28:39 +0000 (21:28 -0700)]
Move some misc docs.

2 years agoMinor cleanup.
Simon Forman [Wed, 23 Mar 2022 04:24:07 +0000 (21:24 -0700)]
Minor cleanup.

2 years agoWorking to clean up docs.
Simon Forman [Wed, 23 Mar 2022 04:22:57 +0000 (21:22 -0700)]
Working to clean up docs.

2 years agoRemove parse, no strings in base library.
Simon Forman [Tue, 22 Mar 2022 14:59:11 +0000 (07:59 -0700)]
Remove parse, no strings in base library.

References: https://todo.sr.ht/~sforman/Xerblin/10

2 years agoBump version to tickle PyPI.
Simon Forman [Thu, 10 Mar 2022 01:40:57 +0000 (17:40 -0800)]
Bump version to tickle PyPI.

Tickle PyPI to make JOY_BOOL_LITERALS available to Xerblin.

Make JOY_BOOL_LITERALS available to Xerblin so ReadTheDocs can build the
Xerblin docs.

2 years agoExport JOY_BOOL_LITERALS
Simon Forman [Wed, 9 Mar 2022 22:53:16 +0000 (14:53 -0800)]
Export JOY_BOOL_LITERALS

2 years agolong_description_content_type
Simon Forman [Wed, 9 Mar 2022 21:15:49 +0000 (13:15 -0800)]
long_description_content_type

shut up twine warning.

Hey PyPA where is the list of valid content types? Is it just MIME
types?

2 years agoBump version to 0.5.0
Simon Forman [Wed, 9 Mar 2022 20:45:10 +0000 (12:45 -0800)]
Bump version to 0.5.0

2 years agoDepend on the general def.txt file.
Simon Forman [Wed, 9 Mar 2022 20:40:02 +0000 (12:40 -0800)]
Depend on the general def.txt file.

2 years agoSnippets support.
Simon Forman [Wed, 2 Mar 2022 03:13:44 +0000 (19:13 -0800)]
Snippets support.

Parse, print.

2 years agoLet's try out the "snippets" idea.
Simon Forman [Tue, 1 Mar 2022 22:13:07 +0000 (14:13 -0800)]
Let's try out the "snippets" idea.

Represent strings (byte strings) as three-tuples of (git sha hash,
offset, length) immutable datastructures.

2 years agoCommon defs.txt file for all the implementations.
Simon Forman [Tue, 1 Mar 2022 22:12:34 +0000 (14:12 -0800)]
Common defs.txt file for all the implementations.

2 years agoUpdate local defs.txt.
Simon Forman [Tue, 22 Feb 2022 21:49:44 +0000 (13:49 -0800)]
Update local defs.txt.

2 years agoSimple makefile for Nim implementation.
Simon Forman [Tue, 22 Feb 2022 20:55:09 +0000 (12:55 -0800)]
Simple makefile for Nim implementation.

2 years agoRemove files to the Xerblin project.
Simon Forman [Tue, 22 Feb 2022 20:54:40 +0000 (12:54 -0800)]
Remove files to the Xerblin project.

2 years agoMaking selctions work.
Simon Forman [Tue, 22 Feb 2022 17:09:30 +0000 (09:09 -0800)]
Making selctions work.

I want to know the byte offset and length of the Unicode text selection
in the underlying string/file for a TextViewer.

This should probably go in the Xerblin repo, but it's here now, I just
got it working, and I'm all excited.

2 years agoUppercase Nim.
Simon Forman [Sat, 19 Feb 2022 15:48:51 +0000 (07:48 -0800)]
Uppercase Nim.

2 years agoSphinx confused by `•`.
Simon Forman [Sat, 19 Feb 2022 15:39:07 +0000 (07:39 -0800)]
Sphinx confused by `•`.

When building the HTML docs with Sphinx v4.3.0 the bullet symbol in
backticks quotes causes this warning message:

    .../Joypy/implementations/Python/joy/utils/pretty_print.py:docstring of joy.utils.pretty_print:15: WARNING: Inline interpreted text or phrase reference start-string without end-string.

2 years agoMove Jupyter kernel into notebooks dir.
Simon Forman [Sat, 19 Feb 2022 15:31:11 +0000 (07:31 -0800)]
Move Jupyter kernel into notebooks dir.

2 years agoAdding in some old notes.
Simon Forman [Sat, 19 Feb 2022 15:30:26 +0000 (07:30 -0800)]
Adding in some old notes.

2 years agoMove notebooks to own dir.
Simon Forman [Sat, 19 Feb 2022 15:28:27 +0000 (07:28 -0800)]
Move notebooks to own dir.

2 years agoMinor cleanup
Simon Forman [Thu, 17 Feb 2022 18:57:10 +0000 (10:57 -0800)]
Minor cleanup

2 years agoMove Python impl to impls dir.
Simon Forman [Tue, 25 Jan 2022 03:02:47 +0000 (19:02 -0800)]
Move Python impl to impls dir.

2 years agoBring in the Rust implementation.
Simon Forman [Sun, 16 Jan 2022 01:28:31 +0000 (17:28 -0800)]
Bring in the Rust implementation.

2 years agoBring in the Prolog impl.
Simon Forman [Sun, 16 Jan 2022 01:23:11 +0000 (17:23 -0800)]
Bring in the Prolog impl.

2 years agoBring in the Nim implementation.
Simon Forman [Sat, 15 Jan 2022 23:30:38 +0000 (15:30 -0800)]
Bring in the Nim implementation.

2 years agoWIP docs update
Simon Forman [Sat, 15 Jan 2022 23:22:17 +0000 (15:22 -0800)]
WIP docs update

2 years agoUncomment ifte built-in.
Simon Forman [Fri, 24 Dec 2021 03:12:54 +0000 (19:12 -0800)]
Uncomment ifte built-in.

2 years agoFunctional-style remove function.
Simon Forman [Fri, 24 Dec 2021 03:12:17 +0000 (19:12 -0800)]
Functional-style remove function.

2 years agoPy 3 handles exception propagation a little differently?
Simon Forman [Fri, 24 Dec 2021 03:09:07 +0000 (19:09 -0800)]
Py 3 handles exception propagation a little differently?

2 years agoSome work on docs.
Simon Forman [Fri, 24 Dec 2021 03:08:30 +0000 (19:08 -0800)]
Some work on docs.

2 years agoSwitch to Joy kernel.
Simon Forman [Wed, 1 Dec 2021 05:00:26 +0000 (21:00 -0800)]
Switch to Joy kernel.

2 years agoClean up Zipper notebook.
Simon Forman [Sun, 28 Nov 2021 23:39:24 +0000 (15:39 -0800)]
Clean up Zipper notebook.

2 years agoI think the real solution is to "not do that" as it were.
Simon Forman [Sun, 28 Nov 2021 23:03:47 +0000 (15:03 -0800)]
I think the real solution is to "not do that" as it were.

Unquoted symbols on the stack are verboten.

2 years agoWorking on bug #15
Simon Forman [Sun, 28 Nov 2021 21:41:19 +0000 (13:41 -0800)]
Working on bug #15

https://todo.sr.ht/~sforman/thun-der/15

2 years agoI narrowed down the bug.
Simon Forman [Sun, 28 Nov 2021 21:14:07 +0000 (13:14 -0800)]
I narrowed down the bug.

https://todo.sr.ht/~sforman/thun-der/15

Gotta quote your symbols if you put them on the stack, eh?

2 years agoTightening up the debug script.
Simon Forman [Sun, 28 Nov 2021 17:22:03 +0000 (09:22 -0800)]
Tightening up the debug script.

2 years agoUpdate Square_Spiral notebook to use Joy kernel
Simon Forman [Sun, 28 Nov 2021 01:04:15 +0000 (17:04 -0800)]
Update Square_Spiral notebook to use Joy kernel

https://todo.sr.ht/~sforman/thun-der/19

2 years agoA Python version of the `ii` combinator.
Simon Forman [Sun, 28 Nov 2021 00:59:57 +0000 (16:59 -0800)]
A Python version of the `ii` combinator.

2 years agoDo not let defs shadow built-ins.
Simon Forman [Sat, 27 Nov 2021 18:57:55 +0000 (10:57 -0800)]
Do not let defs shadow built-ins.

2 years agoBleah.
Simon Forman [Sat, 27 Nov 2021 18:31:32 +0000 (10:31 -0800)]
Bleah.

2 years agoRecover the square spiral example code.
Simon Forman [Sat, 27 Nov 2021 17:04:25 +0000 (09:04 -0800)]
Recover the square spiral example code.

I hve no idea how this isn't in VCS.  I checked hg and git.  Is it in
an old branch that I deleted before merging or something?  I have
backups from which to restore, but it would be nice to know how I effed
it up in the first place, eh?