Unha travesía á cara oculta da Lúa: estas son as mellores imaxes da misión Artemis II
Autor: Redacción
Unha travesía á cara oculta da Lúa: estas son as mellores imaxes da misión Artemis II
Autor: Redacción
Russian Railway Simulator (RRS): семь лет спустя
В 2019 году я публиковал статью о первой версии своего проекта Russian Railway Simulator . Прошло достаточно много времени, и возможно кто-то думает, что проект умер. Нет, проект не только не умел, но и продолжает развиваться. На днях вышла новая версия игры. В связи с этим реализую свою давнюю задумку написать о проекте еще раз, о том как он развивался все эти годы, к чему мы пришли к сегодняшнему дню и какие перспективы ожидают нас в будущем.
https://habr.com/ru/articles/1019276/
#Симулятор #Железнодорожный_симулятор #open_source #c++17 #lua #vulkan #vulkanscenegraph
Feature: Nudge Sequence Selection Up/Down
Select a block of rows in the Pattern Sequencer or Pattern Matrix, then tap a keybinding to move the entire block up or down — one row per keypress. The selection follows along, so if you want to shift 4 rows down by 5 positions, just select them and tap the key 5 times.
All pattern data, automation, mute states, and pattern names move together. If nothing is
Link to Patreon in bio.
#paketti #tracker #patreon #lua #renoise #demoscene #trackermusic
Unsolicited Programming Suggestion (#UPS): always consider if you've got the right tool for the problem. Example: I was writing a #Python app that needed to import a #Lua file containing a data structure – a tree built using tables, like this:
DATA = {
["node1.1"] = {
["node2.1"] = some_value,
["node2.2"] = other_value,
},
["node1.2"] = {
etc. etc. The structure had several thousand nodes.
My first attempt: oh, there is this luadata Python module, I can use it!
… parsing my Lua file took several seconds. Not microseconds. Not milliseconds. Seconds. On my Ryzen 7 9700X.
Then I noticed that structure is essentially the same as the Python dict I'm going to build, modulo syntactic details, so maybe just use regexp to convert the syntax to pythonic:
{
"node1.1" : {
"node2.1" : some_value,
"node2.2" : other_value
},
and then parse it using ast.literal_eval() (for security reasons I didn't want to simply use eval instead of ast's parser, as the Lua file came from external source). Wow, much faster, ~0.2 s, but still…
Then it dawned on me – convert to #JSON and use json.loads(). Apparently, json's parser is more efficient than ast's parser because JSON syntax is much simpler than generalized Python literal syntax. Got down to 20 ms, something I can live with.
Missão Artemis II entra na esfera de influência da Lua e prepara-se para bater recorde histórico
🔗 https://tugatech.com.pt/t81378-missao-artemis-ii-entra-na-esfera-de-influencia-da-lua-e-prepara-se-para-bater-recorde-historico
O triste fim da Lua dos poetas
https://fed.brid.gy/r/https://iclnoticias.com.br/o-triste-fim-da-lua-dos-poetas/
LÖVE: 2D Game Framework for Lua
https://github.com/love2d/love
#HackerNews #LÖVE #Lua #Game #Framework #2D #Game #Development #Indie #Games #GameDev