From Rust to Ruby

(xlii.space)

33 points by xlii5 hours ago

9 comments

  • JSR_FDED13 minutes ago
    This defies belief. “I wanted to scratch a technical itch. My local AI completed the job in 30 minutes. I never pressed Start to see if it works, but I did write a blog post about it…”
  • digitaltrees4 minutes ago
    I built a set of gems (propel_rails) that takes the already terse Ruby on Rails code to the next extreme. It generates a set of top level classes like an API controller and some concerns that then create a full restful resource (model, controller, serializer, unit and e2e tests) with 0 boilerplate code. The controller ends up being only a list of all permitted attributes the api will accept because the restful actions are automatically generated. It’s a bit hard to fully describe but the meta programming power of Ruby really does make amazing things easy.
  • encodedrose19 minutes ago
    &gt;But before I did so I researched first. I asked a few instances to analyse the project in terms of gains of complexity, stability, testability, etc., and while (obviously) stability would drop (no types in Ruby) it’s not that awful (Sorbet has types in Ruby!).<p>Is it not a rage-bait argument to say that not having types implies less stability?
    • lmm16 minutes ago
      No? Maybe the industry can now talk maturely about tradeoffs like that rather than pretending they don&#x27;t exist.
  • daemin1 hour ago
    At first I thought this would be an interesting article, but as soon as they mentioned using an LLM to do the conversion I lost all interest. It&#x27;s like saying &quot;I wanted this done so I got my underling to do it, here is my story...&quot;. Like why would I bother to read it then, as it was clearly not you doing the conversion or putting any thought into it.
  • october81401 hour ago
    I&#x27;m not sure any language + framework prioritizes developer happiness as much as Ruby on Rails.
    • ch4s349 minutes ago
      I get a similar feeling from Elixir and Phoenix without the method_missing foot gun.
  • h4kunamata24 minutes ago
    From whatever to Go ... hype!<p>From Go to Rust ... hype!<p>From Rust to Ruby ... the new hype!?
  • honeybadger22315 minutes ago
    Idk why people are shitting on you. So many LLM haters on here. It’s changed the game completely and some people just don’t want to accept it.<p>I think this is cool. Verbosity of languages is important when it comes to coding with AI. I’ve found Go to be a happy medium.
  • JSR_FDED23 minutes ago
    To count lines of rust code:<p>fd . -e rs -uu | xargs cat | wc -l<p>Why not just:<p>find . -name &#x27;*.rs&#x27; | xargs wc -l
  • lmm1 hour ago
    &quot;I have no idea if it works or not because I haven’t yet tried running it. But it&#x27;s 5x shorter!&quot;
    • october81401 hour ago
      The fact that it doesn&#x27;t end with what happens when they run `rails server` makes me think they did it and didn&#x27;t like the results.
    • pahbloo15 minutes ago
      Not a xkcd, but quite relevant:<p><a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20091015091833&#x2F;http:&#x2F;&#x2F;www.hackles.org&#x2F;cgi-bin&#x2F;archives.pl?request=310" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20091015091833&#x2F;http:&#x2F;&#x2F;www.hackle...</a>