3 ms·
"Python with C data types" was somewhat of a design goal for Pyrex, the language that Cython followed/built on: http://www.cosc.canterbury.ac.nz/greg.ewing/pyt
by maxerickson 12y ago
"Python with C data types" was somewhat of a design goal for Pyrex, the language that Cython followed/built on:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/About.html http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ver...
- dang 12y agoThat's fascinating because it is very much about the same problem.
- maxerickson 12y agoI guess I'm not sure which tool you meant was adapted; Cython (and Pyrex) certainly adapt Python to work more directly with memory, but I would say the style of code in the article is an intended use case of them. (I also might have undersold the connection between the two, Cython is arguably just a friendly fork (I guess mostly they wanted to move faster))
- dang 12y agoI just meant that the OP is adapting Python (via Cython) similarly to how FFI-driven LuaJIT adapts Lua. The resulting programming style is different enough from classic Python or Lua that it approaches being a different language—something like an embedded C DSL.