~kdsch/kappa

5ac3e8e7 — Karl Schultheisz 5 years ago master
Merge pull request #8 from kdsch/nayuki

README.md: add fast fibonacci algorithm example
f05a998a — Karl Schultheisz 5 years ago
README.md: add fast fibonacci algorithm example
1c48833c — Karl Schultheisz 5 years ago
Merge pull request #7 from kdsch/6-move-benchmarks

move benchmarks into tests
b68a8546 — Karl Schultheisz 5 years ago
testdata/test.kp: change benchmark case
e461ba6c — Karl Schultheisz 5 years ago
fix benchmark function
b06bde2b — Karl Schultheisz 5 years ago
move benchmarks into tests
79ce4a5c — Karl Schultheisz 5 years ago
sloc: use find -exec, not xargs
a5b47c04 — Karl Schultheisz 5 years ago
README.md: fix list formatting
83e5517b — Karl Schultheisz 5 years ago
README.md: rewrite
a9b383ee — Karl Schultheisz 5 years ago
refinements
06ac5694 — Karl Schultheisz 5 years ago
go fmt ./...
b8796e2f — Karl Schultheisz 5 years ago
remove unused file; rename a file
762ed9c7 — Karl Schultheisz 5 years ago
add license
2e8e499b — Karl Schultheisz 5 years ago
move all files up one directory
81893d6a — Karl Schultheisz 5 years ago
change import path, become a module
3a465da4 — Karl Schultheisz 5 years ago
progress!

We're in the middle of some changes. Stay tuned.
8507d6ce — Karl Schultheisz 5 years ago
improve performance

Linked lists as expressions seem to speed up the machine;
particularly, shifting to the next word is much faster than ropes.
Still unclear whether this is true for stacks; should investigate
more.
fb3dc62f — Karl Schultheisz 5 years ago
add variadic bindings

This allows a single bindv expression to bind multiple values
from the stack to a sequence of variables.
78036fb0 — Karl Schultheisz 5 years ago
let there be lists

Any decent programming language has data structures. We had Expr
and Stack, but now both have been merged into Seq. This is all
for the better. It gives us much flexibility and power. Furthermore,
we've introduce [ ] syntax for lists, backed up by Seq.

We had to abandon the linked list that was the sole implementation
of Stack. It will be missed. But std.Rope is much more powerful;
it works quite well as either a stack or an expression. It's a good
Seq.

We've introduced new builtins for lists.

One wrinkle introduced: lists can contain arbitrary expressions,
which are reduced when the list is reduced. These feels somewhat
like calling a block; but instead of the block working with the
main stack, it works on a separate stack.

This means that the interpreter embraces a self-replicating machine
model, which is not physically realistic. I have not determined
whether I care about this. In the long term, we should maybe not do
this.
b35bd9f5 — Karl Schultheisz 5 years ago
lexer: gofmt
Next
Do not follow this link