Re: Detect that a child is waiting for input

2016-11-20 Thread unDEFER via Digitalmars-d
On Sunday, 20 November 2016 at 21:03:57 UTC, John Colvin wrote: If blocking is an error, you could close stdin and assuming the process checks the error codes correctly No, I mean blocking is not error. One method to find it, run gdb or strace and see where the process stopped, or which

Re: Memory allocation failed. Why?

2016-11-20 Thread Stefan Koch via Digitalmars-d-learn
On Monday, 21 November 2016 at 06:45:04 UTC, ag0aep6g wrote: On 11/21/2016 07:36 AM, Stefan Koch wrote: On Monday, 21 November 2016 at 03:58:00 UTC, MGW wrote: On Sunday, 20 November 2016 at 18:58:04 UTC, Basile B. wrote: On Sunday, 20 November 2016 at 17:47:50 UTC, MGW wrote: [...] [...]

[Issue 16706] chinese dir coverage.

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16706 liangwen changed: What|Removed |Added Priority|P1 |P2 --- Comment #2 from

Re: Memory allocation failed. Why?

2016-11-20 Thread ag0aep6g via Digitalmars-d-learn
On 11/21/2016 07:36 AM, Stefan Koch wrote: On Monday, 21 November 2016 at 03:58:00 UTC, MGW wrote: On Sunday, 20 November 2016 at 18:58:04 UTC, Basile B. wrote: On Sunday, 20 November 2016 at 17:47:50 UTC, MGW wrote: import core.sys.windows.windows: MessageBoxA; void test() { for(int i;

Re: D with CygWin

2016-11-20 Thread unDEFER via Digitalmars-d
On Monday, 21 November 2016 at 04:06:31 UTC, rikki cattermole wrote: No, snn.lib is the exact thing that you don't need. I need to resolve conflict between snn.lib and cygwin1.dll. And I can see only 2 methods: 1) recompile all dmd libraries including snn.lib with replacing open->_open,

Re: Memory allocation failed. Why?

2016-11-20 Thread Stefan Koch via Digitalmars-d-learn
On Monday, 21 November 2016 at 03:58:00 UTC, MGW wrote: On Sunday, 20 November 2016 at 18:58:04 UTC, Basile B. wrote: On Sunday, 20 November 2016 at 17:47:50 UTC, MGW wrote: import core.sys.windows.windows: MessageBoxA; void test() { for(int i; i != 10; i++) { ubyte[]

Re: D with CygWin

2016-11-20 Thread rikki cattermole via Digitalmars-d
On 21/11/2016 4:47 AM, unDEFER wrote: On Sunday, 20 November 2016 at 14:39:24 UTC, Mike Parker wrote: Not impossible. It's just going to require some backend work. It's not something you can make happen from the command line. Possible of course.. But looks like it needed at least snn.lib

Re: Memory allocation failed. Why?

2016-11-20 Thread MGW via Digitalmars-d-learn
On Sunday, 20 November 2016 at 18:58:04 UTC, Basile B. wrote: On Sunday, 20 November 2016 at 17:47:50 UTC, MGW wrote: import core.sys.windows.windows: MessageBoxA; void test() { for(int i; i != 10; i++) { ubyte[] buf; for(int j; j != 1; j++) buf

Re: More technical material for the blog? Merge the newsletter?

2016-11-20 Thread Mike Parker via Digitalmars-d
On Sunday, 20 November 2016 at 11:21:55 UTC, Joakim wrote: Mike Parker has done a fantastic job with the D blog: I really like the unique direction he's taken, focusing on D users and their first-hand experiences. Thanks! And thanks for writing this post. We're missing these tech posts on

[Issue 16611] std.traits.fullyQualifiedName fails with error 'Unrecognized type const(void)'

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16611 Alexandru Razvan Caciulescu changed: What|Removed |Added CC|

[Issue 16706] chinese dir coverage.

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16706 --- Comment #1 from liangwen --- if put project in the dir with chinese words,cannot show the coverage. --

[Issue 16706] New: chinese dir coverage.

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16706 Issue ID: 16706 Summary: chinese dir coverage. Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P1

interest in writing ints (to BitArray)?

2016-11-20 Thread Era Scarecrow via Digitalmars-d
I've always been interested in trying to get more compression out of data. However the approach depending on circumstances can result in general purpose extra compression or not. Regardless. A while back in 2013 I wrote an appended function that was part of my BitArray extensions for

Re: What is going on with the ubuntu/debian debacle ?

2016-11-20 Thread deadalnix via Digitalmars-d
On Sunday, 20 November 2016 at 13:19:57 UTC, Russel Winder wrote: On Sat, 2016-11-19 at 23:03 +, deadalnix via Digitalmars-d wrote: A lot of users are reporting errors on debian and ubuntu. .o generated by dmd do not link and libphobos.a is unusable. This is very bad and we should

[Issue 11214] Coverage report not output if not run from source dir

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11214 liangwen changed: What|Removed |Added CC||liang...@msn.com --

Re: Memory allocation failed. Why?

2016-11-20 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 20 November 2016 at 18:58:04 UTC, Basile B. wrote: On Sunday, 20 November 2016 at 17:47:50 UTC, MGW wrote: [...] For me there's no exception. Maybe the GC is poluted. Try to add this after each iteration in the first test loop: import core.memory: GC;

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

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16667 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/0556bf138ed4678cb5ad870367065324fd4a5b4f fix Issue 16667 - wrong @safe unittest compilation

[Issue 16582] [REG2.072.0-b1] ParamterDefaultValueTuple fails to compile for scope paramters

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16582 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f783d975a28febea3a323bae3ce5f902cec17aa9 fix Issue 16582 - ParameterDefaults fails w/ scope

[Issue 16514] std.socket methods are const, and thus cannot be overriden for SSLSocket, for example

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16514 --- Comment #13 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/448ddbe2e88d66feb0df3f679bc282840ac4bb26 std.socket: Add test for issue 16514 --

Re: Making floating point deterministic cross diffrent platforms/hardware

2016-11-20 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 20 November 2016 at 22:36:12 UTC, Chainingsolid wrote: I'm making an rts so the client/server model would require very unrealistic bandwidth, hence the lock step peer to peer system. Indeed, peer to peer require determinism I guess.

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

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16574 Martin Nowak changed: What|Removed |Added CC||jesse.k.phillip...@gmail.co

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

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

[Issue 14720] Template function reported as non-template

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14720 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 9204] Unable to create alias to template function instance with auto ref param

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9204 b2.t...@gmx.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #1 from

[Issue 14657] can alias auto ref function but only after it's been called before

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

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

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

Re: Making floating point deterministic cross diffrent platforms/hardware

2016-11-20 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Sunday, 20 November 2016 at 21:42:30 UTC, ketmar wrote: On Sunday, 20 November 2016 at 21:31:09 UTC, Guillaume Piolat wrote: I think you can roughly have that with ldc, always using SSE and the same rounding-mode. ARM. oops. No problem with ARM + x86 for double and float.

[Issue 16663] [REG 2.072] std.unit.toUpper rejects an alias this to a string

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16663 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/8f8979ebe15adf6ef82c3f43b81388a61be99700 Revert "Merge pull request #4790 from

[Issue 16680] dmd doesn't use dritime optimized versions of substraction array operations

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

Re: Making floating point deterministic cross diffrent platforms/hardware

2016-11-20 Thread Chainingsolid via Digitalmars-d-learn
On Sunday, 20 November 2016 at 21:31:09 UTC, Guillaume Piolat wrote: If you use client prediction, and the server (authoritative) sends the correct player position to clients regularly (action game), then no determinism is actually needed. Ask Manu who knows more about this. I'm making an

Re: Nov 16 - Memory Safety and the D Programming Language

2016-11-20 Thread Walter Bright via Digitalmars-d-announce
On 11/14/2016 1:39 AM, qznc wrote: On Monday, 14 November 2016 at 06:57:07 UTC, Walter Bright wrote: · Follow our YouTube channel. So, there will be a recording? Great! Unfortunately, the audio was lost 18 minutes in. Looks to be not worth posting. I do have the slides up, though.

Re: Making floating point deterministic cross diffrent platforms/hardware

2016-11-20 Thread ketmar via Digitalmars-d-learn
On Sunday, 20 November 2016 at 21:31:09 UTC, Guillaume Piolat wrote: I think you can roughly have that with ldc, always using SSE and the same rounding-mode. ARM. oops.

Re: Making floating point deterministic cross diffrent platforms/hardware

2016-11-20 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 20 November 2016 at 19:12:06 UTC, Chainingsolid wrote: I planning out a game that has to use a lock step, peer to peer networking model to achieve multiplayer, and thus I need to have any floating point used produce the exact same results, no matter what, aka be completely

Re: Detect that a child is waiting for input

2016-11-20 Thread John Colvin via Digitalmars-d
On Sunday, 20 November 2016 at 12:21:19 UTC, unDEFER wrote: Hello! I'm using pipeProcess() to create a process: pipes = pipeProcess(["bash", "-c", BASH_COMMAND], Redirect.stdin | Redirect.stdout | Redirect.stderr); Is it possible detect that the child is waiting for input on stdin? I can't

[Issue 11118] undefined identifier in template structs functions

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8 --- Comment #1 from ag0ae...@gmail.com --- *** Issue 16695 has been marked as a duplicate of this issue. *** --

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

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16695 ag0ae...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 11118] undefined identifier in template structs functions

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

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

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16695 --- Comment #1 from Oleg B --- Forget what I report this 3 years before. duplicate of https://issues.dlang.org/show_bug.cgi?id=8 --

Re: shared arrray problem

2016-11-20 Thread ag0aep6g via Digitalmars-d-learn
On 11/20/2016 09:09 PM, Charles Hixson via Digitalmars-d-learn wrote: Thinking it over a bit more, the item returned would need to be a struct, but the struct wouldn't contain the array, it would just contain a reference to the array and a start and end offset. The array would need to live

Re: shared arrray problem

2016-11-20 Thread Charles Hixson via Digitalmars-d-learn
On 11/20/2016 03:42 AM, ag0aep6g via Digitalmars-d-learn wrote: On 11/20/2016 04:34 AM, Charles Hixson via Digitalmars-d-learn wrote: Whether you would call the change "break things for your code" might be dubious. It would be effectively broken, even if technically my code was doing the

Re: How to correct share data between threads?

2016-11-20 Thread Nicolas Gurrola via Digitalmars-d-learn
On Sunday, 20 November 2016 at 17:50:38 UTC, Konstantin Kutsevalov wrote: Ok, thank you. But I cannot to find good example. May be you know some good article about it? The Phobos documentation is a good place to start, as it has examples as well as the documentation for all the APIs:

Re: Making floating point deterministic cross diffrent platforms/hardware

2016-11-20 Thread ketmar via Digitalmars-d-learn
write your own software fp library. this is the only way to cover all your broad cases.

Re: shared arrray problem

2016-11-20 Thread ag0aep6g via Digitalmars-d-learn
On 11/20/2016 08:30 PM, Charles Hixson via Digitalmars-d-learn wrote: Well, that precise approach wouldn't work. (The traits aren't a part of the sturct, e.g.), What do you mean by "traits"?

[Issue 16705] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

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

[Issue 16705] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a7597df60ed7f78988e875d25b6d48b48189cc33 Fix issue 16705 - TaskPool.reduce fails to compile

Re: shared arrray problem

2016-11-20 Thread Charles Hixson via Digitalmars-d-learn
On 11/20/2016 03:42 AM, ag0aep6g via Digitalmars-d-learn wrote: On 11/20/2016 04:34 AM, Charles Hixson via Digitalmars-d-learn wrote: Whether you would call the change "break things for your code" might be dubious. It would be effectively broken, even if technically my code was doing the

Making floating point deterministic cross diffrent platforms/hardware

2016-11-20 Thread Chainingsolid via Digitalmars-d-learn
I planning out a game that has to use a lock step, peer to peer networking model to achieve multiplayer, and thus I need to have any floating point used produce the exact same results, no matter what, aka be completely deterministic. What would I need to do to achieve this?

Re: Memory allocation failed. Why?

2016-11-20 Thread Basile B. via Digitalmars-d-learn
On Sunday, 20 November 2016 at 17:47:50 UTC, MGW wrote: import core.sys.windows.windows: MessageBoxA; void test() { for(int i; i != 10; i++) { ubyte[] buf; for(int j; j != 1; j++) buf ~= 65; MessageBoxA(null, "--on for--".ptr,

Re: How to correct share data between threads?

2016-11-20 Thread Konstantin Kutsevalov via Digitalmars-d-learn
On Saturday, 19 November 2016 at 19:04:12 UTC, Nicolas Gurrola wrote: On Saturday, 19 November 2016 at 17:29:30 UTC, Konstantin Kutsevalov wrote: I need to receiving data in main thread and send its to other thread for processing. There is a simple (but wrong) code for example. What need I to

Memory allocation failed. Why?

2016-11-20 Thread MGW via Digitalmars-d-learn
import core.sys.windows.windows: MessageBoxA; void test() { for(int i; i != 10; i++) { ubyte[] buf; for(int j; j != 1; j++) buf ~= 65; MessageBoxA(null, "--on for--".ptr, "".ptr, 0); // delete buf; // if ON - then

Re: Using opApply and Attributes

2016-11-20 Thread ketmar via Digitalmars-d-learn
On Sunday, 20 November 2016 at 16:36:18 UTC, Q. Schroll wrote: How can I have relative-@attrib functions without unnecessary manual overloading? import std.traits; auto f1(DG) (DG dg) if (isCallable!DG && Parameters!DG.length == 1 && is(Parameters!DG[0] == int)) { // check other things here

Re: DIP 1003: remove `body` as a keyword

2016-11-20 Thread Chris Wright via Digitalmars-d-announce
On Sun, 20 Nov 2016 14:35:16 +1300, rikki cattermole wrote: > I was thinking maybe option 3 but not have the body first. > > int func(int arg) { > return 8 * arg; > } in { > assert(arg > 0); > } out(int value) { > assert(1); > } > > Would break code but its a simple

Using opApply and Attributes

2016-11-20 Thread Q. Schroll via Digitalmars-d-learn
When using functions with delegate (or function ptr) parameters which should comply with some attributes, I cannot call the delegate in the function what makes it pretty useless (I haven't done research, but I claim that generally most functions taking delegate parameters call them). void

Re: CTFE Status

2016-11-20 Thread Stefan Koch via Digitalmars-d
On Sunday, 20 November 2016 at 15:37:50 UTC, Stefan Koch wrote: Furthermore I need to extend my bc_tests. to make sure the interpretation is the same. Such that this bug cannot happen again. I have extended my test-suite to test this case. It is crucial that the c backend and the interpreter

[Issue 16705] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705 ZombineDev changed: What|Removed |Added Keywords||pull --- Comment #1

Re: D with CygWin

2016-11-20 Thread unDEFER via Digitalmars-d
On Sunday, 20 November 2016 at 14:39:24 UTC, Mike Parker wrote: Not impossible. It's just going to require some backend work. It's not something you can make happen from the command line. Possible of course.. But looks like it needed at least snn.lib sources and maybe something more.

Re: CTFE Status

2016-11-20 Thread Stefan Koch via Digitalmars-d
On Sunday, 20 November 2016 at 09:02:30 UTC, Stefan Koch wrote: On Saturday, 19 November 2016 at 11:22:18 UTC, Stefan Koch wrote: On Saturday, 19 November 2016 at 09:42:33 UTC, Stefan Koch wrote: Another small update. I got rid of the heapClearing overhead. By using ddmds allocator. Because of

[Issue 16705] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705 ZombineDev changed: What|Removed |Added CC|

Re: D with CygWin

2016-11-20 Thread Mike Parker via Digitalmars-d
On Sunday, 20 November 2016 at 11:55:49 UTC, rikki cattermole wrote: So work with cygwin under D is impossible.. Not impossible. It's just going to require some backend work. It's not something you can make happen from the command line.

Re: Compiling and linking libraries

2016-11-20 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 20 November 2016 at 01:01:16 UTC, Darren wrote: Thank you for this! Great information. So dub dynamically "add" code from the dll into the source code at runtime? No. DUB doesn't have anything to do with runtime and doesn't know anything about the DLLs you use. The Derelict

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

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16683 ZombineDev changed: What|Removed |Added CC|

[Issue 15421] The behaviours of the topNs differ with the bottom

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15421 Andrei Alexandrescu changed: What|Removed |Added Keywords||bootcamp --

[Issue 12141] std.algorithm: implement deterministic topN

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12141 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15583] [REG] topN without uniform can show quadratic performance

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15583 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED

Re: More technical material for the blog? Merge the newsletter?

2016-11-20 Thread Jacob Carlborg via Digitalmars-d
On 2016-11-20 12:21, Joakim wrote: Mike Parker has done a fantastic job with the D blog: I really like the unique direction he's taken, focusing on D users and their first-hand experiences. It is what I tried to do with my interviews that ran in the newsletter, and he's taken it to another

Re: What is going on with the ubuntu/debian debacle ?

2016-11-20 Thread Russel Winder via Digitalmars-d
On Sat, 2016-11-19 at 23:03 +, deadalnix via Digitalmars-d wrote: > A lot of users are reporting errors on debian and ubuntu. .o  > generated by dmd do not link and libphobos.a is unusable. > > This is very bad and we should consider a hotfix. Is someone on  > it ? Is this related to the gdc

Re: Don't truncate forum titles, use multiple lines instead

2016-11-20 Thread qznc via Digitalmars-d
On Sunday, 20 November 2016 at 08:59:19 UTC, Tourist wrote: Please implement the suggestion. Thanks. http://imgur.com/X7fJLpF For mobile I would prefer it to use the whole width for the title and convert the other two columns into "subtitle text" below.

[Issue 16705] New: TaskPool.reduce fails to compile "cannot get frame pointer to D main"

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16705 Issue ID: 16705 Summary: TaskPool.reduce fails to compile "cannot get frame pointer to D main" Product: D Version: D2 Hardware: x86_64 OS: Mac OS X

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

2016-11-20 Thread thedeemon via Digitalmars-d
On Saturday, 19 November 2016 at 22:19:58 UTC, deadalnix wrote: Err.. I mean, what is PIE and what kind of problems with D are there? DMD emit relocation data that linker can't make sense of, that's what happens. So you can't link anything that wasn't compiled with -fPIC, even if you aren't

Detect that a child is waiting for input

2016-11-20 Thread unDEFER via Digitalmars-d
Hello! I'm using pipeProcess() to create a process: pipes = pipeProcess(["bash", "-c", BASH_COMMAND], Redirect.stdin | Redirect.stdout | Redirect.stderr); Is it possible detect that the child is waiting for input on stdin? I can't find decision even for C. I think it is impossible if the

Re: Complex numbers are harder to use than in C

2016-11-20 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Saturday, 19 November 2016 at 19:42:27 UTC, Marduk wrote: On Saturday, 19 November 2016 at 16:17:08 UTC, Meta wrote: On Saturday, 19 November 2016 at 09:38:38 UTC, Marduk wrote: [...] D used to support complex numbers in the language (actually it still does, they're just deprecated).

Re: How to declare function with the same call signature as another?

2016-11-20 Thread Tofu Ninja via Digitalmars-d-learn
On Sunday, 20 November 2016 at 11:52:01 UTC, Tofu Ninja wrote: ... Also does not include function linkage :/

How to access https web page using std.net.curl?

2016-11-20 Thread acbbad via Digitalmars-d-learn
I had tried std.net.curl.get (). However, the following error occurs -- std.net.curl.CurlException@std\net\curl.d(4097): Peer certificate cannot be authenticated with given CA certificates on handle 2175BB8 -- Guess it seems to be a

Re: D with CygWin

2016-11-20 Thread rikki cattermole via Digitalmars-d
On 21/11/2016 12:46 AM, unDEFER wrote: On Friday, 18 November 2016 at 17:33:41 UTC, unDEFER wrote: Wow, Thank you! I have bought. I'm waiting instructions for download. Google is a stranger to fear: it have sent to spam the message from Walter Bright himself! Walter prompt to me LIB.EXE

Re: Complex numbers are harder to use than in C

2016-11-20 Thread Marc Schütz via Digitalmars-d-learn
On Saturday, 19 November 2016 at 20:24:09 UTC, Marduk wrote: On Saturday, 19 November 2016 at 12:55:57 UTC, Marc Schütz wrote: On Saturday, 19 November 2016 at 11:11:36 UTC, Nordlöw wrote: On Saturday, 19 November 2016 at 09:38:38 UTC, Marduk wrote: The difference is that D is more verbose. Am

Re: How to declare function with the same call signature as another?

2016-11-20 Thread Tofu Ninja via Digitalmars-d-learn
On Sunday, 20 November 2016 at 11:23:37 UTC, Nicholas Wilson wrote: On Sunday, 20 November 2016 at 11:19:24 UTC, Tofu Ninja wrote: I feel like this should be simple but I can't seem to figure it out. How do I declare a function to have the same call signature as another function/callable type?

Re: D with CygWin

2016-11-20 Thread unDEFER via Digitalmars-d
On Friday, 18 November 2016 at 17:33:41 UTC, unDEFER wrote: Wow, Thank you! I have bought. I'm waiting instructions for download. Google is a stranger to fear: it have sent to spam the message from Walter Bright himself! Walter prompt to me LIB.EXE utility, and I have removed from snn.lib

Re: Complex numbers are harder to use than in C

2016-11-20 Thread Marc Schütz via Digitalmars-d-learn
On Saturday, 19 November 2016 at 20:08:42 UTC, Marduk wrote: On Saturday, 19 November 2016 at 11:11:36 UTC, Nordlöw wrote: On Saturday, 19 November 2016 at 09:38:38 UTC, Marduk wrote: The difference is that D is more verbose. Am I missing something? Can we have C's behaviour in D? Something

Re: what is mean? ( Offset 78887H Record Type 00C3)

2016-11-20 Thread xky via Digitalmars-d-learn
On Saturday, 19 November 2016 at 09:35:33 UTC, Basile B. wrote: Is the message is about double definition ? I knew the cause. You were right. It is my mistake. I'm really sorry.

Re: shared arrray problem

2016-11-20 Thread ag0aep6g via Digitalmars-d-learn
On 11/20/2016 04:34 AM, Charles Hixson via Digitalmars-d-learn wrote: Whether you would call the change "break things for your code" might be dubious. It would be effectively broken, even if technically my code was doing the correct thing. But my code wouldn't be storing the data that needed

Re: What is going on with the ubuntu/debian debacle ?

2016-11-20 Thread John Colvin via Digitalmars-d
On Sunday, 20 November 2016 at 10:22:10 UTC, deadalnix wrote: On Sunday, 20 November 2016 at 09:00:08 UTC, John Colvin wrote: On Sunday, 20 November 2016 at 05:01:06 UTC, Nicholas Wilson wrote: On Saturday, 19 November 2016 at 23:03:05 UTC, deadalnix wrote: A lot of users are reporting errors

[Issue 16679] prefetch on old pentium d results in an illegal instruction

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16679 Brad Roberts changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: How to declare function with the same call signature as another?

2016-11-20 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 20 November 2016 at 11:19:24 UTC, Tofu Ninja wrote: I feel like this should be simple but I can't seem to figure it out. How do I declare a function to have the same call signature as another function/callable type? Like if I have: alias Sig = int function(int x, int y); How do I

[Issue 16381] Wrapping a float4 array leads to segfault.

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16381 --- Comment #9 from Walter Bright --- https://github.com/dlang/dmd/pull/6268 --

More technical material for the blog? Merge the newsletter?

2016-11-20 Thread Joakim via Digitalmars-d
Mike Parker has done a fantastic job with the D blog: I really like the unique direction he's taken, focusing on D users and their first-hand experiences. It is what I tried to do with my interviews that ran in the newsletter, and he's taken it to another level. Compare other recent compiled

Re: How to declare function with the same call signature as another?

2016-11-20 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 20 November 2016 at 11:19:24 UTC, Tofu Ninja wrote: I feel like this should be simple but I can't seem to figure it out. How do I declare a function to have the same call signature as another function/callable type? Like if I have: alias Sig = int function(int x, int y); How do I

How to declare function with the same call signature as another?

2016-11-20 Thread Tofu Ninja via Digitalmars-d-learn
I feel like this should be simple but I can't seem to figure it out. How do I declare a function to have the same call signature as another function/callable type? Like if I have: alias Sig = int function(int x, int y); How do I define a function such that it will have the same call

Re: What is going on with the ubuntu/debian debacle ?

2016-11-20 Thread deadalnix via Digitalmars-d
On Sunday, 20 November 2016 at 09:00:08 UTC, John Colvin wrote: On Sunday, 20 November 2016 at 05:01:06 UTC, Nicholas Wilson wrote: On Saturday, 19 November 2016 at 23:03:05 UTC, deadalnix wrote: A lot of users are reporting errors on debian and ubuntu. .o generated by dmd do not link and

[Issue 16381] Wrapping a float4 array leads to segfault.

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16381 --- Comment #8 from Walter Bright --- Simpler test case: __vector(float[4]) foo(); void bar() { float g = foo().ptr[0]; } --

Re: Don't truncate forum titles, use multiple lines instead

2016-11-20 Thread MakersF via Digitalmars-d
On Sunday, 20 November 2016 at 08:59:19 UTC, Tourist wrote: Please implement the suggestion. Thanks. http://imgur.com/X7fJLpF I have this problem as well. The usual workaround of long pressing on the link to see the full URL is useless because the URL do not show the topic title in them..

Re: CTFE Status

2016-11-20 Thread Stefan Koch via Digitalmars-d
On Saturday, 19 November 2016 at 11:22:18 UTC, Stefan Koch wrote: On Saturday, 19 November 2016 at 09:42:33 UTC, Stefan Koch wrote: Another small update. I got rid of the heapClearing overhead. By using ddmds allocator. Because of that I was able to shave off 20ms overhead. Allocation of

Re: What is going on with the ubuntu/debian debacle ?

2016-11-20 Thread John Colvin via Digitalmars-d
On Sunday, 20 November 2016 at 05:01:06 UTC, Nicholas Wilson wrote: On Saturday, 19 November 2016 at 23:03:05 UTC, deadalnix wrote: A lot of users are reporting errors on debian and ubuntu. .o generated by dmd do not link and libphobos.a is unusable. This is very bad and we should consider a

Don't truncate forum titles, use multiple lines instead

2016-11-20 Thread Tourist via Digitalmars-d
Please implement the suggestion. Thanks. http://imgur.com/X7fJLpF

Re: Popular embedded language for scripting in D

2016-11-20 Thread Soulsbane via Digitalmars-d-learn
On Saturday, 19 November 2016 at 22:18:39 UTC, Sai wrote: I have seen luad and Walters own JavaScript VM that can be used in D for embedded scripting purpose in an application. I was wondering which is more popular among D applications? Any suggestions? Thanks, sai I've used LuaD in a

[Issue 16679] prefetch on old pentium d results in an illegal instruction

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

[Issue 16679] prefetch on old pentium d results in an illegal instruction

2016-11-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16679 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/a5bffa8b35bb519ca7a5cd41fee86f541a1c2e76 fix Issue 16679 - prefetch on old pentium d results in an

[Issue 10636] Vector calling convention for D?

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

[Issue 10445] min and max attributes for SIMD registers

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

[Issue 7509] Allow SIMD variable contents to have all their values changed to a single float variable

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

[Issue 16381] Wrapping a float4 array leads to segfault.

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

  1   2   >