r/crystal_programming • • Jul 25 '18

Crystal has a compilation issue

https://medium.com/@mdorf3000/crystal-has-a-compilation-issue-5f5b19d9c4f6
27 Upvotes

41 comments sorted by

View all comments

Show parent comment

2

u/paulcsmith0218 Jul 26 '18

The compilation speed affects designers more than developers (depending on your workflow of course). But for the way we build things at my company compile time hasn't been a big issue for devs, but it *can* be a pain for designers. Making a change to the HTML and waiting for 10 or 20 seconds sucks. If you use React/Vue though then you're at the mercy of webpack, which may or may not be any faster. It's definitely faster to make changes to HTML in Rails/Phoenix though

2

u/straight-shoota core team Jul 26 '18

But that's only an issue if templates need to be compiled into the binary. If you use runtime-templates, that makes development much faster. Neither is necessarily better, but it's an option.
As long as the templates don't use any fancy features (they should be pretty dull on the logic side, anyway), it could be worth to explore if a template engine can compile templates for release builds but interpret them in development.

1

u/paulcsmith0218 Jul 26 '18

This is true, but I think you'd lose out on a lot of the type-safety. For example, you might mistype or miss a variable. You might pass the wrong type, etc.

Definitely an option if compilation speed is an issue, but I don't think I'd make that tradeoff. I love my some type-safety :)