I expect this small program to throw an Exception:
import std.stdio;
import std.range;
void main()
{
auto a = [[1,2],
[4,5,3]];
a.transposed!(TransverseOptions.enforceNotJagged).writeln;
}
But it just outputs:
[[1, 4], [2, 5], [3]]
Is it a bug or is it me who's
On Saturday, 22 September 2018 at 04:45:47 UTC, Vladimir
Panteleev wrote:
On Friday, 21 September 2018 at 21:17:52 UTC, new wrote:
Thank you for your answer. too bad - have to think about it.
You might be interested in the Volt language, which follows in
D1's footsteps:
On Saturday, 22 September 2018 at 04:54:59 UTC, Joakim wrote:
To wit, Windows linker error with Unicode symbol:
https://github.com/ldc-developers/ldc/pull/2850#issuecomment-422968161
That's a good argument for sticking to ASCII for name mangling.
I'm torn. I completely agree with Adam and
On Friday, September 21, 2018 10:54:59 PM MDT Joakim via Digitalmars-d
wrote:
> I'm torn. I completely agree with Adam and others that people
> should be able to use any language they want. But the Unicode
> spec is such a tire fire that I'm leery of extending support for
> it.
Unicode
On Friday, 21 September 2018 at 06:24:14 UTC, Peter Alexander
wrote:
On Friday, 21 September 2018 at 06:00:33 UTC, Walter Bright
wrote:
I've learned this the hard way, and I've had to learn it
several times because I am a slow learner. I've posted this
before, and repeat it because bears
On Thursday, 20 September 2018 at 10:51:52 UTC, braboar wrote:
Can anybody give me a guide of using serial port?
Here's a program I wrote (after lots of trial-and-error) to
control my monitor through an USB serial-port adapter:
https://github.com/CyberShadow/misc/blob/master/pq321q.d
Hope
On Friday, 21 September 2018 at 12:15:52 UTC, NX wrote:
How can I properly convert a character, say, first one to upper
case in a unicode correct manner?
That would depend on how you'd define correctness. If your
application needs to support "all" languages, then (depending how
you interpret
On Friday, 21 September 2018 at 21:07:57 UTC, Jonathan M Davis
wrote:
The sad truth is that if you really do want to continue to use
D1, you're going to have to maintain it yourself or find a
group of people willing to do so;
Sociomantic "maintains" (well, much more in the past than today)
On Saturday, 22 September 2018 at 06:16:41 UTC, berni wrote:
Is it a bug or is it me who's doing something wrong?
Looking at the implementation, it looks like enforceNotJagged was
just never implemented for transposed (only transversed).
On Friday, 21 September 2018 at 14:01:30 UTC, Sebastiaan Koppe
wrote:
Hey guys,
Following the D->emscripten->wasm toolchain from CyberShadow
and Ace17 I created a proof of concept framework for creating
single page webassembly applications using D's compile time
features.
This is a proof
On 22/09/18 15:13, Thomas Mader wrote:
Would you suggest to remove such writing systems out of Unicode?
What should a museum do which is in need of a software to somehow manage
Egyptian hieroglyphs?
If memory serves me right, hieroglyphs actually represent consonants
(vowels are implicit),
On Saturday, 22 September 2018 at 15:25:32 UTC, aberba wrote:
On Saturday, 22 September 2018 at 14:31:20 UTC, Jonathan Marler
wrote:
On Saturday, 22 September 2018 at 13:25:27 UTC, rikki
cattermole wrote:
Then D isn't the right choice for you.
I think it makes for a better community if we
On Saturday, 22 September 2018 at 12:24:49 UTC, Shachar Shemesh
wrote:
If memory serves me right, hieroglyphs actually represent
consonants (vowels are implicit), and as such, are most
definitely "characters".
Egyptian hieroglyphics uses logographs (symbols representing
whole words, which
On 23/09/2018 1:22 AM, new wrote:
On Saturday, 22 September 2018 at 10:53:25 UTC, bauss wrote:
On Saturday, 22 September 2018 at 09:42:48 UTC, Jonathan Marler wrote:
I'd be interested to hear/read about the features that some
developers don't like with D2.
I'm going to guess it has to do
I'm just seeing a ..."Your message has been saved, and will be
posted after being **approved** by a moderator". This doesn't
make sense.
1. what criteria decides if my comment deserves approval or not?
2. Is there a full-time moderator available to ensure there no
bureaucracy/delay?
3. Is it
On Saturday, 22 September 2018 at 12:35:27 UTC, Steven
Schveighoffer wrote:
But aren't we arguing about the wrong thing here? D already
accepts non-ASCII identifiers.
Walter was doing that thing that people in the US who only speak
English tend to do: forgetting that other people speak other
On Saturday, 22 September 2018 at 10:24:48 UTC, Shachar Shemesh
wrote:
Thank Allah that someone said it before I had to. I could not
agree more. Encoding whole words as single Unicode code points
makes no sense.
The goal of Unicode is to support diversity, if you argue against
that you don't
On Saturday, 22 September 2018 at 09:42:48 UTC, Jonathan Marler
wrote:
I'd be interested to hear/read about the features that some
developers don't like with D2.
I'm going to guess it has to do with all the attributes for
functions which you often have to remember is it @attribute or is
it
On Saturday, September 22, 2018 4:51:47 AM MDT Thomas Mader via Digitalmars-
d wrote:
> On Saturday, 22 September 2018 at 10:24:48 UTC, Shachar Shemesh
>
> wrote:
> > Thank Allah that someone said it before I had to. I could not
> > agree more. Encoding whole words as single Unicode code points
>
On Saturday, 22 September 2018 at 11:28:48 UTC, Jonathan M Davis
wrote:
Unicode is supposed to be a universal way of representing every
character in every language. Emojis are not characters. They
are sequences of characters that people use to represent
images. I do not understand how an
On Saturday, 22 September 2018 at 08:48:37 UTC, Nemanja Borić
wrote:
On Friday, 21 September 2018 at 21:07:57 UTC, Jonathan M Davis
wrote:
[...]
Sociomantic "maintains" (well, much more in the past than
today) D1 compiler and you can find latest releases here
(Ubuntu):
On Saturday, 22 September 2018 at 10:53:25 UTC, bauss wrote:
On Saturday, 22 September 2018 at 09:42:48 UTC, Jonathan Marler
wrote:
I'd be interested to hear/read about the features that some
developers don't like with D2.
I'm going to guess it has to do with all the attributes for
On Saturday, 22 September 2018 at 13:22:03 UTC, new wrote:
On Saturday, 22 September 2018 at 10:53:25 UTC, bauss wrote:
On Saturday, 22 September 2018 at 09:42:48 UTC, Jonathan
Marler wrote:
[...]
I'm going to guess it has to do with all the attributes for
functions which you often have to
On Friday, 21 September 2018 at 14:01:30 UTC, Sebastiaan Koppe
wrote:
Hey guys,
Following the D->emscripten->wasm toolchain from CyberShadow
and Ace17 I created a proof of concept framework for creating
single page webassembly applications using D's compile time
features.
This is a proof
On Saturday, 22 September 2018 at 08:52:32 UTC, Jonathan M Davis
wrote:
Unicode identifiers may make sense in a code base that is going
to be used solely by a group of developers who speak a
particular language that uses a number a of non-ASCII
characters (especially languages like Chinese or
This is just so reminiscent of the Python 2 / Python 3 fiasco.
Python 3 was clearly an improvement over Python 2, but the way in which the
changes came to the community caused a violent split. Even after many years,
there are those for whom Python 3 is anathema and not to be used.
The Python
On Saturday, 22 September 2018 at 14:58:58 UTC, aberba wrote:
I'm just seeing a ..."Your message has been saved, and will be
posted after being **approved** by a moderator". This doesn't
make sense.
...
This happens only for new topic?
S.G.
On Saturday, 22 September 2018 at 01:08:26 UTC, Neia Neutuladh
wrote:
...you *do* know that not every codebase has people working on
it who only know English, right?
This topic boils down to diversity vs. productivity.
If supporting diversity in this case is questionable.
I work in a German
On 22/09/18 11:52, Jonathan M Davis wrote:
Honestly, I was horrified to find out that emojis were even in Unicode. It
makes no sense whatsover. Emojis are supposed to be sequences of characters
that can be interepreted as images. Treating them like Unicode symbols is
like treating entire words
On 22/09/18 14:28, Jonathan M Davis wrote:
As I said, it's exactly the same
as arguing that words should be represented in Unicode. Unfortunately,
however, at least some of them are in there. :|
- Jonathan M Davis
To be fair to them, that word is part of the "Arabic-representation
forms"
On 9/21/18 9:08 PM, Neia Neutuladh wrote:
On Friday, 21 September 2018 at 20:25:54 UTC, Walter Bright wrote:
But identifiers? I haven't seen hardly any use of non-ascii
identifiers in C, C++, or D. In fact, I've seen zero use of it outside
of test cases. I don't see much point in expanding the
On 9/22/18 4:52 AM, Jonathan M Davis wrote:
I was laughing out loud when reading about composing "family"
emojis with zero-width joiners. If you told me that was a tech
parody, I'd have believed it.
Honestly, I was horrified to find out that emojis were even in Unicode. It
makes no sense
On Saturday, 22 September 2018 at 14:31:20 UTC, Jonathan Marler
wrote:
On Saturday, 22 September 2018 at 13:25:27 UTC, rikki
cattermole wrote:
Then D isn't the right choice for you.
I think it makes for a better community if we can be more
welcoming, helpful a gracious instead of responding
On Saturday, 22 September 2018 at 14:58:58 UTC, aberba wrote:
I'm just seeing a ..."Your message has been saved, and will be
posted after being **approved** by a moderator". This doesn't
make sense.
Your post was flagged by the spam filter. It was a false
positive, which sometimes occurs
On Saturday, 22 September 2018 at 16:48:35 UTC, SashaGreat wrote:
PS: By the way the CAPTCHA is awful, look what they throw to us:
If you have a better idea of a CAPTCHA that would be easy for D
programmers but hard for spammers, please submit a pull request:
Hi,
I ran the dmd unittests on my Windows machine today and one of
the tests in filename.d asserted. The cause for this has already
been noticed a few days ago by someone else [1] but not by CI.
Is it well-known that the dmd unittests (at least for the Windows
build) are not automatically
On Saturday, 22 September 2018 at 16:45:15 UTC, SashaGreat wrote:
On Saturday, 22 September 2018 at 14:58:58 UTC, aberba wrote:
I'm just seeing a ..."Your message has been saved, and will be
posted after being **approved** by a moderator". This doesn't
make sense.
...
This happens only for
On Saturday, 22 September 2018 at 08:48:37 UTC, Nemanja Borić
wrote:
On Friday, 21 September 2018 at 21:07:57 UTC, Jonathan M Davis
wrote:
[...]
Sociomantic "maintains" (well, much more in the past than
today) D1 compiler and you can find latest releases here
(Ubuntu):
On Monday, 17 September 2018 at 19:10:27 UTC, Jonathan M Davis
wrote:
On Monday, September 17, 2018 8:27:16 AM MDT Meta via
Digitalmars-d-announce wrote:
[...]
Honestly, I don't think that using a pragma instead of an
attribute fixes much, and it goes against the idea of what
pragmas are
On Saturday, September 22, 2018 6:37:09 AM MDT Steven Schveighoffer via
Digitalmars-d wrote:
> On 9/22/18 4:52 AM, Jonathan M Davis wrote:
> >> I was laughing out loud when reading about composing "family"
> >> emojis with zero-width joiners. If you told me that was a tech
> >> parody, I'd have
On 9/22/18 4:10 AM, Vladimir Panteleev wrote:
On Saturday, 22 September 2018 at 06:16:41 UTC, berni wrote:
Is it a bug or is it me who's doing something wrong?
Looking at the implementation, it looks like enforceNotJagged was just
never implemented for transposed (only transversed).
It
On Saturday, 22 September 2018 at 13:25:27 UTC, rikki cattermole
wrote:
Then D isn't the right choice for you.
I think it makes for a better community if we can be more
welcoming, helpful a gracious instead of responding to criticism
this way. This is someone who saw enough potential with D
On Saturday, 22 September 2018 at 19:09:24 UTC, bauss wrote:
But what is there to stop a spammer from doing the same?
Spammers are not going to exert that much effort in order to be
able to spam 1 website, so that the moderators then change their
algorithm and block them again.
This is the
On Saturday, 22 September 2018 at 16:56:10 UTC, Neia Neutuladh
wrote:
On Saturday, 22 September 2018 at 16:56:10 UTC, Neia Neutuladh
wrote:
Walter was doing that thing that people in the US who only
speak English tend to do: forgetting that other people speak
other languages, and that people
On Saturday, 22 September 2018 at 12:52:45 UTC, Steven
Schveighoffer wrote:
It was suggested when transposed was fixed to include opIndex,
but never implemented.
Maybe I'm too naive, but isn't it easy to implement it just the
same way, it is done with transverse? That is: putting the
"static
On 23/09/2018 2:31 AM, Jonathan Marler wrote:
On Saturday, 22 September 2018 at 13:25:27 UTC, rikki cattermole wrote:
Then D isn't the right choice for you.
I think it makes for a better community if we can be more welcoming,
helpful a gracious instead of responding to criticism this way.
On Saturday, 22 September 2018 at 12:37:09 UTC, Steven
Schveighoffer wrote:
But aren't some (many?) Chinese/Japanese characters
representing whole words?
-Steve
Kind of hair-splitting, but it's more accurate to say that some
Chinese/Japanese words can be written with one character. Like
On 09/22/2018 04:46 PM, Jonathan Marler wrote:
Decided to play around with this for a bit. Made a "proof of concept"
library:
https://github.com/marler8997/longfiles
It's just a prototype/exploration on the topic. It allows you to
include "stdx.longfiles" instead of "std.file" which will
On Sunday, 23 September 2018 at 01:08:50 UTC, Jonathan M Davis
wrote:
On Saturday, September 22, 2018 6:13:25 PM MDT Adam D. Ruppe
via Digitalmars-d-announce wrote:
[...]
Yeah, the problem has to do with how much you have to mark up
your code. Whether you have @foo @bar @baz or foo bar baz
On Saturday, September 22, 2018 8:40:15 PM MDT Nicholas Wilson via
Digitalmars-d-announce wrote:
> On Sunday, 23 September 2018 at 01:08:50 UTC, Jonathan M Davis
>
> wrote:
> > On Saturday, September 22, 2018 6:13:25 PM MDT Adam D. Ruppe
> >
> > via Digitalmars-d-announce wrote:
> >> [...]
> >
>
https://issues.dlang.org/show_bug.cgi?id=19260
Issue ID: 19260
Summary: extern(C++) `T* const` mangling
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
https://issues.dlang.org/show_bug.cgi?id=19260
Manu changed:
What|Removed |Added
Keywords||C++, industry
--
On Sunday, 23 September 2018 at 00:18:06 UTC, Adam D. Ruppe wrote:
I have seen Japanese D code before on twitter, but cannot find
it now (surely because the search engines also share this bias).
You can find a lot more Japanese D code on this blogging platform:
https://qiita.com/tags/dlang
On Saturday, September 22, 2018 7:34:55 PM MDT rikki cattermole via
Digitalmars-d wrote:
> On 23/09/2018 2:31 AM, Jonathan Marler wrote:
> > On Saturday, 22 September 2018 at 13:25:27 UTC, rikki cattermole wrote:
> >> Then D isn't the right choice for you.
> >
> > I think it makes for a better
On Saturday, 22 September 2018 at 17:13:18 UTC, Vladimir
Panteleev wrote:
On Saturday, 22 September 2018 at 16:48:35 UTC, SashaGreat
wrote:
PS: By the way the CAPTCHA is awful, look what they throw to
us:
If you have a better idea of a CAPTCHA that would be easy for D
programmers but hard
On Saturday, 22 September 2018 at 16:22:31 UTC, Russel Winder
wrote:
This is just so reminiscent of the Python 2 / Python 3 fiasco.
Python 3 was clearly an improvement over Python 2, but the way
in which the changes came to the community caused a violent
split. Even after many years, there
On Saturday, 22 September 2018 at 18:56:28 UTC, Vladimir
Panteleev wrote:
On Saturday, 22 September 2018 at 17:19:41 UTC, SashaGreat
wrote:
I did by head. But how a newbie would suppose to do that?
For that challenge, you only non-obvious thing need to know is
the syntax for the modulus and
On Saturday, 22 September 2018 at 14:54:29 UTC, aberba wrote:
Can the SPA code be released as a separate module for
WebAssembly web app development?
Currently the whole thing is not so developer-friendly, it was
just the easiest way for me to get it up and running.
Right now I am trying to
On Saturday, 22 September 2018 at 19:41:16 UTC, JN wrote:
Some code will break, sure, but it's a mechanical change that
should be possible to apply by some tool.
Who will run this tool? Who's gonna merge the PRs created with
this tool?
Compatibility fixes would have been easy in the past in
On Saturday, 22 September 2018 at 19:59:42 UTC, Erik van Velzen
wrote:
Nobody in this thread so far has said they are programming in
non-ASCII.
This is the obvious observation bias I alluded to before: of
course people who don't read and write English aren't in this
thread, since they cannot
On Saturday, September 22, 2018 10:07:38 AM MDT Neia Neutuladh via
Digitalmars-d wrote:
> On Saturday, 22 September 2018 at 08:52:32 UTC, Jonathan M Davis
>
> wrote:
> > Unicode identifiers may make sense in a code base that is going
> > to be used solely by a group of developers who speak a
> >
On Saturday, 22 September 2018 at 15:45:09 UTC, Jonathan Marler
wrote:
On Saturday, 22 September 2018 at 15:25:32 UTC, aberba wrote:
On Saturday, 22 September 2018 at 14:31:20 UTC, Jonathan
Marler wrote:
On Saturday, 22 September 2018 at 13:25:27 UTC, rikki
cattermole wrote:
Then D isn't the
On Saturday, 22 September 2018 at 19:59:42 UTC, Erik van Velzen
wrote:
Nobody in this thread so far has said they are programming in
non-ASCII.
I did. https://git.ikeran.org/dhasenan/muzikilo
On Thursday, 20 September 2018 at 19:49:01 UTC, Nick Sabalausky
(Abscissa) wrote:
On 09/19/2018 11:45 PM, Vladimir Panteleev wrote:
On Thursday, 20 September 2018 at 03:23:36 UTC, Nick
Sabalausky (Abscissa) wrote:
(Not on a Win box at the moment.)
I added the output of my test program to the
On Saturday, 22 September 2018 at 20:46:27 UTC, Jonathan Marler
wrote:
Decided to play around with this for a bit. Made a "proof of
concept" library:
I suggest using GetFullPathNameW instead of GetCurrentDirectory +
manual path appending / normalization. It's also what CoreFX
seems to be
On Saturday, 22 September 2018 at 06:01:20 UTC, Vladimir
Panteleev wrote:
On Friday, 21 September 2018 at 12:15:52 UTC, NX wrote:
How can I properly convert a character, say, first one to
upper case in a unicode correct manner?
That would depend on how you'd define correctness. If your
On Saturday, 22 September 2018 at 19:41:56 UTC, Vladimir
Panteleev wrote:
On Saturday, 22 September 2018 at 19:09:24 UTC, bauss wrote:
And on top of that maybe a flag system.
This exists, but is only visible to certain users.
Maybe it should be visible to more users?
On Saturday, 22 September 2018 at 20:53:02 UTC, krzaq wrote:
On Saturday, 22 September 2018 at 20:40:14 UTC, Jonathan Marler
wrote:
On Saturday, 22 September 2018 at 19:04:41 UTC, Henrik wrote:
[...]
That works for types but wouldn't work for keywords. Keywords
have special meaning in the
On Saturday, September 22, 2018 6:13:25 PM MDT Adam D. Ruppe via
Digitalmars-d-announce wrote:
> On Saturday, 22 September 2018 at 17:43:57 UTC, 12345swordy wrote:
> > If that where the case, then why not make it an actual keyword?
> > A frequent complaint regarding D is that there are too many
>
On Saturday, 22 September 2018 at 17:19:41 UTC, SashaGreat wrote:
I did by head. But how a newbie would suppose to do that?
For that challenge, you only non-obvious thing need to know is
the syntax for the modulus and ternary operators, which are
present in many programming languages. You
On Saturday, 22 September 2018 at 19:09:24 UTC, bauss wrote:
...
It's no rocket science, so it really doesn't do much in
preventing I think.
Really it can be automated like:
1. Copy the code
2. Go to run.dlang.io
3. Paste the code
4. Compile it
5. Wait for the output
6. Copy the output
7.
On Saturday, 22 September 2018 at 20:53:02 UTC, krzaq wrote:
C++ added contextual keywords, like `override` and `final`. If
this can be done in C++, surely D is easier to parse?
Currently this compiles:
alias safe = int;
@safe foo() { return 1; }
safe bar() { return 2; }
Making "safe" a
On Saturday, 22 September 2018 at 20:40:14 UTC, Jonathan Marler
wrote:
On Saturday, 22 September 2018 at 19:04:41 UTC, Henrik wrote:
On Saturday, 22 September 2018 at 15:45:09 UTC, Jonathan
Marler wrote:
On Saturday, 22 September 2018 at 15:25:32 UTC, aberba wrote:
On Saturday, 22 September
On Saturday, 22 September 2018 at 06:01:20 UTC, Vladimir
Panteleev wrote:
On Friday, 21 September 2018 at 12:15:52 UTC, NX wrote:
How can I properly convert a character, say, first one to
upper case in a unicode correct manner?
That would depend on how you'd define correctness. If your
On Saturday, 22 September 2018 at 21:42:11 UTC, bauss wrote:
Maybe it should be visible to more users?
At present I do not believe this would bring an observable
benefit.
https://issues.dlang.org/show_bug.cgi?id=19259
Issue ID: 19259
Summary: std.array.Appender needs a way to set the length
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
On Saturday, 22 September 2018 at 21:04:04 UTC, Vladimir
Panteleev wrote:
On Saturday, 22 September 2018 at 20:46:27 UTC, Jonathan Marler
wrote:
Decided to play around with this for a bit. Made a "proof of
concept" library:
I suggest using GetFullPathNameW instead of GetCurrentDirectory
+
On Saturday, 22 September 2018 at 20:53:02 UTC, krzaq wrote:
C++ added contextual keywords, like `override` and `final`. If
this can be done in C++, surely D is easier to parse?
If D did more stuff like that, it would start to be harder to
parse.
On Saturday, 22 September 2018 at 17:43:57 UTC, 12345swordy wrote:
If that where the case, then why not make it an actual keyword?
A frequent complaint regarding D is that there are too many
attributes, this will undoubtedly adding more to it.
When I (and surely others like me) complain that
On Monday, 17 September 2018 at 23:07:22 UTC, Manu wrote:
On Mon, 17 Sep 2018 at 13:55, 12345swordy via
Digitalmars-d-announce
wrote:
On Tuesday, 11 September 2018 at 15:08:33 UTC, RazvanN wrote:
> Hello everyone,
>
> I have finished writing the last details of the copy
> constructor DIP[1]
On Saturday, 22 September 2018 at 19:04:41 UTC, Henrik wrote:
"int safe = 0; // This code would break if "safe" was added as
a keyword"
I'm not buying this one. The compiler could issue a warning,
something like "Warning: keyword safe will become a keyword in
future version, please
On Saturday, 22 September 2018 at 19:09:24 UTC, bauss wrote:
And on top of that maybe a flag system.
This exists, but is only visible to certain users.
On Saturday, 22 September 2018 at 19:04:41 UTC, Henrik wrote:
On Saturday, 22 September 2018 at 15:45:09 UTC, Jonathan Marler
wrote:
On Saturday, 22 September 2018 at 15:25:32 UTC, aberba wrote:
On Saturday, 22 September 2018 at 14:31:20 UTC, Jonathan
Marler wrote:
On Saturday, 22 September
On Saturday, 22 September 2018 at 20:40:14 UTC, Jonathan Marler
wrote:
On Saturday, 22 September 2018 at 19:04:41 UTC, Henrik wrote:
[...]
That works for types but wouldn't work for keywords. Keywords
have special meaning in the lexical stage and you can't
extend/change the grammar of the
On 09/22/2018 04:51 AM, Samir wrote:
Thanks for your help, Adam! Right after posting my question, I started
reading this site:
https://www.tutorialspoint.com/d_programming/d_programming_modules.htm
Better read the original:
http://ddili.org/ders/d.en/modules.html
85 matches
Mail list logo