Re: D bindings for ToxCore

2015-04-27 Thread Suliman via Digitalmars-d-announce
On Saturday, 25 April 2015 at 11:21:49 UTC, ketmar wrote: preliminary (which means not really tested) bindings for ToxCore[1]: http://repo.or.cz/w/iv.d.git/blob_plain/HEAD:/tox.d http://repo.or.cz/w/iv.d.git/blob_plain/HEAD:/toxav.d [1] https://tox.im/ Thanks! Could you make package to

Re: Quit running foreign unittests _

2015-04-27 Thread Martin Nowak via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=13454

Re: Quit running foreign unittests _

2015-04-27 Thread Martin Nowak via Digitalmars-d
A fairly simple solution to this would be to compile unittests only for root modules (the ones that are part of the compilation), not for imported modules. Then everyone can decide for which modules to use -unittest.

[Issue 14502] dmd -O optimization breaks app

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14502 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

Re: How does D improve on C++17?

2015-04-27 Thread Idan Arye via Digitalmars-d
On Monday, 27 April 2015 at 01:28:01 UTC, Walter Bright wrote: Now on the front page of Hacker News! https://news.ycombinator.com/ https://news.ycombinator.com/item?id=9443462 Because tomorrow it won't be on the front page

Re: Quit running foreign unittests _

2015-04-27 Thread Dicebot via Digitalmars-d
On Monday, 27 April 2015 at 07:28:28 UTC, Martin Nowak wrote: https://issues.dlang.org/show_bug.cgi?id=13454 Great, lets compromise both unittest correctness and convienience at the same time. Can we please just close the issue as `RESOLVED WONTFIX`? Compiling tests of dependencies pretty

Re: setjmp / longjmp

2015-04-27 Thread ketmar via Digitalmars-d-learn
On Sun, 26 Apr 2015 21:45:41 +0100, Stewart Gordon wrote: On 26/04/2015 06:56, ketmar wrote: snip you shouldn't use setjmp/longjmp in D. use exceptions instead. something like this: snip True in the general case. Still, there must be some reason that trying it in D causes an AV (even if

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Iain Buclaw via Digitalmars-d
On 27 April 2015 at 09:47, Iain Buclaw ibuc...@gdcproject.org wrote: On 27 April 2015 at 09:34, Mike via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 27 April 2015 at 05:22:55 UTC, Timo Sintonen wrote: On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: Oops, I

Re: Adding Radix Sort into Phobos

2015-04-27 Thread Martin Nowak via Digitalmars-d
On 04/27/2015 09:52 AM, Per =?UTF-8?B?Tm9yZGzDtnci?= per.nord...@gmail.com wrote: Does someone have any answers to these questions or should I wait until the prel. pull request is done?: •Figure out a way to template-parameterize radixSortImpl to make it work on aggregate element types

[Issue 14511] New: Profiler does not work with multithreaded programs

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14511 Issue ID: 14511 Summary: Profiler does not work with multithreaded programs Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

[Issue 13454] Unit tests should be compiled in a module, where they are declared

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13454 --- Comment #4 from Sobirari Muhomori dfj1es...@sneakemail.com --- In practice template unittests are often independent of their template instance and simply result in code duplication. (In reply to Dicebot from comment #3) It is illegal to build D

Re: Quit running foreign unittests _

2015-04-27 Thread Dicebot via Digitalmars-d
On Monday, 27 April 2015 at 10:15:20 UTC, Kagamin wrote: On Monday, 27 April 2015 at 09:22:48 UTC, Dicebot wrote: Compiling tests of dependencies pretty much never causes any notable slowdown. This thread doesn't support that view, see the first post. Which part exactly? I only see

Re: Example for Documentation?

2015-04-27 Thread Chris via Digitalmars-d
On Tuesday, 21 April 2015 at 18:10:25 UTC, Steven Schveighoffer wrote: On 4/21/15 2:06 PM, Chris wrote: multiSort should at least be added to the cheat sheet in std.algorithm.sorting. This I can agree with. Can you add a pull request for it? -Steve I've added a pull request for it. The

[Issue 14000] Segmentation fault with profile

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14000 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 14511] Profiler does not work with multithreaded programs

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14511 --- Comment #1 from Walter Bright bugzi...@digitalmars.com --- https://github.com/D-Programming-Language/druntime/pull/1233 --

Re: [hackathon] My and Walter's ideas

2015-04-27 Thread Steven Schveighoffer via Digitalmars-d
On 4/25/15 11:40 PM, Andrei Alexandrescu wrote: I've been on this project at work that took the functionality first, performance later approach. It has a Java-style approach of using class objects throughout and allocating objects casually. So now we have a project that works but is kinda slow.

Re: [hackathon] My and Walter's ideas

2015-04-27 Thread Martin Nowak via Digitalmars-d
On Monday, 27 April 2015 at 10:56:17 UTC, Steven Schveighoffer wrote: Everything to alter is in lifetime.d. It would be trivial to create this. https://issues.dlang.org/show_bug.cgi?id=13988 The only thing is to have a malloc-based AA for tracking

Re: std.json questions

2015-04-27 Thread Pierre Krafft via Digitalmars-d-learn
On Saturday, 25 April 2015 at 18:30:33 UTC, Baz wrote: On Saturday, 25 April 2015 at 09:56:25 UTC, tired_eyes wrote: I think this is ugly and clunky approach, what is the beautiful one? What you clearly need is a serializer: look at these:

Re: Quit running foreign unittests _

2015-04-27 Thread Kagamin via Digitalmars-d
On Monday, 27 April 2015 at 09:22:48 UTC, Dicebot wrote: Compiling tests of dependencies pretty much never causes any notable slowdown. This thread doesn't support that view, see the first post.

Re: [hackathlon] stdc ddoc needed ?

2015-04-27 Thread Steven Schveighoffer via Digitalmars-d
On 4/26/15 5:23 PM, Baz wrote: On Sunday, 26 April 2015 at 20:45:32 UTC, Walter Bright wrote: On 4/26/2015 11:38 AM, Baz wrote: Hi, is it worth documenting stdc ? No. In general, D should not be re-documenting APIs where the documentation exists elsewhere, because: 1. have to rewrite it

[Issue 13454] Unit tests should be compiled in a module, where they are declared

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13454 Jonathan M Davis issues.dl...@jmdavisprog.com changed: What|Removed |Added CC|

Re: GC.malloc is pure - wat

2015-04-27 Thread Steven Schveighoffer via Digitalmars-d
On 4/25/15 11:06 PM, deadalnix wrote: On Friday, 24 April 2015 at 23:27:36 UTC, Steven Schveighoffer wrote: pure function can access global immutable state that wasn't passed to it, so you may want to revise your definition. Sure: s/accessing/altering, my mistake. That is the whole point.

Re: C++ interface problem

2015-04-27 Thread extrawurst via Digitalmars-d-learn
On Monday, 27 April 2015 at 07:37:23 UTC, Laeeth Isharc wrote: On Sunday, 26 April 2015 at 15:49:46 UTC, extrawurst wrote: I hope someone can tell me where my bug is. I am linking to a dynamic library with C++ interfaces: ``` //alias S = ulong; struct S { ulong data; } extern(C) I getI();

[Issue 13454] Unit tests should be compiled in a module, where they are declared

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13454 Dicebot pub...@dicebot.lv changed: What|Removed |Added CC||pub...@dicebot.lv --- Comment #3

Re: Cleaned up C++

2015-04-27 Thread ketmar via Digitalmars-d
On Mon, 27 Apr 2015 08:23:26 +, ponce wrote: Bringing D in the workplace often bring incredible resistance and arguments. I've heard it all over the years: - D is like C#, why use it? - D can't be scripted (yes it can) - D isn't fast enough - D isn't much used and is 10 years old,

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Jens Bauer via Digitalmars-d
On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: On Sunday, 26 April 2015 at 18:23:47 UTC, Martin Nowak wrote: I have also tried for years to build a working multilib without success. Now I think I have been able to get all versions to work. I welcome everyone to test and report

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Jens Bauer via Digitalmars-d
On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: On Sunday, 26 April 2015 at 18:23:47 UTC, Martin Nowak wrote: I have also tried for years to build a working multilib without success. {snip} Please note: This is the first time ever I have suceeded. This will not work with any

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Jens Bauer via Digitalmars-d
On Monday, 27 April 2015 at 05:56:11 UTC, Iain Buclaw wrote: On 26 April 2015 at 22:41, Jens Bauer via Digitalmars-d digitalmars-d@puremagic.com wrote: The reason I cannot build GDC with multilib, is that I get a compile-error when building the final GCC+GDC. Building GCC alone without GDC

Re: Performance of loops

2015-04-27 Thread Chris via Digitalmars-d
On Friday, 24 April 2015 at 13:27:18 UTC, Baz wrote: On Friday, 24 April 2015 at 11:00:23 UTC, Chris wrote: I tested the performance of three types of loops (see code below). It turns out that the fastest loop is the plainLoop. Unless my examples are completely screwed up, the difference

Re: C++ interface problem

2015-04-27 Thread extrawurst via Digitalmars-d-learn
On Monday, 27 April 2015 at 16:24:16 UTC, Benjamin Thaut wrote: Am 27.04.2015 um 17:16 schrieb extrawurst: On Monday, 27 April 2015 at 13:14:21 UTC, Benjamin Thaut wrote: On Monday, 27 April 2015 at 13:08:33 UTC, extrawurst wrote: Don't ask me about the compiler, like stated above I have no

Re: Updating ddoc to support modern HTML tags

2015-04-27 Thread Andrei Alexandrescu via Digitalmars-d
On 4/26/15 12:56 PM, Stewart Gordon wrote: On 26/04/2015 03:58, Andrei Alexandrescu wrote: On 4/25/15 5:41 PM, Stewart Gordon wrote: snip Even then, I wasn't able to do it perfectly. Has anybody tried to use Ddoc to generate (for example) LaTeX, RTF, XML or JSON output, for that matter?

Re: array operations and ranges

2015-04-27 Thread John Colvin via Digitalmars-d
On Monday, 27 April 2015 at 06:52:11 UTC, Manu wrote: On 27 April 2015 at 15:58, Vlad Levenfeld via Digitalmars-d digitalmars-d@puremagic.com wrote: Phobos containers already support the first line, and it would be a natural extension to make them support the second. Sure, it's not

Re: array operations and ranges

2015-04-27 Thread Vlad Levenfeld via Digitalmars-d
On Monday, 27 April 2015 at 06:52:11 UTC, Manu wrote: On 27 April 2015 at 15:58, Vlad Levenfeld via Digitalmars-d digitalmars-d@puremagic.com wrote: Phobos containers already support the first line, and it would be a natural extension to make them support the second. Sure, it's not

Re: Adding Radix Sort into Phobos

2015-04-27 Thread deadalnix via Digitalmars-d
On Sunday, 26 April 2015 at 07:16:24 UTC, Per Nordlöw wrote: I have a radix sort implementation at https://github.com/nordlow/justd/blob/master/intsort.d#L92intsort.d which beats Phobos own Quicksort by a factor 1.5 to 4 depending on element type (Intergral or FloatingPoint). Anyone up for

Re: GC.malloc is pure - wat

2015-04-27 Thread deadalnix via Digitalmars-d
On Monday, 27 April 2015 at 10:50:12 UTC, Steven Schveighoffer wrote: On 4/25/15 11:06 PM, deadalnix wrote: On Friday, 24 April 2015 at 23:27:36 UTC, Steven Schveighoffer wrote: pure function can access global immutable state that wasn't passed to it, so you may want to revise your

Re: How does D improve on C++17?

2015-04-27 Thread Andrei Alexandrescu via Digitalmars-d
On 4/27/15 2:13 AM, Idan Arye wrote: On Monday, 27 April 2015 at 01:28:01 UTC, Walter Bright wrote: Now on the front page of Hacker News! https://news.ycombinator.com/ https://news.ycombinator.com/item?id=9443462 Because tomorrow it won't be on the front page Soon as you post a direct

Re: Adding Radix Sort into Phobos

2015-04-27 Thread Andrei Alexandrescu via Digitalmars-d
On 4/27/15 12:52 AM, Per =?UTF-8?B?Tm9yZGzDtnci?= per.nord...@gmail.com wrote: On Sunday, 26 April 2015 at 17:31:58 UTC, Martin Nowak wrote: On 04/26/2015 09:16 AM, Per =?UTF-8?B?Tm9yZGzDtnci?= per.nord...@gmail.com wrote: I have a radix sort implementation at

Re: array operations and ranges

2015-04-27 Thread Manu via Digitalmars-d
On 27 April 2015 at 15:58, Vlad Levenfeld via Digitalmars-d digitalmars-d@puremagic.com wrote: Phobos containers already support the first line, and it would be a natural extension to make them support the second. Sure, it's not complicated. It's something I had done in this other code and

Re: Cleaned up C++

2015-04-27 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 26 April 2015 at 19:13:33 UTC, ponce wrote: On Sunday, 26 April 2015 at 14:28:11 UTC, Baz wrote: On Sunday, 26 April 2015 at 12:04:20 UTC, Laeeth Isharc wrote: On Sunday, 26 April 2015 at 09:26:11 UTC, ponce wrote: On Wednesday, 22 April 2015 at 19:51:23 UTC, ponce wrote: I

Re: Weird OSX issue

2015-04-27 Thread Kagamin via Digitalmars-d-learn
On Friday, 24 April 2015 at 18:37:40 UTC, Steven Schveighoffer wrote: _D4core6thread6Thread5startMFZv _D4core6thread6Thread5startMFNbZC4core6thread6Thread Maybe it will be better understandable if you demangle these symbols?

Re: How does D improve on C++17?

2015-04-27 Thread ponce via Digitalmars-d
On Monday, 27 April 2015 at 01:48:03 UTC, weaselcat wrote: On Monday, 27 April 2015 at 01:28:01 UTC, Walter Bright wrote: Now on the front page of Hacker News! https://news.ycombinator.com/ Would be nice if coherent ownership semantics could be added to the list of things D does better than

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Mike via Digitalmars-d
On Monday, 27 April 2015 at 05:22:55 UTC, Timo Sintonen wrote: On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: Oops, I forget to uncomment the m4 options. The correct version is And I replace the whole gcc/config/arm/t-arm-elf with this: MULTILIB_OPTIONS +=

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Iain Buclaw via Digitalmars-d
On 27 April 2015 at 09:34, Mike via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 27 April 2015 at 05:22:55 UTC, Timo Sintonen wrote: On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: Oops, I forget to uncomment the m4 options. The correct version is And I

Re: Cleaned up C++

2015-04-27 Thread ponce via Digitalmars-d
On Monday, 27 April 2015 at 07:45:30 UTC, Laeeth Isharc wrote: On Sunday, 26 April 2015 at 19:13:33 UTC, ponce wrote: Lesson taken: should have put a less aggressive title. Not necessarily. The people who complain loudly constitute a tiny subset of those who are ultimately influenced. One

Re: array operations and ranges

2015-04-27 Thread Vlad Levenfeld via Digitalmars-d
Phobos containers already support the first line, and it would be a natural extension to make them support the second. Sure, it's not complicated. It's something I had done in this other code and showing for example.

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Iain Buclaw via Digitalmars-d
On 27 April 2015 at 08:28, Iain Buclaw ibuc...@gdcproject.org wrote: On 27 April 2015 at 07:22, Timo Sintonen via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: Oops, I forget to uncomment the m4 options. The correct version is

Re: SDC needs you -- redux

2015-04-27 Thread Suliman via Digitalmars-d
On Monday, 27 April 2015 at 06:06:22 UTC, deadalnix wrote: On Sunday, 26 April 2015 at 20:44:00 UTC, Johan Engelen wrote: I'd like to contribute to SDC too, but... the current build system (Makefile) keeps me from working on it: I mostly work on Windows, and I do not want to use

Re: Updating ddoc to support modern HTML tags

2015-04-27 Thread Kagamin via Digitalmars-d
On Monday, 20 April 2015 at 19:42:43 UTC, Gary Willoughby wrote: I've just done a little bit of work on the ddoc documentation and it was brought to my attention that the HTML output of ddoc is actually quite old. Some of the current tags are deprecated. I've raised this as an issue here:

Re: D 2.067.1

2015-04-27 Thread Robert burner Schadek via Digitalmars-d-announce
awesome job

[Issue 14006] Contribute button/option on the main site and sitemap

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14006 Gary Willoughby d...@nomad.so changed: What|Removed |Added Keywords|pull| --- Comment #2 from Gary

Re: array operations and ranges

2015-04-27 Thread via Digitalmars-d
On Monday, 27 April 2015 at 06:52:11 UTC, Manu wrote: On 27 April 2015 at 15:58, Vlad Levenfeld via Digitalmars-d digitalmars-d@puremagic.com wrote: Phobos containers already support the first line, and it would be a natural extension to make them support the second. Sure, it's not

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Iain Buclaw via Digitalmars-d
On 27 April 2015 at 07:22, Timo Sintonen via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: Oops, I forget to uncomment the m4 options. The correct version is And I replace the whole gcc/config/arm/t-arm-elf with this:

[Issue 14508] compiling with -unittest instantiates templates in non-root modules

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14508 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

[Issue 13454] Unit tests should be compiled in a module, where they are declared

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13454 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment #1 from

Re: Adding Radix Sort into Phobos

2015-04-27 Thread via Digitalmars-d
On Sunday, 26 April 2015 at 17:31:58 UTC, Martin Nowak wrote: On 04/26/2015 09:16 AM, Per =?UTF-8?B?Tm9yZGzDtnci?= per.nord...@gmail.com wrote: I have a radix sort implementation at https://github.com/nordlow/justd/blob/master/intsort.d#L92intsort.d which beats Phobos own Quicksort by a

[Issue 14473] Remove deprecated HTML tags from ddoc output

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14473 Sobirari Muhomori dfj1es...@sneakemail.com changed: What|Removed |Added See Also|

[Issue 2060] some ddoc design typos

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2060 Sobirari Muhomori dfj1es...@sneakemail.com changed: What|Removed |Added See Also|

Re: Silicon Valley D Meetup April 23, 2015

2015-04-27 Thread Filippo Fantini via Digitalmars-d-announce
On Friday, 17 April 2015 at 22:39:11 UTC, Ali Çehreli wrote: We are having lightning talks: http://www.meetup.com/D-Lang-Silicon-Valley/events/221371799/ We need more speakers. Thank you, Ali Hi, Has this meeting been recorded or are there some slides/material?

[Issue 14505] File doesn't rewind read pointer for a+ mode on Windows DMC

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14505 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

Re: D 2.067.1

2015-04-27 Thread Martin Nowak via Digitalmars-d-announce
On Sunday, 26 April 2015 at 22:05:36 UTC, Dicebot wrote: Side note : when updating Arch package to 2.067.1 I decided to add `-L-lcurl` option to default `dmd.conf` in context of recent discussion on topic. Please report if that causes any issues with link order bugs - I couldn't trigger any

Re: SDC needs you -- redux

2015-04-27 Thread deadalnix via Digitalmars-d
On Sunday, 26 April 2015 at 20:44:00 UTC, Johan Engelen wrote: I'd like to contribute to SDC too, but... the current build system (Makefile) keeps me from working on it: I mostly work on Windows, and I do not want to use MinGW/MSYS/Cygwin for this. CMake would be a much nicer buildsystem for

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Martin Nowak via Digitalmars-d
On Monday, 27 April 2015 at 05:30:55 UTC, Timo Sintonen wrote: One of the biggest issues has been the multilib build. If it is solved now we are one step closer to be able to build binaries. Great, I tried to find out how GDC binaries are build, but couldn't find any script. How much stuff

Re: [OT] compiler optimisations

2015-04-27 Thread via Digitalmars-d
On Sunday, 26 April 2015 at 23:05:28 UTC, weaselcat wrote: On Sunday, 26 April 2015 at 22:41:22 UTC, Ola Fosheim Grøstad wrote: Oh well, I don't think these debates have any effect on that. People probably have an ability to set their own priorities whether it is family or hackatons. I think

[Issue 13454] Unit tests should be compiled in a module, where they are declared

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13454 --- Comment #2 from Martin Nowak c...@dawg.eu --- Also see https://github.com/D-Programming-Language/druntime/pull/990 --

[Issue 14502] dmd -O optimization breaks app

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14502 --- Comment #2 from Tomáš Chaloupka chalu...@gmail.com --- I can confirm, that the problem still exists for 2.067.1 Only it sometimes behaves differently. On the first try it worked, but after that no.. Once it ended up with: *** Error in `./test':

Re: C++ interface problem

2015-04-27 Thread Laeeth Isharc via Digitalmars-d-learn
On Sunday, 26 April 2015 at 15:49:46 UTC, extrawurst wrote: I hope someone can tell me where my bug is. I am linking to a dynamic library with C++ interfaces: ``` //alias S = ulong; struct S { ulong data; } extern(C) I getI(); extern(C++) interface I { void foo(); S bar(); } ``` now

[Issue 14512] New: faster profiler

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14512 Issue ID: 14512 Summary: faster profiler Product: D Version: unspecified Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P1

[Issue 14512] faster profiler

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14512 Martin Nowak c...@dawg.eu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: Trial migration of Dsource bindings project to Github

2015-04-27 Thread Kagamin via Digitalmars-d-announce
On Friday, 24 April 2015 at 21:45:08 UTC, Stewart Gordon wrote: ?? I've had a quick look, and can't at the moment see what in that thread relates to using SVN. It discusses acceptability of any alternative to git workflow, patches in that case.

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Timo Sintonen via Digitalmars-d
On Monday, 27 April 2015 at 10:46:09 UTC, Jens Bauer wrote: On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: I have also tried for years to build a working multilib without success. {snip} Please note: This is the first time ever I have suceeded. This will not work with any

Re: C++ interface problem

2015-04-27 Thread Benjamin Thaut via Digitalmars-d-learn
On Monday, 27 April 2015 at 13:08:33 UTC, extrawurst wrote: Don't ask me about the compiler, like stated above I have no control over the binaries, it is proprietary. Thats bad to start with. the C++ class basically is: ``` class S { union SteamID_t { struct

[Issue 14505] File doesn't rewind read pointer for a+ mode on Windows DMC

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14505 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC|

Re: D needs emplacement new

2015-04-27 Thread Namespace via Digitalmars-d
Since nobody wants to take that work, can at least someone explain me what is going on if I don't reinitialize the memorY? I create 1000 Foo's 1000 times. After the first iteration there are 1000 unused Foo objects and the GC wants to reallocate another 1000 Foo's. Now, what happen? The GC sees

[Issue 13534] std.variant can violate memory safety

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13534 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13534] std.variant can violate memory safety

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13534 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/38a29b2d56e91404bfe860b54b699783347b0ea5 remove @trusted: from

Re: A valid code that won't run?

2015-04-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-25 08:42, Iain Buclaw via Digitalmars-d wrote: Doesn't DMD use dmd.conf for these? No, on OS X DMD adds the following when calling GCC: -lphobos2 -lpthread -lm -- /Jacob Carlborg

Re: dsource.org moved

2015-04-27 Thread Kagamin via Digitalmars-d-announce
On Saturday, 25 April 2015 at 03:36:24 UTC, Rikki Cattermole wrote: [0] http://www.sourcetreeapp.com/ Git got a proper visualization of commit tree? :)

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Iain Buclaw via Digitalmars-d
On 27 April 2015 at 15:05, Jens Bauer via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 27 April 2015 at 05:56:11 UTC, Iain Buclaw wrote: On 26 April 2015 at 22:41, Jens Bauer via Digitalmars-d digitalmars-d@puremagic.com wrote: {snip} The reason I cannot build GDC with

Re: [hackathon] My and Walter's ideas

2015-04-27 Thread Steven Schveighoffer via Digitalmars-d
On 4/27/15 7:10 AM, Martin Nowak wrote: On Monday, 27 April 2015 at 10:56:17 UTC, Steven Schveighoffer wrote: The only thing is to have a malloc-based AA for tracking

[Issue 13454] Unit tests should be compiled in a module, where they are declared

2015-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13454 --- Comment #6 from Dicebot pub...@dicebot.lv --- Otherwise, you'll end up getting stuff like Phobos' unit test code in your application when you compile it with -unittest And this is _exactly_ what I want by default. Phobos is compiled without

Re: Quit running foreign unittests _

2015-04-27 Thread Steven Schveighoffer via Digitalmars-d
On 4/27/15 6:20 AM, Dicebot wrote: On Monday, 27 April 2015 at 10:15:20 UTC, Kagamin wrote: On Monday, 27 April 2015 at 09:22:48 UTC, Dicebot wrote: Compiling tests of dependencies pretty much never causes any notable slowdown. This thread doesn't support that view, see the first post.

Re: A valid code that won't run?

2015-04-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-24 22:27, Steven Schveighoffer wrote: If pragma(lib, libcurl); doesn't work normally, then we should remove std.net.curl, and put it in dub. It doesn't work with GDC. -- /Jacob Carlborg

Re: C++ interface problem

2015-04-27 Thread Benjamin Thaut via Digitalmars-d-learn
On Monday, 27 April 2015 at 11:00:23 UTC, extrawurst wrote: Thought about that too and tried uint aswell. does not work either.. Please post the c++ declarations as well. Which c++ compiler do you use for win32? (dmc or msvc) Kind Regards Benjamin

Re: D needs emplacement new

2015-04-27 Thread anonymous via Digitalmars-d
On Monday, 27 April 2015 at 11:47:46 UTC, Namespace wrote: I create 1000 Foo's 1000 times. After the first iteration there are 1000 unused Foo objects and the GC wants to reallocate another 1000 Foo's. Now, what happen? The GC sees that the previous 1000 objects are unused, remove them and

Re: D needs emplacement new

2015-04-27 Thread via Digitalmars-d
On Monday, 27 April 2015 at 13:12:51 UTC, anonymous wrote: You can store the pointer as a size_t on the GC heap, and the GC will not regard it as a pointer. Doesn't the GC regard every 4/8 sequence of bytes as a pointer?

Re: D 2.067.1

2015-04-27 Thread Dicebot via Digitalmars-d-announce
On Monday, 27 April 2015 at 07:38:52 UTC, Martin Nowak wrote: On Sunday, 26 April 2015 at 22:05:36 UTC, Dicebot wrote: Side note : when updating Arch package to 2.067.1 I decided to add `-L-lcurl` option to default `dmd.conf` in context of recent discussion on topic. Please report if that

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Jens Bauer via Digitalmars-d
On Monday, 27 April 2015 at 05:56:11 UTC, Iain Buclaw wrote: On 26 April 2015 at 22:41, Jens Bauer via Digitalmars-d digitalmars-d@puremagic.com wrote: {snip} The reason I cannot build GDC with multilib, is that I get a compile-error when building the final GCC+GDC. Correction: it's a

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Timo Sintonen via Digitalmars-d
On Monday, 27 April 2015 at 07:34:52 UTC, Mike wrote: On Monday, 27 April 2015 at 05:22:55 UTC, Timo Sintonen wrote: On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: Oops, I forget to uncomment the m4 options. The correct version is And I replace the whole

Re: C++ interface problem

2015-04-27 Thread extrawurst via Digitalmars-d-learn
On Monday, 27 April 2015 at 12:56:57 UTC, Benjamin Thaut wrote: On Monday, 27 April 2015 at 11:00:23 UTC, extrawurst wrote: Thought about that too and tried uint aswell. does not work either.. Please post the c++ declarations as well. Which c++ compiler do you use for win32? (dmc or msvc)

Re: Quit running foreign unittests _

2015-04-27 Thread Ivan Kazmenko via Digitalmars-d
On Monday, 27 April 2015 at 11:30:04 UTC, Steven Schveighoffer wrote: The problem is as follows: 1. Unit tests for some library are written for that library. They are written to run tests during unit tests of that library only (possibly with certain requirements of environment, including

Re: @disable assignment of [] literal?

2015-04-27 Thread Kagamin via Digitalmars-d-learn
Use a different type to match empty slice instead of void[]? struct ArrayWrapper(T) { T t; this(T t) { assert(t !is null); } @disable this(typeof(null)); @disable this(ArrayWrapper[]); //should match [] typeof(this) opAssign(T val) {

Re: D needs emplacement new

2015-04-27 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 27 April 2015 at 13:29:03 UTC, Casper Færgemand wrote: Doesn't the GC regard every 4/8 sequence of bytes as a pointer? Only on the stack. On the heap, it knows what type the data is and if it has a pointer or not.

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Timo Sintonen via Digitalmars-d
On Monday, 27 April 2015 at 07:55:10 UTC, Martin Nowak wrote: Great, I tried to find out how GDC binaries are build, but couldn't find any script. Instructions here: http://wiki.dlang.org/GDC/Cross_Compiler/Generic or here: https://bitbucket.org/timosi/minlibd/wiki/gdc_cross_compiler There

Re: Weird OSX issue

2015-04-27 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/25/15 3:07 AM, Dan Olson wrote: Jacob Carlborg d...@me.com writes: On 2015-04-24 20:37, Steven Schveighoffer wrote: So am I going crazy? Or is dmd doing things differently depending on where its environment is? Any compiler gurus out there understand why the symbol is different? I

Re: How does D improve on C++17?

2015-04-27 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 27 April 2015 at 21:56:56 UTC, Meta wrote: On Monday, 27 April 2015 at 20:56:06 UTC, Andrei Alexandrescu wrote: On 4/27/15 2:13 AM, Idan Arye wrote: On Monday, 27 April 2015 at 01:28:01 UTC, Walter Bright wrote: Now on the front page of Hacker News! https://news.ycombinator.com/

Re: Interrogative: What's a good blog title?

2015-04-27 Thread Meta via Digitalmars-d
On Monday, 27 April 2015 at 22:54:07 UTC, Andrei Alexandrescu wrote: I don't have a blog, and was thinking of starting one. E.g. the article on tracing allocations needs a home! I was wondering if you have any good ideas of what's a good blog name. I'd avoid branding my blog with my longish

Re: ARM Cortex-M Microcontroller startup files

2015-04-27 Thread Mike via Digitalmars-d
On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote: I have also tried for years to build a working multilib without success. Now I think I have been able to get all versions to work. I welcome everyone to test and report if this works. The build script: ../gcc/configure

Re: Interrogative: What's a good blog title?

2015-04-27 Thread Dennis Ritchie via Digitalmars-d
On Monday, 27 April 2015 at 22:54:07 UTC, Andrei Alexandrescu wrote: I don't have a blog, and was thinking of starting one. E.g. the article on tracing allocations needs a home! I was wondering if you have any good ideas of what's a good blog name. I'd avoid branding my blog with my longish

Re: array operations and ranges

2015-04-27 Thread Manu via Digitalmars-d
On 28 April 2015 at 06:42, John Colvin via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 27 April 2015 at 06:52:11 UTC, Manu wrote: On 27 April 2015 at 15:58, Vlad Levenfeld via Digitalmars-d digitalmars-d@puremagic.com wrote: Phobos containers already support the first line,

Re: How does D improve on C++17?

2015-04-27 Thread Meta via Digitalmars-d
On Monday, 27 April 2015 at 20:56:06 UTC, Andrei Alexandrescu wrote: On 4/27/15 2:13 AM, Idan Arye wrote: On Monday, 27 April 2015 at 01:28:01 UTC, Walter Bright wrote: Now on the front page of Hacker News! https://news.ycombinator.com/ https://news.ycombinator.com/item?id=9443462 Because

  1   2   >