]> hydra-www.ietfng.org Git - dyna2/log
dyna2
13 years agoMove the K3 backend to Backend.K3
Nathaniel Wesley Filardo [Tue, 18 Dec 2012 23:17:10 +0000 (18:17 -0500)]
Move the K3 backend to Backend.K3

13 years agoFix the parser and selftests
Nathaniel Wesley Filardo [Tue, 18 Dec 2012 22:44:09 +0000 (17:44 -0500)]
Fix the parser and selftests

13 years agoPlumb through first pass at rule indexing
Nathaniel Wesley Filardo [Tue, 18 Dec 2012 21:43:57 +0000 (16:43 -0500)]
Plumb through first pass at rule indexing

While here, rename FRule to Rule and fallout

13 years agoREPL uses dyna compiler to get plans; suppports (to some extent) the addition of
timv [Tue, 18 Dec 2012 19:46:57 +0000 (14:46 -0500)]
REPL uses dyna compiler to get plans; suppports (to some extent) the addition of
new rules (deletion or rules should be pretty easy to add).

improvements to code load and compile.

Python codegen no longer uses call indirection table.

'and_equals' and 'or_equals' use python 'and' and 'or' instead of python '&' and
'|', which are bit-twiddling operations.

13 years agomerge
timv [Tue, 18 Dec 2012 04:51:58 +0000 (23:51 -0500)]
merge

13 years agoRework rule planner to take modes from backend
Nathaniel Wesley Filardo [Mon, 17 Dec 2012 23:30:43 +0000 (18:30 -0500)]
Rework rule planner to take modes from backend

While here, factor out some material to Dyna.Analysis.Base, and execute a
proof-of-concept change by adding true/0 and false/0 as constants which
evaluate to True and False in the Python backend.

Some other minor changes seem to have crept in, too.

13 years agononlinear unification.
timv [Mon, 17 Dec 2012 20:50:06 +0000 (15:50 -0500)]
nonlinear unification.

13 years agorow slicing - an example of interesting structure building
timv [Mon, 17 Dec 2012 20:49:35 +0000 (15:49 -0500)]
row slicing - an example of interesting structure building

13 years agoexample of aggregator conflict.
timv [Mon, 17 Dec 2012 20:48:57 +0000 (15:48 -0500)]
example of aggregator conflict.

13 years agodoc tweaks.
timv [Mon, 17 Dec 2012 20:48:05 +0000 (15:48 -0500)]
doc tweaks.

13 years agousing "pair-valued" shape as suggested by Jason in 12/14 Dyna meeting.
timv [Mon, 17 Dec 2012 20:47:30 +0000 (15:47 -0500)]
using "pair-valued" shape as suggested by Jason in 12/14 Dyna meeting.

13 years agoadded sigmoid - a simple example of back-chained math
timv [Mon, 17 Dec 2012 20:46:30 +0000 (15:46 -0500)]
added sigmoid - a simple example of back-chained math

13 years agotweaks to dijkstras
timv [Mon, 17 Dec 2012 20:45:52 +0000 (15:45 -0500)]
tweaks to dijkstras

13 years agotiny tweak to codegen
timv [Mon, 17 Dec 2012 20:43:37 +0000 (15:43 -0500)]
tiny tweak to codegen

13 years agorename
timv [Fri, 14 Dec 2012 18:36:16 +0000 (13:36 -0500)]
rename

--HG--
rename : bin/stdlib.py => bin/interpreter.py

13 years agominor bugfix in plus equals and times equals aggregator, regarding None
timv [Fri, 14 Dec 2012 17:23:21 +0000 (12:23 -0500)]
minor bugfix in plus equals and times equals aggregator, regarding None
values. This tweaks the reactivity issues I was having with the papa2 example.

I've also made a few minor, cleanup/tweaks to stdlib.

13 years agotweaks
timv [Thu, 13 Dec 2012 21:59:31 +0000 (16:59 -0500)]
tweaks

13 years agotweaks to python code.
timv [Thu, 13 Dec 2012 18:53:15 +0000 (13:53 -0500)]
tweaks to python code.

13 years agomerge
timv [Thu, 13 Dec 2012 18:47:25 +0000 (13:47 -0500)]
merge

13 years agomatrix shape.
timv [Thu, 13 Dec 2012 18:46:48 +0000 (13:46 -0500)]
matrix shape.

13 years agoCreate Dyna.Main. and move exceptions there
Nathaniel Wesley Filardo [Thu, 13 Dec 2012 06:25:58 +0000 (01:25 -0500)]
Create Dyna.Main. and move exceptions there

13 years agofix boo-boo
timv [Thu, 13 Dec 2012 05:26:29 +0000 (00:26 -0500)]
fix boo-boo

13 years agoFIX: aggregating on empty returns None, which now propagate correctly thru the
timv [Thu, 13 Dec 2012 04:29:04 +0000 (23:29 -0500)]
FIX: aggregating on empty returns None, which now propagate correctly thru the
program.

13 years agoAdd examples/dijkstra.dyna, taken from Dyna 1
Nathaniel Wesley Filardo [Thu, 13 Dec 2012 04:19:34 +0000 (23:19 -0500)]
Add examples/dijkstra.dyna, taken from Dyna 1

13 years agotweaks.
timv [Thu, 13 Dec 2012 04:10:44 +0000 (23:10 -0500)]
tweaks.

13 years agotweaks
timv [Thu, 13 Dec 2012 03:33:20 +0000 (22:33 -0500)]
tweaks

13 years ago()
timv [Thu, 13 Dec 2012 03:21:06 +0000 (22:21 -0500)]
()

13 years ago()
timv [Thu, 13 Dec 2012 03:20:54 +0000 (22:20 -0500)]
()

13 years agomerge
timv [Thu, 13 Dec 2012 03:09:30 +0000 (22:09 -0500)]
merge

13 years ago()
timv [Thu, 13 Dec 2012 03:09:09 +0000 (22:09 -0500)]
()

13 years agoLet's try that again.
Nathaniel Wesley Filardo [Thu, 13 Dec 2012 03:07:12 +0000 (22:07 -0500)]
Let's try that again.

13 years agoStop being quite so ambitious in Analysis.RuleMode.inv
Nathaniel Wesley Filardo [Thu, 13 Dec 2012 03:05:32 +0000 (22:05 -0500)]
Stop being quite so ambitious in Analysis.RuleMode.inv

13 years agosimpl, flat, replacement updates in python script.
timv [Thu, 13 Dec 2012 02:52:08 +0000 (21:52 -0500)]
simpl, flat, replacement updates in python script.

13 years agovery nice webpage generated.
timv [Thu, 13 Dec 2012 02:50:58 +0000 (21:50 -0500)]
very nice webpage generated.

13 years agomerge
timv [Wed, 12 Dec 2012 21:51:05 +0000 (16:51 -0500)]
merge

13 years agoMissed in the last round of commits
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 21:50:27 +0000 (16:50 -0500)]
Missed in the last round of commits

13 years agomerge
timv [Wed, 12 Dec 2012 21:48:29 +0000 (16:48 -0500)]
merge

13 years agoworking on some javascript hacks to help us manage our compiler output.
timv [Wed, 12 Dec 2012 21:46:50 +0000 (16:46 -0500)]
working on some javascript hacks to help us manage our compiler output.

13 years agoMore .gitignore rules
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 21:44:27 +0000 (16:44 -0500)]
More .gitignore rules

13 years agoAdd perverse examples
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 21:44:13 +0000 (16:44 -0500)]
Add perverse examples

13 years agoCode shuffling for debugging backends
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 21:44:00 +0000 (16:44 -0500)]
Code shuffling for debugging backends

13 years agoremove old update planner.
timv [Wed, 12 Dec 2012 21:19:46 +0000 (16:19 -0500)]
remove old update planner.

13 years agoENH: dump-to-file/display stable rendering of chart.
timv [Wed, 12 Dec 2012 21:19:27 +0000 (16:19 -0500)]
ENH: dump-to-file/display stable rendering of chart.

13 years agoHandle "diagonal" cases in rule planner
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 20:54:15 +0000 (15:54 -0500)]
Handle "diagonal" cases in rule planner

13 years agoFIX: accidently delete on unchanged values
timv [Wed, 12 Dec 2012 20:46:27 +0000 (15:46 -0500)]
FIX: accidently delete on unchanged values

13 years agotweaks.
timv [Wed, 12 Dec 2012 20:37:09 +0000 (15:37 -0500)]
tweaks.

13 years agoPut "call" indirection table and aggregator definitions in defn ("definitions")
timv [Wed, 12 Dec 2012 20:00:26 +0000 (15:00 -0500)]
Put "call" indirection table and aggregator definitions in defn ("definitions")
module.

13 years agoadded matrixops examples; demonstrates the "edge template overcounting problem" ...
timv [Wed, 12 Dec 2012 19:51:46 +0000 (14:51 -0500)]
added matrixops examples; demonstrates the "edge template overcounting problem" - a template which shouldnt fire more than once results in overcounting.

13 years agoFIX: run_agenda termination condition
timv [Wed, 12 Dec 2012 09:57:16 +0000 (04:57 -0500)]
FIX: run_agenda termination condition
FIX: more fixes pertaining to python tuple unpacking.

13 years agoelaborate papa2 example works!
timv [Wed, 12 Dec 2012 06:34:28 +0000 (01:34 -0500)]
elaborate papa2 example works!

use correct aggregators for each functor.

13 years agomerge
timv [Wed, 12 Dec 2012 05:45:12 +0000 (00:45 -0500)]
merge

13 years agoMerge branch 'master' of github.com:nwf/dyna
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 05:43:11 +0000 (00:43 -0500)]
Merge branch 'master' of github.com:nwf/dyna

13 years agomerge
timv [Wed, 12 Dec 2012 05:42:17 +0000 (00:42 -0500)]
merge

13 years agomerge
timv [Wed, 12 Dec 2012 05:41:42 +0000 (00:41 -0500)]
merge

13 years agoTweak Analysis.RuleMode planning strategy
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 05:41:21 +0000 (00:41 -0500)]
Tweak Analysis.RuleMode planning strategy

This should result in all-bound OPCalls being earlier in update plans,
leading to earlier bail-out in the case of an update not being applicable.

13 years agoFIX: syntactic issues - can't assign to "()"
timv [Wed, 12 Dec 2012 05:40:24 +0000 (00:40 -0500)]
FIX: syntactic issues - can't assign to "()"

FIX: "continue" cases in for-loops

13 years agoLinearization & annotation handling in ANF
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 04:08:34 +0000 (23:08 -0500)]
Linearization & annotation handling in ANF

13 years agomerge
timv [Wed, 12 Dec 2012 02:49:21 +0000 (21:49 -0500)]
merge

13 years agoadded papa2 example.
timv [Wed, 12 Dec 2012 02:46:50 +0000 (21:46 -0500)]
added papa2 example.

13 years agoA little smarter Analysis.RuleMode planner
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 02:46:12 +0000 (21:46 -0500)]
A little smarter Analysis.RuleMode planner

13 years agorenderSpan moved to trifecta utils.
timv [Wed, 12 Dec 2012 02:45:47 +0000 (21:45 -0500)]
renderSpan moved to trifecta utils.

13 years agofixed bug in loading anf output.
timv [Wed, 12 Dec 2012 02:44:30 +0000 (21:44 -0500)]
fixed bug in loading anf output.

13 years agotake dyna source as input, asks dyna compiler to compile.
timv [Wed, 12 Dec 2012 02:44:08 +0000 (21:44 -0500)]
take dyna source as input, asks dyna compiler to compile.

13 years agoescape quote characters so we don't break graphviz.
timv [Wed, 12 Dec 2012 02:43:46 +0000 (21:43 -0500)]
escape quote characters so we don't break graphviz.

13 years agoMerge branch 'master' of github.com:nwf/dyna
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 02:38:58 +0000 (21:38 -0500)]
Merge branch 'master' of github.com:nwf/dyna

13 years agoMaybe fix aggregator parsing
Nathaniel Wesley Filardo [Wed, 12 Dec 2012 02:38:27 +0000 (21:38 -0500)]
Maybe fix aggregator parsing

Dot is not an aggregator

13 years agoadded papa.dyna to examples.
timv [Tue, 11 Dec 2012 23:45:06 +0000 (18:45 -0500)]
added papa.dyna to examples.

13 years ago()
timv [Tue, 11 Dec 2012 23:44:51 +0000 (18:44 -0500)]
()

13 years agouse (generated) initializers.
timv [Tue, 11 Dec 2012 23:44:39 +0000 (18:44 -0500)]
use (generated) initializers.

13 years agomerge
timv [Tue, 11 Dec 2012 21:48:29 +0000 (16:48 -0500)]
merge

13 years agoAttempt to handle "is/2" in normalizer; fallout
Nathaniel Wesley Filardo [Tue, 11 Dec 2012 21:31:20 +0000 (16:31 -0500)]
Attempt to handle "is/2" in normalizer; fallout

13 years agostdlib: "Papa" example works.
timv [Tue, 11 Dec 2012 21:04:36 +0000 (16:04 -0500)]
stdlib: "Papa" example works.

13 years agoAdd planning for initializers; make python write them
Nathaniel Wesley Filardo [Tue, 11 Dec 2012 19:07:16 +0000 (14:07 -0500)]
Add planning for initializers; make python write them

13 years agoWIP: more pieces of the puzzle
timv [Tue, 11 Dec 2012 18:55:00 +0000 (13:55 -0500)]
WIP: more pieces of the puzzle

13 years agomerge
timv [Tue, 11 Dec 2012 06:55:06 +0000 (01:55 -0500)]
merge

13 years agoCrude implementation of the chart and other utils. Starting to spin the wheels on...
timv [Tue, 11 Dec 2012 06:51:42 +0000 (01:51 -0500)]
Crude implementation of the chart and other utils. Starting to spin the wheels on CKY on a simple sentence.

13 years agotweaks
timv [Tue, 11 Dec 2012 02:56:59 +0000 (21:56 -0500)]
tweaks

13 years agoAdjust variable naming convention slightly
Nathaniel Wesley Filardo [Mon, 10 Dec 2012 22:57:28 +0000 (17:57 -0500)]
Adjust variable naming convention slightly

13 years agomerge
timv [Mon, 10 Dec 2012 22:24:02 +0000 (17:24 -0500)]
merge

13 years agoadded Dyna/Test/Main2.hs - temporary test runner which skips K3Backend tests.
timv [Mon, 10 Dec 2012 22:22:50 +0000 (17:22 -0500)]
added Dyna/Test/Main2.hs - temporary test runner which skips K3Backend tests.

13 years agoMinor refactoring: ANFRules carry around ANFState and Trifecta Span information.
timv [Mon, 10 Dec 2012 22:14:24 +0000 (17:14 -0500)]
Minor refactoring: ANFRules carry around ANFState and Trifecta Span information.

renamed type FDR to FRule to match the constructor.

13 years agoRestore inverse math; drop arity from OPGetArgsIf
Nathaniel Wesley Filardo [Mon, 10 Dec 2012 20:49:00 +0000 (15:49 -0500)]
Restore inverse math; drop arity from OPGetArgsIf

13 years agoRestore deleted submodules
Nathaniel Wesley Filardo [Mon, 10 Dec 2012 20:43:22 +0000 (15:43 -0500)]
Restore deleted submodules

13 years agoremoved Analysis/RuleModeTest.hs, the old Python code generator, in favor of Backend...
timv [Mon, 10 Dec 2012 20:03:41 +0000 (15:03 -0500)]
removed Analysis/RuleModeTest.hs, the old Python code generator, in favor of Backend/Python.hs.

13 years agoImprovements python code generation.
timv [Mon, 10 Dec 2012 20:02:18 +0000 (15:02 -0500)]
Improvements python code generation.

Require end of file when parsing file.

13 years agoUsing "_" instead of "_$" as our intermediate variable prefix.
timv [Mon, 10 Dec 2012 19:59:37 +0000 (14:59 -0500)]
Using "_" instead of "_$" as our intermediate variable prefix.

13 years agoTweak ANF, etc.; clone pdope in Backend.Python
Nathaniel Wesley Filardo [Mon, 10 Dec 2012 09:12:57 +0000 (04:12 -0500)]
Tweak ANF, etc.; clone pdope in Backend.Python

This commit is known to break Dyna.Analysis.RuleModeTest; sorry.

13 years agoManual merge
Nathaniel Wesley Filardo [Mon, 10 Dec 2012 08:02:43 +0000 (03:02 -0500)]
Manual merge

13 years agoYet another stab at ANF
Nathaniel Wesley Filardo [Mon, 10 Dec 2012 07:59:32 +0000 (02:59 -0500)]
Yet another stab at ANF

13 years agocrummy code generation from crummy plans.
timv [Mon, 10 Dec 2012 07:00:09 +0000 (02:00 -0500)]
crummy code generation from crummy plans.

13 years agofirst pass at dopeamine pretty printing.
timv [Mon, 10 Dec 2012 06:54:38 +0000 (01:54 -0500)]
first pass at dopeamine pretty printing.

13 years agofirst pass at dopeamine pretty printing.
timv [Mon, 10 Dec 2012 06:54:01 +0000 (01:54 -0500)]
first pass at dopeamine pretty printing.

13 years agoadded test case; whitespace cleanup
timv [Mon, 10 Dec 2012 01:36:13 +0000 (20:36 -0500)]
added test case; whitespace cleanup

13 years agoadded a few more dyna examples
timv [Mon, 10 Dec 2012 01:35:23 +0000 (20:35 -0500)]
added a few more dyna examples

13 years agoStart Dyna.Backend.Python; add Analysis.Aggregation; tweak ANF
Nathaniel Wesley Filardo [Mon, 10 Dec 2012 01:32:15 +0000 (20:32 -0500)]
Start Dyna.Backend.Python; add Analysis.Aggregation; tweak ANF

13 years agoAdd mapUpsert to XXX.DataUtils
Nathaniel Wesley Filardo [Sun, 9 Dec 2012 22:50:18 +0000 (17:50 -0500)]
Add mapUpsert to XXX.DataUtils

13 years agoTweaks to Analysis.ANF and friends
Nathaniel Wesley Filardo [Sun, 9 Dec 2012 22:50:00 +0000 (17:50 -0500)]
Tweaks to Analysis.ANF and friends

13 years agoAnother day, another try at Analysis.RuleMode
Nathaniel Wesley Filardo [Sun, 9 Dec 2012 20:57:16 +0000 (15:57 -0500)]
Another day, another try at Analysis.RuleMode

This time around, we're more dopaminergic.

13 years agoComments in ParserHS
Nathaniel Wesley Filardo [Sun, 9 Dec 2012 20:57:08 +0000 (15:57 -0500)]
Comments in ParserHS

13 years agoInitial pass at rule mode planning in Haskell
Nathaniel Wesley Filardo [Sun, 9 Dec 2012 06:18:45 +0000 (01:18 -0500)]
Initial pass at rule mode planning in Haskell