Notices tagged with lua
-
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Wednesday, 04-Jan-2023 04:41:37 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} https://thesephist.com/posts/lua/
"Interesting things about the Lua interpreter"
#Lua -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Wednesday, 01-Jun-2022 13:03:32 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} > ... a tab that's been open since 2019 ...
I have some long term tabs, but other than social, I don't think any date back a year or more. I occasionally look through and close anything that is no longer of active interest.
For example, I was doing some minor project in #Lua, so I had about five tabs open to language related pages. Then I flew to NJ & NY and had no time for it, so the next time I logged in, I closed all those tabs.In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Thursday, 27-May-2021 00:45:22 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} So it appears that #lua has bifurcated. There are channels on both Freenode and LiberaChat. #elixir-lang found their Freenode channel seized and re-topic'ed, so they have moved to LC. In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Tuesday, 25-May-2021 18:03:32 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Oh, and #lua appears to be on both Freenode and Libera. I don't know whether they are both official, but some of the same names are in both. In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Friday, 29-Jan-2021 02:49:46 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Also, #Lua for Windows, a batteries included distribution of Lua, has gone unmaintained ... apparently since 2018. In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Friday, 25-Dec-2020 04:12:49 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Watching Abdullah playing Yooka-Laylee ... https://twitch.tv/triggerofsol
I should be doing a little #Lua or #Nim, but I'm honestly just wanting to have some guilt-free relaxation.In conversation from nu.federati.net permalink Attachments
-
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Monday, 19-Oct-2020 18:27:49 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Today is actually #Lua and #PHP, but here’s a list of #Ocaml resources: https://ocamlverse.github.io/content/learning.html In conversation from nu.federati.net permalink Attachments
-
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Tuesday, 04-Aug-2020 07:49:55 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} #Roblox introduces #Luau, its near-JIT interpreter for #Lua. The interp requires the Roblox engine. The language differs a little from regular Lua. https://roblox.github.io/luau/ In conversation from nu.federati.net permalink Attachments
-
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Monday, 27-Jul-2020 23:54:30 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} if filehandle ~= nil then
return filehandle
end
return false
This has been working okay, but I think
if filehandle ~= nil then
return filehandle, true
else
return nil, false
end
will more directly say what I mean. I need to read a little more to figure out which is more "idiomatic" for the language. (Or maybe ask @amic, who has used the language more than I have.)
#LuaIn conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Sunday, 24-May-2020 03:27:46 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Serializing #Lua tables: https://www.lua.org/pil/12.1.1.html
This feels weird to me. Maybe because Lua is generally embedded inside of a game, where the script need not concern itself about saving its data to a file.In conversation from nu.federati.net permalink Attachments
-
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Sunday, 10-May-2020 23:47:28 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Sometimes, just using a web browser and search engine is better than hours of reading docs and tutorials. The answer is right there. #Lua In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Sunday, 12-Apr-2020 17:23:31 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Good morning and #TZAG. Today is #Resurrection Sunday ("Easter"). He is risen!
Stayed up way too late messing around with #Lua last night, so I'm both late and tired. It is a warm, sunny day in #SoCal.In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Thursday, 02-Apr-2020 03:03:25 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} At a previous job, he had to script some equipment with a custom BASIC-like language and a little bit of #Lua. In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Monday, 23-Mar-2020 15:21:42 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Good morning and #TZAG. I’m almost finished with today’s #YoCo ( #yogurt and #coffee ). Plans today include job searching, working on my toy project (part of learning #Lua; I’m also going to do another version of it to revive my !TclTk knowledge and possibly a 3rd version in another language), and removing some of the weeds growing in the yard.
I also need to visit the stores to see whether TP supplies have come in.In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Friday, 20-Mar-2020 20:14:53 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Discovered #Lua’s io.lines() file iterator. That should clean this little toy project up a little. In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Wednesday, 18-Mar-2020 05:45:58 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Time to go to bed. Exploration with #Lua again tonight. It is still mind-bending, but getting somewhat easier to grok. I suspect that I’ll be able to apply this to learning languages like #Squirrel and #Wren, which take inspiration from Lua.
As usual, if something seems to give unexpected results, look at the interaction with tables, which are dictionaries (associative arrays), but in some circumstances, more like real arrays or even classes & prototypes & objects.In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Thursday, 20-Feb-2020 02:17:19 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Now watching some #PHP videos on the former #Lynda.com site ( now called #LinkedIn / #LockedOut Learning ) before I go back to the #Lua videos.
I had to take a time out from Lua because none of the (book and video) examples of "first class functions ... pass the function to that one" were working for me and I could not see why.
The odd thing is that the weird issues with scoping that I saw the past few days are gone today. Lua 5.1.5 on #Win10 1909 and Lua 5.2.4 on #Kubuntu 18.04, #Linux kernel 4.15In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Thursday, 20-Feb-2020 00:02:56 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Now wstching some #Lua videos now. In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Tuesday, 18-Feb-2020 20:03:50 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} Finished with breakfast (my normal #YoCo [ #yogurt and #coffee ] ) and lunch. Time to get back to the job search and my efforts to learn #Lua. In conversation from nu.federati.net permalink -
LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} (lnxw48a1@nu.federati.net)'s status on Wednesday, 05-Feb-2020 17:22:22 UTC LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} “If possible, you should always use local variables over global variables, unless there’s a specific reason otherwise.” — https://developer.roblox.com/en-us/articles/Variables #Lua
Going to have to read about the language’s history. I’m sure Lua is young enough to have been created after we learned that global vars should be avoided, so why global by default instead of only when expressly requested?In conversation from nu.federati.net permalink Attachments