Re: [DUB][DLS] building package dls doesn't finish

2018-05-12 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 10 May 2018 at 09:32:38 UTC, Kamil Koczurek wrote: Hello, I installed an atom extension for D support, but it requires dls package to be installed and built. When I fetch and attempt to build it (with --build=release) it just says that it's building and doesn't change even if I

Re: [DUB][DLS] building package dls doesn't finish

2018-05-12 Thread Laurent Tréguier via Digitalmars-d
On Saturday, 12 May 2018 at 11:32:29 UTC, Kamil Koczurek wrote: That's great! If I may ask, releasing a new version is a matter of hours or days? 'Very soon' is rather vague. Well... that's pretty much why I say 'very soon' in fact; I intended to release a new version around one or two weeks

Re: Give DLS a try

2018-08-09 Thread Laurent Tréguier via Digitalmars-d
On Wednesday, 8 August 2018 at 20:56:51 UTC, tide wrote: DLS took no time at all to build, nice and simple. The only thing built is a small bootstrap program that downloads a prebuilt binary release, that's why it's fast. Before v0.5.0, DLS was always compiled, and that took some time, as

Re: Give DLS a try

2018-08-09 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 9 August 2018 at 10:37:32 UTC, IM wrote: I've always had issues with Code-d! I filed several issues on its GitHub repo, but my experience with the Code-d author was that those issues are likely to remain open and unaddressed. Since he is a student (or at least he was some time

Re: Give DLS a try

2018-08-09 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 9 August 2018 at 12:42:45 UTC, Domain wrote: I just give it a try in visual studio code, but I got errors: [Error - 20:39:54] Starting client failed Error: Unsupported server configuration { "command": "" } at _getServerWorkingDir.then.serverWorkingDir

Re: Give DLS a try

2018-08-08 Thread Laurent Tréguier via Digitalmars-d
On Wednesday, 8 August 2018 at 07:25:57 UTC, Tab wrote: I find DLS to be very stable Ironically, as the developer of DLS, I'm not sure if it should be considered as stable. I've had quite a number of crashes myself, sometimes even seemingly right at startup :/ Although the latest version

Re: Give DLS a try

2018-08-15 Thread Laurent Tréguier via Digitalmars-d
On Wednesday, 15 August 2018 at 02:40:03 UTC, Soulsbane wrote: Btw, what path does dls search for the dfmt executable? I put my compiled version in my $PATH and it's not picking it up. This is on Linux. It doesn't use anything on your machine, it uses DCD, D-Scanner and DFMT as libraries

Re: Give DLS a try

2018-08-14 Thread Laurent Tréguier via Digitalmars-d
On Tuesday, 14 August 2018 at 21:07:34 UTC, Soulsbane wrote: Perhaps I missed it but is there an option to disable dfmt completely. I see several options, for example, d.dls.format.dfmtSoftMaxLineLength. If you're using the VSCode extension or Atom package, then there is no way to deactivate

Re: Give DLS a try

2018-08-14 Thread Laurent Tréguier via Digitalmars-d
On Tuesday, 14 August 2018 at 10:43:01 UTC, w0rp wrote: For those who like Vim, I opened an issue for adding dls support to ALE. https://github.com/w0rp/ale/issues/1812 I might work on it myself some day, or someone else can set it up. ALE is a linter plugin for Vim I wrote, which is now the

Re: Give DLS a try

2018-08-14 Thread Laurent Tréguier via Digitalmars-d
On Tuesday, 14 August 2018 at 23:24:58 UTC, Soulsbane wrote: No problem. Thanks! It's the mainly the d.dls.format.dfmtBraceStyle that is bothering me. It seems each one uses the if () style and I prefer if(). If that makes sense. Again, thanks a lot for this! Maybe this should simply be a

Re: Give DLS a try

2018-08-09 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 9 August 2018 at 12:42:45 UTC, Domain wrote: I just give it a try in visual studio code, but I got errors: [Error - 20:39:54] Starting client failed Error: Unsupported server configuration { "command": "" } at _getServerWorkingDir.then.serverWorkingDir

Re: Give DLS a try

2018-08-10 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 9 August 2018 at 22:56:02 UTC, tide wrote: Yah that's what I was getting. You should possibly find another way other than symbolic links. I don't think you'll get access to admin rights unless you restart VS Code with them. No, I certainly don't need VSCode to be launched with

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

2018-09-09 Thread Laurent Tréguier 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

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

2018-09-06 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 6 September 2018 at 10:35:44 UTC, Guillaume Piolat wrote: +1 talk here assume that we can know what we build compile or not, but with template it doesn't make sense unless the unittest instantiate. And since we can't add unittest magically where there is none, it's not a

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

2018-09-06 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 6 September 2018 at 12:33:21 UTC, Everlast wrote: The problem is that all projects should be maintained. The issue, besides the tooling which can only reduce the problem to manageable levels, is that projects go stale over time. This is obvious! You say though "But we can't

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

2018-09-06 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 6 September 2018 at 13:03:09 UTC, 0xEAB wrote: On Thursday, 6 September 2018 at 10:55:04 UTC, Laurent Tréguier wrote: Then would it be possible to use code coverage to hint users about packages possibly not building anymore even if they are shown to be buildable ? I see yet

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

2018-09-06 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 6 September 2018 at 16:27:38 UTC, Everlast wrote: You totally missed the point. The point with 1 package only was to demonstrate how easy it is to maintain and that it theoretically would have the long longevity. When one has an infinite number of packages then every package(or

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-09-06 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 6 September 2018 at 14:17:28 UTC, aliak wrote: Hehe, it's already a bit laughable that correctness is not preferred. // Swift let a = "á" let b = "á" let c = "\u{200B}" // zero width space let x = a + c + a let y = b + c + b print(a.count) // 1 print(b.count) // 1 print(x.count)

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

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-04 Thread Laurent Tréguier via Digitalmars-d
On Tuesday, 4 September 2018 at 09:40:23 UTC, Ecstatic Coder wrote: But it seems that the latest version of "std.file.copy" now completely ignores the "PreserveAttributes.no" argument on Windows, which made recent Windows builds of Resync fail on read-only files. Very typical... While D

Re: LDC2 compiling executable requiring elevated privileges?

2018-10-14 Thread Laurent Tréguier via Digitalmars-d
On Sunday, 14 October 2018 at 13:20:09 UTC, Adam D. Ruppe wrote: On Sunday, 14 October 2018 at 12:16:28 UTC, spikespaz wrote: I'm compiling an executable that does not need administrator privileges. For some reason though, LDC thinks it does and marks it as elevated. This has nothing to do

Re: LDC2 compiling executable requiring elevated privileges?

2018-10-15 Thread Laurent Tréguier via Digitalmars-d
On Sunday, 14 October 2018 at 17:49:11 UTC, Adam D. Ruppe wrote: On Sunday, 14 October 2018 at 15:46:57 UTC, Laurent Tréguier wrote: Why should an OS decide whether an executable should be run with admin privileges ? If it has to, then it's up to the developer to explicitly ask for it...

Re: No D bindings in Atom editor

2018-10-17 Thread Laurent Tréguier via Digitalmars-d
On Tuesday, 16 October 2018 at 02:34:47 UTC, Jabari Zakiya wrote: Just updated Atom editor and noticed D files read as plain .txt and no D bindings in list of programs. Maybe someone should bring that to Atom's devs attention. Interesting, since my main editor, KDE's Kate, does have D file

Re: We need an internal keyword.

2018-10-22 Thread Laurent Tréguier via Digitalmars-d
On Sunday, 21 October 2018 at 23:50:57 UTC, 12345swordy wrote: On Sunday, 21 October 2018 at 21:48:22 UTC, Laurent Tréguier wrote: On Sunday, 21 October 2018 at 17:09:05 UTC, 12345swordy wrote: [...] It's not "my" solution. It's D's solution. I perfectly understand why you'd want this and I

Re: We need an internal keyword.

2018-10-22 Thread Laurent Tréguier via Digitalmars-d
On Sunday, 21 October 2018 at 23:50:57 UTC, 12345swordy wrote: If the cost out way the benefits then I simply introduce the "strict" keyword to avoid code breakage, or introduce the optional module scoping. -Alex Looking at the dlang.org page about visibility attributes, the `package`

Re: We need an internal keyword.

2018-10-21 Thread Laurent Tréguier via Digitalmars-d
On Sunday, 21 October 2018 at 03:17:23 UTC, 12345swordy wrote: So that classes can share some of their variables but not others in a module. IE. class A { internal int A; //This is shared in the module private int B; // But not this. } No need to reintroduce the "Friend" feature from cpp.

Re: We need an internal keyword.

2018-10-21 Thread Laurent Tréguier via Digitalmars-d
On Sunday, 21 October 2018 at 17:09:05 UTC, 12345swordy wrote: I know what the current design is!! You have zero tools in regarding to allowing class to share certain variables but not others in the same module! Create a module for every class is taking all or nothing approach, when there is a

Re: We need an internal keyword.

2018-10-21 Thread Laurent Tréguier via Digitalmars-d
On Sunday, 21 October 2018 at 17:48:08 UTC, Neia Neutuladh wrote: On Sun, 21 Oct 2018 08:40:36 +, Laurent Tréguier wrote: This is by design; the D way of dealing with this would be to split the module into a package with multiple modules. This is often a usable way of doing things, but

Re: DMD cross compiler

2018-09-03 Thread Laurent Tréguier via Digitalmars-d
On Monday, 3 September 2018 at 09:32:29 UTC, Joakim wrote: Why not? If you're not optimizing or iterating on your code, it's a reasonable replacement. If you're optimizing, you should only be using LDC or gdc. What if you want to reproduce a bug that only happens when compiling with dmd for

Re: DMD cross compiler

2018-09-03 Thread Laurent Tréguier via Digitalmars-d
On Monday, 3 September 2018 at 14:00:58 UTC, Iain Buclaw wrote: GDC is kept in sync with dmd nightlies on a weekly or twice-weekly basis. I saw the post about using the 2.081 frontend, but I didn't know about that. That's great, thanks for the info !

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-03 Thread Laurent Tréguier via Digitalmars-d
On Monday, 3 September 2018 at 15:23:12 UTC, Chris wrote: On Monday, 3 September 2018 at 14:26:46 UTC, Laeeth Isharc wrote: On Monday, 3 September 2018 at 11:32:42 UTC, Chris wrote: [...] D has never been about smooth experiences! That's a commercial benefit if you think that hormesis

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-03 Thread Laurent Tréguier via Digitalmars-d
On Monday, 3 September 2018 at 16:55:10 UTC, Jonathan M Davis wrote: Most of the work that gets done is the stuff that the folks contributing think is the most important - frequently what is most important for them for what they do, and very few (if any) of the major contributors use or care

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-04 Thread Laurent Tréguier via Digitalmars-d
On Tuesday, 4 September 2018 at 02:19:20 UTC, Laeeth Isharc wrote: On Monday, 3 September 2018 at 16:07:21 UTC, RhyS wrote: On Monday, 3 September 2018 at 15:41:48 UTC, Laurent Tréguier wrote: Yes. It almost sounds like a smooth experience would be a bad thing to have, especially with the

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-03 Thread Laurent Tréguier via Digitalmars-d
On Monday, 3 September 2018 at 22:30:47 UTC, Chris wrote: On Monday, 3 September 2018 at 18:52:45 UTC, Laurent Tréguier wrote: On Monday, 3 September 2018 at 18:26:57 UTC, Chris wrote: it should come with a warning label that says "D is in many parts still at an experimental stage and ships

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-03 Thread Laurent Tréguier via Digitalmars-d
On Monday, 3 September 2018 at 18:26:57 UTC, Chris wrote: it should come with a warning label that says "D is in many parts still at an experimental stage and ships with no guarantees whatsoever. Use at your own risk." Well it comes with the Boost license that says: `THE SOFTWARE IS PROVIDED

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

2018-09-21 Thread Laurent Tréguier via Digitalmars-d
On Friday, 21 September 2018 at 00:55:25 UTC, RhyS wrote: The PC market will change but dying is a big word. So I'm stuck between "smartphones overtaking PC's" which I've been told has already happened, and "PC's dying" which apparently has too strong of a meaning... PC sales have dropped

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

2018-09-19 Thread Laurent Tréguier via Digitalmars-d
On Wednesday, 19 September 2018 at 18:14:47 UTC, Dave Jones wrote: Only if the new product meets all the use cases of the old product. Again this is what you dont understand. Why did the iPhone, and after that the smartphone industry as a whole, completely crush the classic cell phones when

Re: Warn on unused imports?

2018-09-26 Thread Laurent Tréguier via Digitalmars-d
On Wednesday, 26 September 2018 at 09:25:11 UTC, Jonathan M Davis wrote: IMHO, the way that dmd currently handles deprecations works quite well overall. It simply prints a message. It's not a warning, and it's not an error. It's just a message. You can use a compiler flag to make the message

Re: dub configuration for a dependency?

2018-09-26 Thread Laurent Tréguier via Digitalmars-d
On Wednesday, 26 September 2018 at 10:41:36 UTC, joshuabarnes wrote: By default, DerelictODE is configured to load the double-precision version of ODE. If you want to load the single-precision version, declare "DerelictODE_Single" as a version in the build settings of your dub.json. What

Re: Warn on unused imports?

2018-09-26 Thread Laurent Tréguier via Digitalmars-d
On Wednesday, 26 September 2018 at 01:13:11 UTC, Jonathan M Davis wrote: The way that C++ handles warnings is how I've seen most languages handle warnings. IMHO, the only time that anything along the lines of a warning makes sense is when the programmer is proactively running a tool to

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

2018-09-20 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 20 September 2018 at 08:15:39 UTC, Dave Jones wrote: Longer battery life is a convenience not a requirement. What is a convenience and a requirement is completely subjective. I'd classify the removable battery example as a requirement more than a convenience, but other people

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

2018-09-20 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 20 September 2018 at 13:33:31 UTC, Dave Jones wrote: No need to apologise, I didnt pick up any "tone". I felt like I sounded aggressive; I tend to get worked up very quickly over nothing sometimes. ("this train-wreck of a thread"...) FWIW I agree with your position in the long

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

2018-09-20 Thread Laurent Tréguier via Digitalmars-d
On Thursday, 20 September 2018 at 08:15:39 UTC, Dave Jones wrote: [snip] I apologize for the tone I'm using, I shouldn't jump on that train. I'll clarify my position on this: I'm not completely absolutely sure that smartphones will kill the PC market, but I do think it's a possibility that

Re: Idiomatic way to add examples to dub package

2018-04-27 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 27 April 2018 at 10:18:53 UTC, drug wrote: dub.selections.json shouldn't be included in case of library because it should be configured at import site. in case of application it has been configured and so dub.selections.json should be included. IMHO. This is the way Rust packages

Re: dmd64 on Windows: how?

2018-08-10 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 10 August 2018 at 12:15:55 UTC, Ivan Kazmenko wrote: Hi, How should I set up DMD to be able to `dmd -m64` on Windows nowadays? I usually download the 7z, but it broke when I replaced my Visual Studio with 2017 edition. Now, I tried the current 2.081.1 .exe installer. It didn't

Re: dmd64 on Windows: how?

2018-08-10 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 10 August 2018 at 12:15:55 UTC, Ivan Kazmenko wrote: Hi, How should I set up DMD to be able to `dmd -m64` on Windows nowadays? I usually download the 7z, but it broke when I replaced my Visual Studio with 2017 edition. If you were using another Visual Studio version, since VS

Re: Trying to use the libclang Dub package

2018-07-20 Thread Laurent Tréguier via Digitalmars-d-learn
On Thursday, 19 July 2018 at 15:42:02 UTC, bachmeier wrote: Found the problem. The libclang package is looking for /usr/lib/llvm-3.9/lib/libclang.so. For some reason, Ubuntu has libclang.so.1. Creating a symlink in that directory to libclang.so is a solution. Do you have the development

Re: Trying to use the libclang Dub package

2018-07-21 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 20 July 2018 at 14:03:20 UTC, bachmeier wrote: Yeah, I didn't need the symlink on a different machine with Ubuntu 18.04. After some digging around, I found that I had libclang1-3.9, libclang-dev, and libclang-common-3.9-dev installed. libclang1-3.9 installs libclang.so.1. The one I

Re: Copr repository providing dmd and dub for Fedora, EPEL and Mageia

2018-08-31 Thread Laurent Tréguier via Digitalmars-d-announce
On Friday, 31 August 2018 at 19:41:59 UTC, Martin Nowak wrote: Nice one. I see that you're using ldc as bootstrap/host compiler. While that will result in faster binaries (in particular useful for dmd), the official binaries releases are still built with dmd for now. Just worth noting as it

Copr repository providing dmd and dub for Fedora, EPEL and Mageia

2018-08-31 Thread Laurent Tréguier via Digitalmars-d-announce
Hello D people! (and especially, for this thread, RPM-based Linux users) As dmd 2.082.0 is coming very soon, I thought I'd share this here. I've been using Fedora for quite a while now, and have made a Copr repository to have some tools I didn't find in official Fedora repositories [1]. It

Re: Release D 2.082.0

2018-09-02 Thread Laurent Tréguier via Digitalmars-d-announce
On Sunday, 2 September 2018 at 01:05:10 UTC, Martin Nowak wrote: signed Windows binaries. This makes D look so much more professional than having smartscreen warn you about a potential threat. This is probably the single best feature of this release IMO.

Re: Release D 2.082.0

2018-09-02 Thread Laurent Tréguier via Digitalmars-d-announce
On Sunday, 2 September 2018 at 14:42:41 UTC, lurker wrote: after the beta i tried it again - just to be fair. 1.) install d, install visual d. 2.)trying to to look at options under visual d without a project crashes VS2017 - latest service pack. 3.)VS2017 - displays a problem on startup

Re: code-d 0.17.0 + serve-d 0.1.2

2018-04-11 Thread Laurent Tréguier via Digitalmars-d-announce
On Tuesday, 10 April 2018 at 14:00:49 UTC, WebFreak001 wrote: What about workspaces? Multi workspaces in vscode aren't implemented yet though. By multi workspaces, do you mean a multi-root workspace ? If so, multi-roots arrived with LSP 3.6.0 / vscode-languageclient 3.4.0 (if you meant

Re: Is using function() in templates possible at all?

2018-04-12 Thread Laurent Tréguier via Digitalmars-d-learn
On Thursday, 12 April 2018 at 00:05:26 UTC, Nicholas Wilson wrote: There is, with template constraints: class SortedList(T, alias comparer) if(is(typeof(comparer(T.init) : int)) { //... } If the function is declared with explicit parameter types: ``` auto list = new

Re: Is using function() in templates possible at all?

2018-04-12 Thread Laurent Tréguier via Digitalmars-d-learn
On Thursday, 12 April 2018 at 11:53:21 UTC, Alex wrote: On Thursday, 12 April 2018 at 11:17:01 UTC, Laurent Tréguier wrote: If the function is declared with explicit parameter types: There are cool things possible, if the param type is explicitly typed :) ´´´ import std.traits; void

DLS : an attempt at a language server

2018-03-27 Thread Laurent Tréguier via Digitalmars-d-announce
Hello, D community! I've been looking at D for a while now, but never got to really use it. And now that Microsoft initiated the Language Server Protocol, I thought about trying to make a language server using DCD, DFMT and D-Scanner. It only supports formatting with DFMT and basic

Re: DLS : an attempt at a language server

2018-03-27 Thread Laurent Tréguier via Digitalmars-d-announce
On Tuesday, 27 March 2018 at 18:32:40 UTC, Anton Pastukhov wrote: Ahem... https://github.com/Pure-D/serve-d I know, but I still wanted to have a bit of fun anyway

Initializing a class member that is an object

2018-03-30 Thread Laurent Tréguier via Digitalmars-d-learn
Coming from a more Java-esque background, I'm used to sometimes initializing class members outside of the constructor : class MyClass { Object member = new Object(); } I've tried using this in D, but I've come to realize it acts very differently. In Java, the `new Object()` will be

Re: Initializing a class member that is an object

2018-03-30 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 30 March 2018 at 11:04:59 UTC, ketmar wrote: p.s.: still, it may be nice to warn user about that. 'cause such runtime initializations are really belong to static ctor. dunno, i'm ok both with warning and without it. I simply think a word about it in the docs would be nice, since

Re: Initializing a class member that is an object

2018-03-30 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 30 March 2018 at 11:14:32 UTC, ketmar wrote: please, make an ER in bugzilla then. 'cause it will be lost here, and with ER we have a chance to eventually do that. Will do.

Re: DLS : an attempt at a language server

2018-03-28 Thread Laurent Tréguier via Digitalmars-d-announce
On Tuesday, 27 March 2018 at 21:08:20 UTC, WebFreak001 wrote: neat, I am also planning on including dcd inside my language server, did everything just work or did you have issues with threading and messaging etc and what were your experiences on it? I'm not doing anything threaded except for

Re: Noob question about structs allocation

2018-10-15 Thread Laurent Tréguier via Digitalmars-d-learn
On Monday, 15 October 2018 at 04:14:24 UTC, IM wrote: What is the effect of calling destroy? - calling the destructor? - deallocating the memory? - both? IIRC, it only calls the destructor, the GC will decide when to deallocate the memory.

Re: anyway to set a const object after the fact?

2018-10-30 Thread Laurent Tréguier via Digitalmars-d-learn
On Tuesday, 30 October 2018 at 11:23:48 UTC, aliak wrote: Guess I could do that. But would there be a difference if I just declared the restArgs as non const then? Given the objective is "set this var to point to this thing and not allow it to be set to point to anything else". The

Re: anyway to set a const object after the fact?

2018-10-30 Thread Laurent Tréguier via Digitalmars-d-learn
On Monday, 29 October 2018 at 21:50:32 UTC, aliak wrote: Hi, so if you have this piece of code: struct C { void f() { string[] others; const string[] restArgs; foreach (i, arg; args) { if (isValidArg(arg)) { restArgs = args[i + 1 .. $]; break; }

Re: javascript or typescript

2018-11-05 Thread Laurent Tréguier via Digitalmars-d-learn
On Monday, 5 November 2018 at 02:51:19 UTC, Fred wrote: hi, my javascript skill is bad. but i want to host some nodejs app i am aware that there is converter to js like dtojs. but it is out of date. i'd like to give d a try. is there any other converter available. a decent one. I haven't

Re: Small or big dub packages

2018-10-29 Thread Laurent Tréguier via Digitalmars-d-learn
On Monday, 29 October 2018 at 11:31:55 UTC, Igor wrote: Can someone tell me what are pros and cons of having multiple extra small dub packages that depend on each other versus one dub package that has a bunch of functionality? Good example for this is dlib (https://github.com/gecko0307/dlib).

Re: Converting a character to upper case in string

2018-09-21 Thread Laurent Tréguier via Digitalmars-d-learn
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? In which code level I should be working on? Grapheme? Or maybe code point is sufficient? There are few phobos functions like

Re: Converting a character to upper case in string

2018-09-21 Thread Laurent Tréguier via Digitalmars-d-learn
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? In which code level I should be working on? Grapheme? Or maybe code point is sufficient? There are few phobos functions like

Re: Converting a character to upper case in string

2018-09-21 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 21 September 2018 at 13:32:54 UTC, NX wrote: On Friday, 21 September 2018 at 12:34:12 UTC, Laurent Tréguier wrote: I would probably go for std.utf.decode [1] to get the character and its length in code units, capitalize it, and concatenate the result with the rest of the string.

Re: Converting a character to upper case in string

2018-09-21 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 21 September 2018 at 13:32:54 UTC, NX wrote: On Friday, 21 September 2018 at 12:34:12 UTC, Laurent Tréguier wrote: I would probably go for std.utf.decode [1] to get the character and its length in code units, capitalize it, and concatenate the result with the rest of the string.

Re: DLS (D Language Server) v0.20

2018-12-29 Thread Laurent Tréguier via Digitalmars-d-announce
On Friday, 28 December 2018 at 20:44:30 UTC, Per Nordlöw wrote: I'm using DCD through my beloved Emacs. Is there a more powerful Emacs+DLS-solution ready for use? I looked into lsp-mode a bit more, and actually, after installing it, its dependencies and d-mode, a few lines of configuration in

Re: code-d 0.20.0 - serve-d 0.4.0 - Happy new year!

2019-01-01 Thread Laurent Tréguier via Digitalmars-d-announce
On Monday, 31 December 2018 at 17:42:46 UTC, WebFreak001 wrote: Hi guys! I'm proud to announce the next code-d release with a lot of improvements in stability and usability. I had been waiting for new serve-d+code-d releases after seeing

Re: Has anyone tried making a QtCreator plugin for D and what is your experience?

2019-01-15 Thread Laurent Tréguier via Digitalmars-d-learn
On Saturday, 12 January 2019 at 20:10:40 UTC, Enjoys Math wrote: On Saturday, 12 January 2019 at 16:09:22 UTC, Laurent Tréguier wrote: On Saturday, 12 January 2019 at 15:16:25 UTC, Laurent Tréguier wrote: QtCreator 4.8.0 introduced support for the LSP last month :

Re: dscanner --ctags: local variables, functions, ... are now shown in vim/neovim Tagbar

2018-12-17 Thread Laurent Tréguier via Digitalmars-d-learn
On Sunday, 16 December 2018 at 09:59:12 UTC, David wrote: I am wondering how I could display (nested) local variables and functions in vim's tagbar (majutsushi/tagbar) using dscanner? So far I only see gloable variables, functions, ... === script.d == import std.stdio; enum

Re: serve-d break on every update of vs code

2018-11-30 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure wrote: vs code update every time I am connected to internet. Each time I accept the update my code-d stops to show autocomplete. what is the best way to solve this problem. Just updated today. These are the error report Installing

DLS (D Language Server) v0.20

2018-12-28 Thread Laurent Tréguier via Digitalmars-d-announce
Hello, and merry Christmas! (a bit late, but whatever) At the end of March of this year, I had made a post [1] about this project, aimed at helping with D development on various editors (VSCode, Atom, Sublime text, vim...) [2]. In a nutshell, it's a bit like serve-d [3], albeit with fewer

Re: Has anyone tried making a QtCreator plugin for D and what is your experience?

2019-01-12 Thread Laurent Tréguier via Digitalmars-d-learn
On Friday, 11 January 2019 at 18:52:14 UTC, Enjoys Math wrote: I'm 5 years an expert at PyQt5 in conjunction with QtCreator-designed widgets. Where D is lacking is a good GUI editor and GUI library support. I am starting by building a python-based project called QDmt = Qt/D manager It

Re: Has anyone tried making a QtCreator plugin for D and what is your experience?

2019-01-12 Thread Laurent Tréguier via Digitalmars-d-learn
On Saturday, 12 January 2019 at 15:16:25 UTC, Laurent Tréguier wrote: QtCreator 4.8.0 introduced support for the LSP last month : https://blog.qt.io/blog/2018/12/06/qt-creator-4-8-0-released I think I'm going to add it to the list of editors to look into and perhaps try to make a plugin for

Re: DLS (D Language Server) v0.20

2018-12-28 Thread Laurent Tréguier via Digitalmars-d-announce
On Friday, 28 December 2018 at 18:50:39 UTC, David Gileadi wrote: This is an excellent update--the update Just Works™ with VSCode on my mac, and functions very nicely too. Thanks! You're welcome; it's a relief to hear that, as I don't have a mac to actually test it on macOS! I might suggest

Re: DLS (D Language Server) v0.20

2018-12-28 Thread Laurent Tréguier via Digitalmars-d-announce
On Friday, 28 December 2018 at 20:44:30 UTC, Per Nordlöw wrote: Nice! Great work! Thanks! How does DLS compare to the features of DCD? DLS actually uses DCD as a library. There is some custom handling to be able to find multiple declarations for methods with multiple overloads and such

Re: DLS (D Language Server) v0.20

2018-12-31 Thread Laurent Tréguier via Digitalmars-d-announce
On Monday, 31 December 2018 at 04:06:30 UTC, Soulsbane wrote: Can dfmt be disabled completely? I think I tried this before way back and it couldn't. I don't really want auto formatting of my code. It can be disabled in the initialization options. You can set

Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come

2019-03-19 Thread Laurent Tréguier via Digitalmars-d-announce
On Tuesday, 19 March 2019 at 10:10:28 UTC, Seb wrote: BTW, the Arch DMD package [1] is the only package that I know of which is actually using LDC to compile DMD for the released binaries. [1] https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dmd#n54 I'm

Re: DCD 0 symbols cached?

2019-04-11 Thread Laurent Tréguier via Digitalmars-d-learn
On Wednesday, 10 April 2019 at 18:39:23 UTC, Tom wrote: Total newbie to D, trying to get it to play nice with Neovim using ncm2-d and DCD. Issue: DCD never caches any symbols even when I point it directly to DMD's include files. Hate to ask for tech support on this forum but it's all I've

Re: DLS server can't install on my pc

2019-05-24 Thread Laurent Tréguier via Digitalmars-d-learn
On Wednesday, 22 May 2019 at 12:59:13 UTC, greatsam4sure wrote: I am having some difficulty installing DLS for dlang 1.16.4 the visual studio code plugin for Dlang on my pc-windows 10 Lenovo laptop ci7. it actually install in my ci3 running windows 10. It says this app can't install on this

Re: DLS server can't install on my pc

2019-05-24 Thread Laurent Tréguier via Digitalmars-d-learn
On Wednesday, 22 May 2019 at 12:59:13 UTC, greatsam4sure wrote: I am having some difficulty installing DLS for dlang 1.16.4 the visual studio code plugin for Dlang on my pc-windows 10 Lenovo laptop ci7. it actually install in my ci3 running windows 10. It says this app can't install on this

Re: a way of approximating "API internal" visibility?

2019-05-18 Thread Laurent Tréguier via Digitalmars-d-learn
On Saturday, 18 May 2019 at 06:23:37 UTC, DanielG wrote: I'm working on a library spread across multiple modules/packages. Sometimes I have symbols that I would like to share between internal packages, but I don't want to make 'public' because then it would be exposed to the client-facing

Re: D released as part of GCC 9.1

2019-05-05 Thread Laurent Tréguier via Digitalmars-d-announce
On Sunday, 5 May 2019 at 00:56:47 UTC, user1234 wrote: already available for Fedora rawhide https://pkgs.org/download/gcc-gdc Seems logic since it's more like a rolling distribution. Although pkgs.org doesn't list it, it's also available on the stable Fedora 30,that just came out this week!

Re: dud: A dub replacement

2019-11-18 Thread Laurent Tréguier via Digitalmars-d-announce
On Monday, 18 November 2019 at 19:54:38 UTC, Russel Winder wrote: It is so easy to make spelling errors in keys using hand-written JSON. I don't understand why this would apply to JSON specifically. Whatever the language is, the config files will be hand-written; spelling errors are pretty

Re: dud: A dub replacement

2019-11-19 Thread Laurent Tréguier via Digitalmars-d-announce
On Tuesday, 19 November 2019 at 08:15:20 UTC, Robert Schadek wrote: Currently, I have no plans to add any other file format. But PR's are always welcome. The decision on json and sdl has been made a long time ago, for better or for worse. Please don't turn this thread into bike-shedding.

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-04 Thread Laurent Tréguier via Digitalmars-d-announce
On Monday, 4 November 2019 at 08:25:11 UTC, Patrick Schluter wrote: I don't get why it confuses people. In all languages I know (C, C++, Java, Pascal, etc..) they are used to associate a compile time symbols with some quantities, i.e. the definition of constants. When an enumeration only

Re: Undefined symbol: _dyld_enumerate_tlv_storage (OSX)

2019-10-11 Thread Laurent Tréguier via Digitalmars-d-learn
On Thursday, 10 October 2019 at 18:12:51 UTC, Robert M. Münch wrote: I have two project I want to compile and both times get this error: Undefined symbols for architecture x86_64: "_dyld_enumerate_tlv_storage", referenced from: __d_dyld_getTLSRange in libphobos2.a(osx_tls.o) I'm

Re: Undefined symbol: _dyld_enumerate_tlv_storage (OSX)

2019-10-11 Thread Laurent Tréguier via Digitalmars-d-learn
On Thursday, 10 October 2019 at 18:31:25 UTC, Daniel Kozak wrote: What dmd version? https://issues.dlang.org/show_bug.cgi?id=20019 Ah, I should have read this before replying; that's precisely the issue I had.

Re: total newbie + IDE

2020-02-09 Thread Laurent Tréguier via Digitalmars-d-learn
On Sunday, 9 February 2020 at 22:10:57 UTC, solnce wrote: No, I understand that and agree - VSCode is impressive and I'll try it, but what is wrong with idea to have a dedicated IDE? At least one. C/C++ has tons of these and many of these are being actively developed, so why D cannot have?

Re: DLS deprecation

2020-04-09 Thread Laurent Tréguier via Digitalmars-d-announce
On Thursday, 9 April 2020 at 15:49:51 UTC, Petar Kirov [ZombineDev] wrote: The idea is to move it there, so other motivated members of the community can pick up the torch from where you left it and continue active development. I doubt anyone will pick it up, but if someone wanted to, I would

DLS deprecation

2020-04-07 Thread Laurent Tréguier via Digitalmars-d-announce
I started working on this project to make it more comfortable to write D back in 2017, published a VSCode extension a couple months later, and continued working on it throughout 2018. In 2019 however, I slowed down, and eventually, stopped working on it. It was fun, and kept me well occupied

Re: DLS deprecation

2020-04-07 Thread Laurent Tréguier via Digitalmars-d-announce
On Tuesday, 7 April 2020 at 20:03:21 UTC, Aliak wrote: Is what you’re working on shareable information (just out of curiosity)? It's shareable (it's on Github just like DLS); it's a mobile app, the Android version is in Kotlin, and the iOS version in Swift. I think it's hard to beat native

Re: DLS deprecation

2020-04-07 Thread Laurent Tréguier via Digitalmars-d-announce
On Tuesday, 7 April 2020 at 22:07:34 UTC, Sebastiaan Koppe wrote: I was wondering how much time maintaining took? And what where the biggest things to upkeep? Technically, not much time. It's mostly upgrading dependencies, and the occasional bugfix. However DLS would really need a lot more

Re: DLS deprecation

2020-04-07 Thread Laurent Tréguier via Digitalmars-d-announce
On Tuesday, 7 April 2020 at 21:58:47 UTC, Boris Carvajal wrote: Really it should've been an official sponsored project and with a DMD backend it would be perfect. Maybe I'm misinterpreting things I've read on certain threads, but I thought the D foundation wasn't too fond of sponsoring

Re: DLS deprecation

2020-04-09 Thread Laurent Tréguier via Digitalmars-d-announce
On Wednesday, 8 April 2020 at 12:47:57 UTC, aliak wrote: Yeah, no doubt, it's always that last 10-20 percent of the way you have to go with the non-native languages on those platforms that gets you. The downside is the manpower required to maintain two platforms. I've been meaning to give

Re: DLS deprecation

2020-04-09 Thread Laurent Tréguier via Digitalmars-d-announce
On Thursday, 9 April 2020 at 14:59:41 UTC, Petar Kirov [ZombineDev] wrote: Thanks a lot for your work! What do you think about transferring the project to dlang-community? Also, I think it's better to leave the VSCode extension in the marketplace, even if you're not able to continue working on

  1   2   >