Re:Related: Pure Ruby Relational Algebra Engine
by coltonv on Monday May 23, 2016 @05:05PM
(#11756983)
I'm a big fan of ruby but doesn't saying "Pure ruby" kind of detract from rather than improve a libraries value? Ideally it would have rust/C bindings for all the computationally difficult stuff.
[ Parent
| on HN ]
Re:Related: Pure Ruby Relational Algebra Engine
by flipandtwist on Monday May 23, 2016 @05:51PM
(#11757340)
The reason I said that is because a lot of the other libraries I found, like Arel or Sequel, just build off of SQL to interact with databases. And the problem with that is that SQL is a terrible way to get a handle on relational algebra. It is entirely based on RA operations, yes, but it is so high level you barely feel connected to what's actually happening.
Not good when you're trying to learn basic operations and how they interact with each other.
That's the only reason I said "pure". Wasn't really coming from a point of view of performance or compatibility.
Re:Related: Pure Ruby Relational Algebra Engine
by semanticist on Monday May 23, 2016 @07:16PM
(#11757764)
There's other good reasons to be "pure Ruby", educational value: https://news.ycombinator.com/item?id=11757009
And also, while not terribly relevant in this specific case, deployment is easier if you don't have to build native libraries.
Sometimes it's worth going to C bindings for runtime speed, sometimes it's better to keep it purely native for development speed or other reasons.
Re:Related: Pure Ruby Relational Algebra Engine
by tomc1985 on Monday May 23, 2016 @09:14PM
(#11758289)
Why? I hate libs with native compilation. Bundle install doesn't always "just work" then... now you're somewhat bound to your compiler toolchain and whatever platforms your native code is compatible with (which oftentimes doesn't seem to include Windows, without a ton of extra effort)