News for hackers. Stuff that matters.
Re:Pex: A tool for generating .pex (Python EXecutable) files... by dudus on Friday November 15, 2024 @09:58PM (#42153746)
Python strength is not the syntax but the standard and 3rd party libraries.
Re:Pex: A tool for generating .pex (Python EXecutable) files... by og_kalu on Saturday November 16, 2024 @01:18AM (#42154777)
3rd party libraries don't spring from nowhere. And no language starts having one in abundance. People have to be motivated enough to write all those libraries in the first place and a lot of them are written just to use python syntax over C Code.

I'm not saying it's the only reason to choose python now but it's definitely among the biggest reasons.

Re:Pex: A tool for generating .pex (Python EXecutable) files... by qrtianl on Saturday November 16, 2024 @06:35AM (#42155888)
Not necessarily. Python had the best C-API, that was the main reason. If Nim or Lisp copied that C-API people might move.

It is safe to say in 2024 that people do not want FFIs.

Re:Pex: A tool for generating .pex (Python EXecutable) files... by og_kalu on Saturday November 16, 2024 @12:45PM (#42157705)
Yes but we're still getting to the same point.

Why not just call the C code you've already written in C ? Because they would rather use python (or python like) syntax.

I don't think we actually disagree here. Even your point about the better C-API doesn't indicate that syntax wasn't a deciding factor, just that one of several options had better compatibility.