Crystal - First Impression [Programming Languages Episode 14]

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 22

  • @eduardabramovich1216
    @eduardabramovich1216 5 місяців тому +1

    Between D and Crystal which one would you prefer for a Data Science app that needs to parse/analyze several million rows? (with performance in mind)

    • @MikeShah
      @MikeShah  5 місяців тому

      I have much more experience in D, so that would be the first tool I reach for. Being able to use the same concurrency primitives in both, D has a csv parser (probably Crystal too) that can make things convenient for speed to get started. The one advantage D has is that it's compiled, and you have an optimizing compiler (i.e. ldc) for greater performance of a potentially expensive task. D also has the 'mir' library for more numerical data science tasks.

  • @gregoryknowlton3734
    @gregoryknowlton3734 9 місяців тому +2

    WOW, i just looked at Compiler Explorer "Crystal" took 3000 lines in assembly code. Just to Square 2 numbers most it was syntax checking.

    • @MikeShah
      @MikeShah  9 місяців тому +3

      Most likely the language run-time is part of that 3000 lines for initialization and bookkeeping 🙂

    • @bsdooby
      @bsdooby 9 місяців тому +3

      Even D produces a lot of ASM
      code (due to the runtime); nothing comes close to C and/or C++ …

    • @bsdooby
      @bsdooby 9 місяців тому +2

      Syntax-wise, Ruby (and Crystal) wins; nicest of them all…😊

    • @MikeShah
      @MikeShah  9 місяців тому +1

      @@bsdooby pascal also is a pretty close translation I have noticed 🙂but yes, anything with a run-time comes with overhead

    • @MikeShah
      @MikeShah  9 місяців тому

      @@bsdooby very clean languages!

  • @Southpaw101
    @Southpaw101 9 місяців тому +1

    Hi Mike, I have a question about your UA-cam videos. What tools do you use to create them. Do you have tablet and pen to draw on the screen , which one would you recommend l and what software you use for recording. I tried obs studio. Would really appreciate your suggestion. I am planning something similar for my own. Learning. Thank You for the help.

    • @MikeShah
      @MikeShah  9 місяців тому +2

      I use Obs Studio, and I have a wacom tablet for drawing on the screen. Cheers!

    • @Southpaw101
      @Southpaw101 9 місяців тому +1

      ​@@MikeShah Thanks a lot for the reply. Appreciate it.

    • @MikeShah
      @MikeShah  9 місяців тому

      Cheers! @@Southpaw101

  • @alaindevos4027
    @alaindevos4027 9 місяців тому +1

    I find crystal only good for web development. Kemal framework is nice.
    It has standard type inference but you can optionally explicit specify the type of a variable.

    • @MikeShah
      @MikeShah  9 місяців тому

      Neat -- have not heard of that framework before.

  • @__hannibaalbarca__
    @__hannibaalbarca__ 9 місяців тому

    Hello; i still stuck in Asio library, ….

  • @vladimirfedorov9461
    @vladimirfedorov9461 9 місяців тому +1

    Features of the language make incremental compilation almost impossible. Сhanging one string literal leads to a complete recompilation of the entire project (((

    • @MikeShah
      @MikeShah  9 місяців тому

      Hmm -- no modules or way to separate out into separate files to avoid this?

  • @iogilarb
    @iogilarb 6 місяців тому +1

    You looks like a Germany footballer, I forgot his name, btw crystal is what ruby want to be, it's a good language but not quite popular, idk why.

    • @MikeShah
      @MikeShah  6 місяців тому

      ⚽Language popularity and inertia is truly an interesting thing to observe -- the best/safest/fastest/etc languages do not always win.