“Creator of #Lua: Scripting, Programming Languages, Predictions | Roberto Ierusalimschy”
Cada edição começa com o “State of Libre Graphics”, um momento para rever as novidades de cada projeto ao longo do ano que passou. Alguns que não estava a acompanhar e/ou não conhecia, e que agora quero:
- Blockbench - modelação 3D low-poly
- Coollab - animação em tempo real (tipo TouchDesigner)
- Friction - motion graphics
- Glaxnimate - animação vetorial
- Graphite - motor de animação 2D e etc
- Hyper8 - publicar vídeos na web
- L5 - Processing + Lua
- Makepad - IDE pra shaders em Rust
- Openrndr - creative coding
- Ossia Score - sequenciador intermedia
- OurPaint - pintura com pigmentos digitais
- PixiEditor - editor 2D à base de nós (nodes)
- TiXL - motion graphics em tempo real e VJ
Ontem à noite o céu esteve especial, e finalmente tenho uma câmara capaz de registar minimamente cenários nocturnos
eh pá como é que é suposto eu educar o meu filho quando o outro gajo está ali a dizer que está na lua e que depois vai chegar ao céu, não precisas de ser astrofísico pra perceber que há aqui algo na ordem dos elementos que não bate certo
nem vamos falar de estar uma pessoa à espera no céu que isso tem vibes de nossa senhora e ainda menos sentido faz
#TVCultura Mundo da Lua 2
Security updates for Wednesday
Security updates have been issued by AlmaLinux (git, krb5, perl-CPAN, and rsync), Debian (tcpdf), Fedora (libmodsecurity, lua-http, microcode_ctl, and nextcloud), Red Hat (osbuild-composer), SUSE (389-ds, avahi, ca-certificates-mozilla, docker, expat, freetype2, glib2, gnuplot, gnutls, golang-github-teddysun-v2ray-plugin, golang-github-v2fly-v2ray-core, govulncheck-vulndb, helm, iperf, kernel, kernel-livepatch-MICRO-6-0_Update_2, kernel-livepatch-MICRO-6-0_Update_4, krb5, libarc … ⌘ Read more
libinput Preparing To Introduce A Lua-Based Plugin System For Modifying Devices/Events
Comments ⌘ Read more
Pallene: a statically typed ahead-of-time compiled sister language to Lua, with a focus on performance
Comments ⌘ Read more
Go-redis:執行 Lua 腳本
go-redis (github.com/redis/go-redis) 支持 Lua 腳本 redis.Script,本文在這裏簡單展示其在秒殺場景中使用的代碼片段。秒殺場景在秒殺場景中,一個商品的庫存對應了兩個信息,分別是總庫存量和已秒殺量。可以使用一個 Hash 類型的鍵值對來保存庫存的這兩個信息,如下所示:key: productid value: {total: N, ordered: ⌘ Read more
@lyse@lyse.isobeef.org Lack of comments are definitely a shortcoming of JSON. I don’t like TOML because it lets you have nested categories ([foo] [foo.bar] [foo.baz]) and it just feels confusing to me, even with indentation. Simple INI files are okay.
The Prosody XMPP server’s configuration file is just a Lua script because Prosody is written in Lua, and that’s excellent.
The Lua Carousel productivity suite: 4 apps in 150 lines you can mix&match on your phone. https://akkartik.itch.io/carousel/devlog/653245/_
Lua Carousel: for creating little programs on desktop and mobile devices. Can be modified as it runs. https://akkartik.itch.io/carousel
A Lua-based markup language: https://codeberg.org/akkartik/luaML.love
Go 分布式令牌桶限流 + 兜底策略
上篇文章提到固定时间窗口限流无法处理突然请求洪峰情况,本文讲述的令牌桶线路算法则可以比较好的处理此场景。
- 单位时间按照一定速率匀速的生产 token 放入桶内,直到达到桶容量上限。
- 处理请求,每次尝试获取一个或多个令牌,如果拿到则处理请求,失败则拒绝请求。
优点
可以有效处理瞬间的突发流量,桶内存量 token 即可作为流量缓冲区平滑处理突发流量。
缺点
实现较为复杂。
代码实现core/limit/tokenlimit.go
分布式环境下考虑使用 redis 作为桶和令牌的存储容器,采用 lua 脚本实现整个算法流程。
redis lua 脚本
<span class="c1">-- 每秒生成token数量即token生成速度</span>
<span class="kd">local</span> <span class="n">rate</span> <span cl ... ⌘ [Read more](https://gocn.vip/topics/20950)
trying to justify using tinyscheme, lua, and LIL at the same time.
http benchmarking 工具”go-wrk”支持 javascript 脚本了
wrk 是一个比较出名的 http benchmarking 工具,它支持用 Lua 脚本编写任务。
go-wrk 是原作者在早年开发的仿 wrk 的工具,但不支持脚本。没有脚本的话在测试稍复杂的业务时就力不从心。
现在我给加上了 JavaScript 的支持,用的 js 引擎是 Goja. 欢迎大家体验测试提 issue, 有时间的话我会继续改进。详见: [ … ⌘ Read more
jgreco/mpv-youtube-quality
A userscript for MPV that allows you to change youtube video quality (ytdl-format) on the fly
Language: Lua
Star: 248
Watch: 248 ⌘ Read more
** Data Types and Variables in C **
I’ve been writing a heap of Lua lately — this has lead to my becoming interested, again, in C. Here are some ancient notes I dug up on the most basics of data types and variables in C.
All of a computer’s memory is comprised of bits. A sequence of 8 bits forms a byte. A group of bytes (typically 4 or 8) form a word. Each word is associated with a memory address. The address increases by 1 with each byte of memory.
In C, a byte is an object that is as big as t … ⌘ Read more
GitHub - lunarlang/lunar: Lunar is a superset programming language of Lua 5.1, inspired by TypeScript and Ruby. https://github.com/lunarlang/lunar
Lua 5.1.4 Annotated Source https://stevedonovan.github.io/lua-5.1.4/
A Look at the Design of Lua | November 2018 | Communications of the ACM https://cacm.acm.org/magazines/2018/11/232214-a-look-at-the-design-of-lua/fulltext
Managing TLS connections using Lua and Lua coroutines - The Boston Diaries - Captain Napalm http://boston.conman.org/2018/07/23.1
@benaiah@benaiah.me Do you have to transform old scheme code to lua or is it just for the lulz?
@benaiah@benaiah.me Do you have to transform old scheme code to lua or is it just for the lulz?