Re: dlang vs crystal-language

2021-05-05 Thread Vinod K Chandran via Digitalmars-d-learn

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.





Re: dlang vs crystal-language

2021-05-05 Thread Imperatorn via Digitalmars-d-learn

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


Re: dlang vs crystal-language

2021-05-05 Thread Alain De Vos via Digitalmars-d-learn

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.


Re: dlang vs crystal-language

2021-05-03 Thread bachmeier via Digitalmars-d-learn

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.




Re: dlang vs crystal-language

2021-05-03 Thread user1234 via Digitalmars-d-learn

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.





Re: dlang vs crystal-language

2021-05-01 Thread Vinod K Chandran via Digitalmars-d-learn

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.


Re: dlang vs crystal-language

2021-05-01 Thread Vinod K Chandran via Digitalmars-d-learn

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.


Re: dlang vs crystal-language

2021-05-01 Thread Vinod K Chandran via Digitalmars-d-learn

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.


Re: dlang vs crystal-language

2021-05-01 Thread sighoya via Digitalmars-d-learn

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.


Re: dlang vs crystal-language

2021-04-30 Thread Siemargl via Digitalmars-d-learn

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.


Re: dlang vs crystal-language

2021-04-30 Thread TheGag96 via Digitalmars-d-learn

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](https://github.com/thegag96/codewrite) - maybe something in 
there will help you.


Re: dlang vs crystal-language

2021-04-30 Thread Alain De Vos via Digitalmars-d-learn

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


Re: dlang vs crystal-language

2021-04-30 Thread Vinod K Chandran via Digitalmars-d-learn

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.


Re: dlang vs crystal-language

2021-04-30 Thread sighoya via Digitalmars-d-learn

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 successful



Sometimes there is a good reason


Mostly 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.


Instead, I want to point to some interesting solution C# offers 
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.




Re: dlang vs crystal-language

2021-04-29 Thread Alain De Vos via Digitalmars-d-learn

What is the importance of type-annotations in which cases.
@X @Y @Z makes code sometimes unreadable.
Sometimes there is a good reason


Re: dlang vs crystal-language

2021-04-29 Thread sighoya via Digitalmars-d-learn

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.


Re: dlang vs crystal-language

2021-04-29 Thread Imperatorn via Digitalmars-d-learn

On Thursday, 29 April 2021 at 05:54:24 UTC, Berni44 wrote:

On Thursday, 29 April 2021 at 05:41:45 UTC, Imperatorn wrote:

Crystal has no installer for Windows


Is this a strength or a weakness? (SCNR)


lol :)

In all seriousness though. Since it a quite large population of 
the world, it's a weakness.


Re: dlang vs crystal-language

2021-04-29 Thread Siemargl via Digitalmars-d-learn

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.


Re: dlang vs crystal-language

2021-04-28 Thread Berni44 via Digitalmars-d-learn

On Thursday, 29 April 2021 at 05:41:45 UTC, Imperatorn wrote:

Crystal has no installer for Windows


Is this a strength or a weakness? (SCNR)


Re: dlang vs crystal-language

2021-04-28 Thread Imperatorn via Digitalmars-d-learn

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


dlang vs crystal-language

2021-04-28 Thread Alain De Vos via Digitalmars-d-learn
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.