Re: Best Lua integration?

2016-11-16 Thread Mike Parker via Digitalmars-d
On Thursday, 17 November 2016 at 06:33:06 UTC, Kim wrote: I think I will go for the more C-like binding of DerelictLua; I am fine for the shared libraries binding as I don't need static bindings, but I guess that could be added without too much effort? Some of the Derelict bindings

Re: Best Lua integration?

2016-11-16 Thread Kim via Digitalmars-d
On Thursday, 17 November 2016 at 04:54:02 UTC, Soulsbane wrote: On Thursday, 17 November 2016 at 03:46:26 UTC, rikki cattermole wrote: On 17/11/2016 11:53 AM, Kim wrote: Hello what is the best Lua integration available? I have found these two so far: * https://github.com/JakobOvrum/LuaD

Re: CTFE Status

2016-11-16 Thread Stefan Koch via Digitalmars-d
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 strings. Since strings are not build up out of multiple

Re: Best Lua integration?

2016-11-16 Thread Soulsbane via Digitalmars-d
On Thursday, 17 November 2016 at 03:46:26 UTC, rikki cattermole wrote: On 17/11/2016 11:53 AM, Kim wrote: Hello what is the best Lua integration available? I have found these two so far: * https://github.com/JakobOvrum/LuaD (only Lua 5.1) * https://github.com/DerelictOrg/DerelictLua (Lua 5.3)

Re: Best Lua integration?

2016-11-16 Thread rikki cattermole via Digitalmars-d
On 17/11/2016 11:53 AM, Kim wrote: Hello what is the best Lua integration available? I have found these two so far: * https://github.com/JakobOvrum/LuaD (only Lua 5.1) * https://github.com/DerelictOrg/DerelictLua (Lua 5.3) The former seems better/more active. Are there other similar projects

[Issue 16574] [REG 2.072.0-b1] Unexplained errors about functions that overridde anything

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16574 --- Comment #17 from Martin Nowak --- The compiler fails to resolve the recursive DynPub field in CustomControl using forward references, subsequently the CustomControl base class has Type.error and the overload check fails. Could be a

Re: Bug or not? "Functions cannot return a function"

2016-11-16 Thread Stefan Koch via Digitalmars-d
On Thursday, 17 November 2016 at 03:10:33 UTC, Jonathan M Davis wrote: Regardless, optional parens are one of those features that seems really nice in some situations and gets really annoying in others, and you hit one of those spots where it's annoying. I would be feasible to only recognize

It's a very secure website with a wide variety of payment choices

2016-11-16 Thread claramama via Digitalmars-d-announce
It's a very secure website with a wide variety of payment choices, I bought AK-47 from csgo4sale and gave me the steam download code instantly with no problems after I signed up and bought the game. Other websites I've used to buy digital games also have given me codes instantly with no signup

Re: Bug or not? "Functions cannot return a function"

2016-11-16 Thread Jonathan M Davis via Digitalmars-d
On Thursday, November 17, 2016 02:53:50 Meta via Digitalmars-d wrote: > On Thursday, 17 November 2016 at 02:47:50 UTC, Stefan Koch wrote: > > I think you are doing a parenthesis-less call. > > I swear optional parens is going to drive me insane. Why > @property wasn't just fixed instead of the

Re: Boston D Language Meetup in Back Bay

2016-11-16 Thread Meta via Digitalmars-d-announce
On Thursday, 17 November 2016 at 01:20:58 UTC, Steven Schveighoffer wrote: I had one job... Forgot to post the link BEFORE the live stream. In any case, it was recorded and is here: https://www.youtube.com/watch?v=dVuPgbRIljA Sorry, please accept my shameful apology. -Steve I was

Cross-platform multiplayer was planned between Windows

2016-11-16 Thread claramama via Digitalmars-d-announce
Cross-platform multiplayer was planned between Windows, OS X, Linux, and PlayStation 3 players,but was ultimately limited to Windows, OS X, and Linux because of the differences in update-frequency between systems.The PlayStation 3 version offers three input control methods, which include using

It is the fourth game in the main Counter-Strike franchise

2016-11-16 Thread claramama via Digitalmars-d
Counter-Strike:Global Offensive is an online first-person shooter developed by Hidden Path Entertainment and Valve Corporation. It is the fourth game in the main Counter-Strike franchise. Counter-Strike: Global Offensive was released for Microsoft Windows, OS X, Xbox 360, and PlayStation 3 on

Re: Best Lua integration?

2016-11-16 Thread Mike Parker via Digitalmars-d
On Wednesday, 16 November 2016 at 22:53:46 UTC, Kim wrote: Hello what is the best Lua integration available? I have found these two so far: * https://github.com/JakobOvrum/LuaD (only Lua 5.1) * https://github.com/DerelictOrg/DerelictLua (Lua 5.3) The former seems better/more active. Are there

Re: Bug or not? "Functions cannot return a function"

2016-11-16 Thread Meta via Digitalmars-d
On Thursday, 17 November 2016 at 02:47:50 UTC, Stefan Koch wrote: I think you are doing a parenthesis-less call. I swear optional parens is going to drive me insane. Why @property wasn't just fixed instead of the current horribly broken and unintuitive situation, I'll never know.

Re: D front end implementation

2016-11-16 Thread Stefan Koch via Digitalmars-d
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 me like you should rewrite the compiler

Re: Bug or not? "Functions cannot return a function"

2016-11-16 Thread Stefan Koch via Digitalmars-d
On Thursday, 17 November 2016 at 02:15:49 UTC, Meta wrote: On Thursday, 17 November 2016 at 02:14:43 UTC, Meta wrote: On Thursday, 17 November 2016 at 01:48:51 UTC, Jonathan M Davis wrote: Well, you _can't_ return a function. You could return a function pointer or a delegate, but not a

Re: Bug or not? "Functions cannot return a function"

2016-11-16 Thread Meta via Digitalmars-d
On Thursday, 17 November 2016 at 02:14:43 UTC, Meta wrote: On Thursday, 17 November 2016 at 01:48:51 UTC, Jonathan M Davis wrote: Well, you _can't_ return a function. You could return a function pointer or a delegate, but not a function. What would it even mean to return a function? Well, it

Re: Bug or not? "Functions cannot return a function"

2016-11-16 Thread Meta via Digitalmars-d
On Thursday, 17 November 2016 at 01:48:51 UTC, Jonathan M Davis wrote: Well, you _can't_ return a function. You could return a function pointer or a delegate, but not a function. What would it even mean to return a function? Well, it works. This compiles: auto bug(alias f)() { return f;

Re: Bug or not? "Functions cannot return a function"

2016-11-16 Thread Meta via Digitalmars-d
On Thursday, 17 November 2016 at 01:27:45 UTC, Meta wrote: auto bug(alias f)() { return cast(typeof(f)) } void fun() {} void main() { bug!fun(); //Error: functions cannot return a function } Got a bit ahead of myself. Found this in DMD 2.072.0.

Re: Unable To Install Debian Package on Deepin Linux (Debian Jessie)

2016-11-16 Thread Paul Backus via Digitalmars-d-learn
On Wednesday, 16 November 2016 at 02:24:26 UTC, azzuwan wrote: It seems that /usr/bin/dman is currently used by deepin-manual. Is there anyway to get around this? Take a look at dpkg-divert(1)

Re: Bug or not? "Functions cannot return a function"

2016-11-16 Thread Jonathan M Davis via Digitalmars-d
On Thursday, November 17, 2016 01:27:45 Meta via Digitalmars-d wrote: > auto bug(alias f)() > { > return cast(typeof(f)) > } > > void fun() {} > > void main() > { > bug!fun(); //Error: functions cannot return a function > } Well, you _can't_ return a function. You could return a function

std.regex memory corruption bug

2016-11-16 Thread H. S. Teoh via Digitalmars-d
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?? T -- I think Debian's doing something wrong, `apt-get

Bug or not? "Functions cannot return a function"

2016-11-16 Thread Meta via Digitalmars-d
auto bug(alias f)() { return cast(typeof(f)) } void fun() {} void main() { bug!fun(); //Error: functions cannot return a function }

Re: Boston D Language Meetup in Back Bay

2016-11-16 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/16/16 6:34 PM, Steven Schveighoffer wrote: On 11/13/16 6:51 PM, Steven Schveighoffer wrote: On 11/4/16 12:02 PM, Steven Schveighoffer wrote: Just announced: https://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/235353279/ We are going to try a freely available

[Issue 16698] New: std.regex.matchFirst corrupts stack

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16698 Issue ID: 16698 Summary: std.regex.matchFirst corrupts stack Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority:

[Vibe.d] Handling event loop manually

2016-11-16 Thread Mike Bierlee via Digitalmars-d-learn
In my application I have already have an event loop running taking care of all sorts of things. Now I want to use Vibe.d to run an asynchronous websocket API to provide some debugging information. Normally Vibe.d's main takes care of handling the event loop. I want to run vibe's event loop

[Issue 16697] Extend IsExpression to accept __vector as a TypeSpecialization

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16697 Walter Bright changed: What|Removed |Added Keywords||bootcamp --

[Issue 16697] New: Extend IsExpression to accept __vector as a TypeSpecialization

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16697 Issue ID: 16697 Summary: Extend IsExpression to accept __vector as a TypeSpecialization Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 16697] Extend IsExpression to accept __vector as a TypeSpecialization

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16697 Walter Bright changed: What|Removed |Added Keywords||SIMD --

[Issue 16667] [REG] dub test fails on std.conv after upgrade to dmd 2.072.0

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16667 Martin Nowak changed: What|Removed |Added Keywords||pull CC|

[Issue 16696] [regression] Assert(0) or HLT reduced to separate dub package

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16696 Jesse Phillips changed: What|Removed |Added CC|

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

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16661 Martin Nowak changed: What|Removed |Added Keywords||pull CC|

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

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16661 --- Comment #3 from Martin Nowak --- Introduced by https://github.com/dlang/phobos/pull/4427, fix in https://github.com/dlang/phobos/pull/4904. --

[Issue 16676] [REG2.072.0] std.format fails with %02d in dstring format string

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16676 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED CC|

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

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16661 Martin Nowak changed: What|Removed |Added CC||thecybersha...@gmail.com ---

Re: Boston D Language Meetup in Back Bay

2016-11-16 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 11/16/16 6:34 PM, Steven Schveighoffer wrote: On 11/13/16 6:51 PM, Steven Schveighoffer wrote: On 11/4/16 12:02 PM, Steven Schveighoffer wrote: Just announced: https://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/235353279/ We are going to try a freely available

[Issue 16696] New: [regression] Assert(0) or HLT reduced to separate dub package

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16696 Issue ID: 16696 Summary: [regression] Assert(0) or HLT reduced to separate dub package Product: D Version: D2 Hardware: x86_64 OS: Windows Status:

[Issue 16695] variadic argument static array can't use template arg as size

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16695 ag0ae...@gmail.com changed: What|Removed |Added Keywords||rejects-valid CC|

Re: Boston D Language Meetup in Back Bay

2016-11-16 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/13/16 6:51 PM, Steven Schveighoffer wrote: On 11/4/16 12:02 PM, Steven Schveighoffer wrote: Just announced: https://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/235353279/ We are going to try a freely available conference room to have a presentation. No details on

[Issue 16695] New: variadic argument static array can't use template arg as size

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16695 Issue ID: 16695 Summary: variadic argument static array can't use template arg as size Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: D front end implementation

2016-11-16 Thread Timon Gehr via Digitalmars-d
On 16.11.2016 19:17, Jacob Carlborg wrote: On 2016-11-16 01:11, Timon Gehr wrote: Yup. There are many features missing that are quite easy to implement but require work, and a few that are somewhat messy to specify (e.g. 'protected'). An incomplete list: * UDA's * Built-in members (init,

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

2016-11-16 Thread Daniel Kozak via Digitalmars-d-learn
Dne 16.11.2016 v 23:43 lafoldes via Digitalmars-d-learn napsal(a): 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;

Best Lua integration?

2016-11-16 Thread Kim via Digitalmars-d
Hello what is the best Lua integration available? I have found these two so far: * https://github.com/JakobOvrum/LuaD (only Lua 5.1) * https://github.com/DerelictOrg/DerelictLua (Lua 5.3) The former seems better/more active. Are there other similar projects that I am missing? Thanks

How to create a UTF16 text file on Windows?

2016-11-16 Thread lafoldes via Digitalmars-d-learn
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; int main(string[] argv) { auto output = File("wide_text.txt",

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

2016-11-16 Thread Jerry via Digitalmars-d
On Wednesday, 16 November 2016 at 04:04:05 UTC, rikki cattermole wrote: And then we'll get complaints that they need another big download just to compile basic 32bit programs... This whole argument about making changes is rediculas. Unless we get explicit permission from Microsoft to

Re: DConf 2017: Bigger, Badder, and Berliner! Call for Submissions now open

2016-11-16 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 11/16/2016 01:13 PM, Jacob Carlborg wrote: Any information about the venue or the unofficial hangout place? Same as last year. More info forthcoming. -- Andrei

Re: send doesn't work

2016-11-16 Thread Anonymouse via Digitalmars-d
On Wednesday, 16 November 2016 at 13:10:06 UTC, unDEFER wrote: On Wednesday, 16 November 2016 at 10:54:32 UTC, Era Scarecrow wrote: I just have to wonder every time I look at this... how long is 1 hnsecs? I'd assume not very long. Either blocking unless there's no more messages, or having a

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

2016-11-16 Thread Jacob Carlborg via Digitalmars-d
On 2016-11-16 09:19, Patrick Schluter wrote: go doesn't need the MS tools apparently. As far as I know Go uses static linking and contains its own linker. -- /Jacob Carlborg

Re: D front end implementation

2016-11-16 Thread Jacob Carlborg via Digitalmars-d
On 2016-11-16 01:11, Timon Gehr wrote: Yup. There are many features missing that are quite easy to implement but require work, and a few that are somewhat messy to specify (e.g. 'protected'). An incomplete list: * UDA's * Built-in members (init, stringof, min, max, ...) * various forms of

Re: DConf 2017: Bigger, Badder, and Berliner! Call for Submissions now open

2016-11-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-11-14 11:49, Andrei Alexandrescu wrote: Please join us at DConf 2017, the conference of the D programming language in Berlin, Germany, May 4-6 2017. We're happy to announce that the D Language Foundation is cooperating again with Sociomantic to organize DConf 2017 in Berlin for the

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

2016-11-16 Thread Jacob Carlborg via Digitalmars-d
On 2016-11-14 08:59, Nick Sabalausky wrote: I still have an "old fashioned" HDD-only in my PC (a laptop): dirt-cheap: <$100 for 1TB (try to find an SSD that remotely compares), and the ONLY time I ever have speed issues in either Win or Lin is when I'm running far too much crap and start

Re: Dynamic Bindings to libui (x-platform GUI)

2016-11-16 Thread Nick Sabalausky via Digitalmars-d-announce
On 11/16/2016 03:50 AM, Kagamin wrote: On Wednesday, 25 May 2016 at 16:47:30 UTC, Nick Sabalausky wrote: Drives me nuts when people count "Always uses GTK on Linux" as "Native UI". It's like those programs that do everything completely Ubuntu-centric whenever possible and then advertise "Linux

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

2016-11-16 Thread Jacob Carlborg via Digitalmars-d
On 2016-11-14 09:05, Nick Sabalausky wrote: The Linux and Mac versions rely on Linux/Mac's native C linkers, regardless of 32/64 bit. Yeah. On macOS, Xcode is a 4.x GB download size and 12 GB install size (just looking at what I currently have). Perhaps we should take the missing parts

Re: send doesn't work

2016-11-16 Thread Steven Schveighoffer via Digitalmars-d
On 11/16/16 4:35 AM, unDEFER wrote: On Tuesday, 15 November 2016 at 20:46:59 UTC, Steven Schveighoffer wrote: From experience, this smells like a race condition. And I have found the error! And you are right! It is really race condition. The problem was that I had not one receiveTimeout()

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

2016-11-16 Thread Mike Parker via Digitalmars-d
On Wednesday, 16 November 2016 at 17:06:37 UTC, Patrick Schluter wrote: I get the technical reasons for using the MS toolchain but that doesn't change the fact that it is an ugly wart that has several negative aspect. Because in addition to the cases already described where it can be a pita

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

2016-11-16 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 16 November 2016 at 17:06:37 UTC, Patrick Schluter wrote: On Wednesday, 16 November 2016 at 09:21:18 UTC, Kagamin wrote: On Tuesday, 15 November 2016 at 14:41:34 UTC, Daniel Kozak wrote: AFAIK ld on mingw can`t link against mscoff file format so it is not very usable. It's

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

2016-11-16 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 16 November 2016 at 09:21:18 UTC, Kagamin wrote: On Tuesday, 15 November 2016 at 14:41:34 UTC, Daniel Kozak wrote: AFAIK ld on mingw can`t link against mscoff file format so it is not very usable. It's dmd/optlink that don't support mscoff, mingw supports only mscoff. LLD is

Re: Compiling and linking libraries

2016-11-16 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 16 November 2016 at 14:59:40 UTC, Edwin van Leeuwen wrote: If you are happy to use dub I would just add the GL library as a dependency to my dub.json file. Then if you call dub it will download and compile the necessary file. Example dub.json file: ``` { "name":

Re: Compiling and linking libraries

2016-11-16 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Wednesday, 16 November 2016 at 14:27:41 UTC, Darren wrote: Hey all, This is a very beginner problem, but not one I know how to do on my own. Could anyone give a step-by-step guide on how to compile libraries, and then use them in my project with DUB? If you are happy to use dub I would

[Issue 16682] [REG 2.072] "privatization" of symbols in std.stdio breaks DFMT

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16682 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/73b699de123a3f8d2e38f0d63735865fa78c03ce Revert "Merge pull request #4789 from

[Issue 16682] [REG 2.072] "privatization" of symbols in std.stdio breaks DFMT

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16682 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #2

Re: Intresa in Static Analysis for D ?

2016-11-16 Thread Stefan Koch via Digitalmars-d
On Wednesday, 16 November 2016 at 14:06:16 UTC, Basile B. wrote: On Tuesday, 15 November 2016 at 14:45:29 UTC, Stefan Koch wrote: Hi Guys, I was wondering how much interest in static analysis exists in this community . DMD already has rudimentary support for these kinds of things. By the

Re: CTFE Status

2016-11-16 Thread Stefan Koch via Digitalmars-d
On Wednesday, 16 November 2016 at 10:25:30 UTC, Stefan Koch wrote: First Execution (cold cache) : Initializing Heap: 17.4 ms Generating Bytecode:0.7 ms Executing Bytecode: 5.3 ms Converting to CTFE-EXp: 5.1 ms Second run (warmer cache) : Initializing Heap: 16.9 ms Generating

Compiling and linking libraries

2016-11-16 Thread Darren via Digitalmars-d-learn
Hey all, This is a very beginner problem, but not one I know how to do on my own. Could anyone give a step-by-step guide on how to compile libraries, and then use them in my project with DUB? For example, I've been using this guide for graphics:

Re: Intresa in Static Analysis for D ?

2016-11-16 Thread Basile B. via Digitalmars-d
On Tuesday, 15 November 2016 at 14:45:29 UTC, Stefan Koch wrote: Hi Guys, I was wondering how much interest in static analysis exists in this community . DMD already has rudimentary support for these kinds of things. By the way there are several problems with static analysis of D code.

Re: DConf 2017: Bigger, Badder, and Berliner! Call for Submissions now open

2016-11-16 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 11/15/2016 11:39 PM, xtreak wrote: Great news! A couple of js, svg and png files are missing. I tried to raise an issue in dconf.org at Github but it seems issues are disabled. I tried force reload on Mac OSX Chrome but the issue persists. Hope someone can verify the issue. Seems it could

Re: send doesn't work

2016-11-16 Thread unDEFER via Digitalmars-d
On Wednesday, 16 November 2016 at 10:54:32 UTC, Era Scarecrow wrote: I just have to wonder every time I look at this... how long is 1 hnsecs? I'd assume not very long. Either blocking unless there's no more messages, or having a longer timeout period seems a better bet. Might make it

Re: interest in Static Analysis for D ?

2016-11-16 Thread Stefan Koch via Digitalmars-d
On Wednesday, 16 November 2016 at 10:45:54 UTC, Dicebot wrote: On 11/15/2016 07:05 PM, Stefan Koch wrote: [...] It's a compiler frontend. Very good observation :P I cannot see any other purposes then code-analysis and code-transformation. Regarding Transformations I wanted to write a

[Issue 16550] Generic SIMD shuffle for Mir

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16550 --- Comment #7 from Walter Bright --- Looks like a simple wrapper could be put around the PSHUFD instruction. --

Re: send doesn't work

2016-11-16 Thread Era Scarecrow via Digitalmars-d
On Tuesday, 15 November 2016 at 16:36:00 UTC, unDEFER wrote: The parent thread has the next code to receive it and handle: receiveTimeout( dur!"hnsecs"(1), (Tid tid) {//the message from child thread handler} ); I just have to wonder every time I look at this...

Re: an extremely naive question regarding synchronized...

2016-11-16 Thread Kagamin via Digitalmars-d-learn
static MySingleton get() { if (instance_ is null) { synchronized { if (instance_ is null) { atomicStore(instance_, new MySingleton); } } } return instance_; } This should work fine and faster.

Re: interest in Static Analysis for D ?

2016-11-16 Thread Dicebot via Digitalmars-d
On 11/15/2016 07:05 PM, Stefan Koch wrote: >> When doing so, try to forget that static analysis is the intended >> goal. It has to be naturally usable for any other purpose too, >> focusing on one specific application case is likely only harm design >> decisions. > > It's a compiler frontend.

Re: CTFE Status

2016-11-16 Thread Stefan Koch via Digitalmars-d
On Wednesday, 16 November 2016 at 10:07:06 UTC, Stefan Koch wrote: A more accurate breakdown : Initializing Heap: 18.6 ms Generating Bytecode:1.2 ms Executing Bytecode:13.2 ms Converting to CTFE-EXp: 9.1 ms For a second execution of the same function with the same arguments

Re: DConf 2017: Bigger, Badder, and Berliner! Call for Submissions now open

2016-11-16 Thread Sönke Ludwig via Digitalmars-d-announce
Am 14.11.2016 um 20:49 schrieb Andrei Alexandrescu: Please join us at DConf 2017, the conference of the D programming language in Berlin, Germany, May 4-6 2017. We're happy to announce that the D Language Foundation is cooperating again with Sociomantic to organize DConf 2017 in Berlin for the

[Issue 16550] Generic SIMD shuffle for Mir

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16550 --- Comment #6 from Илья Ярошенко --- (In reply to Walter Bright from comment #4) > I also cannot find any documentation on extractRe() and extractIm(). I > googled for "ldc extractre extractim" and there were no results.

Re: CTFE Status

2016-11-16 Thread Stefan Koch via Digitalmars-d
On Wednesday, 16 November 2016 at 09:45:24 UTC, Stefan Koch wrote: Here is a small demostration of the performance increase : [root@localhost dmd]# time src/dmd -c testSettingArrayLength.d > x 2> x real0m0.199s user0m0.180s sys 0m0.017s [root@localhost dmd]# time src/dmd -c

Re: CTFE Status

2016-11-16 Thread Stefan Koch via Digitalmars-d
Here is a small demostration of the performance increase : [root@localhost dmd]# time src/dmd -c testSettingArrayLength.d > x 2> x real0m0.199s user0m0.180s sys 0m0.017s [root@localhost dmd]# time src/dmd -c testSettingArrayLength.d -bc-ctfe > x 2> x real0m0.072s user

[Issue 16694] New: ICE on taking address of `export` function (declaration-only)

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16694 Issue ID: 16694 Summary: ICE on taking address of `export` function (declaration-only) Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: send doesn't work

2016-11-16 Thread unDEFER via Digitalmars-d
On Tuesday, 15 November 2016 at 20:46:59 UTC, Steven Schveighoffer wrote: From experience, this smells like a race condition. And I have found the error! And you are right! It is really race condition. The problem was that I had not one receiveTimeout() but 3 receiveTimeout() for each

[Issue 16550] Generic SIMD shuffle for Mir

2016-11-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16550 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org

Re: PDF generation in D?

2016-11-16 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 16 November 2016 at 01:22:33 UTC, Jot wrote: What's your point? My point is that PS as a textual format can be easily generated without external libraries or tools, and then converted to an identically looking PDF.

Re: CTFE Status

2016-11-16 Thread Stefan Koch via Digitalmars-d
On Wednesday, 16 November 2016 at 09:22:01 UTC, Stefan Koch wrote: On Tuesday, 15 November 2016 at 23:46:51 UTC, Stefan Koch wrote: I suspect that somewhere the heapPtr is not bumped or the length is not set correctly. Indeed the length was not set on a code-path meant for resizeing. The

Re: CTFE Status

2016-11-16 Thread Stefan Koch via Digitalmars-d
On Tuesday, 15 November 2016 at 23:46:51 UTC, Stefan Koch wrote: On Tuesday, 15 November 2016 at 22:50:49 UTC, deadalnix wrote: On Tuesday, 15 November 2016 at 01:35:42 UTC, Stefan Koch wrote: However there is a a bug inside the code that does bounds-checking for array assignment. In rare

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

2016-11-16 Thread Kagamin via Digitalmars-d
On Tuesday, 15 November 2016 at 14:41:34 UTC, Daniel Kozak wrote: AFAIK ld on mingw can`t link against mscoff file format so it is not very usable. It's dmd/optlink that don't support mscoff, mingw supports only mscoff. LLD is quite new so I do not know how production ready is. AFAIK

Re: send doesn't work

2016-11-16 Thread unDEFER via Digitalmars-d
Really situation is much more interesting: Sometimes I got Tid not the same as sent. Sometimes I receive 2 TID although sent only 1.

D front end implementation

2016-11-16 Thread Timon Gehr via Digitalmars-d
On 15.11.2016 14:11, Rainer Schuetze wrote: On 14.11.2016 21:26, Timon Gehr wrote: On 14.11.2016 00:32, Steven Schveighoffer wrote: A Foo[] can be stored in a Foo, because it doesn't need the size. But yes, as soon as you start needing Appender functions, then the compiler chokes. It is a

Re: Dynamic Bindings to libui (x-platform GUI)

2016-11-16 Thread Kagamin via Digitalmars-d-announce
On Wednesday, 25 May 2016 at 16:47:30 UTC, Nick Sabalausky wrote: Drives me nuts when people count "Always uses GTK on Linux" as "Native UI". It's like those programs that do everything completely Ubuntu-centric whenever possible and then advertise "Linux Support". I *really* wish GTK would

Re: Appender bug, or impossible?

2016-11-16 Thread Timon Gehr via Digitalmars-d
On 15.11.2016 10:10, Ali Çehreli wrote: On 11/14/2016 12:26 PM, Timon Gehr wrote: Error with DMD, works with my front end. What are the steps to use your front end instead of dmd's? The first step is I need to implement all remaining language features. :) Is the awesome combo of Timon

Re: Correct way to create singleton?

2016-11-16 Thread Royce via Digitalmars-d-learn
On Thursday, 10 November 2016 at 17:17:51 UTC, Konstantin Kutsevalov wrote: Hi, what is a correct (and simple) way to create an singleton? This is how I see that now: ``` class ApMessageRouter { static ApMessageRouter instance = null; private this() { } //