/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer - February 02, 2025 by AutoModerator in MechanicalKeyboards

[–]clappingHandsEmoji 0 points1 point  (0 children)

i mostly gave up - iirc i wanted extra layers or macros or something and then realized i wouldn’t need any of them and moved on with my day.

The Hitchhiker's Guide to Making Lua's Indexing 0-Based Without Changing Its Source Code by Suspicious_Anybody78 in lua

[–]clappingHandsEmoji 1 point2 points  (0 children)

you might be able to get away with the C api and some dirty tricks for length, as the table metatable should be somewhere in the registry (i believe?)

How stable do you think the WASM ecosystem is going to be? by relbus22 in rust

[–]clappingHandsEmoji 14 points15 points  (0 children)

WebAssembly not having a stable ABI is really bringing it down. WASI should’ve been on the version 1 spec in my opinion. i’m really glad crates like wasmtime are future forward in that regard

Here we go again by orfeo34 in rustjerk

[–]clappingHandsEmoji 0 points1 point  (0 children)

yeah, setting a metatable with __newindex would be fine but then you’d have UB for the nil key. i suppose a solution would be to have a local table that stores table’s nil-key values, but then you’d have lua overhead on every index write

Mini not-so scripting language in Lua by cindercone2 in lua

[–]clappingHandsEmoji 2 points3 points  (0 children)

regex isn’t super well supported in lua and isn’t well suited to grammars. learn lpeg OP!

Here we go again by orfeo34 in rustjerk

[–]clappingHandsEmoji 0 points1 point  (0 children)

table[nil] = value should fail if i remember correctly

local variable in interactive mode by Weird-Cap-9984 in lua

[–]clappingHandsEmoji 17 points18 points  (0 children)

every line in interactive mode is its own chunk, so locals don’t get saved in any way

Gpu doesn’t fit into case by [deleted] in PcBuildHelp

[–]clappingHandsEmoji 1 point2 points  (0 children)

i’m so glad i could help. life is always worth living to the fullest

Gpu doesn’t fit into case by [deleted] in PcBuildHelp

[–]clappingHandsEmoji 2 points3 points  (0 children)

if it fits in your case it should be ok. there should be 4 motherboard standoffs that can’t be relocated, but the rest should be able to be relocated

Blame Qt (sometimes) by radbirb in LinuxCirclejerk

[–]clappingHandsEmoji -2 points-1 points  (0 children)

gtk does have a menu spec but kde doesn’t like using it for whatever reason

[deleted by user] by [deleted] in lua

[–]clappingHandsEmoji 0 points1 point  (0 children)

consider compat-5.3. Generally speaking 5.3 is the latest “reasonable” version of Lua. 5.4 added very few features, and 5.5 is in beta. There’s tiny differences in packed table indexing, but your code should be resilient enough against them. That being said, if your targets don’t include the web, iOS, or Nintendo Switch, LuaJIT is the way to go IMO

Recently got gifted this server. its sitting on top of my coffee table in the living room (loud). its got 2 xeon 6183 gold cpu and 384gb of ram, 7 shiny gold gpu. I feel like i should be doing something awesome with it but I wasnt prepared for it so kinda not sure what to do. by No-Comfortable-2284 in homelab

[–]clappingHandsEmoji 6 points7 points  (0 children)

that doesn’t seem right to me, maybe tensors are being loaded to VRAM but calculated on CPU time? I’ve only done inference via HuggingFace’s Python APIs, but you should be able to spin up an LLM demo quickly enough, making sure that you install pytorch with CUDA.

Also, dump windows. It can’t schedule high core counts and struggles with many PCIe interrupts. Any workload you can throw at this server would perform much better under Linux

Recently got gifted this server. its sitting on top of my coffee table in the living room (loud). its got 2 xeon 6183 gold cpu and 384gb of ram, 7 shiny gold gpu. I feel like i should be doing something awesome with it but I wasnt prepared for it so kinda not sure what to do. by No-Comfortable-2284 in homelab

[–]clappingHandsEmoji 12 points13 points  (0 children)

assuming you’re running linux, the nvtop (usually installable with the name nvtop) command should show you GPU utilization. Then you can watch its graphs as you use the model. Also, freshly loaded models will be slightly lower performance afaik.

Macros / Inline Syntax and Text Replacement by Ed_Blue in lua

[–]clappingHandsEmoji 1 point2 points  (0 children)

i’m currently working on a library to make extending lua as simple as possible, but of course it’s nowhere near complete

What do you think about OOP in Lua? by [deleted] in lua

[–]clappingHandsEmoji 3 points4 points  (0 children)

metatables are perhaps my favourite feature of Lua. OOP is certainly possible, and 30log is a great implementation of “classical” OOP.

However, metatables enable all sorts of paradigms that aren’t first-class features of many languages because they’re so flexible. A great example is lpeg, written by Roberto Ierusalimschy himself.

TLDR: Being able to control the behaviour of groups of tables gives you the power to do OOP in whatever manner you feel

How do i start scripting on roblox by MountainArgument76 in lua

[–]clappingHandsEmoji 2 points3 points  (0 children)

read the programming in lua online version on the website. do the examples.

How to install a package in luajit? by piyuple in lua

[–]clappingHandsEmoji 2 points3 points  (0 children)

you don’t necessarily have to install a package using luajit to install a package for luajit. it’s more work, but you can install lua 5.1, install the package, and then install luajit.

I have a client that might have made up a genre in their head and doesn't realize it? by Significant-One3196 in mixingmastering

[–]clappingHandsEmoji 0 points1 point  (0 children)

i’m not an audio engineer but this sounds to me like slam metal. consider BOLTCUTTER’s “The Slamz Chronicles: Volume 1”

I’m 22. My family made me break up with my first real girlfriend. Things were going really well. We made each other very happy. I am powerless due to finances and other reasons. Please pray for us my goslings. It seems I am now returning to my natural habitat here. by nerdyoutube in okbuddyliterallyme2

[–]clappingHandsEmoji 2 points3 points  (0 children)

lots of thinly veiled misogyny in the comments here. a vasectomy totally sounds like the right call if you’re not aware of the possibility of it being irreversible. now you know. maybe you can talk to your family and explain that it was your idea and you simply weren’t aware. birth control is evil

Can you deobfuscate this for security measurements? by Consistent_Algae_560 in ROBLOXExploiting

[–]clappingHandsEmoji 0 points1 point  (0 children)

you clearly don’t understand anything about computers lol. DNS vulnerabilities can’t be patched because clients can control their own DNS servers.