Commit Graph

745 Commits

Author SHA1 Message Date
12f725f2ef authors: add myself to authors 2015-03-01 07:50:30 -05:00
e72eedc6f5 Merge pull request #202 from bjorn/fib
Made the fib benchmark a bit faster
2015-02-28 16:51:41 -08:00
876c2d9208 Add API to call Wren method from C code.
This gives you a simple, efficient way to invoke a method on
some Wren object from C code, passing in arguments.

The basic API is in place and works, but there's still lots to do:

- Lots of error handling.
- Documentation.
- Tests!
2015-02-28 13:31:15 -08:00
d5377faf11 Made the fib benchmark a bit faster
This way fib.wren was consistently about 6% faster for me.
2015-02-28 21:15:18 +01:00
6b05610c6a Correctly count range size in GC. 2015-02-28 09:09:57 -08:00
f472a301a2 Don't trigger GC on deallocation. 2015-02-27 21:41:59 -08:00
59796bcf5d Document benchmark runner. 2015-02-27 21:34:07 -08:00
c27a094882 Reorganize superclass validation a bit. 2015-02-27 08:08:27 -08:00
46713a5bb3 Merge branch 'issue-70' of git://github.com/verpeteren/wren into verpeteren-issue-70 2015-02-27 07:41:25 -08:00
effa69f64e Tweak docs a bit. 2015-02-27 07:37:58 -08:00
7cb5de388d Merge branch 'doc-site-core-num' of git://github.com/hachibu/wren into hachibu-doc-site-core-num 2015-02-27 07:30:58 -08:00
8408e862a3 Clean up the test script a bit. 2015-02-27 07:22:27 -08:00
07c7b49681 Use full signature in method debug name. 2015-02-27 07:10:44 -08:00
5d116153dd Simplify parameterList(). 2015-02-27 06:51:37 -08:00
ac70088e6b doc: add documentation for ceil, floor, .., and ... in num.markdown 2015-02-27 08:49:42 -05:00
96ceaa528b Allow empty argument list methods.
- Compile them as calls and definitions.
- Use them for call(), clear(), run(), try(), and yield().
- Update the docs.
2015-02-26 23:08:36 -08:00
1aaa8cff52 Use more comprehensive signature strings for methods. 2015-02-26 21:56:15 -08:00
e007bb7f11 Make embedding API provide full method signature. 2015-02-26 07:44:45 -08:00
22edfd7e7f Add note to comment. 2015-02-26 07:37:10 -08:00
f05d6143f5 Generating a runtime error on subclassing of builtins
As discussed in https://github.com/munificent/wren/issues/70, it is not allowed to subclass built-in types.
2015-02-25 20:13:37 +01:00
6a10d9740c Merge pull request #187 from MarcoLizza/bitwise_precedence
Bitwise precedence
2015-02-25 07:14:31 -08:00
fc2ed6f6e1 Don't allow trailing non-number characters when parsing a string to a number. 2015-02-25 07:07:54 -08:00
88e7f778aa Raising '&&' precedence above '||' one's. 2015-02-25 16:04:02 +01:00
21734b169a Bitwise operators precedence is now between 'PREC_COMPARISON' and 'PREC_RANGE'. 2015-02-25 16:02:29 +01:00
cec1f9160a Moving bitwise precedence-test to the correct folder. 2015-02-25 16:00:53 +01:00
4b88292ec1 Merge branch 'num-from-string' of git://github.com/gsmaverick/wren into gsmaverick-num-from-string 2015-02-25 06:53:12 -08:00
516808f6d2 Fix typo in docs. 2015-02-25 06:49:42 -08:00
f4a39bc943 Code review changes. 2015-02-25 01:20:53 -08:00
6e680f89bf Merge branch 'master' of https://github.com/munificent/wren 2015-02-24 22:08:57 -08:00
b5e5f80d8c Fix some signed-unsigned mismatches. 2015-02-24 21:56:33 -08:00
0242e43ed5 Make sure UINT32_MAX is available even in gcc C++ builds. 2015-02-24 21:09:04 -08:00
d0923f8fe1 Make sure UINT32_MAX is defined. 2015-02-24 20:26:39 -08:00
963ebb237d Install gcc-multilib so 32-bit C libraries are available on 64-bit Travis VMs. 2015-02-24 20:26:24 -08:00
03595703e2 Merge pull request #185 from MarcoLizza/baseline_in_benchmark_dir
Fixed benchmark baseline-file creation path.
2015-02-24 19:49:29 -08:00
5f0a2ba21c Just use a normal relative path to import relative to the cwd. 2015-02-24 19:47:17 -08:00
dc0dda3993 Merge branch 'wren_cpp_warnings' of git://github.com/MarcoLizza/wren into MarcoLizza-wren_cpp_warnings 2015-02-24 19:43:12 -08:00
f296850242 Build all configurations on Travis. 2015-02-24 19:32:46 -08:00
dfa1b51663 Add bitwise operators precedence test. 2015-02-23 17:29:31 +01:00
f280789758 Fix bitwise operators precedence. 2015-02-23 17:28:43 +01:00
422801a64a Allow executing multiple chunks of code in the same module.
This means successive calls to wrenInterpret() will run in
the same context. Allows variables to span calls in the REPL.
2015-02-23 07:02:27 -08:00
0577bf3784 Use current working directory as a module root for REPL. 2015-02-23 13:57:56 +01:00
940135c03b Remove C++ warnings on GCC and (minor) memory leak when allocating root-directory. 2015-02-23 13:57:20 +01:00
512baa2aff Fixed benchmark baseline-file creation path. 2015-02-23 10:01:57 +01:00
03a5b96040 Add a fromString static method on Num that converts strings to numbers. 2015-02-22 20:06:17 -08:00
a9d9362e29 Fix some typos in fn docs. 2015-02-22 12:34:32 -08:00
0dda174855 A bit more compiler clean up. 2015-02-22 11:04:43 -08:00
0f9e15833f Unify argument parsing. Fix #24. 2015-02-22 10:42:49 -08:00
a8a5805895 Fix test script. 2015-02-22 10:42:21 -08:00
bd97c244a5 Document removeAt() return value. Fix #176. 2015-02-22 10:26:31 -08:00
d6ec8c114e Don't crash if script path has no path separator. Fix #181. 2015-02-22 10:22:21 -08:00