Crystal is the modern Ruby you probably shouldn't use... just yet.

Sdílet
Vložit

Komentáře • 55

  • @randomtvninja
    @randomtvninja Před 10 měsíci +21

    I remember years ago when crystal came out I was super excited because i was obsessed with Ruby.. just sad to see it hasnt really taken off yet.

    • @dreamsofcode
      @dreamsofcode  Před 10 měsíci +5

      Yeahsame here. Ruby has an amazing syntax. Hopefully crystal becomes viable in the near future

    • @SeanLazer
      @SeanLazer Před 9 měsíci

      Same and now having learned some more languages in the meantime I don't really like Ruby that much anymore either haha

  • @daleryanaldover6545
    @daleryanaldover6545 Před 3 měsíci +2

    My first language is Ruby, definitely trying Crystal.

  • @bertrodgers2420
    @bertrodgers2420 Před rokem +21

    I've been using and enjoying Crystal for quite a few years now, one is the big issues for a lot of us is the show compilation speeds, it really becomes a problem on large projects

    • @dreamsofcode
      @dreamsofcode  Před rokem +4

      Oh interesting. That's not something I've even considered. Is the complication parallelized?
      I may have to clone a large project and see how bad it is.

    • @luaking84
      @luaking84 Před 9 měsíci

      It is a little irritating but our app is backed with microservices, so it's not too bad.

  • @user-cs6ze7ve2j
    @user-cs6ze7ve2j Před 6 měsíci +2

    0:34 "I'm using arch btw" lmao, I know it's a joke but it always still gets me

  • @debajyatidey9468
    @debajyatidey9468 Před 10 měsíci +7

    Despite within such short amount of time, the total content you are creating and providing to us is really genuine and must be appreciated.

    • @dreamsofcode
      @dreamsofcode  Před 10 měsíci +2

      Thank you so much. That's really nice feedback to hear and I appreciate it a lot. I love creating the content and improving with each video!

  • @di4352
    @di4352 Před měsícem

    I like your videos, they're really informative!

  • @Mixesha001
    @Mixesha001 Před rokem +14

    It’s promising it’s good to see new option emerging from Ruby style, therefore to me the biggest winner and go to would be Elixir coz FP, also the Phoenix framework is awesome.

    • @dreamsofcode
      @dreamsofcode  Před rokem +6

      I do love Elixir a lot, except for the memory usage of the Erlang VM.
      Other than that, it's such a wonderful language to use.

    • @Mixesha001
      @Mixesha001 Před rokem

      ​@@dreamsofcode Totally agree with you ! would be interesting to see the memory usage of the same app in rails & Pheonix 🤔

    • @Microphunktv-jb3kj
      @Microphunktv-jb3kj Před rokem +1

      new.. crystal has been there for years already... shows that this language is not to be trusted, just a hobby project of someone
      i like, very clean syntax tho, would use it.. if it would actually be decently developed and maintained

    • @Pepsiaddicto
      @Pepsiaddicto Před 9 měsíci +1

      @@Microphunktv-jb3kj Ruby was released in 1995. It took 10 years for it to gain significant popularity and adoption by major companies.

    • @ashraf3053
      @ashraf3053 Před 7 měsíci

      ​​​@@dreamsofcodeSame reason I'm looking at crystal. Developing with nodejs is a pain for me. It's a memory hog😅. Plus I've got vscode(nodejs😂), nodejs and chrome(nodejs, well v8😂) all running together when I work(my machine is kinda old). We're not even talking backend stuff here. Just frontend dev with vite😂😭. I plan to use crystal to make some personal cli tools rn

  • @spr3ez
    @spr3ez Před rokem +7

    As always a good video!

    • @dreamsofcode
      @dreamsofcode  Před rokem +2

      Aww thanks! I'm glad you enjoyed it. I always get spooked when publishing a new video so I appreciate the feedback!

  • @0xN1nja
    @0xN1nja Před 6 měsíci +1

    which theme are you using in neovim?

  • @theperfectionist1607
    @theperfectionist1607 Před 6 měsíci

    Definitely gonna be more relevant in the future

  • @pynimp
    @pynimp Před 4 měsíci

    Until now I have not discovered the popularity of this language within the ruby ​​developer community, I still see developers using ruby ​​instead of using crystal.

  • @nabil.saadouni
    @nabil.saadouni Před rokem +4

    still, a better option than Ruby while I need my command line tools to be protected I can quickly build projects with Crystal and I get my native binary executable ready to use later on I can add some layer of protection on my executable

    • @dreamsofcode
      @dreamsofcode  Před rokem +1

      I agree. There's some benefit to using it especially for cli tools. I just don't think it's ready for microservices at this stage.

  • @thomasslone1964
    @thomasslone1964 Před 4 měsíci

    I always wished ruby was easier to compile but I get that's a whole new thing that makes gems less portable

  • @miniappletheapple
    @miniappletheapple Před rokem +3

    Can you make a video about Elixir? it's also a pretty good language that has a syntax similar to ruby

    • @dreamsofcode
      @dreamsofcode  Před rokem

      I can! I'm a big fan of Elixir and will probably do a video soon :)

    • @miniappletheapple
      @miniappletheapple Před rokem

      @@dreamsofcode I appreciate it! I am very big fan of Elixir too! Elixir's simple FP focusing in concurrency design is perfect for me!

  • @Mempler
    @Mempler Před rokem +5

    "I'm using arch... btw"

  • @TheAxiys
    @TheAxiys Před rokem +8

    Seems like this is to ruby what typescript is to JavaScript

    • @dreamsofcode
      @dreamsofcode  Před rokem +3

      That's a great way of putting it

    • @em_the_bee
      @em_the_bee Před 8 měsíci +2

      If typescript made JS run as fast as C, maybe

  • @nurmohammed9642
    @nurmohammed9642 Před rokem +5

    Sure... those are great features (But not new)...I thing it just better version of Ruby ?

    • @dreamsofcode
      @dreamsofcode  Před rokem

      Yep, agreed! It's certainly interesting but doesn't offer anything unique other than the syntax. It's a shame because I was hopeful for it. I think the nil pointer handling is my favorite, but that exists in other languages as well now a days.

  • @gustavojoaquin_arch
    @gustavojoaquin_arch Před rokem +1

    I use arch btw too

  • @eduardabramovich1216
    @eduardabramovich1216 Před měsícem

    All these new programming langs will never be ready if people ain't writing stuff with them. People have become framework/library users. When python, ruby, java and cpp came out, they didn't have any of the tooling they have today, they had a lot more crap than these modern alternatives. But programmers back then wanted to write code, while "devs" today just want to "get the job done".

  • @ishimachi
    @ishimachi Před rokem +6

    So a language is not good enough to use cause their ecosystem is not mature enough or because they lack libraries… and that is mostly contributed to what exactly? Shunning the language?
    It’s one reason I just don’t get why people say “don’t use this language”. How is it supposed to grow if it lacks the user base to begin with??

    • @dreamsofcode
      @dreamsofcode  Před rokem

      I think this matters for a language to be used in production, personally. I wouldn't want to risk the possibility of the language dying, or the difficulty in on-boarding team members into it, especially if the tooling is lacking compared to other languages.
      That doesn't mean the language should be shunned. As I mentioned in the video, I don't think it's ready for production, just yet.

    • @ashraf3053
      @ashraf3053 Před 7 měsíci

      Yea, they're mostly about targeting ruby users who need more speed. There is c interoperability, meta programming at compile time too😊. And it's fairly easy to port ruby code to crystal. It's majorly funded by Manas company. Total invested into the language by companies is about I think half a mil in total😅. But it's more of an internal tool for them. Besides they announced crystal conf for this month and I did see crystal getting 2 mentions at ruby conf 2022. The dev experience does need some work though but they'll get there.

    • @ashraf3053
      @ashraf3053 Před 7 měsíci

      I like the language but as you mentioned, imma use it for personal projects for now. Not doing anything prod yet anyways.

  • @noname78520
    @noname78520 Před 10 měsíci

    Compilation time is sloooooooooooow

  • @louisgjohnson
    @louisgjohnson Před rokem +45

    I don’t think OOP is a good selling point lol

    • @dreamsofcode
      @dreamsofcode  Před rokem +15

      Haha. Yeah, it's def something we've moved away from. Was the first bit of OOP I've done in a while!

    • @frenchmarty7446
      @frenchmarty7446 Před rokem +6

      Why?

    • @bipinmaharjan4090
      @bipinmaharjan4090 Před rokem +4

      Ya why?

    • @ko-Daegu
      @ko-Daegu Před rokem

      @@frenchmarty7446 cuz it’s cool to shit on OOP
      When every big corporation in this shitty planet work with OOP

    • @markzuckerbread1865
      @markzuckerbread1865 Před 11 měsíci +3

      cause functional is the trend these days

  • @ko-Daegu
    @ko-Daegu Před rokem +1

    So why not just keep using Python then ?

    • @dreamsofcode
      @dreamsofcode  Před rokem

      Python is great, but it is really slow still. Pypy definitely helps to speed it up.

    • @Kalasklister1337
      @Kalasklister1337 Před 3 měsíci

      As someone who has worked daily with python for a few years now i can list some of the major reasons of why i am very interested in replacing it with crystal. I really like union types and using mypy in python we can get sort-of good optional type checking with support for multiple input types. While it works, i would much rather like to have a real compiler that forces me to check all my types before runtime, especially Nil. The other obvious win is performance, where crystal blows python out of the water. I also really like the whole idea of basing a language on LLVM. That means they can outsource most of the really low level optimizing to the c/c++ community where they are really into that stuff.
      I'm basically looking for languages that allow me or a smaller team to be as productive as possible while sacrificing as little as possible in terms of performance. I find that python is still marginally more readable than crystal but it probably comes down to being used to it. I will probably never need Rust level performance in any of my projects but i also don't want to worry about having to write weird optimizations to python later just because the base language is not fast enough. My intuition tells me that crystal has to potential to become really big in webdev where it seems to outshine everything when looking at the trade-off between developer productivity, code quality and performance. It really is kind of like having (almost) rust level safety and at least Java level of perf while writing Ruby with enforced types.