Re: Running a D game in the browser

2016-08-04 Thread Sebastien Alaiwan via Digitalmars-d-announce
On Thursday, 4 August 2016 at 19:17:34 UTC, Sebastien Alaiwan wrote: at the moment, I have a patch to making the build work (only for the binary "ldc2", not other tools of the package). I created a dedicated github branch "fastcomp-ldc". The patch:

Re: LDC 1.1.0-beta2 has been released!

2016-08-04 Thread Emre Temelkuran via Digitalmars-d-announce
On Wednesday, 3 August 2016 at 20:12:59 UTC, Kai Nacke wrote: Hi everyone, LDC 1.1.0-beta2, the LLVM-based D compiler, is available for download! This BETA release is based on the 2.071.1 frontend and standard library and supports LLVM 3.5-3.9. We provide binaries for Linux, OX X, FreeBSD,

Re: The Origins of the D Cookbook

2016-08-04 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 4 August 2016 at 15:42:50 UTC, Joakim wrote: Nice read. I must say Mike's doing a great job running the blog so far. Perhaps it's for the best I never got the D blog running back when I suggested it a couple years back, though I hope to contribute to this one soon. Thanks,

Re: Running a D game in the browser

2016-08-04 Thread Sebastien Alaiwan via Digitalmars-d-announce
On Wednesday, 3 August 2016 at 20:40:47 UTC, Kai Nacke wrote: That's awesome! Do you still know the modifications you made to compile LDC with emscripten-fastcomp? I would be interested to have a look into the "PNaCl legalization passes" problem. That would be great, and might simplify the

Re: The Origins of the D Cookbook

2016-08-04 Thread Joakim via Digitalmars-d-announce
On Thursday, 4 August 2016 at 14:23:03 UTC, Mike Parker wrote: I've just published a guest post from Adam Ruppe at the D Blog [1]. If you notice any errors, that's all on me. I had intended it for yesterday, but was just too busy. And though I did manage to get it out today, I did not have the

Re: Running a D game in the browser

2016-08-04 Thread Martin Tschierschke via Digitalmars-d-announce
On Wednesday, 3 August 2016 at 20:26:23 UTC, Sebastien Alaiwan wrote: Hi, I finally managed to compile some D code to asm.js, using Emscripten. [...] You can play a minimalistic demo: http://code.alaiwan.org/dscripten/full.html [...] Please let me know what you think! Fascinating!

The Origins of the D Cookbook

2016-08-04 Thread Mike Parker via Digitalmars-d-announce
I've just published a guest post from Adam Ruppe at the D Blog [1]. If you notice any errors, that's all on me. I had intended it for yesterday, but was just too busy. And though I did manage to get it out today, I did not have the time to review it as thoroughly as I normally do. Please post

Re: Running a D game in the browser

2016-08-04 Thread Suliman via Digitalmars-d-announce
Very cool! Is it's possible now to write not graphical Apps for web in D? I do not need graphics, but I need normal language instead of js that can help me to do some computation. For example is it's possible to write in D app that would validate some fileds in HTML and simply show (even on

Re: Running a D game in the browser

2016-08-04 Thread Sebastien Alaiwan via Digitalmars-d-announce
On Thursday, 4 August 2016 at 09:57:57 UTC, Mike Parker wrote: On Wednesday, 3 August 2016 at 20:26:23 UTC, Sebastien Alaiwan wrote: And a blogpost explaining the technique is available here: http://code.alaiwan.org/wp/?p=103 (Spoiler: at some point, it involves lowering the source code

Re: std.experimental.xml available on DUB

2016-08-04 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-08-04 09:15, Lodovico Giaretta wrote: I don't know if it is what you want, but you can do this: auto lexer = chooseLexer!input; The function chooseLexer creates the most suitable lexer type based on the input type. You can test if a type is a lexer using the trait isLexer defined in

Re: std.experimental.xml available on DUB

2016-08-04 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-08-03 22:57, Robert burner Schadek wrote: Well, currently you have to make that choice as developer, and there is always the BufferedLexer which should be good choice is most cases. Polymorphic design was not a goal of the project, so I think it is going to be hard to add that without

Re: Running a D game in the browser

2016-08-04 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 3 August 2016 at 20:26:23 UTC, Sebastien Alaiwan wrote: And a blogpost explaining the technique is available here: http://code.alaiwan.org/wp/?p=103 (Spoiler: at some point, it involves lowering the source code back to C) Reddit:

Re: Running a D game in the browser

2016-08-04 Thread Chris via Digitalmars-d-announce
On Wednesday, 3 August 2016 at 20:26:23 UTC, Sebastien Alaiwan wrote: Hi, I finally managed to compile some D code to asm.js, using Emscripten. It had been done by one dude several years ago, but some changes in the inner workings of Emscripten (the introduction of fastcomp, also probably

Re: std.experimental.xml available on DUB

2016-08-04 Thread Lodovico Giaretta via Digitalmars-d-announce
On Wednesday, 3 August 2016 at 09:04:30 UTC, Jacob Carlborg wrote: On 2016-07-30 11:26, Lodovico Giaretta wrote: Hi, I'm proud to announce that std.experimental.xml v0.1.0 is available on DUB [1]! Another question. I see that there are a couple of different lexers available. Can those be

Re: Running a D game in the browser

2016-08-04 Thread Sebastien Alaiwan via Digitalmars-d-announce
On Thursday, 4 August 2016 at 05:03:17 UTC, Joel wrote: [snip] Though, it looks like the score isn't reset when you start a new game. Or, is it intended that way? Oh, I read it wrong, the score is reset. Dummy, me! It's just that you're becoming better at this silly game :-) Thanks for your