Lurker News
Back to discussion

Comment by cure

cure4 replies#
PyPy is faster than Python, yes. But Go, C and many other (compiled) languages are way faster than PyPy. Plus, if you use a language like Go or Rust then you avoid Python's GIL and you'll have much more reasonable memory usage. Best of all, deploying is a matter of copying a binary, rather than having to deal with the absolute disaster that is Python packaging.
klyrs1 reply#
Filesystem with a GIL, what could possibly go wrong? /s
emmelaich1 reply#
A lot less will go wrong than a filesystem without a GIL.

GIL is for safety and correctness, not speed.

y4mi#
Uh, no?

Python's global interpreter lock was added for single threaded speed and c library integrations, which often can't be used multithreaded
There was some talk about removing it recentlish to improve pythons multithreaded performance and Guido said something along the lines of
> "I'll remove it as long as single threaded performance doesn't suffer"
Which nobody succeeded in

nine_k3 replies#
Go? A GC'd language in kernel? (Well, yes, this has been done, from Lua to Haskell, but only experimentally.)
weberc21 reply#
Python is also a GC’d language...
twa9272 replies#
CPython is mostly reference-counted.

Continue this thread — 2 replies

pjmlp#
I wouldn't consider the workstations sold by Xerox, TI, Connecting Machines, the OS research department at ETHZ or the Microsoft’s natural language search service for the West Coast and Asia, just experiments.
deaddodo#
> Plus, if you use a language like Go or Rust then you avoid Python's GIL

No, but then you run into Go's GC and green threads. File systems fit squarely in the realms of "systems programming" (old definition [1], not new). Languages like Ada, Pascal, C/C++, Rust and D (without GC).
[1] - https://en.wikipedia.org/wiki/System_programming_language