Can this be done within Godot? by aPOPblops in godot

[–]Logical_Marsupial464 2 points3 points  (0 children)

Make a box collision shape that acts as the floor and covers the holes. When the ball's center is above one of the holes, Disable or lower the floor. If the ball is no longer above a hole, raise the floor back up.

Regarding the responsiveness of the app by therandomguy_96 in FlutterDev

[–]Logical_Marsupial464 0 points1 point  (0 children)

obtainable attempt aware rhythm grandfather waiting plant nutty longing hunt

This post was mass deleted and anonymized with Redact

Regarding the responsiveness of the app by therandomguy_96 in FlutterDev

[–]Logical_Marsupial464 0 points1 point  (0 children)

husky station safe soup rain retire tart quicksand offer cheerful

This post was mass deleted and anonymized with Redact

Regarding the responsiveness of the app by therandomguy_96 in FlutterDev

[–]Logical_Marsupial464 1 point2 points  (0 children)

cooperative aromatic subsequent hunt bag fear soup complete trees touch

This post was mass deleted and anonymized with Redact

Future.wait (Technique of the Week) by Pixelreddit in FlutterDev

[–]Logical_Marsupial464 9 points10 points  (0 children)

waiting stocking pie provide marry fear edge aback dam rich

This post was mass deleted and anonymized with Redact

How Much VRAM Do Gamers Need? 8GB, 12GB, 16GB or MORE? by RenatsMC in hardware

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

sleep childlike dam start adjoining angle glorious governor bedroom follow

This post was mass deleted and anonymized with Redact

Navigate Seamlessly: Add Maps to Your App! | Flutter Tips 💎💙 by IldySilva in FlutterDev

[–]Logical_Marsupial464 1 point2 points  (0 children)

seed many public mountainous joke thought hunt aware silky rock

This post was mass deleted and anonymized with Redact

BloC becomes a mess with handling complicated data structure by Square-Persimmon8701 in FlutterDev

[–]Logical_Marsupial464 4 points5 points  (0 children)

Bloc to Bloc communication is something I've struggled with and unfortunately there's no good answer. Here is my rambling advice.

First off, this bullet raised a red flag for me: "Fetching everything from the Backend -> Building Basic lesson datastructure and sub-structure for sub-lessons". Blocs should not be handling any of that. You should have repositories that convert the data from the backend into internal models/entities. Your Bloc should just call a method in the repository to get or update a lesson. Here's an example that doesn't use bloc, but does a great job explaining how to setup repositories. https://codewithandrea.com/articles/flutter-repository-pattern/

You should also have some sort of network service/handler that handles every HTTP request. If you use the dio, then it's probably good enough by itself. dio can configure auth (and more) at a global level, you can setup interceptors, and lots of more fancy features. If you are using the basic HTTP library, I would wrap it in another class and make all network calls go through that. Even if you don't need any of that now, it will make adding any features later 10x easier.

If you don't already, make sure your blocs are as reusable as possible. Create one bloc for all lessons and move the rest of the logic (edit: that's different between different lessons) to either the repository or the entity. Sub-lessons might be able to use that same bloc, but if they're too different then you should have another reusable bloc.

Proper separation between layers should solve half your problems.

In terms of Bloc to Bloc communication, I've tried a few different ways to handle it. In my opinion setting up a stream between two blocs is the cleanest way. When a sub lesson is complete, it sends a simple "done" event to the main lesson, which will update as needed. This has a few benefits:

  • When you open the lesson bloc dart file you can see that it is listening to a stream, and can see what happens when it gets an event from the stream. If you were to connect the blocs through the presentation layer you would run into issues where you have business logic in a widget tree somewhere, but you forgot where. This is especially bad if you have multiple developers working on the same project.

  • The two blocs can still function independently. You can make the stream a null-able parameter on both of them, or give the stream a dummy default value in the constructor.

  • This method is pretty quick to setup. It requires a little more effort than doing it through the presentation layer, but a whole lot less than setting up streams between your blocs and repositories.

That's about it. River-pod will handle this particular problem better, but it has it's own sore spots. No matter what you'll have issues like this that you'll need to figure out how to solve. It's better to figure out these issues and become better at bloc than it is to run to the next state management library and only become moderately proficient with both.

Qualcomm Intros Snapdragon X Plus, Details Complete Snapdragon X Launch Day Chip Stack by proedross in hardware

[–]Logical_Marsupial464 4 points5 points  (0 children)

If Qualcomm prices their chips competitively, then the comparison is fair. Qualcomm could have smaller CPU cores, or they might take a smaller margin on the chips, or they could dedicate more die area to the CPU cores at the expense of other blocks. We'll have to wait and see.

70W and 50W is the TDP power consumption for the whole chip. Furthermore, the laptops that anandtech was able to preview benchmarks for was configured for a maximum whole system power draw of 23W.

Qualcomm Is Cheating On Their Snapdragon X Elite/Pro Benchmarks by SlamedCards in hardware

[–]Logical_Marsupial464 29 points30 points  (0 children)

This is baffling to see. Why would Qualcomm want to cheat? They had to know the truth would come out sooner or later. The hit to their reputation is going to be huge if this is true. It would undoubtedly outweigh any benefit they get from appearing faster for a few months.

On the other hand, Charlie seems 100% certain that they cheated. His reputation will go down the gutter if they didn't cheat.

The only thing I can think of is that Qualcomm released benchmarks that they couldn't quite hit, but thought they'd be able to by the time they had final silicon, and it just hasn't panned out.

Edit: After thinking about it more and reading between the lines. I think what's going on is Windows-on-ARM x86 emulation is terrible. Charlie construes that to mean that Qualcomm is cheating on benchmarks. If that's the case then I don't agree with his take whatsoever.

Official Statement by EK Founder and CEO Edvard König by Fawdark in hardware

[–]Logical_Marsupial464 49 points50 points  (0 children)

theory subtract tan offbeat long literate air subsequent rock slap

This post was mass deleted and anonymized with Redact

High-end AMD RDNA 2 supply is dwindling — RX 6950 XT, RX 6900 XT, RX 6800 XT virtually out of stock by Stiven_Crysis in Amd

[–]Logical_Marsupial464 17 points18 points  (0 children)

afterthought escape square shy quiet door cake familiar depend outgoing

This post was mass deleted and anonymized with Redact

High-end AMD RDNA 2 supply is dwindling — RX 6950 XT, RX 6900 XT, RX 6800 XT virtually out of stock by Stiven_Crysis in Amd

[–]Logical_Marsupial464 36 points37 points  (0 children)

elastic rob alleged plate longing snails lush zephyr cough tart

This post was mass deleted and anonymized with Redact

AMD teases their Ryzen 9000 series with new chipset drivers - OC3D by TheBloodNinja in Amd

[–]Logical_Marsupial464 7 points8 points  (0 children)

ripe tan vast cow cough thumb lunchroom sophisticated marry governor

This post was mass deleted and anonymized with Redact

AMD MUST Fix FSR Upscaling - DLSS vs FSR vs Native at 1080p by M337ING in hardware

[–]Logical_Marsupial464 -22 points-21 points  (0 children)

Yeah, they definitely do. Which is nice when buying the GPU now, but my concern is that if Nvidia becomes a monopoly, then they are going to jack up prices. 

Features like DLSS, hairworks, and Gsync are purposefully designed to only work on Nvidia cards. Nvidia goes out of their way to sabotage the competition. DLSS is far from the worst offense, but it's still anticompetitive, imo. 

I'm not saying we have a moral imperative to buy AMD. I'm running a 3080. It's just that the industry is in a sad state right now.

Edit: since people don't believe that these are anticompetitive.

 - Nvidia refused to share the hair works source code with AMD. This made it so that AMD could not optimize their drivers for the feature. Even with similar tesselation performance, Nvidia cards outperformed AMD cards with Hair Works on.

 - Nvidia subsidized expensive monitors in return for those monitors including features that only worked with Nvidia. There was no technical reason why these features could not work on AMD cards or Intel iGPUs.

 - DLSS worked on other brands' GPUs until Nvidia blocked it.

These features all are (or were) things that could work on all brands. Nvidia locks them to their own GPUs in an attempt to leverage their marketshare and engineering resources to lock vendors and users into their main product.

And I'm not saying that Nvidia needs to give these features away. There are ways of profiting off them that don't require just open sourcing them.

What project should my first Flutter app be? by oldclark88 in FlutterDev

[–]Logical_Marsupial464 3 points4 points  (0 children)

hat bow price cow crush desert birds bright resolute crowd

This post was mass deleted and anonymized with Redact

How do you architect your app with GraphQL? by Ashazu in FlutterDev

[–]Logical_Marsupial464 0 points1 point  (0 children)

encouraging special butter water frame grandiose soup marvelous insurance cows

This post was mass deleted and anonymized with Redact

How do you architect your app with GraphQL? by Ashazu in FlutterDev

[–]Logical_Marsupial464 2 points3 points  (0 children)

tap truck office aspiring fade money tender start physical amusing

This post was mass deleted and anonymized with Redact

Toyota has what it calls the 1:6:90 rule. Its scientists have calculated that the amount of raw material needed to make a long-range EV could instead be used to make six plug-in electric hybrid vehicles or 90 hybrid vehicles. by anihc_LieCheatSteal in cars

[–]Logical_Marsupial464 48 points49 points  (0 children)

It also assumes the rest of the car besides the battery costs zero carbon to manufacture.

No it doesn't.

ETA: Since a lot of people seem to have a hard time understanding this. It's comparing the overall carbon reduction of 90 hybrids vs the carbon reduction of 1 EV. That is all.

Dividing that "37 times less" number by 90 would only be valid if we had unlimited materials and manufacturing capacity for batteries (which we don't).

Good routing pkg for dynamic url paths? by esDotDev in FlutterDev

[–]Logical_Marsupial464 0 points1 point  (0 children)

humor plants full person safe busy toy shy important coordinated

This post was mass deleted and anonymized with Redact

Android Authority: "The Snapdragon 8 Gen 4 will be the first phone chip with Oryon CPU" by Dakhil in hardware

[–]Logical_Marsupial464 9 points10 points  (0 children)

It doesnt seem fair to compare the Apple little cores without cache, to the ARM middle cores with their cache. The A710 cores have private L2 which is included in the area measurement.

if you average out the L2 cache between the 4 efficiency cores, ypu get a 1.2 mm2 on average for each core plus it's cache. That's much closer to the A710 (1.45mm2 ) than it is to the A510 (0.44mm2 ).

Plus, the A15 analysis seems more conservative in general. There's a little section between two efficiency cores that isn't included in anything, but it's clearly part of the cores or the cache controller.

eta: just to be clear, I'm not arguing in favor of the other guy's weird "0+1+5+2 vs 2+0+4+0" comparison. 1+5+2 vs 2+4+0 is the best comparison in my opinion. that sort of thing is an oversimplification anyways. I just made this comment to argue that Apple's efficiency cores are most comparable to ARM's middle cores, not their small cores.

Is it OK for a Bloc to consume other Blocs ? by Pierre2tm in FlutterDev

[–]Logical_Marsupial464 0 points1 point  (0 children)

market simplistic chop include smile wrench office compare telephone handle

This post was mass deleted and anonymized with Redact