News for hackers. Stuff that matters.
Re:BMG: A Production Ready Relational Algebra in Ruby by elcritch on Tuesday July 14, 2020 @12:19PM (#23833812)
This is great looking! I don't use Ruby, but it's good to see libraries like this. It still surprises me how few libraries implement the relational algebra. Building on proper mathematical theory that's conducive to programming languages really removes a lot of impedance mismatch and leaky abstractions over ORM's.
Re:BMG: A Production Ready Relational Algebra in Ruby by bdcravens on Tuesday July 14, 2020 @12:27PM (#23833952)
The Rails ORM (ActiveRecord) is built atop of a relational algebra gem (arel, which was eventually pulled into the AR library). I'm pretty sure the arel functions are considered private API, so it's not necessarily best practice, but you have the option to call those functions directly when you find the ORM lacking and don't want to pass around raw SQL.
Re:BMG: A Production Ready Relational Algebra in Ruby by blambeau on Tuesday July 14, 2020 @12:47PM (#23834325)
AFAIK Arel is not a real algreba, since it does not really allow composing relations the way we want.

More info here: http://www.try-alf.org/blog/2013-10-21-relations-as-first-cl...

Re:BMG: A Production Ready Relational Algebra in Ruby by bnt on Tuesday July 14, 2020 @12:45PM (#23834298)
Honest question: does it make sense to learn Ruby in 2020, with the hopes to actually have a job with it for the next 5 years? I want to leave JS world for something different, and I’m evaluating Elixir, Python and even PHP. What I’m looking to work on are basically SaaS sites, nothing too crazy. Would appreciate any thoughts.
Re:BMG: A Production Ready Relational Algebra in Ruby by purple-again on Tuesday July 14, 2020 @12:50PM (#23834362)
Don’t bother with a small selection of random opinions that may or may not have an agenda that doesn’t align with yours. Simply go to the monthly who’s hiring posts and compare Ruby to Python etc. for the technologies you are considering. You will need to understand that Rails is actually the keyword you are looking for rather that Ruby and I don’t know enough about the Python ecosystem to help you but I think maybe Django is the major player in that space.
Re:BMG: A Production Ready Relational Algebra in Ruby by iovrthoughtthis on Tuesday July 14, 2020 @01:09PM (#23834649)
My personal experience is that the ruby job market is quite strong. For context, I've been a ruby developer (among other languages) for 5+ years.

Have you tried looking for some ruby work?

Re:BMG: A Production Ready Relational Algebra in Ruby by d4mi3n on Tuesday July 14, 2020 @12:49PM (#23834358)
Depends on the industries and locales you work in. Ruby still has a strong contingent in SF, though I hear it’s somewhat uncommon out in London. This is anecdotal and from fintech circles I’ve worked in.
Re:BMG: A Production Ready Relational Algebra in Ruby by busterarm on Tuesday July 14, 2020 @04:54PM (#23837716)
Still very strong in NY, but everyone's looking for senior hires to do cleanup jobs to fix poorly implemented bolt-on caching schemes in ailing Rails projects.

Ruby is still a great, powerful language, but in the last couple of years I've started to notice that it isn't getting the tooling love that it used to from the community. I'd still work in it for the right job, just like most any other language. Because tools are tools.

Language shouldn't get as much emphasis as it does.

Re:BMG: A Production Ready Relational Algebra in Ruby by save_ferris on Tuesday July 14, 2020 @02:09PM (#23835495)
6 yr ruby dev here. There’s still a pretty good job market for ruby depending on your location/willingness to go remote. I have noticed that more ruby shops are tending to build new services in languages like Elixir and Go, usually out of scaling necessity. It does seem like fewer new apps are being built on ruby these days, but’s that’s largely my personal observation, and the data may say otherwise.
Re:BMG: A Production Ready Relational Algebra in Ruby by pqdbr on Tuesday July 14, 2020 @02:23PM (#23835689)
I have explored the Node ecosystem/frameworks and Python/Django, but I still wouldn't trade Rails for anything.
Re:BMG: A Production Ready Relational Algebra in Ruby by drchopchop on Tuesday July 14, 2020 @01:03PM (#23834552)
Ruby's a bit of a niche, but there are a fair number of big-name companies built on it (Github, Basecamp, etc), certainly not bad to have in your arsenal.

Note: Ruby is the programming language, but in the SaaS world that's usually coupled with Rails (the MVC architecture) and ActiveRecord (the database/SQL layer).

Re:BMG: A Production Ready Relational Algebra in Ruby by someguy101010 on Tuesday July 14, 2020 @01:47PM (#23835182)
Out of the choices that you listed, python is the best long term bet imo, especially for its overall practical use outside of SaaS products.
Re:BMG: A Production Ready Relational Algebra in Ruby by leoh on Tuesday July 14, 2020 @04:34PM (#23837471)
If you are using Java or a JVM language (e.g. Ruby, Clojure, etc.) it may be worth checking out Apache Calcite https://calcite.apache.org/.
Re:BMG: A Production Ready Relational Algebra in Ruby by Abishek_Muthian on Tuesday July 14, 2020 @02:26PM (#23835738)
Is there any such library for Go? I was searching one for simple algebra stuff while back and only prominent math library for Go seems to be gonum[1] which for lack of better term seemed 'too large' for my purpose.

I didn't look properly or is Go's math scene not that great?

[1]https://github.com/gonum/gonum

Re:BMG: A Production Ready Relational Algebra in Ruby by atombender on Tuesday July 14, 2020 @03:35PM (#23836669)
Note that this library implements relational algebra, a specific set of set-theoretical operations on an object called a relation — not general-purpose mathematical algebra.
Re:BMG: A Production Ready Relational Algebra in Ruby by oezi on Tuesday July 14, 2020 @11:45AM (#23833302)
Neat! One obvious question: Is this intended to integrate with Rails?
Re:BMG: A Production Ready Relational Algebra in Ruby by blambeau on Tuesday July 14, 2020 @02:12PM (#23835536)
(lead dev here). Not intended, as I don't use Rails myself. But I would of course support every PR making Bmg compatible/great with it.
Re:BMG: A Production Ready Relational Algebra in Ruby by shay_ker on Tuesday July 14, 2020 @01:19PM (#23834801)
Re:BMG: A Production Ready Relational Algebra in Ruby by bdcravens on Tuesday July 14, 2020 @12:15PM (#23833747)
Just like any gem. You can create models without inheriting from ActiveRecord.
Re:BMG: A Production Ready Relational Algebra in Ruby by iovrthoughtthis on Tuesday July 14, 2020 @01:11PM (#23834673)
Intended - I have no idea.

Possible - Absolutely.