Re: Dart bindings for D?

2014-10-31 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 30 October 2014 at 02:27:58 UTC, ketmar via Digitalmars-d-learn wrote: it was very funny to show some people D code with your jsvar and listenting how they don't want to learn just another scripting language. and then compile the code with DMD to confuse them even more. hehe, that

Re: Dart bindings for D?

2014-10-31 Thread via Digitalmars-d-learn
On Thursday, 30 October 2014 at 17:39:14 UTC, Laeeth Isharc wrote: Dart web server talk to a D analytics server via a socket. And 2) I cannot say that I definitely do not want to cache things and do some work on client, and so I need to see what's possible to avoid getting trapped in purely

Re: Dart bindings for D?

2014-10-30 Thread Suliman via Digitalmars-d-learn
Is it's possible to create single language that cover desktop and web? Like D+Dart? I ask becouse I can't understand why it's need 2 language if they are very simmiler and it's can be 1 language instead 2.

Re: Dart bindings for D?

2014-10-30 Thread via Digitalmars-d-learn
On Thursday, 30 October 2014 at 06:14:18 UTC, Suliman wrote: Is it's possible to create single language that cover desktop and web? Like D+Dart? It is probably not possible with D or any other language that is too far off from Javascript since the generated code becomes to large for fast

Re: Dart bindings for D?

2014-10-30 Thread Paolo Invernizzi via Digitalmars-d-learn
On Thursday, 30 October 2014 at 06:57:23 UTC, Ola Fosheim Grøstad wrote: There are also scripting frameworks that let you write portable code for web and mobile platforms, but they tend to be geared towards a special type of application. E.g. http://www.tidesdk.org/ http://cordova.apache.org/

Re: Dart bindings for D?

2014-10-30 Thread Suliman via Digitalmars-d-learn
I know that there is way to write all on JS. But I can't understand what the reason that there are no single language that can work on web and as native language.

Re: Dart bindings for D?

2014-10-30 Thread via Digitalmars-d-learn
On Thursday, 30 October 2014 at 08:39:15 UTC, Suliman wrote: I know that there is way to write all on JS. But I can't understand what the reason that there are no single language that can work on web and as native language. It is possible, but you need to design the language within the

Re: Dart bindings for D?

2014-10-30 Thread Suliman via Digitalmars-d-learn
It is possible, but you need to design the language within the constraints of javascript: 1. single threaded (or worker threads) 2. 53 bits integers, 26 bits for multiplies. 4. weird fixed size heaps (ArrayView) 5. if garbage collection then it has to be javascript style 6. no tricks:

Re: Dart bindings for D?

2014-10-30 Thread via Digitalmars-d-learn
On Thursday, 30 October 2014 at 09:35:04 UTC, Suliman wrote: It is possible, but you need to design the language within the constraints of javascript: 1. single threaded (or worker threads) Javascript is single threaded by nature. Parallel execution is done in isolation. No shared memory.

Re: Dart bindings for D?

2014-10-30 Thread Suliman via Digitalmars-d-learn
No! I mean not translation to js. I mean theoretical ability of creation new programming language that can work every where!

Re: Dart bindings for D?

2014-10-30 Thread Kagamin via Digitalmars-d-learn
On Thursday, 30 October 2014 at 10:18:40 UTC, Suliman wrote: No! I mean not translation to js. I mean theoretical ability of creation new programming language that can work every where! It's already created - C++! http://www.chromium.org/nativeclient

Re: Dart bindings for D?

2014-10-30 Thread via Digitalmars-d-learn
On Thursday, 30 October 2014 at 10:28:06 UTC, Kagamin wrote: On Thursday, 30 October 2014 at 10:18:40 UTC, Suliman wrote: No! I mean not translation to js. I mean theoretical ability of creation new programming language that can work every where! It's already created - C++!

Re: Dart bindings for D?

2014-10-30 Thread via Digitalmars-d-learn
On Thursday, 30 October 2014 at 10:18:40 UTC, Suliman wrote: No! I mean not translation to js. I mean theoretical ability of creation new programming language that can work every where! Yes, you can create a new programming language that can work everywhere if you restrict the semantics to

Re: Dart bindings for D?

2014-10-30 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 30 October 2014 at 10:18:40 UTC, Suliman wrote: No! I mean not translation to js. I mean theoretical ability of creation new programming language that can work every where! The problem is getting new features into the browsers that people use. You could also just write native

Re: Dart bindings for D?

2014-10-30 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 30 October 2014 at 06:14:18 UTC, Suliman wrote: Is it's possible to create single language that cover desktop and web? Like D+Dart? You can also run D code on the web server and do very little on the web client itself for a lot of programs.

Re: Dart bindings for D?

2014-10-30 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. Thanks for all the thoughts, and sorry it has taken me a little while to reply. Adam - I liked your book very much: it really complemented the other resources out there, especially in communicating a refreshing spirit of enthusiasm and fearless exploration. ketmar - I took a look at

Re: Dart bindings for D?

2014-10-30 Thread ketmar via Digitalmars-d-learn
On Thu, 30 Oct 2014 17:39:13 + Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: BTW what was the story behind dscript? It seems to have changed its name and no longer have so much connection to D: http://forum.dlang.org/thread/422be824.6030...@nospam.org we

Re: Dart bindings for D?

2014-10-30 Thread Laeeth Isharc via Digitalmars-d-learn
Ah - makes sense. It is satisfyingly fast... On Thursday, 30 October 2014 at 21:33:59 UTC, ketmar via Digitalmars-d-learn wrote: On Thu, 30 Oct 2014 17:39:13 + Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: BTW what was the story behind dscript? It seems

Re: Dart bindings for D?

2014-10-30 Thread ketmar via Digitalmars-d-learn
On Thu, 30 Oct 2014 22:18:22 + Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Ah - makes sense. It is satisfyingly fast... the only bad thing is that it trashes /tmp/.rdmd-$UID dir. i wrote another simple script that is clearing that dir (but doesn't touch

Re: Dart bindings for D?

2014-10-30 Thread Rikki Cattermole via Digitalmars-d-learn
On 31/10/2014 6:39 a.m., Laeeth Isharc wrote: Hi. Thanks for all the thoughts, and sorry it has taken me a little while to reply. Adam - I liked your book very much: it really complemented the other resources out there, especially in communicating a refreshing spirit of enthusiasm and fearless

Re: Dart bindings for D?

2014-10-30 Thread via Digitalmars-d-learn
On Thursday, 30 October 2014 at 17:39:14 UTC, Laeeth Isharc wrote: Thanks for the warning. I will have a low number of users, and whilst on occasion working data sets might be large, they won't stick around for very long so pre-allocating buffers should work fine (I hope).

Re: Dart bindings for D?

2014-10-29 Thread ketmar via Digitalmars-d-learn
On Wed, 29 Oct 2014 22:12:30 + Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: it's OT, but haven't you tried Adam Ruppe's script.d? it has d-like syntax with influences from javascript, written entirely in D, and has simple interoperability with D code. it's

Re: Dart bindings for D?

2014-10-29 Thread Etienne Cimon via Digitalmars-d-learn
On 2014-10-29 18:12, Laeeth Isharc wrote: Rationale for using Dart in combination with D is that I am not thrilled about learning or writing in Javascript, yet one has to do processing on the client in some language, and there seem very few viable alternatives for that. It would be nice to run

Re: Dart bindings for D?

2014-10-29 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 29 October 2014 at 22:12:32 UTC, Laeeth Isharc wrote: I will have a crack at starting this unless anyone knows of any already in existence. I haven't heard of any. Rationale for using Dart in combination with D is that I am not thrilled about learning or writing in Javascript,

Re: Dart bindings for D?

2014-10-29 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 29 October 2014 at 22:22:39 UTC, ketmar via Digitalmars-d-learn wrote: it's not lightning fast, though, but the code is understandable and it's fairly easy to extend the language if necessary. Curious, what have you tried with it? I wanted to keep it simple but actually

Re: Dart bindings for D?

2014-10-29 Thread ketmar via Digitalmars-d-learn
On Thu, 30 Oct 2014 01:31:23 + Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Wednesday, 29 October 2014 at 22:22:39 UTC, ketmar via Digitalmars-d-learn wrote: it's not lightning fast, though, but the code is understandable and it's fairly easy to

Re: Dart bindings for D?

2014-10-29 Thread via Digitalmars-d-learn
On Wednesday, 29 October 2014 at 22:12:32 UTC, Laeeth Isharc wrote: I have had a look around for these, but was not able to see them. It looks perhaps like dart_api.h is the main file to convert - I will have a crack at starting this unless anyone knows of any already in existence. Dart VM