Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Jacob Carlborg
On 2012-03-02 03:28, Adam D. Ruppe wrote: On Thursday, 1 March 2012 at 08:01:07 UTC, Daniel Murphy wrote: Web programming... might actually become non-horrible? As far as I can tell, we have variable lifetime! (JS's garbage collector is still a question, and some of the variables are global -

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Johannes Pfau
Am Thu, 01 Mar 2012 21:13:41 +0100 schrieb Bystroushaak bystrou...@kitakitsune.org: I've played with gdc, but it's pretty complicated. I have few ADM 5120 routers with debwrt and it would be nice to be able compile D2 code there, but so far, it was just fail. ADM 5120 is MIPS, right? Are

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Alix Pexton
On 02/03/2012 02:28, Adam D. Ruppe wrote: 3) The JS language doesn't have block scoping like D. Have you considered faking scopes in JS using anonymous functions? var foo; (function(a, b){ var foo; // not the same as the foo outside the func! // do stuff }(x, y)); //

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Daniel Murphy
Jacob Carlborg d...@me.com wrote in message news:jipus9$v81$1...@digitalmars.com... On 2012-03-02 03:28, Adam D. Ruppe wrote: On Thursday, 1 March 2012 at 08:01:07 UTC, Daniel Murphy wrote: Web programming... might actually become non-horrible? As far as I can tell, we have variable

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Daniel Murphy
Jacob Carlborg d...@me.com wrote in message news:jiq8kb$1ht0$1...@digitalmars.com... CommaExp's containing Declarations Is he saying var a, b, c; is invalid JavaScript code? -- /Jacob Carlborg It's invalid if it's a comma expression. eg. auto x = (auto a = 3, a); Which dmd creates

Dscience

2012-03-02 Thread bioinfornatics
Dear, I have do a D 2 port to my dscience project: https://gitorious.org/dscience/dscience Any help are welcome

Referencing d project

2012-03-02 Thread bioinfornatics
Dear, it will be great that community sign in for https://www.ohloh.net You can add your project, see other, browse by tag. By example for D tag https://www.ohloh.net/tags/d?page=1 You can see D community and his project easily: https://www.ohloh.net/tags/d?page=1 you are welcome :-)

Re: Mono-D 0.3.0

2012-03-02 Thread alex
On Thursday, 1 March 2012 at 22:25:41 UTC, F i L wrote: Awesome job, Alex! With the performance improvements of Mono 2.8.6.5 and Parser/Performance improvements of Mono-D 3.0 working with D is on par with working with C# in Visual Studios. Even better since I get the same experience on all

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Bystroushaak
I think once you get past the horror that is building gcc for your target platform, the big issue remaining is that druntime needs to be ported. There is actually gdc package in debwrt, but it is D1 :( You'll hit the same issue with a D-C translator, so it might be better just to work on the

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Adam D. Ruppe
On Friday, 2 March 2012 at 09:33:44 UTC, Alix Pexton wrote: Have you considered faking scopes in JS using anonymous functions? Yeah, though right now I'm trusting the D compiler to keep it straight, and it is doing a pretty good job while being really simple to code. What happens is all the

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Adam D. Ruppe
Here's one of the nicer things to do: http://arsdnet.net/dtojs/game.d http://arsdnet.net/dtojs/game.html we can do little browser games in D. If you look at game.js: http://arsdnet.net/dtojs/game.js you can see it is similar in size to the original D file (this is after running

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Bystroushaak
ADM 5120 is MIPS, right? Are you trying to build a cross compiler or a compiler running on the MIPS itself? Compiler running on the MIPS. And MIPS is probably also affected by GDC issue 120, so you have to configure like this: DFLAGS=-fno-section-anchors ./configure [configure arguments

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:jiptfu$qrg$1...@digitalmars.com... On 2012-02-29 18:46, Nick Sabalausky wrote: Alex Rønne Petersenxtzgzo...@gmail.com wrote in message news:jilnie$1fsr$1...@digitalmars.com... On 29-02-2012 18:32, Andrei Alexandrescu wrote: On 2/26/12 9:51

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:arowwzayimwhzmqah...@forum.dlang.org... On Friday, 2 March 2012 at 05:58:03 UTC, Nick Sabalausky wrote: You make it sound as if there's another kind of JS. Horribly inefficient relative to the environment :P I just don't want 100

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Adam D. Ruppe
On Friday, 2 March 2012 at 18:28:15 UTC, Nick Sabalausky wrote: Suggestion: Allow all D features even if it requires...inefficient-er...boilerplate, BUT then have a system [...] Eh. A problem there is those pragmas or whatever would be unrecognized by the real dmd. A command line switch,

Re: D forums now live!

2012-03-02 Thread Andrej Mitrovic
Why doesn't the Forums link under Community link to this forum? In fact, I can't find the forum linked from anywhere on the website. When you go to dlang.org 'Forums' links to http://digitalmars.com/NewsGroup.html , but if you go to http://forum.dlang.org/ the Forums link properly links to the

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:wplwmjdlvvqcokxyk...@forum.dlang.org... Here's one of the nicer things to do: http://arsdnet.net/dtojs/game.d http://arsdnet.net/dtojs/game.html we can do little browser games in D. If you look at game.js:

Re: Attractive Chaos' blog entry: Timeline of the D programming

2012-03-02 Thread Marco Leise
Am 29.02.2012, 02:58 Uhr, schrieb bearophile bearophileh...@lycos.com: Jonathan M Davis: There's plenty still in Phobos that needs to be reworked before it approaches any kind of real frozen state (e.g. std.xml and std.stream), but we _do_ need to evolve Phobos to the point that breaking

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Marco Leise
Am 29.02.2012, 04:11 Uhr, schrieb Adam D. Ruppe destructiona...@gmail.com: sort can be a wrapper of Array.prototype.sort() from Javascript, thus letting us leave out the implementation. Odds are the native method will be faster anyway. That's right, although at least Google tries to implement

Re: D forums now live!

2012-03-02 Thread Brad Anderson
On Friday, 2 March 2012 at 20:51:27 UTC, Andrej Mitrovic wrote: Why doesn't the Forums link under Community link to this forum? In fact, I can't find the forum linked from anywhere on the website. When you go to dlang.org 'Forums' links to http://digitalmars.com/NewsGroup.html , but if you go

Re: D forums now live!

2012-03-02 Thread Andrej Mitrovic
Thanks Brad!

We have a GSoC mentor already: David Simcha

2012-03-02 Thread Andrei Alexandrescu
David Simcha applied for a second gig as a GSoC mentor. Needless to say, his application was approved :o). Please join me in welcoming him! Andrei

Re: We have a GSoC mentor already: David Simcha

2012-03-02 Thread Yao Gomez
On Friday, 2 March 2012 at 23:42:59 UTC, Andrei Alexandrescu wrote: David Simcha applied for a second gig as a GSoC mentor. Needless to say, his application was approved :o). Please join me in welcoming him! Andrei Congrats David! Is Mr. Simcha mentoring effort focused on the GC? Or

Re: We have a GSoC mentor already: David Simcha

2012-03-02 Thread MattCodr
On Friday, 2 March 2012 at 23:42:59 UTC, Andrei Alexandrescu wrote: David Simcha applied for a second gig as a GSoC mentor. Needless to say, his application was approved :o). Please join me in welcoming him! Nice and good luck but... What app is it?

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Daniel Murphy
Adam D. Ruppe destructiona...@gmail.com wrote in message news:omhitgvibquioulpc...@forum.dlang.org... If I add a way to instead put those var declarations in function scope, it is cleaner - no globals - and the same thing Javascript itself would do anyway! I'll have to redo the string

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Adam D. Ruppe
On Saturday, 3 March 2012 at 00:56:48 UTC, Daniel Murphy wrote: Something like this should work: Awesome, it does! Thanks.

Re: D to Javascript converter (a hacked up dmd)

2012-03-02 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:sazpaicrjwzchqcfw...@forum.dlang.org... On Friday, 2 March 2012 at 18:28:15 UTC, Nick Sabalausky wrote: Suggestion: Allow all D features even if it requires...inefficient-er...boilerplate, BUT then have a system [...] Eh. A

Re: We have a GSoC mentor already: David Simcha

2012-03-02 Thread Andrei Alexandrescu
On 3/2/12 6:31 PM, MattCodr wrote: On Friday, 2 March 2012 at 23:42:59 UTC, Andrei Alexandrescu wrote: David Simcha applied for a second gig as a GSoC mentor. Needless to say, his application was approved :o). Please join me in welcoming him! Nice and good luck but... What app is it?

Contract programming in D discussed on reddit

2012-03-02 Thread Andrei Alexandrescu
http://www.reddit.com/r/programming/comments/qevy0/contract_programming_in_the_d_programming_language/ Andrei

Re: Contract programming in D discussed on reddit

2012-03-02 Thread Bill Baxter
Ha, I thought this was going to be about employment opportunities. --bb On Fri, Mar 2, 2012 at 11:05 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: http://www.reddit.com/r/**programming/comments/qevy0/**