lambda_abstraction

u/lambda_abstraction


r/lua•

If I understand correctly, collectgarbage 'count' gives the amount of allocated memory at the time of invocation. Is there a way in standard Lua/LuaJIT to determine the total memory including that previously collected at the time of invocation? That is, is there a way without modifying Lua itself to determine/benchmark how allocation heavy a piece of code is over a particular run? I'm thinking of something like get-bytes-consed from the SBCL Lisp implementation. Something similar to *gc-run-time* might be nice too.

36

r/lua•

While tables provide a dictionary (hash), Lua doesn't have, outside of explicit sort, ordered lists. I'm curious what conventional best practice for this problem. Red//Black, AVL, or B trees? Haul in an in-memory DB library such as SQLite and eat the overhead of SQL queries?

What does the wisdom of the crowd say here?

921


r/lua•

As an occasional browser of this subreddit, I see a lot of eternal September style questions. And it seems there aren't many high quality materials on Lua directed at the complete beginner. I don't count PIL; I feel that without a good mentor, there are just too many prerequisites to consider that book for complete tyros. This brings me to the question, where are the reputable schools aside from PUC that teach a Lua dialect as part of their CS curriculum? To be clear, I'm not sure even PUC does this, but it's the most likely candidate I think.

79

r/lua•

As an occasional browser of this subreddit, I see a lot of eternal September style questions. And it seems there aren't many high quality materials on Lua directed at the complete beginner. I don't count PIL; I feel that without a good mentor, there are just too many prerequisites to consider that book for complete tyros. This brings me to the question, where are the reputable schools aside from PUC that teach a Lua dialect as part of their CS curriculum? To be clear, I'm not sure even PUC does this, but it's the most likely candidate I think.

10

r/HotPeppers•

This subreddit helped me identify my yellow fatalii recently, and its offspring are doing well. I'm more here for the flavor than the scovilles, and though it's too late to start this year, I am interested in the Bahamian goat pepper for next season. What are the most reliable sources for seeds for this variety? Thanks much!

17

r/linuxquestions•

I'm fiddling around with some software that authenticates via PAM, Here's something that strikes me as strange: if my conversation function return a PAM_CONV_ERR from at "login:" I receive the same error from pam_authenticate(), on the other hand if I return it from "Password: " pam_authenticate() returns PAM_AUTHTOK_ERR. For this application, there are circumstances where I want to break out of a conversation cleanly, and this discrepancy has me a bit worried. Any clue for me on why I get different errors for each. Also, I can resume the conversation if the password is wrong, but not if I return the error at "Login:". Needless to say, as someone who hasn't written PAM things before, I'

40