4 ms·
I’m always kind of sad that the only way to achieve this always seems to be native code. I think the value of having all your logic in the same language is und
by Aeolun 4y ago
I’m always kind of sad that the only way to achieve this always seems to be native code.
I think the value of having all your logic in the same language is undervalued (Ruby and Node also seem to often use bindings to something compiled).
- nicoburns 4y ago> I’m always kind of sad that the only way to achieve this always seems to be native code. I think the value of having all your logic in the same language is undervalued Well there's one way to have both: just write all your logic in a language that compiles to native.
- nextaccountic 4y agoBut, how often you actually mess up with the internals of your web framework? edit: here I'm biased because even if I used this project and would send a PR to it, I'm okay with doing it on either Python or Rust. But yeah, not every Python programmer can also code in Rust
- olivermuty 4y agoI’d be surprised if even 5% of python devs has put self written rust in production.
- cozzyd 4y agoPython probably has one of the higher percentages of monolingual developers (perhaps only JavaScript is higher?)
- codetrotter 4y agoBut the interpreter itself is written in a compiled language anyway. I don’t see why it matters much that frameworks and libraries you use are compiled code also. But like another sibling said, if you want all in one language, write it all in the compiled language. I use the Hyper library written in Rust, and write my code in Rust. One language, and a very nice one at that :)
- Aeolun 4y ago> I don’t see why it matters much that frameworks and libraries you use are compiled code also. Mostly ability to easily debug every part of your code. If your interpreter has a problem you are out of luck anyway, but there’s probably a reason you are using a scripting instead of compiled language.
- schneems 4y agoI’m a maintainer of the currently most popular Ruby web server (Puma). It’s mostly written in Ruby. Chris Seaton (RIP) gave a talk at RubyConf this year that talks about rewriting stdlib in Ruby for truffleruby. The difference is now jit seems to be powerful enough to produce good speedups. Recently some core MRI methods have been rewritten in Ruby and I wouldn’t be surprised as yjit becomes faster if more aren’t rewritten.
- deleted 4y ago[deleted]
- heavyset_go 4y agoI agree, just because it can be a barrier for contributions. Contributors who want to debug, bug fix or add features might end up having to be proficient not in just Python, but also whatever extensions are written in. At the end of the day, it's still the case that the interpreter is written in an different language, though.