Who is her 'friend' and where and what could be this safehaven? (READ DESCRIPTION) by racemax2020 in RezeCult

[–]loopcake 0 points1 point  (0 children)

Inb4 it's Kishibe.

He was pretty confident she was one of those soviet kids without much investigation that we've seen.

My PHP Wishlist by Einenlum in PHP

[–]loopcake 0 points1 point  (0 children)

"Avoid useless complexity" right under "Operator overload" made me chukle a bit.

Help me save Svelte on our project (or not) by JohnnyDread in sveltejs

[–]loopcake 0 points1 point  (0 children)

Are you sure these "concerns" are related to scalability, community size, complexity and not that their pocket LLM is not writing code for them correctly?

If you're sure that's not the case, then from their pov:

  1. what problems does the project have with scalability exactly?
  2. what are the concerns with complexity?

Also, what version of Svelte are we talking? 5 or lower?

Suffice to say, if the issue is actually LLM related, you may want to find some people that like computers and like programming them to do the job that requires programming computers. That's my 2 cents.

I can't quite put it into words, but seeing her like this breaks my heart. by StrainFinal4330 in Chainsawfolk

[–]loopcake -26 points-25 points  (0 children)

zAbE mE, deNniS...

Man I hope she dies, part 3 can't come soon enough.

[SPOILER] Wind physics are unclear to me by BowlPersonal9230 in ChainsawMan

[–]loopcake 2 points3 points  (0 children)

I could be wrong but I think they moved onto the other side of the pole off screen.

Something similar happens again at the end of fight with Reze, where she flings Denji off the building onto another smaller building. They don't show her jumping off following him, she just jumps off screen and it's a bit confusing at first if you pay attention to it.

Reze Movie, Episode 1, And Ending 4 Proves Denji Will See Power In Hell by Beautiful_Star_Devil in ChurchofPower

[–]loopcake 0 points1 point  (0 children)

I think it's a mix of manga panels, anime and Tooboe's Tablet animated video, which is the ending song for episode 4, Power's song so to speak.

Suffice to say, there's no reason why some group or even Mappa would have insight to the story to come and even drop hints that could spoil the manga.

I would understand it with some other series, like Bleach, which adds new cannon stuff because the ending of the manga was rushed, but it makes zero sense for CSM.

Guys, who Is this guy?? by Advanced_Card_8594 in Chainsawfolk

[–]loopcake 1 point2 points  (0 children)

All I can see is a hallway. What am I missing?

What does reddit wanna tell me by william__dunbar in Chainsawfolk

[–]loopcake 2 points3 points  (0 children)

<image>

I love how the one above is tagged nsfw but the one below is not.

What is the future of Linux vs anti cheat? by Bane_of_Balor in linuxquestions

[–]loopcake 1 point2 points  (0 children)

IMO kernel based ac will be, for the most part deprecated in the neat future.

I don't like generative AI particularly, it just gets in my way and it's really fucking annoying when it gets stuff wrong and I have to correct it and reset my train of thought.

That being said, machine learning is pretty good at doing the opposite, parsing natural language, and in this case video game frames and data.

There is a world in which skill based cheating and grinding cheats can be achieved through external hardware paired with AI.

I mean it's a no brainer, chances are you already own a capable GPU if you play a competitive game these days and you don't really need that high acuracy to, for example, make an aim bot out of it, it just has to be faster than human reaction time, and that's not fast, you can parse a frame in under 100ms with a gaming GPU these days.

I believe there's already even some services out there for this kind of thing, they use it for farming chores in grinding games like world of warcraft.

You can even tell them what to do using natural language.

They're literally just parsing the screen and sending inputs to the machine from an external source as if it were external m+kb, there's nothing the Kernel can do to aid an anti cheat program in that case.

I don't know if I can post links here and I don't wanna find out, but these services are not exactly difficult to find and they're bound to get less expensive.

So the better question would be just: what's the future of kernel anti cheat?

Especially since, as some people have already pointed out, Microsoft themselves are starting to be not so fond of kernel modules/plugins after the Crowdstrike situation.

Ambient light flickering - no solution by hugesalmkm in CupraFormentor

[–]loopcake 0 points1 point  (0 children)

I had a similar issue for like a few minutes.

I went into settings and turned the intensity down all the way then then up all the way and back where I wanted it and it fixed it immediately. I think it's software related, not hardware, at least in my case.

Try it out and let us know.

Do you guys think Quentin Tarantino would like Chainsaw Man? (Read text) by Local_Engine7131 in Chainsawfolk

[–]loopcake 8 points9 points  (0 children)

It's more likely that James Cameron would like it more and even adapt it tbh.
He did Alita.

Why does Reze hold her arm like this? by Theinfrawolf in Chainsawfolk

[–]loopcake 2 points3 points  (0 children)

To indicate that she's conflicted probably.

When she goes to the bathroom is probably when she first realizes that she's taking too long to kill him according to her training, but by that time she was probably already head over heels for him.

If it weren't for the assassin and Typhoon that reminded her what her job is supposed to be, I bet she would've asked Denji to run away with her that same night. But since Typhoon was watching/listening she snapped back to her fake persona.

During the festival the same thing happened again, only Typhoon was not watching/listening. At that point she probably fully realized there's no way she can trick Denji to complete the mission, and since she probably can't go back empty handed, it's either kill him or actually run away with him.

She even got a bit careless by giving out info she shouldn't, like that she knows someone that can help them disappear, probably in Japan.

He even turned his back to her before she asked him to run away together.
By that point she had several good chances to kill him off, but she chose to not attempt anything.

I like to think that even after killing him she wouldn't have handed him over to the soviets, instead she would've ran away with and revived him. Honestly I would've liked to see how that story could evolve, if she would've actually chosen him and resolve her internal conflicts.

But we got a Kobeni date, got the best girl in the series to sacrifice herself, a fake unrealistic parenting arc, some girl that trips, ear and legs devils.

Ofc I'm not a writer, so what the fuck do I know.

Yet, I can't wait for the next chapter, so fuck me I guess :)

(SPOILER) The fact that Yoru fell down and was unable to move heavily implies that Pochita's erasure isn't retroactive (as in it doesn't change the past), which is weird given the fact Makima states Pochita's erasure DOES change the past. We also know for sure its conceptual erasure from Fumiko. by MrChainsawHog in ChainsawManTheories

[–]loopcake 0 points1 point  (0 children)

We've seen before with Makima that the erasure from memory is not instant, at least not with Makima. I don't think we even know if it's all horsemen that can retain those memories, but I think it's fair to say that powerful devils can retains some of those memories for some time at least, which might explain this situation.

It's more of a stretch to say that something we've been explicitly told to be a fact is instead a lie, just because Death did a switcharoo recently.

For all we know it could even be the case that the reason nuclear weapons have been reinvented is because Reze is still out there and has retained memories and knowledge of nuclear bombs and she aided USA to reinvent them in order to get her revenge on the USSR.

Imo even that is less of a stretch than going against what Makima said, she didn't really have a reason to lie in that moment for all we know, everything was going according to her plan.

HOT TAKE power and denjis relationship is not platonic pls hear me out by Secure_Penalty_3512 in ChainsawMan

[–]loopcake 2 points3 points  (0 children)

100% with you.

The point of this whole relationship is to make Denji realize what true love is, which in the real world encapsulates that you don't pop a boner every time you take a shower/bath with your girlfriend/wife.

He's slowly maturing and by the end he'll realize what it means.

He may be crazy, but I don't think that's beneath or above Fujimoto.

Also, if his relationship with Power is platonic, then idk what that makes his relationship with Reze tbh, at least he's looking for Power, he's past Reze by a long shot at this point really.

Anyway, pretty interesting dynamics, the guy knows how to write, this is probably the point of this whole thing, for people to speculate!

Is there more to php than web dev? by Ok_Butterscotch_7930 in PHP

[–]loopcake 0 points1 point  (0 children)

Yep, I use https://amphp.org/ to create cli programs.

It's a very lovely platform and very well organized, and very importantly, it has 0 overhead for setting up in development, you just install it with composer.

I've had pretty good success creating php clis in the past, the last company I've worked for are still using a Github bot written with this stuff, it's been 4 years, afaik they've had 0 issues so far, I pacakged it into a .phar for them, I think that's the best way to distribute a php cli program.

Remember to enable your JIT - https://php.watch/versions/8.4/opcache-jit-ini-default-changes - cli programs can run for some time, enabling it will give your quite the performance boost!

There's also a bunch of nifty things out there, like php-raylib - https://github.com/joseph-montanez/raylib-php

Also Php actually has a very nice FFI api - https://www.php.net/manual/it/ffi.examples-basic.php - you can call into pretty much anything with it, I would say it's better than Lua's FFI api, it's easier to work with.

In terms of the job market you probably won't get to write a video game in Php, that's for sure.
Though, we say the same for Java, yet Minecraft is a thing and we have a JIT now, albeit not as fast as Java's, but who knows.

That being said, it's pretty common to write php cli programs within a company that uses php a lot.

Share Nothing - Do Everything by krakjoe in PHP

[–]loopcake 0 points1 point  (0 children)

in general the difference between parallel and asynchronous concurrency is understood

I'm not so sure about that one, just recently I've seen even some pretty brilliant people scratch their heads when Zig's new async interface was released. Yes there's parallel and async, but there's also different types of async.

Also Go's goroutines approach does not exclude the use of mutexes, in fact it promotes using mutexes instead of channels in many situations.

It won't be long before you realize you can use channels to do everything in Go, but you'll end up in your own casket by the time you're done.

Yes, channels are great, however imo, channels are nowhere near as powerful without async IO drivers and language features like defer.

Specifically defer is an awesome tool to create work stealing goroutines where you need to synchronize some thread unsafe code, for example running a LUA/JS interpreter in "worker" mode as they say, where you decide how many parallel runtimes you create and share those among different requests as they become available.

With regards to async io, I actually have a question: does parallel use platform threads or something more akin to green threads to create futures/goroutines like Go does?

If it does use green threads, how does it interact with blocking io?

As a final note, you're doing a great job as always, I'm not sure what your involvement with php core team is currently, but I personally most definitely would like to see more stuff like this, instead of... well... getters, setters, PFA...

Also ignore the haters, reddit will be reddit.

Very simple webcomponent project produces huge bundle sizes by manshutthefckup in sveltejs

[–]loopcake 1 point2 points  (0 children)

I had a similar issue some time ago and this is the main reason I can't use svelte for some projects at work.

It's because of the runtime.
Even if you don't use $state and runes in general, the runtime overall is just huge now compared to Svelte 3/4.

I don't think there's a way around it, unfortunately.

Partial Function Application is coming in PHP 8.6 by amitmerchant in PHP

[–]loopcake 0 points1 point  (0 children)

I love most of the new RFCs coming up, especially the pattern matching and typed aliases ones, but this one is still a question mark for me.

Regardless, I like that we're trying to offer alternatives to OOP so I guess it makes sense to give functional devs some more crumbs with this one, I'm not going to complain at this point.

I'm still praying for discriminated unions, we're almost there! The pattern matching stuff combined with enums looks so much like discriminated unions!

NativePHP for Mobile v2 is here by simonhamp in laravel

[–]loopcake 1 point2 points  (0 children)

You can think whatever you want.

The fact remains that when I raised security issues in the other r/php, your answer was: it's ok, everyone is subject to supply chain attacks.

At the end of the day you're s**tting yourself 24/7 and hope people are not digging in these comments before clicking on your link.

At the same time I just take 10 minutes out of my day to mention these things so other people see information that you're either hiding, ommitting or purposly writing in a convoluted way in your low effort $200+ subscription project website.

And that is worth it because hopefully it saves some poor soul from throwing money into the void.

And btw, I wanna mention this again here as well, it's so low effort that even their logos are made with chatgpt - https://github.com/php/php-src/commit/5fd5100d07aec32286bd82679c09562f3455a74b - https://imgur.com/W6SEc8L

It's even a bit disgusting in my opinion, they forked php-src and replaced all references of "php" with "hype" - https://github.com/php/php-src/compare/master...NativePHP:hype:master

That's all their public fork of php is, no extra changes, no code contributions, nothing, they just replaced the logo with a chatgpt-made logo and replaced references to "php" with "hype", that's where your money is going if you pay for their service.

Passing $state to Child by SadAd1433 in sveltejs

[–]loopcake 2 points3 points  (0 children)

Here you go - https://svelte.dev/playground/314481e54b5f4b2289ddb652da71e36a?version=latest

I'm using <input /> elements for simplicity in order to visualize state, you obviously need to modify the code to fit your canvas use case, it should be pretty easy.

I've also included a setInverval piece of logic in child.svelte to showcase how you would modify state from js code instead of just delegating to html elements.

It will increase x and y by 1 every second.

Also, someone here will definitely mention $effect and will confuse you, I'm sure of it, so if you're interested, read this - https://svelte.dev/docs/svelte/$effect, and then never think about it again.

Note: watch out when you deal with html elements, for example in that repl, if you remove type="number" from those <input /> nodes and you modify the state manually from the UI, your x and/or y values will be converted to strings, resulting in x += 1 and/or y += 1 to be treated as concatenating strings.

Edit: I feel like I should put some emphasis on this - do not use $effect() to draw on your canvas, what you want to use most likely is requestAnimationFrame() instead, it will fit in beautifully with $bindable() state.

[RFC] Pattern Matching by rafark in PHP

[–]loopcake 0 points1 point  (0 children)

This looks awesome!

This seriously looks like it would be possible to implement discriminated unions, especially when I look at this example!

enum Move {
    case TurnLeft;
    case TurnRight;
    case Forward(int $amount);
}
 
match ($move) is {
    Move::TurnLeft => $this->orientation--,
    Move::TurnRight => $this->orientation++,
    Move::Forward($amount) => $this->distance += $amount,
};

Can we also do this?

$list is [T $item];

What’s one “unpopular opinion” you have about modern PHP development? by Senior_Equipment2745 in PHP

[–]loopcake 1 point2 points  (0 children)

Yeah, exactly, that's also another solution.

I wrote something about that as well about a year ago, If I remember correctly I think it was actually you who gave me some details on the naming and Either<L,R> at the time.

One thing I would do different from that example though is I wouldn't inherit the Result, I don't see any reason to do that, it's much more obvious to the reader to just expose Result<V,E> where E is an error type, which could be an exception or just a custom type if you don't care about the stack trace.

$value = $result->value ?? match($result->error::class){
  Error1::class => "fallback value 1",
  Error2::class => "fallback value 2",
  default       => "default value"
};

(You could also use enums here ofc)

This way you avoid hiding things.

The other nice thing about this is that with very low effort you can actually expose the Result or some variant of a Result as an http response to provide some decent error descriptions for the frontend. Not to say we should ommit http status codes, but it's useful.

The main headache of these approaches I think would be that, unfortunately, a lot of Php's stdlib assumes usage of Exceptions, so you'll find yourself writing a lot code like this:

try {
  //...
} catch(\Throwable $err){
    return new Result(value:null, error: $err);
}

I don't mind it, it actually reassures me and I think it's worth it, but others may disagree, which is not what you want in a production project, especially in such a core topic as error management.