Bob Nystrom
73b041a78a
Merge branch 'master' of git://github.com/Alek900/wren into Alek900-master
...
Conflicts:
src/wren_compiler.c
2015-01-11 20:01:30 -08:00
Bob Nystrom
21e740d5c3
Test that carriage returns are treated like whitespace.
2015-01-11 19:58:30 -08:00
Bob Nystrom
ad6d350140
Merge branch 'master' of https://github.com/munificent/wren
2015-01-11 19:53:17 -08:00
Bob Nystrom
3feb72041e
Tweak style a bit.
2015-01-11 19:52:59 -08:00
Bob Nystrom
ab1c5aca0c
Merge branch 'Fix-CRLF-bug' of git://github.com/elder-george/wren into elder-george-Fix-CRLF-bug
2015-01-11 19:52:08 -08:00
Bob Nystrom
e07156d9e2
Merge pull request #74 from tamc/document-inheritance-from-builtins
...
Added documentation about issue #70 - can't inherit from built-ins
2015-01-11 19:50:39 -08:00
Bob Nystrom
650a70b9a3
Merge pull request #96 from zeckalpha/feature/set-example_updated_syntax
...
Set example updated syntax
2015-01-11 19:50:07 -08:00
Bob Nystrom
6bd245b4b2
Tweak comment.
2015-01-11 19:44:35 -08:00
Bob Nystrom
be0032cc40
Merge branch 'segfault_on_top_level_super_with_no_args' of git://github.com/zeckalpha/wren into zeckalpha-segfault_on_top_level_super_with_no_args
2015-01-11 19:42:26 -08:00
Bob Nystrom
bc29e0929e
Rename a couple of files and tweak some docs.
2015-01-11 19:13:15 -08:00
Bob Nystrom
aa48223361
Merge pull request #92 from zeckalpha/https_for_fonts
...
Fonts weren't working in Firefox due to Mixed Content errors.
2015-01-09 09:34:35 -08:00
Bob Nystrom
3116bf97de
Use correct buffer size in string subscript operator.
2015-01-09 07:12:25 -08:00
Bob Nystrom
bcf052436f
Merge pull request #94 from edsrzf/fix-neg-number
...
Don't treat negative numbers as literals
2015-01-09 07:00:12 -08:00
Bob Nystrom
efabf20fee
Make a few changes to methodNotFound():
...
- Move closer to other runtime error code.
- Make it static since it's private to wren_vm.h.
- Allocate a managed ObjString* for the message so the GC can handle it.
That's how it ends up anyway, so this cuts out the middle man.
- Use a width specifier in sprintf() to print the canonical method name.
2015-01-08 22:29:37 -08:00
Bob Nystrom
a9f1d52ef7
Merge branch 'improve-debugging' of git://github.com/gsmaverick/wren into gsmaverick-improve-debugging
2015-01-08 21:49:20 -08:00
Bob Nystrom
7f1b5bfe51
Add stack vs register-based question to FAQ.
2015-01-08 21:06:10 -08:00
Bob Nystrom
15b0d8777c
Handle toString not returning a string in IO.print and IO.write.
...
Fix #67 .
2015-01-08 07:53:37 -08:00
Bob Nystrom
92fcfc1b00
Merge pull request #83 from zeckalpha/benchmark_missing_interpreters
...
Benchmark: Alert that an interpreter was not found rather than halting.
2015-01-08 07:44:29 -08:00
Bob Nystrom
cb0bb6a375
Merge pull request #84 from zeckalpha/operator_they_their_typo
...
Docs: Expressions: Operators: they->their typo
2015-01-08 07:43:00 -08:00
Bob Nystrom
a9a676d706
Merge branch 'master' of https://github.com/munificent/wren
2015-01-08 07:41:49 -08:00
Bob Nystrom
1a7f849c42
Store string length as an int instead of size_t.
...
Saves a few bits, and avoids some signed/unsigned conversions.
It's also consistent with other places string lengths are stored in the VM.
2015-01-08 07:41:30 -08:00
Bob Nystrom
1e6241a7df
Merge pull request #81 from edsrzf/sprintf-return
...
Use the return value of sprintf to avoid strlen calls
2015-01-08 07:01:21 -08:00
Bob Nystrom
49575fc1a5
Merge pull request #80 from edsrzf/string-store-length
...
Store string length
2015-01-08 06:59:41 -08:00
Bob Nystrom
437eddc126
Merge pull request #77 from zeckalpha/benchmark_metrics
...
Add metrics for benchmarks
2015-01-07 07:30:59 -08:00
Bob Nystrom
d53da95664
Merge pull request #76 from zeckalpha/run_bench_python3
...
Make run_bench compatible with Python 3
2015-01-07 07:25:46 -08:00
Bob Nystrom
71fbc32c42
Merge branch 'master' into edsrzf-string-flexible-array
2015-01-07 07:23:03 -08:00
Bob Nystrom
fd859ec70a
Merge pull request #75 from edsrzf/fix-benchmark
...
Remove semi-colons from delta_blue.wren
2015-01-07 07:22:05 -08:00
Bob Nystrom
b30f8446f8
Merge branch 'string-flexible-array' of git://github.com/edsrzf/wren into edsrzf-string-flexible-array
2015-01-07 07:20:12 -08:00
Bob Nystrom
af6be5d346
Update README.md
...
Add Travis build status image.
2015-01-06 07:21:22 -08:00
Bob Nystrom
6adf8c40e1
Don't use printf() to format NaNs since the output isn't fully specified. Fix #65 .
2015-01-06 07:09:45 -08:00
Bob Nystrom
a8507ca17a
Merge branch 'master' of https://github.com/munificent/wren
...
Conflicts:
AUTHORS
2015-01-05 21:58:23 -08:00
Bob Nystrom
2abf70f8d6
Merge pull request #69 from pwoolcoc/add-pwoolcoc-to-authors
...
Add myself to the AUTHORS file
2015-01-05 20:52:01 -08:00
Bob Nystrom
84b2dbf48e
Merge pull request #66 from txgruppi/master
...
Updated description of logical or
2015-01-05 07:46:26 -08:00
Bob Nystrom
84ead3bb18
Start sketching out an actual contributor's guide.
...
- Add AUTHORS file
- Update README to match site docs
2015-01-04 13:36:23 -08:00
Bob Nystrom
52bd38f3bd
Don't double report lexer errors.
2015-01-04 13:10:46 -08:00
Bob Nystrom
09bb28735c
Merge branch 'feature-shebang-support' of git://github.com/mauvm/wren into mauvm-feature-shebang-support
2015-01-04 13:02:42 -08:00
Bob Nystrom
a9bb2387a1
Handle empty (or comment-only) files. Fix #57 .
2015-01-04 13:00:53 -08:00
Bob Nystrom
005688da96
Merge branch 'master' of https://github.com/munificent/wren
2015-01-04 10:03:16 -08:00
Bob Nystrom
728cb2cbca
Gitignore shared libraries and comment makefile a bit.
2015-01-04 10:02:50 -08:00
Bob Nystrom
f466763d54
Merge branch 'build-shared-lib-and-interpreter' of git://github.com/pwoolcoc/wren into pwoolcoc-build-shared-lib-and-interpreter
2015-01-04 09:57:05 -08:00
Bob Nystrom
e46d2e479b
Merge pull request #55 from gsmaverick/repl-newline
...
Don't try to run an empty line in the REPL.
2015-01-03 23:40:20 -08:00
Bob Nystrom
a8726e6c00
SO MUCH NEW DOCS OH WOW.
2015-01-03 23:27:02 -08:00
Bob Nystrom
c25cfca18b
Eliminate semicolons entirely.
2015-01-03 10:02:45 -08:00
Bob Nystrom
c0043e78d4
Merge branch 'master' of https://github.com/munificent/wren
2015-01-02 20:17:36 -08:00
Bob Nystrom
b33dcf0da5
Name the anonymous union since strict C99 doesn't allow it.
2015-01-02 20:17:10 -08:00
Bob Nystrom
d190254f4a
Merge pull request #49 from skybrian/patch-1
...
Fix example of catching and printing an error
2015-01-02 20:09:43 -08:00
Bob Nystrom
2abeb9ad2e
Make first example correct (!). Fix #47 .
2015-01-02 20:07:43 -08:00
Bob Nystrom
6b510da872
Get Travis set up.
2015-01-02 08:13:51 -08:00
Bob Nystrom
526a84c4d6
Remove pointless newline.
2015-01-02 07:59:31 -08:00
Bob Nystrom
99f0bf09c3
Add README and move metrics script.
2015-01-02 07:42:08 -08:00
Bob Nystrom
a1b02a04bb
Clarify license.
2015-01-02 07:38:00 -08:00
Bob Nystrom
f028544b53
CamelCase.
2015-01-02 07:31:02 -08:00
Bob Nystrom
50be5971a4
Fix link to embedding API.
2015-01-01 22:59:38 -08:00
Bob Nystrom
3640c66bfb
Fix range in docs.
2015-01-01 22:48:43 -08:00
Bob Nystrom
d65bd1382b
Add gh-pages build step.
2015-01-01 20:58:36 -08:00
Bob Nystrom
b876f4a51a
More hacking on docs.
2015-01-01 20:45:15 -08:00
Bob Nystrom
42816c46ee
Add TODO for arity getter.
2015-01-01 18:49:10 -08:00
Bob Nystrom
8ab91bf6c2
Fill in some more docs.
2015-01-01 18:48:59 -08:00
Bob Nystrom
0882897c6b
Write doc for error-handling.
2015-01-01 16:02:02 -08:00
Bob Nystrom
c967439ead
Add Fiber.abort() method.
2015-01-01 10:40:14 -08:00
Bob Nystrom
93ced56a7a
Clean up corner case for empty list range.
2014-12-31 10:34:44 -08:00
Bob Nystrom
46733391c1
User pointer for stack top instead of array index.
...
Cleans up a bunch of stack calculation.
2014-12-31 10:34:27 -08:00
Bob Nystrom
2656487f71
Store the start of the current frame's stack in a local.
...
binary_trees - wren .......... 3337 0.30s 99.03% relative to baseline
delta_blue - wren .......... 6989 0.14s 97.90% relative to baseline
fib - wren .......... 2985 0.33s 121.72% relative to baseline
for - wren .......... 8530 0.12s 99.06% relative to baseline
method_call - wren .......... 5047 0.20s 98.74% relative to baseline
2014-12-08 06:57:36 -08:00
Bob Nystrom
d903ba0cbe
Update benchmark chart in docs.
2014-12-07 14:34:17 -08:00
Bob Nystrom
8417fadc2f
Make all heap objects store a reference to their class and inline class lookup.
...
This is redundant, but significantly optimizes method dispatch:
binary_trees - wren .......... 3347 0.30s 110.30% relative to baseline
delta_blue - wren .......... 7161 0.14s 110.39% relative to baseline
fib - wren .......... 2445 0.41s 112.78% relative to baseline
for - wren .......... 8600 0.12s 143.00% relative to baseline
method_call - wren .......... 5112 0.20s 114.15% relative to baseline
2014-12-07 14:29:50 -08:00
Bob Nystrom
ac67386208
Add specialized instructions for loading some locals.
...
Not having to decode a separate arg byte improves some benchmarks:
binary_trees - wren .......... 3094 0.32s 101.95% relative to baseline
delta_blue - wren .......... 6555 0.15s 101.05% relative to baseline
fib - wren .......... 2326 0.43s 107.32% relative to baseline
for - wren .......... 6183 0.16s 102.81% relative to baseline
method_call - wren .......... 4746 0.21s 105.97% relative to baseline
2014-12-06 19:59:11 -08:00
Bob Nystrom
a94dfdac10
Add test for too many constants in one function.
2014-12-06 16:39:39 -08:00
Bob Nystrom
da7aca5dd2
Don't create uninitialized string objects from "" string literals.
2014-12-06 10:04:46 -08:00
Bob Nystrom
e3cf80127b
Ensure functions always have a return even in release builds.
2014-12-01 21:36:06 -08:00
Bob Nystrom
c001042276
More tweaks to hopefully please GCC.
2014-11-28 11:21:01 -08:00
Bob Nystrom
d1a07460c9
Fix compiling break statements.
...
Had the wrong instruction size, which caused later code walking to wander into arguments.
2014-11-26 18:33:54 -08:00
Bob Nystrom
83c2013dfb
Fixes to make GCC happier.
2014-11-26 14:03:05 -08:00
Bob Nystrom
f6cbb6ad75
Add Fiber.try().
2014-10-15 06:36:42 -07:00
Bob Nystrom
24967ed4eb
Endless site tweaking...
2014-10-04 09:57:40 -07:00
Bob Nystrom
de59809b86
Tweak colors.
2014-09-14 09:39:44 -07:00
Bob Nystrom
4dcb68d9b9
More work on the site.
...
- Tweaked the design a bunch.
- Started filling in core library docs.
- Fixed some other prose.
2014-08-24 09:09:10 -07:00
Bob Nystrom
d5f68d70f0
Restyle site.
2014-08-19 07:35:20 -07:00
Bob Nystrom
acceea2206
Clean up makefile a bit.
2014-04-26 08:07:03 -07:00
Bob Nystrom
feb9f7cb53
Fix crash bug in closure capturing.
2014-04-24 17:52:53 -07:00
Bob Nystrom
80a4eb8c9c
Better error message on too many inherited fields.
2014-04-22 07:06:26 -07:00
Bob Nystrom
f1c3bb0f37
Work on responsive CSS.
2014-04-20 21:42:17 -07:00
Bob Nystrom
767e47bbf6
Benchmark chart.
2014-04-20 21:04:41 -07:00
Bob Nystrom
d338ef2f07
Finish fiber docs.
2014-04-19 20:33:49 -07:00
Bob Nystrom
3087daaece
Add a closure test.
2014-04-19 17:48:06 -07:00
Bob Nystrom
09c707e16a
More tests for super calls.
2014-04-19 11:51:36 -07:00
Bob Nystrom
48dab5323d
A few small cleanups.
2014-04-19 11:44:51 -07:00
Bob Nystrom
05717e763d
Move tests to right directory.
2014-04-19 11:41:21 -07:00
Bob Nystrom
c21821e161
Merge branch 'redesign'
2014-04-16 08:00:42 -07:00
Bob Nystrom
2567c4846e
Redesign site.
2014-04-16 08:00:15 -07:00
Bob Nystrom
6677bde98c
Tweak fiber docs a bit.
2014-04-15 06:47:16 -07:00
Bob Nystrom
f03895b17e
Symmetric coroutines!
2014-04-14 07:23:05 -07:00
Bob Nystrom
cd75e17f0d
Docs docs docs.
2014-04-11 10:45:20 -07:00
Bob Nystrom
634e4396cb
Start working on a responsive design for the site.
2014-04-11 10:44:33 -07:00
Bob Nystrom
1cd73e60da
Write "Getting Started" page.
2014-04-09 07:53:30 -07:00
Bob Nystrom
7393e12555
Allow multiple arguments to IO.print().
2014-04-09 07:48:35 -07:00
Bob Nystrom
dfe65305c3
Update delta_blue benchmark to new setter syntax.
2014-04-08 21:40:31 -07:00
Bob Nystrom
b2941cbbb6
Docs for operators and some other stuff.
2014-04-08 21:18:17 -07:00
Bob Nystrom
3a55acfe1a
Test string concatenation.
2014-04-08 21:17:49 -07:00
Bob Nystrom
dca58ff747
Require parentheses around operator and setter arguments.
2014-04-08 17:54:37 -07:00
Bob Nystrom
45701692af
Bring some more blue back into the stylesheet.
2014-04-08 07:46:47 -07:00