Re: What would it take to bring preinstalled D language compiler in the major Linux Distributions?

2019-12-23 Thread mipri via Digitalmars-d-learn
On Monday, 23 December 2019 at 13:34:55 UTC, BoQsc wrote: I would love to see D language available out of box in major Linux distributions and use without much care of installation. Anyone have a though about it? Was there any serious efforts to bring D language to Major distributions? What

Re: D-ish way to work with strings?

2019-12-23 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Dec 22, 2019 at 06:27:03PM +0100, Robert M. Münch via Digitalmars-d-learn wrote: > Want to add I'm talking about unicode strings. > > Wouldn't it make sense to handle everything as UTF-32 so that > iteration is simple because code-point = code-unit? > > And later on, convert to UTF-16

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-23 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Dec 22, 2019 at 05:20:51PM +, BoQsc via Digitalmars-d-learn wrote: > There are lots of editors/IDE's that support D language: > https://wiki.dlang.org/Editors > > What kind of editor/IDE are you using and which one do you like the most? Linux is my IDE. ;-) And I use vim for editing

Re: What would it take to bring preinstalled D language compiler in the major Linux Distributions?

2019-12-23 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Dec 23, 2019 at 01:34:55PM +, BoQsc via Digitalmars-d-learn wrote: > I would love to see D language available out of box in major Linux > distributions and use without much care of installation. Anyone have a > though about it? Was there any serious efforts to bring D language to >

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Dec 22, 2019 at 10:04:20PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: [...] > Regardless, I'm pretty well of the opinion that fwrite is the wrong > thing to do anyway. fwrite writes bytes to a file, but we want to > write strings to the console. There's other functions that do

What would it take to bring preinstalled D language compiler in the major Linux Distributions?

2019-12-23 Thread BoQsc via Digitalmars-d-learn
I would love to see D language available out of box in major Linux distributions and use without much care of installation. Anyone have a though about it? Was there any serious efforts to bring D language to Major distributions?

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/22/19 11:53 PM, Symphony wrote: On Sunday, 22 December 2019 at 22:47:43 UTC, Steven Schveighoffer wrote: To fix Phobos, we just(!) need to remove libc as the underlying stream implementation. I had at one point agreement from Walter to make a "backwards-compatible-ish" mechanism for

Re: What would it take to bring preinstalled D language compiler in the major Linux Distributions?

2019-12-23 Thread bachmeier via Digitalmars-d-learn
On Monday, 23 December 2019 at 15:11:21 UTC, H. S. Teoh wrote: On Mon, Dec 23, 2019 at 01:34:55PM +, BoQsc via Digitalmars-d-learn wrote: I would love to see D language available out of box in major Linux distributions and use without much care of installation. Anyone have a though about

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/23/19 10:25 AM, H. S. Teoh wrote: On Sun, Dec 22, 2019 at 10:04:20PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: [...] Regardless, I'm pretty well of the opinion that fwrite is the wrong thing to do anyway. fwrite writes bytes to a file, but we want to write strings to the

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread bachmeier via Digitalmars-d-learn
On Monday, 23 December 2019 at 15:34:13 UTC, Steven Schveighoffer wrote: I really appreciate the enthusiasm here, but at the risk of being cynical, I see little chance that this gets accepted. Before you spend any time on actual code, a DIP is going to be required, as this would be a huge

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-23 Thread bachmeier via Digitalmars-d-learn
On Monday, 23 December 2019 at 15:07:32 UTC, H. S. Teoh wrote: On Sun, Dec 22, 2019 at 05:20:51PM +, BoQsc via Digitalmars-d-learn wrote: There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors What kind of editor/IDE are you using and which one do you

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/23/19 10:48 AM, bachmeier wrote: On Monday, 23 December 2019 at 15:34:13 UTC, Steven Schveighoffer wrote: I really appreciate the enthusiasm here, but at the risk of being cynical, I see little chance that this gets accepted. Before you spend any time on actual code, a DIP is going to

Re: What would it take to bring preinstalled D language compiler in the major Linux Distributions?

2019-12-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 23 December 2019 at 15:39:30 UTC, bachmeier wrote: Slackware has slackbuilds for dmd and gdc. Slackware-current has gdc in the main package repo now!

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 23 December 2019 at 15:41:33 UTC, Steven Schveighoffer wrote: That means we have to buffer separately, which means we have a problem interleaving printf with writef. It would be awful. Or simply don't buffer. Any call you get, flush the C buffer and write the D stuff immediately.

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Dec 23, 2019 at 10:41:33AM -0500, Steven Schveighoffer via Digitalmars-d-learn wrote: [...] > There's this guy, his name is Walter. He likes printf. I'm pretty sure > when he's buried, his cold dead fingers will be tightly and > inextricably wrapped around printf. [...] But that's not a

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-23 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Dec 23, 2019 at 03:51:17PM +, bachmeier via Digitalmars-d-learn wrote: > On Monday, 23 December 2019 at 15:07:32 UTC, H. S. Teoh wrote: [...] > > Linux is my IDE. ;-) And I use vim for editing code. [...] > Not a Vim user, but wondering if there's Neovim support for D. If so, > it

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/23/19 11:02 AM, Adam D. Ruppe wrote: On Monday, 23 December 2019 at 15:41:33 UTC, Steven Schveighoffer wrote: That means we have to buffer separately, which means we have a problem interleaving printf with writef. It would be awful. Or simply don't buffer. Any call you get, flush the C

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread Symphony via Digitalmars-d-learn
On Monday, 23 December 2019 at 15:34:13 UTC, Steven Schveighoffer wrote: I really appreciate the enthusiasm here, but at the risk of being cynical, I see little chance that this gets accepted. Before you spend any time on actual code, a DIP is going to be required, as this would be a huge

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-23 Thread TheGag96 via Digitalmars-d-learn
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote: There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors What kind of editor/IDE are you using and which one do you like the most? I've loved Sublime for years. I use it for everything, really. So

Re: unicode characters are not printed correctly on the windows command line?

2019-12-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/23/19 2:52 PM, Symphony wrote: Pardon my ignorance, but wouldn't the inclusion of a std.io (e.g. Martin Nowak's io library) into Phobos be an easier and cleaner move? Other Phobos modules that require std.stdio could be gradually changed so that they use std.io instead. Well, that's

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-23 Thread Eugene Wissner via Digitalmars-d-learn
On Monday, 23 December 2019 at 15:51:17 UTC, bachmeier wrote: On Monday, 23 December 2019 at 15:07:32 UTC, H. S. Teoh wrote: On Sun, Dec 22, 2019 at 05:20:51PM +, BoQsc via Digitalmars-d-learn wrote: There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors

Re: Deprecation: std.stdio.File.ByChunkImpl is not visible

2019-12-23 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Dec 24, 2019 at 12:33:34AM +, psyscout via Digitalmars-d-learn wrote: [...] > auto putObjectRequest(string bucket, string key, string file) > { > import std.stdio : File; > > enum chunk_size = 16 * 1024; // 16 KiB > auto file_ = File(file, "r"); > > return

Static linking, specifying binary and test-library folder

2019-12-23 Thread Adnan via Digitalmars-d-learn
Hello, how does one: 1. Force static linking (build with `-defaultlib` flag) 2. Specify binary file generated by the `dub buid` command 3. Specify binary file generated by the `dub test` command in the `dub.json` file?

array of functions/delegates

2019-12-23 Thread Rumbu via Digitalmars-d-learn
I am trying to create an array of functions inside a struct. struct S { void f1() {} void f2() {} alias Func = void function(); immutable Func[2] = [, ] } What I got: Error: non-constant expression '' Tried also with delegates (since I am in a struct context but I got: no `this` to

Deprecation: std.stdio.File.ByChunkImpl is not visible

2019-12-23 Thread psyscout via Digitalmars-d-learn
Hi all, I'm trying to resolve a Deprecation message. File.ByChunkImpl is private which cause a compiler message. Any clue how to to deal with this? (Deprecation: std.stdio.File.ByChunkImpl is not visible) struct PutObjectRequest(Range) if (isInputRange!Range && is(ElementType!Range

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-23 Thread JN via Digitalmars-d-learn
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote: There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors What kind of editor/IDE are you using and which one do you like the most? This list could use some cleaning up. Some of the IDEs haven't been

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-23 Thread Russel Winder via Digitalmars-d-learn
On Sun, 2019-12-22 at 17:20 +, BoQsc via Digitalmars-d-learn wrote: > There are lots of editors/IDE's that support D language: > https://wiki.dlang.org/Editors > > What kind of editor/IDE are you using and which one do you like > the most? CLion with the DLanguage plugin. Very much a work