Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread Chris via Digitalmars-d
On Monday, 10 September 2018 at 19:28:01 UTC, aberba wrote: On Monday, 10 September 2018 at 16:09:41 UTC, rjframe wrote: That's exactly whats happening in Africa. The continent is leapfrogging from nothing to a smart phone thanks to China. Many don'[t know how to even use a PC. Especially t

Re: code.dlang.org package list

2018-09-10 Thread Neia Neutuladh via Digitalmars-d
On Monday, 10 September 2018 at 11:20:55 UTC, bauss wrote: I'm sorry, but it's not even close to accurate, because some libraries has documents on additional websites that has examples and no examples directly in the source code using "standard unittests" - This is true for most big libraries /

Re: rund users welcome

2018-09-10 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 11 September 2018 at 01:02:30 UTC, Vladimir Panteleev wrote: On Sunday, 9 September 2018 at 04:32:32 UTC, Jonathan Marler wrote: - -od (e.g. for -od.) Hmmm, yeah it looks like rund is currently overriding this. I've attempted a fix but it's hard to cover all the different combin

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread tide via Digitalmars-d
On Monday, 10 September 2018 at 13:43:46 UTC, Joakim wrote: That's why PC sales keep dropping while mobile sales are now 6-7X that per year: This shouldn't be misunderstood as such, which I think you as misunderstanding it. The reason mobile sales are so high is because of planned obsolescenc

Re: extern(C++, ns) is wrong

2018-09-10 Thread Manu via Digitalmars-d
On Mon, 10 Sep 2018 at 13:40, Carl Sturtivant via Digitalmars-d wrote: > > On Wednesday, 5 September 2018 at 13:53:15 UTC, Jonathan M Davis > wrote: > > On Wednesday, September 5, 2018 7:03:26 AM MDT Nicholas Wilson > > via Digitalmars-d wrote: > >> [...] > > > > Based on everything Walter said in

Re: John Regehr on "Use of Assertions"

2018-09-10 Thread Neia Neutuladh via Digitalmars-d
On Monday, 10 September 2018 at 19:44:22 UTC, H. S. Teoh wrote: It's high time we distinguished between the various flavors of assert, preferably with new words to avoid the baggage that has accumulated around 'assert'. Perhaps we can take some cues from Vigil, the eternally morally vigilant

Re: More fun with autodecoding

2018-09-10 Thread Nicholas Wilson via Digitalmars-d
On Monday, 10 September 2018 at 20:44:46 UTC, Andrei Alexandrescu wrote: On 9/10/18 12:46 PM, Steven Schveighoffer wrote: On 9/10/18 8:58 AM, Steven Schveighoffer wrote: I'll have to figure out why my specialized range doesn't allow splitting based on " ". And the answer is: I'm an idiot. For

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread Joakim via Digitalmars-d
On Monday, 10 September 2018 at 13:43:46 UTC, Joakim wrote: LDC recently added a linux/AArch64 CI for both its main branches and 64-bit ARM, ie AArch64, builds have been put out for both linux and Android. It does not seem that many are paying attention to this sea change that is going on with

Re: rund users welcome

2018-09-10 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 9 September 2018 at 04:32:32 UTC, Jonathan Marler wrote: - -od (e.g. for -od.) Hmmm, yeah it looks like rund is currently overriding this. I've attempted a fix but it's hard to cover all the different combinations of -of/-od/etc. I'll need to fill out the rest of the tests soon.

Re: John Regehr on "Use of Assertions"

2018-09-10 Thread Meta via Digitalmars-d
On Monday, 10 September 2018 at 20:25:21 UTC, Jonathan M Davis wrote: I propose: - 'assume': aborts on false condition in debug builds, not checked in release builds, used as optimizer hint; - 'insist': aborts on false condition in debug builds, aborts on false condition in release buil

Re: John Regehr on "Use of Assertions"

2018-09-10 Thread aliak via Digitalmars-d
On Monday, 10 September 2018 at 20:25:21 UTC, Jonathan M Davis wrote: On Monday, September 10, 2018 1:44:22 PM MDT H. S. Teoh via Digitalmars-d wrote: [...] Honestly, that seems like total overkill, and I think that you would have a _very_ hard sell to get much of anyone to try to use four

Re: More fun with autodecoding

2018-09-10 Thread Andrei Alexandrescu via Digitalmars-d
On 9/10/18 12:46 PM, Steven Schveighoffer wrote: On 9/10/18 8:58 AM, Steven Schveighoffer wrote: I'll have to figure out why my specialized range doesn't allow splitting based on " ". And the answer is: I'm an idiot. Forgot to define empty :) Also my slicing operator accepted ints and not siz

Re: extern(C++, ns) is wrong

2018-09-10 Thread Carl Sturtivant via Digitalmars-d
On Wednesday, 5 September 2018 at 13:53:15 UTC, Jonathan M Davis wrote: On Wednesday, September 5, 2018 7:03:26 AM MDT Nicholas Wilson via Digitalmars-d wrote: [...] Based on everything Walter said in the previous thread, it honestly seems to me to be primarily like he just can't give up on

Re: This is why I don't use D.

2018-09-10 Thread Neia Neutuladh via Digitalmars-d
On Monday, 10 September 2018 at 19:19:56 UTC, 0xEAB wrote: On Monday, 10 September 2018 at 15:46:28 UTC, Neia Neutuladh wrote: It blindly takes the results of dub build and dub test. Another question: How does it deal with targetType set to "sourceLibrary"? As of five minutes ago, for source

Re: John Regehr on "Use of Assertions"

2018-09-10 Thread Jonathan M Davis via Digitalmars-d
On Monday, September 10, 2018 1:44:22 PM MDT H. S. Teoh via Digitalmars-d wrote: > On Sun, Sep 09, 2018 at 12:27:52AM -0600, Jonathan M Davis via > Digitalmars-d wrote: [...] > > > IIRC, Weka has different types of assertions to differentiate between > > these two approaches - one for the cases wh

Re: John Regehr on "Use of Assertions"

2018-09-10 Thread H. S. Teoh via Digitalmars-d
On Sun, Sep 09, 2018 at 12:27:52AM -0600, Jonathan M Davis via Digitalmars-d wrote: [...] > IIRC, Weka has different types of assertions to differentiate between > these two approaches - one for the cases which absolutely must not > happen in production, and one that's purely for catching problems

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread aberba via Digitalmars-d
On Monday, 10 September 2018 at 16:09:41 UTC, rjframe wrote: On Mon, 10 Sep 2018 13:43:46 +, Joakim wrote: Despite all this, D may never do very well on mobile or AArch64, even though I think it's well-suited for that market. But at the very least, you should be looking at mobile and AArc

Re: This is why I don't use D.

2018-09-10 Thread 0xEAB via Digitalmars-d
On Monday, 10 September 2018 at 15:46:28 UTC, Neia Neutuladh wrote: It blindly takes the results of dub build and dub test. Another question: How does it deal with targetType set to "sourceLibrary"? Moreover, a future feature could be build logs, so one could check why something failed to bui

Re: John Regehr on "Use of Assertions"

2018-09-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 9 September 2018 at 21:20:11 UTC, John Carter wrote: ie. Yes, everybody knows the words, everybody can read the code, everybody can find somebody who agrees with his intent and meaning but get a large enough group together to try agree on what actions, for example, the optimiser

Re: This is why I don't use D.

2018-09-10 Thread 0xEAB via Digitalmars-d
On Monday, 10 September 2018 at 15:46:28 UTC, Neia Neutuladh wrote: midi-gamepad has no releases. It has 0.1.1-alpha So it doesn't test pre-release versions. Thanks for clarification.

Re: Will the core.stdc module be updated for newer versions of C?

2018-09-10 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 8 September 2018 at 01:12:30 UTC, solidstate1991 wrote: While for the most part it still works very well, however when porting Mago I found a few functions that are not present in C99 (most notably wcsncpy_s). While I can write my own functions to do the same (already done this w

Re: Will the core.stdc module be updated for newer versions of C?

2018-09-10 Thread Laurent Tréguier via Digitalmars-d
On Monday, 10 September 2018 at 07:43:52 UTC, Jonathan M Davis wrote: Historically, most of the Win32 API has been missing from druntime, and many of the symbols were in the wrong place (they should really be in modules corresponding to the C headers that the symbols come from, but many of them

Re: More fun with autodecoding

2018-09-10 Thread Steven Schveighoffer via Digitalmars-d
On 9/10/18 8:58 AM, Steven Schveighoffer wrote: I'll have to figure out why my specialized range doesn't allow splitting based on " ". And the answer is: I'm an idiot. Forgot to define empty :) Also my slicing operator accepted ints and not size_t. -Steve

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread rjframe via Digitalmars-d
On Mon, 10 Sep 2018 13:43:46 +, Joakim wrote: > Despite all this, D may never do very well on mobile or AArch64, > even though I think it's well-suited for that market. But at the very > least, you should be looking at mobile and AArch64, as they're taking > over the computing market. I was t

Re: Do we need Mat, Vec, TMmat, Diag, Sym and other matrix types?

2018-09-10 Thread 9il via Digitalmars-d
On Tuesday, 20 March 2018 at 12:10:08 UTC, Nordlöw wrote: On Tuesday, 13 March 2018 at 03:37:36 UTC, 9il wrote: I have a lot of work for next months, but looking for a good opportunity to make Mat happen. Sounds great. In which repo will these changes happen? It is planned to be in mir-algor

Re: More fun with autodecoding

2018-09-10 Thread Steven Schveighoffer via Digitalmars-d
On 9/8/18 8:36 AM, Steven Schveighoffer wrote: On 8/9/18 2:44 AM, Walter Bright wrote: On 8/8/2018 2:01 PM, Steven Schveighoffer wrote: Here's where I'm struggling -- because a string provides indexing, slicing, length, etc. but Phobos ignores that. I can't make a new type that does the same t

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread Joakim via Digitalmars-d
On Monday, 10 September 2018 at 15:06:46 UTC, Claude wrote: On Monday, 10 September 2018 at 13:43:46 UTC, Joakim wrote: Despite all this, D may never do very well on mobile or AArch64, even though I think it's well-suited for that market. But at the very least, you should be looking at mobile a

Re: This is why I don't use D.

2018-09-10 Thread Neia Neutuladh via Digitalmars-d
On Monday, 10 September 2018 at 13:58:37 UTC, 0xEAB wrote: May I ask why some packages are missing (e.g. `midi-gamepad`)? midi-gamepad has no releases. It has 0.1.1-alpha, which is a prelease version, and ~master, which is a branch, and I can't rely on ~master being consistent in successive b

Re: This is why I don't use D.

2018-09-10 Thread Neia Neutuladh via Digitalmars-d
On Monday, 10 September 2018 at 10:50:16 UTC, Joakim wrote: Nice work. I wonder about some of your results, as it says that dub itself doesn't build with all of the dmd versions, but somehow the tests pass sometimes (shouldn't be possible if you can't build dub itself). I just tested with `dub

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread Claude via Digitalmars-d
On Monday, 10 September 2018 at 13:43:46 UTC, Joakim wrote: Despite all this, D may never do very well on mobile or AArch64, even though I think it's well-suited for that market. But at the very least, you should be looking at mobile and AArch64, as they're taking over the computing market. C

Re: More fun with autodecoding

2018-09-10 Thread Steven Schveighoffer via Digitalmars-d
On 9/8/18 8:36 AM, Steven Schveighoffer wrote: I'll work on adding some issues to the tracker, and potentially doing some PRs so they can be fixed. https://issues.dlang.org/show_bug.cgi?id=19238 https://github.com/dlang/phobos/pull/6700 -Steve

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread Joakim via Digitalmars-d
On Monday, 10 September 2018 at 14:00:43 UTC, Iain Buclaw wrote: On 10 September 2018 at 15:43, Joakim via Digitalmars-d wrote: LDC recently added a linux/AArch64 CI for both its main branches and 64-bit ARM, ie AArch64, builds have been put out for both linux and Android. It does not seem tha

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread Iain Buclaw via Digitalmars-d
On 10 September 2018 at 15:43, Joakim via Digitalmars-d wrote: > LDC recently added a linux/AArch64 CI for both its main branches and 64-bit > ARM, ie AArch64, builds have been put out for both linux and Android. It > does not seem that many are paying attention to this sea change that is > going

Re: This is why I don't use D.

2018-09-10 Thread 0xEAB via Digitalmars-d
On Monday, 10 September 2018 at 01:27:20 UTC, Neia Neutuladh wrote: Not on dlang.org anywhere, but I built a crude version of this. Results are available at http://ikeran.org/report/. The current backfill is taking the three most recent versions of each package on the ~40 most recent versions

Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread Joakim via Digitalmars-d
LDC recently added a linux/AArch64 CI for both its main branches and 64-bit ARM, ie AArch64, builds have been put out for both linux and Android. It does not seem that many are paying attention to this sea change that is going on with computing though, so let me lay out some evidence. At my w

Re: Will the core.stdc module be updated for newer versions of C?

2018-09-10 Thread Steven Schveighoffer via Digitalmars-d
On 9/7/18 6:12 PM, solidstate1991 wrote: While for the most part it still works very well, however when porting Mago I found a few functions that are not present in C99 (most notably wcsncpy_s). It will be updated when you update it ;) There is just so much in the stdc libraries that it's dif

Re: More fun with autodecoding

2018-09-10 Thread Steven Schveighoffer via Digitalmars-d
On 9/10/18 1:45 AM, Chris wrote: After a while your code will be cluttered with absurd stuff like this. `.byCodeUnit`, `.byGrapheme`, `.array` etc. Due to my experience with `splitter` et. al. I tried to create my own parser to have better control over every step. I considered that, but I'm

Re: This is why I don't use D.

2018-09-10 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 9 September 2018 at 14:28:11 UTC, Guillaume Piolat wrote: I don't manage to find x-module search again, perhaps disabled. Yeah, there's a memory leak in it so leaving it up would kill the box to build actual docs. And the last couple months have been crazy IRL, but I scheduled some

Re: code.dlang.org package list

2018-09-10 Thread bauss via Digitalmars-d
On Monday, 10 September 2018 at 00:56:37 UTC, void wrote: On Sunday, 9 September 2018 at 06:32:39 UTC, Jonathan M Davis wrote: On Saturday, September 8, 2018 8:36:26 PM MDT void via Digitalmars-d wrote: On Sunday, 9 September 2018 at 01:30:14 UTC, Neia Neutuladh wrote: > On Sunday, 9 September

Re: This is why I don't use D.

2018-09-10 Thread Joakim via Digitalmars-d
On Monday, 10 September 2018 at 01:27:20 UTC, Neia Neutuladh wrote: On Wednesday, 5 September 2018 at 05:44:38 UTC, H. S. Teoh wrote: To me, this strongly suggests the following idea: - add *all* dlang.org packages to our current autotester / CI infrastructure. - if a particular (version of a)

Re: code.dlang.org package list

2018-09-10 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Monday, 10 September 2018 at 00:56:37 UTC, void wrote: On Sunday, 9 September 2018 at 06:32:39 UTC, Jonathan M Davis wrote: I downloaded 100 packages from code.dlang.org and search for "*doc*" and "*example*" Script updated now searches for the string "unittest" on package directory (*.d

Re: Small @nogc experience report

2018-09-10 Thread rikki cattermole via Digitalmars-d
On 10/09/2018 9:11 PM, Kagamin wrote: On Saturday, 8 September 2018 at 08:32:58 UTC, Guillaume Piolat wrote: There is no other choice when the runtime is disabled but to have @nogc. It's a fantastic peace of mind for high-performance to be able to _enforce_ something will not allocate. You ca

Re: More fun with autodecoding

2018-09-10 Thread Jonathan M Davis via Digitalmars-d
On Monday, September 10, 2018 2:45:27 AM MDT Chris via Digitalmars-d wrote: > After a while your code will be cluttered with absurd stuff like > this. `.byCodeUnit`, `.byGrapheme`, `.array` etc. Due to my > experience with `splitter` et. al. I tried to create my own > parser to have better control

Re: Small @nogc experience report

2018-09-10 Thread Kagamin via Digitalmars-d
On Saturday, 8 September 2018 at 08:32:58 UTC, Guillaume Piolat wrote: There is no other choice when the runtime is disabled but to have @nogc. It's a fantastic peace of mind for high-performance to be able to _enforce_ something will not allocate. You can't have a working GC allocation with d

Re: More fun with autodecoding

2018-09-10 Thread Chris via Digitalmars-d
On Saturday, 8 September 2018 at 15:36:25 UTC, Steven Schveighoffer wrote: On 8/9/18 2:44 AM, Walter Bright wrote: So it turns out that technically the problem here, even though it seemed like an autodecoding problem, is a problem with splitter. splitter doesn't deal with encodings of cha

Re: More fun with autodecoding

2018-09-10 Thread Jonathan M Davis via Digitalmars-d
On Saturday, September 8, 2018 9:36:25 AM MDT Steven Schveighoffer via Digitalmars-d wrote: > On 8/9/18 2:44 AM, Walter Bright wrote: > > On 8/8/2018 2:01 PM, Steven Schveighoffer wrote: > >> Here's where I'm struggling -- because a string provides indexing, > >> slicing, length, etc. but Phobos i

Re: Will the core.stdc module be updated for newer versions of C?

2018-09-10 Thread Jonathan M Davis via Digitalmars-d
On Sunday, September 9, 2018 11:37:54 AM MDT Laurent Tréguier via Digitalmars-d wrote: > On Saturday, 8 September 2018 at 01:12:30 UTC, solidstate1991 > > wrote: > > While for the most part it still works very well, however when > > porting Mago I found a few functions that are not present in > >

Re: Will the core.stdc module be updated for newer versions of C?

2018-09-10 Thread Jonathan M Davis via Digitalmars-d
On Friday, September 7, 2018 7:12:30 PM MDT solidstate1991 via Digitalmars-d wrote: > While for the most part it still works very well, however when > porting Mago I found a few functions that are not present in C99 > (most notably wcsncpy_s). > > While I can write my own functions to do the same