Skip to content

Commit 63093ec

Browse files
committed
[ci skip] prepare for battle
1 parent 312a368 commit 63093ec

File tree

5 files changed

+39
-10
lines changed

5 files changed

+39
-10
lines changed

docs/source/benchmarks.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Bars go up to the average execution time. Lower is better. Reported times are fo
2525
:target: https://raw.githubusercontent.com/ThePhD/lua-bench/master/lua%20-%20results/lua%20bench%20graph%20-%20member%20variable.png
2626
:alt: bind a variable to an object and call it in Lua code
2727

28+
.. image:: https://raw.githubusercontent.com/ThePhD/lua-bench/master/lua%20-%20results/lua%20bench%20graph%20-%20member%20variable.png
29+
:target: https://raw.githubusercontent.com/ThePhD/lua-bench/master/lua%20-%20results/lua%20bench%20graph%20-%20many%20member%20variables.png
30+
:alt: bind MANY variables to an object and call it in Lua code
31+
2832
.. image:: https://raw.githubusercontent.com/ThePhD/lua-bench/master/lua%20-%20results/lua%20bench%20graph%20-%20c%20function%20through%20lua.png
2933
:target: https://raw.githubusercontent.com/ThePhD/lua-bench/master/lua%20-%20results/lua%20bench%20graph%20-%20c%20function%20through%20lua.png
3034
:alt: retrieve a C function bound in Lua and call it from C++

docs/source/eevee_code_after.jpg

9.37 KB
Loading

docs/source/eevee_code_before.jpg

58.1 KB
Loading

docs/source/mentions.rst

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,46 @@ so does anyone cool use this thing...?
55

66
Okay, so the features don't convince you, the documentation doesn't convince you, you want to see what *other* people think about Sol? Well, aside from the well-wishes that come through in the issue tracker, here's a few things floating around about sol2 that I occasionally get pinged about:
77

8+
`eevee`_ demonstrating the sheer code reduction by using sol2:
9+
10+
11+
.. |before| image:: eevee_code_before.jpg
12+
:target: https://twitter.com/eevee/status/762039984085798913
13+
:alt: Plain C API
14+
:align: middle
15+
16+
.. |after| image:: eevee_code_after.jpg
17+
:target: https://twitter.com/eevee/status/762039984085798913
18+
:alt: Now with sol2!
19+
:align: middle
20+
21+
+----------+---------+
22+
| |before| | |after| |
23+
+----------+---------+
24+
825

9-
* (Reddit) Posts on reddit about it!
10-
- https://www.reddit.com/r/cpp/comments/4a8gy7/sol2_lua_c_binding_framework/
11-
- https://www.reddit.com/r/cpp/comments/4x82hd/plain_c_versus_lua_libraries_benchmarking_speed/
1226
* (CppNow) sol2 was mentioned in a comparison to other scripting languages by ChaiScript developer, Jason Turner (@lefticus), at a conference!
1327
- https://github.com/lefticus/presentations/blob/master/HowAndWhyToAddScripting.md
1428
* (CppCast) Showed up in CppCast with Elias Daler!
1529
- https://eliasdaler.github.io/cppcast#read-more
1630
- http://cppcast.com/2016/07/elias-daler/
1731
* (Eevee) A really nice and neat developer/artist/howaretheysotalented person is attempting to use it for zdoom!
1832
- https://eev.ee/dev/2016/08/07/weekly-roundup-three-big-things/
19-
* (Twitter) Retweets by ThePhD from others!
20-
- https://twitter.com/thephantomderp/status/755214464950034432
33+
* (Twitter) Twitter has some people that link it:
34+
- https://twitter.com/eevee/status/762039984085798913
2135
- https://twitter.com/thephantomderp/status/762043162835709952
22-
- https://twitter.com/thephantomderp/status/755214464950034432
23-
* Somehow landed on a Torque3D thread... that's nothing something ThePhD was planning for...!
36+
- https://twitter.com/EliasDaler/status/739082026679173120
37+
- https://twitter.com/racodslair/status/754031870640267264
38+
* (Reddit) Posts on reddit about it!
39+
- https://www.reddit.com/r/cpp/comments/4a8gy7/sol2_lua_c_binding_framework/
40+
- https://www.reddit.com/r/cpp/comments/4x82hd/plain_c_versus_lua_libraries_benchmarking_speed/
41+
* Somehow landed on a Torque3D thread...
2442
- http://forums.torque3d.org/viewtopic.php?f=32&t=629&p=5246&sid=8e759990ab1ce38a48e896fc9fd62653#p5241
2543

26-
And, of course, ThePhD uses it. Isn't that enough?
2744

28-
Are you using sol2 for something neat? Want it to be featured here or think it's unfair that ThePhD hasn't found it yet? Well, drop an issue in the repo or send an e-mail!
45+
`Tell me about your uses!`_
46+
47+
Are you using sol2 for something neat? Want it to be featured here or think it's unfair that ThePhD hasn't found it yet? Well, drop an issue in the repo or send an e-mail!
48+
49+
.. _Tell me about your uses!: https://github.com/ThePhD/sol2/issues/189
50+
.. _eevee: https://twitter.com/eevee

docs/source/tutorial/all-the-things.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Equivalent Lua code:
246246
247247
You can put anything you want in tables as values or keys, including strings, numbers, functions, other tables.
248248

249-
Note that this idea that things can be nested is important and will help later when you get into :ref:`namespacing<namespaceing>`.
249+
Note that this idea that things can be nested is important and will help later when you get into :ref:`namespacing<namespacing>`.
250250

251251

252252
functions
@@ -544,6 +544,9 @@ C++ classes put into Lua
544544

545545
See this :doc:`section here<cxx-in-lua>` and after perhaps see if :doc:`simple usertypes suit your needs<../api/simple_usertype>`. Also check out some `a basic example`_, `special functions`_ and `initializers`_,
546546

547+
548+
.. _namespacing:
549+
547550
namespacing
548551
-----------
549552

0 commit comments

Comments
 (0)