For a very long time, I have been planning to play with Crystal as possible substitute/complement for Ruby. With that goal, I have isolated a very small subset of the Ruby project I know the best (yast-storage-ng) and I want to migrate that subset to Crystal to get a general feeling about the language. See the repository with the experiment already in progress.

There is no evil plan to migrate YaST to Crystal. This is just done in the Hack Week spirit of "what if". But if more people join maybe we could get this to an state in which some benchmarks can be executed to check what's the real gain in speed and memory consumption using Crystal instead of Ruby (note: speed and memory are not the only goals of the migration).

Looking for hackers with the skills:

crystal ruby yast

This project is part of:

Hack Week 19

Activity

  • almost 5 years ago: jreidinger joined this project.
  • almost 5 years ago: mvidner liked this project.
  • almost 5 years ago: gfilippetti liked this project.
  • almost 5 years ago: david_kang liked this project.
  • almost 5 years ago: ancorgs added keyword "crystal" to this project.
  • almost 5 years ago: ancorgs added keyword "ruby" to this project.
  • almost 5 years ago: ancorgs added keyword "yast" to this project.
  • almost 5 years ago: ancorgs started this project.
  • almost 5 years ago: ancorgs liked this project.
  • almost 5 years ago: ancorgs originated this project.

  • Comments

    • ancorgs
      almost 5 years ago by ancorgs | Reply

      Interested in the results? See the report of the project at the YaST-devel mailing list (it looked like a better place than this page to hold a discussion):

      https://lists.opensuse.org/yast-devel/2020-02/msg00024.html

    Similar Projects

    Recipes catalog and calculator in Rails 8 by gfilippetti

    My wife needs a website to catalog and sell the products of her upcoming bakery, and I need to learn and practice modern Rails. So I'm using this Hack Week to build a modern store using the latest Ruby on Rails best practices, ideally up to the deployment.

    TO DO

    • Index page
    • Product page
    • Admin area -- Supplies calculator based on orders -- Orders notification
    • Authentication
    • Payment
    • Deployment

    Day 1

    As my Rails knowledge was pretty outdated and I had 0 experience with Turbo (wich I want to use in the app), I started following a turbo-rails course. I completed 5 of 11 chapters.

    Day 2

    Continued the course until chapter 8 and added live updates & an empty state to the app. I should finish the course on day 3 and start my own project with the knowledge from it.

    Hackweek 24

    For this Hackweek I'll continue this project, focusing on a Catalog/Calculator for my wife's recipes so she can use for her Café.

    Day 1


    Fix RSpec tests in order to replace the ruby-ldap rubygem in OBS by enavarro_suse

    Description

    "LDAP mode is not official supported by OBS!". See: config/options.yml.example#L100-L102

    However, there is an RSpec file which tests LDAP mode in OBS. These tests use the ruby-ldap rubygem, mocking the results returned by a LDAP server.

    The ruby-ldap rubygem seems no longer maintaned, and also prevents from updating to a more recent Ruby version. A good alternative is to replace it with the net-ldap rubygem.

    Before replacing the ruby-ldap rubygem, we should modify the tests so the don't mock the responses of a LDAP server. Instead, we should modify the tests and run them against a real LDAP server.

    Goals

    Goals of this project:

    • Modify the RSpec tests and run them against a real LDAP server
    • Replace the net-ldap rubygem with the ruby-ldap rubygem

    Achieving the above mentioned goals will:

    • Permit upgrading OBS from Ruby 3.1 to Ruby 3.2
    • Make a step towards officially supporting LDAP in OBS.

    Resources