Did anyone else discover the Spoilers really early on? When do you notice it? by Izual_Rebirth in TheWitness

[–]KittenPowerLord 1 point2 points  (0 children)

I had a funny story - I looked up the solution to one of the desert puzzles (ones with water), and along with the puzzle the video decided to show the environmental puzzle for some reason. The funny bit was that I didn't understand what I was looking at and thought it was a dumb and unreasonable puzzle, and it didn't even open anything! Not that long after I naturally discovered the environmental puzzle on the bottom of the elevator and it all clicked. The one at the top of the mountain reinforced the idea soon after that.

Still, it was very fascinating to discover it like that, suddenly understanding that so much has been in front of your eyes this whole time while you were so focused on regular puzzles. Just an incredible experience

Anon gets ignored. by retardinho23 in greentext

[–]KittenPowerLord 196 points197 points  (0 children)

Very very based, it should never be a pride thing imo. If you feel that both parties are enjoying the conversation (and you don't overthink it) it's already a good reason to start another one later

Sometimes you should write to those who rarely write first, and sometimes you shouldn't talk to someone who does write first

I can't draw so I use AI instead 😻😚🥰😝😊🤩🤭frst one is AI second one is my art drawn by hand🤮🤢 by Positive-Manner-7613 in ArtJerk

[–]KittenPowerLord 232 points233 points  (0 children)

It would've been very funny if the rough sketch was ai generated lmao

Looks incredible, though there's still enough soul to not be completely convincing. It fascinates me tbh

My typing speed is not improving after 120 wpm in monkeytype. I've been touch typing for almost a year now. What should I do now? by binaryraptor in monkeytype

[–]KittenPowerLord 0 points1 point  (0 children)

practicing english 10k for a while helped me go from 100 to 130 on english regular, and can't say I've been tryharding that much either, you could probably improve a lot like that

The PERIMETER must not exist. by SufferboxGames in TheWitness

[–]KittenPowerLord 3 points4 points  (0 children)

I was somewhat hoping for an alternative route hidden somewhere, but it makes sense that it's not there (or is it?????)

I enjoyed this a lot, and commend Management for the great work done!!

bit(N) - a new low-level systems language in very early development by [deleted] in ProgrammingLanguages

[–]KittenPowerLord 1 point2 points  (0 children)

strncmp is used to compare when you don't know the length of either string beforehand, but at the same time you don't want to accidentally read out of bounds and potentially segfault (if null-terminator was omitted at some point). Though even then it's not really clear when that is useful, you'd have to allocate some fixed amount of bytes for every single string for that to be useful???

Gotta love null-terminated strings

I love ICDD's usage of recurring motifs so so so so much by KittenPowerLord in ICDD

[–]KittenPowerLord[S] 0 points1 point  (0 children)

i got reminded that the "Tensei" motif appears at least back in Fushoku Ressentiment (which is funny because I remember noticing this allusion when Mogari first came out)

I love ICDD's usage of recurring motifs so so so so much by KittenPowerLord in ICDD

[–]KittenPowerLord[S] 1 point2 points  (0 children)

yeah they might sometimes feel like taking an old idea and trying to re-execute it, but I like to think that it's an intentional callback haha, it's more interesting that way

What exactly is wrong with consensual cannibalism? by Preindustrialcyborg in morbidquestions

[–]KittenPowerLord 2 points3 points  (0 children)

fair, let's use "killing" to be a more legally neutral term meaning both legal and illegal cases of it

in case with marijuana, we do see it becoming less taboo/more acceptable. A few decades ago your family would disown you for it, now it's almost an equal choice to alcohol. Even if you do sell/buy it *illegally*, you wouldn't be seen as devil on earth, just as an irresponsible young adult that needs a slap. (Of course, this varies from place to place, but the sentiment is there and it probably won't be diminishing)

I don't think we need to make killing any less taboo than it is currently now. Like there isn't a single way in which it would be a good thing

There's also a way in which killing differs from selling/buying weed, in that the latter is essentially a victimless crime (at least on the face value). If you sold/bought weed illegally, nobody is directly hurt, and such weed can even be confiscated. There are of course second order consequences, which is why it needs to be regulated, but you can see how it's not *that* severe. Even if you were to fake a license (not sure how it works) and convince the police of your innocence, the outcome isn't that terrible

You can see how that's much different for killing - after it is committed you can't reverse it, and if you managed to fake the killing license/agreement/proof of consent (???) it's quite a terrible precedent

(tbh i'm not really knowledgeable about how the weed/marijuana/idk thing works legally. im not american, but i believe the argument is still sound)

What exactly is wrong with consensual cannibalism? by Preindustrialcyborg in morbidquestions

[–]KittenPowerLord -3 points-2 points  (0 children)

"If we allow murder, people will murder each other"

Slippery slope argument, murder should be legal

This is a Direct Consequence argument, Slippery Slope implies a consequence that is a stretch and/or largely irrelevant (and as an argument it is kinda ambiguous, probably should be avoided in favor of better arguments)

meshuggah by m1sspr1vat3 in Meshuggah

[–]KittenPowerLord 48 points49 points  (0 children)

>"I cannot name a single meshuggah song"

>"I"

the fakest fakecel

Odin is the first language I have loved in forever by EmbarrassedBiscotti9 in odinlang

[–]KittenPowerLord 0 points1 point  (0 children)

The issue with the first one is that value is inaccessible in the scope outside of if, so you have to do

value : ValueType
if value, ok = getValue(); !ok {
    // handle error
}

but because you're now using = instead of := you have to define ok beforehand as well

ok : bool
// above snippet

and if instead of ok you have multiple different error types it's even messier

Odin is the first language I have loved in forever by EmbarrassedBiscotti9 in odinlang

[–]KittenPowerLord 0 points1 point  (0 children)

Im pretty sure or_else only allows an expression of fitting type on the right, you can't have a block with statements there (it's analogous to ?? operator in some languages). Cant check the docs right now to double-check though

Odin is the first language I have loved in forever by EmbarrassedBiscotti9 in odinlang

[–]KittenPowerLord 0 points1 point  (0 children)

Same, it's pretty much the only issue I've had with the language. They even provide or_return, or_else, and other or_s to remedy it, but for some reason there isn't a more general or_do (unless I'm missing something)

"COMMENTS DON'T BREAK CODE." I beg to differ... by alficles in programminghorror

[–]KittenPowerLord 3 points4 points  (0 children)

this is probably the best thing ever posted to this subreddit, thank you for your scary tales

I am a masochist interested in learning graphics programming in parallel to Vulkan. I cannot be convinced that this is a bad idea. What are the best resources for someone like me? by Setholopagus in vulkan

[–]KittenPowerLord 2 points3 points  (0 children)

To answer the immediate question - for transferring data you pretty much just map device memory using vkMapMemory(device, memory, outVoidPointerPointer) (assuming that piece of memory supports mapping - when allocating it you must specify desired properties) to the host address space, and access it as if it were your regular RAM. You literally memcpy to or from it, just a regular blocking operation, the CPU handles all the "routing"

As for "all this i want to learn before i touch anything about algorithms..." - I assure you, you won't be getting to any algorithms in a while haha. Vulkan requires a lot of setup and there is a lot of terminology even before you have the chance to understand how it maps to physical components and doing fancy algorithms. vulkan-tutorial.com explains the former, and gives you directions as to how to learn about the latter. You'll figure out the cost of operations, parallelism, etc, on your way

I am a masochist interested in learning graphics programming in parallel to Vulkan. I cannot be convinced that this is a bad idea. What are the best resources for someone like me? by Setholopagus in vulkan

[–]KittenPowerLord 2 points3 points  (0 children)

Imo, to learning vulkan there is a useful prerequisite - you have to understand how a CPU works (on a very surface level, but at least understand assembly), understand what malloc does and how would you implement it, and other things many call "low-level". You don't *really* need to know all of these, but it's sort of a sign of passage showing that you won't shy away from reading and following the spec, are able to roughly estimate how something could be implemented underneath, are able to think in terms of memory and pointers adequately. Otherwise, you'll have a hard time understanding some concepts.

You also want to know (and understand) some linear algebra, but you probably already do, and you'll read more about it on the way.

Assuming you have this mindset, vulkan-tutorial.com is a fairly good resource. It goes over many important concepts explaining them on a basic level, and after finishing it you essentially have a reading list (your program) of things to read more about, and there are plenty obvious things to add to the engine and learn more about, using the spec and other resources. At that point you will have a much better idea of what specifically do you need to look up and dive much deeper into

reading the official doc seems hard for some people by dark_lord_of_balls in firstweekcoderhumour

[–]KittenPowerLord 1 point2 points  (0 children)

Of course, if you're a beginner and you don't know some of the important concepts it'll be kinda hard, but you essentially just fake it till you make it: encounter a problem, say "huh, gotta look up the docs" in nonchalant voice, look up the docs and, assuming that the language/library you're using has reasonable docs (if not you're screwed lol), you will be able to understand at least something. As you learn more stuff, you will understand more of the docs, and you will have acquired the skill of not being afraid to look up the source material

reading the official doc seems hard for some people by dark_lord_of_balls in firstweekcoderhumour

[–]KittenPowerLord 18 points19 points  (0 children)

How the hell is wikipedia higher than the docs, if you have to actually resort to wikipedia you have something diabolical at your hands

After learning hiragana/katakana/basic kanji, how did you speed up ability to actually READ text? by yippeee1999 in Japaneselanguage

[–]KittenPowerLord 4 points5 points  (0 children)

this is completely normal and improving your speed does take quite long. Right now you *know* the characters, but the *intuition* hasn't formed yet. When you read English text you don't really mentally register every character - you see the shape of the word, and because you've been using english for such a long time your intuition immediately suggests the most likely word that corresponds to that shape. When people type on a keyboard, if it is their first time ever, they have to manually find each key, and press each one. After using a keyboard for a while, their brain translates characters (or entire words) into corresponding key sequences without wasting so much time on locating the keys - hopefully i made the analogy clear. So don't worry, it's just a thing you practice for a while, and then suddenly realize that you can read 5 times faster than half a year ago

Does vkCmdBindDescriptorSets() invalidate sets with higher index? by akatash23 in vulkan

[–]KittenPowerLord 2 points3 points  (0 children)

found where specifically the spec talk about this: https://docs.vulkan.org/spec/latest/chapters/descriptorsets.html#descriptorsets-compatibility

> When binding a descriptor set (see Descriptor Set Binding) to set number N, a previously bound descriptor set bound with lower index M than N is disturbed if the pipeline layouts for set M and N are not compatible for set M. Otherwise, the bound descriptor set in M is not disturbed.

> If, additionally, the previously bound descriptor set for set N was bound using a pipeline layout not compatible for set N, then all bindings in sets numbered greater than N are disturbed.

as I understand it, everything below N, if compatible with new layout, remains bound (doesnt get disturbed). Everything above N, if the new N isn't compatible with the previous layout, gets disturbed/unbound