Readit News logoReadit News
kalkr commented on Act on Press   twitter.com/ID_AA_Carmack... · Posted by u/uxcolumbo
taeric · 2 years ago
I confess this tweet surprised me. I can't think of many games (any?) that only act on release. There are plenty that have release activation. Famously there is the video of Mario 64 using half an A press. I don't know of many that only do something on release, though. What games do this?

I am not at all surprised to know that Android had some questionable default behaviors.

kalkr · 2 years ago
"Devil Daggers" has an action on release scheme, you play as a floating hand that shoots daggers with two firing modes, a "shotgun" like dagger blast, and a "stream" of individual daggers. The first, which you activate by clicking then quickly releasing, does a lot of damage, but suffers from a cool-down. the latter, which you get by holding for a certain amount of time, is good if you need constant damage.

Interestingly, the game programmed this behavior by moving the position of the hand. When you press LMB, your hand begins traveling forward. If it reaches a certain position, it will start the dagger stream. If you let go before it gets to that spot, it activates the "shotgun" and teleports the hand backward to naturally introduce a cool-down, returning to the neutral position after some time.

People figured out that, because holding the mouse down moves the hand forward, if you shotgun then re-hold the mouse button, your shotgun cool-down is much lower. Most runs will do this because it allows you to do the most damage in the quickest time, but initially learning it is really strange because you don't expect the action to be on release.

https://www.youtube.com/watch?v=JNrCdNFAYW4

kalkr commented on Clever code is probably the worst code you could write (2023)   read.engineerscodex.com/p... · Posted by u/rbanffy
porphyra · 2 years ago
I also find that, in C++,

    int sum = 0;
    for (int i = 0; i < n; ++i)
        sum += x[i];
    return sum
is a lot easier to understand than

    return std::accumulate(x.begin(), x.end(), 0, [](int a, b) {return a + b;});
Yet, the latter is considered more correct and better, with static analysis like cppcheck telling you to use the latter. It does have many advantages, like no mutable variables lying around, but gee it is annoying to read.

kalkr · 2 years ago
Traditional C style for is terrible compared to what you can do with iterators in my opinion, but idk if C++ has those.

    list.iter().sum()
ezpz

kalkr commented on Apple announces new accessibility features, including eye tracking   apple.com/newsroom/2024/0... · Posted by u/dmd
sandspar · 2 years ago
It's funny how the post is about enhanced surveillance technology and the text sentiment of the comment thread is overwhelmingly positive.

Surveillance technology: >:(

Surveillance technology with the word "accessibility" in the title: :)

kalkr · 2 years ago
of course it’s surveillance technology.

an iphone constantly broadcasts your location to third parties, can deduce where you work and live, understands the unique shape of your face, has a built-in microphone and multiple kinds of cameras, stores all of your conversations, stores all of your photos, stores your health information, can figure out when you go to bed.. all on a completely closed and proprietary operating system.

it’s like asking “why hasn’t anyone mentioned that we’re all using a website right now”

kalkr commented on Some notes on Rust, mutable aliasing and formal verification   graydon2.dreamwidth.org/3... · Posted by u/todsacerdoti
littlestymaar · 2 years ago
I don't think anyone has actual measurements on this, but at the same time anyone who's written and read a significant amount of Rust[1] can tell you that unsafe and RefCell aren't something you encounter every day (or even every year when it comes to RefCell).

[1] for my part I've been doing it full time for the past 7 years, and also teach Rust at university.

kalkr · 2 years ago
What about Arc<Mutex<T>> ?
kalkr commented on LDAPjs decomissioned by maintainer over hateful email   github.com/ldapjs/node-ld... · Posted by u/julkali
kalkr · 2 years ago
As the maintainer he gets to call the shots, so this response is perfectly fair. It's easy for me to say "I wouldn't have reacted like this", especially since I'm kind of numb to this type of shit-slinging, but I haven't had such visceral anger directed towards my hard work, so I really don't know.
kalkr commented on An FDA approved device offers a new treatment for tinnitus   npr.org/sections/health-s... · Posted by u/andsoitis
monknomo · 2 years ago
I don't have tinnitus, but I do have this thing where when I'm falling asleep, my eyes (despite being closed and in a dark room) will start to feel like they are looking at a brighter and brighter light. This is very irritating for me.

For that I usually open them really briefly and imagine some kind of equilizer level-set thing happening and that makes it dark behind my eyes again. I wonder if there is a way to do it without opening them

These feedback things are interesting, thank you for sharing

kalkr · 2 years ago
You may be experiencing this? https://en.wikipedia.org/wiki/Hypnagogia

I have read a few anecdotal experiences of people allowing these kinds of hallucinations to continue and they have reported that they can become quite vivid and even interactive. Maybe try waving your arms around when this happens to see if it goes away? That should indicate if it's sleep-related or not.

kalkr commented on Humane AI Pin   humane.com... · Posted by u/signa11
kalkr · 2 years ago
Forget the goofy badge, if I’m moving my arm towards a device to query an llm, I might as well just bind the button on my phone.

u/kalkr

KarmaCake day180October 17, 2022View Original