OSDN Git Service
Simon Forman [Thu, 8 Sep 2022 15:27:47 +0000 (08:27 -0700)]
move type checks and exceptions to bottom
Simon Forman [Thu, 8 Sep 2022 06:43:50 +0000 (23:43 -0700)]
minor cleanup
Simon Forman [Thu, 8 Sep 2022 05:23:23 +0000 (22:23 -0700)]
Remove debug session.
Simon Forman [Thu, 8 Sep 2022 04:15:09 +0000 (21:15 -0700)]
That doesn't go there.
Simon Forman [Thu, 8 Sep 2022 04:01:07 +0000 (21:01 -0700)]
Minor cleanup.
Simon Forman [Thu, 8 Sep 2022 03:42:48 +0000 (20:42 -0700)]
halt and quit
halt captures the rest of the pending expression and stops evaluating,
but the interpreter loop keeps running.
quit ends the interpreter session and quits the Thun program.
Simon Forman [Thu, 8 Sep 2022 03:33:13 +0000 (20:33 -0700)]
Passes (updated) tests.
https://git.sr.ht/~sforman/joytest
Simon Forman [Thu, 8 Sep 2022 02:39:00 +0000 (19:39 -0700)]
Harden up the types.
Simon Forman [Thu, 8 Sep 2022 00:27:36 +0000 (17:27 -0700)]
Quiet mode for testing. Misc cleanup.
Simon Forman [Wed, 7 Sep 2022 21:46:26 +0000 (14:46 -0700)]
Just put ≡ inline.
Simon Forman [Wed, 7 Sep 2022 21:21:33 +0000 (14:21 -0700)]
Blacken the code.
Simon Forman [Wed, 7 Sep 2022 21:18:55 +0000 (14:18 -0700)]
Type-guard the ops.
Simon Forman [Wed, 7 Sep 2022 20:13:46 +0000 (13:13 -0700)]
Words and Help; use ≡ for definitions.
By using ≡ for definitions I can put docs in the DEFS string and easily
detect definitions by having them be each on their own line.
Simon Forman [Wed, 7 Sep 2022 18:57:57 +0000 (11:57 -0700)]
It's a script.
Simon Forman [Wed, 7 Sep 2022 18:54:29 +0000 (11:54 -0700)]
More docstrings.
Simon Forman [Wed, 7 Sep 2022 18:46:59 +0000 (11:46 -0700)]
Docstrings.
Simon Forman [Wed, 7 Sep 2022 18:18:08 +0000 (11:18 -0700)]
Pylint is kind useless on this one.
Simon Forman [Wed, 7 Sep 2022 18:13:12 +0000 (11:13 -0700)]
Boolean literals.
Simon Forman [Wed, 7 Sep 2022 17:42:20 +0000 (10:42 -0700)]
Docs (and strip trailing blanks.)
Simon Forman [Wed, 7 Sep 2022 16:41:08 +0000 (09:41 -0700)]
Blacken the code (simplejoy.py)
I don't like it entirely but that's the point: nevermind your taste,
just use a simple and universal (Ha!) standard format(ter) and get on
with your life.
Simon Forman [Wed, 7 Sep 2022 16:28:30 +0000 (09:28 -0700)]
Misc cruft.
Simon Forman [Wed, 7 Sep 2022 16:24:20 +0000 (09:24 -0700)]
Remove rust impl.
GitHub nagged me about some vuln in RE package or something?
https://github.com/calroc/Thun/security/dependabot/1
Simon Forman [Wed, 7 Sep 2022 16:23:02 +0000 (09:23 -0700)]
Simple Joy
Simon Forman [Tue, 6 Sep 2022 21:33:51 +0000 (14:33 -0700)]
Remove psaces from some filenames.
Simon Forman [Tue, 16 Aug 2022 22:26:07 +0000 (15:26 -0700)]
Rebuild HTML docs.
Simon Forman [Tue, 16 Aug 2022 00:33:34 +0000 (17:33 -0700)]
A good talk.
Simon Forman [Mon, 15 Aug 2022 23:20:59 +0000 (16:20 -0700)]
Minor edits.
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.
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
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
Simon Forman [Mon, 4 Apr 2022 16:09:01 +0000 (09:09 -0700)]
Minor cleanup.
Simon Forman [Mon, 4 Apr 2022 15:01:51 +0000 (08:01 -0700)]
Start a per-project README for Python.
Simon Forman [Mon, 4 Apr 2022 15:00:09 +0000 (08:00 -0700)]
Start to update README
Simon Forman [Mon, 4 Apr 2022 14:58:22 +0000 (07:58 -0700)]
Expression?
Simon Forman [Thu, 31 Mar 2022 17:10:22 +0000 (10:10 -0700)]
Rebuild HTML docs.
Simon Forman [Wed, 30 Mar 2022 19:12:19 +0000 (12:12 -0700)]
Sidebar links should be a little farther apart.
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.
Simon Forman [Tue, 29 Mar 2022 22:11:19 +0000 (15:11 -0700)]
And the rest.
Whew! Glad that's done.
Simon Forman [Tue, 29 Mar 2022 19:57:41 +0000 (12:57 -0700)]
T's and U's.
Simon Forman [Tue, 29 Mar 2022 15:50:48 +0000 (08:50 -0700)]
The rest of the S's.
Simon Forman [Tue, 29 Mar 2022 01:39:42 +0000 (18:39 -0700)]
Q, R's and some S's.
Simon Forman [Sun, 27 Mar 2022 20:04:42 +0000 (13:04 -0700)]
And there are the P's.
Simon Forman [Sun, 27 Mar 2022 19:01:37 +0000 (12:01 -0700)]
The O's.
Simon Forman [Sun, 27 Mar 2022 18:11:20 +0000 (11:11 -0700)]
The N's.
Simon Forman [Sun, 27 Mar 2022 18:03:57 +0000 (11:03 -0700)]
Covered by EXCLAMATION-MARK•HYPHEN-MINUS.md
Simon Forman [Sun, 27 Mar 2022 17:52:17 +0000 (10:52 -0700)]
The M's.
Simon Forman [Sat, 26 Mar 2022 20:12:16 +0000 (13:12 -0700)]
More misc. ref docs.
Simon Forman [Sat, 26 Mar 2022 19:17:31 +0000 (12:17 -0700)]
Two L's.
Simon Forman [Sat, 26 Mar 2022 00:41:31 +0000 (17:41 -0700)]
The I's are done.
Simon Forman [Fri, 25 Mar 2022 22:16:30 +0000 (15:16 -0700)]
i and ii
Simon Forman [Fri, 25 Mar 2022 21:46:56 +0000 (14:46 -0700)]
The H's.
Simon Forman [Fri, 25 Mar 2022 21:16:37 +0000 (14:16 -0700)]
The rest of the G's.
Simon Forman [Fri, 25 Mar 2022 19:39:03 +0000 (12:39 -0700)]
Most of the G's.
Simon Forman [Fri, 25 Mar 2022 18:12:48 +0000 (11:12 -0700)]
That is the F's done.
Simon Forman [Fri, 25 Mar 2022 17:56:15 +0000 (10:56 -0700)]
Make divmod work like the docs say it does.
Simon Forman [Fri, 25 Mar 2022 03:28:37 +0000 (20:28 -0700)]
Minor cleanup.
Simon Forman [Fri, 25 Mar 2022 03:27:22 +0000 (20:27 -0700)]
Only two E'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.
Simon Forman [Thu, 24 Mar 2022 20:35:37 +0000 (13:35 -0700)]
The rest of the C's.
Simon Forman [Thu, 24 Mar 2022 19:33:20 +0000 (12:33 -0700)]
Most of the C's.
Simon Forman [Thu, 24 Mar 2022 18:15:25 +0000 (11:15 -0700)]
Ref docs B's.
Simon Forman [Thu, 24 Mar 2022 16:45:29 +0000 (09:45 -0700)]
Got through the A's.
Simon Forman [Thu, 24 Mar 2022 04:25:22 +0000 (21:25 -0700)]
Update some ref docs.
Simon Forman [Wed, 23 Mar 2022 21:22:53 +0000 (14:22 -0700)]
Update some ref docs.
Simon Forman [Wed, 23 Mar 2022 20:47:58 +0000 (13:47 -0700)]
Minor cleanup.
Simon Forman [Wed, 23 Mar 2022 20:43:18 +0000 (13:43 -0700)]
Use the right files.
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.
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.
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.
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...
Simon Forman [Wed, 23 Mar 2022 18:44:38 +0000 (11:44 -0700)]
MD in the yow dir. Why not?
Simon Forman [Wed, 23 Mar 2022 17:59:23 +0000 (10:59 -0700)]
This is some janky Rube Goldberg shtuff.
Simon Forman [Wed, 23 Mar 2022 17:53:29 +0000 (10:53 -0700)]
And rebuild the HTML to see how it looks.
Simon Forman [Wed, 23 Mar 2022 17:52:58 +0000 (10:52 -0700)]
Now pile all the ref docs into the refs dir.
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>
Simon Forman [Wed, 23 Mar 2022 17:40:04 +0000 (10:40 -0700)]
Move the MD files into the reference dir.
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.
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.
Simon Forman [Wed, 23 Mar 2022 04:50:52 +0000 (21:50 -0700)]
D'oh! Forgot to add HEADER.md file.
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".
Simon Forman [Wed, 23 Mar 2022 04:42:24 +0000 (21:42 -0700)]
Minor cleanup.
Simon Forman [Wed, 23 Mar 2022 04:28:39 +0000 (21:28 -0700)]
Move some misc docs.
Simon Forman [Wed, 23 Mar 2022 04:24:07 +0000 (21:24 -0700)]
Minor cleanup.
Simon Forman [Wed, 23 Mar 2022 04:22:57 +0000 (21:22 -0700)]
Working to clean up docs.
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
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.
Simon Forman [Wed, 9 Mar 2022 22:53:16 +0000 (14:53 -0800)]
Export JOY_BOOL_LITERALS
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?
Simon Forman [Wed, 9 Mar 2022 20:45:10 +0000 (12:45 -0800)]
Bump version to 0.5.0
Simon Forman [Wed, 9 Mar 2022 20:40:02 +0000 (12:40 -0800)]
Depend on the general def.txt file.
Simon Forman [Wed, 2 Mar 2022 03:13:44 +0000 (19:13 -0800)]
Snippets support.
Parse, print.
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.
Simon Forman [Tue, 1 Mar 2022 22:12:34 +0000 (14:12 -0800)]
Common defs.txt file for all the implementations.
Simon Forman [Tue, 22 Feb 2022 21:49:44 +0000 (13:49 -0800)]
Update local defs.txt.
Simon Forman [Tue, 22 Feb 2022 20:55:09 +0000 (12:55 -0800)]
Simple makefile for Nim implementation.
Simon Forman [Tue, 22 Feb 2022 20:54:40 +0000 (12:54 -0800)]
Remove files to the Xerblin project.
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.
Simon Forman [Sat, 19 Feb 2022 15:48:51 +0000 (07:48 -0800)]
Uppercase Nim.
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.
Simon Forman [Sat, 19 Feb 2022 15:31:11 +0000 (07:31 -0800)]
Move Jupyter kernel into notebooks dir.