News for hackers. Stuff that matters.
Re:Ruby Together by seiferteric on Wednesday March 09, 2022 @10:02PM (#30622764)
The usual reason given is lack of libraries compared to python. I started a project a while ago with the idea that you could create a ruby library that would implement the C python extension API using the ruby C extension library... I got some basic stuff working, so you could "import" a basic python C extension in ruby (after recompiling it against my headers/library). Then you can use a python -> ruby transpiler (which does exist) to convert the python parts of the code to ruby and maybe have stuff "just work". The more I got into it though, it seemed pretty daunting to get something like numpy working... so I have stopped for now.
Re:Ruby Together by axelthegerman on Wednesday March 09, 2022 @10:08PM (#30622802)
I'm not sure what Python library you couldn't find an equivalent for in rubygems. I never had a problem finding what I needed. (Maybe some ML or related fields?)

Depending on the size of the library it might make sense to rewrite it. Using C extensions is more popular than Python or other languages

Re:Ruby Together by ta988 on Wednesday March 09, 2022 @11:00PM (#30623081)
Many things in rubygems are unmaintained, prototypes or really incomplete.
Re:Ruby Together by vidarh on Thursday March 10, 2022 @06:22AM (#30625700)
That's the case in any package manager open to anyone to submit to.
Re:Ruby Together by mooreds on Wednesday March 09, 2022 @10:08PM (#30622809)
Ah, good point. Domain does matter. But that didn't seem to be what the original poster was pointing to.

Based on my ambient knowledge, I wouldn't want to write anything in the machine learning space in ruby. Or for that matter in any language other than python (or maybe scala/java, if you are using spark).

Or are you suggesting that python has more/superior libraries compared to ruby across the board?

Re:Ruby Together by chucke on Thursday March 10, 2022 @02:33AM (#30624162)
Why not just use numo, Ruby's own numpy?