OSDN Git Service

joypy/Thun.git
3 years agoInteresting that Nim checks type of first arg...
Simon Forman [Fri, 9 Apr 2021 23:59:06 +0000 (16:59 -0700)]
Interesting that Nim checks type of first arg...

...before stack depth of second arg.

3 years agoBringing it in line with Nim version.
Simon Forman [Fri, 9 Apr 2021 23:58:38 +0000 (16:58 -0700)]
Bringing it in line with Nim version.

3 years agoSwitch back to spaces for indentation.
Simon Forman [Fri, 9 Apr 2021 23:16:34 +0000 (16:16 -0700)]
Switch back to spaces for indentation.

For better or worse, Python 3 won.  No need to be shitty about it, eh?

3 years agoSimplify tokenizing, raise Unknown errors.
Simon Forman [Tue, 6 Apr 2021 19:40:04 +0000 (12:40 -0700)]
Simplify tokenizing, raise Unknown errors.

This brings the behaviour of Python Joy into congruence with Nim Joy.

3 years agoPrint Boolean values with lowercase intitial letters.
Simon Forman [Tue, 6 Apr 2021 18:41:39 +0000 (11:41 -0700)]
Print Boolean values with lowercase intitial letters.

3 years agoParse Boolean literals.
Simon Forman [Tue, 6 Apr 2021 18:34:46 +0000 (11:34 -0700)]
Parse Boolean literals.

3 years agoAdd a "quiet" mode.
Simon Forman [Tue, 6 Apr 2021 18:28:30 +0000 (11:28 -0700)]
Add a "quiet" mode.

This brings the Python Joy interpreter into better congruence with the
Nim interpreter for ease of automated testing.

3 years agoDon't let module imports have side-effects.
Simon Forman [Sun, 20 Dec 2020 07:53:04 +0000 (23:53 -0800)]
Don't let module imports have side-effects.

The pretty printer module was inscribing the trace command as a side-
effect of importing it.

3 years agoDerp! I forgot to modify the built-in defs to use "==".
Simon Forman [Sun, 20 Dec 2020 07:37:39 +0000 (23:37 -0800)]
Derp!  I forgot to modify the built-in defs to use "==".

3 years agoMinor cleanup.
Simon Forman [Sat, 19 Dec 2020 00:10:45 +0000 (16:10 -0800)]
Minor cleanup.

3 years agoLet '==' separate names from definition bodies.
Simon Forman [Fri, 18 Dec 2020 06:06:28 +0000 (22:06 -0800)]
Let '==' separate names from definition bodies.

3 years agoDrag-n-Drop stack util function.
Simon Forman [Fri, 18 Dec 2020 05:02:26 +0000 (21:02 -0800)]
Drag-n-Drop stack util function.

3 years agoUpdate version in README.
Simon Forman [Mon, 23 Nov 2020 17:15:12 +0000 (09:15 -0800)]
Update version in README.

3 years agoFix a typo.
Simon Forman [Mon, 23 Nov 2020 17:06:36 +0000 (09:06 -0800)]
Fix a typo.

3 years agoHmm...
Simon Forman [Mon, 23 Nov 2020 16:59:20 +0000 (08:59 -0800)]
Hmm...

3 years agoFix a typo.
Simon Forman [Mon, 23 Nov 2020 16:44:33 +0000 (08:44 -0800)]
Fix a typo.

4 years agoUpdate some of the docs.
Simon Forman [Thu, 21 May 2020 02:15:47 +0000 (19:15 -0700)]
Update some of the docs.

4 years agoFix indentation in library docstrings.
Simon Forman [Wed, 20 May 2020 23:09:19 +0000 (16:09 -0700)]
Fix indentation in library docstrings.

4 years agoMinor cleanup.
Simon Forman [Wed, 20 May 2020 22:34:30 +0000 (15:34 -0700)]
Minor cleanup.

4 years agoBump version to 0.4.1
Simon Forman [Wed, 20 May 2020 02:39:44 +0000 (19:39 -0700)]
Bump version to 0.4.1

 * Parse scientific notation correctly.
 * The `round` function works correctly.

4 years agoVersion 0.4.1
Simon Forman [Wed, 20 May 2020 02:39:32 +0000 (19:39 -0700)]
Version 0.4.1

4 years agoPush out v0.4.1 right quick to fix Ticket #40430
Simon Forman [Wed, 20 May 2020 01:05:57 +0000 (18:05 -0700)]
Push out v0.4.1 right quick to fix Ticket #40430

4 years agoMinor cleanup.
Simon Forman [Tue, 19 May 2020 21:50:10 +0000 (14:50 -0700)]
Minor cleanup.

4 years agoYes, tabs.
Simon Forman [Tue, 19 May 2020 21:27:18 +0000 (14:27 -0700)]
Yes, tabs.

4 years agoMention the situation with the type code.
Simon Forman [Tue, 19 May 2020 21:09:00 +0000 (14:09 -0700)]
Mention the situation with the type code.

I removed it but it's still there in tag v0.4.0 if you want to look at
it.  The Prolog code is just sooooooooo  much more elegant.  it's a rare
case, and a hard decision, but the right thing to do is throw away
working code.  Wow.

4 years agoRemove the types stuff et. al.
Simon Forman [Tue, 19 May 2020 20:01:37 +0000 (13:01 -0700)]
Remove the types stuff et. al.

4 years agoround
Simon Forman [Tue, 19 May 2020 03:48:30 +0000 (20:48 -0700)]
round

4 years agoZero-or-one not one-or-more.
Simon Forman [Tue, 19 May 2020 03:45:04 +0000 (20:45 -0700)]
Zero-or-one not one-or-more.

4 years agoMinor cleanup.
Simon Forman [Tue, 19 May 2020 03:37:58 +0000 (20:37 -0700)]
Minor cleanup.

4 years agoLet's simplify.
Simon Forman [Tue, 19 May 2020 03:00:00 +0000 (20:00 -0700)]
Let's simplify.

4 years agoRip out type code from the library.
Simon Forman [Tue, 19 May 2020 02:07:07 +0000 (19:07 -0700)]
Rip out type code from the library.

4 years agoLet's simplify.
Simon Forman [Tue, 19 May 2020 01:32:35 +0000 (18:32 -0700)]
Let's simplify.

4 years agoBump version to 0.4.0
Simon Forman [Mon, 18 May 2020 00:28:52 +0000 (17:28 -0700)]
Bump version to 0.4.0

4 years agoVersion 0.4.0
Simon Forman [Mon, 18 May 2020 00:22:31 +0000 (17:22 -0700)]
Version 0.4.0

4 years agoRebuild docs
Simon Forman [Sun, 17 May 2020 23:40:58 +0000 (16:40 -0700)]
Rebuild docs

4 years agoRecognize scientific notation.
Simon Forman [Sun, 17 May 2020 23:10:56 +0000 (16:10 -0700)]
Recognize scientific notation.

4 years agoDon't use `==` for definitions.
Simon Forman [Sun, 17 May 2020 23:02:43 +0000 (16:02 -0700)]
Don't use `==` for definitions.

4 years agoLog reset is less wordy.
Simon Forman [Sun, 17 May 2020 19:58:26 +0000 (12:58 -0700)]
Log reset is less wordy.

4 years agoSlightly more efficient to just print the string.
Simon Forman [Sun, 17 May 2020 18:51:59 +0000 (11:51 -0700)]
Slightly more efficient to just print the string.

4 years agoMake joy/gui/controllerlistbox.py compatible with Python 3.
Simon Forman [Sat, 16 May 2020 17:44:35 +0000 (10:44 -0700)]
Make joy/gui/controllerlistbox.py compatible with Python 3.

4 years agoPython 3.
Simon Forman [Sat, 16 May 2020 16:52:56 +0000 (09:52 -0700)]
Python 3.

4 years agoHow to start Thun under i3.
Simon Forman [Fri, 15 May 2020 14:36:25 +0000 (07:36 -0700)]
How to start Thun under i3.

Needs the filename corrected.

4 years agoIt must be a BytesIO.
Simon Forman [Fri, 15 May 2020 14:35:16 +0000 (07:35 -0700)]
It must be a BytesIO.

4 years agoTrying out a different dsiplay format.
Simon Forman [Fri, 15 May 2020 14:34:47 +0000 (07:34 -0700)]
Trying out a different dsiplay format.

4 years agoFormat lists properly.
Simon Forman [Sun, 10 May 2020 19:46:33 +0000 (12:46 -0700)]
Format lists properly.

4 years agoTry logging just the commands.
Simon Forman [Sun, 10 May 2020 19:18:34 +0000 (12:18 -0700)]
Try logging just the commands.

4 years agoI3 config with suggested layout.
Simon Forman [Sun, 10 May 2020 19:17:54 +0000 (12:17 -0700)]
I3 config with suggested layout.

Stack in upper left corner, log below in same width, scratch window takes up the rest.

4 years agoshow_stack in case you close the stack window.
Simon Forman [Sun, 10 May 2020 17:42:10 +0000 (10:42 -0700)]
show_stack in case you close the stack window.

4 years agoSet the font on the listbox.
Simon Forman [Sun, 10 May 2020 17:35:42 +0000 (10:35 -0700)]
Set the font on the listbox.

4 years agoRemove listbox try out script.
Simon Forman [Sun, 10 May 2020 15:38:37 +0000 (08:38 -0700)]
Remove listbox try out script.

4 years agoUpdate view of stack at start.
Simon Forman [Sun, 10 May 2020 15:36:05 +0000 (08:36 -0700)]
Update view of stack at start.

4 years agoConnect it up.
Simon Forman [Sun, 10 May 2020 15:28:49 +0000 (08:28 -0700)]
Connect it up.

Inelegant but functional.

4 years agoBring in the listbox widget with drag.
Simon Forman [Sun, 10 May 2020 02:09:23 +0000 (19:09 -0700)]
Bring in the listbox widget with drag.

You can drag items up and down to rearrange the list.

4 years agoWith i3 use separate windows again.
Simon Forman [Sun, 10 May 2020 00:31:40 +0000 (17:31 -0700)]
With i3 use separate windows again.

4 years agoVersion 0.3.0
Simon Forman [Wed, 29 Apr 2020 14:46:32 +0000 (07:46 -0700)]
Version 0.3.0

4 years ago`primrec` combinator in Prolog
Simon Forman [Tue, 5 May 2020 22:52:40 +0000 (15:52 -0700)]
`primrec` combinator in Prolog

Ticket #40375

4 years agoprimrec combinator
Simon Forman [Tue, 5 May 2020 22:22:12 +0000 (15:22 -0700)]
primrec combinator

Ticket #40375

4 years agoPut the log and scratch text in the same window.
Simon Forman [Sat, 2 May 2020 19:51:29 +0000 (12:51 -0700)]
Put the log and scratch text in the same window.

This is a step towards Ticket #40360 without going all the way.  You can
open additional viewer windows.  They are not connected by an
Oberon-style messaging system (yet.  It would be nice to use the Tk event
system for that.)

This way the log and the main/scratch/system-menu text are conceptually
unified in the (equivelent of "desktop") base metaphor of the system.

4 years agoPython is 3 now.
Simon Forman [Sat, 2 May 2020 06:09:09 +0000 (23:09 -0700)]
Python is 3 now.

4 years agoAdd Python 3 classifiers and ignore __pycache__ dirs.
Simon Forman [Wed, 29 Apr 2020 00:33:10 +0000 (17:33 -0700)]
Add Python 3 classifiers and ignore __pycache__ dirs.

4 years ago Closes Ticket #40371 Bump version number to 0.3.0
Simon Forman [Tue, 28 Apr 2020 22:46:32 +0000 (15:46 -0700)]
 Closes Ticket #40371 Bump version number to 0.3.0

4 years agoRebuild docs with Python 3 and Sphinx 3.0.2.
Simon Forman [Tue, 28 Apr 2020 22:37:49 +0000 (15:37 -0700)]
Rebuild docs with Python 3 and Sphinx  3.0.2.

4 years agoIndent with tabs.
Simon Forman [Tue, 28 Apr 2020 22:28:58 +0000 (15:28 -0700)]
Indent with tabs.

4 years agoTrace command.
Simon Forman [Tue, 28 Apr 2020 22:28:43 +0000 (15:28 -0700)]
Trace command.

Don't print trace by default, instead a new `trace` combinator wirks like `i` and prints a trace.

4 years agoRename primrec to tailrec.
Simon Forman [Tue, 28 Apr 2020 18:05:19 +0000 (11:05 -0700)]
Rename primrec to tailrec.

4 years agoFixes #38237 Sort out stack/unstack/enstacken/disenstacken
Simon Forman [Tue, 28 Apr 2020 17:42:09 +0000 (10:42 -0700)]
Fixes #38237 Sort out stack/unstack/enstacken/disenstacken

4 years agoSwitch the names of unstack and disenstacken.
Simon Forman [Tue, 28 Apr 2020 17:28:30 +0000 (10:28 -0700)]
Switch the names of unstack and disenstacken.

Part of Ticket #38237

Still need to update the docs.

4 years agoMake it easy to install the tools to build the docs.
Simon Forman [Sun, 26 Apr 2020 02:12:25 +0000 (19:12 -0700)]
Make it easy to install the tools to build the docs.

4 years agoMinor cleanup.
Simon Forman [Sun, 26 Apr 2020 01:41:26 +0000 (18:41 -0700)]
Minor cleanup.

4 years agoSome comments in gui.main.
Simon Forman [Sun, 26 Apr 2020 01:24:14 +0000 (18:24 -0700)]
Some comments in gui.main.

4 years agoFinally remove all mentions of the old polytypes module.
Simon Forman [Sat, 25 Apr 2020 22:59:31 +0000 (15:59 -0700)]
Finally remove all mentions of the old polytypes module.

It was merged with types long ago.

4 years agoFixes #40358 Help output could be better.
Simon Forman [Sat, 25 Apr 2020 22:08:58 +0000 (15:08 -0700)]
Fixes #40358 Help output could be better.

For now.  Add a header and footer.  Later on when I have per-function docs
it can look those up and print them (or open a viewer in the GUI.)

4 years agoMinor docs update.
Simon Forman [Sat, 25 Apr 2020 21:14:35 +0000 (14:14 -0700)]
Minor docs update.

4 years agoFixes #40345 automate publication of docs
Simon Forman [Sat, 25 Apr 2020 21:13:52 +0000 (14:13 -0700)]
Fixes #40345 automate publication of docs

With the help of a little tar script on the server and rsync.

4 years agoDon't automodule non-existent joy.utils.polytypes module.
Simon Forman [Sat, 25 Apr 2020 04:27:26 +0000 (21:27 -0700)]
Don't automodule non-existent joy.utils.polytypes module.

4 years agoMake all the docs.
Simon Forman [Sat, 25 Apr 2020 00:53:46 +0000 (17:53 -0700)]
Make all the docs.

4 years agoRebuilt some sphinx docs.
Simon Forman [Sat, 25 Apr 2020 00:21:08 +0000 (17:21 -0700)]
Rebuilt some sphinx docs.

4 years agoFixes: #38238 rename pushback to concat.
Simon Forman [Sat, 25 Apr 2020 00:12:46 +0000 (17:12 -0700)]
Fixes: #38238 rename pushback to concat.

4 years agoDepend on dulwich and future.
Simon Forman [Sat, 25 Apr 2020 00:11:24 +0000 (17:11 -0700)]
Depend on dulwich and future.

4 years agoSort the definitions in the library.
Simon Forman [Fri, 24 Apr 2020 23:13:05 +0000 (16:13 -0700)]
Sort the definitions in the library.

4 years agoRebuilt some docs. Minor edits.
Simon Forman [Fri, 24 Apr 2020 23:10:28 +0000 (16:10 -0700)]
Rebuilt some docs.  Minor edits.

4 years agoSomehow swoncat fell through the cracks.
Simon Forman [Fri, 24 Apr 2020 23:09:32 +0000 (16:09 -0700)]
Somehow swoncat fell through the cracks.

4 years agoMinor edits.
Simon Forman [Fri, 24 Apr 2020 20:27:13 +0000 (13:27 -0700)]
Minor edits.

4 years agoSwitch to tabs for indentation.
Simon Forman [Fri, 24 Apr 2020 19:48:15 +0000 (12:48 -0700)]
Switch to tabs for indentation.

Instead of a mix of 2- and 4-space tabs just use actual tabs.  ;-P

4 years agoFixes: #40354 Don't hardcode my own name and email as autosave committer.
Simon Forman [Fri, 24 Apr 2020 19:28:59 +0000 (12:28 -0700)]
Fixes: #40354 Don't hardcode my own name and email as autosave committer.

4 years agoFixes: #40355 Lookup bytes no good.
Simon Forman [Fri, 24 Apr 2020 19:05:39 +0000 (12:05 -0700)]
Fixes: #40355 Lookup bytes no good.

4 years agoPickle protocol 2.
Simon Forman [Fri, 24 Apr 2020 18:58:43 +0000 (11:58 -0700)]
Pickle protocol 2.

4 years agoDulwich expects bytes not str.
Simon Forman [Fri, 24 Apr 2020 18:57:11 +0000 (11:57 -0700)]
Dulwich expects bytes not str.

4 years agoFixes #40353 TypeError: must be str or None, not bytes
Simon Forman [Fri, 24 Apr 2020 18:45:16 +0000 (11:45 -0700)]
Fixes #40353 TypeError: must be str or None, not bytes

4 years agoFixes #40352 write() argument must be str, not bytes
Simon Forman [Fri, 24 Apr 2020 18:24:56 +0000 (11:24 -0700)]
Fixes #40352 write() argument must be str, not bytes

4 years agoMake sure joy.gui.main.__doc__ is at the top of the module.
Simon Forman [Fri, 24 Apr 2020 17:47:23 +0000 (10:47 -0700)]
Make sure joy.gui.main.__doc__ is at the top of the module.

4 years agoRemove `__next__`.
Simon Forman [Fri, 24 Apr 2020 17:32:48 +0000 (10:32 -0700)]
Remove `__next__`.

4 years agoAttributeError: 'itertools.count' object has no attribute '__next__'
Simon Forman [Fri, 24 Apr 2020 17:10:50 +0000 (10:10 -0700)]
AttributeError: 'itertools.count' object has no attribute '__next__'

4 years agoOpen stack pickle file in binary mode.
Simon Forman [Fri, 24 Apr 2020 17:10:30 +0000 (10:10 -0700)]
Open stack pickle file in binary mode.

4 years agoread text from REPL, don't eval
Simon Forman [Fri, 24 Apr 2020 07:03:32 +0000 (00:03 -0700)]
read text from REPL, don't eval

4 years agoPEP 518
Simon Forman [Fri, 24 Apr 2020 07:00:59 +0000 (00:00 -0700)]
PEP 518

4 years agoFake brutal_hackery on Py3.
Simon Forman [Fri, 24 Apr 2020 07:00:41 +0000 (00:00 -0700)]
Fake brutal_hackery on Py3.

Because I'm not about to try to figure it out tonight.

4 years agofuturize stage2 vui
Simon Forman [Fri, 24 Apr 2020 06:44:29 +0000 (23:44 -0700)]
futurize stage2 vui

4 years agofuturize stage2 gui
Simon Forman [Fri, 24 Apr 2020 06:38:10 +0000 (23:38 -0700)]
futurize stage2 gui

4 years agofuturize stage2 core
Simon Forman [Fri, 24 Apr 2020 06:33:23 +0000 (23:33 -0700)]
futurize stage2 core