Commit Graph

353 Commits

Author SHA1 Message Date
bcc31e63a2 add() method is bound as static but bindForeignMethod responds to non-static 2018-03-20 17:13:28 -07:00
f866ee7003 Vendor GYP and libuv into the repo.
Instead of dynamically downloading these as needed during a build, this
checks in those two dependencies directly into the Wren repo. That's a
little lame because users of Wren who aren't building the CLI don't
actually need them, but they aren't too big, so it's not a huge deal.

It makes builds (particularly on Travis) more reliable, because they
don't have to pull down additional content over the network.
2018-03-14 07:27:29 -07:00
d1a772e820 parameter missing in errorFn 2017-11-14 16:56:16 +01:00
7b326d804b Merge pull request #475 from KyleCharters/master
Correct method examples in Range docs
2017-10-31 16:24:58 -07:00
b45cab28d1 Fix embedding path in getting started. 2017-10-31 21:47:51 +01:00
9f79dfcdac Proposal for smarter imports. 2017-10-31 07:49:40 -07:00
1be76bb478 Correct method examples in Range docs 2017-10-23 13:48:43 -04:00
88ff8f90ef Merge pull request #474 from minirop/typo-in-doc
missing language specifier and variable declaration
2017-10-19 22:12:25 -07:00
1661f5368f Allow passing a value when first starting a fiber.
If the function the fiber is created from takes a parameter, the value
passed to the first call() or transfer() gets bound to that parameter.

Also, this now correctly handles fibers with functions that take
parameters. It used to leave the stack in a busted state. Now, it's a
runtime error to create a fiber with a function that takes any more
than one parameter.
2017-10-19 20:45:13 -07:00
e043a95e4e Edit docs. Docs docs docs. 2017-10-19 19:52:05 -07:00
6444a5f5db missing language specifier and variable declaration 2017-10-19 21:17:40 +02:00
f8076c2c1c Revise embedding docs. 2017-10-19 07:02:18 -07:00
e2e16dc4a9 Finish off the rest of the embedding docs.
A first draft of them, at least. They probably need some editing.
Remove the "Application Lifecycle" page for now. I do intend to add
some docs about how fibers interact with the host app, but I can do
that later.
2017-10-17 08:26:06 -07:00
2021e086bf Don't automatically flush on every System.write().
It's handy because it ensures writes are flushed to the terminal before
any calls to read from stdin, but it's also gratuitously slow.

Instead, added a Stdout class with an explicit flush() method that can
be called by the user.

Fix #445.
2017-10-09 07:16:05 -07:00
eba0b97aa2 Merge pull request #472 from KyleCharters/master
Add Num .round
2017-10-06 07:51:55 -07:00
2bb531d860 Tweak Fiber.error docs. 2017-10-05 06:50:45 -07:00
84f2252c68 Add Num .round 2017-09-20 20:27:02 -04:00
16bab57056 fix #468 2017-09-16 21:38:35 -07:00
e9896544c8 Typo fix: is only be -> will only be 2017-04-04 15:29:53 -05:00
a01b8d12bd Typo fix: askes -> asks 2017-03-30 20:20:02 -05:00
8f14bfb4b8 Fix typo in Num documentation
The documentation for the bitwise or operator described the behavior of the bitwise and operator.
2017-03-30 17:45:12 -05:00
b32c445f96 Show constructing "blondie" instance in functions doc.
Fix #432.
2017-03-23 21:22:07 -07:00
9f93119377 Merge branch 'take_and_skip' of https://github.com/bjorn/wren into bjorn-take_and_skip 2017-03-15 07:15:00 -07:00
9efb18bae2 Typo: "seperator" -> "separator". 2017-03-15 07:06:07 -07:00
9fcdf3dc0a Merge branch '201703_split_replace' of https://github.com/JonesAndrew/wren into JonesAndrew-201703_split_replace 2017-03-15 07:04:56 -07:00
32aa43d1df Split and replace in wren. 2017-03-07 21:15:06 -05:00
f14d13a6bf Mention libm in docs. 2017-03-02 07:17:03 -08:00
22ae382ac5 Proofread configuring the VM. 2017-02-12 14:58:16 -08:00
18f8f48bb6 Docs for configuring the VM. 2017-02-12 11:04:38 -08:00
996a607026 More work on embedding docs.
- Revise the earlier pages and tighten them up some.
- Write the docs for foreign methods.
2017-02-12 10:14:37 -08:00
f5d9443d0a Added Sequence.take and Sequence.skip
These lazy iterator producing methods are useful when working with
arbitrary sequences and you need to skip or take some number of elements
at the start.
2017-02-10 21:43:59 +01:00
4fe3ad3f8b Docs for Num.log and Num.pow(). 2017-01-20 07:24:46 -08:00
479ca7ec6d Improve explanation of single-expression blocks.
Fix #390.
2017-01-12 11:05:03 -08:00
0a2bc4a8a7 More copy editing. 2017-01-12 07:11:01 -08:00
fc6a7e5d18 Tweak some docs a little. 2017-01-12 07:10:19 -08:00
09ef904d32 Use DBL_MIN instead of DBL_EPSILON for Num.smallest. 2016-08-27 17:25:32 -07:00
b8b0f36521 Merge branch 'num-properties' of https://github.com/Nelarius/wren into Nelarius-num-properties 2016-08-27 17:18:21 -07:00
0a4f1b370c Revise embedding docs a bit. 2016-08-26 07:11:50 -07:00
6ee1743429 Update Num class doc 2016-08-04 21:17:45 +03:00
500c7b0426 Add List constructors to docs. 2016-08-04 06:28:41 -07:00
6845328661 Tweak String.indexOf(_,_) a bit.
- Simplify the arithmetic a little in wrenStringFind().
- Allow the start to be negative.
- Even more tests.
- Docs.
2016-08-03 22:19:34 -07:00
d192a9a02d Add doc mention of new Num properties 2016-07-10 23:26:23 +03:00
8657a42c21 Merge pull request #366 from underscorediscovery/patch-2
fix range docs to introduction
2016-05-27 07:23:41 -07:00
78deace9a4 Merge pull request #365 from underscorediscovery/patch-1
docs; iterator protocol link relative to core/ not modules/
2016-05-27 07:23:07 -07:00
2b0878ec6d Platform.isWindows. 2016-05-21 12:53:21 -07:00
6002cc4d65 Add Stdin.isTerminal. 2016-05-21 12:51:11 -07:00
06731f66d4 Add a Platform class.
- Rename the "process" module to "os".
- Add Platform to it.
- Static "name" method.
- Static "isPosix" method.
- Docs and tests!
2016-05-21 12:44:17 -07:00
0a060a9678 WrenValue -> WrenHandle. 2016-05-20 20:55:28 -07:00
5a8cacfbe4 fix range docs to introduction
Is that the link that was intended?
2016-05-21 00:24:41 -02:30
b57fd6431a iterator protocol relative to core/ not modules/ 2016-05-21 00:21:47 -02:30