Re: My two cents

2017-10-21 Thread Mark via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements. And this is just how I see D from my perspective. (Sorry

Re: My two cents

2017-10-21 Thread Martin Nowak via Digitalmars-d
On Friday, 20 October 2017 at 20:05:51 UTC, jmh530 wrote: Interesting proposals, but IMHO, the only ESSENTIAL feature missing in D is the possibility to program in D using a built-in reference-counting based variant of the standard library. Look at the goals for H2 2017

Re: DCompute target: Intel to Introduce New CPU-FPGA Hybrid Chip Supported by Acceleration Stack

2017-10-21 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Friday, 20 October 2017 at 20:41:24 UTC, Nordlöw wrote: Ever since I first tried programming in VHDL and realized that it, at that time, was far too unproductive for my taste, I've been waiting for the software and FPGA programming models to unite... What kinds of simplifications (over

Re: DCompute target: Intel to Introduce New CPU-FPGA Hybrid Chip Supported by Acceleration Stack

2017-10-21 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
But I also get this feeling that Intel do this as an anti-competitive monopolistic. Basically preventing ARM and AMD from partnering with Altera. So it could be more hostile than friendly… The buy up might not make sense business wise in terms of new products. But it could make a lot of

Re: DCompute target: Intel to Introduce New CPU-FPGA Hybrid Chip Supported by Acceleration Stack

2017-10-21 Thread Nicholas Wilson via Digitalmars-d-announce
On Friday, 20 October 2017 at 20:41:24 UTC, Nordlöw wrote: Ever since I first tried programming in VHDL and realized that it, at that time, was far too unproductive for my taste, I've been waiting for the software and FPGA programming models to unite... What kinds of simplifications (over

[Issue 17924] New: allow to omit middle operator in ternary condition (a.k.a. add ?: Elvis operator)

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17924 Issue ID: 17924 Summary: allow to omit middle operator in ternary condition (a.k.a. add ?: Elvis operator) Product: D Version: D2 Hardware: All OS: All

Re: My two cents

2017-10-21 Thread Martin Nowak via Digitalmars-d
On Friday, 20 October 2017 at 18:11:50 UTC, Adam D. Ruppe wrote: On Friday, 20 October 2017 at 16:36:28 UTC, jmh530 wrote: It might help to have some sense of how the main devs time on D is being used. Definitely, I currently have no clue what they are on. Tried that, didn't resonate that

Re: is(this : myClass)

2017-10-21 Thread Patrick via Digitalmars-d-learn
But with the current compiler you would never write is(typeOf(myC) : typeof(c)) if in your mind "c" is actually a class "C" because if that is in your mind you would just write is(typeof(myC) : c) which would get you the error. You only need typeof(variable) to get to the type, there is

Re: Unit Testing in Action

2017-10-21 Thread Martin Nowak via Digitalmars-d-announce
On Friday, 20 October 2017 at 21:26:35 UTC, qznc wrote: * coverage is not sufficiently solved. The author suggests to reformat code so short-circuit evaluations become multiple lines? If you can use gdc or ldc, branch coverage should be supported out of the box. Other tools support regions

[Issue 17923] New: code coverage improvements

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17923 Issue ID: 17923 Summary: code coverage improvements Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P2

Re: My two cents

2017-10-21 Thread Martin Nowak via Digitalmars-d
On Friday, 20 October 2017 at 22:25:20 UTC, Adam Wilson wrote: For example, ?? and ?. are ridiculously common idioms that we all perform every day in our D code. And as Mr. Ruppe rightly pointed out, it'd probably take about an hour each to knock together a complete PR for these features.

[Issue 17907] Can't automatically resolve to function with same name as module

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17907 Shriramana Sharma changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 13911] rename std.stdio to std.io

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13911 Shriramana Sharma changed: What|Removed |Added CC||samj...@gmail.com --

[Issue 17922] New: SysTime.to

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17922 Issue ID: 17922 Summary: SysTime.to Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component:

Re: Deimos X11 bindings license question

2017-10-21 Thread vondes via Digitalmars-d
How we can use it in https://mobile-phone-tracker.org mobile recorder on Android?

Re: D for Android

2017-10-21 Thread vondes via Digitalmars-d
How we can use it in [url=https://mobile-phone-tracker.org]mobile tracker[/url] on Android?

Re: iopipe alpha 0.0.1 version

2017-10-21 Thread Martin Nowak via Digitalmars-d-announce
On 10/19/2017 03:12 PM, Steven Schveighoffer wrote: > On 10/19/17 7:13 AM, Martin Nowak wrote: >> On 10/13/2017 08:39 PM, Steven Schveighoffer wrote: >>> What would be nice is a mechanism to detect this situation, since the >>> above is both un-@safe and incorrect code. >>> >>> Possibly you could

[Issue 17922] SysTime.to

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17922 Uranuz changed: What|Removed |Added Status|NEW |RESOLVED

Re: Writing some built-in functions for Bash, possible?

2017-10-21 Thread Ky-Anh Huynh via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 08:15:53 UTC, evilrat wrote: [...] This isn't the actual code but should give you a hint, the rest is up to you. Woh Thanks a ton. I can have some working code after a few hours :D

Re: is(this : myClass)

2017-10-21 Thread Igor via Digitalmars-d-learn
On Friday, 20 October 2017 at 23:24:17 UTC, Patrick wrote: On Friday, 20 October 2017 at 23:01:25 UTC, Steven Schveighoffer wrote: On 10/20/17 6:23 PM, Patrick wrote: On Friday, 20 October 2017 at 22:15:36 UTC, Steven Schveighoffer wrote: On 10/20/17 5:55 PM, Patrick wrote: Due to the very

Re: Beta 2.077.0

2017-10-21 Thread Martin Nowak via Digitalmars-d-announce
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 10/16/2017 06:45 PM, Martin Nowak wrote: > First beta for the 2.077.0 release. Second beta live now. This adds a missing core.sys.linux.netinet.in_ header which is used by vibe.d. Happy Testing - -Martin -BEGIN PGP SIGNATURE-

Some tasks in D app

2017-10-21 Thread Orkhan via Digitalmars-d-announce
Hello. I have an app for multiplayer game website. I am Facing an issue about stacking terminal. Also the app does not save the logs which is supposed to. I need someone who can fix this. Will send the app to developer. in total The tasks are : 1) Fix stacking issue in the terminal, 2) Fix

Re: My first experience as a D Newbie

2017-10-21 Thread Mark via Digitalmars-d
On Saturday, 21 October 2017 at 01:45:40 UTC, codephantom wrote: The real challenge (and ultimate goal) for any open-source project (especially a volunteer based one), is finding equilibria. Honestly, I do not believe that an open-source project, beyond a certain scale, can sustain itself

[Issue 17922] SysTime.to

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17922 Jonathan M Davis changed: What|Removed |Added CC|

Re: My two cents

2017-10-21 Thread Adam Wilson via Digitalmars-d
On 10/21/17 11:52, bitwise wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: async/await (vibe.d is nice but useless in comparison to C# or js async/await idiom) Reference counting when we cannot use GC... If I understand correctly, both of these depend on

Re: My two cents

2017-10-21 Thread Walter Bright via Digitalmars-d
On 10/21/2017 1:40 PM, Adam Wilson wrote: Walter has stated numerous times both here and at conferences that Async/Await is definitely a goal. However, it's not as high a priority as the @safe/@nogc work so it hasn't made it to any official vision statement. Also I just talked to him offline

Silicon Valley D Meetup - October 26, 2017 - "D Fibers" by Ali Çehreli

2017-10-21 Thread Ali Çehreli via Digitalmars-d-announce
[We're at a very convenient location again this time: Downtown Mountain View.] https://www.meetup.com/D-Lang-Silicon-Valley/events/243120102/ D Fibers Ali will present a shorter version of his DConf 2016 talk: http://dconf.org/2016/talks/cehreli.html D's fibers (coroutines in other

So why double to float conversion is implicit ?

2017-10-21 Thread NX via Digitalmars-d
I was working on some sort of math library for use in graphical computing and I wrote something like this: const float PiOver2 = (atan(1.0) * 4) / 2; Interestingly enough, I realized that atan() returns double (in this case) but wait, it's assigned to a float variable! Compiler didn't even

Re: So why double to float conversion is implicit ?

2017-10-21 Thread user1234 via Digitalmars-d
On Saturday, 21 October 2017 at 20:17:12 UTC, NX wrote: I was working on some sort of math library for use in graphical computing and I wrote something like this: const float PiOver2 = (atan(1.0) * 4) / 2; Interestingly enough, I realized that atan() returns double (in this case) but wait,

Re: Static if on release build

2017-10-21 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 20 October 2017 at 02:36:37 UTC, Fra Mecca wrote: I can't find any documentation regarding conditional compilation in release and debug mode. I have read the page regarding the topicon dlang.org but adding the snippet below makes no difference when compiling with dub -b release {

Re: My first experience as a D Newbie

2017-10-21 Thread Ola Fosheim Grøstad via Digitalmars-d
On Saturday, 21 October 2017 at 09:51:41 UTC, Mark wrote: Honestly, I do not believe that an open-source project, beyond a certain scale, can sustain itself without a consistent income stream. It is possible, but you need a very modular architecture. The main problem for large open source

Re: Unit Testing in Action

2017-10-21 Thread Mario Kröplin via Digitalmars-d-announce
On Friday, 20 October 2017 at 21:26:35 UTC, qznc wrote: * fluent-asserts is considered the best expectations library. Syntax is `(x + y).should.equal(42).because("of test reasons");` and it gives nice output with code snippets. The code snippets were the prominent feature from the

Re: My two cents

2017-10-21 Thread Andrei Alexandrescu via Digitalmars-d
On 10/21/17 9:47 AM, Martin Nowak wrote: On Friday, 20 October 2017 at 18:11:50 UTC, Adam D. Ruppe wrote: On Friday, 20 October 2017 at 16:36:28 UTC, jmh530 wrote: It might help to have some sense of how the main devs time on D is being used. Definitely, I currently have no clue what they

Re: My two cents

2017-10-21 Thread bitwise via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: async/await (vibe.d is nice but useless in comparison to C# or js async/await idiom) Reference counting when we cannot use GC... If I understand correctly, both of these depend on implementation of 'scope' which is being

Re: My two cents

2017-10-21 Thread user1234 via Digitalmars-d
On Saturday, 21 October 2017 at 19:39:31 UTC, Andrei Alexandrescu wrote: [...] Using the topic of the Elvis operator as a running example, a good DIP would contain motivation such as: * Present evidence of the successful use of ?: in other languages I'm not sure that people talked much

[Issue 17925] [Contract Programming]

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17925 Rob changed: What|Removed |Added Keywords||contracts --

Re: My two cents

2017-10-21 Thread EntangledQuanta via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements. And this is just how I see D from my perspective. (Sorry

Re: Silicon Valley D Meetup - October 26, 2017 - "D Fibers" by Ali Çehreli

2017-10-21 Thread Ali Çehreli via Digitalmars-d-announce
On 10/21/2017 04:57 PM, Mengu wrote: > On Saturday, 21 October 2017 at 18:20:13 UTC, Ali Çehreli wrote: >> [We're at a very convenient location again this time: Downtown >> Mountain View.] >> >> [...] > > > allahiniz varsa kaydedersiniz. :) [Mengü is wishing that we will manage to record the

Re: [OT] Generative C++

2017-10-21 Thread Joakim via Digitalmars-d
On Friday, 28 July 2017 at 07:49:02 UTC, Yuxuan Shui wrote: Someone made an interesting proposal to C++: https://herbsutter.files.wordpress.com/2017/07/p0707r1.pdf Thoughts? Sutter gave a longer presentation on his proposal at CppCon, which was posted online late last month and is the

Re: My two cents

2017-10-21 Thread user1234 via Digitalmars-d
On Saturday, 21 October 2017 at 21:45:11 UTC, Adam D. Ruppe wrote: On Saturday, 21 October 2017 at 20:02:28 UTC, user1234 wrote: I'm not sure that people talked much about the elvis operator (which was introduced in the topic by M.Nowak). In the first message were mentioned the null

[Issue 17922] SysTime.to

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17922 --- Comment #3 from Jonathan M Davis --- Yeah, unfortunately, there are a number of time zones that don't line up on the hour (usually they then line up on the half hour, but IIRC, not even that is always the case). --

Re: Unit Testing in Action

2017-10-21 Thread Walter Bright via Digitalmars-d-announce
On 10/21/2017 6:14 AM, Martin Nowak wrote: On Friday, 20 October 2017 at 21:26:35 UTC, qznc wrote: * coverage is not sufficiently solved. The author suggests to reformat code so short-circuit evaluations become multiple lines? If you can use gdc or ldc, branch coverage should be supported out

Re: Silicon Valley D Meetup - October 26, 2017 - "D Fibers" by Ali Çehreli

2017-10-21 Thread Mengu via Digitalmars-d-announce
On Saturday, 21 October 2017 at 18:20:13 UTC, Ali Çehreli wrote: [We're at a very convenient location again this time: Downtown Mountain View.] [...] allahiniz varsa kaydedersiniz. :)

Re: So why double to float conversion is implicit ?

2017-10-21 Thread codephantom via Digitalmars-d
On Saturday, 21 October 2017 at 20:17:12 UTC, NX wrote: Interestingly enough, I realized that atan() returns double (in this case) but wait, it's assigned to a float variable! Compiler didn't even emit warnings, let alone errors. There a few lessons here. (1) D is not Java ;-) (2) Know

[Issue 17925] New: [Contract Programming]

2017-10-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17925 Issue ID: 17925 Summary: [Contract Programming] Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity:

Re: My two cents

2017-10-21 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 21 October 2017 at 20:02:28 UTC, user1234 wrote: I'm not sure that people talked much about the elvis operator (which was introduced in the topic by M.Nowak). In the first message were mentioned the null coalescence operator "??" What's the difference between `?:` and `??`? As

D for microservices

2017-10-21 Thread Joakim via Digitalmars-d
I just read the following two week-old comment on the ldc issue tracker, when someone tried to run D on Alpine linux: "For now everything works(?) but I think the process could be improved.. Would be really cool to have LDC easily building alpine containers + static D binaries for

Re: How do I convert a LPVOID (void*) to string?

2017-10-21 Thread Nieto via Digitalmars-d-learn
Thanks for all answers guys. If you're using this solely for Windows error messages, the std.windows.syserror module has a function, sysErrorString, which wraps it up for you. It also provides a WindowsException you can throw which, given an Windows error code, will contain a formatted