Re: forum.dlang.org, version 2 (BETA)

2015-06-22 Thread Laeeth Isharc via Digitalmars-d-announce
Minor bug in forum (was in previous one too).  If you get an 
error from posting a message due to eg malformed email address 
then you are unable to submit a post again after correcting the 
error (because you tried to post too recently).




Re: Scriptlike v0.8.0

2015-06-22 Thread Nick Sabalausky via Digitalmars-d-announce
On 06/22/2015 05:09 AM, Per =?UTF-8?B?Tm9yZGzDtnci?= 
per.nord...@gmail.com wrote:

On Monday, 22 June 2015 at 09:08:45 UTC, Per Nordlöw wrote:

Something like this

userInput(T)(string message, T x);


Correction, should be

 userInput(T)(string message, ref T x)



Good idea. Now added, and tagged v0.8.1:
https://github.com/Abscissa/scriptlike/blob/master/CHANGELOG.md



Re: This Week in D: Dconf Thursday summaries

2015-06-22 Thread Laeeth Isharc via Digitalmars-d-announce

On Thursday, 18 June 2015 at 12:51:12 UTC, Adam D. Ruppe wrote:
I've done some COM stuff too, even interacting with vb and 
jscript through the IDispatch which I think will work in Excel 
too.


I'm crazy busy the next few days, but here's the code:

https://github.com/adamdruppe/com

I have to remember just how to use it to guide through but 
maybe the examples in there will help.


Thanks for this.  The original windows api header port has 
disappeared from the original source, but I used Rikki 
Cattermole's fork.  Worked fine, except I had to change const for 
GUID in a couple of places.


Do you have any thoughts on automating the generation of IDL 
files?  If I understand correctly, I need these to be able to 
call a COM object from a dynamic language like VB.  Or did you 
just generate these by hand when you called from javascript ?



Laeeth



Re: dtiled v0.2 - a library for tilemapped games

2015-06-22 Thread Manu via Digitalmars-d-announce
Hey cool. I haven't thought about tiled for years!
I contributed the terrain painting system years ago ;)
Nice to see a lib in D!

On 22 June 2015 at 13:45, rcorre via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:
 dtiled v0.2 is out, and for better or worse, it got hit by a serious case of
 feature creep.

 v0.1 was simply an easy way to load maps created with Tiled
 (http://mapeditor.org).

 v0.2 attempts to provide much of the functionality commonly needed by
 tilemapped games.

 I like to hack around on tilemapped rpg/strategy games, and noticed I was
 copying a lot of the same map-handling code everywhere, so I took a shot at
 lib-ifying it.

 The new tilemap modules (dtiled.grid and dtiled.map) are independent of the
 Tiled map-loading module (now called dtiled.data). You don't _have_ to load
 your map from a Tiled json file, any 2D array will work. However, as a
 whole, these modules should provide a nice road from creating a map in Tiled
 to working with it in a game.

 You can check out:

 The source: https://github.com/rcorre/dtiled
 The dub package: http://code.dlang.org/packages/dtiled
 The docs: http://rcorre.github.io/dtiled/index.html
 The demo: https://github.com/rcorre/dtiled-example

 dtiled is intended to be game-engine independent; the demo can currently be
 run using either DAllegro (requires allegro5) or DGame (requires sdl2) as a
 backend.

 My next goals are pathfinding and a more interesting demo. I've considered
 adding support for other Tiled map formats (tmx and csv), but I'm not sure
 that is
 valuable as anyone using Tiled has the option to export to json, which
 should contain all of the necessary data.

 Eventually, I may add support for isometric and hexagonal maps.


Re: This Week in D: Dconf Thursday summaries

2015-06-22 Thread Adam D. Ruppe via Digitalmars-d-announce

On Monday, 22 June 2015 at 06:01:35 UTC, Laeeth Isharc wrote:
Do you have any thoughts on automating the generation of IDL 
files?


I didn't need them, the mixin IDispatchImpl bit (example here: 
https://github.com/adamdruppe/com/blob/master/example/chello.d ) 
gave enough that the dynamic languages could call it through that 
interface.


With IDispatch, they ask for functions by name string and pass 
the arguments, and it needs to forward. With the mixin, it uses 
reflection to generate those mappings and use it that way.


Re: Scriptlike v0.8.0

2015-06-22 Thread via Digitalmars-d-announce

On Monday, 22 June 2015 at 09:08:45 UTC, Per Nordlöw wrote:

Something like this

userInput(T)(string message, T x);


Correction, should be

userInput(T)(string message, ref T x)



Re: Scriptlike v0.8.0

2015-06-22 Thread via Digitalmars-d-announce

On Sunday, 14 June 2015 at 01:28:18 UTC, Nick Sabalausky wrote:
A bunch of new updates to Scriptlike: A library to aid in 
writing script-like programs in D.


You should add an overload

to

http://semitwist.com/scriptlike/scriptlike/interact/userInput.html

that takes a reference to an existing variable like this

int x;

Something like this

userInput(T)(string message, T x);

This removes the need for specifying the type of `x` in the call 
to `userInput` if x is already defined.


Re: Walter, Brian, and Daniel's DConf 2015 talks are up

2015-06-22 Thread Brad Anderson via Digitalmars-d-announce

On Friday, 19 June 2015 at 22:47:03 UTC, Brad Anderson wrote:

Walter: https://www.youtube.com/watch?v=znjesAXEEqw
Brian: https://www.youtube.com/watch?v=FmFyB9e7edw
Daniel: https://www.youtube.com/watch?v=5daHGXSetXk

I've only just started watching but the editing seems to be 
well done so thanks to UVU for that.


Couldn't Walter's idea for adding more language support for 
ranges just be done already with operator overloading?


RE: Walter, Brian, and Daniel's DConf 2015 talks are up

2015-06-22 Thread Daniel Kozák via Digitalmars-d-announce
Yes, IT could, but this will need to modify each existing and future range or 
implement UFCS operator overloading

- Původní zpráva -
Od:Brad Anderson via Digitalmars-d-announce 
digitalmars-d-announce@puremagic.com
Odesláno:‎23. ‎6. ‎2015 4:06
Komu:digitalmars-d-announce@puremagic.com 
digitalmars-d-announce@puremagic.com
Předmět:Re: Walter, Brian, and Daniel's DConf 2015 talks are up

On Friday, 19 June 2015 at 22:47:03 UTC, Brad Anderson wrote:
 Walter: https://www.youtube.com/watch?v=znjesAXEEqw
 Brian: https://www.youtube.com/watch?v=FmFyB9e7edw
 Daniel: https://www.youtube.com/watch?v=5daHGXSetXk

 I've only just started watching but the editing seems to be 
 well done so thanks to UVU for that.

Couldn't Walter's idea for adding more language support for 
ranges just be done already with operator overloading?


This Week in D #22 - DConf Friday writeups, finally!

2015-06-22 Thread Adam D. Ruppe via Digitalmars-d-announce

http://arsdnet.net/this-week-in-d/jun-21.html

This finally wraps up the core writing on DConf 2015. I wrote a 
total of about 14,000 words on it over the last four issues - a 
lot of good stuff was discussed there!


Otherwise, the big discussions this week were about the web 
assembly and the flamewar thread, which I didn't want to spend 
too much time on but did briefly summarize. The big takeaway is 
there might be regular meetings of the core team now. Perhaps I 
can do brief minutes on those when they happen.


I'm not quite done with DConf, but the next few weeks will be 
back to tips, interviews, and project spotlights like before as I 
clear out some of that backlog and wait for more videos to be 
finished from UVU.


When they're all done, I'll paste all these words together with 
the links to do some kind of special edition digest.



BTW even for those of you who were at the conference, I ask you 
to take a quick skim: I added my opinions at times, and if you'd 
like to comment, they might be interesting to talk about in the 
forum! :)