News for hackers. Stuff that matters.
Re:Language Pragmatics Engineering by BulgarianIdiot on Thursday June 01, 2023 @06:59AM (#36149553)
Except this is bs because modern jit outperforms C and C++ compiled code in some cases. Dynamic types mean the constraints are known later. It doesn’t mean they’re never known. And when they’re known you can partially reduce.
Re:Language Pragmatics Engineering by drpixie on Thursday June 01, 2023 @07:19AM (#36149696)
> Dynamic types mean the constraints are known later.

Don't you mean, constraints are found when the program throws an unexpected exception and leaves you with a largely meaningless stack dump :)

I'd rather have the system tell me "you can't do that" much earlier - at compile time, not run time.

I use python quite a bit, but hate the thought of all those never-exercised control paths, which only occur in the most unusual circumstances - and I know silly problems will show up when those paths do get executed :(

Re:Language Pragmatics Engineering by BulgarianIdiot on Thursday June 01, 2023 @07:53AM (#36149927)
We're discussing performance. Dynamic types do not mean no type errors while you write code. It means the types can be variant at runtime.
Re:Language Pragmatics Engineering by lolinder on Thursday June 01, 2023 @03:22PM (#36156073)
You latched on to the performance question, but the paragraph you were responding to was much broader. It's reasonable for someone to think you were actually responding to the full paragraph and not one phrase.
Re:Language Pragmatics Engineering by fredrikholm on Thursday June 01, 2023 @07:30AM (#36149761)
> modern jit outperforms C and C++ compiled code in some cases

I'd love to see some examples of this. Links?

Re:Language Pragmatics Engineering by lolinder on Thursday June 01, 2023 @03:20PM (#36156045)
Even saying you're correct on performance, that's one point out of four that you've addressed. It's a bit of a stretch to call BS until you've addressed the bugs, refactoring, and legacy code problems.
Re:Language Pragmatics Engineering by xupybd on Thursday June 01, 2023 @09:33PM (#36159790)
> Except this is bs because modern jit outperforms C and C++ compiled code in some cases

In "some cases" doesn't mean the statement is bs. Generally jit is slower than compiled code. There are exceptions to every rule, we use generalizations to reason about the world anyway.