Re: Interfacing D to existing C++ code

2015-01-30 Thread Paolo Invernizzi via Digitalmars-d-announce

On Friday, 30 January 2015 at 04:08:56 UTC, Daniel Murphy wrote:
Walter Bright  wrote in message 
news:maed4o$2da6$1...@digitalmars.com...




 So constructors and destructors are mangled 'a la D' instead 
 of the C++ way.


Please post this to bugzilla.


The problems with constructors go beyond mangling, so the 
current forced D mangling is intentional to prevent wrong-code 
bugs.


An approach that currently works is porting the code to D, 
being careful to exactly match the layout and functionality.  
When done right, this allows templated types to be constructed 
with any type in either language and passed back and forth 
without problems.


This is what I've done for dmd's ArrayT in ddmd.


I've done the same for some matrix ctor of opencv: it's a pain 
but works...


The main problem I've found right now it's that sometime I'm 
forced to choose a struct in D mapping a class in C++ just to 
have the right mangling for const ref methods...




Re: Concise Binary Object Representation (CBOR) binary serialization library.

2014-12-20 Thread Paolo Invernizzi via Digitalmars-d-announce

On Saturday, 20 December 2014 at 14:11:56 UTC, MrSmith wrote:

On Friday, 19 December 2014 at 22:25:57 UTC, Nordlöw wrote:

On Friday, 19 December 2014 at 18:26:26 UTC, MrSmith wrote:

Here is github link: https://github.com/MrSmith33/cbor-d
Destroy!


It would be nice to have a side-by-side comparison with 
http://msgpack.org/ which is in current use by a couple 
existing D projects, include D Completion Daemon (DCD) and a 
few of mine.


There is a comparison to msgpack here (and to other formats 
too): http://tools.ietf.org/html/rfc7049#appendix-E.2

which states:


I suggest to look also at Cap'n Proto, its author was the author 
of the original
google protobuf, and here [1] you can find some interesting 
insight about

serialization protocols.

I'm planning an implementation of cap'n proto for D...

Good job, anyway! ;-P

[1] http://kentonv.github.io/capnproto/news/
---
Paolo


Re: forum.dlang.org is now using DCaptcha

2014-12-04 Thread Paolo Invernizzi via Digitalmars-d-announce

On Thursday, 4 December 2014 at 10:39:25 UTC, eles wrote:

On Thursday, 4 December 2014 at 08:20:27 UTC, Kagamin wrote:

On Thursday, 4 December 2014 at 02:29:39 UTC, Faux Amis wrote:


tries to differentiate between human wanting to learn D and 
one not wanting.


the latter is just a myth...


LOL





Re: D is for Data Science

2014-11-25 Thread Paolo Invernizzi via Digitalmars-d-announce

On Tuesday, 25 November 2014 at 01:10:56 UTC, Walter Bright wrote:

On 11/24/2014 4:50 PM, Adam D. Ruppe wrote:
On Tuesday, 25 November 2014 at 00:34:30 UTC, Walter Bright 
wrote:
Thought I'd post this as a counterpoint to the recent please 
break our code

thread.


I would caution against putting very much weight in Reddit 
opinions - there's
people who will never use D and just look for excuses to 
justify their prejudice
and there's people who think they want something, but don't 
really have any idea

(this is common in feature requests, as I'm sure you know)

That comment, in particular, seems very questionable to me. 
dstats at least
compiles out of the box and has github activity within the 
last few months. It
has a lot of templates, so maybe actually using it would 
reveal compilation

problems, but at quick glance it seems to work.


I know it's a tough call. But I do see these sorts of comments 
regularly, and it is a fact that there are too many D libraries 
gone to seed that won't compile anymore, and that makes us look 
bad.


If that it's the problem, it's time to go ahead with an explicit 
support for the work done in dfix, no?
It's not a silver bullet, but it's a clear indication to the 
potential adopters that there's a plan, and actively indicate 
that definitely we care about that particular issue, common to 
every language.


---
/Paolo


Re: Interview with Andrei Alexandrescu on the D Programming Language

2014-10-11 Thread Paolo Invernizzi via Digitalmars-d-announce

On Saturday, 11 October 2014 at 13:07:42 UTC, Szymon Gatner wrote:
On Saturday, 11 October 2014 at 11:31:12 UTC, Sergei Nosov 
wrote:
On Saturday, 11 October 2014 at 09:21:21 UTC, Walter Bright 
wrote:

https://www.youtube.com/watch?v=tvdoIJaPooI

On reddit:

https://www.reddit.com/r/programming/comments/2iws85/interview_with_andrei_alexandrescu_on_the_d/


Andrei mentions in this talk, that C++ support is implemented 
to

the extent, when you can pass std::vector from C++ to D and in
the opposite direction without friction.

Are the any pointers on how I can try it out? Like, is it in 
git
master? Where can I find a documentation or an article about 
that?




I got interested in the very same part.


Take a look here [1] and here [2]
You must use the current git master (Digger [3] can help you with 
an easy build of it).


Note that some template mangling are still broken, and there are 
problems with the pass-by-ref, but, well, somehow it works!


https://github.com/D-Programming-Language/dmd/blob/master/test/runnable/cppa.d
https://github.com/D-Programming-Language/dmd/blob/master/test/runnable/extra-files/cppb.cpp
https://github.com/CyberShadow/Digger

---
/Paolo


Re: D2 port of Sociomantic CDGC available for early experiments

2014-10-08 Thread Paolo Invernizzi via Digitalmars-d-announce
On Wednesday, 8 October 2014 at 06:58:36 UTC, ketmar via 
Digitalmars-d-announce wrote:

On Tue, 07 Oct 2014 17:18:18 -0700
Walter Bright via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:

i assume that not everyone are ready to build dmd from sources,


Digger? What can be easier?

--
/P


Re: DConf 2014 publishes schedule, opens registration

2014-05-23 Thread Paolo Invernizzi via Digitalmars-d-announce

On Friday, 23 May 2014 at 06:51:44 UTC, Ali Çehreli wrote:

On 03/03/2014 04:13 PM, Ali Çehreli wrote:

 On 03/03/2014 04:09 PM, Alessandro Stamatto wrote:
 Damn!

 No spoilers about the mysterious Scott Meyers talk, what is
the last
 thing D needs?!?!?! Curious! 8-)

 Scott himself? ;)

 Ali

It turns out, I was right for the wrong reason. :)

It was an excellent talk.

Ali


I'm so curious: waiting for the video!

;-P

---
Paolo


Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Paolo Invernizzi via Digitalmars-d-announce

On Wednesday, 30 April 2014 at 20:15:37 UTC, Alexander Bothe
wrote:

Hi everyone,

there's a new XamarinStudio version upcoming. And just as 
usual, I've just downloaded the bleeding-edge release candidate 
and made Mono-D run on it :P


For the next couple of days, you'll only be able to get Mono-D 
from the repo I've mentioned in the release note, as 
XamarinStudio's online addin system isn't ready for the new 
major version yet.


Furthermore, there have been some smaller changes  
improvements to the completion functionality again. There's 
also upcoming dustmite support where you'll be able to invoke 
dustmite from within Mono-D.


http://mono-d.alexanderbothe.com/mono-d-2-0-for-xamarinstudio-5-0/

Hopefully, I can release the new XamarinStudio/MonoDevelop 
version on Linux as well. Someone mentioned an API freeze for 
the next couple of XS/MD versions, so chances are good that 
there's no hassle with broken Mono-D's for the next months.


Enjoy!


Hi Alex,

Great Job!

I'm not seeing any more the icons in the document outline pad: is
it expected?

Thanks,
Paolo


Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Paolo Invernizzi via Digitalmars-d-announce

On Saturday, 3 May 2014 at 18:55:44 UTC, Alexander Bothe wrote:

On Saturday, 3 May 2014 at 17:09:41 UTC, Paolo Invernizzi wrote:
I'm not seeing any more the icons in the document outline pad: 
is

it expected?


Fixed it in v2.0.2


Thank you!

/Paolo


<    1   2