Our great sponsors
- Sonar - Write Clean C++ Code. Always.
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- CodiumAI - TestGPT | Generating meaningful tests for busy devs
- InfluxDB - Access the most powerful time series database as a service
|4 months ago||6 days ago|
|GNU General Public License v3.0 or later||Apache License 2.0|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
2 projects | reddit.com/r/learnprogramming | 12 Oct 2022
Minimize Heap Allocations in Node.js
4 projects | news.ycombinator.com | 28 Sep 2022
[AskJS] Who first used the term "spread operator" re spread syntax ...?
chrome v8 commits referring to spread operator one of them: https://github.com/v8/v8/commit/93b3397e52d3faf38059718de335027e57b9690d
S6: A standalone JIT compiler library for CPython
8 projects | news.ycombinator.com | 17 Sep 2022
Chrome 0day is being exploited now for CVE-2022-1096; update immediately
8 projects | news.ycombinator.com | 26 Mar 2022
Looks like these are the two commits, based on the issue number:
Although there could be others.
Inline Assembly Language. What is that?
2 projects | dev.to | 23 Mar 2022
What parsing techniques do you use to support a good language server?
10 projects | reddit.com/r/ProgrammingLanguages | 1 Mar 2022
It must be a fairly large echo chamber since it has room for Clang, GCC, V8, OpenJDK, Roslyn, etc. (The Zend parser for PHP seems to use some flavor of YACC, but given PHP, I don't know if that strengthens or weakens my point.)
2 projects | reddit.com/r/learnprogramming | 18 Oct 2021
What you're describing is not really possible with JS. Your best bet would be to look at the "V8 engine" source code. It is the interpreter used in Node.js and Chrome (and I think Edge would be using it too as Edge is built on Chromium). But there is nothing forcing Node.js to use V8, there are other JS interpreters. https://github.com/v8/v82 projects | reddit.com/r/learnprogramming | 18 Oct 2021
4 projects | reddit.com/r/ProgrammerHumor | 21 May 2023
and again, everything that was released after using an older version of cython.4 projects | reddit.com/r/ProgrammerHumor | 21 May 2023
Packages using cython (note the linked issues) due to this change.
Codon: Python Compiler
9 projects | news.ycombinator.com | 8 May 2023
Just for reference,
* Nuitka "is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11."
* Pypy "is a replacement for CPython" with builtin optimizations such as on the fly JIT compiles.
* Cython "is an optimising static compiler for both the Python programming language and the extended Cython programming language... makes writing C extensions for Python as easy as Python itself."
* Numba "is an open source JIT compiler that translates a subset of Python and NumPy code into fast machine code."
* Pyston "is a performance-optimizing JIT for Python, and is drop-in compatible with ... CPython 3.8.12"
Any faster Python alternatives?
6 projects | reddit.com/r/learnprogramming | 12 Apr 2023
Profile and optimize the hotspots with cython (or whatever the cool kids are using these days... It's been a while.)
Python executable makers
2 projects | reddit.com/r/Python | 26 Mar 2023
Cython - - embed demo
Been using Python for 3 years, never used a Class.
2 projects | reddit.com/r/learnpython | 15 Mar 2023
There are also just-in-time compilers available for some Python features, that compile those parts to machine code. That includes Numba (usable as a library within CPython) and Pypy (an alternative Python implementation that includes a JIT compiler to improve performance). There’s also Cython, which is a superset of Python that allows more directly interfacing with C and C++ functions, and compiling the resulting combined code.
Python-based compiler achieves orders-of-magnitude speedups
9 projects | news.ycombinator.com | 15 Mar 2023
Surprising Consequences of macOS’s Environment Variable Sanitization
4 projects | news.ycombinator.com | 11 Jan 2023
Conceptually, Cython is mainly for accelerating Python code, and can _also_ access C code. Meanwhile CFFI is specifically for calling C code and nothing else. I recommend the video for the differences.
One concrete thing that pops to my mind is that Cython doesn't support Py_LIMITED_API which means that you need to ship a lot more binary wheels. At least the issue is still open (https://github.com/cython/cython/issues/2542) and Cython projects IME need new wheels for each minor Python release. Compare that to cffi projects that (musl & pypy aside) only have to ship wheels for one Python version / architecture: https://pypi.org/project/argon2-cffi-bindings/#files
Starlite development updates January ’23
9 projects | reddit.com/r/Python | 10 Jan 2023
As you can see, in this benchmark Starlite handily beats even blakchseep, a notoriously fast ASGI framework written in Cython
Codon: A high-performance Python compiler
12 projects | news.ycombinator.com | 8 Dec 2022
How does this relate to
Would it be possible to write performance-sensitive parts of a Python system in Codon and link that to a CPython or PyPy runtime that supports more dynamic features?
What are some alternatives?
Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
SWIG - SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
mypyc - Compile type annotated Python to fast C extensions
Pyston - A faster and highly-compatible implementation of the Python programming language.
ChaiScript - Embedded Scripting Language Designed for C++
dramatiq - A fast and reliable background task processing library for Python 3.
jax - Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more