digitalmars.D.learn - dlang vs crystal-language
- Alain De Vos (4/4) Apr 28 2021 What are the strengths and weaknesses comparing the two languages
- Imperatorn (2/6) Apr 28 2021 Crystal has no installer for Windows
- Berni44 (2/3) Apr 28 2021 Is this a strength or a weakness? (SCNR)
- Imperatorn (4/7) Apr 29 2021 lol :)
- Siemargl (3/7) Apr 28 2021 Crystal is Web-only focused.
- sighoya (3/7) Apr 29 2021 Less type annotations, fewer guarantees, less compile performance
- Alain De Vos (3/3) Apr 29 2021 What is the importance of type-annotations in which cases.
- sighoya (24/27) Apr 30 2021 Specifying invariants which becomes very important when
- Vinod K Chandran (12/16) Apr 30 2021 Pros of **Crystal**
- Alain De Vos (1/1) Apr 30 2021 tkd works perfectly. Which O.S. are you using ? I can guide.
- Vinod K Chandran (2/3) May 01 2021 I am using Windows 10 x64.
- TheGag96 (4/20) Apr 30 2021 I used tkD a long time ago. Look through [this
- Vinod K Chandran (2/5) May 01 2021 Thanks for the link. Let me check.
- Siemargl (2/5) Apr 30 2021 I did this @2014. No problems remembered.
- Vinod K Chandran (2/3) May 01 2021 May be it's my fault. Let me check once again.
- Alain De Vos (2/18) May 05 2021 What's wrong with WSL. I think it is a great idea.
- Imperatorn (3/23) May 05 2021 Maybe he meant WSL is good, but relying on it for Windows support
- Vinod K Chandran (3/4) May 05 2021 What Imperatorn said is the write thing. Sorry for not being
- sighoya (18/22) May 01 2021 Just to say, Crystal is a neat language, feels like a static ruby.
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.
Apr 28 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.Crystal has no installer for Windows
Apr 28 2021
On Thursday, 29 April 2021 at 05:41:45 UTC, Imperatorn wrote:Crystal has no installer for WindowsIs this a strength or a weakness? (SCNR)
Apr 28 2021
On Thursday, 29 April 2021 at 05:54:24 UTC, Berni44 wrote:On Thursday, 29 April 2021 at 05:41:45 UTC, Imperatorn wrote:lol :) In all seriousness though. Since it a quite large population of the world, it's a weakness.Crystal has no installer for WindowsIs this a strength or a weakness? (SCNR)
Apr 29 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.Crystal is Web-only focused. And Crystal is not popular, even compared to D.
Apr 28 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.Less type annotations, fewer guarantees, less compile performance as cons.
Apr 29 2021
What is the importance of type-annotations in which cases. X Y Z makes code sometimes unreadable. Sometimes there is a good reason
Apr 29 2021
On Thursday, 29 April 2021 at 22:47:08 UTC, Alain De Vos wrote:What is the importance of type-annotations in which cases.Specifying invariants which becomes very important when refactoring code. Further it aids as documentation to understand the structures behind.X Y Z makes code sometimes unreadable.You mean something like `List!(HashMap!(String,T))`, yes, but I like it in productive code. It's often the case that verbosity becomes a plus in productive software development, as more people have to read code that to write it, a reason why Java is so successfulSometimes there is a good reasonMostly for prototyping and obvious cases. But the most important point of that is to write faster, I wish the IDE would help for this instead of the compiler's inference. I even think D doesn't even profit very well for inferred types, you need anyway to specify auto which only saves work for large type(application)s. But when they are large, you probably want to prefer annotating the type for the variable. to save typing and also being explicit about the type: https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/#target-typed-new-expressions In fact, one could imagine that they overload the new operator (at compiler level) to infer the type from the call site type annotation.
Apr 30 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.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.
Apr 30 2021
tkd works perfectly. Which O.S. are you using ? I can guide.
Apr 30 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 14:16:16 UTC, Vinod K Chandran wrote:On Wednesday, 28 April 2021 at 22:41:03 UTC, Alain De Vos wrote:I used tkD a long time ago. Look through [this repo](https://github.com/thegag96/codewrite) - maybe something in there will help you.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.
Apr 30 2021
On Friday, 30 April 2021 at 17:01:52 UTC, TheGag96 wrote:I used tkD a long time ago. Look through [this repo](https://github.com/thegag96/codewrite) - maybe something in there will help you.Thanks for the link. Let me check.
May 01 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.
Apr 30 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 01 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's wrong with WSL. I think it is a great idea.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.
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:Maybe he meant WSL is good, but relying on it for Windows support is suboptimal. I kinda agreeOn Wednesday, 28 April 2021 at 22:41:03 UTC, Alain De Vos wrote:What's wrong with WSL. I think it is a great idea.[...]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.
May 05 2021
On Wednesday, 5 May 2021 at 18:50:05 UTC, Alain De Vos wrote:What's wrong with WSL. I think it is a great idea.What Imperatorn said is the write thing. Sorry for not being clear.
May 05 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 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: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.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 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 03 2021