1
0
forked from Mirror/wren

1613 Commits

Author SHA1 Message Date
faff0d6ca4 blog; formatting 0.2.0 2019-09-30 23:03:45 -07:00
8ce631e80e blog; add 0.2.0/0.3.0 post 2019-09-30 22:48:04 -07:00
5338275dcd 0.2.0 prep work 2019-09-30 21:38:08 -07:00
3eb4ac1419 Add a clearer error message for forward declared lowercase variables (#699)
* Add better error messaging for forward referenced top level variables, see #467
* add test case
2019-09-30 20:30:27 -07:00
fc7bd1c78f Merge pull request #703 from mwilmsm/master
Cleaned up some documentation typos. -mw
2019-09-30 13:23:51 -07:00
265bcc6780 Cleaned up some documentation typos. -mw 2019-09-30 09:02:55 -05:00
ff4f92eb87 .gitignore; and one more 2019-09-28 12:21:45 -07:00
7617498aa3 .gitignore; correct path for object files 2019-09-28 12:21:19 -07:00
688691b17c Don't access null pointers when printing null module names
fixes #631
2019-09-18 22:49:01 -07:00
7eac8e6a37 docs; encapsulation legibility fixes 2019-09-18 01:43:34 -07:00
898e5356c7 Merge pull request #562 from Salmela/locals-array-overflow-fix
Check that there is space in local variable array
2019-09-18 00:20:03 -07:00
f3b0200c39 Merge pull request #541 from kext/amalgamation
Repaired amalgamation script
2019-09-18 00:11:22 -07:00
cdeb0db5c3 disambiguate the call here from the call in wren_compiler.c (fixes amalgamation having overalapped symbols) 2019-09-18 00:08:07 -07:00
123ba80a89 fix warning about conversion from '__int64' to 'double', possible loss of data 2019-09-18 00:05:16 -07:00
fa2a3d9576 Clarify modulus documentation for sign
closes #695
2019-09-17 22:27:47 -07:00
0e67667010 Update Encapsulation documentation to be clearer
fixes #691
2019-09-17 22:18:55 -07:00
e94c813ecc Merge pull request #698 from matusnovak/fix-foreign-allocate-abort-fiber
Fix wrenAbortFiber does not work inside of foreign class allocator
2019-09-17 11:08:37 -07:00
f91586a71a Fix wrenAbortFiber does not work inside of foreign class allocator 2019-09-17 19:43:53 +02:00
740c365597 Merge pull request #693 from wren-lang/faster-bit-hash
Fix horrendously bad bit hashing function.
2019-07-27 21:00:02 -07:00
2a1499b04b Fix horrendously bad bit hashing function.
hashBits() is used to generate a hash code from the same 64 bits used
to represent a Wren number as a double. When building a map containing
a large number of integer keys, it's important for this to do a good
job scattering the bits across the 32-bit key space.

Alas, it does not. Worse, the benchmark to test this happens to stop
just before the performance falls off a cliff, so this was easy to
overlook.

This replaces it with the hash function V8 uses, which has much better
performance across the numeric range.
2019-07-27 13:34:07 -07:00
d1a0d0682a Merge pull request #688 from pyway/patch-1
fix memory leak in path.c
2019-07-01 07:40:14 -07:00
vvn
5725ecad67 Update path.c 2019-06-13 14:51:28 +08:00
a8fd838255 Merge pull request #680 from bjorn/patch-1
docs: Fixed broken link to overview about maps
2019-04-09 15:46:38 -07:00
451098db05 docs: Fixed broken link to overview about maps
Closes #672
2019-04-09 17:44:15 +02:00
13dfebe1a5 Merge pull request #664 from Heaven31415/master
Update note about path to visual studio solution.
2019-03-24 14:09:24 -07:00
fe3aa60601 Update note about path to visual studio solution. 2019-03-24 21:36:21 +01:00
2d018c9109 Merge pull request #663 from Heaven31415/master
Update link to comment about NaN tagging.
2019-03-24 08:03:52 -07:00
51230e18fc Update link to comment about NaN tagging. 2019-03-24 12:46:39 +01:00
93dac91327 Merge pull request #660 from walterschell/feature/string_fromByte
Added String.fromByte with docs and unit test
2019-02-28 19:31:26 -08:00
a437e804ba Added String.fromByte with docs and unit test 2019-02-27 08:10:54 -05:00
487f53ace1 Merge pull request #657 from SuperWangKai/master
Fixed compiling error of cli on Windows
2019-02-20 09:00:22 -08:00
kai
c58e51fa96 Fixed compiling error of cli on Windows 2019-02-19 15:14:53 +08:00
1ec0b649c1 Merge pull request #589 from FICTURE7/master
Renamed include guard in wren_compiler.h
2019-02-15 07:30:46 -08:00
51c857ab0e Merge pull request #610 from jyaif/bar
Remove unused prototype.
2019-02-15 07:30:16 -08:00
abbb410ff2 Fix assert in insertEntry().
The intent of the assert is to ensure that insertEntry() is not called
with an empty entries array because that would cause you to get into a
code path where the entry output parameter is not set. But the assert
didn't correctly check that.

Fix #635.
2019-02-14 07:51:57 -08:00
03d70f336f Merge pull request #620 from PrimordialHelios/fixup_overflow
Fix overflow on line 401 of wren_compiler.c
2019-02-14 07:42:12 -08:00
b2a2494008 Regenerate REPL include. 2019-02-14 07:33:30 -08:00
35df7faa1e Merge branch 'repl_keys' of https://github.com/PrimordialHelios/wren into PrimordialHelios-repl_keys
# Conflicts:
#	AUTHORS
2019-02-14 07:31:22 -08:00
0f8e9a6554 Merge pull request #612 from iwillspeak/osx-buildfixes
Disable 32 bit macOS Build
2019-02-11 23:33:05 -08:00
6514c592d3 Merge pull request #611 from iwillspeak/doc-fixup
Update Call to `WrenInterpret` in Docs
2019-02-11 23:32:40 -08:00
8a0d2297a1 Merge pull request #615 from iwillspeak/repl-escape-fix
Fixup Handling of `\` in REPL to Prevent Crash
2019-02-11 22:58:06 -08:00
ccb9ba3441 Disable 32 bit macOS Build
With the latest XCode it looks like 32 bit builds are deprecated. This
causes build warnings which fail the libuv build. This commit remvoves
the 32 bit arch from the macOS libuv build, and stops building the 32
build on Travis.
2019-02-12 06:56:38 +00:00
9347c5c61a Update Call to WrenInterpret in Docs
Fixes #599 by updating the arguments to WrenInterpret to match the new
API.
2019-02-12 06:54:58 +00:00
52c16b4f80 Merge branch 'wrenHasError' of https://github.com/mhermier/canary into mhermier-wrenHasError 2019-02-11 07:52:38 -08:00
a945bed812 Merge pull request #655 from wren-lang/limited-reentrancy
Add a limited form of re-entrant calls.
2019-02-11 07:38:09 -08:00
a5147aa2d9 Add a limited form of re-entrant calls.
This doesn't let you arbitrarily call back into the VM from within
foreign methods. I'm still not sure if that's even a good idea since
God knows what that would mean if you switch fibers while doing that.

But this does allow the very important use case of being able to call
a foreign method from within a call to wrenCall(). In other words,
foreign methods need to always be leaf calls on the call stack, but the
root of that stack can now come from runInterpreter() or wrenCall().

Fix #510.
2019-02-08 17:09:39 -08:00
6ac829947a blog; fix twitter link to munificentbob (thanks @noelfb) 2019-02-07 20:40:44 -08:00
25a1431fa7 docs; add some links to blog post 2019-02-07 13:07:21 -08:00
27a08151e7 blog; clarify weird grammar (sponge) 2019-02-05 19:39:38 -08:00
57a1d809d8 docs; replace wren repo URL to point to organization 2019-02-05 18:41:31 -08:00