[Issue 17726] Older DMD versions segfault when building Druntime with GCC 7.1

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17726 --- Comment #5 from Vladimir Panteleev --- Segfault occurs on the line: esave = *e; The line is inside the evalu8 function, which is also the only function needed to be compiled with -O2 for the bug to

Re: std.math module

2017-08-06 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 6 August 2017 at 23:33:26 UTC, greatsam4sure wrote: import std.math; import std.stdio; cos(90*PI/180) = -2.7e-20 instead of zero. I will appreciate any help. thanks in advance. tan(90*PI/180) = -3.689e+19 instead of infinity. What is the best way to use this module in addition

[Issue 17727] addr2line does not understand debug info

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17727 --- Comment #1 from Shachar Shemesh --- Also see discussion at http://forum.dlang.org/thread/om6cfd$akb$1...@digitalmars.com It seems that the "break main" issue is unrelated to the debug info, and is because it has another symbol

[Issue 17727] New: addr2line does not understand debug info

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17727 Issue ID: 17727 Summary: addr2line does not understand debug info Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major

[Issue 17690] [REG2.066.0] scope guards leak declarations

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17690 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/978490aca27e374141607369389f6694d78af182 fix Issue 17690 - scope guards leak declarations

[Issue 17689] finally clause leaks declarations

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17689 Walter Bright changed: What|Removed |Added CC|

[Issue 17690] [REG2.066.0] scope guards leak declarations

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17690 Walter Bright changed: What|Removed |Added CC|

[Issue 17726] Older DMD versions segfault when building Druntime with GCC 7.1

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17726 --- Comment #4 from Vladimir Panteleev --- Narrowed down the file to backend/evalu8.c. (Segfault manifests iff that file is compiled with -O2). --

[Issue 17726] Older DMD versions segfault when building Druntime with GCC 7.1

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17726 --- Comment #3 from Vladimir Panteleev --- Minimal object.d: // object_.d // module object; class Object {} struct OffsetTypeInfo {} class TypeInfo {} class TypeInfo_Class {

Re: d_to_html.d

2017-08-06 Thread TheGag96 via Digitalmars-d-announce
On Saturday, 5 August 2017 at 19:07:50 UTC, WebFreak001 wrote: snip Man, this is absolutely nuts. Overriding opBinary to catch hyphens, aliasing opAssign to opCall... Just evil, haha! Amazing job!

Re: How do you use D?

2017-08-06 Thread solidstate1991 via Digitalmars-d
On Friday, 28 July 2017 at 14:58:01 UTC, Ali wrote: While the Orgs using D page is very nice ... I hoping to hear more personal stories ... So How do you use D? For personal projects, using a mixed form of OOP and procedural programming (I won't make static classes if I'm not forced to,

[Issue 17726] Older DMD versions segfault when building Druntime with GCC 7.1

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17726 --- Comment #2 from Vladimir Panteleev --- Works fine without "CFLAGS += -O2", so it looks like either a GCC optimizer bug, or UB in DMD. --

[Issue 17726] Older DMD versions segfault when building Druntime with GCC 7.1

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17726 --- Comment #1 from Vladimir Panteleev --- (In reply to Vladimir Panteleev from comment #0) > On Arch Linux, attempting to build D versions from 2015 or earlier I should clarify that the method used was with

[Issue 17726] New: Older DMD versions segfault when building Druntime with GCC 7.1

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17726 Issue ID: 17726 Summary: Older DMD versions segfault when building Druntime with GCC 7.1 Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 17721] Wrong expression type using vector extensions with certain operands

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17721 Walter Bright changed: What|Removed |Added CC|

Re: Getting enum from value

2017-08-06 Thread Kreikey via Digitalmars-d-learn
On Saturday, 5 August 2017 at 20:11:27 UTC, Matthew Remmel wrote: On Saturday, 5 August 2017 at 18:26:10 UTC, Kreikey wrote: On Saturday, 5 August 2017 at 15:33:57 UTC, Matthew Remmel wrote: I feel like I'm missing something, but there has to be an easier way to convert a value into an enum

[Issue 8006] Implement proper in-place-modification for properties

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8006 Mike changed: What|Removed |Added CC||slavo5...@yahoo.com --

Re: d_to_html.d

2017-08-06 Thread solidstate1991 via Digitalmars-d-announce
On Saturday, 5 August 2017 at 19:07:50 UTC, WebFreak001 wrote: Hi, I made a D to HTML generator which is basically diet, but fully using the D compiler as generator and not some complicated parser, etc. Finally! I can have a footing in frontend development!

[Issue 17677] [REG 2.073.0] ICE when adding ulong to cfloat

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17677 Walter Bright changed: What|Removed |Added Keywords||SIMD

Re: std.math module

2017-08-06 Thread sarn via Digitalmars-d-learn
On Sunday, 6 August 2017 at 23:33:26 UTC, greatsam4sure wrote: import std.math; import std.stdio; cos(90*PI/180) = -2.7e-20 instead of zero. I will appreciate any help. thanks in advance. tan(90*PI/180) = -3.689e+19 instead of infinity. What is the best way to use this module That's just

Re: rename file, execute os, etc at compile time

2017-08-06 Thread Johnson Jones via Digitalmars-d-learn
On Sunday, 6 August 2017 at 23:11:56 UTC, Nicholas Wilson wrote: On Sunday, 6 August 2017 at 19:56:06 UTC, Johnson Jones wrote: is it possible to do? I would like to pre-configure some stuff at "pre-compilation"(in ctfe but before the rest of the program actually gets compiled). I know it's

Re: returning D string from C++?

2017-08-06 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 6 August 2017 at 17:16:05 UTC, bitwise wrote: I was referring specifically to storing gc_malloc'ed pointers on the stack, meaning that I'm calling a C++ function on a D call stack, and storing the pointer as a local var in the C++ function before returning it to D. The more I

ldc D compiler installation on windows 10

2017-08-06 Thread greatsam4sure via Digitalmars-d-learn
Good day. I will appreciate it if anybody here can help me with the step by step way of installing ldc D compiler on windows. I have read online info but i just don't get it. let the process be in steps for easy comprehension.thanks in advance

std.math module

2017-08-06 Thread greatsam4sure via Digitalmars-d-learn
import std.math; import std.stdio; cos(90*PI/180) = -2.7e-20 instead of zero. I will appreciate any help. thanks in advance. tan(90*PI/180) = -3.689e+19 instead of infinity. What is the best way to use this module

ldc instation on windows 10

2017-08-06 Thread greatsam4sure via Digitalmars-d-learn
Good day. I will appreciate it if anybody here can help me with the step by step way of installing ldc D compiler on windows. I have read online info but i just don't get it. let the process be in steps for easy comprehension.thanks in advance

Re: rename file, execute os, etc at compile time

2017-08-06 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 6 August 2017 at 19:56:06 UTC, Johnson Jones wrote: is it possible to do? I would like to pre-configure some stuff at "pre-compilation"(in ctfe but before the rest of the program actually gets compiled). I know it's not safe and all that but in my specific case it would help.

Re: lambda function with "capture by value"

2017-08-06 Thread bitwise via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:17:49 UTC, Simon Bürger wrote: If a lambda function uses a local variable, that variable is captured using a hidden this-pointer. But this capturing is always by reference. Example: int i = 1; auto dg = (){ writefln("%s", i); }; i = 2; dg(); //

[Issue 17725] New: [scope] escape from nested function to enclosing local

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17725 Issue ID: 17725 Summary: [scope] escape from nested function to enclosing local Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

[Issue 17724] digest is not a template declaration, it is a module

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17724 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17724] digest is not a template declaration, it is a module

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17724 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a0a0842b901d8346cd6cc60f4deddf16126d361a Fix issue 17724 - to be deprecated module

Re: d_to_html.d

2017-08-06 Thread crimaniak via Digitalmars-d-announce
On Sunday, 6 August 2017 at 00:22:32 UTC, David Gileadi wrote: On 8/5/17 12:07 PM, WebFreak001 wrote: Hi, I made a D to HTML generator which is basically diet, but fully using the D compiler as generator and not some complicated parser, etc. [snip] That is amazing! I can't decide whether

Re: lambda function with "capture by value"

2017-08-06 Thread Simon Bürger via Digitalmars-d-learn
On Sunday, 6 August 2017 at 12:50:22 UTC, Adam D. Ruppe wrote: On Saturday, 5 August 2017 at 19:58:08 UTC, Temtaime wrote: (k){ dgs[k] = {writefln("%s", k); }; }(i); Yeah, that's how I'd do it - make a function taking arguments by value that return the delegate you actually

[Issue 17724] digest is not a template declaration, it is a module

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17724 Steven Schveighoffer changed: What|Removed |Added Keywords||pull ---

rename file, execute os, etc at compile time

2017-08-06 Thread Johnson Jones via Digitalmars-d-learn
is it possible to do? I would like to pre-configure some stuff at "pre-compilation"(in ctfe but before the rest of the program actually gets compiled). I know it's not safe and all that but in my specific case it would help. I'll probably use pre-build events, which is probably the best,

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce
On Sunday, 6 August 2017 at 18:32:35 UTC, Soulsbane wrote: On Sunday, 6 August 2017 at 08:54:28 UTC, WebFreak001 wrote: To access it open the panel at the bottom (F1 -> View: Toggle Output / Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just select everything, copy it and

Re: gtkD: events being triggered twice

2017-08-06 Thread FoxyBrown via Digitalmars-d-learn
On Sunday, 6 August 2017 at 18:26:20 UTC, Mike Wey wrote: On 06-08-17 16:58, FoxyBrown wrote: I don't really(my code is a bit more complex) but basically all it boils down to is a UI with some nested widgets (an overlay, an box, and a box and one contains the eventbox which I added those

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread bachmeier via Digitalmars-d
On Sunday, 6 August 2017 at 16:10:05 UTC, Dmitry wrote: On Sunday, 6 August 2017 at 14:05:31 UTC, bachmeier wrote: Then Windows users need to start contributing. Good or bad, this is not a company deciding how to allocate developer time, it is a volunteer organization. I see a lot of posts of

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Paulo Pinto via Digitalmars-d
On Sunday, 6 August 2017 at 15:43:46 UTC, Moritz Maxeiner wrote: On Sunday, 6 August 2017 at 15:32:07 UTC, Paulo Pinto wrote: On Sunday, 6 August 2017 at 14:16:20 UTC, Moritz Maxeiner wrote: [...] According to Google on their Android Developers Backstage podcast, the majority of Android

Re: Visual D structs/classes not showing in debugging (reprise)

2017-08-06 Thread Rainer Schuetze via Digitalmars-d-debugger
On 06.08.2017 19:03, Johnson Jones wrote: Rainer, could you explain to me again why structs and classes are not properly shown in the debugger? The problem is that the debug information is not included by dmd in the final executable if it has been written to a library (as with your gtkd

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Soulsbane via Digitalmars-d-announce
On Sunday, 6 August 2017 at 08:54:28 UTC, WebFreak001 wrote: To access it open the panel at the bottom (F1 -> View: Toggle Output / Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just select everything, copy it and paste it somewhere. I tried with a fresh dub init project

Re: long strings seem to only display ""

2017-08-06 Thread Rainer Schuetze via Digitalmars-d-debugger
On 06.08.2017 05:34, FoxyBrown wrote: Was having a strange debug issue until I checked the visualizer on the string and realized it was just a long string ;/ mago is showing long strings as "" making one think they are empty. instead, the first n chars should be shown with an ellipse is

Re: gtkD: events being triggered twice

2017-08-06 Thread Mike Wey via Digitalmars-d-learn
On 06-08-17 16:58, FoxyBrown wrote: I don't really(my code is a bit more complex) but basically all it boils down to is a UI with some nested widgets (an overlay, an box, and a box and one contains the eventbox which I added those callbacks on. I think that something like

Re: Did dmd forget how to read?

2017-08-06 Thread Walter Bright via Digitalmars-d
On 8/5/2017 4:54 PM, Johnson Jones wrote: main.d(157): Error: no property 'SetCursor' for type 'gdk.Window.Window', did you mean 'getCursor'? um... anyone see bug? It's there, I promise. Please post bugs to bugzilla: https://issues.dlang.org/

Re: returning D string from C++?

2017-08-06 Thread bitwise via Digitalmars-d-learn
On Sunday, 6 August 2017 at 16:46:40 UTC, Mike Parker wrote: On Sunday, 6 August 2017 at 16:23:01 UTC, bitwise wrote: So I guess you're saying I'm covered then? I guess there's no reason I can think of for the GC to stop scanning at the language boundary, let alone any way to actually do that

[Issue 17724] digest is not a template declaration, it is a module

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17724 Steven Schveighoffer changed: What|Removed |Added CC|

Re: lambda function with "capture by value"

2017-08-06 Thread Russel Winder via Digitalmars-d-learn
On Sun, 2017-08-06 at 12:50 +, Adam D. Ruppe via Digitalmars-d-learn wrote: > On Saturday, 5 August 2017 at 19:58:08 UTC, Temtaime wrote: > >   (k){ dgs[k] = {writefln("%s", k); }; }(i); > > Yeah, that's how I'd do it - make a function taking arguments by  > value that return the

VibeD - REST API and vibed.web.auth framework

2017-08-06 Thread holo via Digitalmars-d-learn
Hello I'm trying to use auth framework with REST api ( http://vibed.org/api/vibe.web.auth/ ). Is it possible to use it with registerRestInterface? According to description under: http://vibed.org/api/vibe.web.auth/requiresAuth it should be available on both Web and REST. Here is my

Re: returning D string from C++?

2017-08-06 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 6 August 2017 at 16:23:01 UTC, bitwise wrote: So I guess you're saying I'm covered then? I guess there's no reason I can think of for the GC to stop scanning at the language boundary, let alone any way to actually do that efficiently. It's not something you can rely on. If the

Re: returning D string from C++?

2017-08-06 Thread bitwise via Digitalmars-d-learn
On Sunday, 6 August 2017 at 05:31:51 UTC, Marco Leise wrote: Am Sat, 05 Aug 2017 20:17:23 + schrieb bitwise : [...] In due diligence, you are casting an ANSI string into a UTF-8 string which will result in broken Unicode for non-ASCII window titles. In any case it is

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d
On Sunday, 6 August 2017 at 14:30:48 UTC, Ryion wrote: On my work half the developers are on Mac, the other half are on Windows. There is not a single Linux system. From the windows developers 2 use "bash" on Windows regularly. Moreover, Macs' popularity may differ a lot in different

Re: returning D string from C++?

2017-08-06 Thread bitwise via Digitalmars-d-learn
On Saturday, 5 August 2017 at 21:18:29 UTC, Jeremy DeHaan wrote: On Saturday, 5 August 2017 at 20:17:23 UTC, bitwise wrote: I have a Windows native window class in C++, and I need a function to return the window title. [...] As long as you have a reachable reference to the GC memory

Re: Calling D from Ruby for GPU computing

2017-08-06 Thread Prasun Anand via Digitalmars-d-announce
What made you choose D over going straight to C to work directly with cuda? `faster_lmm_d` was written in D. Since, I needed to use CUDA, I had to create the D bindings. I found using CUDA for GPU computing in D as easy as doing it in C. Regards, Prasun

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Russel Winder via Digitalmars-d
And a splendid job Francis is doing. I should be contributing more, but till October, little chance of that. The project could do with more people working on it. You'll get practice using Kotlin, which is the native code language that will be competing with Go and Rust next year! All

Re: Calling D from Ruby for GPU computing

2017-08-06 Thread Prasun Anand via Digitalmars-d-announce
On Saturday, 5 August 2017 at 01:15:19 UTC, Michael wrote: On Saturday, 29 July 2017 at 06:54:47 UTC, Prasun Anand wrote: Hi, I wrote a Linear Mixed Model tool for Genome Wide Association Studies(GWAS) called [faster_lmm_d](https://github.com/prasunanand/faster_lmm_d). It is built on LDC and

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d
On Sunday, 6 August 2017 at 14:05:31 UTC, bachmeier wrote: Then Windows users need to start contributing. Good or bad, this is not a company deciding how to allocate developer time, it is a volunteer organization. I see a lot of posts of the form "this isn't what group X expects". The response

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d
On Sunday, 6 August 2017 at 13:54:43 UTC, 12345swordy wrote: On Sunday, 6 August 2017 at 07:04:34 UTC, Dmitry wrote: Visual D also has some problems that sensitive for newbies. For example, no DUB support. What are you talking about? dub generates solution files for visual d. Of course

Re: Create class on stack

2017-08-06 Thread Moritz Maxeiner via Digitalmars-d-learn
On Sunday, 6 August 2017 at 15:24:55 UTC, Jacob Carlborg wrote: On 2017-08-05 19:08, Johnson Jones wrote: using gtk, it has a type called value. One has to use it to get the value of stuff but it is a class. Once it is used, one doesn't need it. Ideally I'd like to treat it as a struct since

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Moritz Maxeiner via Digitalmars-d
On Sunday, 6 August 2017 at 15:32:07 UTC, Paulo Pinto wrote: On Sunday, 6 August 2017 at 14:16:20 UTC, Moritz Maxeiner wrote: On Sunday, 6 August 2017 at 12:14:16 UTC, Dmitry wrote: [...] A developer who mostly targets Windows wouldn't. But if you look at the statistics [1] you'd see that

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Paulo Pinto via Digitalmars-d
On Sunday, 6 August 2017 at 14:16:20 UTC, Moritz Maxeiner wrote: On Sunday, 6 August 2017 at 12:14:16 UTC, Dmitry wrote: [...] A developer who mostly targets Windows wouldn't. But if you look at the statistics [1] you'd see that in the category of systems accessing the web mobile systems

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Moritz Maxeiner via Digitalmars-d
On Sunday, 6 August 2017 at 15:18:49 UTC, Ryion wrote: On Sunday, 6 August 2017 at 14:49:47 UTC, Moritz Maxeiner wrote: 1) Anecdotes are not useful here 2) macOS is UNIX, same as Linux, so I'm not sure why the distinction matters as a reply to me Same two points as above. Thanks for the

Re: Create class on stack

2017-08-06 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-08-05 19:08, Johnson Jones wrote: using gtk, it has a type called value. One has to use it to get the value of stuff but it is a class. Once it is used, one doesn't need it. Ideally I'd like to treat it as a struct since I'm using it in a delegate I would like to minimize unnecessary

Re: d_to_html.d

2017-08-06 Thread Jacob Carlborg via Digitalmars-d-announce
On 2017-08-05 21:07, WebFreak001 wrote: Hi, I made a D to HTML generator which is basically diet, but fully using the D compiler as generator and not some complicated parser, etc. Here an example what you pass in: string page = html( head( title("wtf is this"), style(

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Ryion via Digitalmars-d
On Sunday, 6 August 2017 at 14:49:47 UTC, Moritz Maxeiner wrote: 1) Anecdotes are not useful here 2) macOS is UNIX, same as Linux, so I'm not sure why the distinction matters as a reply to me Same two points as above. Thanks for the interesting reply. /S

Re: gtkD window centering message up and no app on taskbar

2017-08-06 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 20:56:10 UTC, Mike Wey wrote: On 05-08-17 20:14, Johnson Jones wrote: When trying to center the window. If one uses ALWAYS_CENTERED any resizing of the window is totally busted. CENTER also does not work. move(0,0) seems to not be relative to the main display.

Re: gtkD: events being triggered twice

2017-08-06 Thread FoxyBrown via Digitalmars-d-learn
On Sunday, 6 August 2017 at 09:42:03 UTC, Mike Wey wrote: On 06-08-17 03:25, Johnson Jones wrote: GtkEventBox - Enter GtkEventBox - Enter Down GtkEventBox - Leave Up GtkEventBox - Leave GtkEventBox - Leave That is when I move the mouse over the event box then click then move out out then

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Moritz Maxeiner via Digitalmars-d
On Sunday, 6 August 2017 at 14:30:48 UTC, Ryion wrote: On Sunday, 6 August 2017 at 14:16:20 UTC, Moritz Maxeiner wrote: [...] How sure are you even with statistics... On my work half the developers are on Mac, the other half are on Windows. There is not a single Linux system. From the

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Daniel Kozak via Digitalmars-d-announce
After reinstaling serve-d-git it is working ok for me now On Sun, Aug 6, 2017 at 4:28 PM, Daniel Kozak wrote: > No I have none of those directories in my system (ArchLinux), I have > install this aur package https://aur.archlinux.org/packages/serve-d-git > and then code-d

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Ryion via Digitalmars-d
On Sunday, 6 August 2017 at 14:16:20 UTC, Moritz Maxeiner wrote: A developer who mostly targets Windows wouldn't. But if you look at the statistics [1] you'd see that in the category of systems accessing the web mobile systems (and we are excluding servers here, who are virtually all UNIX

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce
On Sunday, 6 August 2017 at 12:22:43 UTC, Dmitry wrote: On Sunday, 6 August 2017 at 08:50:38 UTC, WebFreak001 wrote: Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d and then try the following commands in this order and tell me if one of them worked: dub build --compiler=ldc

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce
On Sunday, 6 August 2017 at 09:48:22 UTC, Daniel Kozak wrote: https://pastebin.com/3hp2b5qy [...] oh right you still have the old version. Remove the serve-d directory (~/.local/share/code-d, ~/.code-d or %APPDATA%/code-d) and reload vscode or cd into it, git pull and dub build (on windows

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Moritz Maxeiner via Digitalmars-d
On Sunday, 6 August 2017 at 12:14:16 UTC, Dmitry wrote: I don't think so. Why developer should use MacOS/Linux if the target platform is Windows in most of cases? A developer who mostly targets Windows wouldn't. But if you look at the statistics [1] you'd see that in the category of systems

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread bachmeier via Digitalmars-d
On Sunday, 6 August 2017 at 12:14:16 UTC, Dmitry wrote: In any case, the result is same: the biggest platform supported worse than others. Then Windows users need to start contributing. Good or bad, this is not a company deciding how to allocate developer time, it is a volunteer

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread 12345swordy via Digitalmars-d
On Sunday, 6 August 2017 at 07:04:34 UTC, Dmitry wrote: Visual D also has some problems that sensitive for newbies. For example, no DUB support. What are you talking about? dub generates solution files for visual d. Of course visual d has DUB support, you just have to generate the solution

Mixin templates vs interface files

2017-08-06 Thread Jean-Louis Leroy via Digitalmars-d
Consider: // app.d import std.stdio; import tracemodule; mixin traceModule; void main() { writeln("main"); } // tracemodule.d module tracemodule; import std.stdio; mixin template traceModule(string moduleName = __MODULE__) { import std.stdio; static this() { writeln("init " ~

Re: D books - 3 eBooks, videos, and courses for $25 right now

2017-08-06 Thread Mark via Digitalmars-d-announce
On Thursday, 3 August 2017 at 15:49:06 UTC, Martin Tschierschke wrote: On Thursday, 27 July 2017 at 08:29:14 UTC, Martin Tschierschke wrote: On Friday, 16 December 2016 at 05:43:02 UTC, Kai Nacke wrote: Hi all, Packt Publishing offers eBooks for $5 for a limited time. If your collection of D

Re: [OT] Generative C++

2017-08-06 Thread Mark 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? Won't this abstraction compete directly with concepts (lite) and even with templates? Metaclasses appear to be at

[Issue 17722] Wrong diagnostic using __traits(compiles, e1 && e2) expressions.

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17722 Iain Buclaw changed: What|Removed |Added Summary|Wrong diagnostic using |Wrong diagnostic using

Re: lambda function with "capture by value"

2017-08-06 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 5 August 2017 at 19:58:08 UTC, Temtaime wrote: (k){ dgs[k] = {writefln("%s", k); }; }(i); Yeah, that's how I'd do it - make a function taking arguments by value that return the delegate you actually want to store. (Also use this pattern in Javascript btw for its

Re: lambda function with "capture by value"

2017-08-06 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:37:31 UTC, Johnson Jones wrote: 1. I'm pretty sure that D creates the delegate "lazily" in the sense that the first call is what captures the variable. It actually does it at function entry, allocating the memory for the locals in the closure, so it never

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Dmitry via Digitalmars-d-announce
On Sunday, 6 August 2017 at 08:50:38 UTC, WebFreak001 wrote: Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d and then try the following commands in this order and tell me if one of them worked: dub build --compiler=ldc --build=release --combined dub build --compiler=ldc

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d
On Sunday, 6 August 2017 at 10:24:42 UTC, Russel Winder wrote: I am sure Microsoft would declare that figure accurate for computers in general. I suspect though that it is totally It's not Microsoft's statistic. StatCounter, Net Market Share, etc. inaccurate for software developers, in that

Re: Create class on stack

2017-08-06 Thread Moritz Maxeiner via Digitalmars-d-learn
On Sunday, 6 August 2017 at 02:19:19 UTC, FoxyBrown wrote: [...] I don't think you understand what I'm saying. If I use this method to create a "reference" type on the stack rather than the heap, is the only issue worrying about not having that variable be used outside that scope(i.e., have

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Russel Winder via Digitalmars-d
On Sun, 2017-08-06 at 07:04 +, Dmitry via Digitalmars-d wrote: > […] > About 90% of computers uses Windows, but D on Linux supported  > better (for example, VS Code and Mono-D has debugging support). I am sure Microsoft would declare that figure accurate for computers in general. I suspect

Re: How do you use D?

2017-08-06 Thread Bastiaan Veelo via Digitalmars-d
On Sunday, 6 August 2017 at 05:39:36 UTC, Laeeth Isharc wrote: [...] Thanks for sharing your views, a nice read. Bastiaan.

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Daniel Kozak via Digitalmars-d-announce
It does not select compiler correctly: [kozak@kleopatra dbsync]$ dub build --config= --arch=x86_64 --build=debug --compiler= Error processing arguments: Missing value for argument --compiler=. Run 'dub help' for usage information. On Sun, Aug 6, 2017 at 11:48 AM, Daniel Kozak

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Daniel Kozak via Digitalmars-d-announce
https://pastebin.com/3hp2b5qy On Sun, Aug 6, 2017 at 10:54 AM, WebFreak001 via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote: > >> On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: >> >>> You might

Re: gtkD: events being triggered twice

2017-08-06 Thread Mike Wey via Digitalmars-d-learn
On 06-08-17 03:25, Johnson Jones wrote: GtkEventBox - Enter GtkEventBox - Enter Down GtkEventBox - Leave Up GtkEventBox - Leave GtkEventBox - Leave That is when I move the mouse over the event box then click then move out out then release. I would expect Enter Down Leave Up The fact that

Re: gtkD load images

2017-08-06 Thread Mike Wey via Digitalmars-d-learn
On 05-08-17 22:59, ag0aep6g wrote: On 08/05/2017 10:30 PM, Mike Wey wrote: On 05-08-17 15:23, Johnson Jones wrote: On Saturday, 5 August 2017 at 12:51:13 UTC, Mike Wey wrote: [...] There are two issues here, you need to properly escape the slash: "C:a.jpg". [...] ``` Pixbuf p = new

Re?? Visual Studio Code code-d serve-d beta release

2017-08-06 Thread . via Digitalmars-d-announce
I use dub build --compiler=ldc2 and get these error messages below: Installing DCD Installing into C:\Users\admin\AppData\Roaming\code-d\bin Deleting old installation from C:\Users\admin\AppData\Roaming\code-d\bin\DCD Failed to install DCD

[Issue 17430] [scope] delegate can escape context ptr

2017-08-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17430 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7f3af47c742e6ec30b69e4ad4064d2474ca31769 fix Issue 17430 - [scope] delegate can escape context ptr

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce
On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote: On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: You might remember the blog post from a while back about workspace-d and serve-d, I just released a beta version on the visual studio marketplace that allows you to try out

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce
On Sunday, 6 August 2017 at 05:38:28 UTC, Dmitry wrote: On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: try out the new version please uninstall code-d and install code-d-beta (https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, it's version 0.16.1) and

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce
On Sunday, 6 August 2017 at 07:18:18 UTC, Soulsbane wrote: On Sunday, 6 August 2017 at 06:53:28 UTC, Suliman wrote: Could anybody make Sublime plugin please? Same person made one https://github.com/Pure-D/sublime-d. Although it looks like it hasn't yet been updated to take advantage of the

Re: Did dmd forget how to read?

2017-08-06 Thread Cym13 via Digitalmars-d
On Sunday, 6 August 2017 at 02:10:43 UTC, Johnson Jones wrote: On Sunday, 6 August 2017 at 00:22:45 UTC, Cym13 wrote: On Saturday, 5 August 2017 at 23:54:45 UTC, Johnson Jones wrote: main.d(157): Error: no property 'SetCursor' for type 'gdk.Window.Window', did you mean 'getCursor'? um...

Re: addr2line not showing line numbers

2017-08-06 Thread Nemanja Boric via Digitalmars-d
On Sunday, 6 August 2017 at 06:20:28 UTC, Shachar Shemesh wrote: gdb can break on function name, but cannot single step from that point, as it claims it has no line information. Judging by the stack trace for 1) it looks like it's not breaking for the user provided main function (called by

Re: How do you use D?

2017-08-06 Thread Mike Parker via Digitalmars-d
On Sunday, 6 August 2017 at 06:49:45 UTC, Ecstatic Coder wrote: For instance, D is my favorite language, and I try to promote it as much as I can (reddit, stackoverflow, even on the go-nuts google groups). But professionally I still use C++ (#3 TIOBE), PHP (#7), Go (#16) and now Dart (#20).

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Soulsbane via Digitalmars-d-announce
On Sunday, 6 August 2017 at 06:53:28 UTC, Suliman wrote: Could anybody make Sublime plugin please? Same person made one https://github.com/Pure-D/sublime-d. Although it looks like it hasn't yet been updated to take advantage of the latest features.

Re: Jetbrains announce support for rust plugin, show them we want one too!

2017-08-06 Thread Dmitry via Digitalmars-d
On Saturday, 5 August 2017 at 16:22:18 UTC, Russel Winder wrote: As far as I can tell there are no good D development environments in the way there are C++, Go, Rust ones. I have no idea about Visual D since that involves Visual Studio which I think involves Windows and possibly money – though

Re: D on AArch64 CPU

2017-08-06 Thread Joakim via Digitalmars-d-learn
On Sunday, 6 August 2017 at 06:26:57 UTC, David J Kordsmeier wrote: Also, why I don't look at LDC further, I think RAM on the embedded devices is still pretty skimpy, Raspi3 only has 1GB ram. It's not great for compiling with the LLVM-based things and probably run OOM. Other devices I have

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Suliman via Digitalmars-d-announce
Could anybody make Sublime plugin please?

  1   2   >