Re: Crystal

2013-03-21 Thread Steven Schveighoffer
On Wed, 20 Mar 2013 13:32:50 -0400, Russel Winder rus...@winder.org.uk wrote: PS http://www.digitalmars.com/d/archives/digitalmars/D/announce/ appears to stop in 2012-12 http://forum.dlang.org/group/digitalmars.D.announce Don't use that other thing any more. -Steve

Re: Crystal

2013-03-20 Thread Simen Kjaeraas
On 2013-02-17, 10:52, Russel Winder wrote: Why is this thread on the announce mailing list instead of the discussion list? Because it's more an announcement, and less a discussion about D? -- Simen

Re: Crystal

2013-03-20 Thread Russel Winder
On Wed, 2013-03-20 at 17:31 +0100, Simen Kjaeraas wrote: On 2013-02-17, 10:52, Russel Winder wrote: Why is this thread on the announce mailing list instead of the discussion list? Because it's more an announcement, and less a discussion about D? The original posting was clearly an

Re: Crystal

2013-03-20 Thread Graham Fawcett
on for the last half month or so. It's a new programming language which aims to be efficient, have similar syntax to Ruby, and where you never have to specify types of variables and arguments. https://github.com/manastech/crystal/wiki/Introduction I'd also like to ask you: 1. Do you know whether a similar

Re: Crystal

2013-02-28 Thread thedeemon
On Sunday, 17 February 2013 at 06:28:09 UTC, Ary Borenszweig wrote: One time I asked in this newsgroup if it was possible to have an auto keyword for function/method arguments. And... why not make all functions/methods be templates on the type of its arguments? I think nobody liked this

Re: Crystal

2013-02-28 Thread pjmlp
On Thursday, 28 February 2013 at 08:22:45 UTC, thedeemon wrote: On Sunday, 17 February 2013 at 06:28:09 UTC, Ary Borenszweig wrote: One time I asked in this newsgroup if it was possible to have an auto keyword for function/method arguments. And... why not make all functions/methods be

Re: Crystal

2013-02-27 Thread David Nadlinger
On Wednesday, 27 February 2013 at 03:48:53 UTC, Jordan Miner wrote: It does make me wish that LLVM supported exceptions on Windows... It does support DW2-style exceptions on 32 bit MinGW now and there are preliminary patches for 64 bit SEH, even if 32 bit SEH is still unsupported.

Re: Crystal

2013-02-26 Thread Jordan Miner
on for the last half month or so. It's a new programming language which aims to be efficient, have similar syntax to Ruby, and where you never have to specify types of variables and arguments. https://github.com/manastech/crystal/wiki/Introduction I'd also like to ask you: 1. Do you know whether a similar

Re: Crystal

2013-02-26 Thread Walter Bright
On 2/25/2013 6:50 AM, Ary Borenszweig wrote: On 2/19/13 6:08 PM, Walter Bright wrote: On 2/16/2013 10:28 PM, Ary Borenszweig wrote: https://github.com/manastech/crystal/wiki/Introduction Just a thought - the Introduction needs an introductory (!) paragraph at the beginning explaining what

Re: Crystal

2013-02-25 Thread Ary Borenszweig
On 2/19/13 6:08 PM, Walter Bright wrote: On 2/16/2013 10:28 PM, Ary Borenszweig wrote: https://github.com/manastech/crystal/wiki/Introduction Just a thought - the Introduction needs an introductory (!) paragraph at the beginning explaining what Crystal is, what its point is, and where it fits

Re: Crystal

2013-02-21 Thread Jesse Phillips
On Sunday, 17 February 2013 at 06:28:09 UTC, Ary Borenszweig wrote: I'd also like to ask you: 1. Do you know whether a similar language exists? Not sure how similar all the goals are (dynamic with static benefits) but there is Magpie: http://magpie.stuffwithstuff.com/

Re: Crystal

2013-02-21 Thread Jacob Carlborg
On 2013-02-21 21:37, Jesse Phillips wrote: Not sure how similar all the goals are (dynamic with static benefits) but there is Magpie: http://magpie.stuffwithstuff.com/ Doesn't that run on the JVM? -- /Jacob Carlborg

Re: Crystal

2013-02-21 Thread Jesse Phillips
On Thursday, 21 February 2013 at 21:59:06 UTC, Jesse Phillips wrote: Doesn't that run on the JVM? I couldn't find what it generates to. It has an interpreter in Java and C++ though. Ok, that sounds really stupid. I thought it had a compiled component, but I don't see that, just looks to be

Re: Crystal

2013-02-21 Thread bearophile
Jesse Phillips: Ok, that sounds really stupid. I thought it had a compiled component, but I don't see that, just looks to be interpreted. Magpie designer (Bob Nystrom) is a quite smart person :-) Here he explains two main kinds of iterations:

Re: Crystal

2013-02-20 Thread Knud Soerensen
On 2013-02-17 07:28, Ary Borenszweig wrote: The goal of this programming language it so be as efficient as possible, but probably it won't be as efficient as C in the general case. But... who knows? Do you know abou julia ? http://julialang.org/

Re: Crystal

2013-02-20 Thread Ary Borenszweig
/ Yes :-) Before we started developing Crystal we searched for similar languages, found Julia and it really amazed us. It's similar in some aspects, like the use of LLVM, multiple-dispatch and the idea that implementing everything in the same language leads for more optimizable and inlineable code

Re: Crystal

2013-02-19 Thread Walter Bright
On 2/16/2013 10:28 PM, Ary Borenszweig wrote: https://github.com/manastech/crystal/wiki/Introduction Just a thought - the Introduction needs an introductory (!) paragraph at the beginning explaining what Crystal is, what its point is, and where it fits into the universe of programming

Re: Crystal

2013-02-18 Thread Ary Borenszweig
On 2/17/13 5:46 PM, Jacob Carlborg wrote: On 2013-02-17 21:22, Ary Borenszweig wrote: Since it's not yet implemented, it could be like that, or it can be that it is evaluated when you execute the program (but not at compile time). But if I just but code that the top level of a file, when at

Re: Crystal

2013-02-18 Thread Jacob Carlborg
On 2013-02-18 13:46, Ary Borenszweig wrote: In the order it was analyzed. Same as in Ruby. I see. -- /Jacob Carlborg

Re: Crystal

2013-02-17 Thread Denis Shelomovskij
as insane. ... Thanks for your comments, Ary P.S.: bin/crystal -e 'a = 0; 10.times { |i| a += i }; puts a' -O3 -ll Sorry for such cruel comment, I it is just my opinion. -- Денис В. Шеломовский Denis V. Shelomovskij

Re: Crystal

2013-02-17 Thread bearophile
Ary Borenszweig: I started thinking about this idea: a compiled language that looked like a dynamic language. Is it possible? Of course it's possible, I given my help in the development of ShedSkin: http://code.google.com/p/shedskin/ Its compilation times are significant and they keep

Re: Crystal

2013-02-17 Thread Russel Winder
Why is this thread on the announce mailing list instead of the discussion list? -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp:

Re: Crystal

2013-02-17 Thread Jacob Carlborg
On 2013-02-17 08:46, Paulo Pinto wrote: Have you looked into Ruby Motion or Mirah as well? Or MacRuby. It's free (as in free beer) and open source, not something that Ruby Motion is. -- /Jacob Carlborg

Re: Crystal

2013-02-17 Thread Paulo Pinto
Am 17.02.2013 12:57, schrieb Jacob Carlborg: On 2013-02-17 08:46, Paulo Pinto wrote: Have you looked into Ruby Motion or Mirah as well? Or MacRuby. It's free (as in free beer) and open source, not something that Ruby Motion is. My problem with MacRuby and Ruby Motion is they are tied to

Re: Crystal

2013-02-17 Thread Jacob Carlborg
On 2013-02-17 14:21, Paulo Pinto wrote: My problem with MacRuby and Ruby Motion is they are tied to Mac OS X. Yeah, I agree. But developing for iOS is pretty tied to Mac OS X anyway. -- /Jacob Carlborg

Re: Crystal

2013-02-17 Thread Ary Borenszweig
On 2/17/13 6:29 AM, Denis Shelomovskij wrote: I'd like to specify function attributes explicitly because I do want to get a compilation error when I e.g. use non-safe stuff in safe function instead of a just compiler silently changing the function (and all functions which use it) to unsafe.=

Re: Crystal

2013-02-17 Thread Ary Borenszweig
On 2/17/13 9:14 AM, Jacob Carlborg wrote: I find it very interesting. But actually I'm going to agree with Denis, mostly. If I was going to use Crystal I would probably use a lot more static typing than it's probably made for. I quite often miss static typing in Ruby. Often there are functions

Re: Crystal

2013-02-17 Thread Ary Borenszweig
Have you looked into Ruby Motion or Mirah as well? Ruby Motion is not open source, so we couldn't (or didn't want) to take a look at that. Mirah compiles for the JVM, and we want to compile to native code. We try to escape from virtual machines...

Re: Crystal

2013-02-17 Thread Paulo Pinto
Am 17.02.2013 17:41, schrieb Ary Borenszweig: Have you looked into Ruby Motion or Mirah as well? Ruby Motion is not open source, so we couldn't (or didn't want) to take a look at that. I know, the question was more in the value proposal kind of way. Mirah compiles for the JVM, and we want

Re: Crystal

2013-02-17 Thread Jacob Carlborg
for example in the Comparable module: https://github.com/manastech/crystal/blob/master/std/comparable.cr So in that case self would evaluate, at compile time, to whatever Comparable is mixed in to? I thought it was supported but it's not. It would be very easy to support it, but it would execute

Re: Crystal

2013-02-17 Thread JN
On Sunday, 17 February 2013 at 12:14:40 UTC, Jacob Carlborg wrote: Except from what others already have mentioned someone created a language with a Python like syntax written in D. But I think that had explicit types. http://delight.sourceforge.net/

Re: Crystal

2013-02-17 Thread Ary Borenszweig
for the owner of the method. This is used for example in the Comparable module: https://github.com/manastech/crystal/blob/master/std/comparable.cr So in that case self would evaluate, at compile time, to whatever Comparable is mixed in to? Yes. I thought it was supported but it's not. It would

Re: Crystal

2013-02-17 Thread Jacob Carlborg
On 2013-02-17 21:22, Ary Borenszweig wrote: Since it's not yet implemented, it could be like that, or it can be that it is evaluated when you execute the program (but not at compile time). But if I just but code that the top level of a file, when at runtime is that executed? -- /Jacob

Re: Crystal

2013-02-17 Thread Jacob Carlborg
On 2013-02-17 20:50, JN wrote: http://delight.sourceforge.net/ There we go, thanks. -- /Jacob Carlborg

Crystal

2013-02-16 Thread Ary Borenszweig
to be efficient, have similar syntax to Ruby, and where you never have to specify types of variables and arguments. https://github.com/manastech/crystal/wiki/Introduction I'd also like to ask you: 1. Do you know whether a similar language exists? 2. Do you think it's feasible? Right now we are getting

Re: Crystal

2013-02-16 Thread Paulo Pinto
language which aims to be efficient, have similar syntax to Ruby, and where you never have to specify types of variables and arguments. https://github.com/manastech/crystal/wiki/Introduction I'd also like to ask you: 1. Do you know whether a similar language exists? 2. Do you think it's feasible