Re: How to create a UTF16 text file on Windows?

2016-11-17 Thread Kagamin via Digitalmars-d-learn
On Wednesday, 16 November 2016 at 22:43:55 UTC, lafoldes wrote: Hi, I'd like to create a UTF16 text file on Windows 7, using std.stdio.File and std.stdio.File.write... functions (so no binary write, no Win32 functions). I was experimenting with variations of this code…: import std.stdio;

Re: Getting usages of template

2016-11-17 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 17 November 2016 at 09:40:45 UTC, Carlin St Pierre wrote: Is it possible to get the list of usages of a template during compile time? For example: class Foo { void bar(T)(T t) { } } void main() { Foo foo = new Foo; foo.bar(1); // int

Re: Best Lua integration?

2016-11-17 Thread Chris via Digitalmars-d
On Thursday, 17 November 2016 at 06:33:06 UTC, Kim wrote: Yes I see the higher level as a weakness. It may save you time to integrate in D, but tries to hide complexity. Hiding complexity can hurt in other ways. I think I will go for the more C-like binding of DerelictLua; I am fine for

Re: D Lang installation on Windows, dependency on Visual Studio?

2016-11-17 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 16 November 2016 at 18:03:31 UTC, Jacob Carlborg wrote: Perhaps we should take the missing parts from the ELLCC tool chain [1]. It's a cross-compiler tool chain based on LLVM. It contains a compiler, linker, C/C++ standard library, other binutils and is completely self contained.

tour.dlang

2016-11-17 Thread Chris via Digitalmars-d
Sorry, no time for a PR right now. Just found this funny mistake: "In D, string, wstring, and dstring are UTF-8, UTF-16, and UTF-32 encoded strings respectfully. Their character types are char, wchar, and dchar." s/respectfully/respectively/ https://tour.dlang.org/tour/en/gems/unicode

Getting usages of template

2016-11-17 Thread Carlin St Pierre via Digitalmars-d-learn
Is it possible to get the list of usages of a template during compile time? For example: class Foo { void bar(T)(T t) { } } void main() { Foo foo = new Foo; foo.bar(1); // int foo.bar(2f); // float foo.bar("3"); // string } //

Re: D Lang installation on Windows, dependency on Visual Studio?

2016-11-17 Thread Kagamin via Digitalmars-d
On Wednesday, 16 November 2016 at 17:19:28 UTC, Patrick Schluter wrote: Another issue I had with the Microsoft Package besides the size it wants on the system drive is the difficulty to even get it to download behind a corporate proxy. Doesn't it pick whatever is configured in the system

Re: CTFE Status

2016-11-17 Thread Stefan Koch via Digitalmars-d
On Thursday, 17 November 2016 at 08:39:57 UTC, Andrea Fontana wrote: I follow this thread every day. I hope you'll write an article on dlang blog when the work will be completed :) Mike Parker is going to write an short article about it based on information I gave him via mail. I am

Re: CTFE Status

2016-11-17 Thread Andrea Fontana via Digitalmars-d
On Thursday, 17 November 2016 at 05:35:33 UTC, Stefan Koch wrote: On Wednesday, 16 November 2016 at 14:44:06 UTC, Stefan Koch wrote: And Again a bit of bad news. Due to problems in the lowering of function arguments the implementation of strcat is delayed again. The bug does not affect

[Issue 16661] std/format.d(1070): Incorrect format specifier: .2f for wstring and dstring

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16661 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 16661] std/format.d(1070): Incorrect format specifier: .2f for wstring and dstring

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16661 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/ce85fd60a9fe3819907857b487f65bd977ca1f26 fix Issue 16661 - failing dstring/wstring format string

Re: D Lang installation on Windows, dependency on Visual Studio?

2016-11-17 Thread kink via Digitalmars-d
On Wednesday, 16 November 2016 at 17:34:58 UTC, Mike Parker wrote: Why is it a wart? The MS toolchain is the system development environment for Windows. On Mac OS X, it's Xcode, which is a 1+ GB download before you can do any development with clang or dmd or anything that depends on it. On

Formal review of DIP1001

2016-11-17 Thread Dicebot via Digitalmars-d-announce
Disposition: REJECT. A proposal for a similar or identical feature would need to be include qualitatively new motivation/evidence of usefulness. Please follow the link for the full review text / rationale: https://github.com/dlang/DIPs/blob/master/DIPs/DIP1001.md#review signature.asc

Re: send doesn't work

2016-11-17 Thread unDEFER via Digitalmars-d
On Wednesday, 16 November 2016 at 20:20:07 UTC, Anonymouse wrote: receiveTimeout(0.seconds, /* ... */ ); Thanks!

Formal review of DIP1002

2016-11-17 Thread Dicebot via Digitalmars-d-announce
Disposition: REJECT. A proposal for a similar or identical feature would need to be include qualitatively new motivation/evidence of usefulness. Please follow the link for the full review text / rationale: https://github.com/dlang/DIPs/blob/master/DIPs/DIP1002.md#review signature.asc

[Issue 16698] std.regex.matchFirst corrupts stack

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16698 Marc Schütz changed: What|Removed |Added CC||schue...@gmx.net ---

Re: SQLite-D goes beta!

2016-11-17 Thread Stefan Koch via Digitalmars-d-announce
I just updated ~master with a little tool that will print a dot-file with describing the internal Tree-structure of database. All you need to do is to import layout2dot. And call TreeLayoutToDot on your database. it will give you back a string which you can then give to graph-viz. If dot

Re: Assistance with DUB

2016-11-17 Thread Stefan Koch via Digitalmars-d-learn
On Tuesday, 1 November 2016 at 22:01:23 UTC, Alfred Newman wrote: Greetings, I need some help with dub libraries. [...] test.d assumes that sqlite.d is given on the same compile command-line. This is the case when sqlite-d is build as a stand-alone app. If you want to integrate it I advise

Re: Boston D Language Meetup in Back Bay

2016-11-17 Thread qznc via Digitalmars-d-announce
On Thursday, 17 November 2016 at 02:55:46 UTC, Meta wrote: Thanks for recording the presentation, your IOPipe library is pretty interesting. +1 Especially for any parser, this looks like a great solution! The output (valves) looks meh, though. I hope, you discover something more elegant.

Re: Formal review of DIP1001

2016-11-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 11/17/2016 06:35 AM, Dicebot wrote: Disposition: REJECT. A proposal for a similar or identical feature would need to be include qualitatively new motivation/evidence of usefulness. Please follow the link for the full review text / rationale:

Re: std.regex memory corruption bug

2016-11-17 Thread Dmitry Olshansky via Digitalmars-d
On 11/17/16 2:22 AM, H. S. Teoh via Digitalmars-d wrote: I'm running into a std.regex memory corruption bug in git HEAD: https://issues.dlang.org/show_bug.cgi?id=16698 and I can't seem to find a way to work around the problem besides recompiling with an older compiler. Any ideas??

Re: Boston D Language Meetup in Back Bay

2016-11-17 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/17/16 7:32 AM, qznc wrote: On Thursday, 17 November 2016 at 02:55:46 UTC, Meta wrote: Thanks for recording the presentation, your IOPipe library is pretty interesting. +1 Especially for any parser, this looks like a great solution! Thanks! I agree, I hope to prove that with some

Any AST experts n da house?

2016-11-17 Thread Andrei Alexandrescu via Digitalmars-d
Lucia is working on https://issues.dlang.org/show_bug.cgi?id=16683 which shows good promise in cleaning the cobwebs around Typeinfo. She looked into matters and figured she needs to have TypeidExp.semantic() return the lowered expression. In the code below getFuncTemplateDecl(tidSymbol); //

[Issue 16683] Lower typeid expression to .typeidImpl!(T)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16683 --- Comment #2 from Andrei Alexandrescu --- See also http://forum.dlang.org/post/o0kdnp$2i2t$1...@digitalmars.com --

[Issue 16683] Lower typeid expression to .typeidImpl!(T)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16683 Andrei Alexandrescu changed: What|Removed |Added CC||and...@erdani.com

Re: Formal review of DIP1001

2016-11-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 11/17/2016 06:35 AM, Dicebot wrote: Disposition: REJECT. A proposal for a similar or identical feature would need to be include qualitatively new motivation/evidence of usefulness. Please follow the link for the full review text / rationale:

Re: Formal review of DIP1002

2016-11-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 11/17/2016 06:37 AM, Dicebot wrote: Disposition: REJECT. A proposal for a similar or identical feature would need to be include qualitatively new motivation/evidence of usefulness. Please follow the link for the full review text / rationale:

Re: Formal review of DIP1002

2016-11-17 Thread Kagamin via Digitalmars-d-announce
On Thursday, 17 November 2016 at 11:37:09 UTC, Dicebot wrote: https://github.com/dlang/DIPs/blob/master/DIPs/DIP1002.md#review We do exception tests like this: http://dpaste.com/0EAZQE4

[Issue 16102] [REG2.070] struct dtor replace value on stack

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16102 anonymous4 changed: What|Removed |Added See Also|

Re: Boston D Language Meetup in Back Bay

2016-11-17 Thread John Colvin via Digitalmars-d-announce
On Thursday, 17 November 2016 at 13:59:25 UTC, Steven Schveighoffer wrote: nullStream!char .bufferedInput .pushTo( arrayCastPipe!ubyte .outputFile("output.txt") ); But then the parameters to the "pushTo" hypothetical function don't know what the source type is before

[Issue 16699] [REG 2.070] stack corruption with scope(exit)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16699 anonymous4 changed: What|Removed |Added See Also|

Re: Formal review of DIP1002

2016-11-17 Thread John Colvin via Digitalmars-d-announce
On Thursday, 17 November 2016 at 11:37:09 UTC, Dicebot wrote: Disposition: REJECT. A proposal for a similar or identical feature would need to be include qualitatively new motivation/evidence of usefulness. Please follow the link for the full review text / rationale:

Re: Any AST experts n da house?

2016-11-17 Thread Stefan Koch via Digitalmars-d
On Thursday, 17 November 2016 at 14:10:01 UTC, Andrei Alexandrescu wrote: Lucia is working on https://issues.dlang.org/show_bug.cgi?id=16683 which shows good promise in cleaning the cobwebs around Typeinfo. She looked into matters and figured she needs to have TypeidExp.semantic() return the

[Issue 16699] New: [REG 2.070] stack corruption with scope(exit)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16699 Issue ID: 16699 Summary: [REG 2.070] stack corruption with scope(exit) Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: wrong-code

[Issue 16698] std.regex.matchFirst corrupts stack

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16698 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #2 from

DIP document maintenance

2016-11-17 Thread Dicebot via Digitalmars-d-announce
On 11/17/2016 03:20 PM, Andrei Alexandrescu wrote: > On 11/17/2016 06:37 AM, Dicebot wrote: >> Disposition: REJECT. A proposal for a similar or identical feature would >> need to be include qualitatively new motivation/evidence of usefulness. >> >> Please follow the link for the full review text /

[Issue 16700] New: New debug experience: enums are integers

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16700 Issue ID: 16700 Summary: New debug experience: enums are integers Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: enhancement

[Issue 16102] [REG2.070] struct dtor replace value on stack

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16102 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --

[Issue 16699] [REG 2.070] stack corruption with scope(exit)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16699 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --

Re: DIP document maintenance

2016-11-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 11/17/2016 09:16 AM, Dicebot wrote: 2) It is a regular update. In that case revision number is simply git history. For example DIP1002 is currently at revision 7 (git log --pretty=oneline DIPs/DIP1002.md | wc -l). Same goes for update of reviews - everything is tracked in git history. At any

[Issue 16699] [REG 2.070] stack corruption with scope(exit)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16699 Marc Schütz changed: What|Removed |Added CC||schue...@gmx.net ---

Re: Why is three safety levels need in D?

2016-11-17 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:27:01 UTC, Stefan Koch wrote: It allows encapsulating unsafe operations in safely-callable wrappers. So is this a limitation in Rust? If so, could you give a more concrete D code example that cannot be implemented with only two safety levels?

Re: Why some function are class-less?

2016-11-17 Thread Suliman via Digitalmars-d-learn
On Thursday, 17 November 2016 at 16:46:37 UTC, Steven Schveighoffer wrote: On 11/17/16 11:28 AM, Suliman wrote: There is some functions that can be called without creation of class. For example: http://vibed.org/api/vibe.core.log/ As I understand I can create write log in two way. First

Re: Boston D Language Meetup in Back Bay

2016-11-17 Thread John Colvin via Digitalmars-d-announce
On Thursday, 17 November 2016 at 16:28:08 UTC, Steven Schveighoffer wrote: On 11/17/16 10:38 AM, John Colvin wrote: On Thursday, 17 November 2016 at 13:59:25 UTC, Steven Schveighoffer wrote: [...] Can't you use a template lambda alias argument to pushTo instead, so then you can instantiate

Re: Why some function are class-less?

2016-11-17 Thread Jesse Phillips via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:54:23 UTC, Suliman wrote: Ok, but when the logger class may be more helpful that function usage? You'd use the logger class when you need to make customizations or have multiple logging schemes. I'd expect Vibe.d allows you to override the global logging

Re: Why some function are class-less?

2016-11-17 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:54:23 UTC, Suliman wrote: On Thursday, 17 November 2016 at 17:45:31 UTC, Stefan Koch wrote: On Thursday, 17 November 2016 at 17:42:44 UTC, Suliman wrote: On Thursday, 17 November 2016 at 16:46:37 UTC, Steven Schveighoffer wrote: On 11/17/16 11:28 AM,

Re: DIP document maintenance

2016-11-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 11/17/2016 10:43 AM, Dicebot wrote: Yes. Assuming you do want multiple review iterations support, I can imagine something like this: - new "review candidate #" field is added to the header - it is set to 0 on initial merge and to 1 after incorporating initial NG feedback - it also references

Re: D front end implementation

2016-11-17 Thread Timon Gehr via Digitalmars-d
On 17.11.2016 03:52, Stefan Koch wrote: On Wednesday, 16 November 2016 at 09:11:50 UTC, Timon Gehr wrote: I want to get there eventually. :) Unfortunately I haven't had a lot of time to spend on this lately. Also, DMD 2.060 has quite many annoying bugs that slow down development. Sounds to

Re: Why some function are class-less?

2016-11-17 Thread Jesse Phillips via Digitalmars-d-learn
On Thursday, 17 November 2016 at 18:40:12 UTC, Suliman wrote: For example I need to write all logs to file. I see this function, that seem set some global file name. "setLogFileSets a log file for disk file logging." But would it name accessible from anywhere or it would be visible

[Issue 16699] [REG 2.070] stack corruption with scope(exit)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16699 --- Comment #5 from hst...@quickfur.ath.cx --- Unfortunately, the -O trick doesn't work with issue 16698. So it's not a reliable workaround for this bug. --

Re: D front end implementation

2016-11-17 Thread John Colvin via Digitalmars-d
On Thursday, 17 November 2016 at 21:39:15 UTC, Timon Gehr wrote: On 17.11.2016 03:52, Stefan Koch wrote: On Wednesday, 16 November 2016 at 09:11:50 UTC, Timon Gehr wrote: I want to get there eventually. :) Unfortunately I haven't had a lot of time to spend on this lately. Also, DMD 2.060 has

LDC vs DMD Diagnostics

2016-11-17 Thread Nordlöw via Digitalmars-d-learn
Does LDC have more diagnostics than DMD, typically unused imports, variables, etc?

Re: Why is three safety levels need in D?

2016-11-17 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:18:27 UTC, Nordlöw wrote: Why does D need both `@safe`, `@trusted` and `@system` when Rust seems to get by with only safe (default) and `unsafe`? https://dlang.org/spec/memory-safe-d.html http://dlang.org/safed.html It allows encapsulating unsafe

Re: Why is three safety levels need in D?

2016-11-17 Thread Jesse Phillips via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:18:27 UTC, Nordlöw wrote: Why does D need both `@safe`, `@trusted` and `@system` when Rust seems to get by with only safe (default) and `unsafe`? https://dlang.org/spec/memory-safe-d.html http://dlang.org/safed.html D makes it illegal for @safe code to

TechEmpower Web Framework Performance Comparison Round 13 -- vibe.d non-starter?

2016-11-17 Thread sanjayss via Digitalmars-d
https://www.techempower.com/benchmarks/#section=data-r13=ph=json anyone know why vibe.d is shown as "Did not complete" in all tests?

Re: TechEmpower Web Framework Performance Comparison Round 13 -- vibe.d non-starter?

2016-11-17 Thread Daniel Kozak via Digitalmars-d
Dne 17.11.2016 v 18:49 sanjayss via Digitalmars-d napsal(a): https://www.techempower.com/benchmarks/#section=data-r13=ph=json anyone know why vibe.d is shown as "Did not complete" in all tests? I guess they have moved from Ubuntu 12.04 to 16.04 which has PIE enabled now, and there are

Re: Why some function are class-less?

2016-11-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/17/16 11:28 AM, Suliman wrote: There is some functions that can be called without creation of class. For example: http://vibed.org/api/vibe.core.log/ As I understand I can create write log in two way. First create instance of Logger, second simply call function. Why it's done so? Just as

Why some function are class-less?

2016-11-17 Thread Suliman via Digitalmars-d-learn
There is some functions that can be called without creation of class. For example: http://vibed.org/api/vibe.core.log/ As I understand I can create write log in two way. First create instance of Logger, second simply call function. Why it's done so? Just as shortcut? But is I create class

Re: Boston D Language Meetup in Back Bay

2016-11-17 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/17/16 10:38 AM, John Colvin wrote: On Thursday, 17 November 2016 at 13:59:25 UTC, Steven Schveighoffer wrote: nullStream!char .bufferedInput .pushTo( arrayCastPipe!ubyte .outputFile("output.txt") ); But then the parameters to the "pushTo" hypothetical function don't

Re: Why is three safety levels need in D?

2016-11-17 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:47:21 UTC, Nordlöw wrote: On Thursday, 17 November 2016 at 17:33:33 UTC, Stefan Koch wrote: Memory is inherently unsafe. But it can be treated in a safe way. A language that does not allow you to express a middle ground will have a lot of unsafe code that

Re: Why is three safety levels need in D?

2016-11-17 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:33:33 UTC, Stefan Koch wrote: Memory is inherently unsafe. But it can be treated in a safe way. A language that does not allow you to express a middle ground will have a lot of unsafe code that could arguably be seen as safe. So in what way would, for

Re: Why some function are class-less?

2016-11-17 Thread Suliman via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:45:31 UTC, Stefan Koch wrote: On Thursday, 17 November 2016 at 17:42:44 UTC, Suliman wrote: On Thursday, 17 November 2016 at 16:46:37 UTC, Steven Schveighoffer wrote: On 11/17/16 11:28 AM, Suliman wrote: [...] D does not require classes to write

Re: Why is three safety levels need in D?

2016-11-17 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:18:27 UTC, Nordlöw wrote: Why does D need both `@safe`, `@trusted` and `@system` when Rust seems to get by with only safe (default) and `unsafe`? I'm pretty sure the Rust `unsafe` just does both D's `@system` AND `@trusted`. An unsafe function in Rust is

Re: Why some function are class-less?

2016-11-17 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:42:44 UTC, Suliman wrote: On Thursday, 17 November 2016 at 16:46:37 UTC, Steven Schveighoffer wrote: On 11/17/16 11:28 AM, Suliman wrote: [...] D does not require classes to write functions. All a class member function is anyway is a function with an

Re: Any AST experts n da house?

2016-11-17 Thread Stefan Koch via Digitalmars-d
On Thursday, 17 November 2016 at 14:11:50 UTC, Stefan Koch wrote: On Thursday, 17 November 2016 at 14:10:01 UTC, Andrei Alexandrescu wrote: auto tidSymbol = new Dsymbol(new Identifier("__typeidImplT")); Andrei I am looking into it. DSymbol is an abstract class. It is not meant to

Why is three safety levels need in D?

2016-11-17 Thread Nordlöw via Digitalmars-d-learn
Why does D need both `@safe`, `@trusted` and `@system` when Rust seems to get by with only safe (default) and `unsafe`? https://dlang.org/spec/memory-safe-d.html http://dlang.org/safed.html

Re: Why is three safety levels need in D?

2016-11-17 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 17 November 2016 at 17:29:20 UTC, Nordlöw wrote: On Thursday, 17 November 2016 at 17:27:01 UTC, Stefan Koch wrote: It allows encapsulating unsafe operations in safely-callable wrappers. So is this a limitation in Rust? If so, could you give a more concrete D code example that

Re: Best Lua integration?

2016-11-17 Thread Jesse Phillips via Digitalmars-d
On Thursday, 17 November 2016 at 06:33:06 UTC, Kim wrote: Yes I see the higher level as a weakness. It may save you time to integrate in D, but tries to hide complexity. Hiding complexity can hurt in other ways. I think I will go for the more C-like binding of DerelictLua; I am fine for the

Re: Any AST experts n da house?

2016-11-17 Thread Jacob Carlborg via Digitalmars-d
On 2016-11-17 15:10, Andrei Alexandrescu wrote: Lucia is working on https://issues.dlang.org/show_bug.cgi?id=16683 which shows good promise in cleaning the cobwebs around Typeinfo. She looked into matters and figured she needs to have TypeidExp.semantic() return the lowered expression. In the

[Issue 16699] [REG 2.070] stack corruption with scope(exit)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16699 --- Comment #2 from hst...@quickfur.ath.cx --- Looking at the assembly, it seems like a codegen bug. The static array is actually correctly initialized with the return value, but when scope(exit){} is uncommented, the return value (%eax) is never

Re: Boston D Language Meetup in Back Bay

2016-11-17 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/17/16 12:42 PM, John Colvin wrote: On Thursday, 17 November 2016 at 16:28:08 UTC, Steven Schveighoffer wrote: On 11/17/16 10:38 AM, John Colvin wrote: On Thursday, 17 November 2016 at 13:59:25 UTC, Steven Schveighoffer wrote: [...] Can't you use a template lambda alias argument to

[Issue 16699] [REG 2.070] stack corruption with scope(exit)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16699 --- Comment #3 from hst...@quickfur.ath.cx --- P.S., in the bad code case, %rax contains the address of a local variable used to store the static array, but %rdx appears to contain the correct return value. Did the codegen somehow fail to leave the

Re: Why some function are class-less?

2016-11-17 Thread Suliman via Digitalmars-d-learn
On Thursday, 17 November 2016 at 18:02:02 UTC, Jesse Phillips wrote: On Thursday, 17 November 2016 at 17:54:23 UTC, Suliman wrote: Ok, but when the logger class may be more helpful that function usage? You'd use the logger class when you need to make customizations or have multiple logging

[Issue 16102] [REG2.070] struct dtor replace value on stack

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16102 --- Comment #2 from hst...@quickfur.ath.cx --- May be related to https://issues.dlang.org/show_bug.cgi?id=16699 --

Re: TechEmpower Web Framework Performance Comparison Round 13 -- vibe.d non-starter?

2016-11-17 Thread Daniel Kozak via Digitalmars-d
Dne 17.11.2016 v 19:24 Daniel Kozak napsal(a): Dne 17.11.2016 v 18:49 sanjayss via Digitalmars-d napsal(a): https://www.techempower.com/benchmarks/#section=data-r13=ph=json anyone know why vibe.d is shown as "Did not complete" in all tests? I guess they have moved from Ubuntu 12.04 to 16.04

[Issue 16699] [REG 2.070] stack corruption with scope(exit)

2016-11-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16699 --- Comment #4 from hst...@quickfur.ath.cx --- Yet another data point: compiling with -O makes the problem go away(!). Somehow, I guess the optimizer must be working at a higher level of abstraction, and was able to deduce the correct semantics and

Re: D Lang installation on Windows, dependency on Visual Studio?

2016-11-17 Thread Jacob Carlborg via Digitalmars-d
On 2016-11-17 11:16, Vladimir Panteleev wrote: It seems to use MinGW-w64, which uses the GNU linker, which can't create PDB files. I thought the whole tool chain was based on LLVM, but I might be wrong. -- /Jacob Carlborg

Re: Formal review of DIP1002

2016-11-17 Thread Dicebot via Digitalmars-d-announce
On Thursday, 17 November 2016 at 15:26:21 UTC, John Colvin wrote: Regardless of the outcome, I just want to commend whoever wrote the rejection text* on doing such a clear and comprehensive job. I'm sure it must be disappointing for a DIP author to have it rejected, but detailed, constructive

Re: DIP document maintenance

2016-11-17 Thread Dicebot via Digitalmars-d-announce
On 11/17/2016 04:36 PM, Andrei Alexandrescu wrote: > On 11/17/2016 09:16 AM, Dicebot wrote: >> 2) It is a regular update. In that case revision number is simply git >> history. For example DIP1002 is currently at revision 7 (git log >> --pretty=oneline DIPs/DIP1002.md | wc -l). >> >> Same goes for

Re: Formal review of DIP1002

2016-11-17 Thread Walter Bright via Digitalmars-d-announce
On 11/17/2016 7:30 AM, Dicebot wrote: On Thursday, 17 November 2016 at 15:26:21 UTC, John Colvin wrote: Regardless of the outcome, I just want to commend whoever wrote the rejection text* on doing such a clear and comprehensive job. I'm sure it must be disappointing for a DIP author to have it

Re: Getting usages of template

2016-11-17 Thread lobo via Digitalmars-d-learn
On Thursday, 17 November 2016 at 09:40:45 UTC, Carlin St Pierre wrote: Is it possible to get the list of usages of a template during compile time? For example: class Foo { void bar(T)(T t) { } } void main() { Foo foo = new Foo; foo.bar(1); // int

Re: D front end implementation

2016-11-17 Thread Timon Gehr via Digitalmars-d
On 17.11.2016 22:41, John Colvin wrote: On Thursday, 17 November 2016 at 21:39:15 UTC, Timon Gehr wrote: On 17.11.2016 03:52, Stefan Koch wrote: On Wednesday, 16 November 2016 at 09:11:50 UTC, Timon Gehr wrote: I want to get there eventually. :) Unfortunately I haven't had a lot of time to

Re: tour.dlang

2016-11-17 Thread ZombineDev via Digitalmars-d
On Thursday, 17 November 2016 at 10:53:22 UTC, Chris wrote: Sorry, no time for a PR right now. Just found this funny mistake: "In D, string, wstring, and dstring are UTF-8, UTF-16, and UTF-32 encoded strings respectfully. Their character types are char, wchar, and dchar."

Re: D front end implementation

2016-11-17 Thread Stefan Koch via Digitalmars-d
On Thursday, 17 November 2016 at 22:46:33 UTC, Timon Gehr wrote: On 17.11.2016 22:41, John Colvin wrote: On Thursday, 17 November 2016 at 21:39:15 UTC, Timon Gehr wrote: On 17.11.2016 03:52, Stefan Koch wrote: On Wednesday, 16 November 2016 at 09:11:50 UTC, Timon Gehr wrote: I want to get

Re: Can we get unitests to not run with program start ?

2016-11-17 Thread deadalnix via Digitalmars-d
On Wednesday, 26 October 2016 at 21:57:59 UTC, Basile B. wrote: It looks fairly simple to do in dmd, like this (with breakage in case the user-defined main() did something useful): 1. deactivate the main functionDeclaration un funcs.d final bool isMain() { return ident == Id.main &&