Re: opOpAssign on object properties

2017-01-08 Thread collerblade via Digitalmars-d-learn
On Sunday, 8 January 2017 at 21:50:12 UTC, Ivan Kazmenko wrote: On Sunday, 8 January 2017 at 18:23:34 UTC, collerblade wrote: [...] Hmm, right. The setter is not called, and it's by the spec. Which says that "a op= b" is rewritten as "a.opOpAssign !(op) (b)". Here:

[Issue 17077] Unexpected optlink termination

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

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Walter Bright via Digitalmars-d
On 1/8/2017 8:24 PM, pineapple wrote: On this subject, I spent a good chunk of my day trying to compile my code using the -m32mscoff switch and was never able to get it to work. (My most recent obstacle is this error, occurring even for a very simple test program importing no dependencies, if

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Walter Bright via Digitalmars-d
On 1/8/2017 6:34 PM, Jerry wrote: There's more, just the bugs are so obscure the people filing the bugs don't know that the problem lies with Optlink. There's problems with shared libraries not being loaded and unloaded properly. Random crashes during runtime, more often crashes when a debugger

Re: Need some help understanding PyD

2017-01-08 Thread Saurabh Das via Digitalmars-d-learn
PS: Noticed something off. My python installation is 3.4.3: Python 3.4.3 (default, Sep 14 2016, 12:36:27) [GCC 4.8.4] on linux However when I run: context.py_stmts("import sys"); context.py_stmts("print(sys.version)"); I get: 3.4.0 (default, Apr 11 2014, 13:08:40) [GCC 4.8.2] Also,

Re: Dlang remote junior developer jobs

2017-01-08 Thread Benjiro via Digitalmars-d
On Sunday, 8 January 2017 at 22:34:33 UTC, eugene wrote: Hello, everyone, could you share, please, your knowledge, where can i search D lang remote junior developer jobs? Nowhere?

Need some help understanding PyD

2017-01-08 Thread Saurabh Das via Digitalmars-d-learn
I've been giving PyD a try. It's really nice and mostly everything works out of the box. I'm trying to use TensorFlow in D via Pytho, so I need to call Python functions in D. When I try to do: auto context = new InterpContext(); context.py_stmts("import tensorflow"); I get this

Re: Getch() Problem: C vs D

2017-01-08 Thread Era Scarecrow via Digitalmars-d-learn
On Sunday, 8 January 2017 at 21:19:15 UTC, LouisHK wrote: And works fine, but the D version below nothing happens when I hit ESCAPE: Is this a bug or there is another approach? Could this be because of maybe somehow it handles the console input? Kinda like how shift and different keys are

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread pineapple via Digitalmars-d
On Monday, 9 January 2017 at 02:34:31 UTC, Jerry wrote: before I switched away from optlink. What point is there to report these bugs though, Microsoft's linker works with fewer bugs and actually supports the format of the platform. So no need to convert .lib files with it. This is my point,

Re: Alexa Skill written in D

2017-01-08 Thread bachmeier via Digitalmars-d-announce
On Monday, 9 January 2017 at 01:28:22 UTC, Walter Bright wrote: On 1/8/2017 2:58 PM, extrawurst wrote: On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote: On 1/8/2017 1:15 PM, extrawurst wrote: On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote: On 1/7/2017 5:17 AM,

Re: Mixin in Inline Assembly

2017-01-08 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 9 January 2017 at 02:31:42 UTC, Chris M. wrote: asm { mov EAX, tmp; // I'd also like to know if I could just load *op1 directly into EAX mov ECX, op2[EBP]; mixin(ins ~ " EAX, CL;"); // Issue here mov tmp, EAX; } *op1 = tmp; } However,

Re: Mixin in Inline Assembly

2017-01-08 Thread Chris M. via Digitalmars-d-learn
On Monday, 9 January 2017 at 02:38:01 UTC, Stefan Koch wrote: On Monday, 9 January 2017 at 02:31:42 UTC, Chris M. wrote: [...] Yes make the whole inline asm a mixin. Awesome, got it working. Thanks to both replies.

Re: Alexa Skill written in D

2017-01-08 Thread Mike Parker via Digitalmars-d-announce
On Monday, 9 January 2017 at 01:46:18 UTC, extrawurst wrote: Unfortunately, it would be better off in the programming subreddit. Volunteers to post it there aswell ? I'll do it in about 10 hours or so.

Re: Mixin in Inline Assembly

2017-01-08 Thread Stefan Koch via Digitalmars-d-learn
On Monday, 9 January 2017 at 02:31:42 UTC, Chris M. wrote: Right now I'm working on a project where I'm implementing a VM in D. I'm on the rotate instructions, and realized I could *almost* abstract the ror and rol instructions with the following function private void rot(string ins)(int

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Jerry via Digitalmars-d
On Monday, 9 January 2017 at 01:26:48 UTC, Walter Bright wrote: On Sunday, 8 January 2017 at 19:15:49 UTC, Jerry wrote: A bit more maddening that D is still trying to support optlink, a linker that hasn't seen a commit in 2 years when it is hardly bug free. Optlink has had many bugs fixed

Mixin in Inline Assembly

2017-01-08 Thread Chris M. via Digitalmars-d-learn
Right now I'm working on a project where I'm implementing a VM in D. I'm on the rotate instructions, and realized I could *almost* abstract the ror and rol instructions with the following function private void rot(string ins)(int *op1, int op2) { int tmp = *op1; asm { mov

[Issue 16513] Speed up TemplateInstance.findExistingInstance hash

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16513 Martin Nowak changed: What|Removed |Added Keywords||pull --- Comment #5 from

[Issue 16513] Speed up TemplateInstance.findExistingInstance hash

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16513 Martin Nowak changed: What|Removed |Added Summary|Speed up|Speed up

Re: Alexa Skill written in D

2017-01-08 Thread extrawurst via Digitalmars-d-announce
On Monday, 9 January 2017 at 01:28:22 UTC, Walter Bright wrote: On 1/8/2017 2:58 PM, extrawurst wrote: On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote: On 1/8/2017 1:15 PM, extrawurst wrote: On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote: On 1/7/2017 5:17 AM,

Re: Alexa Skill written in D

2017-01-08 Thread Walter Bright via Digitalmars-d-announce
On 1/8/2017 2:58 PM, extrawurst wrote: On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote: On 1/8/2017 1:15 PM, extrawurst wrote: On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote: On 1/7/2017 5:17 AM, extrawurst wrote: the last 2 weeks I jumped on a new toy project:

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Walter Bright via Digitalmars-d
On 1/8/2017 12:58 PM, pineapple wrote: On Sunday, 8 January 2017 at 18:49:50 UTC, Walter Bright wrote: Please post bug reports to bugzilla. Here you go: https://issues.dlang.org/show_bug.cgi?id=17077 Thank you.

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Walter Bright via Digitalmars-d
On Sunday, 8 January 2017 at 19:15:49 UTC, Jerry wrote: A bit more maddening that D is still trying to support optlink, a linker that hasn't seen a commit in 2 years when it is hardly bug free. Optlink has had many bugs fixed in it. There are currently 7 open issues with it on bugzilla:

[Issue 16855] Global void[0] causes OPTLINK Error when passed as ref Parameter

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

Re: Reminder - DConf 2017 is May 4-6 !!

2017-01-08 Thread Adam Wilson via Digitalmars-d-announce
On 1/6/17 4:46 PM, Walter Bright wrote: It's 2017 already - sharpen your pencils and start on a proposal for a presentation! Time is moving fast! Just sent mine in! -- Adam Wilson IRC: LightBender import quiet.dlang.dev;

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Walter Bright via Digitalmars-d
On 1/8/2017 10:56 AM, jkpl wrote: On Sunday, 8 January 2017 at 18:49:50 UTC, Walter Bright wrote: P.S. Isn't it maddening that Windows doesn't allow copying the data from a message window? Not really, because you can, Ctrl+C... That frequently does not work. For example, take the "Help"

Re: It's alive! D building D building D, all on Android

2017-01-08 Thread Ignacious via Digitalmars-d-announce
Just reporting here that I was able to get a hello world working using windows and UoW. Some issues I had: 1. Had issues with outdated libraries. (ncurses, gcc, etc) 2. UoW Aniversary is based on Ubuntu 14, I was able to upgrade to 16.04 following online sources. Lots of snags but eventually

Re: Vision document for H1 2017

2017-01-08 Thread Jonathan M Davis via Digitalmars-d-announce
On Sunday, January 08, 2017 18:06:53 Brian via Digitalmars-d-announce wrote: > On Wednesday, 4 January 2017 at 19:22:33 UTC, Andrei Alexandrescu > > wrote: > > We release a brief Vision document summarizing the main goals > > we plan to pursue in the coming six months. This half we are > >

Re: Android Status

2017-01-08 Thread Ignacious via Digitalmars-d-learn
On Sunday, 8 January 2017 at 22:19:31 UTC, Joakim wrote: On Sunday, 8 January 2017 at 21:52:01 UTC, Ignacious wrote: Not sure what is going on, of course ;) So much BS just to do something that is suppose to be simple ;) test.d void main() { } here is test.o

[Issue 16955] std.process.spawnProcessImpl can crash due to alloca

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16955 deadalnix changed: What|Removed |Added CC||deadal...@gmail.com ---

[Issue 17078] std.process.execute fails on travis

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17078 deadalnix changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17078] std.process.execute fails on travis

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17078 --- Comment #1 from deadalnix --- As far my investigation goes, it looks like the spawned process dies with signal 11 before it even reaches main in the child. --

Re: CTFE Status

2017-01-08 Thread Stefan Koch via Digitalmars-d
On Thursday, 5 January 2017 at 06:04:00 UTC, Stefan Koch wrote: On Monday, 2 January 2017 at 18:40:44 UTC, Stefan Koch wrote: So guys. basic function-calls are supported. Hell YEAH! Disabled for now. Since it pushes some buffers/caches to their limit. A more flexible solution is needed.

[Issue 17078] New: std.process.execute fails on travis

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17078 Issue ID: 17078 Summary: std.process.execute fails on travis Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: enhancement

Re: Alexa Skill written in D

2017-01-08 Thread extrawurst via Digitalmars-d-announce
On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote: On 1/8/2017 1:15 PM, extrawurst wrote: On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote: On 1/7/2017 5:17 AM, extrawurst wrote: the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D. Post

Re: Alexa Skill written in D

2017-01-08 Thread Walter Bright via Digitalmars-d-announce
On 1/8/2017 1:15 PM, extrawurst wrote: On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote: On 1/7/2017 5:17 AM, extrawurst wrote: the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D. Post this to reddit! Isn't it better someone else does that? Yes. I

Re: symlinks in repo (ddmd->src) breaks Dropbox (or google drive)

2017-01-08 Thread Timothee Cour via Digitalmars-d
actually here's the article explaning the symlink in dropbox disaster: http://www.paulingraham.com/dropbox-and-symlinks.html On Sun, Jan 8, 2017 at 2:35 PM, Timothee Cour wrote: > https://github.com/dlang/dmd/commit/801742d93ecb6c929409a19c024dd8 > 7ca25330a3

symlinks in repo (ddmd->src) breaks Dropbox (or google drive)

2017-01-08 Thread Timothee Cour via Digitalmars-d
https://github.com/dlang/dmd/commit/801742d93ecb6c929409a19c024dd87ca25330a3 introduced a symlink dmd repo; if a user clones it inside a Dropbox (or google drive) and syncs his dropbox to another machine, it will create havoc: * google drive doesn't support symlinks at all * dropbox supports it

Dlang remote junior developer jobs

2017-01-08 Thread eugene via Digitalmars-d
Hello, everyone, could you share, please, your knowledge, where can i search D lang remote junior developer jobs?

[Issue 14894] mangling of mixins and lambdas is not unique and depends on compilation flags

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14894 Martin Nowak changed: What|Removed |Added Summary|mangling of mixins and |mangling of mixins and

Re: Android Status

2017-01-08 Thread Joakim via Digitalmars-d-learn
On Sunday, 8 January 2017 at 21:52:01 UTC, Ignacious wrote: Not sure what is going on, of course ;) So much BS just to do something that is suppose to be simple ;) test.d void main() { } here is test.o http://pastebin.com/NRrKgKtb Any ideas? Oh, that's easy: install the NDK too, as

Re: Linker-hacking out the D runtime

2017-01-08 Thread Iain Buclaw via Digitalmars-d-announce
On 20 December 2016 at 12:24, Mike via Digitalmars-d-announce wrote: > On Monday, 19 December 2016 at 19:53:06 UTC, Iain Buclaw wrote: > >> The compiler doesn't actually generate any code that peeks inside >> TypeInfo. It only generates the reference to the

Re: Primality test function doesn't work on large numbers?

2017-01-08 Thread Timon Gehr via Digitalmars-d-learn
On 08.01.2017 08:52, Elronnd wrote: I'm working on writing an RSA implementation, but I've run into a roadblock generating primes. With a more than 9 bits, my program either hangs for a long time (utilizing %100 CPU!) or returns a composite number. With 9 or fewer bits, I get primes, but I

[Issue 14894] mangling of mixins and lambdas can change w/ -unittest or other versions

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14894 Martin Nowak changed: What|Removed |Added CC||meapineap...@gmail.com ---

[Issue 16994] Apparently faulty symbol resolution in some cases

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16994 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 16994] Apparently faulty symbol resolution in some cases

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16994 --- Comment #3 from Martin Nowak --- Seems to be a duplicate of issue 14894, only in this case the 2 compilations produce different functions with the same mangling instead of causing a linker error. It just happens that in both

[Issue 16680] dmd doesn't use druntime optimized versions of subtraction array operations

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16680 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/8eb8a67e6e4d47244db99e35ad02f42e1de7d253 fix issue 16680: avoid inconsistent usage of Sub and Min

Re: Android Status

2017-01-08 Thread Ignacious via Digitalmars-d-learn
On Sunday, 8 January 2017 at 20:34:21 UTC, Joakim wrote: On Sunday, 8 January 2017 at 19:58:06 UTC, Ignacious wrote: I suppose it will be easier to install a real ubuntu distro rather than relying on windows? All these issues seem to be related to outdated versions? Distributor ID: Ubuntu

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Jerry via Digitalmars-d
On Sunday, 8 January 2017 at 20:36:38 UTC, jkpl wrote: On Sunday, 8 January 2017 at 19:15:49 UTC, Jerry wrote: On Sunday, 8 January 2017 at 18:49:50 UTC, Walter Bright wrote: P.S. Isn't it maddening that Windows doesn't allow copying the data from a message window? A bit more maddening that

Re: opOpAssign on object properties

2017-01-08 Thread Ivan Kazmenko via Digitalmars-d-learn
On Sunday, 8 January 2017 at 18:23:34 UTC, collerblade wrote: On Sunday, 8 January 2017 at 10:03:50 UTC, Ivan Kazmenko wrote: On Sunday, 8 January 2017 at 09:22:12 UTC, collerblade wrote: [...] 1. If you want the member variable to change, naturally, you should provide a getter property

Re: D in MPLAB FOR PIC32

2017-01-08 Thread Iain Buclaw via Digitalmars-d
On 7 January 2017 at 01:39, Mike via Digitalmars-d wrote: > On Friday, 6 January 2017 at 15:47:21 UTC, Igor Myronov wrote: >> >> Is possible to program in D micro*-controllers like the PIC32 ? >> Thanks to all. > > > D has 3 compilers DMD, LDC, and GCC, > > DMD only

Re: Lets talk about fibers

2017-01-08 Thread Russel Winder via Digitalmars-d
On Sun, 2017-01-08 at 09:18 +, Suliman via Digitalmars-d wrote: > > Simply picking a worker thread + worker fiber when task is  > > assigned and sticking to it until finished should work good  > > enough. It is also important to note though that "fiber" is not  > > the same as "task". Former

Re: Alexa Skill written in D

2017-01-08 Thread extrawurst via Digitalmars-d-announce
On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote: On 1/7/2017 5:17 AM, extrawurst wrote: the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D. Post this to reddit! Isn't it better someone else does that? ~Stephan

Getch() Problem: C vs D

2017-01-08 Thread LouisHK via Digitalmars-d-learn
Hello, I minimize the problem to identify the problem: Here the C version: #include int main(){ int c; while(c != 27){ printf("%d\n", (c = getch())); } return 0; } And works fine, but the D version below nothing happens when I hit ESCAPE: import std.stdio; extern (C) int

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread pineapple via Digitalmars-d
On Sunday, 8 January 2017 at 18:49:50 UTC, Walter Bright wrote: Please post bug reports to bugzilla. Here you go: https://issues.dlang.org/show_bug.cgi?id=17077

[Issue 17077] New: Unexpected optlink termination

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17077 Issue ID: 17077 Summary: Unexpected optlink termination Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: major Priority: P1

[Issue 16994] Apparently faulty symbol resolution in some cases

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16994 --- Comment #2 from Martin Nowak --- Only happens with rdmd's double compilation mode, https://github.com/dlang/tools/pull/194, which firsts builds object for the root module, then builds another (single) object for all dependencies.

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread jkpl via Digitalmars-d
On Sunday, 8 January 2017 at 19:15:49 UTC, Jerry wrote: On Sunday, 8 January 2017 at 18:49:50 UTC, Walter Bright wrote: P.S. Isn't it maddening that Windows doesn't allow copying the data from a message window? A bit more maddening that D is still trying to support optlink, a linker that

Re: Annotation programming in my design code ..

2017-01-08 Thread Eugene Wissner via Digitalmars-d
On Sunday, 8 January 2017 at 20:11:23 UTC, Brian wrote: On Friday, 6 January 2017 at 17:48:23 UTC, Eugene Wissner wrote: On Friday, 6 January 2017 at 17:44:13 UTC, Brian wrote: I would like to design features, how should I do? coding: class User { @GenerateProperty int id;

Re: Android Status

2017-01-08 Thread Joakim via Digitalmars-d-learn
On Sunday, 8 January 2017 at 19:58:06 UTC, Ignacious wrote: I suppose it will be easier to install a real ubuntu distro rather than relying on windows? All these issues seem to be related to outdated versions? Distributor ID: Ubuntu Description:Ubuntu 14.04.5 LTS Release:14.04

Re: Annotation programming in my design code ..

2017-01-08 Thread Brian via Digitalmars-d
On Friday, 6 January 2017 at 17:48:23 UTC, Eugene Wissner wrote: On Friday, 6 January 2017 at 17:44:13 UTC, Brian wrote: I would like to design features, how should I do? coding: class User { @GenerateProperty int id; @GenerateProperty string name; }

[Issue 17076] New: [scope] compiling identity function template with -dip1000 causes error

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17076 Issue ID: 17076 Summary: [scope] compiling identity function template with -dip1000 causes error Product: D Version: D2 Hardware: x86_64 OS: Windows

Re: Android Status

2017-01-08 Thread Ignacious via Digitalmars-d-learn
Yeah, not a good idea to build from source yourself. Try the advice here, ie see if you can install a package with that library or just symlink to the older library if not: http://askubuntu.com/questions/771047/erlang-error-while-loading-shared-libraries-libncursesw-so-6 Well, the only

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Jerry via Digitalmars-d
On Sunday, 8 January 2017 at 18:49:50 UTC, Walter Bright wrote: P.S. Isn't it maddening that Windows doesn't allow copying the data from a message window? A bit more maddening that D is still trying to support optlink, a linker that hasn't seen a commit in 2 years when it is hardly bug free.

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread jkpl via Digitalmars-d
On Sunday, 8 January 2017 at 18:49:50 UTC, Walter Bright wrote: P.S. Isn't it maddening that Windows doesn't allow copying the data from a message window? Not really, because you can, Ctrl+C...

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Stefan Koch via Digitalmars-d
On Sunday, 8 January 2017 at 18:49:50 UTC, Walter Bright wrote: On 1/8/2017 6:15 AM, pineapple wrote: I'm working on my dumb library and I have run into a case where when I add this line to a module, I get an optlink error attempting to compile it: unittest{} The module compiles fine

[Issue 17075] New: ctRegex BacktrackingMatcher.prevStack: free(): invalid pointer

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17075 Issue ID: 17075 Summary: ctRegex BacktrackingMatcher.prevStack: free(): invalid pointer Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: Alexa Skill written in D

2017-01-08 Thread Walter Bright via Digitalmars-d-announce
On 1/7/2017 5:17 AM, extrawurst wrote: the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D. Post this to reddit!

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Walter Bright via Digitalmars-d
On 1/8/2017 6:15 AM, pineapple wrote: I'm working on my dumb library and I have run into a case where when I add this line to a module, I get an optlink error attempting to compile it: unittest{} The module compiles fine without it. So do the modules which depend on it. But with that

Re: Alexa Skill written in D

2017-01-08 Thread extrawurst via Digitalmars-d-announce
On Sunday, 8 January 2017 at 16:22:09 UTC, docandrew wrote: On Saturday, 7 January 2017 at 13:17:35 UTC, extrawurst wrote: Hi guys, the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D. It is a skill that allows me to voice control my TV receiver with commands like:

[Issue 17074] extern(C++, keyword) crashes compiler

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17074 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org

[Issue 17074] New: extern(C++, keyword) crashes compiler

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17074 Issue ID: 17074 Summary: extern(C++, keyword) crashes compiler Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression

Re: Alexa Skill written in D

2017-01-08 Thread Andre Pany via Digitalmars-d-announce
On Saturday, 7 January 2017 at 13:17:35 UTC, extrawurst wrote: Hi guys, the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D. It is a skill that allows me to voice control my TV receiver with commands like: Alexa, ask Telly to go to standby Alexa, ask Telly what is

Re: opOpAssign on object properties

2017-01-08 Thread collerblade via Digitalmars-d-learn
On Sunday, 8 January 2017 at 10:03:50 UTC, Ivan Kazmenko wrote: On Sunday, 8 January 2017 at 09:22:12 UTC, collerblade wrote: [...] 1. If you want the member variable to change, naturally, you should provide a getter property which returns a reference to that variable: [...] yes i tried

[Issue 16994] Apparently faulty symbol resolution in some cases

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16994 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu

Re: Vision document for H1 2017

2017-01-08 Thread Brian via Digitalmars-d-announce
On Wednesday, 4 January 2017 at 19:22:33 UTC, Andrei Alexandrescu wrote: We release a brief Vision document summarizing the main goals we plan to pursue in the coming six months. This half we are focusing on three things: safety, lifetime management, and static introspection.

[Issue 16680] dmd doesn't use druntime optimized versions of subtraction array operations

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16680 Rainer Schuetze changed: What|Removed |Added Keywords||pull

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Stefan Koch via Digitalmars-d
On Sunday, 8 January 2017 at 17:14:13 UTC, pineapple wrote: On Sunday, 8 January 2017 at 14:42:57 UTC, pineapple wrote: After deciding to let my inability to add some unit tests to that module I started working on some other code in the same project. At this point it seems completely arbitrary

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread Stefan Koch via Digitalmars-d
On Sunday, 8 January 2017 at 17:14:13 UTC, pineapple wrote: On Sunday, 8 January 2017 at 14:42:57 UTC, pineapple wrote: After deciding to let my inability to add some unit tests to that module I started working on some other code in the same project. At this point it seems completely arbitrary

Re: Vision document for H1 2017

2017-01-08 Thread bitwise via Digitalmars-d-announce
On Saturday, 7 January 2017 at 19:55:30 UTC, Martin Nowak wrote: On 01/05/2017 11:00 AM, Basile B. wrote: I don't known what did you decide in intern but when the discussion between users was hot (just after version 2.071.1 I think) I've proposed that:

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread pineapple via Digitalmars-d
On Sunday, 8 January 2017 at 14:42:57 UTC, pineapple wrote: After deciding to let my inability to add some unit tests to that module I started working on some other code in the same project. At this point it seems completely arbitrary which lines produce optlink errors. Since the `unittest{}`

Re: Lets talk about fibers

2017-01-08 Thread Dicebot via Digitalmars-d
On Sunday, 8 January 2017 at 09:18:19 UTC, Suliman wrote: Simply picking a worker thread + worker fiber when task is assigned and sticking to it until finished should work good enough. It is also important to note though that "fiber" is not the same as "task". Former is execution context

Re: Alexa Skill written in D

2017-01-08 Thread docandrew via Digitalmars-d-announce
On Saturday, 7 January 2017 at 13:17:35 UTC, extrawurst wrote: Hi guys, the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D. It is a skill that allows me to voice control my TV receiver with commands like: Alexa, ask Telly to go to standby Alexa, ask Telly what is

[Issue 17059] [REG 2.072.2] incorrect circular reference with `is(Klass : Interface)`

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17059 Martin Nowak changed: What|Removed |Added Summary|[REG 2.072.2] Possible case |[REG 2.072.2] incorrect

Re: dmd download spike

2017-01-08 Thread Mengu via Digitalmars-d
On Saturday, 7 January 2017 at 13:52:12 UTC, Benjiro wrote: On Saturday, 7 January 2017 at 13:22:02 UTC, rikki cattermole wrote: Btw, I based this mostly off the number of newbies coming on to IRC. There has been quite a large number :) At least compared to the rest of the yar. Interesting.

Re: Seemingly patternless optlink premature termination

2017-01-08 Thread pineapple via Digitalmars-d
On Sunday, 8 January 2017 at 14:15:26 UTC, pineapple wrote: I'm working on my dumb library and I have run into a case where when I add this line to a module, I get an optlink error attempting to compile it: unittest{} After deciding to let my inability to add some unit tests to that

Seemingly patternless optlink premature termination

2017-01-08 Thread pineapple via Digitalmars-d
I'm working on my dumb library and I have run into a case where when I add this line to a module, I get an optlink error attempting to compile it: unittest{} The module compiles fine without it. So do the modules which depend on it. But with that line? optlink errors everywhere. A

Re: CTFE difference between dmd and ldc2

2017-01-08 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On Saturday, 7 January 2017 at 22:55:55 UTC, Joseph Rushton Wakeling wrote: I should probably also create a formal issue for this. Any thoughts on how best to break it down into a minimal example? It does not appear easy to do so at first glance :-\ Turned out to be easier than I

Re: [Bench!][Mir] +54%..+185% performance boost for Mersenne Twister.

2017-01-08 Thread Joseph Rushton Wakeling via Digitalmars-d
On Sunday, 8 January 2017 at 13:16:29 UTC, Joseph Rushton Wakeling wrote: I'm asking for eyes on the problem because reducing it to a minimal example appears non-trivial, while the bug itself looks serious beyond its effect on this PR. I underestimated myself :-P Minimal example is as

Re: Lets talk about fibers

2017-01-08 Thread Chris Wright via Digitalmars-d
On Sun, 08 Jan 2017 09:18:19 +, Suliman wrote: >> Simply picking a worker thread + worker fiber when task is assigned and >> sticking to it until finished should work good enough. It is also >> important to note though that "fiber" is not the same as "task". Former >> is execution context

Re: [Bench!][Mir] +54%..+185% performance boost for Mersenne Twister.

2017-01-08 Thread Joseph Rushton Wakeling via Digitalmars-d
On Sunday, 8 January 2017 at 02:51:51 UTC, Andrei Alexandrescu wrote: This indicates a compiler bug in dmd itself, so the best outcome for this library work would be a reduced compiler bug + a simple library workaround. -- Andrei Yes, that much is clear -- sorry if I wasn't clear enough

[Issue 12116] dmd -op -od broken

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12116 --- Comment #7 from Timothee Cour --- For windows: > Please do not forget about Windows - how would you propose handling `dmd -c -od=mydir -op C:\bla.d D:\bla.d` then? ;) => creates: mydir/C/bla.o mydir/D/bla.o but

[Issue 17027] Add support for tzcnt and lzcnt in x86(64) iasm

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17027 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 17072] New: [REG 2.073.0-b1] missing symbols with -inline

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17072 Issue ID: 17072 Summary: [REG 2.073.0-b1] missing symbols with -inline Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: regression

[Issue 12116] dmd -op -od broken

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12116 --- Comment #6 from ki...@gmx.net --- (In reply to Timothee Cour from comment #5) > * dmd -od=mydir -op /absolute_path/fun.d should write to: > mydir/absolute_path/fun.o (eg: -od=/tmp/ => /tmp/absolute_path/fun.o) > > this behavior is useful when

Re: Reminder - DConf 2017 is May 4-6 !!

2017-01-08 Thread Nordlöw via Digitalmars-d-announce
On Saturday, 7 January 2017 at 01:06:49 UTC, Stefan Koch wrote: new CTFE engine or the future my plan for O(N log N) templates! What do you mean? A performance improvement? From quadratic?

Re: Lets talk about fibers

2017-01-08 Thread Suliman via Digitalmars-d
"The type of concurrency used when logical threads are created is determined by the Scheduler selected at initialization time. The default behavior is currently to create a new kernel thread per call to spawn, but other schedulers are available that multiplex fibers across the main thread or

Re: opOpAssign on object properties

2017-01-08 Thread Ivan Kazmenko via Digitalmars-d-learn
On Sunday, 8 January 2017 at 09:22:12 UTC, collerblade wrote: How can i do opOpAssign with properties?? 1. If you want the member variable to change, naturally, you should provide a getter property which returns a reference to that variable: ref Point location() @property {

[Issue 17038] support for std.uni store / load trie entry table

2017-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17038 --- Comment #1 from Remi Thebault --- In addition, it should be supported to store the table for both 32 bits and 64 bits. Currently the Trie.store method outputs D code for the running architecture only. 64 bits code

Re: Primality test function doesn't work on large numbers?

2017-01-08 Thread Eugene Wissner via Digitalmars-d-learn
On Sunday, 8 January 2017 at 07:52:33 UTC, Elronnd wrote: I'm working on writing an RSA implementation, but I've run into a roadblock generating primes. With a more than 9 bits, my program either hangs for a long time (utilizing %100 CPU!) or returns a composite number. With 9 or fewer bits,

opOpAssign on object properties

2017-01-08 Thread collerblade via Digitalmars-d-learn
hello guys, i would like to have properties with /= *= += -= operators. My code: struct Point { float x=0,y=0; this(float _x, float _y) { x=_x; y=_y; } //opassign for + //opopassign for += void opOpAssign(string op=="+")(in Point p) { x+=p.x; y+=p.y; } } class

  1   2   >