March 31, 2013 Re: D => asm.js for the web? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Masahiro Nakagawa | On Sun, 31 Mar 2013 14:32:14 +0200
"Masahiro Nakagawa" <repeatedly@gmail.com> wrote:
> ABA-san tried LDC+Emscripten+asm.js.
>
> http://d.hatena.ne.jp/ABA/20130331#p1 (in japanese)
>
> LDC has some limitations but this SDL code works :)
>
Wow, that's awesome. D SDL running as client-side web.
I hope the class issues get fixed because then I may never have any need to use Haxe again.
A few years ago, back when Flash was still relevant, I did something that required Flash and PHP, so I used Haxe. It was far better than using Flash/PHP directly, but it's still nowhere near as nice as D. Now I'm finally doing D (with Vibe.d) for server-side stuff, so if I ever need to do a Flash-like thing again (which I'd obviously do as HTML5 at this point), then I'd love to do it with LDC+Emscripten+asm.js like ABA-san is. Obviously wouldn't have the speed or low-level benefits of D, but it would be far more pleasant.
|
March 31, 2013 Re: D => asm.js for the web? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | Nick Sabalausky:
> Obviously wouldn't have the speed or low-level benefits
> of D, but it would be far more pleasant.
If Mozilla does well its work on asm.js, when you are using floating point values it may become faster than D compiled with DMD (as LuaJIT is) :-)
Bye,
bearophile
|
March 28, 2018 Re: D => asm.js for the web? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Masahiro Nakagawa | //Include LCD library #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2); // Print a message to the LCD. lcd.print("Hello World!"); } void loop() { // set the cursor to column 0, line 1 // (note: line 1 is the second row, since counting begins with 0): lcd.setCursor(0, 1); //Print a message to second line of LCD lcd.print("Codebender"); } foe more information https://babasupport.org/browser/safari-customer-service/176 |
Copyright © 1999-2021 by the D Language Foundation