Re: JavaScript is the VM to target for D

2010-05-03 Thread Nick Sabalausky
Adrian nos...@veith-system.de wrote in message news:hrkgek$2ij...@digitalmars.com... Am 21.04.2010 03:18, schrieb Nick Sabalausky: I use Haxe for any and all PHP and Flash development and I will *never* go back to direct PHP or ActionScript. Never, ever, ever, ever, EVER! [snip] D, or at

Re: JavaScript is the VM to target for D

2010-05-02 Thread Adrian
Am 21.04.2010 03:18, schrieb Nick Sabalausky: I use Haxe for any and all PHP and Flash development and I will *never* go back to direct PHP or ActionScript. Never, ever, ever, ever, EVER! [snip] D, or at least something closer to D, would be FAR better than Haxe, though. In fact even though I

Re: JavaScript is the VM to target for D

2010-04-24 Thread retard
Fri, 23 Apr 2010 23:26:18 -0400, Nick Sabalausky wrote: And even if you really did need client-scripting (and the vast majority of the time, you don't), there are better ways to distribute cross-platform code across a network. Really, such as? The largest problem by far has been to increase

Re: JavaScript is the VM to target for D

2010-04-24 Thread Adam D. Ruppe
On Sat, Apr 24, 2010 at 10:48:53AM +, retard wrote: What else do we have? If I had my way, I'd just be rid of the virtual machine altogether. Simply run native programs as a restricted user. (Indeed, I'd run the browser itself with that restricted user, then let it create whatever processes

Re: JavaScript is the VM to target for D

2010-04-24 Thread retard
Sat, 24 Apr 2010 11:27:27 -0400, Adam D. Ruppe wrote: On Sat, Apr 24, 2010 at 10:48:53AM +, retard wrote: What else do we have? If I had my way, I'd just be rid of the virtual machine altogether. Simply run native programs as a restricted user. (Indeed, I'd run the browser itself with

Re: JavaScript is the VM to target for D

2010-04-24 Thread Adam D. Ruppe
On Sat, Apr 24, 2010 at 05:36:30PM +, retard wrote: It gives different kinds of flexibility. The advantage of Javascript is easy interfacing with the DOM, the html document and all kinds of powers the browser is providing. Yeah, this came to mind only after I made the last post. The best

Re: JavaScript is the VM to target for D

2010-04-24 Thread retard
Sat, 24 Apr 2010 14:06:19 -0400, Adam D. Ruppe wrote: On Sat, Apr 24, 2010 at 05:36:30PM +, retard wrote: It gives different kinds of flexibility. The advantage of Javascript is easy interfacing with the DOM, the html document and all kinds of powers the browser is providing. Yeah,

Re: JavaScript is the VM to target for D

2010-04-24 Thread Rainer Deyke
On 4/24/2010 09:27, Adam D. Ruppe wrote: If I had my way, I'd just be rid of the virtual machine altogether. Simply run native programs as a restricted user. (Indeed, I'd run the browser itself with that restricted user, then let it create whatever processes it wants, possibly stripping the

Re: JavaScript is the VM to target for D

2010-04-24 Thread Adam D. Ruppe
On Sat, Apr 24, 2010 at 01:53:10PM -0600, Rainer Deyke wrote: Congratulations, you just invented ActiveX. I hope you like your platform lockdown and your security vulnerabilities. ActiveX controls don't run as a limited user account. That's the key here: the entire browser should be running as

Re: JavaScript is the VM to target for D

2010-04-24 Thread bearophile
I keep posting this link here, and it keeps being ignored, despite I think it can become one important usage of D: http://code.google.com/p/nativeclient/ Bye, bearophile

Re: JavaScript is the VM to target for D

2010-04-24 Thread retard
Sat, 24 Apr 2010 13:53:10 -0600, Rainer Deyke wrote: On 4/24/2010 09:27, Adam D. Ruppe wrote: If I had my way, I'd just be rid of the virtual machine altogether. Simply run native programs as a restricted user. (Indeed, I'd run the browser itself with that restricted user, then let it create

Re: JavaScript is the VM to target for D

2010-04-24 Thread retard
Sat, 24 Apr 2010 16:29:55 -0400, Adam D. Ruppe wrote: On Sat, Apr 24, 2010 at 01:53:10PM -0600, Rainer Deyke wrote: Congratulations, you just invented ActiveX. I hope you like your platform lockdown and your security vulnerabilities. ActiveX controls don't run as a limited user account.

Re: JavaScript is the VM to target for D

2010-04-24 Thread Adam D. Ruppe
On Sat, Apr 24, 2010 at 08:32:25PM +, retard wrote: A middleware is about building the infrastructure. Later (ideally) there are no platform specific costs involved. We have that already. I write programs for Linux and release them on Windows by expending no effort beyond typing make

Re: JavaScript is the VM to target for D

2010-04-24 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:mailman.71.1272140482.3522.digitalmar...@puremagic.com... On Sat, Apr 24, 2010 at 01:53:10PM -0600, Rainer Deyke wrote: Congratulations, you just invented ActiveX. I hope you like your platform lockdown and your security

Re: JavaScript is the VM to target for D

2010-04-24 Thread KennyTM~
On Apr 24, 10 18:04, Justin Johansson wrote: KennyTM~ wrote: On Apr 22, 10 14:52, Lutger wrote: I don't think javascript is suited for this purpose, but perhaps silverlight / moonlight is. A D compiler targetting the CoreCLR could be big, depending on how this platform takes off. D.NET?

Re: JavaScript is the VM to target for D

2010-04-24 Thread Adam D. Ruppe
On Sat, Apr 24, 2010 at 08:41:07PM +, retard wrote: How does this prevent platform lockdown? It doesn't. I don't particularly care. I haven't really seen the native client system used in any crucial real world site. I'm referring to how they run browser components all as separate

Re: JavaScript is the VM to target for D

2010-04-24 Thread Adam D. Ruppe
On Sat, Apr 24, 2010 at 04:54:17PM -0400, Nick Sabalausky wrote: Maybe I'm just naive about this, but it would seem to me that it should be possible to have a single compiled-native-code format that could be framed by the client to work on the whatever the client's OS is. It probably could

Re: JavaScript is the VM to target for D

2010-04-24 Thread bearophile
Nick Sabalausky: Also, a web server could be set up to automatically convert or cross-compile to whatever CPU or OS was requested by the client (and then internally cached, of course). Probably involving LLVM or something. It's called pNaCl (PDF file):

Re: JavaScript is the VM to target for D

2010-04-24 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:mailman.72.1272141444.3522.digitalmar...@puremagic.com... On Sat, Apr 24, 2010 at 04:26:55PM -0400, bearophile wrote: I keep posting this link here, and it keeps being ignored, despite I think it can become one important usage of

Re: JavaScript is the VM to target for D

2010-04-24 Thread Rainer Deyke
On 4/24/2010 14:29, Adam D. Ruppe wrote: On Sat, Apr 24, 2010 at 01:53:10PM -0600, Rainer Deyke wrote: Congratulations, you just invented ActiveX. I hope you like your platform lockdown and your security vulnerabilities. ActiveX controls don't run as a limited user account. That's the key

Re: JavaScript is the VM to target for D

2010-04-24 Thread Adam D. Ruppe
On Sat, Apr 24, 2010 at 06:17:25PM -0400, Nick Sabalausky wrote: it forces you to use their tool chain the whole way Check out the README: http://nativeclient.googlecode.com/svn/trunk/src/native_client/README.html Notice how the instructions don't say to use gcc and gdb, but instead nacl-gcc

Re: JavaScript is the VM to target for D

2010-04-24 Thread Adam D. Ruppe
On Sat, Apr 24, 2010 at 04:29:17PM -0600, Rainer Deyke wrote: Running the browser as a restricted user is good (and indeed necessary), but when you're running native code, you're only as secure your OS and CPU allow. Running on a VM provides an additional layer of insulation. Sure, that's

Re: JavaScript is the VM to target for D

2010-04-24 Thread Lutger
Justin Johansson wrote: KennyTM~ wrote: On Apr 22, 10 14:52, Lutger wrote: I don't think javascript is suited for this purpose, but perhaps silverlight / moonlight is. A D compiler targetting the CoreCLR could be big, depending on how this platform takes off. D.NET? D.NET (D.CLR),

Re: JavaScript is the VM to target for D

2010-04-24 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:mailman.76.1272148468.3522.digitalmar...@puremagic.com... On Sat, Apr 24, 2010 at 06:17:25PM -0400, Nick Sabalausky wrote: it forces you to use their tool chain the whole way Check out the README:

Re: JavaScript is the VM to target for D

2010-04-23 Thread retard
Tue, 20 Apr 2010 21:38:57 -0400, Nick Sabalausky wrote: Nick Sabalausky a...@a.a wrote in message news:hqljod$ca...@digitalmars.com... Justin Johansson n...@spam.com wrote in message news:hqk7ve$2ou...@digitalmars.com... my current thinking seems to be aligning with others that JavaScript

Re: JavaScript is the VM to target for D

2010-04-23 Thread Nick Sabalausky
retard r...@tard.com.invalid wrote in message news:hqt9pa$2sg...@digitalmars.com... Tue, 20 Apr 2010 21:35:03 -0400, bearophile wrote: Nick Sabalausky: I use Haxe for any and all PHP and Flash development I have an OT question: Haxe and similar things add another layer between the code you

Re: JavaScript is the VM to target for D

2010-04-23 Thread Nick Sabalausky
retard r...@tard.com.invalid wrote in message news:hqtaa3$307...@digitalmars.com... Tue, 20 Apr 2010 21:38:57 -0400, Nick Sabalausky wrote: Nick Sabalausky a...@a.a wrote in message news:hqljod$ca...@digitalmars.com... Justin Johansson n...@spam.com wrote in message

Re: JavaScript is the VM to target for D

2010-04-22 Thread Lutger
I don't think javascript is suited for this purpose, but perhaps silverlight / moonlight is. A D compiler targetting the CoreCLR could be big, depending on how this platform takes off.

Re: JavaScript is the VM to target for D

2010-04-22 Thread KennyTM~
On Apr 22, 10 14:52, Lutger wrote: I don't think javascript is suited for this purpose, but perhaps silverlight / moonlight is. A D compiler targetting the CoreCLR could be big, depending on how this platform takes off. D.NET?

Re: JavaScript is the VM to target for D

2010-04-21 Thread bearophile
Nick Sabalausky: Does that answer your question? Yes, thank you, bearophile

JavaScript is the VM to target for D

2010-04-20 Thread Justin Johansson
A new moon (downunder) brings time for new D discussion topic :-) Myself having a long time interest in webapp development and given that the web client platform is tied to having only JavaScript ubiquitously available (i.e. in the browser) and having tried a zillion OOP wrappers and

Re: JavaScript is the VM to target for D

2010-04-20 Thread Eric Poggel
On 4/20/2010 8:50 AM, Justin Johansson wrote: A new moon (downunder) brings time for new D discussion topic :-) Myself having a long time interest in webapp development and given that the web client platform is tied to having only JavaScript ubiquitously available (i.e. in the browser) and

Re: JavaScript is the VM to target for D

2010-04-20 Thread Justin Johansson
Eric Poggel wrote: So I guess the thrust of my topic tonight is, could D somehow reinvent itself to fame and fortune in the high-level-language-for-JavaScript space? Justin Johansson I've done a significant amount of web-app development myself, but to me this seems like a bad idea. If I

Re: JavaScript is the VM to target for D

2010-04-20 Thread Nick Sabalausky
Justin Johansson n...@spam.com wrote in message news:hqk7ve$2ou...@digitalmars.com... my current thinking seems to be aligning with others that JavaScript should be seen as the new binary, albeit in text form, that HLLs should be compiling down to for webapp development. Also there is

Re: JavaScript is the VM to target for D

2010-04-20 Thread Adam D. Ruppe
On Tue, Apr 20, 2010 at 09:18:45PM -0400, Nick Sabalausky wrote: I believe *very* strongly in using a REAL language that then gets compiled down to worthless crap like PHP, ActionScript, etc., whenever such worthless crap platforms are necessary. Which is, of course, necessary FAR too often

Re: JavaScript is the VM to target for D

2010-04-20 Thread Nick Sabalausky
Nick Sabalausky a...@a.a wrote in message news:hqljod$ca...@digitalmars.com... Justin Johansson n...@spam.com wrote in message news:hqk7ve$2ou...@digitalmars.com... my current thinking seems to be aligning with others that JavaScript should be seen as the new binary, albeit in text form,

Re: JavaScript is the VM to target for D

2010-04-20 Thread bearophile
Nick Sabalausky: I use Haxe for any and all PHP and Flash development I have an OT question: Haxe and similar things add another layer between the code you write and the program that gets run. Isn't this extra distance (and the semantic adaptations it requires) cause of problems? For example

Re: JavaScript is the VM to target for D

2010-04-20 Thread Nick Sabalausky
bearophile bearophileh...@lycos.com wrote in message news:hqlko7$do...@digitalmars.com... Nick Sabalausky: I use Haxe for any and all PHP and Flash development I have an OT question: Haxe and similar things add another layer between the code you write and the program that gets run. Isn't

Re: JavaScript is the VM to target for D

2010-04-20 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:mailman.54.1271813929.3522.digitalmar...@puremagic.com... On Tue, Apr 20, 2010 at 09:18:45PM -0400, Nick Sabalausky wrote: I believe *very* strongly in using a REAL language that then gets compiled down to worthless crap like PHP,

Re: JavaScript is the VM to target for D

2010-04-20 Thread Eric Poggel
On 4/20/2010 6:26 PM, Justin Johansson wrote: Eric Poggel wrote: So I guess the thrust of my topic tonight is, could D somehow reinvent itself to fame and fortune in the high-level-language-for-JavaScript space? Justin Johansson I've done a significant amount of web-app development myself,

Re: JavaScript is the VM to target for D

2010-04-20 Thread Adam D. Ruppe
On Tue, Apr 20, 2010 at 11:16:12PM -0400, Eric Poggel wrote: I should've also clarified that I'm usually more productive in JavaScript for small projects because it usually takes less code for the same thing, but more so in D for large ones due to the benefits of static typing. I've been