April 30, 2021

On Friday, 30 April 2021 at 14:16:16 UTC, Vinod K Chandran wrote:

>

On Wednesday, 28 April 2021 at 22:41:03 UTC, Alain De Vos wrote:

>

What are the strengths and weaknesses comparing the two languages ?
I can name a strength of dlang is the working binding to tk and gtk.

Pros of Crystal

  1. Attractive syntax. I like Ruby like syntax. It's really expressive.

Cons of Crystal

  1. It doesn't have a compiler for Windows. It uses WSL based compiler and I think it's a bad idea.

I don't think I need to tell the pros & cons of D lang in it's own forum.
BTW, I wonder to see someone says that they have succeeded in compiling a tkD example code. I tried it with no luck. So I gave up that idea.

I used tkD a long time ago. Look through this repo - maybe something in there will help you.

April 30, 2021

On Friday, 30 April 2021 at 14:16:16 UTC, Vinod K Chandran wrote:

>

BTW, I wonder to see someone says that they have succeeded in compiling a tkD example code. I tried it with no luck. So I gave up that idea.

I did this @2014. No problems remembered.

May 01, 2021

On Wednesday, 28 April 2021 at 22:41:03 UTC, Alain De Vos wrote:

>

What are the strengths and weaknesses comparing the two languages ?
I can name a strength of dlang is the working binding to tk and gtk.

Just to say, Crystal is a neat language, feels like a static ruby.

Strengths:

  • Poweful type inference
  • lightweight julian/ruby like syntax
  • nice lightweight macros, don't know if they were a good fit for D
  • nice yield builtins
  • feels like a lightweight Java
  • nice high level feeling and is GCed

Weaknesses:

  • as I said, it is hard to understand when type inference is used completely everywhere, said that this is crystals killer feature
  • slow compilation time just because of the "type inferred everywhere" design
  • the OOP system lacks specific features from other OOP systems
  • hasn't the same support for low level programming as in D or Nim
  • is relative unknown, although I don't know why.
May 01, 2021

On Friday, 30 April 2021 at 14:49:33 UTC, Alain De Vos wrote:

>

tkd works perfectly. Which O.S. are you using ? I can guide.

I am using Windows 10 x64.

May 01, 2021

On Friday, 30 April 2021 at 17:01:52 UTC, TheGag96 wrote:

>

I used tkD a long time ago. Look through this repo - maybe something in there will help you.

Thanks for the link. Let me check.

May 01, 2021

On Friday, 30 April 2021 at 19:25:16 UTC, Siemargl wrote:

>

I did this @2014. No problems remembered.

May be it's my fault. Let me check once again.

May 03, 2021

On Saturday, 1 May 2021 at 13:04:15 UTC, sighoya wrote:

>

On Wednesday, 28 April 2021 at 22:41:03 UTC, Alain De Vos wrote:

>

What are the strengths and weaknesses comparing the two languages ?
I can name a strength of dlang is the working binding to tk and gtk.

Just to say, Crystal is a neat language, feels like a static ruby.

Strengths:

  • Poweful type inference
  • lightweight julian/ruby like syntax
  • nice lightweight macros, don't know if they were a good fit for D
  • nice yield builtins
  • feels like a lightweight Java
  • nice high level feeling and is GCed

Weaknesses:

  • as I said, it is hard to understand when type inference is used completely everywhere, said that this is crystals killer feature
  • slow compilation time just because of the "type inferred everywhere" design

I seriously wonder if this is a criterion. For example Gitlab which is known to get updated each month, still uses Ruby in their backend. So their clients use scripts that could be 2x to 20x faster if made in Crystal.

>
  • the OOP system lacks specific features from other OOP systems
  • hasn't the same support for low level programming as in D or Nim
  • is relative unknown, although I don't know why.
May 03, 2021

On Monday, 3 May 2021 at 12:02:50 UTC, user1234 wrote:

>

I seriously wonder if this is a criterion. For example Gitlab which is known to get updated each month, still uses Ruby in their backend. So their clients use scripts that could be 2x to 20x faster if made in Crystal.

I don't think it makes any difference. They've rewritten the performance critical parts in Go as needed: https://about.gitlab.com/blog/2018/10/29/why-we-use-rails-to-build-gitlab/ I very much doubt they'd trust their business to a small, work-in-progress language like Crystal.

May 05, 2021

On Friday, 30 April 2021 at 14:16:16 UTC, Vinod K Chandran wrote:

>

On Wednesday, 28 April 2021 at 22:41:03 UTC, Alain De Vos wrote:

>

What are the strengths and weaknesses comparing the two languages ?
I can name a strength of dlang is the working binding to tk and gtk.

Pros of Crystal

  1. Attractive syntax. I like Ruby like syntax. It's really expressive.

Cons of Crystal

  1. It doesn't have a compiler for Windows. It uses WSL based compiler and I think it's a bad idea.

I don't think I need to tell the pros & cons of D lang in it's own forum.
BTW, I wonder to see someone says that they have succeeded in compiling a tkD example code. I tried it with no luck. So I gave up that idea.

What's wrong with WSL. I think it is a great idea.

May 05, 2021

On Wednesday, 5 May 2021 at 18:50:05 UTC, Alain De Vos wrote:

>

On Friday, 30 April 2021 at 14:16:16 UTC, Vinod K Chandran wrote:

>

On Wednesday, 28 April 2021 at 22:41:03 UTC, Alain De Vos wrote:

>

[...]

Pros of Crystal

  1. Attractive syntax. I like Ruby like syntax. It's really expressive.

Cons of Crystal

  1. It doesn't have a compiler for Windows. It uses WSL based compiler and I think it's a bad idea.

I don't think I need to tell the pros & cons of D lang in it's own forum.
BTW, I wonder to see someone says that they have succeeded in compiling a tkD example code. I tried it with no luck. So I gave up that idea.

What's wrong with WSL. I think it is a great idea.

Maybe he meant WSL is good, but relying on it for Windows support is suboptimal. I kinda agree