stingpie

joined 3 years ago
[–] stingpie@lemmy.world 1 points 2 days ago

It has to do with how you decompose problems. In the example I gave, I was trying to point out that arithmetic average, geometric average, and normalization are related problems. Consider applying this technique to something more complicated than averages: pathfinding. You could create a dozen different efficient functions, each with different considerations, but the core of the algorithm will always be the same. You can write pathfind_land(src, dest), pathfind_sea(src, dest), pathfind_air(src,dest), pathfind_sea_and_land(src,dest) etc. but it's obviously better to write it as pathfind(src,dest, is_traversable) and select the most efficient implementation inside the function. It also allows you to use a not-optimized implementation automatically if you haven't made an efficient implementation.

[–] stingpie@lemmy.world 2 points 2 days ago* (last edited 2 days ago) (2 children)

This is gonna make me sound crazy, but always pass functions when possible, and use case statements for how the passed-in functions are applied.

As a simple example, imagine you want to take the average of a set of numbers. Instead of doing sum(numbers)/len(numbers), do:

Quotient_reduce(sum, lambda x,y: x+1, numbers)

then, inside the definition of quotient_reduce,

Def quotient_reduce(accumulate_by, normalize_by, list):

If accumulate_by==sum and normalize_by==(lambda x,y:x+1):

  return [some efficient implementation of average]

Else:

  Return reduce(accumulate_by, list)/reduce(normalize_by, list)

I know it must look insane, but it generalizes normalization, mean, geometric mean, etc, and on the outside there's no taste of the horrible concrete implementation!

Apologies about formatting, I'm on my phone.

[–] stingpie@lemmy.world 4 points 2 weeks ago (2 children)

That aspergic urge to complete partial sentences...

is so strong! Why are these half sentences so popular??

[–] stingpie@lemmy.world 3 points 1 month ago
[–] stingpie@lemmy.world 40 points 1 month ago

My cousin works on similar stuff, and she says that knowing the connectome (which neurons connect to others) is practically useless for understanding how the brain actually functions. You don't know how strongly the neuron activations are correlated, and you can't tell a regular neuron from an inhibitory one. In other words, you can train it to do anything you want, and it will have nothing to do with how the brain actually thinks. She told me about this study where some scientists trained the fly's connectome to act like a fly, and then another paper trained it to play a game (it might've been this one).

[–] stingpie@lemmy.world 8 points 1 month ago (7 children)

The only definition of hash that I know is an identifier for an object created from that object's data. Everything else stems from that central idea. What other types of hash are there?

[–] stingpie@lemmy.world 2 points 1 month ago (1 children)

If I am remembering correctly, getting the weekend off was primarily pushed for by progressive Christian organizations (They needed a dedicated day to go to church, along with a work-free day for the sabbath) of course, this happened prior to the heavy conservative swing that defined most religious politics of the latter half of the 20th century. Depending on your views of the church, it's either surprising that they were the dominant progressive force of the first half of the 20th century, or surprising that they stopped being the dominant progressive force.

[–] stingpie@lemmy.world 2 points 2 months ago

Therapist: Do you think your dives into math are a type of avoidance for difficult problems in real life?

Me: You know what's really interesting? I just thought of this, but recipes can be really well represented by a directed, weighted hypergraph. Each hyperedge is an action, the weights are the measurements, and so following the directed hyperedges will result in the meal the recipe is for. It more naturally captures how recipes can be non-linear than regular list based recipes!

[–] stingpie@lemmy.world 1 points 2 months ago

Is English your second language? I'm having trouble understanding what you're saying.

[–] stingpie@lemmy.world 42 points 3 months ago (1 children)

This email is the phishing attempt test itself. It says you are exempt from the phishing testing, but then tells you to put your account information on a random website.

 

I'm asking because the question the other day about silliest characters had a lot of funny comments.

Personally, I like to play as characters who are perpetually on the brink of fucking things up. Other players adore this, their PCs don't.

As an example, a week ago, the party was being escorted by a noble to a fort, although the noble was lagging behind. My character (who was a kobold gremlin) announced her presence and demanded to be let in. The guard manning the gate asked how he could be sure that we hadn't killed or kidnapped the noble. My kobold said "Isn't the whole point of kidnapping to announce it and use it as leverage? Why would we be hiding it from you?" The party's 'dad' quickly interjected that we had not kidnapped the noble, and that they were just around the bend. My kobold insisted to be let in, arguing "Just let us in, and if you need to arrest us for killing the noble, you'll have us surrounded." The party dad stared daggers at my character, and asked if she was deliberately trying to fuck things up. (the answer was yes, she had been slighted by the dad who did not let her be a gremlin) The dad asked the games to ignore everything my character had said, and the DM asked us to both do persuasion rolls. The other player rolled a nat one, and I rolled a nat 20. We both said "fuck." At the same time, and he burst out laughing.

[–] stingpie@lemmy.world 28 points 3 months ago (1 children)

Instead of spinners, you should use progress bars. When the endpoint of a process is unknown, you should just have a ticker that displays an increasing number. In codex, for example, just show me the number of tokens read or generated so far. It gives me feedback that the process hasn't frozen, and it provides useful information. What an easy and cheap solution!

[–] stingpie@lemmy.world 1 points 3 months ago

I'm having trouble passing your comment. Are you saying I'm more stupid than a toddler, or that the marketers are?

 

I don't know if there's a word for it, but 'unconscious multitasking' is the best one I can make up. Basically, when I try to switch tasks, one part of my brain is still focused on the previous task, and the other part is focused on the new task. I can barely think about the new task, and I feel like I'm in a mental fog. The thing is, I can still work on both tasks, just not at 100%. Two different processes are going on in my brain and they are both fighting for the same resources. The other day, I ended up working on two different coding projects at once. One of them was a crazy homebrew AI, and the other was a system which is basically AI dungeon with a background simulation of the world. Every five minutes I'd alt-tab to the other project to write another five lines of code before switching back.

Historically, I've had similar things happen when I was extremely emotional or in shock. I would sort of split into two thought processes running at the same time. I remember once I was crying because I was having a psychotic-depressive episode, and I was simultaneously having negative thoughts about myself, thinking about how to coordinate these negative thoughts with my wailing, and criticizing myself for being disingenuous for planning my own ability to express my emotions!

I don't know if this is some AuDHD thing, or just unique to me. I haven't been diagnosed with ADHD, but my brother has it, and a psychiatrist once did an EEG on me and said I had 'similar brainwaves to a person with ADHD.' I don't really have any traditional symptoms of ADHD (inattentiveness, distractibility, hyperactivity, etc.) So I'm wonder if any of you, especially those with AuDHD, have had similar experiences.

view more: next ›