$30 off During Our Annual Pro Sale. View Details »

Building Crystal in Crystal

Building Crystal in Crystal

Crystal is a compiled ruby-like language and the compiler is written in Crystal itself. That means we can build crystal in crystal! The dream of rubinius come true! Explore a live session trying to implement a new feature in crystal!

This is an impromptu talk exploring what happens if you take a Ruby developer with slight crystal knowledge and let him do a live coding session implementing features in the crystal language itself. Exciting!

(impromptu talk as a talk had to be cancelled)

Tobias Pfeiffer

July 02, 2015
Tweet

More Decks by Tobias Pfeiffer

Other Decks in Programming

Transcript

  1. View Slide

  2. Speaker Tip #0:
    Use non standard slides

    View Slide

  3. Speaker Tip #0:
    Use non standard slides

    View Slide

  4. Speaker Tip #1:
    Rehearse your talk

    View Slide

  5. Speaker Tip #1:
    Check for spelling and
    order issues

    View Slide

  6. Speaker Tip #1:
    Have an engaging intro

    View Slide

  7. Hi

    View Slide

  8. Speaker Tip #2:
    Don't appologize for
    poorly prepared talks

    View Slide

  9. Sorry

    View Slide

  10. Building Crystal in Crystal
    Tobias Pfeiffer
    @PragTob
    Pragtob.info

    View Slide

  11. Speaker Tip #3:
    Avoid bullet lists

    View Slide

  12. Crystal

    Compiled

    (optionally) Statically type-checked

    Method overloading

    Speed

    Ruby-like

    http://crystal-lang.org/

    https://github.com/manastech/crystal

    View Slide

  13. Implemented in itself

    View Slide

  14. Rubinius?

    View Slide

  15. Speaker Tip #4:
    Make sure everything
    is readable

    View Slide

  16. View Slide

  17. View Slide

  18. You got my attention.

    View Slide

  19. Let's live code a
    Crystal feature!

    View Slide

  20. Speaker Tip #5:
    Never ever do live
    coding

    View Slide

  21. Speaker Tip #6:
    Really don't, something
    will go wrong

    View Slide

  22. Speaker Tip #7:
    If you do have a script
    or git history

    View Slide

  23. Oops.

    View Slide

  24. Speaker Tip #8:
    If you do make do it in
    a domain where you
    are really comfortable

    View Slide

  25. I have no idea about
    language
    implementations and
    wrote maybe ~200 loc
    Crystal

    View Slide

  26. Speaker Tip #9:
    If you do use an editor
    you know

    View Slide

  27. Hi Atom.

    View Slide

  28. View Slide

  29. Speaker Tip #10:
    Include some pictures

    View Slide

  30. Why should this work?

    View Slide

  31. It's just Ruby

    View Slide

  32. It's just Ruby(-ish)

    View Slide

  33. Let's get started!

    View Slide

  34. Speaker Tip #11:
    Have a great ending

    View Slide

  35. Thanks!
    @PragTob

    View Slide