OSDN Git Service

joypy/Thun.git
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?

2 years agoUpdate links on home front page.
Simon Forman [Fri, 26 Nov 2021 17:55:16 +0000 (09:55 -0800)]
Update links on home front page.

2 years agoSo it's NOT the step combinator?
Simon Forman [Fri, 26 Nov 2021 01:48:28 +0000 (17:48 -0800)]
So it's NOT the step combinator?

2 years agoThe problem is in the step combinator definition.
Simon Forman [Fri, 26 Nov 2021 01:38:01 +0000 (17:38 -0800)]
The problem is in the step combinator definition.

2 years agoZipper notebook with defs shadowing built-ins.
Simon Forman [Thu, 25 Nov 2021 19:57:26 +0000 (11:57 -0800)]
Zipper notebook with defs shadowing built-ins.

2 years agoWorking on bug #15
Simon Forman [Thu, 25 Nov 2021 19:50:28 +0000 (11:50 -0800)]
Working on bug #15

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

The bug file output was too large for a comment, and you can't attach
files to the ticket, so I'm checking it in to have a handy reference.

2 years agoJoy Jupyter kernel loads defs.txt
Simon Forman [Thu, 25 Nov 2021 19:12:02 +0000 (11:12 -0800)]
Joy Jupyter kernel loads defs.txt

2 years agoMore changes to the zipper notebook.
Simon Forman [Thu, 25 Nov 2021 19:10:21 +0000 (11:10 -0800)]
More changes to the zipper notebook.

2 years agoUpdate zipper notebook to use Joy kernel.
Simon Forman [Thu, 25 Nov 2021 18:55:33 +0000 (10:55 -0800)]
Update zipper notebook to use Joy kernel.

2 years agoChange zipper doc over to Joy kernel.
Simon Forman [Thu, 25 Nov 2021 17:51:45 +0000 (09:51 -0800)]
Change zipper doc over to Joy kernel.

2 years agobackup-and-remove-htdocs script doc.
Simon Forman [Thu, 25 Nov 2021 17:33:09 +0000 (09:33 -0800)]
backup-and-remove-htdocs script doc.

2 years agoFix bug in `<<{}` function.
Simon Forman [Thu, 25 Nov 2021 17:21:22 +0000 (09:21 -0800)]
Fix bug in `<<{}` function.

2 years agoRemove old defs cruft.
Simon Forman [Thu, 25 Nov 2021 06:36:06 +0000 (22:36 -0800)]
Remove old defs cruft.

2 years agoLoad defs from files into dictionary.
Simon Forman [Thu, 25 Nov 2021 06:01:09 +0000 (22:01 -0800)]
Load defs from files into dictionary.

2 years agoRead defs.txt file from package.
Simon Forman [Thu, 25 Nov 2021 05:16:51 +0000 (21:16 -0800)]
Read defs.txt file from package.

2 years agoModify the inscribe decorator to accept a dict.
Simon Forman [Wed, 24 Nov 2021 23:05:55 +0000 (15:05 -0800)]
Modify the inscribe decorator to accept a dict.

2 years agoJust playing around.
Simon Forman [Wed, 24 Nov 2021 22:53:26 +0000 (14:53 -0800)]
Just playing around.

2 years agoModify working of inscribe command.
Simon Forman [Wed, 24 Nov 2021 22:00:46 +0000 (14:00 -0800)]
Modify working of inscribe command.

Instead of a string it now takes a quote.

2 years agoStart to convert Newton-Raphson notebook to Joy kernel.
Simon Forman [Wed, 24 Nov 2021 21:44:38 +0000 (13:44 -0800)]
Start to convert Newton-Raphson notebook to Joy kernel.

2 years agoLet's switch to the Joy kernel.
Simon Forman [Wed, 24 Nov 2021 20:08:41 +0000 (12:08 -0800)]
Let's switch to the Joy kernel.

2 years agoUpdating the docs. Playing with Joy Kernel.
Simon Forman [Wed, 24 Nov 2021 16:54:08 +0000 (08:54 -0800)]
Updating the docs. Playing with Joy Kernel.

2 years agoCapture stdout so commands like words and trace work.
Simon Forman [Tue, 23 Nov 2021 23:12:59 +0000 (15:12 -0800)]
Capture stdout so commands like words and trace work.

2 years agoInclude trace command in Jupyter kernel.
Simon Forman [Tue, 23 Nov 2021 19:28:29 +0000 (11:28 -0800)]
Include trace command in Jupyter kernel.

2 years agoUsing Jupyter.
Simon Forman [Tue, 23 Nov 2021 19:28:17 +0000 (11:28 -0800)]
Using Jupyter.

2 years agoUpdating the first notebook.
Simon Forman [Tue, 23 Nov 2021 18:11:46 +0000 (10:11 -0800)]
Updating the first notebook.

It's not done, but it's a start. (^_^)

2 years agoWrap README.md
Simon Forman [Tue, 23 Nov 2021 03:48:59 +0000 (19:48 -0800)]
Wrap README.md

2 years agoMerge branch 'master' of git.osdn.net:/gitroot/joypy/Thun
Simon Forman [Mon, 22 Nov 2021 18:29:53 +0000 (10:29 -0800)]
Merge branch 'master' of git.osdn.net:/gitroot/joypy/Thun

2 years agoRemove old batch file.
Simon Forman [Mon, 22 Nov 2021 18:29:11 +0000 (10:29 -0800)]
Remove old batch file.

I'm not really supporting windows, and this was too simple to really
merit it's own script.

2 years agoMinor cleanup.
Simon Forman [Sat, 20 Nov 2021 19:05:30 +0000 (11:05 -0800)]
Minor cleanup.

2 years agoMinor cleanup
Simon Forman [Fri, 19 Nov 2021 22:27:01 +0000 (14:27 -0800)]
Minor cleanup

;P

2 years agoFixup docs a bit more...
Simon Forman [Fri, 19 Nov 2021 22:03:47 +0000 (14:03 -0800)]
Fixup docs a bit more...

2 years agoStill converting syntax highlighter spec.
Simon Forman [Fri, 19 Nov 2021 21:59:00 +0000 (13:59 -0800)]
Still converting syntax highlighter spec.

2 years agoConvert syntax highlighter spec.
Simon Forman [Fri, 19 Nov 2021 21:57:36 +0000 (13:57 -0800)]
Convert syntax highlighter spec.

2 years agoChange the syntax highlight specifier.
Simon Forman [Fri, 19 Nov 2021 21:56:42 +0000 (13:56 -0800)]
Change the syntax highlight specifier.

2 years agoMerge pull request #1 from calroc/update-sphinx
Simon Forman [Fri, 19 Nov 2021 20:52:09 +0000 (20:52 +0000)]
Merge pull request #1 from calroc/update-sphinx

Update sphinx

2 years agoMore update to 4.3.0
Simon Forman [Fri, 19 Nov 2021 20:49:05 +0000 (12:49 -0800)]
More update to 4.3.0

2 years agoUsing Sphinx 4.3.0
Simon Forman [Fri, 19 Nov 2021 20:46:29 +0000 (12:46 -0800)]
Using Sphinx 4.3.0

2 years agoFix omg.svg and try a thing with the formatter.
Simon Forman [Fri, 19 Nov 2021 20:45:14 +0000 (12:45 -0800)]
Fix omg.svg and try a thing with the formatter.

2 years agoRemove test cruft from makefile.
Simon Forman [Fri, 19 Nov 2021 19:04:41 +0000 (11:04 -0800)]
Remove test cruft from makefile.

2 years agoRename LICENSE in MANIFEST.in
Simon Forman [Fri, 19 Nov 2021 18:51:50 +0000 (10:51 -0800)]
Rename LICENSE in MANIFEST.in

2 years agoRename GPL file.
Simon Forman [Fri, 19 Nov 2021 18:49:49 +0000 (10:49 -0800)]
Rename GPL file.

2 years agoOMG bug!
Simon Forman [Fri, 19 Nov 2021 18:47:13 +0000 (10:47 -0800)]
OMG bug!

This lingered awhile eh?

2 years agoMinor cleanup.
Simon Forman [Sun, 14 Nov 2021 16:50:30 +0000 (08:50 -0800)]
Minor cleanup.

2 years agoGDC2
Simon Forman [Tue, 26 Oct 2021 17:32:19 +0000 (10:32 -0700)]
GDC2

3 years agoThis brings Python Joy into congruence with Nim.
Simon Forman [Sat, 10 Apr 2021 01:01:07 +0000 (18:01 -0700)]
This brings Python Joy into congruence with Nim.

It's hacky.  I edited the generated file.  The more complicated
functions like popop will not generate the same errors as the Nim
versions.  This is only congruence in the sense that the current jtest
suite passes identically on both.

Ideally I should be generating both the Nim and Python code from the
Prolog compiler.