You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/12/12 23:33:54 UTC
[GitHub] [couchdb] nickva opened a new pull request, #4303: Let's try Lua for a change
nickva opened a new pull request, #4303:
URL: https://github.com/apache/couchdb/pull/4303
So far can start a cluster `./dev/run ...` then in a remsh can test the sandbox feature:
1) No reductions, use all the CPUs:
```
f(), {R, _} = luerl_sandbox:run("a={}; for i=1,100 do a[i] = 5 end; return 'foo'", luerl_sandbox:init(), _Reductions = 10000), R.
[<<"foo">>]
```
2) Slow down, pardner!
```
f(), luerl_sandbox:run("a={}; for i=1,100 do a[i] = 5 end; return 'foo'", luerl_sandbox:init(), _Reductions = 500).
{error,{reductions,4000}}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva closed pull request #4303: Let's try Lua for a change
Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva closed pull request #4303: Let's try Lua for a change
URL: https://github.com/apache/couchdb/pull/4303
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org