4 ms·
nit: 'Python-based' would imply to me that it's written in Python, but it looks like it's mostly C++ & LLVM: https://github.com/exaloop/codon/tree/develop/codo
by ginko 4y ago
nit: 'Python-based' would imply to me that it's written in Python, but it looks like it's mostly C++ & LLVM:
https://github.com/exaloop/codon/tree/develop/codon https://github.com/exaloop/codon/tree/develop/codon
- pgt 4y agoHardly a nitpick. It's key to the claim.
- nerdponx 4y agoIt's a little sad because PyPy literally is written in (a restricted subset of) Python, hence the name.
- v3ss0n 4y agoAnd it is severely underrated. Even though performance gain is aevrate around 4x-20x. Used in production and memory usage is also about 1/6th of CPython. Can get 10x perfromance easily in many cases.
- ddorian43 4y ago> Used in production and memory usage is also about 1/6th of CPython I thought it would have higher memory usage? (based only on reading)
- smolder 4y agoI suspect their relative memory efficiency depends on the size of the program and the size of the data it's processing.
- chc 4y agoSomewhat paradoxically, PyPy always uses more memory for programs with small working sets, but can use less memory for programs with large working sets. 1/6 is a lot more extreme than I would have expected, though.
- rurban 4y agoNo, it has drastically less memory requirements. It's very similar to my perl compiler, and even in non-optimizing mode it uses much less memory. In optimizing mode it's almost the same as this one. Just ~20 years older.
- avinassh 4y agoI experimented with SQLite, trying to insert many rows in under a minute. I ran my script with PyPy, with zero changes and it was 4x times faster! code here: https://github.com/avinassh/fast-sqlite3-inserts https://github.com/avinassh/fast-sqlite3-inserts my blog post: https://avi.im/blag/2021/fast-sqlite-inserts/ https://avi.im/blag/2021/fast-sqlite-inserts/
- avgcorrection 4y agoWhat does “literally” buy you here?
- chc 4y agoIt's a nit-pick because it's ultimately just a gripe about ambiguous phrasing, not because the implications of what the phrasing means are unimportant.
- scott_s 4y agoA fair implication, but they mean "Python-based" in that the language the compiler implements is based on Python.
- benj111 4y agoThey should have said python compiler (shorter) or python compiler in c++ (more accurate and only one character longer, including spaces). Considering at least 2 people have gone to look at the source and then come here to comment, it would have been a net benefit for all involved. Plus, what does it say about the potential quality of your compiler if you can't even make correct English statements? This seems easier to get right than if( x = *p++ )
- daquisu 4y ago> This seems easier to get right than if( x = *p++ ) For people with native or fluent English, for sure. For the others, probably not.
- benj111 4y agoWhat level of English fluency should we expect of professors at MIT and writers for their site?
- xapata 4y ago_The Shaft_, a Georgia Tech periodical (similar to _The Onion_ in spirit), interviewed a local associate professor: "How can I be expected to teach math if my students don't speak basic Mandarin?"
- jbylund 4y agoThese headlines usually work by the dept asking a researcher for a 10 sentence summary of their work. Someone in the dept summarizes that to 3 sentences, and sends that to the university pr dept. The university turns that 3 sentences into 1 and that's what's published. My take is this says more about the weird game of telephone being played than it does about the research product itself.
- capableweb 4y agoGithub reports it's 55% C++ and 43% Python, not too bad if it's correct.
- ginko 4y agoI would expect a large chunk of the 43% Python to be tests.
- capableweb 4y agoYeah, that'd make sense. Good point.