Re: 2.069.0 Installation problem with .exe for Windows

2015-11-11 Thread wobbles via Digitalmars-d-announce

On Wednesday, 11 November 2015 at 08:41:41 UTC, Mike James wrote:
On Wednesday, 11 November 2015 at 03:13:18 UTC, Martin Nowak 
wrote:

On Tuesday, 10 November 2015 at 14:17:28 UTC, Mike James wrote:

The x64 sub-directory does not exist on my system.


We found the bug and I build a new installer with the fix.
https://dlang.dawg.eu/downloads/dmd.2.069.0~fix15824/
As soon as someone confirms the fix, we'll make a new point 
release.


Hi Martin,

I can confirm it installs correctly on:

Windows 10 64-bit.
Windows Vista 32-bit.
Windows 7 64-bit.

Thanks.

Regards,

-=mike=-


I also tried on Windows 8.1 64-bit. To test, I installed it over 
DMD 2.067 and 2.068, both were successful.


Re: 2.069.0 Installation problem with .exe for Windows

2015-11-11 Thread Mike James via Digitalmars-d-announce
On Wednesday, 11 November 2015 at 03:13:18 UTC, Martin Nowak 
wrote:

On Tuesday, 10 November 2015 at 14:17:28 UTC, Mike James wrote:

The x64 sub-directory does not exist on my system.


We found the bug and I build a new installer with the fix.
https://dlang.dawg.eu/downloads/dmd.2.069.0~fix15824/
As soon as someone confirms the fix, we'll make a new point 
release.


Hi Martin,

I can confirm it installs correctly on:

Windows 10 64-bit.
Windows Vista 32-bit.
Windows 7 64-bit.

Thanks.

Regards,

-=mike=-


Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Lionello Lunesu via Digitalmars-d-announce
Sorry for the short notice, but I'll be giving an introduction to D at 
this month's Codeaholics meetup. Drop by if you happen to be in Hong Kong!


More info here (no need for RSVP):
http://www.meetup.com/Codeaholics/events/226177740/

7pm - 9pm
CoCoon
3/F, Citicorp Centre, 18 Whitfield Road, TinHau, Hong Kong


Re: Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Ali Çehreli via Digitalmars-d-announce

On 11/11/2015 01:19 AM, Lionello Lunesu wrote:


 an introduction to D at this month's Codeaholics meetup


Can you share your slides please... within the next 12 hours or so... 
before some of us give a similar talk... :)


Ali



D Language Architect

2015-11-11 Thread Andrei Alexandrescu via Digitalmars-d-announce
Walter and I are planning major marketing moves, for which there's a 
necessity to describe my relationship with D succinctly. People 
routinely introduce me as "co-creator of D" and I need to explain "well, 
D had already been created when I joined but I worked on a number of 
features" etc.


Although D looks quite different now than it was in 2006, the "creation" 
act only happens once, so "co-creator" is inaccurate and shifts credit 
inappropriately. Last thing you want in PR is someone in the crowd to go 
"wait, but you didn't create it" and the next-to-last thing is to need 
to define the relationship between you and what you're selling as "well, 
it's complicated".


So we mulled over this for a while and we decided to go with "D Language 
Architect". I'll use that henceforth. Walter will remain of course the 
"D Language Creator".


No need to call me that way :o).


Thanks,

Andrei


Re: D Language Architect

2015-11-11 Thread qznc via Digitalmars-d-announce
On Wednesday, 11 November 2015 at 12:27:00 UTC, Andrei 
Alexandrescu wrote:
So we mulled over this for a while and we decided to go with "D 
Language Architect". I'll use that henceforth. Walter will 
remain of course the "D Language Creator".


So you are AAA now, Architect Andrei Alexandrescu.


Re: Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 11 November 2015 at 17:30:07 UTC, Lionello Lunesu 
wrote:
as being a semantic difference, with no difference in memory 
layout. One can be indexed meaningfully, the other can't.)


Eh, indexing char[] is meaningful, you just need to know what 
that meaning is...


Re: Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Lionello Lunesu via Digitalmars-d-announce

On 11/11/15 23:34, Walter Bright wrote:

On 11/11/2015 3:03 AM, Lionello Lunesu wrote:

Will share how it's received in an hour ;)



This is great! How did it go?


Actually went much better than expected! Very engaging crowd, with good 
questions. I think the way I positioned D was being "just another cool 
tool in a programmer's toolbox" really resonated with them. It certainly 
prevented the usual Go vs D vs Rust kind of competitiveness.


Few of the questions I got were

* Why doesn't D explicitly specify the exceptions that can be thrown? 
(To which I answered that I never saw the point in Java and only found 
it tedious. This did not convince the person.)


* Can I use D to build for ARM? (I said that the usual ARM code 
generators of GDC and LDC could be used, and that the runtime had less 
and less [if any] x86 dependencies left.)


* Why the difference between byte[] and char[]? (I explained it as being 
a semantic difference, with no difference in memory layout. One can be 
indexed meaningfully, the other can't.)


* Can I create an array of shared ints (as opposed to a shared array of 
ints)? I said that one could by using shared(int)[], although I have yet 
to try this myself.


* Does D use SIMD? (Yes, and it's leveraged automatically when you do 
operations on arrays.)


* How do the libraries available to D compare to the others like Go and 
Python? (I replied by introducing C/C++ compat and code.dlang.org)


* What if a global function with argument A has the same name as a 
member of A? (I talked about function hijacking and how D prevents it.)


I might remember more tomorrow. Will share if I do.

L.


Re: Andrei's Quora comments on Reddit: "D has no vision. Go is out of its depth. Rust skipped leg day."

2015-11-11 Thread Namal via Digitalmars-d-announce

On Wednesday, 11 November 2015 at 01:03:47 UTC, Ali Çehreli wrote:


https://www.reddit.com/r/programming/comments/3sa6lf/d_has_no_vision_go_is_out_of_its_depth_rust/

Ali


Reading that someone was saying that it is possible to call c++ 
standard library from D. Is there an example how to do this?


Re: "Programming in D" ebook is available for purchase

2015-11-11 Thread Namal via Digitalmars-d-announce

On Friday, 30 October 2015 at 06:29:42 UTC, Ali Çehreli wrote:

On 10/29/2015 08:59 PM, Joakim wrote:

> it's very easy to set up a bitcoin address to receive
donations

I really appreciate it but... I am embarrassed to reveal that I 
don't want to have bitcoins. :) I can't explain this 
rationally; perhaps I was bitten by a coin in the dark when I 
was a young child; I don't know... The feeling is very similar 
to my not wanting to be on LinkedIn, Facebook, and other 
similar things. :)


Sorry... :)
Ali


So is there a way to buy the book on paper besides amazon? Not 
that I don't like amazon it is just that there are always 
problems ordering from outside the EU due to customs duties.










Release D 2.069.1

2015-11-11 Thread Martin Nowak via Digitalmars-d-announce
This is an unplanned point release whose sole purpose is to fix a severe
Windows installer bug.

http://dlang.org/download.html
http://downloads.dlang.org/releases/2.x/2.069.1/
http://dlang.org/changelog/2.069.1.html

-Martin


Re: Release D 2.069.1

2015-11-11 Thread Rikki Cattermole via Digitalmars-d-announce

On 12/11/15 1:04 AM, Martin Nowak wrote:

This is an unplanned point release whose sole purpose is to fix a severe
Windows installer bug.

http://dlang.org/download.html
http://downloads.dlang.org/releases/2.x/2.069.1/
http://dlang.org/changelog/2.069.1.html

-Martin


Oh great, now we need another point release to fix: 
https://issues.dlang.org/show_bug.cgi?id=15281




Re: Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Walter Bright via Digitalmars-d-announce

On 11/11/2015 3:03 AM, Lionello Lunesu wrote:

Will share how it's received in an hour ;)



This is great! How did it go?


Re: Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Lionello Lunesu via Digitalmars-d-announce

On 11/11/15 18:30, Ali Çehreli wrote:

On 11/11/2015 01:19 AM, Lionello Lunesu wrote:


 an introduction to D at this month's Codeaholics meetup


Can you share your slides please... within the next 12 hours or so...
before some of us give a similar talk... :)

Ali



Sure thing:
https://onedrive.live.com/redir?resid=DC1E6665A482DC20%21690440

It's going to be a fairly low-level talk for a mostly python/ruby crowd, 
focusing on some of the key advantages of D over the others.


Will share how it's received in an hour ;)

L.


Re: 2.069.0 Installation problem with .exe for Windows

2015-11-11 Thread Martin Nowak via Digitalmars-d-announce
On 11/11/2015 11:22 AM, wobbles wrote:
> I also tried on Windows 8.1 64-bit. To test, I installed it over DMD
> 2.067 and 2.068, both were successful.

Now released, http://forum.dlang.org/post/n1vatr$1106$1...@digitalmars.com.



Re: Release D 2.069.1

2015-11-11 Thread Martin Nowak via Digitalmars-d-announce
On 11/11/2015 01:18 PM, Rikki Cattermole wrote:
> 
> This has already been talked about on D.learn. It's a very bad look
> especially since this is a major addition for this release.
> Hence why I have even mentioned this to Andrei.

Well, test the beta.
Both, the installer bug and the lack of allocator in win*.mak could have
easily been found.

> Bad bad bad bad situation for us.

It's not the end of the world, but a good chance too think about how we
could use nightlies or weeklies to bridge this gap.
>From my side it's very simple to build tarballs, and when combined with
an nice install script [¹] should work.
It's more difficult to do the packaging because that relies on sensible
version tags.

[¹]: http://forum.dlang.org/post/n1v541$r99$1...@digitalmars.com


Re: Release D 2.069.1

2015-11-11 Thread Rikki Cattermole via Digitalmars-d-announce

On 12/11/15 2:46 AM, Martin Nowak wrote:

On 11/11/2015 01:18 PM, Rikki Cattermole wrote:


This has already been talked about on D.learn. It's a very bad look
especially since this is a major addition for this release.
Hence why I have even mentioned this to Andrei.


Well, test the beta.
Both, the installer bug and the lack of allocator in win*.mak could have
easily been found.


I actually did, I didn't catch it 1) because most work was on Linux and 
2) it was already copied.



Bad bad bad bad situation for us.


It's not the end of the world, but a good chance too think about how we
could use nightlies or weeklies to bridge this gap.
 From my side it's very simple to build tarballs, and when combined with
an nice install script [¹] should work.
It's more difficult to do the packaging because that relies on sensible
version tags.

[¹]: http://forum.dlang.org/post/n1v541$r99$1...@digitalmars.com


Yeah I know, its fairly simple fix, for the end user.
I'm only making a big deal of it, to get the attention that we need to 
sort out our practices a bit.


Re: Release D 2.069.1

2015-11-11 Thread Rikki Cattermole via Digitalmars-d-announce

On 12/11/15 1:10 AM, Martin Nowak wrote:

On 11/11/2015 01:07 PM, Rikki Cattermole wrote:


Oh great, now we need another point release to fix:
https://issues.dlang.org/show_bug.cgi?id=15281


Seems like that can wait 3 weeks for the officially scheduled point
release (Dec 1st).


This has already been talked about on D.learn. It's a very bad look 
especially since this is a major addition for this release.
Hence why I have even mentioned this to Andrei. Bad bad bad bad 
situation for us.


Re: Release D 2.069.1

2015-11-11 Thread develop32 via Digitalmars-d-announce
On Wednesday, 11 November 2015 at 12:05:16 UTC, Martin Nowak 
wrote:
This is an unplanned point release whose sole purpose is to fix 
a severe Windows installer bug.


http://dlang.org/download.html 
http://downloads.dlang.org/releases/2.x/2.069.1/ 
http://dlang.org/changelog/2.069.1.html


-Martin


People not being able to install DMD on a fresh PC made a 
near-disaster for me yesterday. Thank you a lot for releasing 
this so soon!


Re: D 2.068.2 test runner for Android ARM, please test and report results from your Android device

2015-11-11 Thread Fer22f via Digitalmars-d-announce

On Sunday, 1 November 2015 at 09:50:16 UTC, Joakim wrote:

https://github.com/joakim-noah/android/releases/tag/runners
You can install a test runner app or run a command-line binary.


This is from a Moto Maxx (it's a Droid Maxx rebranded), Android 
v5.0.2 and Snapdragon 805. These tests hang:


std.socket
std.stdio

Everything else went smoothly. I'm not an expertise android 
developer so I don't know how to get stacktraces from logcat, all 
I oculd get was the verbose of the test program (using "adb 
logcat test_runner:V *:S").


Re: New Russian site about D Programming Language

2015-11-11 Thread Suliman via Digitalmars-d-announce

On Thursday, 1 August 2013 at 17:29:00 UTC, Suliman wrote:
Would it be possible to create block "communities" on dlang.org 
site and put there links to national language communities?


We are back online. Still site have a lot of issue, but we will 
fix them on running time.


Sorry for a long shutdown time.

--
http://dlang.ru


Re: "Programming in D" ebook is available for purchase

2015-11-11 Thread Namal via Digitalmars-d-announce

On Wednesday, 11 November 2015 at 19:43:53 UTC, Ali Çehreli wrote:

Actually, there shouldn't be a problem if you order it even in 
Europe because as I understand it, CreateSpace has two other 
printing houses: one in UK and one in somewhere in Central 
Europe. (Don't quote me on that! This is just a "feeling".)


Yes, just ordered it from german amazon for EUR 30,50.


Re: "Programming in D" ebook is available for purchase

2015-11-11 Thread Ali Çehreli via Digitalmars-d-announce

On 11/11/2015 11:43 AM, Ali Çehreli wrote:

> tl;dr:
>
> Search for ISBN 978-0-692-52957-7

Searching for it without the dashes gives more results:

  9780692529577

Ali



Re: Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Dicebot via Digitalmars-d-announce
On Wednesday, 11 November 2015 at 17:30:07 UTC, Lionello Lunesu 
wrote:
* Can I create an array of shared ints (as opposed to a shared 
array of ints)? I said that one could by using shared(int)[], 
although I have yet to try this myself.


Should totally work. Imagine thread-local slices from bunch of 
consequent int's in shared memory.


Re: Andrei's Quora comments on Reddit: "D has no vision. Go is out of its depth. Rust skipped leg day."

2015-11-11 Thread Jack Stouffer via Digitalmars-d-announce

On Wednesday, 11 November 2015 at 19:51:45 UTC, Ali Çehreli wrote:
The following page is about interfacing with C++, which may not 
be up to date:


  http://dlang.org/cpp_interface.html

Others: is it up to date?

Ali


Unfortunately, that page is very out of date. The last 
significant content update to that page was August of last year. 
If I was a C++ programmer I would have fixed it by now but no one 
who has the knowledge needed seems to want to update this.


Re: D Language Architect

2015-11-11 Thread Chris via Digitalmars-d-announce

On Wednesday, 11 November 2015 at 16:46:52 UTC, qznc wrote:
On Wednesday, 11 November 2015 at 12:27:00 UTC, Andrei 
Alexandrescu wrote:
So we mulled over this for a while and we decided to go with 
"D Language Architect". I'll use that henceforth. Walter will 
remain of course the "D Language Creator".


So you are AAA now, Architect Andrei Alexandrescu.


Has anybodv ever read this book? I can only recommend it:

http://www.amazon.com/Architect-Bee-Human-Technology-Relationship/dp/0949874000/ref=sr_1_3?ie=UTF8=1447272861=8-3=architect+or+bee

Or the revised edition

http://www.amazon.com/Architect-Bee-Technology-Current-affairs/dp/0701207698/ref=sr_1_2?ie=UTF8=1447272861=8-2=architect+or+bee

Architect or B? No, architect and D! (Bad bad pun, I know)


Re: "Programming in D" ebook is available for purchase

2015-11-11 Thread Ali Çehreli via Digitalmars-d-announce

On 11/11/2015 07:34 AM, Namal wrote:

> So is there a way to buy the book on paper besides amazon?

Yes! I haven't announced it here yet but it's on the book's page:

  http://ddili.org/ders/d.en/

tl;dr:

Search for ISBN 978-0-692-52957-7, which should be available 
conveniently at most places. Better yet, ask your local bookstore to 
order it for you.


Long version:

Note: All of the following are a part of my presentation at Silicon 
Valley ACCU tonight (November 11, 2015):


  http://www.meetup.com/SFBay-Association-of-C-C-Users/events/225125586/

I will be happy to meet other D people there! ;)

Confusingly, this book is now among those that have two ISBNs. :(

CreateSpace (an Amazon affiliate) ISBN is 978-1515074601. Unfortunately, 
it has almost zero chance of being sold at local bookstores because 
local bookstores don't like their business practices. Here are actual 
comments from a local bookstore:


"unable to carry your book in our store because your book is
published under an imprint of Amazon. CreateSpace is part of
Amazon."

"It is our company policy not to carry stock for titles that
Amazon has published as they are our competitors and we do not
agree with their business practices."

"your book is available from Ingram as not returnable & with a
short % for us"

Enter Ingram... Ingram is one of the largest book distributors that is 
well respected by book retailers. Ingram appears in the last excerpt 
above because, as I understand it, Ingram distributes any published 
book, self-published or not. (That's how the CreateSpace book is 
available to local bookstores, who will not carry it.)


So, I went all the trouble of getting the book published by Ingram's 
self-publishing platform as well. The following ISBN is already on 
internet search results:


  IngramSpark ISBN: 978-0-692-52957-7

If you can, please ask your local bookstores for that book or order it 
through them. You will not pay for customs or shipping and if the 
bookstore decides to stock it, more people will have a chance of running 
into it on the book aisles.


The catch: This book now has two list prices: $31.50 for the CreateSpace 
one, and $37.73 for the IngramSpark one. (These are US prices; the price 
varies at other countries.)


Publishing at IngramSpark is more costly both because they charge more 
and because the author has to set a sizable wholesale discount for the 
book to have a chance of being sold at local stores.


I had set the CreateSpace price to the very low $28.50 initially, but 
now I increased it so that the two ISBNs are at least in the thirties.


Having said all that about the price, most people can find the book for 
around $25.


> Not that I don't like amazon it is just that there are always
> problems ordering from outside the EU due to customs duties.

Actually, there shouldn't be a problem if you order it even in Europe 
because as I understand it, CreateSpace has two other printing houses: 
one in UK and one in somewhere in Central Europe. (Don't quote me on 
that! This is just a "feeling".)


I feel very bad for putting CreateSpace's name on this thread saying 
"they pay most royalty to the author". Unfortunately, it can be very 
inconvenient as well: You have to create an account with them, shipping 
times can be very long, shipping cost can be more than zero (what some 
Amazon members pay), etc. Additionally, as you say, a reader told me 
that they had to pay a huge customs fee because they just wanted me to 
get more royalty. (And we're talking $12 versus $6 royalty. Nobody can 
retire with that difference. :p)


And here is an update about the ebooks: I was able to embed the fonts in 
the EPUb and AZW3 versions. I will make the new versions available soon 
after fixing content problems: An expert emailed me saying that I've 
been spreading the misconception of categorizing languages as 
interpreted versus compiled. I am changing that part. Also, I will make 
sure that I make it clear that signed arithmetic behavior is undefined 
behavior.


I love publishing in the 21th century! :) I make a correction and 
everything gets updated almost immediately: the online version, the 
ebooks, and even the print version! (The print version needs a couple of 
days to be verified by a human. That's all.)


Ali



Re: Andrei's Quora comments on Reddit: "D has no vision. Go is out of its depth. Rust skipped leg day."

2015-11-11 Thread Ali Çehreli via Digitalmars-d-announce

On 11/11/2015 06:42 AM, Namal wrote:


someone was saying that it is possible to call c++ standard
library from D. Is there an example how to do this?


Here is the spec e.g. saying 'extern (C++, std)':

  http://dlang.org/attribute.html#linkage

The following page is about interfacing with C++, which may not be up to 
date:


  http://dlang.org/cpp_interface.html

Others: is it up to date?

Ali



Re: D Language Architect

2015-11-11 Thread The Old One via Digitalmars-d-announce
On Wednesday, 11 November 2015 at 12:27:00 UTC, Andrei 
Alexandrescu wrote:
Walter and I are planning major marketing moves, for which 
there's a necessity to describe my relationship with D 
succinctly. People routinely introduce me as "co-creator of D" 
and I need to explain "well, D had already been created when I 
joined but I worked on a number of features" etc.


Although D looks quite different now than it was in 2006, the 
"creation" act only happens once, so "co-creator" is inaccurate 
and shifts credit inappropriately. Last thing you want in PR is 
someone in the crowd to go "wait, but you didn't create it" and 
the next-to-last thing is to need to define the relationship 
between you and what you're selling as "well, it's complicated".


So we mulled over this for a while and we decided to go with "D 
Language Architect". I'll use that henceforth. Walter will 
remain of course the "D Language Creator".


No need to call me that way :o).


Thanks,

Andrei


Excellent, Andrei!

And what a timely coincidence, since the other day I saw 
"co-creator" and thought less than favorably about you for it. 
But D Language Architect is excellent! Kudos!




Next London D Meetup - 18th November

2015-11-11 Thread Kingsley via Digitalmars-d-announce

Hi

Please come to the London D meetup on Wednesday 18th November.

We have a great talk by John Colvin on semi functional 
programming.


We have a fantastic venue at skills matter with great facilities 
and free video recording capabilities.


http://www.meetup.com/London-D-Programmers/events/226237601/


Re: LDC 0.17.0 alpha cross-compiler for Android/ARM, D 2.068.2

2015-11-11 Thread Jakob Ovrum via Digitalmars-d-announce

On Saturday, 7 November 2015 at 18:39:22 UTC, Joakim wrote:
OK, I've rebuilt ldc with one small tweak: I've added the 
current directory to its rpath and bundled my system libconfig 
along with it, which is what the official ldc release does too.

 You shouldn't need libconfig installed by your system anymore.
 Please download the updated release of the Android/ARM 
cross-compiler and let me know if it works for you.


Thanks, now compilation works! I have some unrelated issues with 
the NDK, so I will confirm how the end-to-end process works for 
me later once I solve that.


Note that this linux/x86 ldc cross-compiler also depends on the 
ncurses and zlib shared libraries, so you'll have to install 
those if you want to run it.


Yeah, libconfig was the only library that I couldn't find an Arch 
Linux multilib package for, I already had the others. Note that 
the NDK clang executable also relies on ncurses, so there 
wouldn't be much point in eliminating that dependency.




Re: D Language Architect

2015-11-11 Thread Ali Çehreli via Digitalmars-d-announce

On 11/11/2015 04:26 AM, Andrei Alexandrescu wrote:

> we decided to go with "D Language Architect". I'll use that
> henceforth.

I've just used it when talking with a colleague today. :)

Ali



Re: Next London D Meetup - 18th November

2015-11-11 Thread John Colvin via Digitalmars-d-announce

On Wednesday, 11 November 2015 at 22:43:22 UTC, Kingsley wrote:

Hi

Please come to the London D meetup on Wednesday 18th November.

We have a great talk by John Colvin on semi functional 
programming.


We have a fantastic venue at skills matter with great 
facilities and free video recording capabilities.


http://www.meetup.com/London-D-Programmers/events/226237601/


We had good fun last time, I'm looking forward to presenting and 
joining in with the coding afterwards :)