Re: [OT] Unity migrating parts of their engine from C++ into High Performace C# (HPC#)

2018-04-03 Thread rumbu via Digitalmars-d
On Tuesday, 3 April 2018 at 05:24:02 UTC, rikki cattermole wrote: Shame we don't have signatures, then we'd have similar functionality only better! https://github.com/rikkimax/DIPs/blob/master/DIPs/DIP1xxx-RC.md +1000 This would be a very interesting development.

Re: How to destruct class instances allocated by a Region-allocator over a single GC block

2018-04-03 Thread Eduard Staniloiu via Digitalmars-d-learn
On Monday, 2 April 2018 at 21:32:47 UTC, Steven Schveighoffer wrote: On 4/2/18 5:16 PM, Per Nordlöw wrote: On Monday, 2 April 2018 at 20:43:01 UTC, Alexandru Jercaianu wrote: I am not completely sure how to solve this, but maybe we can find some clues here [1]. It seems like we should use

Re: Did Walter's pure optimization ever make it into dmd?

2018-04-03 Thread Dennis via Digitalmars-d
On Monday, 2 April 2018 at 11:33:29 UTC, ag0aep6g wrote: On 04/02/2018 10:52 AM, Dennis wrote: The function also needs the `nothrow` attribute. And you have to compile with `-O -release`. Aha, I presume the release flag is necessary in case there is a `debug {writeln("...");}` in the

Re: [OT] Unity migrating parts of their engine from C++ into High Performace C# (HPC#)

2018-04-03 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 3 April 2018 at 07:29:11 UTC, Dukc wrote: On Monday, 2 April 2018 at 17:30:20 UTC, Paulo Pinto wrote: - No code that would trigger GC is allowed Impressive! It definitely won't be anyhing like D or Rust in systems field anyway, but C# usually feels to be so reliant in GC that

Re: [OT] Unity migrating parts of their engine from C++ into High Performace C# (HPC#)

2018-04-03 Thread rikki cattermole via Digitalmars-d
On 03/04/2018 7:43 PM, aliak wrote: On Tuesday, 3 April 2018 at 05:24:02 UTC, rikki cattermole wrote: Shame we don't have signatures, then we'd have similar functionality only better! https://github.com/rikkimax/DIPs/blob/master/DIPs/DIP1xxx-RC.md Is there an eta on this being submitted for

Re: [OT] Unity migrating parts of their engine from C++ into High Performace C# (HPC#)

2018-04-03 Thread Mike Franklin via Digitalmars-d
On Monday, 2 April 2018 at 18:54:28 UTC, 12345swordy wrote: Interesting that they are going the "No classes allowed" approach. It looks like the bullet points can be done in better c mode of D. I think you'll find Sarn's work on Xanthe quite interesting:

[Issue 18714] New: Phobos calls localtime, which is not threadsafe

2018-04-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18714 Issue ID: 18714 Summary: Phobos calls localtime, which is not threadsafe Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: Invading^W The Sydney C++ Meetup

2018-04-03 Thread sarn via Digitalmars-d
On Tuesday, 3 April 2018 at 01:10:45 UTC, finalpatch wrote: I will be presenting the second talk there, so should be even easier to spot. The one about template metaprogramming? Nice, I'm looking forward to that one.

Re: Vtable for virtual functions in D

2018-04-03 Thread sarn via Digitalmars-d
On Tuesday, 3 April 2018 at 00:22:52 UTC, Mike Franklin wrote: I'm curious about this comment in the code: Unfortunately, "protected" doesn't work, so a lot of members end up being public. This seems to just be an oversight in the language, so maybe it will change in future versions of D.

[Issue 18357] can break immutable with postblit

2018-04-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18357 --- Comment #3 from anonymous4 --- Postblit should respect type qualifiers the same way const constructor does. --

Re: [OT] Unity migrating parts of their engine from C++ into High Performace C# (HPC#)

2018-04-03 Thread aliak via Digitalmars-d
On Tuesday, 3 April 2018 at 05:24:02 UTC, rikki cattermole wrote: Shame we don't have signatures, then we'd have similar functionality only better! https://github.com/rikkimax/DIPs/blob/master/DIPs/DIP1xxx-RC.md Is there an eta on this being submitted for consideration? Or has it already

Re: Deprecating this(this)

2018-04-03 Thread Kagamin via Digitalmars-d
On Monday, 2 April 2018 at 14:42:17 UTC, ag0aep6g wrote: The way it works in a const constructor is that `this.foo = bar;` is considered initialization, not assignment. Do you mean the spec? Andrei complained about implementation. Const constructors are already implemented as needed for

Re: [OT] Unity migrating parts of their engine from C++ into High Performace C# (HPC#)

2018-04-03 Thread Dukc via Digitalmars-d
On Monday, 2 April 2018 at 17:30:20 UTC, Paulo Pinto wrote: - No code that would trigger GC is allowed Impressive! It definitely won't be anyhing like D or Rust in systems field anyway, but C# usually feels to be so reliant in GC that this sounds wonderous nonetheless! Especially if, even

PR: localtime vs. localtime_r

2018-04-03 Thread FeepingCreature via Digitalmars-d
Hi, can somebody please review https://github.com/dlang/phobos/pull/6366 ? Phobos currently calls localtime() to handle timezones, which breaks insidiously in multithreaded programs and occasionally silently returns wrong times. localtime_r() support is not 100% universal, but localtime() is

[Issue 18713] ICE in dmd/statementsem.d:1798 with -dip1000

2018-04-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18713 Seb changed: What|Removed |Added Keywords||ice, ice-on-valid-code --

[Issue 18713] New: ICE in dmd/statementsem.d:1798 with -dip1000

2018-04-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18713 Issue ID: 18713 Summary: ICE in dmd/statementsem.d:1798 with -dip1000 Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: blocker

[Issue 18710] executable file not generated when -o- is used

2018-04-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18710 Mike Franklin changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18712] New: bogus "switch skips declaration" error with case in mixin

2018-04-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18712 Issue ID: 18712 Summary: bogus "switch skips declaration" error with case in mixin Product: D Version: D2 Hardware: All OS: Windows Status: NEW

[Issue 18710] executable file not generated when -o- is used

2018-04-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18710 --- Comment #2 from Mike Franklin --- The "help" output currently says: > -o- do not write object file I was under the assumption that that meant it would not generate the intermediate object files when

<    1   2