id
stringlengths
36
36
question_id
int64
6.86k
80M
chunk_index
int32
0
22
embedding_text
stringlengths
54
8.26k
dense_tokens
int32
14
1.02k
sparse_tokens
int32
14
1.02k
languages
listlengths
1
5
tags
listlengths
1
5
payload_json
stringlengths
405
549
dense
list
sparse_indices
listlengths
9
446
sparse_values
listlengths
9
446
962ac9ed-ab13-55b8-93b4-3ba6fa349b8b
6,859
0
Title: Developing addins for World of Warcraft - Getting started? As a long time World of Warcraft player, and a passionate developer I have decided that I would like to combine the two and set about developing some addins. Not only to improve my gameplay experience but as a great opportunity to learn something new. ...
140
144
[ "lua" ]
[ "plugins", "lua", "add-on", "world-of-warcraft" ]
{"accepted_answer_id":6863,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":"2016-04-11T23:12:53.557000+00:00","creation_date":"2008-08-09T17:51:09.313000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["lua"],"last_activity_date":"2014-10-07T12:46:53.220000+00:00","last_edit_date":"2013-0...
[ 0.0152740478515625, 0.0204010009765625, -0.0032825469970703125, -0.0127105712890625, 0.046295166015625, -0.046783447265625, 0.00438690185546875, 0.0270843505859375, -0.01116180419921875, -0.0099029541015625, -0.0247039794921875, 0.01313018798828125, 0.04248046875, 0.00701141357421875, 0....
[ 54, 100, 111, 214, 738, 1632, 1672, 1733, 1810, 1884, 2291, 3060, 3525, 3642, 4527, 4989, 5161, 5423, 5425, 5550, 6626, 6661, 6782, 7228, 11249, 11522, 15190, 16912, 16981, 19882, 21407, 26859, 30698, 33976, 35773, 36096, 36497, 36802, 4354...
[ 0.0220947265625, 0.06298828125, 0.0830078125, 0.04345703125, 0.0087890625, 0.1259765625, 0.06298828125, 0.10302734375, 0.154296875, 0.0230712890625, 0.158203125, 0.01123046875, 0.03076171875, 0.0272216796875, 0.05615234375, 0.043212890625, 0.060302734375, 0.01953125, 0.2060546875...
4b61b187-a48c-5360-ba04-76d464af1dfe
71,239
0
Title: Is there a way to use Lua on BREW 3.0 platform? It looks like BREW 4.0 will have Lua included. But is it possible to use Lua on older BREW 3.0 (or even BREW 2.0)?
59
51
[ "lua" ]
[ "mobile", "lua", "brew-framework" ]
{"accepted_answer_id":null,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-16T11:04:30.143000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2008-10-02T14:40:32.060000+00:00","last_edit_date":null,"question_id":71239,"score":4,...
[ 0.005077362060546875, -0.005107879638671875, 0.007213592529296875, -0.031585693359375, 0.033721923828125, -0.0308837890625, 0.00015211105346679688, 0.01092529296875, -0.0214996337890625, -0.01555633544921875, -0.03253173828125, 0.03302001953125, 0.052490234375, 0.0094451904296875, 0.0055...
[ 10, 11, 47, 83, 98, 442, 765, 1884, 2071, 2685, 3350, 3917, 4527, 7722, 13651, 16655, 17596, 23856, 33342, 40401, 48962, 99201, 111351, 114210 ]
[ 0.003173828125, 0.224609375, 0.020751953125, 0.0208740234375, 0.0712890625, 0.00830078125, 0.01708984375, 0.00048828125, 0.0164794921875, 0.005859375, 0.216796875, 0.07080078125, 0.171875, 0.1328125, 0.154296875, 0.1474609375, 0.25390625, 0.1455078125, 0.055419921875, 0.1972656...
116974ab-7bab-5250-8442-24a4c07d293f
87,889
0
Title: Game Engine Scripting Languages I am trying to build out a useful 3d game engine out of the Ogre3d rendering engine for mocking up some of the ideas i have come up with and have come to a bit of a crossroads. There are a number of scripting languages that are available and i was wondering if there were one or t...
130
138
[ "lua" ]
[ "lua", "scripting-language", "ogre3d", "squirrel" ]
{"accepted_answer_id":88183,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-17T21:32:00.813000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2015-09-12T22:03:43.973000+00:00","last_edit_date":null,"question_id":87889,"score":5,...
[ 0.00909423828125, 0.01076507568359375, -0.0165252685546875, -0.016998291015625, 0.02996826171875, -0.058502197265625, 0.013671875, 0.03448486328125, 0.0175933837890625, -0.021636962890625, -0.028533935546875, 0.01415252685546875, 0.035919189453125, 0.0248565673828125, 0.035430908203125, ...
[ 7, 28, 42, 70, 71, 107, 136, 138, 159, 186, 214, 339, 363, 375, 450, 566, 707, 756, 931, 1257, 1286, 1632, 1810, 1902, 2174, 2499, 2806, 2965, 3173, 3181, 3183, 3542, 4785, 5974, 6626, 6712, 6991, 7962, 9803, 13547, 14012, 19882, 20...
[ 0.0703125, 0.009033203125, 0.0732421875, 0.030517578125, 0.078125, 0.13671875, 0.1083984375, 0.1044921875, 0.033203125, 0.002197265625, 0.134765625, 0.08935546875, 0.0712890625, 0.007568359375, 0.006103515625, 0.04736328125, 0.004638671875, 0.017333984375, 0.054443359375, 0.005...
59f5baa8-376d-59aa-97cf-8ff9ba00a19c
103,347
0
Title: How do you glue Lua to C++ code? Do you use Luabind, toLua++, or some other library (if so, which one) or none at all? For each approach, what are the pro's and con's?
54
61
[ "c++", "lua" ]
[ "c++", "scripting", "lua" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-19T16:14:17.867000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2010-05-19T03:10:54.890000+00:00","last_edit_date":"2008-10-06T19:02:35.727000+0...
[ 0.017608642578125, -0.01568603515625, 0.017730712890625, -0.00862884521484375, 0.037628173828125, -0.038360595703125, 0.0203857421875, 0.0217132568359375, 0.0038604736328125, -0.00952911376953125, -0.0036487579345703125, 0.023162841796875, 0.03546142578125, -0.001251220703125, 0.01773071...
[ 7, 11, 13, 47, 158, 313, 351, 502, 756, 1294, 3350, 4527, 11249, 18151, 18743, 21086, 35773, 37223, 51515, 89817 ]
[ 0.00927734375, 0.1650390625, 0.0966796875, 0.1513671875, 0.07373046875, 0.041015625, 0.0284423828125, 0.06982421875, 0.002685546875, 0.0712890625, 0.189453125, 0.037353515625, 0.017578125, 0.134765625, 0.181640625, 0.1787109375, 0.13671875, 0.2197265625, 0.10205078125, 0.246093...
cd8211f5-fa57-5e70-8372-de3b5a8ed549
124,455
0
Title: How do you pre-size an array in Lua? I've got a Lua program that seems to be slower than it ought to be. I suspect the issue is that I'm adding values to an associative array one at a time and the table has to allocate new memory each time. There did seem to be a table.setn function, but it fails under Lua 5...
194
207
[ "lua" ]
[ "optimization", "lua" ]
{"accepted_answer_id":null,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-23T22:59:08.920000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2016-04-12T21:10:59.787000+00:00","last_edit_date":null,"question_id":124455,"score":1...
[ 0.0049896240234375, -0.0036602020263671875, -0.0231781005859375, 0.00714111328125, 0.00753021240234375, -0.0248565673828125, -0.005405426025390625, 0.00806427001953125, 0.0174407958984375, -0.0161285400390625, -0.01015472412109375, 0.006992340087890625, 0.027252197265625, -0.03680419921875...
[ 5, 8, 9, 11, 13, 19, 23, 53, 56, 144, 479, 1379, 1528, 1632, 1733, 1815, 1892, 3035, 3350, 3509, 3525, 3642, 3714, 3917, 5201, 6138, 7839, 10298, 11249, 12620, 12638, 15190, 19721, 23180, 24286, 27686, 31089, 32354, 33478, 35782, 36746,...
[ 0.0147705078125, 0.0751953125, 0.10546875, 0.1611328125, 0.042724609375, 0.1611328125, 0.0172119140625, 0.107421875, 0.0478515625, 0.0927734375, 0.2041015625, 0.008544921875, 0.099609375, 0.0185546875, 0.09423828125, 0.004150390625, 0.099609375, 0.15234375, 0.1923828125, 0.1865...
296bfd04-7baf-5802-9219-b47ac34871c9
129,877
0
Title: How do I write a generic memoize function? I'm writing a function to find triangle numbers and the natural way to write it is recursively: function triangle (x) if x == 0 then return 0 end return x+triangle(x-1) end But attempting to calculate the first 100,000 triangle numbers fails with a stack over...
112
114
[ "lua" ]
[ "optimization", "recursion", "lua", "closures", "memoization" ]
{"accepted_answer_id":141689,"answer_count":15,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-24T20:48:41.457000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2013-04-06T01:45:43.673000+00:00","last_edit_date":null,"question_id":129877,"score"...
[ 0.0352783203125, -0.01210784912109375, -0.0245819091796875, -0.0011167526245117188, 0.0418701171875, -0.03997802734375, -0.0079345703125, 0.032440185546875, 0.00341033935546875, 0.0211639404296875, 0.0005660057067871094, 0.0259857177734375, -0.006732940673828125, 0.0007939338684082031, 0...
[ 4, 47, 54, 83, 87, 163, 425, 432, 442, 538, 645, 757, 805, 1022, 1221, 1328, 1927, 2174, 2499, 3444, 3564, 3917, 3996, 5117, 5844, 6083, 6397, 7103, 7413, 9508, 11249, 12960, 20650, 27875, 29806, 30646, 32354, 32562, 33022, 35782, 48962...
[ 0.0240478515625, 0.0087890625, 0.03466796875, 0.009765625, 0.031005859375, 0.1552734375, 0.0673828125, 0.1796875, 0.012939453125, 0.00048828125, 0.06591796875, 0.1455078125, 0.06494140625, 0.06982421875, 0.03271484375, 0.0888671875, 0.203125, 0.031005859375, 0.054931640625, 0.0...
faead0ca-f287-53f0-9d05-d45fca0d7676
132,397
0
Title: Get back the output of os.execute in Lua When I do an "os.execute" in Lua, a console quickly pops up, executes the command, then closes down. But is there some way of getting back the console output only using the standard Lua libraries?
57
67
[ "lua" ]
[ "lua" ]
{"accepted_answer_id":143265,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-25T09:53:27.233000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2020-08-07T14:16:07.860000+00:00","last_edit_date":null,"question_id":132397,"score":...
[ -0.00043702125549316406, -0.020263671875, -0.0208587646484375, -0.01351165771484375, 0.0203857421875, -0.049072265625, 0.00331878662109375, 0.0167083740234375, -0.0209808349609375, 0.0170745849609375, -0.0221710205078125, 0.0030384063720703125, 0.044342041015625, -0.01108551025390625, -0...
[ 5, 11, 23, 54, 70, 111, 232, 362, 1257, 3350, 3917, 4420, 4734, 5570, 7426, 7565, 10484, 17368, 20779, 20903, 20949, 35773, 46480, 48962, 69405, 71924, 75101, 85691, 130250, 140992 ]
[ 0.051513671875, 0.1748046875, 0.033203125, 0.0107421875, 0.061279296875, 0.01318359375, 0.15234375, 0.1240234375, 0.050537109375, 0.1796875, 0.04931640625, 0.16015625, 0.038818359375, 0.1064453125, 0.103515625, 0.11328125, 0.046142578125, 0.048583984375, 0.0810546875, 0.0952148...
2345274f-fb1f-59a5-84ba-337e84fc6977
142,417
0
Title: Is there a way to determine the signature of a Lua function? Recently, Lee Baldwin showed how to write a generic, variable argument memoize function. I thought it would be better to return a simpler function where only one parameter is required. Here is my total bogus attempt: local function memoize(f) loc...
252
243
[ "lua" ]
[ "generics", "functional-programming", "lua" ]
{"accepted_answer_id":142424,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-26T22:53:29.773000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2014-06-14T02:19:28.717000+00:00","last_edit_date":"2017-05-23T10:27:52.057000+00:00"...
[ 0.0220947265625, -0.00983428955078125, -0.017242431640625, -0.005340576171875, 0.0223388671875, -0.0196685791015625, 0.0186920166015625, 0.00977325439453125, 0.004611968994140625, 0.00400543212890625, -0.00959014892578125, 0.039093017578125, 0.010986328125, 0.0018968582153320312, -0.0160...
[ 7, 11, 47, 70, 106, 111, 113, 144, 153, 163, 177, 188, 223, 285, 289, 420, 432, 1238, 1632, 2685, 3350, 3444, 3564, 3622, 3642, 3917, 4000, 4527, 4734, 4904, 5021, 5885, 5941, 6626, 8781, 9494, 10750, 11522, 12050, 14192, 19824, 20650...
[ 0.04931640625, 0.1689453125, 0.010986328125, 0.035400390625, 0.0478515625, 0.006103515625, 0.044921875, 0.1318359375, 0.0225830078125, 0.140625, 0.0361328125, 0.11328125, 0.022705078125, 0.059326171875, 0.0810546875, 0.125, 0.146484375, 0.1416015625, 0.08935546875, 0.0036621093...
01464963-d337-55f6-bdf5-fbad9bd6bebe
143,234
0
Title: Lua = operator as print In Lua, using the = operator without an l-value seems to be equivalent to a print(r-value), here are a few examples run in the Lua standalone interpreter: > = a nil > a = 8 > = a 8 > = 'hello' hello > = print function: 003657C8 And so on... My question is : where can I find a detai...
432
467
[ "lua" ]
[ "lua" ]
{"accepted_answer_id":143282,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-27T08:33:07.227000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2014-06-15T09:04:14.193000+00:00","last_edit_date":"2009-01-02T17:17:00.583000+00:00"...
[ 0.00646209716796875, -0.035491943359375, 0.00875091552734375, -0.01012420654296875, 0.0186920166015625, -0.03668212890625, 0.018585205078125, 0.0338134765625, -0.025970458984375, 0.00970458984375, 0.0013103485107421875, 0.0211944580078125, 0.011077880859375, -0.01239013671875, 0.00141429...
[ 9, 10, 11, 13, 42, 54, 56, 70, 96, 98, 127, 188, 214, 237, 339, 382, 757, 822, 866, 903, 977, 1019, 1369, 1815, 2203, 2256, 2967, 3004, 3350, 4488, 4527, 5117, 5361, 5759, 7332, 7413, 9655, 10644, 10778, 11249, 11675, 12097, 13315, ...
[ 0.03759765625, 0.078125, 0.193359375, 0.0150146484375, 0.13671875, 0.018310546875, 0.078125, 0.0322265625, 0.1376953125, 0.06982421875, 0.050048828125, 0.05517578125, 0.034423828125, 0.111328125, 0.0284423828125, 0.1484375, 0.06689453125, 0.08740234375, 0.091796875, 0.012695312...
15516592-65fc-51da-9a9a-eb89a2dea640
146,704
0
Title: Is _VERSION the only global variable left in Lua 5.1? Puzzled by the Lua 5.0 documentation references to things like _LOADED, LUA_PATH, _ALERT and so on (that I could not use in Lua 5.1), I discovered all of those have been removed and the functionality put elsewhere. Am I right in thinking that the only one gl...
96
95
[ "lua" ]
[ "lua" ]
{"accepted_answer_id":146716,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-28T20:44:28.677000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2015-08-11T07:54:18.053000+00:00","last_edit_date":"2015-08-11T07:54:18.053000+00:00"...
[ 0.01800537109375, -0.004024505615234375, -0.039581298828125, -0.0109100341796875, 0.01418304443359375, 0.0025043487548828125, -0.00971221923828125, 0.016693115234375, -0.036956787109375, 0.0015716552734375, -0.0158538818359375, 0.00408172607421875, 0.0232391357421875, 0.0002551078796386719...
[ 7, 11, 23, 70, 83, 101, 339, 397, 756, 765, 841, 959, 1632, 2071, 2809, 3350, 4527, 4734, 5809, 7108, 7842, 7964, 8966, 17014, 20004, 25737, 33255, 47644, 48962, 56263, 61058, 65135, 68433, 77336, 91067, 103932, 118596, 123309, 179277, 18...
[ 0.011962890625, 0.1787109375, 0.0262451171875, 0.01416015625, 0.0673828125, 0.0888671875, 0.05712890625, 0.05859375, 0.016357421875, 0.00634765625, 0.013671875, 0.0228271484375, 0.10595703125, 0.02783203125, 0.0228271484375, 0.18359375, 0.078125, 0.1279296875, 0.01123046875, 0....
c81acaaf-955c-5141-878c-9977b3606e70
154,672
0
Title: What can I do to increase the performance of a Lua program? I asked a question about Lua perfromance, and on of the responses asked: Have you studied general tips for keeping Lua performance high? i.e. know table creation and rather reuse a table than create a new one, use of 'local print=print' and such to...
123
135
[ "lua" ]
[ "performance", "optimization", "lua" ]
{"accepted_answer_id":12865406,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-30T19:51:11.660000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2017-06-26T18:37:59.897000+00:00","last_edit_date":"2017-05-23T12:26:10.887000+00:0...
[ 0.02593994140625, -0.007801055908203125, -0.0194244384765625, 0.0191802978515625, 0.0264434814453125, -0.036834716796875, -0.0288238525390625, -0.0028820037841796875, 0.0001850128173828125, 0.00620269775390625, 0.0111541748046875, 0.0134735107421875, 0, -0.0169219970703125, -0.0027580261...
[ 10, 11, 47, 54, 70, 87, 100, 117, 136, 297, 831, 1369, 1528, 3350, 3501, 3714, 4527, 4537, 4865, 6069, 6305, 6397, 6561, 7154, 7964, 9655, 9876, 11192, 15400, 17203, 22282, 22766, 23180, 23718, 24725, 28282, 28412, 35166, 35662, 37170, ...
[ 0.001953125, 0.1923828125, 0.05322265625, 0.1015625, 0.053955078125, 0.06396484375, 0.03271484375, 0.005126953125, 0.04052734375, 0.00537109375, 0.095703125, 0.080078125, 0.1630859375, 0.208984375, 0.030517578125, 0.09765625, 0.0625, 0.111328125, 0.09033203125, 0.142578125, 0...
ca9eca4e-f9ea-5b23-9953-d6c170f2e542
176,235
0
Title: Are there any recent Lua to JavaScript converters or interpreters somewhere? I need to find a good Lua to JavaScript converter; lua2js on luaforge.org is out of date (3 or so years old and looks like it doesn't work on Lua 5.1) and I haven't yet found anything on Google. Does anyone have any experience with a...
115
122
[ "javascript", "lua" ]
[ "javascript", "lua", "interpreter", "converters" ]
{"accepted_answer_id":null,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":"2016-10-29T10:56:53.347000+00:00","creation_date":"2008-10-06T21:18:46.450000+00:00","has_accepted_answer":false,"is_closed":true,"languages":["javascript","lua"],"last_activity_date":"2015-04-20T06:27:14.767000+00:00","last_edit...
[ 0.01259613037109375, -0.0220947265625, -0.0266265869140625, -0.0238800048828125, -0.00572967529296875, -0.05682373046875, -0.0016794204711914062, 0.01062774658203125, -0.032470703125, -0.0144500732421875, 0.004985809326171875, 0.004535675048828125, 0.0384521484375, -0.005672454833984375, ...
[ 4, 6, 7, 10, 11, 18, 32, 47, 56, 83, 98, 111, 136, 186, 304, 429, 707, 765, 959, 1314, 1478, 1810, 1815, 1884, 2472, 2499, 2685, 2806, 3350, 3789, 3871, 4127, 4488, 5369, 5608, 5622, 6896, 7413, 10332, 12601, 14037, 14373, 15901, ...
[ 0.001708984375, 0.052734375, 0.13671875, 0.03857421875, 0.2314453125, 0.0537109375, 0.004150390625, 0.177734375, 0.1240234375, 0.012939453125, 0.091796875, 0.0029296875, 0.0419921875, 0.000244140625, 0.1748046875, 0.1181640625, 0.078125, 0.031494140625, 0.01806640625, 0.1738281...
febebcca-a317-5d0b-8ca5-7c6cdc57571e
177,209
0
Title: What's a good C memory allocator for embedded systems? I have an single threaded, embedded application that allocates and deallocates lots and lots of small blocks (32-64b). The perfect scenario for a cache based allocator. And although I could TRY to write one it'll likely be a waste of time, and not as well t...
148
176
[ "c", "lua" ]
[ "c", "embedded", "lua", "malloc", "allocation" ]
{"accepted_answer_id":177337,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":"2016-10-11T03:11:22.003000+00:00","creation_date":"2008-10-07T04:05:15.773000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c","lua"],"last_activity_date":"2025-08-25T08:41:02.423000+00:00","last_edit_date":n...
[ 0.024200439453125, 0.01629638671875, 0.0008745193481445312, -0.0024204254150390625, 0.01546478271484375, -0.0005388259887695312, -0.01151275634765625, 0.03375244140625, 0.0299835205078125, -0.00820159912109375, -0.035430908203125, -0.00649261474609375, 0.0182952880859375, 0.008560180664062...
[ 9, 10, 11, 23, 67, 70, 100, 136, 144, 186, 275, 313, 408, 456, 509, 765, 831, 903, 1290, 1328, 1733, 2248, 2367, 2806, 2809, 2965, 3034, 3350, 3949, 4127, 4527, 4865, 5293, 5426, 5809, 6460, 8230, 11001, 12912, 13307, 15787, 17368, ...
[ 0.06787109375, 0.036376953125, 0.12890625, 0.003662109375, 0.0341796875, 0.0087890625, 0.072265625, 0.041748046875, 0.1513671875, 0.003662109375, 0.115234375, 0.1435546875, 0.1708984375, 0.0174560546875, 0.052001953125, 0.005615234375, 0.0126953125, 0.00927734375, 0.1669921875, ...
16c3d1f7-adee-55f1-ae07-f7444eed5552
194,520
0
Title: Creating standalone Lua executables Is there an easy way to create standalone .exe files from Lua scripts? Basically this would involve linking the Lua interpreter and the scripts. I believe it is possible (PLT Scheme allows the creation of standalone executables in the same way), but how, exactly?
64
76
[ "lua" ]
[ "windows", "lua" ]
{"accepted_answer_id":194647,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-10-11T19:50:15.443000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2025-12-17T02:35:30.517000+00:00","last_edit_date":null,"question_id":194520,"score":...
[ -0.0012159347534179688, -0.006999969482421875, -0.00972747802734375, -0.0019130706787109375, 0.0204010009765625, -0.040802001953125, 0.007297515869140625, 0.020294189453125, -0.0169677734375, -0.005695343017578125, -0.003528594970703125, 0.01922607421875, 0.041748046875, -0.01885986328125,...
[ 5, 7, 11, 47, 56, 70, 83, 136, 142, 282, 618, 1295, 1916, 2071, 2685, 2806, 3126, 3350, 3642, 3917, 5701, 7722, 13566, 18822, 21130, 23468, 26499, 28282, 29481, 34702, 46480, 51684, 56781, 66161, 83687, 98927, 102158, 103723, 114864, 1666...
[ 0.064453125, 0.033203125, 0.18359375, 0.044189453125, 0.05126953125, 0.002685546875, 0.017822265625, 0.010986328125, 0.03173828125, 0.03125, 0.1181640625, 0.09765625, 0.03076171875, 0.001708984375, 0.06201171875, 0.009765625, 0.0986328125, 0.19921875, 0.031494140625, 0.07714843...
607fad5e-bf5e-5b06-ad65-0916ade2ae19
195,582
0
Title: What is the meaning of 'attempt to index upvalue' I am taking my first steps programming in Lua and get this error when I run my script: attempt to index upvalue 'base' (a function value) It's probably due to something very basic that I haven't grasped yet, but I can't find any good information about it whe...
89
97
[ "lua" ]
[ "lua", "upvalue" ]
{"accepted_answer_id":195599,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-10-12T15:02:01.173000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2017-11-13T02:22:41.347000+00:00","last_edit_date":"2017-11-13T02:22:41.347000+00:00"...
[ 0.03826904296875, -0.01230621337890625, -0.00411224365234375, -0.03753662109375, 0.005603790283203125, -0.0233917236328125, 0.0077362060546875, 0.015716552734375, 0.006702423095703125, 0.03240966796875, -0.00373077392578125, -0.0016603469848632812, 0.0075836181640625, -0.0225372314453125, ...
[ 11, 13, 18, 47, 70, 83, 111, 257, 442, 903, 1257, 2367, 3350, 4865, 11675, 18499, 26499, 26950, 27494, 27689, 32354, 34224, 34292, 37382, 48962, 56037, 62822, 63262, 73342, 81887, 91084, 98441 ]
[ 0.10400390625, 0.09375, 0.10595703125, 0.07958984375, 0.0498046875, 0.0167236328125, 0.0341796875, 0.0673828125, 0.034912109375, 0.0107421875, 0.169921875, 0.057861328125, 0.146484375, 0.0556640625, 0.06640625, 0.18359375, 0.1435546875, 0.1142578125, 0.228515625, 0.005126953125...
b4d05ae4-874e-5277-a6ac-f2ecbf2f9774
210,371
0
Title: LuaSocket FTP always times out I've had success with LuaSocket's TCP facility, but I'm having trouble with its FTP module. I always get a timeout when trying to retrieve a (small) file. I can download the file just fine using Firefox or ftp in passive mode (on Ubuntu Dapper Linux). I thought it might be that ...
927
971
[ "lua" ]
[ "ftp", "lua", "luasocket", "passive-mode" ]
{"accepted_answer_id":214462,"answer_count":3,"chunk_count":2,"chunk_index":0,"closed_date":null,"creation_date":"2008-10-16T21:25:47.620000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2008-11-07T21:19:05.993000+00:00","last_edit_date":"2008-10-16T21:36:01.827000+00:00"...
[ -0.0155029296875, -0.029449462890625, -0.020263671875, 0.00096893310546875, 0.0135955810546875, -0.036956787109375, 0.0015649795532226562, 0.0312347412109375, -0.0159759521484375, -0.00676727294921875, 0.003963470458984375, 0.000640869140625, 0.0262298583984375, -0.005664825439453125, -0...
[ 4, 5, 6, 7, 9, 10, 11, 13, 14, 15, 16, 18, 19, 23, 25, 39, 42, 44, 47, 54, 58, 64, 70, 71, 73, 74, 83, 87, 90, 98, 99, 111, 126, 127, 132, 136, 138, 141, 142, 164, 186, 209, 214, 220, 221, 237, 241, 247, 254, 272, 27...
[ 0.005615234375, 0.0048828125, 0.004638671875, 0.00537109375, 0.004150390625, 0.004638671875, 0.1376953125, 0.038818359375, 0.004150390625, 0.005615234375, 0.00537109375, 0.00341796875, 0.005126953125, 0.005126953125, 0.00537109375, 0.005126953125, 0.004150390625, 0.00537109375, 0...
0df9eca3-678d-58fc-a0f9-80b28bd11232
210,371
1
Title: LuaSocket FTP always times out ). So can anyone here make the LuaSocket two-liner at the top work? Note that on my machine, active FTP to Dell's site doesn't work (I can connect but as soon as I do ls it disconnects), so if you get LuaSocket to work please also note whether active FTP to Dell's site from anot...
85
95
[ "lua" ]
[ "ftp", "lua", "luasocket", "passive-mode" ]
{"accepted_answer_id":214462,"answer_count":3,"chunk_count":2,"chunk_index":1,"closed_date":null,"creation_date":"2008-10-16T21:25:47.620000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2008-11-07T21:19:05.993000+00:00","last_edit_date":"2008-10-16T21:36:01.827000+00:00"...
[ -0.0125885009765625, -0.0231475830078125, -0.0243377685546875, -0.0085296630859375, 0.00954437255859375, -0.031494140625, -0.00870513916015625, 0.017303466796875, -0.011627197265625, -0.0033397674560546875, 0.01001739501953125, -0.0097808837890625, 0.042236328125, -0.01222991943359375, -...
[ 11, 18, 47, 99, 831, 1528, 1764, 1810, 2663, 3249, 3350, 3688, 4488, 6626, 8912, 11343, 15700, 20028, 20537, 27853, 33662, 35672, 36279, 36457, 37067, 43240, 48962, 79852, 82735, 135457, 162379 ]
[ 0.138671875, 0.002685546875, 0.06494140625, 0.07568359375, 0.1025390625, 0.1103515625, 0.10546875, 0.181640625, 0.189453125, 0.08984375, 0.1865234375, 0.0272216796875, 0.150390625, 0.171875, 0.1611328125, 0.107421875, 0.01220703125, 0.169921875, 0.039306640625, 0.2236328125, ...
e464a2ce-4ee0-54e6-ab27-eda0348a3cc7
212,659
0
Title: Lua Library for Jabber Does anyone know of a Jabber library for Lua? I've found the 'Lua Messaging Library' for AIM, although I can't find a download for it, it appears to be abandoned. Something like that for Lua would be helpful. I'm sorry I didn't state this originally, I meant a 'pure Lua' library. I...
103
119
[ "lua" ]
[ "lua", "xmpp" ]
{"accepted_answer_id":470657,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":"2014-05-28T15:35:32.813000+00:00","creation_date":"2008-10-17T15:30:52.640000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["lua"],"last_activity_date":"2012-01-02T16:40:52.157000+00:00","last_edit_date":"2012...
[ 0.0002015829086303711, -0.0008544921875, 0.004634857177734375, -0.032562255859375, 0.01522064208984375, -0.045166015625, 0.0137939453125, 0.0219879150390625, -0.03448486328125, -0.0228271484375, -0.006153106689453125, 0.005496978759765625, 0.044219970703125, 0.00534820556640625, -0.01795...
[ 10, 11, 18, 62, 70, 100, 111, 184, 297, 442, 831, 1294, 1297, 1446, 2806, 3350, 3714, 4717, 7026, 7413, 10002, 11341, 14037, 16031, 17199, 21086, 32997, 33976, 35672, 35773, 35829, 38415, 48205, 48962, 59090, 60200, 66398, 98893, 103835, ...
[ 0.04931640625, 0.21484375, 0.010498046875, 0.0810546875, 0.01025390625, 0.0966796875, 0.0390625, 0.1376953125, 0.0252685546875, 0.005859375, 0.00244140625, 0.171875, 0.2431640625, 0.13671875, 0.026611328125, 0.19921875, 0.07568359375, 0.061767578125, 0.109375, 0.0179443359375, ...
c83fd360-dcc9-52af-98e0-36c1668f7dec
221,106
0
Title: Does full userdata __gc metamethod need to free() it's memory? I have a full userdata in Lua module written in C. The userdata has __gc() metamethod, which is called by garbage collector. Does lua interpreter free userdata memory after __gc() call, or do I have to free() it inside __gc()?
72
93
[ "lua" ]
[ "garbage-collection", "lua" ]
{"accepted_answer_id":null,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-10-21T08:00:07.667000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-07-06T22:59:48.020000+00:00","last_edit_date":"2009-07-06T22:59:48.020000+00:00",...
[ 0.051239013671875, 0.01971435546875, 0.0155792236328125, 0.005329132080078125, -0.0007619857788085938, -0.01102447509765625, -0.03375244140625, 0.0186004638671875, -0.0001289844512939453, -0.017608642578125, 0.00585174560546875, -0.00923919677734375, 0.00948333740234375, -0.015518188476562...
[ 11, 23, 47, 56, 132, 177, 238, 313, 390, 402, 429, 442, 748, 765, 1928, 3350, 3671, 3871, 4092, 4393, 5953, 7103, 7352, 10135, 11782, 23550, 27761, 29481, 35839, 38937, 43799, 46132, 59121, 88996, 98323, 101790 ]
[ 0.1357421875, 0.00341796875, 0.003173828125, 0.047607421875, 0.0732421875, 0.123046875, 0.189453125, 0.099609375, 0.00537109375, 0.15625, 0.0859375, 0.025146484375, 0.08984375, 0.0712890625, 0.1220703125, 0.1611328125, 0.072265625, 0.1083984375, 0.185546875, 0.123046875, 0.09...
14e9f848-7a8f-5ee4-b311-625e6beae3cf
224,658
0
Title: Design questions for an OOP library in Lua I implemented a small OOP library in Lua, and two things are not quite right yet. I need your advice! How to call super()? I need to make a choice. The three arguments I need to resolve a call to super() are: The class from where the call is being made (CallerCl...
299
336
[ "lua" ]
[ "oop", "lua" ]
{"accepted_answer_id":224682,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-10-22T06:26:05.343000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2008-10-23T10:04:17.913000+00:00","last_edit_date":"2020-06-20T09:12:55.060000+00:00"...
[ 0.0006399154663085938, -0.01071929931640625, 0.019989013671875, 0.0013093948364257812, 0.0231170654296875, -0.041656494140625, 0.029144287109375, 0.037078857421875, -0.0017309188842773438, -0.0029506683349609375, -0.02203369140625, 0.020477294921875, 0.009033203125, -0.01294708251953125, ...
[ 7, 10, 11, 16, 22, 23, 47, 56, 132, 141, 164, 180, 237, 441, 605, 764, 831, 959, 1294, 1295, 1601, 1614, 1928, 3173, 3249, 3350, 3535, 3871, 3917, 4000, 4527, 4734, 4806, 5743, 6626, 7108, 7228, 7250, 7352, 7413, 8110, 8966, 9351, ...
[ 0.05029296875, 0.0255126953125, 0.1748046875, 0.03125, 0.0296630859375, 0.018310546875, 0.0927734375, 0.08642578125, 0.1455078125, 0.007568359375, 0.064453125, 0.09912109375, 0.0159912109375, 0.0361328125, 0.0380859375, 0.033935546875, 0.01171875, 0.0244140625, 0.1083984375, 0....
55703051-1b83-5ac5-a45d-a0cc40c0c7cc
228,081
0
Title: Efficient heap-manager for heavy churn, tiny allocs? I'm looking for ideas for a heap-manager to handle a very specific situation: Lots and lots of very small allocations, ranging from 12 to 64 bytes each. Anything bigger, I will pass on to the regular heap-manager, so only tiny blocks need be catered for. Only...
208
230
[ "c", "lua" ]
[ "c", "performance", "memory-management", "lua", "heap-memory" ]
{"accepted_answer_id":228100,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-10-23T00:48:19.283000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","lua"],"last_activity_date":"2021-06-13T11:56:41.517000+00:00","last_edit_date":"2021-06-13T11:56:41.517000+00...
[ 0.045623779296875, 0.01129150390625, 0.02386474609375, 0.007289886474609375, 0.00423431396484375, -0.007144927978515625, -0.025634765625, 0.0289306640625, 0.025054931640625, -0.018585205078125, -0.0221099853515625, -0.00139617919921875, 0.01552581787109375, -0.00958251953125, -0.01164245...
[ 4, 7, 9, 10, 11, 16, 19, 47, 56, 70, 83, 98, 99, 100, 111, 132, 144, 166, 186, 214, 238, 241, 390, 427, 442, 611, 645, 764, 903, 1181, 1221, 1257, 1543, 1636, 1884, 2174, 2631, 3129, 3229, 3350, 3664, 3871, 4092, 4439, 4552, 4...
[ 0.0029296875, 0.0029296875, 0.1005859375, 0.06884765625, 0.1162109375, 0.003173828125, 0.06787109375, 0.004638671875, 0.0087890625, 0.0029296875, 0.001953125, 0.011474609375, 0.003173828125, 0.080078125, 0.003173828125, 0.037353515625, 0.1484375, 0.09375, 0.0029296875, 0.002929...
4671ed83-8427-587a-9d34-a675ea0f14e1
244,138
0
Title: With Lua and Python embeddable, is there a place for Basic? I started off programming in Basic on the ZX81, then BASICA, GW-BASIC, and QBasic. I moved on to C (Ah, Turbo C 3.1, I hardly knew ye...) When I got started in microcontrollers I regressed with the BASIC Stamp from Parallax. However, BASIC is/was awe...
258
284
[ "lua", "python" ]
[ "python", "scripting", "lua", "interpreter", "basic" ]
{"accepted_answer_id":246417,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-10-28T17:27:32.550000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua","python"],"last_activity_date":"2010-04-21T19:36:14.153000+00:00","last_edit_date":"2010-04-21T19:36:14.1530...
[ 0.0040283203125, -0.0002111196517944336, -0.00536346435546875, -0.0017480850219726562, 0.00228118896484375, -0.0292816162109375, -0.0097808837890625, 0.0011930465698242188, 0.01445770263671875, -0.007053375244140625, -0.045501708984375, 0.038177490234375, 0.01837158203125, 0.01837158203125...
[ 10, 11, 23, 47, 71, 83, 98, 100, 136, 221, 313, 352, 425, 442, 449, 567, 603, 645, 678, 748, 1165, 1295, 1542, 1556, 1660, 1720, 1771, 1909, 2174, 2396, 2422, 2685, 2886, 3249, 3350, 3395, 3687, 3789, 3871, 3934, 4537, 5036, 5045, ...
[ 0.0087890625, 0.1318359375, 0.047119140625, 0.012939453125, 0.059326171875, 0.0693359375, 0.10595703125, 0.0289306640625, 0.037353515625, 0.033203125, 0.1357421875, 0.0908203125, 0.0517578125, 0.04833984375, 0.03564453125, 0.04345703125, 0.068359375, 0.04833984375, 0.01171875, ...
43cc4d81-8cab-58f8-8753-268c20f9dba0
250,151
0
Title: Lua as a general-purpose scripting language? When I see Lua, the only thing I ever read is "great for embedding", "fast", "lightweight" and more often than anything else: "World of Warcraft" or in short "WoW". Why is it limited to embedding the whole thing into another application? Why not write general-purpo...
161
182
[ "lua", "python" ]
[ "python", "scripting", "lua" ]
{"accepted_answer_id":250158,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-10-30T13:21:41.033000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua","python"],"last_activity_date":"2011-08-23T21:07:25.263000+00:00","last_edit_date":"2011-08-23T21:07:25.263...
[ 0.02001953125, -0.00977325439453125, -0.0294952392578125, -0.0007996559143066406, 0.031036376953125, -0.0400390625, -0.002353668212890625, 0.00971221923828125, -0.01125335693359375, -0.0163421630859375, -0.0254669189453125, 0.020721435546875, 0.034820556640625, 0.009002685546875, 0.00402...
[ 11, 100, 111, 141, 214, 237, 257, 261, 302, 525, 678, 783, 908, 1042, 1294, 1456, 1467, 1957, 3350, 3934, 4002, 4271, 4537, 4657, 4717, 4734, 4857, 5550, 5570, 6782, 7134, 8306, 10366, 11408, 11814, 12301, 13580, 13784, 15182, 15400, 15...
[ 0.22265625, 0.06494140625, 0.0927734375, 0.09375, 0.0830078125, 0.058349609375, 0.03515625, 0.0791015625, 0.0986328125, 0.091796875, 0.0267333984375, 0.107421875, 0.072265625, 0.083984375, 0.02392578125, 0.1650390625, 0.01904296875, 0.0810546875, 0.2255859375, 0.051513671875, ...
36130add-f4cd-5082-a56f-d675fae55527
251,401
0
Title: Do any .NET DLLs exist that implement luac's functionality? Does anyone know of any DLLs (preferably .net) that encapsulate the lua 5.1 compiler? I'm working on a .net project where part of it needs to compile lua scripts, and i would rather have a DLL that i could send script code to instead of sending the scr...
173
202
[ ".net", "lua" ]
[ ".net", "dll", "lua", "luac" ]
{"accepted_answer_id":null,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-10-30T19:22:44.313000+00:00","has_accepted_answer":false,"is_closed":false,"languages":[".net","lua"],"last_activity_date":"2009-09-21T21:04:52.933000+00:00","last_edit_date":"2009-07-21T20:27:30.197000+...
[ 0.006694793701171875, -0.0007624626159667969, -0.01261138916015625, -0.0229644775390625, 0.015228271484375, -0.02130126953125, -0.00496673583984375, 0.038787841796875, -0.0122528076171875, -0.0087432861328125, -0.0145721435546875, 0.0018815994262695312, 0.04522705078125, -0.00946044921875,...
[ 5, 7, 22, 47, 67, 238, 313, 390, 391, 450, 501, 660, 765, 984, 1179, 1294, 1340, 2481, 2499, 2806, 2831, 2875, 3714, 3871, 4488, 4904, 5570, 5809, 6044, 9969, 11435, 12275, 13452, 14037, 15612, 15644, 17777, 18151, 20697, 21176, 23708, ...
[ 0.062255859375, 0.142578125, 0.0189208984375, 0.01171875, 0.0009765625, 0.2197265625, 0.01171875, 0.048828125, 0.130859375, 0.02880859375, 0.07958984375, 0.03955078125, 0.001708984375, 0.005859375, 0.2001953125, 0.0498046875, 0.07080078125, 0.0625, 0.059326171875, 0.0205078125,...
967a1f43-d080-5c0b-851d-8faca26f89fe
262,805
0
Title: Parsing Unix/iPhone/Mac OS X version of PE headers This is a little convoluted, but lets try: I'm integrating LUA scripting into my game engine, and I've done this in the past on win32 in an elegant way. On win32 all I did was to mark all of the functions I wanted to expose to LUA as export functions. Then, t...
330
362
[ "lua" ]
[ "iphone", "lua" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-11-04T18:18:08.227000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2008-11-04T21:04:42.637000+00:00","last_edit_date":null,"question_id":262805,"score":1...
[ -0.011932373046875, -0.006481170654296875, 0.0023784637451171875, -0.0260467529296875, -0.00304412841796875, 0.004543304443359375, 0.0190277099609375, 0.0087890625, 0.0022106170654296875, -0.0261688232421875, -0.0220489501953125, 0.01114654541015625, 0.02471923828125, -0.02581787109375, ...
[ 18, 51, 56, 64, 98, 104, 184, 214, 339, 366, 397, 441, 678, 756, 765, 992, 1193, 1314, 2046, 2060, 2392, 2886, 3444, 3917, 3934, 4027, 4084, 4289, 4488, 4650, 6032, 6460, 6712, 6953, 7108, 7440, 8305, 9077, 9790, 10336, 11015, 11389, ...
[ 0.047119140625, 0.0198974609375, 0.1181640625, 0.00048828125, 0.031982421875, 0.0218505859375, 0.10205078125, 0.06591796875, 0.0888671875, 0.2001953125, 0.0262451171875, 0.0147705078125, 0.0107421875, 0.0361328125, 0.0174560546875, 0.1337890625, 0.087890625, 0.1240234375, 0.07812...
7b058846-16a7-58e8-a1b2-8a6376dbc9d1
269,913
0
Title: Has Lua a future as a general-purpose scripting language? As already discussed in "Lua as a general-purpose scripting language?" Lua currently probably isn't the best scripting language for the desktop environment. But what do you think about the future? Will Lua get so popular that there will soon be enough ...
94
110
[ "lua" ]
[ "scripting", "lua" ]
{"accepted_answer_id":269960,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-11-06T19:13:49.270000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2022-11-19T14:53:22.577000+00:00","last_edit_date":"2017-05-23T12:16:21.820000+00:00...
[ 0.0258331298828125, -0.004177093505859375, -0.031524658203125, -0.006072998046875, 0.04833984375, -0.03460693359375, -0.00331878662109375, 0.041473388671875, -0.01084136962890625, -0.0308074951171875, -0.00788116455078125, 0.011199951171875, 0.035552978515625, 0.0211029052734375, 0.00551...
[ 10, 11, 13, 18, 23, 54, 70, 100, 214, 221, 237, 1221, 1456, 1884, 2046, 2965, 3350, 4527, 4537, 4717, 5351, 5700, 6445, 10484, 13787, 19048, 20174, 20255, 20625, 21086, 21373, 22690, 24765, 26499, 31895, 33662, 35773, 42856, 46876, 48962,...
[ 0.035888671875, 0.2138671875, 0.01318359375, 0.07373046875, 0.005615234375, 0.010498046875, 0.0302734375, 0.0556640625, 0.078125, 0.0634765625, 0.0289306640625, 0.010009765625, 0.1064453125, 0.0615234375, 0.053955078125, 0.1357421875, 0.224609375, 0.123046875, 0.1044921875, 0.0...
ca23b34e-152c-54e6-8bc0-500c726b59a5
271,406
0
Title: how can I assign table names to variables? I have a table in lua with some data. sometable = { {name = "bob", something = "foo"}, {name = "greg", something = "bar"} } I then want to loop through the table and assign a number to each name as a variable. New to lua and tried it like this. for i,t i...
154
162
[ "lua" ]
[ "lua" ]
{"accepted_answer_id":274107,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-11-07T06:55:35.703000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2020-08-01T08:04:45.150000+00:00","last_edit_date":null,"question_id":271406,"score":...
[ 0.022216796875, -0.0068511962890625, -0.008087158203125, -0.00606536865234375, -0.004497528076171875, -0.018585205078125, 0.0035457611083984375, -0.004344940185546875, -0.035736083984375, 0.01641845703125, 0.005279541015625, 0.0146636962890625, 0.0148468017578125, -0.03814697265625, -0.0...
[ 7, 10, 17, 18, 23, 31, 39, 47, 87, 237, 275, 418, 570, 615, 808, 831, 837, 903, 1299, 1884, 2053, 2203, 2356, 3060, 3444, 3564, 3584, 3642, 4420, 5036, 5303, 8305, 8337, 8562, 9351, 9844, 11627, 12638, 14012, 14192, 17324, 20949, 21...
[ 0.07177734375, 0.027587890625, 0.06689453125, 0.019775390625, 0.029541015625, 0.13671875, 0.0595703125, 0.125, 0.0634765625, 0.059814453125, 0.1123046875, 0.013916015625, 0.002197265625, 0.037109375, 0.0264892578125, 0.10302734375, 0.0771484375, 0.0172119140625, 0.123046875, 0....
1438bfa1-23a4-5e3e-a4dc-718c26f7e8d0
272,425
0
Title: Calling Win32 functions returning strings with alien in Lua I'm trying to use alien to call Win32 functions. I tried this code, but it crashes and I don't understand why. require( "alien" ) local f = alien.Kernel32.ExpandEnvironmentStringsA f:types( "int", "string", "pointer", "int" ) local buffer = alien.bu...
107
121
[ "lua" ]
[ "winapi", "lua" ]
{"accepted_answer_id":284489,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-11-07T15:26:07.623000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-12-13T03:44:45.063000+00:00","last_edit_date":null,"question_id":272425,"score":...
[ 0.0029773712158203125, -0.0116119384765625, 0.013519287109375, -0.001377105712890625, 0.01184844970703125, -0.040740966796875, -0.008392333984375, 0.01702880859375, -0.00646209716796875, -0.0247650146484375, -0.0211944580078125, -0.006252288818359375, 0.0141143798828125, -0.01678466796875,...
[ 7, 11, 18, 23, 33, 47, 56, 58, 90, 141, 214, 284, 373, 678, 686, 757, 830, 903, 919, 1062, 1238, 1284, 1388, 1799, 1900, 2301, 3196, 3350, 4000, 4288, 4527, 5180, 6460, 11782, 15400, 17686, 18151, 18234, 26265, 28219, 30646, 31577, ...
[ 0.0439453125, 0.1767578125, 0.0169677734375, 0.052490234375, 0.2080078125, 0.00830078125, 0.076171875, 0.029052734375, 0.08203125, 0.05615234375, 0.0164794921875, 0.111328125, 0.08251953125, 0.10302734375, 0.050048828125, 0.06591796875, 0.048583984375, 0.0244140625, 0.0712890625,...
b27374d3-2f4c-5a94-a1ae-4f26ca9b2d29
283,042
0
Title: How to pass large struct back and forth between between C++ and Lua I am looking at embedding Lua in a C++ application I am developing. My intention is to use Lua to script what ordered operation(s) to perform for some given input, ie. receive a new work item in c++ program, pass details to Lua backend, Lua cal...
247
281
[ "c++", "lua" ]
[ "c++", "lua" ]
{"accepted_answer_id":283611,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-11-12T04:30:22.233000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2016-12-22T03:58:18.177000+00:00","last_edit_date":"2009-07-24T09:14:01.883000+...
[ 0.0294189453125, 0.0155487060546875, 0.00872802734375, 0.0008559226989746094, 0.01154327392578125, -0.03228759765625, 0.004276275634765625, 0.0082550048828125, 0.02642822265625, 0.0006990432739257812, 0.0036334991455078125, -0.0021686553955078125, 0.01010894775390625, -0.00939178466796875,...
[ 10, 11, 12, 16, 23, 41, 47, 64, 100, 136, 163, 237, 297, 313, 442, 501, 756, 831, 876, 927, 1295, 1328, 1528, 1657, 1957, 2053, 2248, 2367, 3033, 3229, 3350, 3525, 3611, 3642, 3934, 4420, 4488, 4527, 5609, 7192, 10135, 10176, 11249,...
[ 0.010009765625, 0.1865234375, 0.001220703125, 0.011962890625, 0.013427734375, 0.046875, 0.054443359375, 0.064453125, 0.0712890625, 0.1220703125, 0.07421875, 0.06982421875, 0.09033203125, 0.0634765625, 0.0322265625, 0.0179443359375, 0.07763671875, 0.0458984375, 0.03759765625, 0....
e62f20af-032b-562b-9821-8ae5d1b1833e
288,707
0
Title: What is the standard (or best supported) big number (arbitrary precision) library for Lua? I'm working with large numbers that I can't have rounded off. Using Lua's standard math library, there seem to be no convenient way to preserve precision past some internal limit. I also see there are several libraries th...
205
242
[ "lua" ]
[ "math", "lua", "precision", "bignum" ]
{"accepted_answer_id":326685,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-11-13T23:10:22.700000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2021-05-10T19:41:20.447000+00:00","last_edit_date":"2014-12-21T10:02:42.910000+00:00"...
[ 0.033905029296875, -0.00498199462890625, -0.011932373046875, -0.01837158203125, 0.0177764892578125, -0.031494140625, -0.022796630859375, 0.02398681640625, -0.0218353271484375, -0.022674560546875, -0.02423095703125, 0.0176544189453125, 0.01485443115234375, 0.0012235641479492188, 0.0036697...
[ 11, 18, 23, 39, 47, 110, 141, 223, 232, 277, 297, 313, 316, 345, 479, 678, 748, 765, 822, 831, 916, 1294, 1295, 1830, 1957, 2606, 2852, 2965, 3267, 3350, 3796, 3917, 4488, 4803, 4865, 5570, 5773, 5809, 5941, 6957, 8060, 10484, 11015...
[ 0.1533203125, 0.0634765625, 0.03369140625, 0.07421875, 0.02294921875, 0.05322265625, 0.033203125, 0.0255126953125, 0.07763671875, 0.010498046875, 0.0302734375, 0.123046875, 0.0233154296875, 0.047119140625, 0.091796875, 0.1025390625, 0.005859375, 0.07666015625, 0.150390625, 0.08...
eb815132-3e03-5b30-b9a5-2a141f39d6c4
295,052
0
Title: How can I determine the OS of the system from within a Lua script? Ok I need to determine the system's OS from a Lua script, but Lua as such has no API for this, so I use os.getenv() and query enviromental variables. On Windows checking the enviromental variable "OS" gives me the name of the system's OS, but is...
97
114
[ "lua" ]
[ "lua", "environment-variables" ]
{"accepted_answer_id":326677,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-11-17T07:24:06.587000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2022-10-14T18:39:41.293000+00:00","last_edit_date":null,"question_id":295052,"score":...
[ 0.005992889404296875, -0.0252838134765625, -0.0164642333984375, -0.00787353515625, 0.01419830322265625, -0.0244598388671875, -0.0031757354736328125, 0.01348114013671875, -0.024932861328125, -0.017303466796875, -0.01551055908203125, 0.0243377685546875, 0.0419921875, 0.0085906982421875, 0....
[ 7, 11, 22, 31, 33, 41, 47, 70, 87, 98, 110, 111, 132, 163, 186, 297, 334, 362, 831, 992, 1294, 1295, 1556, 2684, 3060, 3350, 3773, 3794, 3871, 4084, 4527, 5426, 7203, 7285, 9351, 11249, 11787, 12765, 15044, 26499, 28032, 32316, 4896...
[ 0.095703125, 0.1708984375, 0.044677734375, 0.06640625, 0.08544921875, 0.032958984375, 0.0240478515625, 0.07080078125, 0.0189208984375, 0.08056640625, 0.0322265625, 0.078125, 0.02978515625, 0.003662109375, 0.00341796875, 0.099609375, 0.1982421875, 0.1962890625, 0.051025390625, 0...
66bd7089-b088-59ac-98e7-71cf6658e259
325,323
0
Title: Is there anyway to avoid this security issue in Lua? I was just working on a localizable Lua string solution, when I came up with this hack, problem is I don't know how to avoid getting hacked by it :) So I was wondering if anyone, has done something similar and or knows how to protect from this kind of attack....
166
205
[ "lua" ]
[ "security", "lua" ]
{"accepted_answer_id":326323,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-11-28T09:03:39.580000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2008-12-11T11:45:25.660000+00:00","last_edit_date":"2008-11-28T09:11:37.427000+00:00"...
[ 0.00701904296875, -0.002086639404296875, -0.0266571044921875, 0.00977325439453125, 0.0305633544921875, -0.0355224609375, 0.003139495849609375, 0.004650115966796875, -0.0242767333984375, 0.01232147216796875, -0.0133819580078125, 0.00864410400390625, 0.0115509033203125, -0.018951416015625, ...
[ 11, 12, 13, 23, 31, 32, 34, 47, 54, 132, 166, 186, 232, 256, 390, 442, 563, 569, 831, 903, 933, 1257, 1272, 1295, 1299, 1650, 1884, 2046, 2071, 2077, 2203, 2685, 2967, 3350, 3564, 3584, 3642, 3714, 3917, 4711, 6056, 7077, 8079, 85...
[ 0.1884765625, 0.01806640625, 0.1123046875, 0.083984375, 0.1787109375, 0.003173828125, 0.080078125, 0.03564453125, 0.037109375, 0.0693359375, 0.1787109375, 0.14453125, 0.10107421875, 0.208984375, 0.146484375, 0.0654296875, 0.13671875, 0.12890625, 0.109375, 0.150390625, 0.09570...
7efc7f28-a6b9-5ce5-848e-fdc7c227c794
326,514
0
Title: Is MEF Microsoft's version of Lua? I see parallels between MEF and Lua. Both allow you to register methods and deploy as you need. Are both MEF and Lua forms of IoC / Dependency Injection?
49
60
[ "lua" ]
[ "comparison", "lua", "mef" ]
{"accepted_answer_id":328539,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-11-28T19:40:50.903000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-07-06T22:56:53.363000+00:00","last_edit_date":"2009-07-06T22:55:10.980000+00:00"...
[ 0.0316162109375, -0.01245880126953125, 0.0001291036605834961, -0.0117950439453125, 0.0219268798828125, -0.0228729248046875, 0.018798828125, 0.0183258056640625, 0.006679534912109375, 0.0088043212890625, -0.04766845703125, 0.0184478759765625, 0.0294647216796875, 0.01168060302734375, 0.0347...
[ 7, 8, 11, 53, 111, 136, 236, 237, 262, 276, 360, 441, 1957, 2071, 3173, 3350, 3871, 7244, 10763, 11389, 13158, 15044, 15901, 17721, 26885, 28136, 28482, 48962, 63769, 68067, 95103, 149766, 150624 ]
[ 0.04638671875, 0.014404296875, 0.212890625, 0.009033203125, 0.0213623046875, 0.0634765625, 0.1123046875, 0.029541015625, 0.02490234375, 0.1396484375, 0.03515625, 0.10595703125, 0.01123046875, 0.056640625, 0.10546875, 0.205078125, 0.06982421875, 0.16796875, 0.0166015625, 0.13671...
4b3df00c-bd24-55ff-9d88-07e734cb5803
333,242
0
Title: How does Linq work (behind the scenes)? I was thinking about making something like Linq for Lua, and I have a general idea how Linq works, but was wondering if there was a good article or if someone could explain how C# makes Linq possible Note: I mean behind the scenes, like how it generates code bindings an...
83
90
[ "lua" ]
[ "linq", "lua" ]
{"accepted_answer_id":333254,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-12-02T07:08:41.153000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2013-04-12T07:47:32.373000+00:00","last_edit_date":"2013-04-12T07:47:32.373000+00:00"...
[ 0.00791168212890625, -0.0158233642578125, 0.00933837890625, -0.023193359375, 0.026641845703125, -0.04425048828125, -0.0006914138793945312, 0.022247314453125, 0.0207061767578125, -0.005649566650390625, -0.017852783203125, 0.01380157470703125, -0.0088653564453125, -0.006542205810546875, 0....
[ 11, 70, 100, 313, 339, 372, 1884, 3350, 3642, 4127, 4488, 4537, 4904, 5582, 6002, 6528, 7722, 11249, 14602, 18151, 20662, 28302, 30482, 38937, 43240, 44982, 47644, 48962, 50155, 55380, 73342, 86531, 128239, 139392, 149016 ]
[ 0.08642578125, 0.04443359375, 0.000732421875, 0.059326171875, 0.17578125, 0.0556640625, 0.02099609375, 0.12890625, 0.076171875, 0.010009765625, 0.1650390625, 0.0240478515625, 0.185546875, 0.029541015625, 0.0277099609375, 0.035888671875, 0.1142578125, 0.115234375, 0.08447265625, ...
3914b6f5-3216-5f60-aaa8-370b7eb0df1e
385,403
0
Title: Prototype based object orientation. The good, the bad and the ugly? I come from classes object orientation languages and recently I have been learning those fancy dynamic languages (JavaScript, Python and Lua) and I want some tips about how to use OO in those languages. It would be useful to know the pitfalls a...
138
164
[ "javascript", "lua", "python" ]
[ "javascript", "python", "language-agnostic", "lua", "oop" ]
{"accepted_answer_id":385571,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-12-22T02:25:02.243000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["javascript","lua","python"],"last_activity_date":"2013-08-06T05:20:29.187000+00:00","last_edit_date":"2008-12-22T...
[ -0.0021915435791015625, 0.0263519287109375, -0.015625, 0.017059326171875, 0.04412841796875, -0.03814697265625, 0.009063720703125, 0.047210693359375, -0.01180267333984375, 0.0005588531494140625, -0.0302886962890625, 0.01454925537109375, -0.0010957717895507812, -0.00548553466796875, 0.0072...
[ 4, 11, 13, 70, 75, 83, 110, 136, 277, 449, 581, 678, 1207, 1284, 1380, 1653, 2408, 3249, 3350, 3638, 3642, 3917, 4127, 4527, 4537, 5570, 5983, 6044, 6305, 6494, 13380, 16610, 30563, 35509, 36746, 46876, 48962, 49269, 50986, 51515, 52080...
[ 0.000244140625, 0.062255859375, 0.15234375, 0.0281982421875, 0.080078125, 0.03515625, 0.0277099609375, 0.033935546875, 0.0625, 0.0498046875, 0.0390625, 0.0927734375, 0.0164794921875, 0.0291748046875, 0.01220703125, 0.03515625, 0.010009765625, 0.008056640625, 0.0888671875, 0.110...
d20083ef-c0d6-5c85-a81f-04d0e5642141
386,546
0
Title: wxLua: upload files with wxFtp I'm trying to use wxFTP on wxLua to upload several files. It works with the 1st file, but I do not understand why I cannot send a 2nd file. Here is a sample that fails : local ftp = wx.wxFTP() local ftpAddress = wx.wxIPV4address() ftpAddress:Service( "ftp" ) ftpAddress:Hostname(...
147
199
[ "lua" ]
[ "lua", "wxwidgets" ]
{"accepted_answer_id":null,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-12-22T15:38:54.263000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2008-12-23T17:55:51.613000+00:00","last_edit_date":null,"question_id":386546,"score":2...
[ -0.005283355712890625, -0.004985809326171875, 0.00582122802734375, 0.0212554931640625, 0.01540374755859375, -0.009735107421875, 0.0272216796875, 0.023040771484375, -0.00588226318359375, 0.007015228271484375, 0.003582000732421875, -0.00788116455078125, 0.043212890625, -0.029022216796875, ...
[ 10, 11, 12, 18, 31, 106, 116, 148, 254, 271, 304, 418, 425, 434, 617, 678, 683, 856, 919, 1299, 1810, 2208, 2480, 3584, 4000, 4527, 11435, 11627, 15400, 17324, 21086, 25217, 25379, 28219, 31577, 33209, 35782, 40368, 43240, 53418, 59453,...
[ 0.003662109375, 0.1416015625, 0.004150390625, 0.10400390625, 0.040771484375, 0.032958984375, 0.12109375, 0.1083984375, 0.1484375, 0.06689453125, 0.10400390625, 0.005859375, 0.134765625, 0.052734375, 0.0439453125, 0.060791015625, 0.1669921875, 0.0169677734375, 0.0859375, 0.09375...
919b1b14-2ce2-5f16-8520-6b8608a464b0
388,172
0
Title: Scientific libraries for Lua? Are there any scientific packages for Lua comparable to Scipy?
21
25
[ "lua", "python" ]
[ "python", "lua", "scipy", "scientific-computing", "torch" ]
{"accepted_answer_id":388184,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":"2015-02-08T04:42:24.083000+00:00","creation_date":"2008-12-23T04:25:07.537000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["lua","python"],"last_activity_date":"2015-02-07T20:30:24.860000+00:00","last_edit_da...
[ 0.0281524658203125, -0.01995849609375, -0.0177001953125, 0.003192901611328125, 0.016632080078125, -0.0273284912109375, -0.01348114013671875, -0.00472259521484375, -0.00193023681640625, -0.02886962890625, -0.0128326416015625, 0.0218658447265625, 0.04443359375, -0.004486083984375, -0.00980...
[ 11, 100, 3350, 6493, 10484, 35773, 48962, 49628, 57456, 98169, 210017, 215667 ]
[ 0.134765625, 0.03271484375, 0.15625, 0.185546875, 0.1005859375, 0.16796875, 0.005126953125, 0.158203125, 0.1689453125, 0.19140625, 0.1748046875, 0.0888671875 ]
ef2282fd-5e1a-528a-b299-284ec04db27e
392,979
0
Title: What are the most effective ways to use Lua with C#? From my understanding, Lua is an embeddable scripting language that can execute methods on objects. What are the pitfalls to avoid? Is is it feasible to use Lua as an interpreter and execute methods in an web environment or as a rule engine?
66
78
[ "c#", "lua" ]
[ "c#", "performance", "clr", "lua" ]
{"accepted_answer_id":393045,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-12-25T17:15:39.573000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","lua"],"last_activity_date":"2009-01-12T05:16:10.243000+00:00","last_edit_date":"2008-12-26T01:51:22.543000+0...
[ 0.013946533203125, 0.003139495849609375, -0.0231781005859375, -0.013458251953125, 0.01666259765625, -0.041046142578125, -0.005069732666015625, 0.024261474609375, -0.019561767578125, 0.0014486312866210938, -0.036224365234375, 0.004467010498046875, 0.019683837890625, 0.007843017578125, 0.0...
[ 11, 47, 56, 70, 71, 83, 98, 136, 142, 214, 237, 313, 352, 450, 678, 831, 1467, 2684, 2886, 3350, 3820, 4527, 4904, 13380, 13482, 26499, 29481, 36746, 46876, 48322, 48962, 49269, 55356, 60266, 65998, 71864, 71924, 79986, 87907, 100094, 1...
[ 0.2158203125, 0.000244140625, 0.07177734375, 0.002197265625, 0.0595703125, 0.04248046875, 0.09033203125, 0.0126953125, 0.0225830078125, 0.027587890625, 0.053955078125, 0.0595703125, 0.0849609375, 0.00927734375, 0.1181640625, 0.0888671875, 0.08544921875, 0.072265625, 0.09033203125...
f57b2505-ba72-5698-a506-843e33588536
393,422
0
Title: What are the strengths of Lua over CSharpCodeProvider in C# for dynamic code execution? In my scenario I want to interpret a script file and execute methods from assemblies. What advantages would Lua offer me? If you have used both Lua and the CSharpCodeProvider please contrast your experience with both.
65
79
[ "c#", "lua" ]
[ "c#", "lua" ]
{"accepted_answer_id":394944,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-12-26T02:48:02.850000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","lua"],"last_activity_date":"2011-12-15T05:21:58.600000+00:00","last_edit_date":"2011-12-15T05:21:58.600000+0...
[ 0.00601959228515625, -0.01519775390625, -0.01537322998046875, -0.0172882080078125, 0.0262298583984375, -0.0301513671875, 0.008819580078125, 0.0199127197265625, -0.01120758056640625, -0.00667572021484375, -0.039093017578125, 0.005512237548828125, 0.0262298583984375, 0.00016951560974121094, ...
[ 7, 11, 70, 100, 111, 136, 254, 313, 645, 678, 765, 1295, 2806, 3350, 3444, 3467, 4865, 4904, 7121, 11435, 11814, 15044, 16981, 18151, 18645, 25841, 26499, 29481, 62160, 69822, 71924, 84079, 89845, 90254, 92940, 106117, 114211, 150624, 17799...
[ 0.0791015625, 0.21484375, 0.013671875, 0.010986328125, 0.023681640625, 0.0284423828125, 0.1240234375, 0.031005859375, 0.072265625, 0.009033203125, 0.02490234375, 0.04931640625, 0.04296875, 0.20703125, 0.050537109375, 0.1669921875, 0.002197265625, 0.1435546875, 0.0693359375, 0.0...
6ee8d090-865e-58fc-a98b-473cd063b92a
405,995
0
Title: Embedding Lua in OCaml Could you, please, give a code snippet showing how to use Lua embedded in OCaml? A simple example could be a "Hello, World" variant. Have OCaml prompt the user for a name. Then pass that name to a Lua function. Have Lua print a greeting and return the length of the name. Then have OCaml...
337
397
[ "lua" ]
[ "lua", "embed", "ocaml" ]
{"accepted_answer_id":406036,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-01-02T04:12:57.620000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2012-05-28T17:40:26.217000+00:00","last_edit_date":"2020-06-20T09:12:55.060000+00:00"...
[ 0.0030345916748046875, -0.003856658935546875, -0.0082550048828125, -0.019256591796875, 0.00926971435546875, -0.031585693359375, 0.023681640625, 0.005023956298828125, -0.0241546630859375, 0.0066375732421875, 0.011962890625, 0.02642822265625, 0.0126190185546875, -0.02679443359375, 0.009689...
[ 4, 11, 23, 32, 36, 83, 100, 106, 116, 127, 136, 138, 141, 180, 201, 313, 351, 372, 441, 822, 841, 1003, 1528, 1745, 1884, 1977, 2053, 2146, 2633, 2775, 3098, 3350, 3514, 3564, 3642, 4524, 4527, 4989, 5809, 6138, 6528, 6661, 7237, ...
[ 0.01904296875, 0.220703125, 0.08349609375, 0.04736328125, 0.06201171875, 0.0087890625, 0.046875, 0.028076171875, 0.005126953125, 0.0849609375, 0.05615234375, 0.032958984375, 0.1962890625, 0.1337890625, 0.140625, 0.06640625, 0.05517578125, 0.22265625, 0.008544921875, 0.143554687...
30a49712-988a-520f-992c-4227849d5663
426,932
0
Title: Are scripts "open source" by definition? The other day, I tweaked a script for a friend's World of Warcraft addon. He was surprised that you could edit the addons—that they were "open source." (Word of Warcraft addons are written in the Lua scripting language) I found myself wanting to say "Sure you can—all scr...
120
148
[ "lua" ]
[ "scripting", "lua" ]
{"accepted_answer_id":426949,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":"2012-08-29T15:47:51.977000+00:00","creation_date":"2009-01-09T03:04:06.650000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["lua"],"last_activity_date":"2012-08-29T15:47:48.810000+00:00","last_edit_date":"2012...
[ 0.01288604736328125, 0.00948333740234375, -0.0211181640625, -0.0038471221923828125, 0.0157470703125, -0.03936767578125, -0.01032257080078125, 0.03485107421875, -0.0269622802734375, 0.0016775131225585938, -0.048431396484375, 0.03961181640625, 0.03460693359375, -0.00894927978515625, 0.0250...
[ 7, 11, 13, 47, 67, 70, 111, 214, 294, 344, 375, 390, 398, 450, 606, 621, 756, 831, 2071, 3060, 3350, 3408, 3444, 3871, 4445, 5245, 5550, 5584, 5809, 5974, 6661, 8018, 15190, 15901, 26499, 27211, 29481, 29568, 31344, 34391, 39555, 4089...
[ 0.0869140625, 0.0849609375, 0.031005859375, 0.05419921875, 0.09375, 0.006591796875, 0.0732421875, 0.033935546875, 0.03515625, 0.0166015625, 0.05078125, 0.08642578125, 0.03759765625, 0.021728515625, 0.03662109375, 0.0693359375, 0.08251953125, 0.14453125, 0.0277099609375, 0.01745...
474ada4f-d812-5295-acd7-92f1b7712099
453,769
0
Title: How do I create a Lua Table in C++, and pass it to a Lua function? In C++, I have a map<string, string>, containing an unknown number of entries. How can I pass this to a Lua function, so that the Lua function can use the data as a table?
63
75
[ "c++", "lua" ]
[ "c++", "string", "dictionary", "lua", "lua-table" ]
{"accepted_answer_id":459455,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-01-17T18:22:05.360000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2013-09-23T20:38:20.707000+00:00","last_edit_date":"2013-09-23T20:38:20.707000+...
[ 0.0158233642578125, 0.00045871734619140625, 0.0021114349365234375, 0.0041351318359375, 0.036895751953125, -0.04217529296875, 0.004673004150390625, 0.0041351318359375, -0.0137786865234375, 0.00868988037109375, 0.0207366943359375, 0.0104827880859375, 0.0194091796875, -0.0232391357421875, -...
[ 10, 11, 47, 51, 142, 237, 313, 360, 831, 2053, 3350, 4527, 11249, 14012, 22288, 23180, 27875, 28282, 32354, 37223, 48962, 69723, 70541, 79315, 91693, 112820, 112997 ]
[ 0.0220947265625, 0.193359375, 0.014892578125, 0.0230712890625, 0.042236328125, 0.040283203125, 0.05712890625, 0.013671875, 0.0107421875, 0.0791015625, 0.203125, 0.055908203125, 0.05419921875, 0.01953125, 0.1396484375, 0.240234375, 0.10546875, 0.09375, 0.162109375, 0.248046875, ...
3f6787b0-cc79-543c-bece-ede243233a9e
461,978
0
Title: Why is the first random number always the same on some platforms in lua? Consider the following lua code snippet : local time = os.time() for _= 1, 10 do time = time + 1 print('Seeding with ' .. time) math.randomseed(time) for i = 1, 5 do print('\t' .. math.random(100)) end end O...
303
244
[ "lua" ]
[ "random", "lua" ]
{"accepted_answer_id":462350,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-01-20T16:14:24.190000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2015-12-26T20:51:09.060000+00:00","last_edit_date":"2009-01-20T17:27:06.383000+00:00"...
[ 0.0236663818359375, -0.0144500732421875, -0.0183258056640625, -0.0016574859619140625, 0.035675048828125, -0.0111236572265625, -0.0274810791015625, -0.006511688232421875, 0.004459381103515625, -0.02569580078125, 0.0020961761474609375, 0.01629638671875, 0.034271240234375, -0.0010633468627929...
[ 11, 17, 39, 40, 70, 83, 98, 106, 132, 184, 190, 209, 237, 297, 313, 362, 678, 822, 997, 1193, 1438, 1733, 3034, 3060, 3350, 3559, 3564, 4000, 4727, 5117, 5701, 6032, 6077, 6238, 6872, 7103, 11156, 11251, 11343, 11508, 11787, 12069, ...
[ 0.193359375, 0.0810546875, 0.0262451171875, 0.150390625, 0.047607421875, 0.06396484375, 0.014404296875, 0.045654296875, 0.09326171875, 0.0927734375, 0.1005859375, 0.1201171875, 0.0147705078125, 0.1796875, 0.09765625, 0.0771484375, 0.150390625, 0.0927734375, 0.051025390625, 0.15...
fb8c0592-6ace-5b8a-828d-6d91f064fd2a
462,976
0
Title: Lua - Syntax error in if-statement Just tried to execute a small Lua script, but unfortunately I'm doing something wrong. I've no more ideas what the fault might be. function checkPrime( n ) for i = 2, n-1, 1 do if n % i == 0 then return false end end return true end ...
144
144
[ "lua" ]
[ "syntax", "lua" ]
{"accepted_answer_id":463037,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-01-20T20:32:53.203000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-01-20T22:33:14.410000+00:00","last_edit_date":"2009-01-20T22:33:14.410000+00:00"...
[ 0.0020599365234375, -0.0211944580078125, -0.0103607177734375, -0.01800537109375, 0.01318359375, -0.027191162109375, 0.01377105712890625, 0.009124755859375, -0.028839111328125, 0.00720977783203125, 0.00759124755859375, 0.007061004638671875, 0.01259613037109375, -0.012298583984375, -0.0125...
[ 9, 11, 13, 17, 25, 66, 106, 116, 363, 653, 674, 757, 822, 1745, 1957, 2174, 2203, 3095, 3350, 3564, 3949, 5759, 6954, 12765, 13648, 17886, 18499, 19010, 19336, 20594, 25647, 26499, 27359, 27761, 29481, 29552, 29568, 30646, 32354, 34735, ...
[ 0.0009765625, 0.142578125, 0.1416015625, 0.1689453125, 0.0179443359375, 0.078125, 0.045654296875, 0.1015625, 0.10009765625, 0.1064453125, 0.057373046875, 0.140625, 0.126953125, 0.18359375, 0.1064453125, 0.259765625, 0.00244140625, 0.06298828125, 0.1630859375, 0.115234375, 0.1...
f25e47a4-7895-5f71-8870-2eca55f7af3e
463,101
0
Title: Lua - Current time in milliseconds Is there a common way to get the current time in or with milliseconds? There is os.time(), but it only provides full seconds.
39
44
[ "lua" ]
[ "time", "lua" ]
{"accepted_answer_id":463126,"answer_count":12,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-01-20T21:03:34.187000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2025-03-19T16:30:29.817000+00:00","last_edit_date":"2017-04-15T22:57:15.903000+00:00...
[ 0.0080413818359375, -0.01007080078125, -0.008880615234375, -0.00527191162109375, 0.0204925537109375, -0.0278778076171875, -0.0106658935546875, -0.00250244140625, -0.031707763671875, -0.013702392578125, 0.005779266357421875, -0.0032024383544921875, 0.0350341796875, -0.0245513916015625, 0....
[ 5, 7, 10, 11, 23, 47, 70, 132, 362, 678, 707, 1284, 1733, 2046, 2071, 2685, 3350, 3917, 4393, 4734, 6032, 8622, 8877, 39210, 43581, 48962, 87344, 94131, 114063, 191633 ]
[ 0.06103515625, 0.0167236328125, 0.0264892578125, 0.1572265625, 0.115234375, 0.037109375, 0.040283203125, 0.115234375, 0.1640625, 0.123046875, 0.035888671875, 0.04345703125, 0.255859375, 0.1220703125, 0.009521484375, 0.051513671875, 0.171875, 0.08984375, 0.111328125, 0.071777343...
45643a86-ce34-50c1-891b-05ef3880354c
475,464
0
Title: Lua syntax highlighting in KDevelop Does anyone know how to fix the Lua syntax highlighting in Kdevelop. The # symbol used to get the length of a table causes the remainder of the line to appear as if it is commented out. t[#t+1] = "foo"
62
71
[ "lua" ]
[ "lua", "syntax-highlighting", "kdevelop" ]
{"accepted_answer_id":null,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-01-24T04:05:53.987000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-01-24T04:16:54.963000+00:00","last_edit_date":"2009-01-24T04:16:54.963000+00:00",...
[ 0.0128173828125, -0.041534423828125, 0.0031604766845703125, 0.005847930908203125, 0.026947021484375, -0.007656097412109375, 0.00409698486328125, 0.0168609619140625, -0.0005488395690917969, -0.006500244140625, 0.004154205322265625, -0.0005822181701660156, 0.0243377685546875, -0.017807006835...
[ 11, 18, 31, 214, 237, 341, 468, 808, 820, 1810, 2046, 2146, 2174, 2601, 3350, 3584, 3642, 3714, 4657, 4904, 6002, 6868, 11814, 13315, 21748, 23180, 26582, 30022, 35672, 47143, 86531, 108975, 113660, 127308, 140909, 229815 ]
[ 0.15234375, 0.0184326171875, 0.1455078125, 0.0458984375, 0.021240234375, 0.095703125, 0.1552734375, 0.052978515625, 0.04150390625, 0.1025390625, 0.01953125, 0.0888671875, 0.00927734375, 0.1396484375, 0.1611328125, 0.111328125, 0.007568359375, 0.030517578125, 0.09375, 0.02514648...
dc918b5d-e026-50c4-8b47-7d3c8f1ebc43
497,311
0
Title: How to Read only the last line of a text file in Lua? I have a program that generates text fiels that can be up to 20 mets in size. Sometimes I only care about the last line in the file, is there a way to read just that line with out wasting memory reading the rest of the file?
72
73
[ "lua" ]
[ "file", "lua", "io" ]
{"accepted_answer_id":497750,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-01-30T21:26:43.060000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2023-05-03T18:59:47.963000+00:00","last_edit_date":null,"question_id":497311,"score":...
[ 0.01019287109375, -0.00923919677734375, -0.01493072509765625, -0.035308837890625, -0.0023555755615234375, -0.021209716796875, -0.0025615692138671875, 0.01036834716796875, -0.019073486328125, -0.021209716796875, -0.02203369140625, -0.00829315185546875, 0.035552978515625, -0.03021240234375, ...
[ 7, 11, 23, 47, 70, 111, 186, 387, 435, 450, 509, 517, 831, 1257, 1528, 1660, 1672, 1810, 3350, 3917, 4568, 4734, 4764, 7986, 10588, 11249, 11435, 12301, 13267, 13315, 16454, 48962, 98323, 112992, 139392, 160193 ]
[ 0.054931640625, 0.142578125, 0.005615234375, 0.037353515625, 0.03125, 0.0206298828125, 0.00927734375, 0.10205078125, 0.10546875, 0.09130859375, 0.0159912109375, 0.119140625, 0.0289306640625, 0.00048828125, 0.1298828125, 0.12890625, 0.052978515625, 0.03369140625, 0.1826171875, 0...
df2d93cb-5eb8-586f-9b69-511f0407eb44
498,087
0
Title: Is there a library like Rails for Lua? Is there a library like Rails for Lua?
22
28
[ "lua" ]
[ "ruby-on-rails", "lua" ]
{"accepted_answer_id":null,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-01-31T02:35:23.107000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2023-03-19T17:01:01.157000+00:00","last_edit_date":"2023-03-19T17:01:01.157000+00:00",...
[ 0.01456451416015625, -0.02001953125, -0.00911712646484375, -0.010833740234375, 0.0272369384765625, -0.03338623046875, -0.0003218650817871094, 0.0261688232421875, -0.0238037109375, -0.005329132080078125, -0.01065826416015625, 0.007251739501953125, 0.053985595703125, 0.00470733642578125, 0...
[ 7, 10, 11, 100, 1294, 1884, 2071, 2685, 3350, 35773, 48962, 85736 ]
[ 0.1005859375, 0.0087890625, 0.126953125, 0.1240234375, 0.1181640625, 0.107421875, 0.0252685546875, 0.04443359375, 0.1748046875, 0.2099609375, 0.0419921875, 0.220703125 ]
608ddf1f-df55-55c1-bd47-df174c534f1f
504,338
0
Title: Accessing the Body of a Function with Lua I'm going back to the basics here but in Lua, you can define a table like so: myTable = {} myTable [1] = 12 Printing the table reference itself brings back a pointer to it. To access its elements you need to specify an index (i.e. exactly like you would an array) ...
223
236
[ "lua" ]
[ "function", "debugging", "lua", "function-pointers", "visualizer" ]
{"accepted_answer_id":505053,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-02T18:36:21.637000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-02-04T10:04:22.077000+00:00","last_edit_date":null,"question_id":504338,"score":...
[ 0.0120391845703125, 0.005420684814453125, 0.00792694091796875, -0.0279998779296875, 0.02001953125, -0.036956787109375, 0.01412200927734375, 0.0081024169921875, -0.026214599609375, 0.00661468505859375, 0.004795074462890625, 0.00125885009765625, 0.004528045654296875, -0.0183563232421875, -...
[ 10, 11, 23, 47, 56, 64, 70, 71, 111, 136, 184, 214, 221, 238, 297, 427, 497, 616, 618, 678, 685, 759, 831, 1022, 1176, 1284, 1295, 1884, 2071, 2203, 2685, 2886, 3350, 3564, 3871, 3917, 3934, 4000, 4420, 5361, 6275, 10298, 10763, 1...
[ 0.0576171875, 0.19921875, 0.0732421875, 0.134765625, 0.0947265625, 0.008544921875, 0.0242919921875, 0.08642578125, 0.125, 0.0703125, 0.134765625, 0.06298828125, 0.068359375, 0.0771484375, 0.189453125, 0.1806640625, 0.07958984375, 0.1796875, 0.1396484375, 0.08447265625, 0.1132...
45d7a3a7-8a18-530c-a358-1d1bd1954f7c
510,309
0
Title: The compilation process Can anyone explain how compilation works? I can't seem to figure out how compilation works.. To be more specific, here's an example.. I'm trying to write some code in MSVC++ 6 to load a Lua state.. I've already: set the additional directories for the library and include files to...
482
529
[ "lua" ]
[ "visual-c++", "compiler-construction", "lua", "visual-c++-6" ]
{"accepted_answer_id":510379,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-04T06:43:11.200000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2010-07-20T03:24:15.337000+00:00","last_edit_date":"2020-06-20T09:12:55.060000+00:00"...
[ 0.0180511474609375, 0.005641937255859375, 0.0013141632080078125, -0.016387939453125, 0.0160369873046875, -0.014190673828125, 0.022216796875, 0.036834716796875, -0.0054931640625, -0.00861358642578125, -0.021148681640625, 0.02410888671875, 0.0216217041015625, -0.0174560546875, 0.0198364257...
[ 5, 11, 14, 56, 70, 106, 150, 214, 305, 313, 360, 441, 538, 581, 621, 765, 910, 1363, 1379, 1810, 1884, 2392, 2844, 3350, 3522, 3642, 3688, 3714, 4488, 4734, 5423, 5612, 5809, 6713, 6953, 7077, 7108, 7464, 8266, 9433, 10187, 10336, 1...
[ 0.0546875, 0.09716796875, 0.1494140625, 0.013916015625, 0.0107421875, 0.036376953125, 0.0439453125, 0.07568359375, 0.0966796875, 0.038330078125, 0.099609375, 0.030029296875, 0.033203125, 0.1064453125, 0.027587890625, 0.01025390625, 0.0830078125, 0.1845703125, 0.0888671875, 0.00...
2938d9f9-dc7d-53f7-914a-ab119c45da0e
512,679
0
Title: Lua COM Programming Anyone know of any examples that shows COM programming via Lua? Could require a library. I need to write some external scripts for Photoshop, so wondering if it's possible with Lua.
45
53
[ "lua" ]
[ "com", "scripting", "lua", "photoshop", "luacom" ]
{"accepted_answer_id":512731,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":"2013-06-27T17:20:33.970000+00:00","creation_date":"2009-02-04T18:35:52.777000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["lua"],"last_activity_date":"2013-05-29T22:19:07.617000+00:00","last_edit_date":"2013...
[ -0.00328826904296875, -0.0124359130859375, 0.0095977783203125, -0.01380157470703125, 0.0238037109375, -0.0294952392578125, 0.0172882080078125, 0.0308074951171875, -0.0194244384765625, -0.0034942626953125, -0.0075225830078125, 0.0297393798828125, 0.0303192138671875, 0.0016880035400390625, ...
[ 7, 11, 32, 100, 214, 449, 678, 1294, 1829, 3350, 3630, 3714, 3871, 7722, 26499, 27781, 27958, 28541, 31436, 33022, 35773, 45831, 48962, 56037, 64209, 78072, 149016, 173591, 191147 ]
[ 0.0252685546875, 0.20703125, 0.010986328125, 0.03369140625, 0.107421875, 0.125, 0.05517578125, 0.055908203125, 0.109375, 0.21484375, 0.01416015625, 0.05859375, 0.050048828125, 0.08984375, 0.13671875, 0.1650390625, 0.1875, 0.005859375, 0.2080078125, 0.05419921875, 0.1142578125...
5a7887c1-dd87-5882-8a50-7df459df07c4
513,239
0
Title: How to quickly initialise an associative table in Lua? In Lua, you can create a table the following way: local t = { 1, 2, 3, 4, 5 } However, I want to create an associative table, I have to do it the following way: local t = {} t['foo'] = 1 t['bar'] = 2 The following gives an error: local t = { 'foo'...
127
126
[ "lua" ]
[ "lua", "initialization", "lua-table" ]
{"accepted_answer_id":513358,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-04T20:46:42.497000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2025-07-28T16:25:52.973000+00:00","last_edit_date":"2025-07-28T16:25:52.973000+00:00"...
[ 0.0132598876953125, 0.00411224365234375, 0.006511688232421875, 0.0005965232849121094, 0.0240020751953125, -0.0309600830078125, 0.0034656524658203125, -0.015838623046875, -0.0202789306640625, 0.0183563232421875, 0.00839996337890625, 0.0165557861328125, 0.006900787353515625, -0.0182495117187...
[ 10, 11, 23, 31, 47, 54, 106, 116, 138, 142, 190, 201, 272, 360, 808, 831, 1065, 1299, 2203, 3075, 3350, 3444, 3584, 3917, 4000, 11249, 18151, 18499, 21373, 23180, 25632, 28282, 33306, 48962, 58134, 61475, 69405, 76199, 166027 ]
[ 0.0185546875, 0.1796875, 0.01171875, 0.111328125, 0.00927734375, 0.004638671875, 0.07763671875, 0.0966796875, 0.07421875, 0.011474609375, 0.091796875, 0.08154296875, 0.138671875, 0.0223388671875, 0.1279296875, 0.009765625, 0.0048828125, 0.1611328125, 0.002685546875, 0.1171875, ...
5d07bf29-47ba-577b-a9b2-bb54400dc8be
518,571
0
Title: lua table constructor how do you make a default table and then use it when making other tables? example --default table Button = { x = 0, y = 0, w = 10, h = 10, Texture = "buttonimg.png", onClick = function() end } newbutton = Button { onClick = function() print("button 1 pressed") end } newbut...
142
145
[ "lua" ]
[ "lua" ]
{"accepted_answer_id":520089,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-06T00:01:26.097000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-02-06T21:53:57.227000+00:00","last_edit_date":"2009-02-06T01:15:54.993000+00:00"...
[ 0.027740478515625, 0.028106689453125, -0.01171875, 0.01470947265625, 0.04400634765625, -0.039947509765625, -0.006725311279296875, 0.00466156005859375, -0.0138702392578125, 0.027740478515625, 0.002376556396484375, 0.0287017822265625, 0.01273345947265625, -0.0194854736328125, -0.0116577148...
[ 4, 5, 7, 10, 47, 54, 71, 98, 106, 113, 116, 136, 148, 209, 304, 398, 427, 442, 645, 748, 757, 1022, 1096, 1507, 1620, 2046, 2203, 3229, 3249, 3408, 3525, 3564, 3642, 3789, 4527, 5423, 5429, 7068, 8789, 10035, 20662, 23180, 23937, ...
[ 0.013427734375, 0.0029296875, 0.003662109375, 0.059814453125, 0.0703125, 0.046875, 0.009765625, 0.12109375, 0.0498046875, 0.07275390625, 0.08447265625, 0.01953125, 0.087890625, 0.076171875, 0.05224609375, 0.024658203125, 0.09716796875, 0.0152587890625, 0.09814453125, 0.05664062...
e57d11c9-0783-5555-a6cb-a6a508397205
533,136
0
Title: Store a Lua function? Calling a Lua function from C is fairly straight forward but is there a way to store a Lua function somewhere for later use? I want to store user defined Lua functions passed to my C function for use on events, similar to how the Connect function works in wxLua.
63
72
[ "c", "lua" ]
[ "c", "function", "lua" ]
{"accepted_answer_id":533327,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-10T16:43:56.400000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","lua"],"last_activity_date":"2009-04-04T20:18:52.853000+00:00","last_edit_date":null,"question_id":533136,"sco...
[ 0.031463623046875, 0.007808685302734375, 0.0070648193359375, -0.00923919677734375, -0.003009796142578125, -0.0184783935546875, -0.01383209228515625, 0.0197906494140625, -0.01448822021484375, -0.006378173828125, 0.0070648193359375, 0.005275726318359375, 0.0084075927734375, -0.01692199707031...
[ 7, 10, 11, 47, 100, 148, 214, 313, 425, 1295, 3350, 3444, 3917, 4343, 4527, 14432, 14934, 21086, 21373, 26265, 32354, 38937, 40225, 43240, 47353, 48962, 61924, 62448, 80560, 115081, 174653, 180663 ]
[ 0.05419921875, 0.03564453125, 0.212890625, 0.072265625, 0.057861328125, 0.025146484375, 0.001220703125, 0.140625, 0.059326171875, 0.0732421875, 0.2021484375, 0.0869140625, 0.0791015625, 0.224609375, 0.09375, 0.06494140625, 0.2109375, 0.1767578125, 0.011962890625, 0.1376953125, ...
12a8bd65-9d3c-5634-b2c6-b61a01b90c7d
556,309
0
Title: How to embed lua in c++ via SWIG Currently I have a set of SWIG wrappers for my classes and it all builds. I can create a lua virtual machine and load my wrappers, but at that point I'm flummoxed. Googling tells me how to shove put c++ in lua in swig, but not how to put lua in c++. Really all I want to do is ...
112
119
[ "c++", "lua" ]
[ "c++", "lua", "swig" ]
{"accepted_answer_id":566047,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-17T10:59:50.743000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2009-02-19T16:16:33.117000+00:00","last_edit_date":null,"question_id":556309,"s...
[ -0.0002701282501220703, 0.01038360595703125, 0.012786865234375, -0.016815185546875, 0.023529052734375, -0.035552978515625, 0.0178985595703125, 0.0118255615234375, -0.0145263671875, -0.01422882080078125, 0.00420379638671875, 0.0102081298828125, 0.023773193359375, 0.00978851318359375, 0.00...
[ 23, 56, 91, 272, 297, 352, 442, 501, 756, 831, 1829, 2276, 3444, 3642, 3884, 5120, 5201, 5423, 6275, 6712, 11249, 13482, 14838, 15756, 17574, 20513, 21777, 27761, 27875, 28282, 31343, 34648, 36279, 36746, 37223, 41044, 45367, 48962, 61112, ...
[ 0.1552734375, 0.0595703125, 0.0732421875, 0.1650390625, 0.0185546875, 0.0986328125, 0.03857421875, 0.0830078125, 0.00927734375, 0.004638671875, 0.087890625, 0.011474609375, 0.057373046875, 0.0703125, 0.1162109375, 0.013671875, 0.06640625, 0.0078125, 0.1357421875, 0.07421875, ...
7419be80-4e03-5d72-ae13-c7c9fb3db8d9
557,523
0
Title: SWIG Lua and passing arrays I currently have the following lua code: g = engine.CGeometry() vertexes = {} vertexes[1] = 0 vertexes[2] = 0 vertexes[3] = 0 vertexes[4] = 0 vertexes[5] = -1 vertexes[6] = 0 vertexes[7] = -1 vertexes[8] = 0 vertexes[9] = 0 print...
230
206
[ "c++", "lua" ]
[ "c++", "arrays", "lua", "swig" ]
{"accepted_answer_id":null,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-17T16:01:54.307000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2017-12-15T12:53:04.113000+00:00","last_edit_date":null,"question_id":557523,"sc...
[ -0.0061492919921875, 0.0040283203125, 0.00865936279296875, 0.01068878173828125, 0.0256805419921875, -0.040374755859375, 0.0156402587890625, -0.01277923583984375, 0.0026569366455078125, 0.00913238525390625, 0.023406982421875, 0.00788116455078125, 0.020538330078125, -0.00794219970703125, -...
[ 11, 13, 23, 51, 67, 126, 132, 294, 313, 452, 661, 706, 757, 903, 1639, 2203, 2292, 2661, 3350, 4778, 4958, 6953, 10298, 10429, 11107, 11782, 15896, 18151, 18468, 18499, 19943, 21072, 21342, 21555, 22799, 22819, 25632, 25647, 27761, 28412,...
[ 0.177734375, 0.04150390625, 0.0048828125, 0.06494140625, 0.1611328125, 0.0986328125, 0.0147705078125, 0.0380859375, 0.038818359375, 0.138671875, 0.1025390625, 0.1181640625, 0.083984375, 0.1083984375, 0.087890625, 0.0126953125, 0.0947265625, 0.091796875, 0.1826171875, 0.07080078...
ee924f30-d070-5221-82f1-b1e7ae99aeb5
562,292
0
Title: Lua value not changing? I use very simple Lua scripting in an online game called ROBLOX. My problem is that values in my scripts aren't changing! Example: num = 0 while true do num = num + 1 print(num) wait(1) end That should count up starting on 0, but the number won't change. Could this be fr...
106
100
[ "lua" ]
[ "lua" ]
{"accepted_answer_id":null,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-18T18:30:01.527000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2015-02-23T03:23:04.443000+00:00","last_edit_date":"2013-09-17T18:23:51.810000+00:00",...
[ 0.034759521484375, 0.006038665771484375, -0.0208282470703125, -0.01213836669921875, 0.0168914794921875, -0.031402587890625, 0.01546478271484375, 0.0025730133056640625, -0.0170135498046875, 0.01219940185546875, -0.0013017654418945312, 0.01629638671875, 0.0186767578125, -0.01546478271484375,...
[ 7, 11, 18, 23, 38, 54, 98, 106, 214, 757, 759, 959, 997, 1118, 1257, 1284, 1810, 2203, 2606, 2967, 3350, 3564, 4165, 4527, 4552, 5608, 6712, 8781, 12960, 13269, 13648, 14012, 15549, 19452, 23742, 26366, 26499, 27750, 28412, 29568, 34292...
[ 0.0068359375, 0.1953125, 0.1572265625, 0.04296875, 0.0201416015625, 0.0263671875, 0.021484375, 0.055908203125, 0.072265625, 0.173828125, 0.034912109375, 0.17578125, 0.1103515625, 0.146484375, 0.0810546875, 0.0390625, 0.001953125, 0.060791015625, 0.1552734375, 0.12109375, 0.20...
ae86f26a-9dd8-5102-99e1-355b02c6f121
564,100
0
Title: Checking the value of a Lua stack item from C++ how do I check the value of the top of the stack in Lua? I have the following C++ code: if (luaL_loadfile(L, filename) == NULL) { return 0;// error.. } lua_pcall(L,0,0,0); // execute the current script.. lua_getglobal(L,"variable"); ...
144
157
[ "c++", "lua" ]
[ "c++", "lua", "stack" ]
{"accepted_answer_id":564217,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-19T05:56:53.183000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2009-02-19T07:29:42.133000+00:00","last_edit_date":null,"question_id":564100,"s...
[ 0.0171661376953125, -0.003101348876953125, 0.00002002716064453125, -0.005397796630859375, 0.003681182861328125, -0.0238494873046875, 0.004352569580078125, 0.03338623046875, -0.015380859375, 0.00545501708984375, 0.00653076171875, 0.0034427642822265625, 0.002101898193359375, -0.0219421386718...
[ 11, 23, 38, 54, 70, 87, 111, 164, 214, 254, 313, 454, 757, 822, 866, 1295, 2174, 2203, 2663, 2886, 3350, 3642, 3794, 6868, 10941, 11435, 11627, 12765, 18057, 18151, 18499, 21690, 23708, 25632, 25647, 26499, 27761, 29822, 30646, 31852, 3...
[ 0.2119140625, 0.062255859375, 0.002197265625, 0.024658203125, 0.0673828125, 0.0009765625, 0.1142578125, 0.0771484375, 0.1318359375, 0.0159912109375, 0.0546875, 0.001220703125, 0.0947265625, 0.1650390625, 0.1181640625, 0.05029296875, 0.02490234375, 0.014892578125, 0.205078125, 0...
5d30eeef-a6fa-591f-b2e5-8c88b1484ac6
564,363
0
Title: How to make a non-blocking pipe from the command-line in Solaris? I'm trying to write a lua script that reads input from other processes and analyzes it. For this purpose I'm using io.popen and it works as expected in Windows, but on Unix(Solaris) reading from io.popen blocks, so the script just waits there unt...
146
166
[ "lua" ]
[ "unix", "lua", "pipe", "nonblocking" ]
{"accepted_answer_id":null,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-19T08:08:14.413000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-05-26T11:00:01.377000+00:00","last_edit_date":null,"question_id":564363,"score":0...
[ -0.037872314453125, -0.020965576171875, -0.02227783203125, 0.011199951171875, 0.018829345703125, -0.043365478515625, -0.01483154296875, 0.01393890380859375, 0.00580596923828125, 0.0092926025390625, -0.0252532958984375, 0.01220703125, 0.03741455078125, -0.01209259033203125, -0.00067377090...
[ 5, 33, 47, 53, 98, 164, 214, 237, 313, 351, 831, 992, 1284, 1295, 2256, 2394, 2685, 3249, 3773, 3789, 3871, 4084, 6635, 7968, 9433, 9844, 11249, 12301, 15549, 16454, 17368, 18151, 22995, 24189, 26499, 27761, 28032, 30646, 31577, 32497, ...
[ 0.05908203125, 0.2236328125, 0.023681640625, 0.052734375, 0.0245361328125, 0.1669921875, 0.0732421875, 0.01318359375, 0.0849609375, 0.16796875, 0.03759765625, 0.1103515625, 0.01611328125, 0.0771484375, 0.1396484375, 0.138671875, 0.119140625, 0.10107421875, 0.09765625, 0.0449218...
89f48907-bb63-5700-adfc-5f886d1b7766
564,480
0
Title: Embedding: mono vs lua I am interested in hearing about peoples experience with embedding mono (open source implementation of .NET) in a C/C++ application. How is it to distribute such an application and what are the dependencies? I have tested on OS X and mono comes as a huge framework (hundreds of MB). Do use...
208
239
[ "c++", "lua" ]
[ "c++", "mono", "lua", "embedding", "mono-embedding" ]
{"accepted_answer_id":564559,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-19T09:09:39.257000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2013-07-16T20:17:57.023000+00:00","last_edit_date":"2013-07-16T20:17:57.023000+...
[ 0.01099395751953125, 0.0003509521484375, -0.01033782958984375, -0.021270751953125, 0.0295867919921875, -0.0139007568359375, 0.023162841796875, 0.01099395751953125, -0.0185394287109375, -0.032806396484375, -0.025543212890625, -0.0025691986083984375, 0.0095062255859375, 0.0014257431030273438...
[ 4, 5, 6, 7, 10, 11, 12, 16, 23, 47, 56, 64, 67, 70, 83, 90, 98, 100, 110, 111, 136, 186, 237, 297, 313, 372, 375, 441, 442, 621, 678, 756, 831, 903, 1193, 2775, 2822, 2886, 3034, 3126, 3311, 3350, 3395, 3642, 3688, 3871, 393...
[ 0.01513671875, 0.0634765625, 0.013671875, 0.01513671875, 0.0145263671875, 0.1826171875, 0.025146484375, 0.013916015625, 0.0615234375, 0.0211181640625, 0.0155029296875, 0.06787109375, 0.023193359375, 0.0147705078125, 0.03466796875, 0.0146484375, 0.037841796875, 0.0145263671875, 0....
20155f5f-2a92-58a3-a273-c73790035b97
570,283
0
Title: Lua Challenge: Can you improve the fannkuch implementation's performance? Lua is currently the fastest scripting language out there, and its not so much slower than C/C++ for some sort of programs (on par when doing pidgits 1:1), however Lua scores really bad in a few benchmarks against C/C++. One of those is...
766
734
[ "lua" ]
[ "optimization", "lua" ]
{"accepted_answer_id":null,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-20T16:38:18.083000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-02-22T19:45:35.463000+00:00","last_edit_date":null,"question_id":570283,"score":2...
[ 0.0108489990234375, 0.0109710693359375, -0.003971099853515625, -0.00438690185546875, 0.025970458984375, -0.040313720703125, -0.025970458984375, -0.002475738525390625, -0.00394439697265625, -0.00960540771484375, 0.0171966552734375, 0.02667236328125, 0.00865936279296875, -0.0169525146484375,...
[ 4, 5, 6, 7, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 23, 25, 32, 44, 47, 54, 56, 58, 64, 67, 70, 71, 74, 83, 91, 98, 100, 106, 111, 112, 116, 117, 132, 136, 170, 186, 191, 201, 206, 214, 217, 237, 247, 254, 268, 27...
[ 0.018310546875, 0.0181884765625, 0.018310546875, 0.0174560546875, 0.01806640625, 0.017578125, 0.2490234375, 0.0274658203125, 0.06982421875, 0.00048828125, 0.0179443359375, 0.08642578125, 0.05322265625, 0.1201171875, 0.017822265625, 0.016357421875, 0.01416015625, 0.0245361328125, ...
dff3b00a-a6ae-537a-b3b2-838e093ec5dd
570,297
0
Title: Lua Challenge: Can you improve the mandelbrot implementation’s performance? Status: So far the best answer's program executes in 33% of the time of the original program! But there is probably still other ways to optimize it. Lua is currently the fastest scripting language out there, however Lua scores really...
645
621
[ "lua" ]
[ "optimization", "lua", "mandelbrot" ]
{"accepted_answer_id":607696,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-20T16:42:37.073000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-05-19T11:19:58.567000+00:00","last_edit_date":"2009-03-03T09:00:09.183000+00:00"...
[ 0.01052093505859375, -0.00710296630859375, -0.00701141357421875, -0.0068359375, 0.0234222412109375, -0.03399658203125, -0.035888671875, -0.0164031982421875, -0.0033283233642578125, -0.0185394287109375, 0.01033782958984375, 0.0225830078125, 0.009033203125, -0.02496337890625, 0.03399658203...
[ 4, 5, 6, 7, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 23, 38, 39, 42, 44, 47, 53, 54, 56, 64, 70, 71, 83, 87, 90, 98, 100, 106, 111, 112, 113, 116, 118, 132, 136, 148, 186, 214, 217, 221, 237, 247, 248, 275, 304, 31...
[ 0.0289306640625, 0.02880859375, 0.0289306640625, 0.02880859375, 0.029052734375, 0.028564453125, 0.2373046875, 0.0233154296875, 0.041259765625, 0.00732421875, 0.029052734375, 0.02783203125, 0.1298828125, 0.0286865234375, 0.0286865234375, 0.044189453125, 0.049072265625, 0.03759765625...
6f447ef8-12b6-5c94-9535-9eb666d359c7
570,311
0
Title: Lua Challenge: Can you improve the spectral-norm implementation’s performance? Lua is currently the fastest scripting language out there, and its not so much slower than C/C++ for some sort of programs (on par when doing pidgits 1:1), however Lua scores really bad in a few benchmarks against C/C++. One of tho...
591
557
[ "lua" ]
[ "optimization", "lua" ]
{"accepted_answer_id":null,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-20T16:45:53.913000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2013-09-17T18:21:36.457000+00:00","last_edit_date":"2013-09-17T18:20:41.643000+00:00",...
[ 0.0012178421020507812, -0.005649566650390625, 0.0003809928894042969, 0.0031375885009765625, 0.0206756591796875, -0.03131103515625, -0.03253173828125, -0.0006275177001953125, -0.00753021240234375, -0.0178070068359375, 0.0179290771484375, 0.0233154296875, 0.0139312744140625, -0.0089035034179...
[ 9, 10, 11, 14, 17, 19, 47, 53, 56, 62, 64, 70, 75, 81, 83, 106, 112, 113, 132, 170, 209, 214, 217, 248, 279, 313, 334, 344, 366, 420, 441, 525, 541, 571, 581, 642, 653, 757, 805, 808, 818, 864, 959, 997, 1022, 1181, 1342, ...
[ 0.041748046875, 0.002685546875, 0.2431640625, 0.06982421875, 0.0615234375, 0.0654296875, 0.0947265625, 0.041015625, 0.07275390625, 0.1298828125, 0.1259765625, 0.0625, 0.0634765625, 0.10546875, 0.010986328125, 0.06640625, 0.09814453125, 0.10693359375, 0.010009765625, 0.125, 0....
4582a619-66b8-5164-94a7-75df6e093f66
581,074
0
Title: Begin Lua-scripting I'm at a stage where I am forced to learn Lua, so do you have any suggestions on how I do this? I don't have a lot of experience with any other scripting languages than PHP. So, some suggestions on "head start Lua"-pages? EDIT As an addition to the wonderful tutorial pages, could you p...
128
142
[ "lua" ]
[ "scripting", "lua" ]
{"accepted_answer_id":581080,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":"2013-07-25T13:40:39.590000+00:00","creation_date":"2009-02-24T09:26:09.070000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["lua"],"last_activity_date":"2014-04-14T21:54:08.967000+00:00","last_edit_date":"2013...
[ 0.0138702392578125, 0.013336181640625, -0.00789642333984375, -0.0214080810546875, 0.0276336669921875, -0.03900146484375, 0.00400543212890625, 0.019256591796875, -0.025360107421875, -0.00933074951171875, -0.02691650390625, 0.0155487060546875, 0.0300140380859375, 0.0109405517578125, -0.002...
[ 9, 11, 23, 39, 54, 71, 87, 214, 297, 313, 903, 1284, 1314, 2806, 3249, 3350, 3444, 3501, 3642, 4034, 4358, 5809, 5915, 9803, 12779, 16981, 18749, 22469, 23996, 26499, 30698, 31251, 32032, 32036, 36541, 37223, 37967, 41097, 42459, 46876, ...
[ 0.017333984375, 0.212890625, 0.04443359375, 0.000732421875, 0.039794921875, 0.00732421875, 0.00927734375, 0.099609375, 0.0142822265625, 0.023681640625, 0.030029296875, 0.001220703125, 0.1201171875, 0.021728515625, 0.0284423828125, 0.216796875, 0.037841796875, 0.0009765625, 0.0312...
2f3b9d2a-c372-52d1-a0d6-92aaf4720547
591,523
0
Title: When is it good to use embedded script language like Lua I'm playing WoW for about 2 years and I was quite curious about Lua which is used to write addons. Since what I've read so far about Lua was "fast", "light" and "this is great", I was wondering how and when to use it. What is the typical situation where...
92
100
[ "lua" ]
[ "scripting", "lua" ]
{"accepted_answer_id":591542,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-02-26T17:22:52.323000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2011-06-01T06:57:53.513000+00:00","last_edit_date":"2011-06-01T06:57:53.513000+00:00"...
[ 0.030242919921875, 0.0009860992431640625, -0.01332855224609375, -0.007053375244140625, 0.034912109375, -0.04998779296875, -0.0022125244140625, 0.0255889892578125, -0.00896453857421875, 0.003795623779296875, -0.0198516845703125, 0.030242919921875, 0.0310821533203125, 0.0207977294921875, 0...
[ 11, 23, 47, 83, 100, 116, 352, 442, 509, 1456, 1672, 1884, 3229, 3350, 3642, 3871, 4127, 4527, 5245, 5369, 5426, 6782, 11814, 13482, 13787, 14847, 15190, 16648, 20016, 26499, 33022, 39473, 46876, 55720, 69819, 75169, 100231, 193844, 222201 ...
[ 0.1787109375, 0.01953125, 0.04150390625, 0.0419921875, 0.0169677734375, 0.05224609375, 0.087890625, 0.052001953125, 0.00439453125, 0.08349609375, 0.00830078125, 0.005615234375, 0.09765625, 0.18359375, 0.039306640625, 0.06591796875, 0.12109375, 0.1220703125, 0.134765625, 0.08642...
ecf05de9-87b1-5fda-b934-dd871f5fdfe2
613,282
0
Title: How do I push An instance of a c++ class wrapped with swig onto a lua stack? I have a class that is wrapped with swig, and registered with lua. I can create an instance of this class in a lua script, and it all works fine. But say I have an instance of a class made in my c++ code with a call to new X, and I h...
801
957
[ "c++", "lua" ]
[ "c++", "lua", "stack", "swig" ]
{"accepted_answer_id":613437,"answer_count":2,"chunk_count":2,"chunk_index":0,"closed_date":null,"creation_date":"2009-03-05T01:32:34.610000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2013-07-04T03:22:50.533000+00:00","last_edit_date":"2013-07-04T03:22:50.533000+...
[ 0.0084381103515625, 0.00496673583984375, 0.0283660888671875, -0.004756927490234375, 0.036376953125, -0.0295562744140625, 0.01250457763671875, 0.01513671875, 0.0015935897827148438, -0.0009202957153320312, 0.00945281982421875, 0.00266265869140625, 0.00418853759765625, -0.00412750244140625, ...
[ 7, 14, 18, 21, 38, 47, 54, 56, 73, 81, 87, 91, 98, 170, 177, 188, 271, 339, 441, 501, 509, 678, 706, 757, 822, 872, 1193, 1466, 1507, 1660, 1681, 1830, 2663, 3126, 3229, 3444, 3525, 4028, 4153, 4343, 4488, 5201, 5885, 5983, 6275...
[ 0.058349609375, 0.0220947265625, 0.038818359375, 0.080078125, 0.021240234375, 0.0576171875, 0.034423828125, 0.030517578125, 0.00048828125, 0.044677734375, 0.03857421875, 0.08984375, 0.031005859375, 0.0673828125, 0.01025390625, 0.0751953125, 0.16015625, 0.12109375, 0.02197265625, ...
32da53fc-3a32-5d6e-b91a-9f1b1d5ab2c5
613,282
1
Title: How do I push An instance of a c++ class wrapped with swig onto a lua stack? which would call "g=new GuiButton" then register it with the GuiRegionVertical (which needs to store a pointer for various reasons), then call "delete g", and the GuiRegionVertical is left with a dangling pointer to g. I suspect wh...
166
195
[ "c++", "lua" ]
[ "c++", "lua", "stack", "swig" ]
{"accepted_answer_id":613437,"answer_count":2,"chunk_count":2,"chunk_index":1,"closed_date":null,"creation_date":"2009-03-05T01:32:34.610000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2013-07-04T03:22:50.533000+00:00","last_edit_date":"2013-07-04T03:22:50.533000+...
[ 0.0287933349609375, 0.00907135009765625, 0.0292816162109375, -0.00044798851013183594, 0.030364990234375, -0.0151214599609375, 0.006412506103515625, 0.004840850830078125, 0.0032215118408203125, -0.00611114501953125, 0.0031299591064453125, 0.00013136863708496094, -0.00414276123046875, -0.003...
[ 8, 14, 24, 47, 54, 56, 67, 87, 91, 123, 177, 188, 501, 678, 706, 1507, 1830, 2069, 3871, 4028, 4343, 6183, 6275, 7612, 8520, 10941, 11249, 11782, 14375, 15896, 18507, 18770, 18831, 22769, 25251, 25737, 25944, 27117, 27761, 35133, 37223,...
[ 0.0537109375, 0.07275390625, 0.0263671875, 0.0255126953125, 0.0189208984375, 0.08935546875, 0.1015625, 0.032958984375, 0.06494140625, 0.060791015625, 0.08203125, 0.0184326171875, 0.0189208984375, 0.005126953125, 0.1220703125, 0.109375, 0.0289306640625, 0.048095703125, 0.037109375...
8c99f696-5f7d-585e-8375-a5189963144e
640,642
0
Title: How do you copy a Lua table by value? Recently I wrote a bit of Lua code something like: local a = {} for i = 1, n do local copy = a -- alter the values in the copy end Obviously, that wasn't what I wanted to do since variables hold references to an anonymous table not the values of the table themselv...
125
131
[ "lua" ]
[ "lua", "lua-table" ]
{"accepted_answer_id":26367080,"answer_count":16,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-03-12T21:52:05.467000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2022-06-23T21:29:04.620000+00:00","last_edit_date":"2013-11-14T22:25:46.310000+00:...
[ 0.0246429443359375, 0.007793426513671875, -0.0134735107421875, 0.00978851318359375, 0.0280303955078125, -0.04736328125, 0.005859375, -0.006099700927734375, -0.020172119140625, 0.00785064697265625, 0.0120849609375, 0.003986358642578125, 0.0074920654296875, -0.01509857177734375, -0.0231933...
[ 10, 11, 17, 18, 23, 54, 100, 106, 111, 390, 398, 653, 959, 2046, 2203, 2367, 3350, 3564, 4000, 4785, 5608, 9655, 10821, 11249, 16401, 18151, 23180, 27958, 33022, 34292, 36663, 37264, 43658, 48962, 52184, 54397, 61261, 64457, 77336, 91067,...
[ 0.125, 0.1474609375, 0.11328125, 0.01123046875, 0.037353515625, 0.05029296875, 0.07861328125, 0.0673828125, 0.01318359375, 0.1162109375, 0.0225830078125, 0.0498046875, 0.058349609375, 0.08984375, 0.125, 0.0218505859375, 0.1689453125, 0.0986328125, 0.1640625, 0.05029296875, 0....
b0dd1d6c-33a0-56b1-9649-eb7b255409b3
646,633
0
Title: Low-level Lua interpreter Is there a way to run Lua code from a C/C++ program at a more fine-grained level than a standard "lua_pcall" function call? Ideally I'd like to be able to loop over a list of low-level bytecode instructions (assuming it has such things) and run them one by one, so that I could write my...
178
205
[ "lua" ]
[ "lua" ]
{"accepted_answer_id":646650,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-03-14T20:14:45.317000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2012-03-17T15:58:43.947000+00:00","last_edit_date":null,"question_id":646633,"score":...
[ -0.004474639892578125, 0.0075531005859375, 0.0018510818481445312, -0.03460693359375, 0.03033447265625, -0.033660888671875, -0.00177764892578125, 0.018951416015625, 0.0009479522705078125, -0.0094757080078125, 0.007167816162109375, 0.00506591796875, 0.0286712646484375, -0.03411865234375, -...
[ 10, 11, 18, 42, 47, 56, 64, 67, 99, 254, 313, 390, 441, 456, 645, 822, 831, 1286, 1295, 1528, 1884, 1902, 2071, 2685, 2806, 3350, 3444, 3501, 3917, 3964, 4527, 4989, 5303, 5570, 5885, 6183, 6226, 8108, 10002, 11675, 11782, 12620, 17...
[ 0.05322265625, 0.1982421875, 0.002197265625, 0.09375, 0.031005859375, 0.078125, 0.07763671875, 0.01416015625, 0.033203125, 0.0322265625, 0.07958984375, 0.041259765625, 0.000244140625, 0.0419921875, 0.08203125, 0.166015625, 0.02685546875, 0.048828125, 0.0888671875, 0.1220703125,...
143c1114-7ebc-5a29-b133-f43dc1e742be
652,957
0
Title: How do I get the number of keys in a hash table in Lua? myTable = {} myTable["foo"] = 12 myTable["bar"] = "blah" print(#myTable) -- this prints 0 Do I actually have to iterate through the items in the table to get the number of keys? numItems = 0 for k,v in pairs(myTable) do numItems = numItems + 1 end ...
111
129
[ "lua" ]
[ "lua", "hashtable" ]
{"accepted_answer_id":652986,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-03-17T03:40:56.430000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2019-04-10T12:04:20.820000+00:00","last_edit_date":"2009-03-17T04:48:16.220000+00:00"...
[ 0.00885772705078125, -0.018798828125, -0.027587890625, 0.0242156982421875, 0.01306915283203125, 0.006805419921875, 0.006175994873046875, -0.00994110107421875, -0.0239715576171875, -0.020477294921875, -0.0129547119140625, 0.016387939453125, 0.00849151611328125, -0.00975799560546875, -0.03...
[ 7, 11, 17, 23, 31, 47, 54, 67, 70, 87, 100, 106, 111, 116, 127, 275, 334, 427, 472, 618, 757, 759, 765, 903, 984, 997, 1176, 1299, 1556, 1566, 2046, 2203, 2606, 2886, 2982, 3350, 3564, 3584, 8305, 8560, 11249, 13269, 14012, 20653,...
[ 0.109375, 0.166015625, 0.00146484375, 0.05029296875, 0.1611328125, 0.012451171875, 0.009765625, 0.02783203125, 0.033935546875, 0.0181884765625, 0.051025390625, 0.07958984375, 0.068359375, 0.12890625, 0.1552734375, 0.01611328125, 0.2080078125, 0.1708984375, 0.09814453125, 0.1367...
0d64bf95-27ec-593d-a56d-4e97d72a2644
656,199
0
Title: Search for an item in a Lua list If I have a list of items like this: local items = { "apple", "orange", "pear", "banana" } how do I check if "orange" is in this list? In Python I could do: if "orange" in items: # do something Is there an equivalent in Lua?
82
83
[ "lua" ]
[ "list", "lua", "lua-table" ]
{"accepted_answer_id":656232,"answer_count":12,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-03-17T21:56:38.380000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2022-09-17T18:54:36.130000+00:00","last_edit_date":"2013-09-23T20:39:29.557000+00:00...
[ 0.0206451416015625, -0.0119781494140625, -0.0208892822265625, 0.0135040283203125, 0.01114654541015625, -0.01471710205078125, 0.0054473876953125, -0.02484130859375, -0.025360107421875, -0.021026611328125, 0.0236968994140625, 0.0159912109375, 0.01477813720703125, -0.0014410018920898438, -0...
[ 11, 13, 23, 54, 58, 83, 100, 133, 147, 360, 468, 765, 903, 1081, 1884, 2174, 3350, 3642, 4000, 5303, 5809, 9007, 9844, 10727, 12765, 33086, 35735, 48962, 55769, 105281, 145581, 183234 ]
[ 0.166015625, 0.1474609375, 0.107421875, 0.12109375, 0.01025390625, 0.07861328125, 0.1201171875, 0.0654296875, 0.0478515625, 0.02880859375, 0.08251953125, 0.014404296875, 0.042724609375, 0.04345703125, 0.050048828125, 0.1201171875, 0.1826171875, 0.0184326171875, 0.1328125, 0.195...
9b4ee2be-24fa-5a2a-8bce-b5d18bb3d130
686,931
0
Title: Are curly brackets used in Lua? If curly brackets ('{' and '}') are used in Lua, what are they used for?
30
42
[ "lua" ]
[ "syntax", "lua" ]
{"accepted_answer_id":687622,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-03-26T18:07:07.773000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2026-05-26T18:20:53.923000+00:00","last_edit_date":null,"question_id":686931,"score":...
[ 0.027801513671875, 0.0011854171752929688, -0.0136566162109375, -0.00044727325439453125, 0.02886962890625, -0.032440185546875, -0.0110931396484375, 0.0008759498596191406, -0.0160980224609375, 0.003116607666015625, -0.00936126708984375, 0.0305328369140625, 0.015869140625, -0.0062026977539062...
[ 7, 11, 23, 100, 136, 538, 621, 1620, 1836, 2367, 3350, 4263, 8152, 9709, 11814, 15901, 24854, 27853, 48962 ]
[ 0.04931640625, 0.173828125, 0.052978515625, 0.08837890625, 0.08056640625, 0.16796875, 0.003173828125, 0.169921875, 0.01220703125, 0.053955078125, 0.1953125, 0.00390625, 0.080078125, 0.1904296875, 0.1279296875, 0.03955078125, 0.08154296875, 0.20703125, 0.019287109375 ]
724edc37-6ef3-5967-9b30-29e0cb3847a7
701,026
0
Title: Anyone got LunarEclipse to work with Eclipse 3.4.1? I spent a couple of hours yesterday trying to get LunarEclipse to work with Eclipse 3.4.1 and DLTK 1.0 I looked at some bug reports at their sourceforge project page and they said that their 1.2.9 version was supposed to work with DLTK1.0. Problem being they...
258
277
[ "lua" ]
[ "eclipse", "eclipse-plugin", "lua" ]
{"accepted_answer_id":702891,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-03-31T13:42:58.163000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-03-31T20:27:01.717000+00:00","last_edit_date":null,"question_id":701026,"score":...
[ 0.0117340087890625, -0.01012420654296875, -0.000027239322662353516, -0.023223876953125, 0.0278778076171875, -0.01268768310546875, -0.0091705322265625, 0.037628173828125, -0.00899505615234375, -0.040252685546875, -0.0140533447265625, 0.004138946533203125, 0.01751708984375, -0.00455474853515...
[ 4, 5, 6, 7, 10, 11, 13, 14, 18, 19, 28, 33, 42, 47, 70, 87, 98, 99, 100, 111, 136, 159, 184, 297, 429, 516, 647, 678, 707, 756, 959, 1031, 1126, 1284, 1295, 2046, 2363, 2472, 2837, 3350, 3403, 3630, 4163, 4171, 4488, 5608, 5...
[ 0.0078125, 0.0078125, 0.00732421875, 0.00732421875, 0.0078125, 0.1181640625, 0.0439453125, 0.008056640625, 0.06640625, 0.0888671875, 0.04345703125, 0.0087890625, 0.15234375, 0.046630859375, 0.007568359375, 0.008056640625, 0.00830078125, 0.0087890625, 0.025390625, 0.009033203125...
a39c96d6-c7b4-5f6e-8b1d-30e20417290a
710,253
0
Title: How to load all files from a directory? Like the title says; how do I load every file in a directory? I'm interested in both c++ and lua. Edit: For windows I'd be glad for some real working code and especially for lua. I can do with boost::filesystem for c++.
68
73
[ "c++", "lua" ]
[ "c++", "file", "input", "lua", "io" ]
{"accepted_answer_id":711462,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-04-02T15:35:21.427000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2012-04-05T14:03:58.567000+00:00","last_edit_date":"2009-04-02T15:51:20.407000+...
[ -0.01568603515625, -0.0037860870361328125, -0.0191802978515625, 0.00023186206817626953, 0.0266571044921875, -0.00826263427734375, 0.0143585205078125, 0.023895263671875, -0.0172576904296875, -0.007511138916015625, -0.0033626556396484375, -0.00875091552734375, 0.05718994140625, -0.0082015991...
[ 10, 23, 32, 47, 53, 54, 70, 87, 100, 501, 756, 1295, 2773, 3642, 9525, 11249, 11435, 11907, 14364, 16751, 18151, 18852, 20697, 27761, 29822, 37223, 48962, 54825, 60892, 72367, 97551, 102158 ]
[ 0.04736328125, 0.125, 0.00927734375, 0.095703125, 0.1171875, 0.07373046875, 0.000732421875, 0.072265625, 0.0179443359375, 0.006591796875, 0.2001953125, 0.1513671875, 0.0223388671875, 0.109375, 0.0257568359375, 0.103515625, 0.2109375, 0.2109375, 0.173828125, 0.1533203125, 0.10...
fb4e32b1-afd5-5c32-9e81-1e446145ba07
719,978
0
Title: Lua registry not visible from new states In a C function called from my Lua script, I'm using luaL_ref to store a reference to a function. However, if I then try to use the returned integer index to fetch that function from a different thread which isn't derived from the same state, all I get back is nil. Here'...
231
275
[ "lua" ]
[ "multithreading", "lua" ]
{"accepted_answer_id":720257,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-04-06T00:59:23.887000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-04-06T15:31:21.810000+00:00","last_edit_date":"2009-04-06T15:31:21.810000+00:00"...
[ 0.036712646484375, -0.005428314208984375, -0.01139068603515625, -0.026031494140625, 0.025787353515625, 0.00467681884765625, 0.0059356689453125, 0.007495880126953125, -0.0165557861328125, -0.0158233642578125, -0.00209808349609375, -0.0041961669921875, -0.0025177001953125, -0.005638122558593...
[ 11, 18, 53, 83, 118, 206, 304, 313, 339, 429, 653, 756, 866, 892, 959, 1295, 1505, 2046, 2663, 3350, 3525, 4343, 4420, 4488, 4527, 5333, 5701, 7177, 7647, 7964, 9790, 11341, 12921, 15400, 16406, 17203, 17324, 17368, 17721, 18151, 19888,...
[ 0.1767578125, 0.04833984375, 0.11328125, 0.0322265625, 0.024169921875, 0.04833984375, 0.12109375, 0.08056640625, 0.05078125, 0.0181884765625, 0.004638671875, 0.027099609375, 0.1630859375, 0.09912109375, 0.06884765625, 0.0250244140625, 0.07177734375, 0.03955078125, 0.0673828125, ...
8b114e2f-6d2f-5892-b9f1-dac503ada6c4
726,958
0
Title: Query Lua userdata type from C I have a Lua userdata object with a certain metatable type (e.g. "stackoverflow.test"). From C code, I want to be able to check exactly which type it is, and behave differently depending on the results. Is there a nice handy function (rather like luaL_checkudata, but without error...
175
199
[ "lua" ]
[ "types", "lua" ]
{"accepted_answer_id":733155,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-04-07T18:13:30.053000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-04-09T07:20:48.767000+00:00","last_edit_date":null,"question_id":726958,"score":...
[ 0.040283203125, -0.0165557861328125, 0.002399444580078125, -0.00470733642578125, -0.005035400390625, -0.01727294921875, -0.001918792724609375, 0.0197906494140625, -0.008758544921875, -0.01480865478515625, -0.00821685791015625, -0.00380706787109375, 0.01348876953125, -0.007556915283203125, ...
[ 11, 34, 41, 47, 53, 70, 83, 111, 186, 313, 442, 450, 454, 590, 866, 1294, 1295, 1660, 2174, 2594, 2809, 3129, 3350, 3444, 3535, 3794, 5465, 6954, 9351, 10135, 10644, 11814, 12765, 12921, 15490, 17306, 17368, 18151, 18499, 19048, 22819, ...
[ 0.169921875, 0.09765625, 0.1142578125, 0.04248046875, 0.107421875, 0.005615234375, 0.049560546875, 0.00439453125, 0.037841796875, 0.1455078125, 0.03564453125, 0.0194091796875, 0.0157470703125, 0.0216064453125, 0.142578125, 0.1162109375, 0.08203125, 0.050048828125, 0.000244140625,...
fadf014b-4449-59f0-b144-7a63a9d0cbb0
732,607
0
Title: What's with PCALL or is Wowwiki wrong? This is a WoW (World of Warcraft) lua script question. Not many of these get asked here but I have no where to turn and Stackoverflow is the programmer oasis for answers. Question: Wowwiki states that the 2nd, 3rd, 4th arguments are your calling functions 1st, 2nd, 3rd...
594
598
[ "lua" ]
[ "lua", "world-of-warcraft" ]
{"accepted_answer_id":734419,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-04-09T02:50:00.927000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2016-05-20T00:21:53.610000+00:00","last_edit_date":"2013-05-19T00:30:05.410000+00:00"...
[ -0.0024814605712890625, -0.0035724639892578125, 0.007266998291015625, -0.0067291259765625, 0.050933837890625, -0.034698486328125, 0.0211639404296875, 0.0212860107421875, -0.015899658203125, 0.00484466552734375, 0.00331878662109375, 0.0198516845703125, 0.021881103515625, 0.010162353515625, ...
[ 4, 7, 12, 18, 47, 92, 100, 106, 116, 138, 158, 190, 201, 209, 254, 271, 275, 418, 434, 571, 621, 678, 707, 738, 759, 837, 915, 927, 963, 1176, 1242, 1257, 1284, 1456, 1468, 2208, 3034, 3564, 3613, 4000, 4216, 4865, 5550, 6097, 6...
[ 0.0203857421875, 0.06689453125, 0.0732421875, 0.0228271484375, 0.1025390625, 0.06982421875, 0.004150390625, 0.044677734375, 0.1357421875, 0.1552734375, 0.05810546875, 0.1181640625, 0.1865234375, 0.140625, 0.0830078125, 0.0947265625, 0.103515625, 0.109375, 0.091796875, 0.0439453...
38f806d6-b290-553b-9cdf-b16046cde35f
743,684
0
Title: Best tool(s) for decompiling Lua bytecode? I am really having trouble finding a good working Lua bytecode decompiler. I'm trying to decompile some scripting files I found in a game but they appear to be compiled, yet don't seem impossible to decode. What's the best tool to decompile Lua binaries?
69
88
[ "lua" ]
[ "scripting", "lua", "bytecode", "decompiling" ]
{"accepted_answer_id":745374,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":"2012-08-30T00:51:26.927000+00:00","creation_date":"2009-04-13T11:53:47.800000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["lua"],"last_activity_date":"2012-01-05T18:28:58.923000+00:00","last_edit_date":null,...
[ 0.02044677734375, 0.0023040771484375, -0.01183319091796875, -0.019622802734375, 0.0236663818359375, -0.035186767578125, 0.01617431640625, 0.02081298828125, -0.035675048828125, -0.007965087890625, -0.0258026123046875, 0.01183319091796875, 0.02734375, -0.0279388427734375, 0.006065368652343...
[ 7, 8, 11, 47, 67, 100, 132, 214, 375, 390, 1284, 1340, 2965, 3350, 4127, 5974, 6183, 6712, 10484, 11345, 14037, 14373, 19441, 20697, 23035, 26499, 31577, 34759, 40899, 48903, 48962, 49725, 55516, 58875, 63134, 69201, 90791, 102158, 108975 ]
[ 0.001220703125, 0.14453125, 0.142578125, 0.004150390625, 0.1025390625, 0.03662109375, 0.000244140625, 0.001953125, 0.043701171875, 0.08642578125, 0.00048828125, 0.09130859375, 0.095703125, 0.16796875, 0.039794921875, 0.15234375, 0.047119140625, 0.052734375, 0.03662109375, 0.097...
29b0fa7e-b20a-5497-ab32-9ca96c3bcf8d
780,448
0
Title: Debugging embedded Lua How do you debug lua code embedded in a c++ application? From what I gather, either I need to buy a special IDE and link in their special lua runtime (ugh). Or I need to build a debug console in to the game engine, using the lua debug API calls. I am leaning toward writing my own debu...
101
115
[ "c++", "lua" ]
[ "c++", "debugging", "lua" ]
{"accepted_answer_id":784814,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-04-23T05:56:20.053000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2016-09-17T16:46:58.577000+00:00","last_edit_date":"2010-02-18T16:26:21.453000+...
[ 0.019927978515625, -0.0270843505859375, 0.007068634033203125, -0.0229034423828125, 0.0282745361328125, -0.03338623046875, 0.0204010009765625, 0.03912353515625, -0.0013494491577148438, 0.01079559326171875, -0.017059326171875, 0.005069732666015625, 0.038177490234375, 0.006591796875, -0.008...
[ 8, 11, 23, 47, 54, 111, 262, 398, 501, 978, 1884, 3126, 3350, 3789, 3871, 4488, 5361, 5809, 5915, 6032, 6712, 10002, 11249, 11522, 11675, 11782, 13492, 18151, 19055, 22113, 27761, 32562, 36497, 36659, 37202, 37223, 38415, 40101, 45367, 47...
[ 0.1845703125, 0.166015625, 0.04443359375, 0.0220947265625, 0.050048828125, 0.0146484375, 0.158203125, 0.033203125, 0.056396484375, 0.2294921875, 0.010009765625, 0.10546875, 0.1875, 0.005859375, 0.05322265625, 0.0177001953125, 0.0771484375, 0.006103515625, 0.0595703125, 0.033203...
9f08a4d4-1fc0-5c34-89cc-0b53073d2477
785,202
0
Title: Is there any way to programmatically determine in C/C++ how many parameters a Lua function expects? Is there a way to determine how many parameters a Lua function takes just before calling it from C/C++ code? I looked at lua_Debug and lua_getinfo but they don't appear to provide what I need. It may seem a b...
184
213
[ "c++", "lua" ]
[ "c++", "lua" ]
{"accepted_answer_id":null,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-04-24T09:43:39.723000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2012-08-12T13:45:13.990000+00:00","last_edit_date":null,"question_id":785202,"sc...
[ 0.00788116455078125, 0.0015821456909179688, -0.00377655029296875, -0.009429931640625, 0.025787353515625, -0.0322265625, 0.020538330078125, 0.0211334228515625, 0.0010967254638671875, 0.0022983551025390625, 0.0009069442749023438, 0.031768798828125, 0.020416259765625, -0.006923675537109375, ...
[ 7, 11, 18, 47, 64, 136, 173, 313, 441, 678, 1286, 1295, 1556, 1660, 1884, 2071, 2499, 2685, 2967, 3350, 3642, 3789, 3794, 3871, 3917, 4657, 5608, 5941, 6183, 7319, 8108, 10644, 10750, 11720, 11782, 12638, 12765, 14012, 14037, 17721, 181...
[ 0.07421875, 0.201171875, 0.0498046875, 0.051025390625, 0.1171875, 0.013671875, 0.10546875, 0.0830078125, 0.0264892578125, 0.035888671875, 0.1025390625, 0.06640625, 0.0194091796875, 0.004150390625, 0.0169677734375, 0.01416015625, 0.032470703125, 0.009521484375, 0.05810546875, 0....
23d99a82-ef45-5cee-9930-4ba654c2c42a
803,748
0
Title: A function expects a C++ object of abstract type A. How do I pass it a Lua object of an A subclass? I'd like to pass to a function expecting a C++ object of a pure virtual class a Lua object of a class that derives from the pure virtual C++ class. How can I do this? I'm new to lua and luabind so bear with me....
191
203
[ "c++", "lua" ]
[ "c++", "lua", "binding" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-04-29T18:57:14.733000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2009-04-30T16:38:19.800000+00:00","last_edit_date":"2009-04-30T16:38:19.800000+0...
[ 0.01506805419921875, 0.0225982666015625, 0.0265350341796875, -0.00824737548828125, 0.04876708984375, -0.0225982666015625, 0.0235595703125, 0.037078857421875, 0.01177978515625, -0.01326751708984375, 0.00469207763671875, 0.0151214599609375, -0.001651763916015625, -0.0224761962890625, -0.02...
[ 7, 10, 11, 12, 24, 31, 47, 54, 62, 71, 74, 87, 111, 122, 132, 136, 214, 284, 313, 360, 442, 678, 757, 759, 831, 903, 979, 1176, 1295, 1614, 1639, 1884, 2203, 2292, 2646, 3350, 3525, 3564, 3584, 4666, 4806, 5775, 10644, 11249, 11...
[ 0.052001953125, 0.177734375, 0.1865234375, 0.035888671875, 0.03076171875, 0.1572265625, 0.10107421875, 0.0859375, 0.19140625, 0.018310546875, 0.0181884765625, 0.04150390625, 0.07568359375, 0.044189453125, 0.036865234375, 0.00537109375, 0.099609375, 0.1904296875, 0.06591796875, ...
4beac1f4-84aa-5b22-b3ef-a435d30954ad
813,926
0
Title: Statically typed Lua I am looking for a Lua front-end compiler that is type-checked at compile time, but outputs standard Lua 5.1 byte-code (that has only run-time types). What I want is a decent amount of static, compile-time syntactic analysis and optional typing, to detect trivial errors sooner than run-time...
200
247
[ "lua" ]
[ "compiler-construction", "lua", "static-typing" ]
{"accepted_answer_id":814012,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-02T01:30:24.130000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2020-09-09T02:19:27.720000+00:00","last_edit_date":"2012-08-07T16:03:52.610000+00:00"...
[ 0.007793426513671875, -0.00148773193359375, -0.0111236572265625, -0.01023101806640625, 0.024871826171875, -0.029754638671875, 0.00672149658203125, 0.036163330078125, -0.003139495849609375, 0.0006361007690429688, -0.0257110595703125, 0.00556182861328125, 0.03570556640625, -0.022369384765625...
[ 10, 11, 67, 71, 83, 99, 100, 102, 110, 132, 186, 214, 277, 390, 509, 678, 686, 712, 765, 1284, 1340, 1733, 1884, 1913, 1927, 2091, 2499, 2806, 3350, 3444, 3611, 4734, 4865, 5570, 5915, 5974, 6002, 6032, 6044, 6528, 7086, 9969, 10644...
[ 0.011474609375, 0.1669921875, 0.119140625, 0.013671875, 0.007080078125, 0.002197265625, 0.05517578125, 0.1142578125, 0.03662109375, 0.07177734375, 0.011962890625, 0.07177734375, 0.009033203125, 0.119140625, 0.010498046875, 0.0189208984375, 0.060546875, 0.0250244140625, 0.02355957...
947f5cb8-bdd5-5335-9b0f-2df1835c0431
821,893
0
Title: Getting input with IUP in Lua I've been trying to get input with IUP to make a small pong game. I wanted to try some input, and tried some of the code that comes with the IUPGL examples, but the input doesn't seem to be working at all. Here's the code as it stands so far: require "iuplua" require "iupluagl" r...
463
502
[ "lua" ]
[ "lua", "iup" ]
{"accepted_answer_id":827496,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-04T20:27:30.200000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2012-12-12T17:01:36.380000+00:00","last_edit_date":"2012-12-12T17:01:36.380000+00:00"...
[ -0.0014848709106445312, -0.0003333091735839844, -0.0004222393035888672, 0.0018482208251953125, 0.01430511474609375, -0.04266357421875, 0.013153076171875, -0.0029850006103515625, 0.0153961181640625, 0.0007915496826171875, -0.01708984375, 0.0110931396484375, 0.0279998779296875, -0.0030612945...
[ 4, 5, 6, 7, 10, 11, 12, 13, 16, 17, 18, 20, 23, 25, 44, 47, 53, 56, 58, 70, 71, 83, 87, 92, 99, 112, 113, 132, 133, 147, 186, 191, 214, 237, 284, 304, 425, 434, 441, 442, 449, 454, 474, 501, 568, 569, 634, 647, 663, 67...
[ 0.010009765625, 0.010009765625, 0.01025390625, 0.01171875, 0.004150390625, 0.1865234375, 0.024169921875, 0.00927734375, 0.010498046875, 0.0703125, 0.140625, 0.04443359375, 0.087890625, 0.008544921875, 0.00244140625, 0.1025390625, 0.091796875, 0.010986328125, 0.01025390625, 0.00...
033fa15a-fe23-5211-852b-29d3a4a65038
829,063
0
Title: How to iterate individual characters in Lua string? I have a string in Lua and want to iterate individual characters in it. But no code I've tried works and the official manual only shows how to find and replace substrings :( str = "abcd" for char in str do -- error print( char ) end for i = 1, str:len() d...
95
97
[ "lua" ]
[ "lua" ]
{"accepted_answer_id":832414,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-06T10:55:36.657000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2024-03-18T19:25:47.880000+00:00","last_edit_date":"2019-01-30T02:54:03.677000+00:00"...
[ -0.00510406494140625, -0.00977325439453125, 0.00029969215393066406, -0.015869140625, 0.01334381103515625, -0.037139892578125, -0.0079345703125, -0.0086669921875, -0.0148773193359375, 0.0063629150390625, 0.0013608932495117188, -0.007717132568359375, 0.00020563602447509766, -0.02435302734375...
[ 11, 17, 23, 47, 54, 67, 100, 106, 110, 442, 1614, 1977, 2055, 2203, 3350, 3444, 3564, 3642, 4734, 4966, 7413, 7704, 8560, 11249, 11651, 17324, 18151, 18499, 21441, 23009, 28412, 31124, 37842, 43240, 45831, 48962, 51521, 71574, 79315, 9169...
[ 0.171875, 0.115234375, 0.07177734375, 0.05712890625, 0.037353515625, 0.1328125, 0.028564453125, 0.060546875, 0.08251953125, 0.021484375, 0.13671875, 0.0986328125, 0.064453125, 0.046630859375, 0.1982421875, 0.06005859375, 0.099609375, 0.049560546875, 0.00537109375, 0.00952148437...
eb7863c5-be45-56c9-b136-c94ace828a31
831,531
0
Title: Asynchronous input in Lua In a related question I asked how to get input via IUP. This works fine, except that it goes through the system, and is subject to the repreat rate which is not optimal for a game. What I would really like is the ability to obtain the current state of any key at a given time. Is there ...
87
91
[ "lua" ]
[ "asynchronous", "input", "lua" ]
{"accepted_answer_id":832362,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-06T20:16:36.293000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-05-07T00:05:38.800000+00:00","last_edit_date":"2017-05-23T12:20:37.303000+00:00"...
[ 0.0067291259765625, -0.00652313232421875, -0.019805908203125, -0.002758026123046875, 0.0129241943359375, -0.041259765625, -0.0010080337524414062, 0.00334930419921875, 0.00794219970703125, 0.002593994140625, -0.040557861328125, 0.010498046875, 0.0419921875, -0.0087127685546875, 0.00349807...
[ 10, 11, 18, 23, 47, 54, 62, 70, 83, 87, 111, 903, 959, 1283, 1733, 1829, 1884, 2046, 2499, 2806, 3350, 3642, 3917, 4865, 5426, 5885, 6183, 6712, 8305, 9655, 10821, 10958, 11341, 12654, 18409, 22799, 24087, 28368, 34475, 34515, 37170, ...
[ 0.0194091796875, 0.1689453125, 0.01513671875, 0.0238037109375, 0.044921875, 0.0693359375, 0.010498046875, 0.021728515625, 0.010986328125, 0.0986328125, 0.013427734375, 0.060302734375, 0.0361328125, 0.1025390625, 0.134765625, 0.134765625, 0.16015625, 0.125, 0.052734375, 0.114257...
3418a54f-7b59-59da-aaf7-633d39b3290e
833,257
0
Title: Controlling Lua5.1's garbage collector OK so I have a C++ class that is exposed to Lua using SWIG. The script creates the object but a manager class also has a pointer to the object so it can be modified in C++(or another script) for whatever reason. The problem is that when the script finishes the object is ...
228
260
[ "c++", "lua" ]
[ "c++", "garbage-collection", "lua" ]
{"accepted_answer_id":837204,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-07T07:07:18.553000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2009-05-07T22:18:39.907000+00:00","last_edit_date":"2009-05-07T22:18:39.907000+...
[ 0.031768798828125, 0.006072998046875, 0.018768310546875, -0.0071563720703125, -0.004241943359375, -0.018890380859375, -0.01371002197265625, 0.018157958984375, -0.0090789794921875, -0.0197296142578125, -0.0052032470703125, -0.00980377197265625, 0.00884246826171875, -0.002857208251953125, ...
[ 11, 56, 70, 71, 170, 313, 402, 429, 678, 748, 831, 995, 1928, 2069, 2367, 2967, 3229, 3350, 3545, 3642, 3671, 3994, 4092, 6226, 6275, 6389, 7352, 7870, 9351, 12662, 15490, 17203, 17306, 18507, 22109, 23550, 26499, 27131, 27781, 28282, 2...
[ 0.1396484375, 0.043212890625, 0.007080078125, 0.005615234375, 0.08642578125, 0.03173828125, 0.1962890625, 0.1103515625, 0.0625, 0.1279296875, 0.00927734375, 0.06982421875, 0.08984375, 0.045166015625, 0.013671875, 0.099609375, 0.002197265625, 0.171875, 0.1103515625, 0.0070800781...
c413d293-3d25-58d3-84a8-32fd9a4e22e3
837,772
0
Title: How do I pass a list of objects from C++ to Lua? I'm the lead dev for Bitfighter, and am adding user-scripted bots using Lua. I'm working with C++ and Lua using Lunar to glue them together. I'm trying to do something that I think should be pretty simple: I have an C++ object in Lua (bot in the code below), an...
677
789
[ "c++", "lua" ]
[ "c++", "object", "lua" ]
{"accepted_answer_id":840468,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-08T00:54:15.633000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2009-05-12T08:23:29.630000+00:00","last_edit_date":"2009-05-08T03:11:26.070000+...
[ 0.0024204254150390625, 0.0065460205078125, 0.01189422607421875, 0.007442474365234375, 0.0167388916015625, -0.033233642578125, 0.0028247833251953125, 0.0065765380859375, 0.0011358261108398438, -0.0028553009033203125, 0.0285797119140625, -0.003093719482421875, 0.0271453857421875, 0.013092041...
[ 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 16, 17, 18, 23, 25, 27, 32, 38, 42, 44, 47, 54, 67, 70, 74, 83, 87, 98, 100, 111, 132, 136, 158, 159, 186, 209, 238, 247, 248, 268, 271, 272, 297, 313, 442, 444, 450, 454, 568, 642, ...
[ 0.029541015625, 0.030029296875, 0.02978515625, 0.056640625, 0.02783203125, 0.0302734375, 0.19140625, 0.02978515625, 0.02978515625, 0.02880859375, 0.030029296875, 0.04296875, 0.030029296875, 0.15234375, 0.0291748046875, 0.042236328125, 0.0189208984375, 0.005615234375, 0.0815429687...
a6afb563-92cf-5b98-8ee4-8bbfde6354dd
854,436
0
Title: Tweening a value in Lua How'd I go about this one? I want to tween a value from one to another in x time. While also taking into account that it'd be nice to have an 'ease' at the start and end. I know, I shouldn't ask really, but I've tried myself, and I'm stuck. Please assume that to cause a delay, you need...
92
101
[ "lua" ]
[ "variables", "loops", "lua", "interpolation" ]
{"accepted_answer_id":857791,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-12T19:27:05.913000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2011-12-26T04:56:25.167000+00:00","last_edit_date":"2011-12-26T04:56:25.167000+00:00"...
[ 0.035797119140625, 0.006561279296875, 0.00348663330078125, -0.013946533203125, 0.03839111328125, -0.015777587890625, -0.00511932373046875, 0.023193359375, -0.0137176513671875, -0.006504058837890625, 0.0301361083984375, 0.02294921875, 0.006740570068359375, -0.03460693359375, -0.0001342296...
[ 8, 10, 11, 13, 19, 23, 47, 132, 592, 738, 903, 1022, 1295, 1632, 1672, 1733, 3350, 3444, 3564, 3871, 4034, 5259, 5608, 6032, 6991, 8072, 11782, 15426, 15700, 22304, 26267, 26458, 32354, 34292, 35978, 37842, 40485, 41591, 48962, 107571, ...
[ 0.15234375, 0.0198974609375, 0.154296875, 0.045166015625, 0.208984375, 0.043212890625, 0.11328125, 0.0419921875, 0.1611328125, 0.013427734375, 0.000732421875, 0.06103515625, 0.12890625, 0.056640625, 0.0732421875, 0.146484375, 0.1787109375, 0.109375, 0.0615234375, 0.01171875, ...
9e19f196-5000-5bba-b998-1636bf37a6fe
862,256
0
Title: How can I end a Lua thread cleanly? My situation is that I'm using the Lua (C) API to execute a script held in a string. I would like the user to be able to terminate the execution of the script (this is essential if the script contains an infinite loop), how can I do this? lua_State *Lua = lua_open(); char *...
94
110
[ "c++", "lua" ]
[ "c++", "multithreading", "scripting", "lua", "terminate" ]
{"accepted_answer_id":862647,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-14T08:45:50.493000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2009-05-15T15:27:25.260000+00:00","last_edit_date":null,"question_id":862256,"s...
[ 0.0218963623046875, 0.0141448974609375, 0.0007104873657226562, 0.007694244384765625, 0.0194091796875, -0.039764404296875, 0.0026340484619140625, 0.0092315673828125, -0.01242828369140625, -0.0310211181640625, 0.0006585121154785156, 0.004528045654296875, 0.0131378173828125, -0.027587890625, ...
[ 11, 13, 23, 47, 54, 87, 246, 289, 360, 441, 538, 831, 866, 903, 1830, 1884, 1890, 2203, 2806, 3350, 3564, 3642, 11249, 15032, 16648, 17368, 18151, 19048, 21086, 21441, 26499, 27761, 34658, 38937, 40956, 46622, 48962, 54241, 59636, 61687, ...
[ 0.173828125, 0.1640625, 0.0211181640625, 0.12890625, 0.039794921875, 0.0380859375, 0.10107421875, 0.04150390625, 0.033935546875, 0.072265625, 0.111328125, 0.0634765625, 0.0986328125, 0.01171875, 0.03857421875, 0.0908203125, 0.06298828125, 0.004638671875, 0.035400390625, 0.17675...
1b2d8706-7570-53e1-838f-b988d274a390
866,266
0
Title: statically analysing Lua code for potential errors I'm using a closed-source application that loads Lua scripts and allows some customization through modifying these scripts. Unfortunately that application is not very good at generating useful log output (all I get is 'script failed') if something goes wrong in...
226
249
[ "lua" ]
[ "lua", "code-analysis", "static-analysis" ]
{"accepted_answer_id":866366,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-14T22:48:37.050000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2021-04-08T15:37:35.567000+00:00","last_edit_date":null,"question_id":866266,"score":...
[ 0.024688720703125, 0.0007791519165039062, -0.0189666748046875, -0.00787353515625, 0.0215911865234375, -0.01120758056640625, 0.0208740234375, 0.022308349609375, -0.0238494873046875, -0.0197906494140625, -0.035064697265625, 0.0177764892578125, 0.0213470458984375, -0.0108489990234375, -0.02...
[ 10, 11, 53, 100, 214, 275, 592, 822, 831, 876, 959, 1236, 1543, 1631, 1672, 1779, 1884, 2174, 2684, 2806, 2811, 3350, 4000, 4127, 4552, 6044, 6183, 6977, 7464, 7968, 8305, 8966, 9844, 11814, 12663, 12684, 13254, 16487, 17368, 18151, 184...
[ 0.03466796875, 0.162109375, 0.0869140625, 0.0791015625, 0.0634765625, 0.0888671875, 0.0888671875, 0.1552734375, 0.009765625, 0.1259765625, 0.146484375, 0.0810546875, 0.1318359375, 0.162109375, 0.0250244140625, 0.056640625, 0.019775390625, 0.0157470703125, 0.03125, 0.0302734375,...
9556bc43-3d30-50e3-83a5-9447c49d1638
866,362
0
Title: Lua, C++, and poor man's subclassing I'm lead dev for Bitfighter, and we're working with a mix of Lua and C++, using Lunar (a variant of Luna, available here) to bind them together. I know this environment does not have good support for object orientation and inheritance, but I'd like to find some way to at ...
888
1,022
[ "c++", "lua" ]
[ "c++", "oop", "lua" ]
{"accepted_answer_id":866461,"answer_count":4,"chunk_count":2,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-14T23:23:03.847000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2013-04-09T13:28:32.517000+00:00","last_edit_date":"2009-05-26T21:31:26.123000+...
[ 0.006809234619140625, 0.02545166015625, 0.0165557861328125, 0, 0.0226898193359375, -0.0261688232421875, 0.006092071533203125, 0.0364990234375, 0.0213623046875, -0.0218505859375, -0.004772186279296875, 0.01206207275390625, 0.0030002593994140625, -0.0142822265625, -0.0208892822265625, 0....
[ 4, 5, 6, 7, 10, 11, 12, 13, 15, 16, 18, 21, 23, 24, 25, 27, 34, 38, 39, 42, 47, 53, 56, 64, 70, 71, 74, 75, 83, 87, 90, 98, 99, 100, 106, 107, 111, 127, 132, 133, 136, 142, 143, 159, 214, 217, 221, 238, 254, 257, 272...
[ 0.0361328125, 0.03271484375, 0.032958984375, 0.099609375, 0.03369140625, 0.177734375, 0.0341796875, 0.033203125, 0.033203125, 0.033935546875, 0.035400390625, 0.033203125, 0.033447265625, 0.0029296875, 0.0341796875, 0.004150390625, 0.134765625, 0.052734375, 0.033203125, 0.171875...
afeb3c9b-fd02-5548-b8d9-ed9d1db87f30
866,362
1
Title: Lua, C++, and poor man's subclassing is a Rock. If so, everything is peachy, and it returns a pointer to my Rock object, which gets passed back to the getFiringSolution() method. If there is a non-Rock item on the stack, the cast returns null, and luaL_typerror() gets called, which sends the app off into lala ...
792
862
[ "c++", "lua" ]
[ "c++", "oop", "lua" ]
{"accepted_answer_id":866461,"answer_count":4,"chunk_count":2,"chunk_index":1,"closed_date":null,"creation_date":"2009-05-14T23:23:03.847000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2013-04-09T13:28:32.517000+00:00","last_edit_date":"2009-05-26T21:31:26.123000+...
[ 0.00933837890625, 0.032562255859375, 0.0116729736328125, 0.0084991455078125, 0.0275421142578125, -0.0295867919921875, -0.0010328292846679688, 0.0294647216796875, 0.0118560791015625, -0.007007598876953125, 0.00359344482421875, 0.00814056396484375, 0.00664520263671875, -0.00359344482421875, ...
[ 4, 6, 7, 10, 11, 12, 13, 15, 16, 18, 21, 23, 25, 27, 34, 38, 42, 47, 53, 54, 56, 58, 67, 70, 71, 74, 75, 83, 87, 90, 98, 100, 106, 107, 111, 116, 132, 133, 136, 142, 143, 159, 214, 221, 237, 257, 272, 294, 313, 332, ...
[ 0.015380859375, 0.01513671875, 0.0150146484375, 0.0145263671875, 0.2109375, 0.0150146484375, 0.0150146484375, 0.013916015625, 0.0150146484375, 0.0140380859375, 0.042724609375, 0.013916015625, 0.0150146484375, 0.009033203125, 0.1044921875, 0.026611328125, 0.0142822265625, 0.01513671...
57cb36a2-2604-5f01-87d1-cb7667686a7a
881,445
0
Title: Easiest way to parse a Lua datastructure in C# / .Net Anyone know of an easy way to parse a Lua datastructure in C# or with any .Net library? This would be similar to JSON decoding, except for Lua instead of javascript. At this point it looks like I'll need to write my own, but hoping there's something alread...
82
94
[ "c#", "lua" ]
[ "c#", "parsing", "lua" ]
{"accepted_answer_id":890344,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-19T07:47:16.840000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","lua"],"last_activity_date":"2014-11-30T22:50:47.263000+00:00","last_edit_date":"2009-05-20T07:27:54.580000+0...
[ 0.01043701171875, 0.006359100341796875, -0.030242919921875, -0.015594482421875, 0.01367950439453125, -0.03118896484375, 0.0096588134765625, 0.0237579345703125, -0.01739501953125, -0.0061187744140625, -0.0163116455078125, -0.01464080810546875, 0.0233917236328125, -0.0276031494140625, 0.00...
[ 5, 8, 11, 23, 32, 47, 111, 184, 186, 241, 248, 313, 366, 525, 587, 678, 821, 1284, 1294, 1544, 1884, 2053, 2499, 2685, 2806, 3350, 3630, 3714, 3871, 3917, 4904, 6238, 6275, 9844, 10002, 21373, 21771, 23468, 24447, 33022, 33342, 35773,...
[ 0.0380859375, 0.1533203125, 0.232421875, 0.08154296875, 0.00341796875, 0.0322265625, 0.00732421875, 0.181640625, 0.039794921875, 0.046630859375, 0.043212890625, 0.06640625, 0.1845703125, 0.0654296875, 0.16015625, 0.0498046875, 0.12109375, 0.0009765625, 0.0087890625, 0.149414062...
7130c593-5a1d-558b-9b9e-2cd99d190a8b
882,764
0
Title: Embedding Rake in a C++ app? Or is there a Lake for LUA? I've found a couple of questions about embedding Ruby in a C++ app. Almost all of the top-voted answers suggest using Lua instead. Given that a project I have in mind would be better served by the grammar already expressed in Rake (it's a rules engine),...
146
168
[ "c++", "lua", "ruby" ]
[ "c++", "ruby", "lua", "rake" ]
{"accepted_answer_id":890318,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-19T13:29:59.880000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua","ruby"],"last_activity_date":"2011-06-29T21:30:20.400000+00:00","last_edit_date":null,"question_id":88...
[ 0.00460052490234375, -0.004390716552734375, 0.00800323486328125, -0.005046844482421875, 0.03369140625, -0.046356201171875, 0.002777099609375, 0.029266357421875, -0.01212310791015625, -0.00943756103515625, -0.0157623291015625, 0.0117645263671875, 0.051605224609375, 0.01074981689453125, 0....
[ 10, 11, 13, 23, 100, 107, 147, 313, 339, 352, 372, 479, 2174, 2775, 3059, 3181, 3350, 3444, 3917, 4027, 5062, 5608, 7086, 7722, 8345, 11522, 11787, 13452, 13482, 15970, 17306, 17368, 20004, 20187, 21010, 21771, 23468, 36510, 37223, 42459,...
[ 0.00537109375, 0.193359375, 0.2373046875, 0.050048828125, 0.04541015625, 0.0078125, 0.05908203125, 0.05859375, 0.083984375, 0.134765625, 0.2177734375, 0.04150390625, 0.03271484375, 0.123046875, 0.05908203125, 0.0869140625, 0.1904296875, 0.04052734375, 0.0185546875, 0.1953125, ...
dea00560-6be7-5783-a897-c256233c8508
884,435
0
Title: Pass variables between C++ and Lua via Swig I'm working on a C++ project with a large number of classes (150+), each of which has anywhere from 10 to 300 fields or so. I would really like to be able to provide a scripting interface for testing purposes so that I can code callbacks that don't require any re-comp...
329
353
[ "c++", "lua" ]
[ "c++", "scripting", "lua", "embed", "swig" ]
{"accepted_answer_id":884473,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-19T18:55:47.237000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c++","lua"],"last_activity_date":"2010-03-07T22:12:47.507000+00:00","last_edit_date":null,"question_id":884435,"s...
[ -0.00415802001953125, 0.0254364013671875, 0.0159149169921875, 0.0006403923034667969, 0.00783538818359375, -0.02435302734375, 0.0206146240234375, 0.0142822265625, -0.0032253265380859375, -0.016387939453125, 0.0072021484375, 0.01018524169921875, 0.00994873046875, -0.0016574859619140625, 0....
[ 7, 11, 23, 47, 100, 136, 159, 209, 214, 313, 456, 1286, 1295, 1829, 1884, 2053, 2668, 2806, 3350, 3444, 3535, 3638, 3642, 3714, 4358, 4420, 4527, 5316, 5773, 5974, 6183, 6626, 7722, 9655, 10336, 11389, 11782, 11814, 12008, 12620, 12638,...
[ 0.0157470703125, 0.2041015625, 0.045654296875, 0.080078125, 0.041748046875, 0.10546875, 0.11328125, 0.05224609375, 0.0218505859375, 0.0888671875, 0.044677734375, 0.004638671875, 0.0439453125, 0.111328125, 0.08935546875, 0.173828125, 0.1201171875, 0.0172119140625, 0.2138671875, ...
fd73ff5e-8910-5288-89f2-eb88ba2156e9
897,930
0
Title: how to get the closure in lua? suppose i have a file name "test.lua" containing lines below: --[[ test.lua --]] local f = function() print"local function f in test.lua" end f_generate = function() local fun = loadstring(" f()") -- local env = getfenv(1) -- set(fun,env) return fun end f_generate()() --...
199
223
[ "lua" ]
[ "lua", "closures" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-22T13:47:40.757000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-08-24T02:58:36.347000+00:00","last_edit_date":"2009-05-22T13:52:11.447000+00:00",...
[ -0.004791259765625, -0.00634765625, 0.0022296905517578125, -0.0196380615234375, 0.0316162109375, -0.034027099609375, 0.0243072509765625, 0.0323486328125, -0.038330078125, 0.0022907257080078125, -0.007965087890625, -0.0118560791015625, 0.01071929931640625, -0.02874755859375, -0.0082626342...
[ 6, 11, 18, 22, 23, 33, 47, 67, 70, 83, 334, 390, 420, 442, 822, 831, 1238, 1379, 2046, 2053, 2203, 2967, 3034, 3564, 3642, 4000, 4734, 5423, 6211, 6863, 6954, 7477, 7964, 11435, 11782, 16498, 17324, 18151, 18499, 20594, 23180, 27761, ...
[ 0.0908203125, 0.1669921875, 0.0380859375, 0.042236328125, 0.07568359375, 0.02783203125, 0.031494140625, 0.0625, 0.09326171875, 0.00244140625, 0.15234375, 0.03955078125, 0.1337890625, 0.061279296875, 0.1728515625, 0.034423828125, 0.130859375, 0.0869140625, 0.1396484375, 0.064453...
766d8fb0-3be9-571a-8fef-0794bb9c7f24
900,098
0
Title: luaopen_my_example undefined after compiling swig wrapper I'm just now diving into SWIG as a means for creating Lua bindings, and I've hit a snag. I made my interface file and built a shared object file from it all without any problems. However, when I run Lua and try to require the shared object, I get the fol...
224
264
[ "lua" ]
[ "lua", "wrapper", "swig" ]
{"accepted_answer_id":null,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-22T21:36:25.217000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-05-26T14:15:43.443000+00:00","last_edit_date":"2009-05-22T21:45:47.270000+00:00",...
[ -0.003597259521484375, -0.0018815994262695312, 0.01157379150390625, -0.0191802978515625, 0.01216888427734375, -0.0109100341796875, 0.0043182373046875, 0.0263824462890625, -0.01505279541015625, -0.00899505615234375, -0.00212860107421875, 0.0004010200500488281, -0.00827789306640625, -0.00734...
[ 11, 31, 91, 177, 441, 756, 991, 1176, 1264, 1295, 1478, 1892, 2046, 2685, 3035, 3181, 3229, 3350, 3355, 4189, 4989, 5201, 5962, 5983, 6138, 6496, 7103, 7839, 9232, 9790, 9969, 10366, 11435, 11675, 12620, 13211, 16648, 16854, 18499, 18507,...
[ 0.2255859375, 0.01708984375, 0.08203125, 0.035888671875, 0.02783203125, 0.007080078125, 0.1083984375, 0.162109375, 0.11328125, 0.0157470703125, 0.0673828125, 0.1376953125, 0.026611328125, 0.0242919921875, 0.154296875, 0.212890625, 0.00048828125, 0.205078125, 0.205078125, 0.1123...
f11f4907-4a7f-5f14-a3e8-ede776cc08da
911,632
0
Title: (SWIG / Lua) How to access the list of base / parent classes in swig_lua_class I notice that in the generated SWIG wrappers for a given set of classes, SWIG keeps a list of C-string representations of all the parent classes from which that class inherits. (char ** base_names). I know there is a function swig_...
144
161
[ "lua" ]
[ "inheritance", "types", "lua", "parent", "swig" ]
{"accepted_answer_id":911759,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-26T16:42:36.253000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["lua"],"last_activity_date":"2009-05-26T17:42:00.953000+00:00","last_edit_date":"2009-05-26T17:42:00.953000+00:00"...
[ -0.0191192626953125, -0.00980377197265625, 0.02093505859375, -0.00839996337890625, 0.01277923583984375, -0.0450439453125, 0.0270233154296875, -0.0019397735595703125, 0.0011034011840820312, -0.0062713623046875, -0.0191192626953125, 0.02178955078125, 0.004596710205078125, -0.0041389465332031...
[ 9, 11, 23, 47, 70, 91, 111, 237, 248, 313, 756, 822, 959, 1221, 2053, 2886, 3334, 3350, 3647, 3714, 5256, 5303, 5423, 9254, 10644, 11249, 11627, 13695, 14481, 16031, 16459, 17203, 18507, 18811, 20697, 21690, 21777, 23180, 23468, 30646, ...
[ 0.03076171875, 0.1240234375, 0.007568359375, 0.036376953125, 0.05419921875, 0.091796875, 0.04248046875, 0.0478515625, 0.053466796875, 0.0859375, 0.029296875, 0.138671875, 0.00146484375, 0.008544921875, 0.1083984375, 0.04443359375, 0.115234375, 0.12109375, 0.2041015625, 0.000244...
76214035-484b-5052-b89e-b32c0f944166
916,555
0
Title: Swig bindings for python/lua do not initialize member data properly I'm trying to build a set of Lua bindings for a collection of C++ classes, but have been toying with Python to see if I get better results. In either language the bindings seem to work, however, when I initialize an instance of a class that con...
310
344
[ "lua", "python" ]
[ "python", "lua", "swig", "initialization" ]
{"accepted_answer_id":1014169,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":"2012-11-28T04:52:43.950000+00:00","creation_date":"2009-05-27T15:55:27.957000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["lua","python"],"last_activity_date":"2009-06-18T17:46:04.517000+00:00","last_edit_d...
[ 0.0135955810546875, 0.0174407958984375, 0.006465911865234375, -0.02130126953125, 0.03704833984375, -0.022857666015625, 0.0204620361328125, 0.008544921875, -0.00634765625, -0.0285186767578125, 0.0081787109375, 0.01203155517578125, -0.0001569986343383789, -0.01184844970703125, 0.0014667510...
[ 7, 11, 23, 47, 53, 64, 100, 111, 159, 285, 425, 670, 765, 822, 959, 1810, 1884, 1961, 2053, 2646, 2773, 3350, 3789, 3835, 4331, 4488, 4734, 5402, 6652, 9023, 9319, 9790, 10382, 11522, 11627, 11782, 13482, 15400, 15673, 17198, 18507, 1...
[ 0.0654296875, 0.154296875, 0.0087890625, 0.038818359375, 0.037841796875, 0.009033203125, 0.03759765625, 0.013427734375, 0.0712890625, 0.138671875, 0.044677734375, 0.00732421875, 0.0009765625, 0.1484375, 0.060302734375, 0.06640625, 0.0244140625, 0.126953125, 0.16015625, 0.102539...
f33baa93-39b1-5579-ad4f-1d94202fe728
919,045
0
Title: if i like Ruby a lot, is there a reason I should learn another language now, such as Lua or Erlang? if i like Ruby a lot, is there a reason I should learn another language now, such as Lua or Erlang?
54
56
[ "erlang", "lua", "ruby" ]
[ "ruby", "erlang", "lua" ]
{"accepted_answer_id":919055,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2009-05-28T03:29:30.940000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["erlang","lua","ruby"],"last_activity_date":"2009-05-29T04:00:58.103000+00:00","last_edit_date":"2009-05-28T06:30:...
[ 0.0214080810546875, -0.0211639404296875, -0.0211639404296875, -0.0016908645629882812, 0.041351318359375, -0.032958984375, -0.0108184814453125, 0.01364898681640625, -0.021759033203125, -0.0033817291259765625, -0.037506103515625, 0.022247314453125, 0.043060302734375, -0.0017137527465820312, ...
[ 10, 11, 17, 83, 1004, 1884, 2174, 3066, 3350, 5036, 5608, 5915, 15700, 30698, 31635, 46876, 48962, 158189 ]
[ 0.00341796875, 0.1396484375, 0.02685546875, 0.0322265625, 0.115234375, 0.18359375, 0.0869140625, 0.2431640625, 0.1533203125, 0.083984375, 0.0810546875, 0.1552734375, 0.119140625, 0.130859375, 0.1279296875, 0.2216796875, 0.050048828125, 0.2890625 ]