Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FYI, there’s a few projects out there for interoperability between Ruby and Python - stuff like putting one language in another.

Also, Jupyter and Zeppelin notebooks allow for interoperability, although I don’t know how.

(Oh, lastly, if there’s a JVM implementation of Python you could probably use alongside JRuby)



Any recommended ones? Like the parent, I have to reach for Python for AI / ML work and would love to use Rails as the web frontend instead of Django.


For that, I’d just use Rails, and the connect AI/ML tools over an api or (riskier) direct to the DB.

The stuff I looked at ages ago was for literally embedding Python code in Ruby code. I never used any of it either, so I don’t have any recommendations.

Edit: Actually, rather than have Python connect to the Rails DB, have Rails also connect to the Python DB (note that this can be on the same db server, etc). Rails can then handle all the “I’m a product” stuff (user accounts, etc) and then read the Python data for the rest. Would that work?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: