Show Navigation
Notices tagged with lua
-
https://thesephist.com/posts/lua/
"Interesting things about the Lua interpreter"
#Lua
-
> ... 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.
-
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.
-
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.
-
Also, #Lua for Windows, a batteries included distribution of Lua, has gone unmaintained ... apparently since 2018.
-
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.
-
Today is actually #Lua and #PHP, but here’s a list of #Ocaml resources: https://ocamlverse.github.io/content/learning.html
-
#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/
-
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.)
#Lua
-
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.
-
Sometimes, just using a web browser and search engine is better than hours of reading docs and tutorials. The answer is right there. #Lua
-
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.
-
At a previous job, he had to script some equipment with a custom BASIC-like language and a little bit of #Lua.
-
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.
-
Discovered #Lua’s io.lines() file iterator. That should clean this little toy project up a little.
-
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.
-
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.15
-
Now wstching some #Lua videos now.
-
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.
-
“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?