News for hackers. Stuff that matters.
Re:gh-116167: Allow disabling the GIL by cmeacham98 on Monday March 11, 2024 @01:31PM (#39671042)
This seems a bit like saying "JavaScript supports types!" because of typescript.
Re:gh-116167: Allow disabling the GIL by ralphist on Monday March 11, 2024 @02:01PM (#39671394)
It's not a separate language, you can just start typing your programs right now.
Re:gh-116167: Allow disabling the GIL by nextlevelwizard on Monday March 11, 2024 @04:52PM (#39673107)
except nothing enforces your types at run time, you can have typi hints all you want and everyone else cn ignore them
Re:gh-116167: Allow disabling the GIL by aunderscored on Monday March 11, 2024 @05:57PM (#39673699)
Same exists with laws. And in most languages if I want to avoid the type system and hand you a goldfish instead of an int, I can. It just may take more effort. Other language will blow up too if you hand them strange things. Just like python those languages have ways to verify you're not passing goldfish, You just may need more or less effort to use them
Re:gh-116167: Allow disabling the GIL by nextlevelwizard on Tuesday March 12, 2024 @02:34AM (#39676747)
Thats a lot of words for: yeah, you are right
Re:gh-116167: Allow disabling the GIL by aunderscored on Tuesday March 12, 2024 @05:15PM (#39685049)
A lot of words for "yes, but all languages have this problem." The amount of effort to break the type system is the only difference.
Re:gh-116167: Allow disabling the GIL by nextlevelwizard on Wednesday March 13, 2024 @04:49PM (#39697305)
any type safe lnguage will indeed "blow up" while python just continues and you dont get as much as a warning. you are wrong take the L
Re:gh-116167: Allow disabling the GIL by ralphist on Tuesday March 12, 2024 @06:58AM (#39678100)
Everyone else can ignore every coding guideline your team sets up, that’s why code reviews and managers exist.
Re:gh-116167: Allow disabling the GIL by posix_monad on Monday March 11, 2024 @02:37PM (#39671821)
Types are way more mainstream in the JS ecosystem than they are in the Python ecosystem. If you want a "scripty" language with types, then TypeScript is a reasonable choice.
Re:gh-116167: Allow disabling the GIL by wiseowise on Monday March 11, 2024 @02:03PM (#39671422)
Both true. What’s wrong with them?
Re:gh-116167: Allow disabling the GIL by nick238 on Monday March 11, 2024 @05:15PM (#39673324)
Python actually has type safety though, as you can't do `'1' + 1` like in JS (not that a linter wouldn't scream at you). If I hear another "I compile <insert language> so I know it will work, but you can't do that in Python" I'll lose it. Having the compiler not complain that the types match is not effing "testing".
Re:gh-116167: Allow disabling the GIL by scubbo on Monday March 11, 2024 @06:32PM (#39673967)
> Having the compiler not complain that the types match is not effing "testing".

It absolutely is - it's just testing at a _very_ low level of correctness, and is not sufficient for testing actual high-level functionality.