pycall.rb
TryRuby
pycall.rb | TryRuby | |
---|---|---|
6 | 8 | |
1,030 | 219 | |
- | 0.9% | |
6.0 | 6.9 | |
7 months ago | 25 days ago | |
C | Ruby | |
MIT License | MIT License |
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.
pycall.rb
- Call Python functions from the Ruby language
-
RFC: Run Python from Ruby and Ruby from Python
Yeah, I know there are few libraries that do similar things: pycall.rb and rb_call, and there is also rubypython, but it's not supported and doesn't work with Python 3. I used pycall to create matplotlib charts from Ruby, it's great, and I'm gonna use part of its code, type conversion implementation, for example. But I don't think it's enough, it's like a one way bridge, I want more, I want to call Python from Ruby and Ruby from Python at the same time: create an Airfow PythonOperator, invoke Ruby code inside, store some value into XCom. What about rb_call, I don't like how it's implemented at all, it starts a separate process and serializes data using MessagePack RPC, so you can't use callbacks. It's not even possible to pass a Python object as an argument or call Ruby method that requires a block. And of course it's not effective.
-
Building an app around a LLM, Rails + Python or just Python?
I have build a rails app that uses openai gem and it's working very well. For more advanced things I am exploring Pycall: https://github.com/mrkn/pycall.rb to call python functions. Don't have any experience though.
-
What's the easiest way to interface my Rails app with a Python library?
I have use this before cool and easy also could run in heroku ()( for my case https://github.com/mrkn/pycall.rb
-
Help!
From docs. I was able to install matplotlib (without --pre):
-
Tips for collaborating with datascience teams
We use https://github.com/mrkn/pycall.rb extensively to interface with python libraries. So far, the only problem we have is memory leaks in python, but we mitigated the problem by isolating the leaking parts in a separate process.
TryRuby
-
Ask HN: Interactive tutorials for learning basics of terminal?
I want to recommend an interactive resource to someone new to programming.
Something like https://try.ruby-lang.org/, but for the terminal.
Most of the top hits on Google either seem to also dive into unnecessary history, scripting/Git, or are not interactive.
Ideas?
-
Learn to Program by Chris Pine
My advice is to spend half an hour (maybe split in 2 sessions) on try-ruby Nothing to download, no install, all in your browser. See if you like it and move on accordingly.
-
The Easiest and Hardest Programming Languages to Learn
Additionally, two recommended books for mastering Ruby are “Eloquent Ruby” by Russ Olsen and “Ruby Programming for Beginners: An Introduction to Learning Ruby Programming with Tutorials and Hands-On Examples” by Nathan Metzler. Furthermore, aside from courses and books, other online resources are available for learning Ruby, such as Tutorialspoint and try.ruby-lang.org.
-
Hey guys, just getting into programming and wanted to know if anyone has any tips or resources for learning Ruby as a beginner. Thanks in advance!
Try https://try.ruby-lang.org/ for half an hour to see if you get the hang of it.
-
Opal Won the Fukuoka Ruby Award 2023 for Outstanding Performance
Opal is used on https://try.ruby-lang.org/ (it is a static website, but the entire website is Ruby, no JavaScript: https://github.com/ruby/TryRuby/ )
-
Help!
ChatGPT can’t write working code very well. If all this seems beyond you, you might want to start with some Ruby fundamentals first. Try Ruby is a good starting point.
-
Opal v1.7 released with Ruby 3.2 support
Like Ruby WASI, it allows you to run Ruby in a web browser, but it takes a different approach - it is, like JRuby, a complete reimplementation of Ruby. Unlike Ruby WASI, you don't have to ship the entire Ruby compiler - you just ship your code compiled to JavaScript along with (possibly) minimal Ruby runtime. You can compare and contrast both on a recently updated TryRuby website (which itself - is a 100% Ruby frontend application compiled with Opal!).
What are some alternatives?
hashpling - hashpling allows you to use shebang on non-UNIX platform
opal-rails - Bringing Ruby to Rails · Rails bindings for Opal
data-science-with-ruby - Practical Data Science with Ruby based tools.
opal-rspec - Opal + RSpec = ♥️
soloud - Free, easy, portable audio engine for games
opal-browser - Browser support for Opal.
ruby-openai - OpenAI API + Ruby! 🤖❤️ Now with Assistants v2, Batches & Ollama/Groq 🚀
isomorfeus-project - The powerful, isomorphic full stack web application development environment.
boxcars - Building applications with composability using Boxcars with LLM's. Inspired by LangChain.
books - List of all Ruby books
rubypython - An in-process between Ruby and Python. Soon changing repo address.
Ruby on Rails - Ruby on Rails