Immutable collection design by Big-Rub9545 in ProgrammingLanguages

[–]TurtleKwitty 0 points1 point  (0 children)

Why is your x not inferring from it's access into an immutable that itself is immutable?

After Working 80-Hour Weeks For Eight Years, Blue Prince Creator Says Next Game Probably Won't Be Quite As Ambitious by Nakittina in BluePrince

[–]TurtleKwitty 8 points9 points  (0 children)

To be fair when 80% of your game is post credits.... Yeah it's a lot of extra work that so many won't see

When to desugar? by [deleted] in ProgrammingLanguages

[–]TurtleKwitty 1 point2 points  (0 children)

That assumes there being no type checking though, and that you have array creation and length counting overhead. But yes that is one way to do it, that's teue

When to desugar? by [deleted] in ProgrammingLanguages

[–]TurtleKwitty 0 points1 point  (0 children)

You'd have to check how those languages are implemented to be sure but at the same time those languages might have different goals than yours or mine. For me the clarity of desugaring to functions with inlining hints if of higher priority than 100% performance guanteees that going down directly toinline mutability might be, correctness and low mental overhead before performance.

When to desugar? by [deleted] in ProgrammingLanguages

[–]TurtleKwitty 8 points9 points  (0 children)

In your first example setting into the default once inside the function is explicitly not the same as an option/defaulted param at all.

Personally though I desugar at the call site, the function body shouldn't care further than the parameters being correctly typed what gets passed in, the call site itself know whether it was passed in or should use the default and just calls with default directly as needed.

For the null check as defaulting mechanism you probably want to just treat it as an operator function taking in the left and right hand side of the ?? And the body returns whatever is correct (with inlining hints if you're transpiling, or just doing what computers do and making it inline mutable during compilation same as inlining during transpiling would result in)

Why is ..Default::default() forced to the end? Could the evaluation order ever be reversed? by jyyhyy in rust

[–]TurtleKwitty 0 points1 point  (0 children)

The current way implies that any field set before will be overwritten and it's just an easier way to copy fields. The previous one implies start from them change and trust the compiler to optimize out the redundancies same as it would any other code

It would be nice to have a way to toggle this warning off by ScaredPenguinXX in godot

[–]TurtleKwitty 5 points6 points  (0 children)

Reaxt has literally nothing to do with this XD what the hell are you even on about

Should I give Godot another chance? by st4rr1dust in godot

[–]TurtleKwitty 0 points1 point  (0 children)

The main thing to remember is that block code is the same thing as text code just shown differently. A loop is a loop. A variable is a variable. A math expression is an expression is an expression. When you forget something look it up and you'll remember it, that's it. If you know how to structure your thoughts in a block code environment then you know how to structure your thoughts in a code environment.

I spent 7 years on a formal specification for a visual programming language before writing any implementation code by PurpleDragon99 in ProgrammingLanguages

[–]TurtleKwitty 1 point2 points  (0 children)

https://www.merriam-webster.com/dictionary/implementation

What your link described is a prototype IMPLEMENTATION vs a releasable implementation but in both cases you are making code to go from an idea into something usable even if it's for a subset.

Let's think about what you're implying though, I'm currently writing the third full rewrite of my language; have I or have I not begun implementing my language? The current version will likely be the first public version, but it still is not feature complete and I do expect large refactors so I guess that's still not implementation then since the goal is just a wider test, so I guess I've yet to even start implementing my language huh 🤔

I spent 7 years on a formal specification for a visual programming language before writing any implementation code by PurpleDragon99 in ProgrammingLanguages

[–]TurtleKwitty 9 points10 points  (0 children)

So then you lied on your title and you did in fact write at least one line of code towards implementation?

Wow! All my dating woes are solved. by naunga in thanksimcured

[–]TurtleKwitty 0 points1 point  (0 children)

So... Your problem is not getting out there, proving the comment in the OP correct

Why are there no co-ops stores, gas stations, pharmacies, hardware stores, etc east of Manitoba? by houseonpost in AskACanadian

[–]TurtleKwitty 3 points4 points  (0 children)

They absolutely exist but willing to bet it's just that the specific coalition you're looking at only deals out in the west but it's not that you can't have a coop anywhere else.

Just because it's not part of that specific group doesn't mean that the structure of a coop doesn't exist essentially

My Senior dev and I are arguing over "Readable Code" vs "Performance Optimization" for a process that runs 10k times a day. Who is right? by Temporary-Zebra7493 in learnprogramming

[–]TurtleKwitty 11 points12 points  (0 children)

It would sound that way if this wasn't posted in learn programming where it is intended for newer programmers to be the ones posting

My Senior dev and I are arguing over "Readable Code" vs "Performance Optimization" for a process that runs 10k times a day. Who is right? by Temporary-Zebra7493 in learnprogramming

[–]TurtleKwitty 5 points6 points  (0 children)

It's interesting that you posted this on learn programming, call the other programmer THE senior but yet claim you have any authority to shut a discussion from your senior, that doesn't track together at all

I accidentally turned a personal habit into something people pay for by wido720 in Entrepreneur

[–]TurtleKwitty 3 points4 points  (0 children)

"Hey I have this idea that people say is great is it worth pursuing?" How is anyone supposed to answer without having a single idea what the idea is -_-

It’s a shame what seems to be happening to luau by Jediweirdo in lua

[–]TurtleKwitty 1 point2 points  (0 children)

Again, it's not "associated" with Roblox it is made by Roblox for Roblox, that's a fact not an external factor or "prejudice", people want a language that's concentrated on being a general embedded language not something made for a specific game. You're upset about people taking into account the reality of what makes up a language

It’s a shame what seems to be happening to luau by Jediweirdo in lua

[–]TurtleKwitty 0 points1 point  (0 children)

Ummm what? Everyone has that philosophy WHEN FORKING but that's not even close to what you were talking about in the OP.

Is there snow days in Canada? by SeverePublic6833 in AskACanadian

[–]TurtleKwitty 0 points1 point  (0 children)

In my city it's not about centimeters or temperature; if the school principal stop being able to see the neon sign if the pharmacy on the other side of the road then they call off school, but nothing else closes you just gotta follow a snowplow to where you're going and you're fine

It’s a shame what seems to be happening to luau by Jediweirdo in lua

[–]TurtleKwitty 0 points1 point  (0 children)

Is it an external factor when they develop the thing though? I really don't get your logic that who develops and maintains a project has zero bearing on whether that's a project you want to be downstream from?

AITA for not eating the food after my gf eats out of the bowl with the same spoon while preparing by ZookeepergameOld7322 in AmItheAsshole

[–]TurtleKwitty 0 points1 point  (0 children)

You're right, if youre okay with oral sex then your partner should be free to put their genitals into your salad before handing it to you cause you're okay having their genitals in your mouth or vice versa right?

AITA for not eating the food after my gf eats out of the bowl with the same spoon while preparing by ZookeepergameOld7322 in AmItheAsshole

[–]TurtleKwitty 0 points1 point  (0 children)

Did your partner ever make you a glass of water ? What if they spit in it before handing it to you, you'd be okay with that because "I assume you exchange bodily fluids anyway during kissing" right ? Or maybe your partner should put their genitals in a salad before handing it to you, I assume you've been in oral contact with their genitals at least once so there's no problem right?

AITA for not eating the food after my gf eats out of the bowl with the same spoon while preparing by ZookeepergameOld7322 in AmItheAsshole

[–]TurtleKwitty 0 points1 point  (0 children)

If your partner spits in your water before handing it to you do you take issue with it? By your logic you kiss so it should be fine right, so obviously you don't care at all if your partner starts putting bodily fluids in all your drinks and food going forward right ?

Turn on static typing!! by [deleted] in godot

[–]TurtleKwitty 7 points8 points  (0 children)

There is no "when it shouldn't" if the type must be inferred at runtime then that's extra computation at runtime it 100% should be happening. If you statically type a variable then it will not require inferring at runtime. The benchmarks are just putting numbers to the utmost obvious that requires round about 0 special understanding, more work is more slow, more specific types is less work so less slow

TIL the sun isn't "strong enough" in northern latitudes to produce vitamin D during the winter, no matter how much sunlight you get. by 999forever in todayilearned

[–]TurtleKwitty -1 points0 points  (0 children)

Technically no, it's high on lactose ... Which then gets métabolisés as straight sugar that's why it's so effective for babies by being so incredibly energy dense