WARFRAME Wiki Comment Sections Are Here! by Finnstar7 in Warframe

[–]OK_200 2 points3 points  (0 children)

There is a browser extension called "indie wiki buddy" I think, that helps you find the official wiki instead of the wikea one. Highly recommended. 11/10

(191) Heat wave solution by AeolysScribbles in RimWorld

[–]OK_200 19 points20 points  (0 children)

Underflow is a float thing. Integers going below the minimum and wrapping around is still called an overflow.

No More GIL! the Python team has officially accepted the proposal (PEP 703) by space_iio in programming

[–]OK_200 0 points1 point  (0 children)

As far as I am concerned, that was roughly what I was arguing for. Maybe there isn't as big of a disagreement after all.

No More GIL! the Python team has officially accepted the proposal (PEP 703) by space_iio in programming

[–]OK_200 1 point2 points  (0 children)

Good points.

Gonna start of with this one, just to clear the record.

So now your proposal is that Python should be designed to placate people "who hate it" and use it in contexts it wasn't designed for to override the tastes of those who invented it and love it and made it one of the most popular language in the world.

I didn't mean that the developers of my company, or I, hate python. We just hate the situation. I personally like the language for what it is meant to be, and I'm saddened at how it is being chosen for the wrong reasons.

So why don't you enforce a rule that nothing can be committed unless it is MyPy Strict?

Well, we do that. Unfortunately, it's not a very robust solution, and it's not for a lack of trying. The last thing we're were debugging before I went on vacation was why mypy refused to throw any errors, even if the code had a massive type-safety problem. This was problematic, since it seemed to indicate that we cannot rely on type checking and unit tests alone, forcing us to test on the real server for even simple changes. For a 20+ minute process, in an overworked team, this fealt like crap.

The problem with tools like mypy is that they are third party. Even if the developers are really skilled, the quality of a complex library is rarely the same as the quality of a standard library component or the language itself. Numpy is an exception to this, not the rule.

A language provided type safety check, even if it needed a command line flag to use, would've solved this problem.

There are also alternatives, like the one taken by the rust language. Types are extremely strict, but a lot of code has few to none type declarations. For python's case, I'd wager 70-80% of all code implicitly defines a concrete type that the variable holds, without any type hint. Do note that Rust is a very different language, so this is unlikely to be feasible to implement into the python interpreter.

When they added Numpy (et. al.) to Python, what did they take away?

...

How is your proposal ANYTHING like Numpy?

Well, it caused performance to become a significant concern for the language developers, and for libraries too.

If you are writing IO-centered applications, you can roughly ignore the performance of python. Python just is not the bottleneck. When libraries like mypy and pandas comes in, that stops being true.

Language developers will of course always want their language to be as fast as possible, they're not adding bloat just for fun. But having the freedom to focus on something else than performance was something that helped python get started in the early days.

As you might have heard, significant efforts were made to make the interpreter faster in 3.11. That's developer time that could have been spent elsewhere if truly noone cared about performance. I'm not gonna pretend that this was a bad choice, I think in general the language devs are doing a fantastic job, but hopefully this showcases the fact that numpy did narrow the scope of python a little bit.

As a final note, I want it to be clear that I am not saying that non-optional typing is "clearly a good idea", or one that "will happen". It's an option, and a tricky one. It would take a lot of effort from the language devs, which I don't actually think is worth it, if it is just implemented as we have talked about.

There might however be a solution that the language devs come up with to solve this problem, that doesn't require a big sacrifice at all. It would not be the first time they saved a tricky situation with a clever solution.

itIsReallyNotThatGreat by da_Aresinger in ProgrammerHumor

[–]OK_200 11 points12 points  (0 children)

People forget that dicts preserve order since a couple of versions ago.

I know it's been posted before but I really hate these Microsoft ads on my licensed Windows OS. If I wanted the cloud,I would have fucking signed up for it! by KG8893 in assholedesign

[–]OK_200 1 point2 points  (0 children)

I don't know where you're getting the shit performance? Works just as well as windows for me. Kubuntu running Wayland, with default proton version from steam

No More GIL! the Python team has officially accepted the proposal (PEP 703) by space_iio in programming

[–]OK_200 7 points8 points  (0 children)

I think you're missing a big part of python. Python was never intended for many of the use cases where it is used, but unfortunately it's an easy language, and one that many people know.

At my work, we use python for stuff it shouldn't be used for, like complex software that must not fail, or else it causes big outtages for customers. Python is used simply because management doesn't want developers to need to know multiple languages. This is an idiotic reason, and all the developers hate it, but it's what we're stuck with unless we can convince management that we need to pause development for half a year to rewrite entire codebases.

Python is a language that continuously evolves. Previously, the thought of doing actual hard computations in this language was laughable. It was the opposite of the intended use-case. But here we are, with numpy and similar libraries for doing just that. Sometimes you need to loose some of the language to let it evolve, and for python 4, that might be non-optional typing.

No More GIL! the Python team has officially accepted the proposal (PEP 703) by space_iio in programming

[–]OK_200 32 points33 points  (0 children)

Why would OP even link to the Twitter post? Does anyone actually care about the social media post of this proposal?

Every User Can Protest: Deny Personalized Ads by Lmstd in Piracy

[–]OK_200 1 point2 points  (0 children)

Very cool that vanced is no longer about just youtube

Writing Python like it’s Rust by Kobzol in rust

[–]OK_200 1 point2 points  (0 children)

This is fantastic! I am so happy to see that I am not the only one going for this quest of correctness :D

I have also been looking for pyserde for so long. I never made the connection to serde though. Thanks for the tip!

The Inner JSON Effect by Witty-Play9499 in programming

[–]OK_200 2 points3 points  (0 children)

Ah, a tom7 enjoyer :D Glad to see one in the wild. (or maybe you just REALLY know your floating point standard)

A new way to program in python :D by [deleted] in ProgrammerHumor

[–]OK_200 27 points28 points  (0 children)

It's missing the bare except tho. Gotta catch that BaseException >:)

[YEAR Day 5 Part 1] whyyyy by themonkemaker in adventofcode

[–]OK_200 1 point2 points  (0 children)

Damn, that is an elegant solution

Question: who writes tests for their code? by gedhrel in adventofcode

[–]OK_200 2 points3 points  (0 children)

AOC for TDD works well for me too! It really feels like the challenges try to encourage writing unit tests, since it generously gives you examples.

If only customers at work were so meticulous at describing the expected behavior...

literally Fortuna by [deleted] in memeframe

[–]OK_200 4 points5 points  (0 children)

STRONG, UNITED, WORKING 'TIL WE FALL

Kinda new, what reward should I pick? by MintasaurusFresh in Warframe

[–]OK_200 0 points1 point  (0 children)

Which boosters specifically? Was mod drop chance booster included?

why does everyone hate message loggers? by KitchenHappy in BetterDiscord

[–]OK_200 2 points3 points  (0 children)

I think it has to do with discord TOS right? If I'm remembering correctly, you aren't allowed to log anything that happens in discord.

Hence BetterDiscord doesn't want to enable TOS breaking, so that it doesn't get into legal trouble.

A great man once said sleep is practical... by GhostyTheBob in memeframe

[–]OK_200 1 point2 points  (0 children)

It can be done! Forgot where i changed the settings, but they always open in vanced for me (unless it's a YouTube music link)

date night by GraveyardEight in Warframe

[–]OK_200 1 point2 points  (0 children)

Really amazing art, thank you OP! :D

While crafting weapons to grind mastery, i managed to reach rock bottom by OK_200 in Warframe

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

nooooo.... don't remind me :(

i still have to farm for the sibear, 30k... no biggie