Eyy I just watched Red Ranger, extremely enjoyable for how stupid it is. I bet I’d have loved power rangers if I watched it as a kid
Traister101
Yo whatup
- 0 Posts
- 157 Comments
Traister101@lemmy.todayto News@lemmy.world•‘Harrowing': Video shows Worcester police hold girl's face on ground during ICE operation51·6 days agoSince there’s been some good replies to this I shall now add my oh so very important reply to the pile.
Water isn’t actually wet, water wets things. Is a cup filled with water wet? No, the cup is dry and contains water. Are freshly washed dishes wet? Yeah, they have some water on them that hasn’t dried off yet.
“Is water wet”, “Is (breakfast) cereal a soup” and “Are hotdogs a sandwich” are some of my favorite stupid nonsense arguments to have. It’s entirely pointless but there is an actual right answer going by the definitions
I can’t judge but wow. Impressive
You cannot have a string argument, arguments and variables in JS don’t have a type. All you have in JS is objects. Actual functions, like full on
function foo(){}
are still objects, like you can actually store data on the things.
JavaScript doesn’t have typed parameters or variables. The function expects a string and does things in the function body which converts the object into a string. JS shares this behavior with all dynamically typed languages and it’s extremely useful in some contexts and extremely frustrating in others. It’s down to what it’s being used for. Dynamic languages make excellent scripting languages, see Python really just being a souped up shell lang
It’s not a string argument though, it’s JS. You can argue it’s expected to be a string but like the rest of JS all you can know from the signature alone is that it takes an object. Hopefully your little ducky quacks the right way!
Traister101@lemmy.todayto News@lemmy.world•Top virologists sound the alarm on bird flu and plead with world leaders to prepare for another pandemic19·16 days agoWe don’t “improve” diseases to make them deadilier and then just release them. The point of gain of function research essentially boils down to “How quickly can this disease become a serious issue and what do we expect that to look like?” with covid, thanks to gain of function research we knew it would quickly mutate and decrease in severity and we could significantly reduce harm by slowing the spread until it got to the point it’s at today.
Even Java has streams and stuff. Course Java so it’s kind of weird (iterators are mutable and internally iterate the collection/whatever lazily) streams are lazy and only go through all the operations, mapping, filtering ect when you collect the elements somehow (like rust). JS is wild lol
Traister101@lemmy.todayto News@lemmy.world•About 4-in-10 Americans say Trump is a ‘terrible’ president amid sinking approval: Survey9·23 days agoHonestly, as a sane person yes I do like honest Nazis more than lying Nazis. But do you know what I like more than honest Nazis? People who aren’t a Nazi, I like those way the fuck more than honest Nazis which apparently puts us in the minority in this shit hole of a county
Traister101@lemmy.todayto Technology@lemmy.world•An Alarming Number of Gen Z Ai Users Think It's ConsciousEnglish91·27 days agoI find it unfair to blame my peers for things largly out of their control. If you are born into an abusive family you’ll only ever know if you happen to luck into the information that such behavior is unhealthy. Is it some of their faults? Certainly, I know people who are willfully stupid and refuse to learn but even knowing these people I feel pretty uncomfortable blaming them for it. I’ve talked to them, I’ve educated them on stuff they were willfully ignorant of and do you know what it generally boils down to? School has taught them that learning things is hard and a waste of their time. They’d rather waste hours trying to get an LLM to generate a script for them than sit down and figure out how to do it despite knowing I’d happily help them.
School has managed to taint “learning” in the minds of many of my peers to such an extent that it should be avoided at any cost. School has failed us, is still failing the current generation and nothing is going to be done about it because it’s working as it’s meant to. This is the intended outcome. Like genuinely the scale of the fuckup is to the extent that enjoying reading is not just rare but seen as weird. We’ve managed to take one of the best ways to educate yourself and instill dread in our children when it’s brought up. How do we expect people who’ve been taught to hate reading to just magically turn around and unfuck themselves? What’d they see a really motivating Tik Tok or some shit? I despise that platform but like seriously you older people just don’t it man. Been complaing since middle school and now people wanna turn around and blame us as if it’s some personal failing it’s fucked up dude. Our education sucks, has sucked and will continue to suck even worse until we stop pretending like this is some kind of personal failing.
Traister101@lemmy.todayto Technology@lemmy.world•An Alarming Number of Gen Z Ai Users Think It's ConsciousEnglish121·27 days agoThe main point here (which I think is valid despite my status as a not in this group Gen Z) is that we’re still like really young? I’m 20 dude, it’s just not my or my friends fault that school failed us. The fact it failed us was by design and despite my own and others complaints it’s continued to fail the next generation and alpha is already, very clearly struggling. I really just don’t think there’s much ground to argue about how Gen Z by and large should somehow know better. The whole point of the public education system is to ensure we well educate our children, it’s simply not my or any child’s fault that school is failing to do so. Now that I’m an adult I can, and I do push for improved education but clearly people like me don’t have our priorities straight seeing who got elected…
Ah yes now I can… dereference a raw pointer (yes that’s essentially the only thing unsafe rust actually enables you to do, it doesn’t disable the borrow checker or anything else, it just allows you to play with pointers)
Traister101@lemmy.todayto Programming@programming.dev•[Noob here] Can someone explain to me the advantage of mutable objects?1·3 months agoSo your writing a game. This game has what I’m going to call “entities” which are the dynamic NPCs and such objects. So these objects are most easily conceptualized as mutable things. Why mutable? Well they move around, change states depending on game events ect. If this object is immutable you’d have to tie the in world representation to a new object, constantly just because it moved slightly or something else. This object is mutable not just because it’s easier to understand but there are even efficiency gains due to not needing to constantly create a new version just because it moved a little bit.
In contrast the object which holds the position data (in this case we’ll have 3 doubles x, y, z) makes a lot of sense as an immutable object. This kind object is small making it cheap to replace (it’s just 3 doubles, so 3*64 bits or a total of 24 bytes) and it’s representing something that naturally makes sense as being immutable, it’s a set of 3 numbers.
Now another comparison your typical dynamic array type container (this is your
std::vector
std::vec
ArrayList
and friends). These are mutable objects mainly due to efficiency (it’s expensive to copy the contents when adding new values) yet they also are easier to conceptualize when mutable. It’s an object containing a collection of stuff like a box, you can put things in, take stuff out but it’s still the same box, just it’s contents have changed. If these objects are immutable to put something into the box you must first create a brand new box, and create a copy of the old boxes contents, and then put your new item into the box. Every time. Sometimes this kind of thing makes sense but it’s certainly not a common situation.Some functional languages do have immutable data structures however in reality the compiler usually does some magic and ends up using a mutable type as it’s simply so much more efficient.
Wealth issue (not really shits cheap)
Elon pretended to lean left. He was and never has been left leaning. He’s been the same old guy this entire time it’s just continuing to be more and more difficult to pretend otherwise.
Traister101@lemmy.todayto Technology@lemmy.world•Linus Torvalds says RISC-V will make the same mistakes as Arm and x86English4·10 months agoCounterintuitive but more instructions are usually better. It enables you (but let’s be honest the compiler) to be much more specific which usually have positive performance implications for minimal if any binary size. Take for example SIMD which is hyper specific math operations on large chunks of data. These instructions are extremely specific but when properly utilized have huge performance improvements.
Traister101@lemmy.todayto Technology@lemmy.world•Google's AI-powered search summaries use 10x more energy than a standard Google search | The Hidden Environmental Impact of AIEnglish1·11 months agoI take it you haven’t had to go through an AI chat bot for support before huh
We do know we created them. The AI people are currently freaking out about does a single thing, predict text. You can think of LLMs like a hyper advanced auto correct. The main thing that’s exciting is these produce text that looks as if a human wrote it. That’s all. They don’t have any memory, or any persistence whatsoever. That’s why we have to feed it a bunch of the previous text (context) in a “conversation” in order for it to work as convincingly as it does. It cannot and does not remember what you say
Traister101@lemmy.todayto Programming@programming.dev•A list of major Java and JVM features since JDK 17 to 221·11 months agoPermits is only required when the compiler can’t see the extending classes. IE inner classes can extend without needing to be written out in a
permits
clause. This isn’t really that useful but I’ve taken advantage of it more than once so who knows
Because it sounds like English words which is “cool”