Re: What is the right level of abstractions for D?

2016-10-26 Thread Joakim via Digitalmars-d
On Thursday, 27 October 2016 at 06:22:03 UTC, Joakim wrote: I noticed that Richard Gabriel, one of the designers of Common Lisp, is on the committee for the new conference that Andrei mentioned here, so I went back and checked out his website again: http://dreamsongs.com. I mentioned his famo

What is the right level of abstractions for D?

2016-10-26 Thread Joakim via Digitalmars-d
I noticed that Richard Gabriel, one of the designers of Common Lisp, is on the committee for the new conference that Andrei mentioned here, so I went back and checked out his website again: http://dreamsongs.com. I mentioned his famous "Worse is better" essay here a couple years ago: http:/

Re: Replace/Rename DWT forum with GUIs forum?

2016-10-26 Thread Puming via Digitalmars-d
On Thursday, 22 September 2016 at 05:48:42 UTC, Vadim Lopatin wrote: On Sunday, 18 September 2016 at 23:21:26 UTC, Gerald wrote: I would like to suggest that the existing DWT forum be renamed or replaced with a more generic GUIs forum. As far as I can tell, the DWT forum doesn't get much traffi

Re: Replace/Rename DWT forum with GUIs forum?

2016-10-26 Thread Vadim Lopatin via Digitalmars-d
On Sunday, 18 September 2016 at 23:21:26 UTC, Gerald wrote: I would like to suggest that the existing DWT forum be renamed or replaced with a more generic GUIs forum. As far as I can tell, the DWT forum doesn't get much traffic these days and I don't believe any of the current GUI options for D

Re: The build is broken when using gcc 6

2016-10-26 Thread Stefan Koch via Digitalmars-d
On Thursday, 27 October 2016 at 05:15:26 UTC, deadalnix wrote: On Thursday, 27 October 2016 at 04:41:38 UTC, Stefan Koch wrote: On Thursday, 27 October 2016 at 04:39:03 UTC, mogu wrote: On Thursday, 27 October 2016 at 04:33:30 UTC, Stefan Koch wrote: On Thursday, 27 October 2016 at 02:36:13 UTC

Re: The build is broken when using gcc 6

2016-10-26 Thread deadalnix via Digitalmars-d
On Thursday, 27 October 2016 at 04:41:38 UTC, Stefan Koch wrote: On Thursday, 27 October 2016 at 04:39:03 UTC, mogu wrote: On Thursday, 27 October 2016 at 04:33:30 UTC, Stefan Koch wrote: On Thursday, 27 October 2016 at 02:36:13 UTC, Stefam Koch wrote: Trivial. Fix is comeing. Okay it was

Re: The build is broken when using gcc 6

2016-10-26 Thread H. S. Teoh via Digitalmars-d
On Thu, Oct 27, 2016 at 04:33:30AM +, Stefan Koch via Digitalmars-d wrote: > On Thursday, 27 October 2016 at 02:36:13 UTC, Stefam Koch wrote: > > > Trivial. > > Fix is comeing. > > Okay it was less trivial then it should have been. > Great job gcc. I complained about this a few months ago an

Re: The build is broken when using gcc 6

2016-10-26 Thread Stefan Koch via Digitalmars-d
On Thursday, 27 October 2016 at 04:39:03 UTC, mogu wrote: On Thursday, 27 October 2016 at 04:33:30 UTC, Stefan Koch wrote: On Thursday, 27 October 2016 at 02:36:13 UTC, Stefam Koch wrote: Trivial. Fix is comeing. Okay it was less trivial then it should have been. Great job gcc. -Wno-narro

Re: The build is broken when using gcc 6

2016-10-26 Thread mogu via Digitalmars-d
On Thursday, 27 October 2016 at 04:33:30 UTC, Stefan Koch wrote: On Thursday, 27 October 2016 at 02:36:13 UTC, Stefam Koch wrote: Trivial. Fix is comeing. Okay it was less trivial then it should have been. Great job gcc. -Wno-narrowing does not cover all g++ tasks.

Re: The build is broken when using gcc 6

2016-10-26 Thread Stefan Koch via Digitalmars-d
On Thursday, 27 October 2016 at 02:36:13 UTC, Stefam Koch wrote: Trivial. Fix is comeing. Okay it was less trivial then it should have been. Great job gcc.

Re: The bug tracker certificate is expired

2016-10-26 Thread Stefam Koch via Digitalmars-d
On Thursday, 27 October 2016 at 02:33:40 UTC, Seb wrote: On Thursday, 27 October 2016 at 02:24:16 UTC, deadalnix wrote: The title says it all. The certificate for https://d.puremagic.com/issues/ is expired. Hasn't the issue tracker been moved to https://issues.dlang.org since ages? This i

Re: The build is broken when using gcc 6

2016-10-26 Thread Stefam Koch via Digitalmars-d
On Thursday, 27 October 2016 at 02:26:36 UTC, deadalnix wrote: $ make -f posix.mak make -C src -f posix.mak make[1]: Entering directory '/home/deadalnix/d/dmd/src' no cpu specified, assuming X86 (CC) BACK_OBJS backend/cg87.c c++ -c -Wno-deprecated -Wstrict-aliasing -fno-exceptions -fno-rtti

The build is broken when using gcc 6

2016-10-26 Thread deadalnix via Digitalmars-d
$ make -f posix.mak make -C src -f posix.mak make[1]: Entering directory '/home/deadalnix/d/dmd/src' no cpu specified, assuming X86 (CC) BACK_OBJS backend/cg87.c c++ -c -Wno-deprecated -Wstrict-aliasing -fno-exceptions -fno-rtti -D__pascal= -DMARS=1 -DTARGET_LINUX=1 -DDM_TARGET_CPU_X86=1 -m6

Re: The bug tracker certificate is expired

2016-10-26 Thread Seb via Digitalmars-d
On Thursday, 27 October 2016 at 02:24:16 UTC, deadalnix wrote: The title says it all. The certificate for https://d.puremagic.com/issues/ is expired. Hasn't the issue tracker been moved to https://issues.dlang.org since ages?

The bug tracker certificate is expired

2016-10-26 Thread deadalnix via Digitalmars-d
The title says it all. The certificate for https://d.puremagic.com/issues/ is expired.

Re: Linus' idea of "good taste" code

2016-10-26 Thread Walter Bright via Digitalmars-d
On 10/26/2016 4:21 PM, sarn wrote: I like using D's nested functions for simplifying code in the same kind of way. Sometimes a tiny helper function can make a big difference. I've also found that nested functions can nicely fix spaghetti code.

Re: Mir GLAS is a C library and passes Natlib's test suite! And questions :-)

2016-10-26 Thread rikki cattermole via Digitalmars-d
Please wait around a year after the last major breaking api change. Its the kind of library that will be severely limited by Phobos requirements. After all by your own post, the API still needs a lot of work done to it and this way it can mature up nicely.

Re: Linus' idea of "good taste" code

2016-10-26 Thread sarn via Digitalmars-d
On Wednesday, 26 October 2016 at 10:48:34 UTC, Marco Leise wrote: On a more controversial note, I sometimes replace nested blocks of conditionals and loops with flat spaghetti code and goto with verbose labels. There are situations where you can explain straight forward what needs to be done fi

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

2016-10-26 Thread Basile B. via Digitalmars-d
On Wednesday, 26 October 2016 at 16:12:26 UTC, Timothee Cour wrote: It should just be implied by -unittest! +1 On Wed, Oct 26, 2016 at 7:49 AM, Nick Sabalausky via Digitalmars-d < digitalmars-d@puremagic.com> wrote: On 10/26/2016 09:25 AM, Adam D. Ruppe wrote: On Wednesday, 26 October 20

Re: Mir GLAS is a C library and passes Natlib's test suite! And questions :-)

2016-10-26 Thread Ilya Yaroshenko via Digitalmars-d
On Wednesday, 26 October 2016 at 20:23:01 UTC, jmh530 wrote: On Wednesday, 26 October 2016 at 19:59:21 UTC, Ilya Yaroshenko wrote: Thanks!

Re: Linus' idea of "good taste" code

2016-10-26 Thread Walter Bright via Digitalmars-d
On 10/26/2016 6:20 AM, Adam D. Ruppe wrote: I find the most elegant bug fixes tend to be the ones with an overall reduction of code. Though, sometimes things are rotten to the core and that net change of -10 lines comes from a +330, -340 diff Elegant fixes tend to mean a refactoring is inc

Re: Mir GLAS is a C library and passes Natlib's test suite! And questions :-)

2016-10-26 Thread jmh530 via Digitalmars-d
On Wednesday, 26 October 2016 at 19:59:21 UTC, Ilya Yaroshenko wrote: Mir GLAS (Generic Linear Algebra Subprograms) has its own repository [1] now. Keep up the good work! On the read-me page, I have a few suggestions for improvements. The installation section could use some improvement. Most

Mir GLAS is a C library and passes Natlib's test suite! And questions :-)

2016-10-26 Thread Ilya Yaroshenko via Digitalmars-d
Mir GLAS (Generic Linear Algebra Subprograms) has its own repository [1] now. Big news: 1. Mir GLAS does not require D / C++ runtime and can be used in any programming language as common C library! See read README [1] for more details. 2. Netlib's BLAS test suite are part of CI testing. 3.

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

2016-10-26 Thread Sönke Ludwig via Digitalmars-d
Am 26.10.2016 um 19:58 schrieb Adam D. Ruppe: On Wednesday, 26 October 2016 at 17:47:51 UTC, Sönke Ludwig wrote: I misremembered this as getting called once per module, which would have been insufficient. Yeah, I don't love the name either. But you should be able to set that in a static modul

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

2016-10-26 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 26 October 2016 at 17:47:51 UTC, Sönke Ludwig wrote: I misremembered this as getting called once per module, which would have been insufficient. Yeah, I don't love the name either. But you should be able to set that in a static module ctor in your library (bonus points, even com

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

2016-10-26 Thread Sönke Ludwig via Digitalmars-d
Am 26.10.2016 um 18:32 schrieb Adam D. Ruppe: On Wednesday, 26 October 2016 at 16:08:23 UTC, Sönke Ludwig wrote: How would a custom unit test runner such as "unit-threaded" or "tested" work in that case? http://dpldocs.info/experimental-docs/core.runtime.Runtime.moduleUnitTester.1.html http:

Re: Namespace for a module defined by its import path

2016-10-26 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 26 October 2016 at 09:53:35 UTC, Jeff Thompson wrote: On Wednesday, 26 October 2016 at 07:57:57 UTC, Mike Parker wrote: On Wednesday, 26 October 2016 at 07:14:30 UTC, Jeff Thompson wrote: dmd -I/commit_b3bf5c7725c98ee3e49dfc4e47318162f138fe94/version/ main.d dmd -I//commit_d

Re: D garbage collector and real-time systems

2016-10-26 Thread John Colvin via Digitalmars-d
On Wednesday, 26 October 2016 at 16:15:19 UTC, Tom wrote: My apologies for posting a question and then disappearing for eighteen months. I thought it might be useful if I posted some feedback here. We ended up going with Lua here. The main point in favour was the iterative GC which can be i

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

2016-10-26 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 26 October 2016 at 16:08:23 UTC, Sönke Ludwig wrote: How would a custom unit test runner such as "unit-threaded" or "tested" work in that case? http://dpldocs.info/experimental-docs/core.runtime.Runtime.moduleUnitTester.1.html http://dlang.org/phobos/core_runtime.html#.Runtime.mo

Re: D garbage collector and real-time systems

2016-10-26 Thread Tom via Digitalmars-d
On Friday, 30 January 2015 at 11:54:54 UTC, Martin Nowak wrote: On 01/28/2015 09:12 AM, Mike wrote: Note that D has 3 built-in types: exceptions, dynamic arrays, and associative arrays, that may be difficult to use without the GC: http://dlang.org/builtin.html. 4 actually, if you count del

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

2016-10-26 Thread Timothee Cour via Digitalmars-d
>> It should just be implied by -unittest! +1 On Wed, Oct 26, 2016 at 7:49 AM, Nick Sabalausky via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On 10/26/2016 09:25 AM, Adam D. Ruppe wrote: > >> On Wednesday, 26 October 2016 at 08:15:44 UTC, Basile B. wrote: >> >>> What would be possibl

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

2016-10-26 Thread Sönke Ludwig via Digitalmars-d
Am 26.10.2016 um 15:25 schrieb Adam D. Ruppe: On Wednesday, 26 October 2016 at 08:15:44 UTC, Basile B. wrote: What would be possible is a "-fdmain" switch (force dummy main). It should just be implied by -unittest! The only cast I'd be worried about is an explicit version(unittest) main() {}.

Re: Linus' idea of "good taste" code

2016-10-26 Thread Nick Sabalausky via Digitalmars-d
On 10/26/2016 06:42 AM, Walter Bright wrote: Reminds me of: 1. newbie - follows the rules because he's told to 2. master - follows the rules because he understands them 3. guru - breaks the rules because he understands that they don't apply I always liked that principle. Tao Te Ching, if I'm

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

2016-10-26 Thread Nick Sabalausky via Digitalmars-d
On 10/26/2016 09:25 AM, Adam D. Ruppe wrote: On Wednesday, 26 October 2016 at 08:15:44 UTC, Basile B. wrote: What would be possible is a "-fdmain" switch (force dummy main). It should just be implied by -unittest! The only cast I'd be worried about is an explicit version(unittest) main() {}..

Re: Linus' idea of "good taste" code

2016-10-26 Thread Mark via Digitalmars-d
On Tuesday, 25 October 2016 at 22:53:54 UTC, Walter Bright wrote: It's a small bit, but the idea here is to eliminate if conditionals where possible: https://medium.com/@bartobri/applying-the-linus-tarvolds-good-taste-coding-requirement-99749f37684a#.nhth1eo4e What would you say is the best

Re: Linus' idea of "good taste" code

2016-10-26 Thread Mark via Digitalmars-d
On Tuesday, 25 October 2016 at 22:53:54 UTC, Walter Bright wrote: It's a small bit, but the idea here is to eliminate if conditionals where possible: https://medium.com/@bartobri/applying-the-linus-tarvolds-good-taste-coding-requirement-99749f37684a#.nhth1eo4e This is something we could all do

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

2016-10-26 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 26 October 2016 at 08:15:44 UTC, Basile B. wrote: What would be possible is a "-fdmain" switch (force dummy main). It should just be implied by -unittest! The only cast I'd be worried about is an explicit version(unittest) main() {}... then maybe the user wanted something speci

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

2016-10-26 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 26 October 2016 at 05:32:51 UTC, Jonathan M Davis wrote: However, I bet that if we changed it, _someone_ would complain. Let them complain. At some point, we gotta rip off the band aid, let it go, the past is in the past.

Re: Linus' idea of "good taste" code

2016-10-26 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 26 October 2016 at 09:41:42 UTC, Walter Bright wrote: 6. Nearly all bugs can be fixed with under 10 lines of code, and quite a few with 1 line. It's always a red flag for me when a fix PR has 200+ lines of code (test case lines of code don't count, neither do comments). I find t

Re: Namespace for a module defined by its import path

2016-10-26 Thread Mike Parker via Digitalmars-d
On Wednesday, 26 October 2016 at 09:53:35 UTC, Jeff Thompson wrote: var Utils1 = require('commit_b3bf5c7/utils.js').Utils; var Utils2 = require('commit_df0741a/utils.js').Utils; That works because require operates in terms of files, not modules. In D, module and package names may have a def

Re: Linus' idea of "good taste" code

2016-10-26 Thread Andrea Fontana via Digitalmars-d
On Wednesday, 26 October 2016 at 09:41:42 UTC, Walter Bright wrote: 7. If you're stuck on a programming problem, go out for a jog. I often find the answer that way. What can I say, it works for me. It's a common way to solve problem. Just concentrate yourself on something more pratical than p

Re: Linus' idea of "good taste" code

2016-10-26 Thread Chris via Digitalmars-d
On Wednesday, 26 October 2016 at 09:41:42 UTC, Walter Bright wrote: On 10/25/2016 5:19 PM, bluecat wrote: [snip] I largely agree with your points 1.-7. (especially 1. and 7.). Also that gathering the data and acting upon it should be separate. However, principles might be at loggerheads. E.

Re: Linus' idea of "good taste" code

2016-10-26 Thread Marco Leise via Digitalmars-d
Am Tue, 25 Oct 2016 15:53:54 -0700 schrieb Walter Bright : > It's a small bit, but the idea here is to eliminate if conditionals where > possible: > > https://medium.com/@bartobri/applying-the-linus-tarvolds-good-taste-coding-requirement-99749f37684a#.nhth1eo4e > > This is something we could al

Re: Linus' idea of "good taste" code

2016-10-26 Thread Walter Bright via Digitalmars-d
On 10/26/2016 2:54 AM, Dicebot wrote: I find it both funny and saddening how many reddit commentators complained about Linus version of that code is over-complicated. "Prefer clear code over smart code" principle is good in general but sometimes it is over-applied to the point where incompetence

Re: Linus' idea of "good taste" code

2016-10-26 Thread Walter Bright via Digitalmars-d
On 10/25/2016 3:53 PM, Walter Bright wrote: https://medium.com/@bartobri/applying-the-linus-tarvolds-good-taste-coding-requirement-99749f37684a#.nhth1eo4e The Hacker News thread: https://news.ycombinator.com/item?id=12793624

[RFC] Runtime, interfaces and implementations.

2016-10-26 Thread Dejan Lekic via Digitalmars-d
I have mentioned this on IRC quite few times in the past years, as well here on the newsgroups... I really think the D runtime should have a std.api package containing what I call "module interfaces" (something similar to how Modula-3 treats interfaces and modules), and all existing std modul

Re: Namespace for a module defined by its import path

2016-10-26 Thread Dicebot via Digitalmars-d
On 10/24/2016 11:06 PM, Jeff Thompson wrote: > ... If I really had to do something like that and there was no other way, I'd most likely resort to auto-generating such module names during build pipeline. signature.asc Description: OpenPGP digital signature

Re: Linus' idea of "good taste" code

2016-10-26 Thread Dicebot via Digitalmars-d
On 10/26/2016 12:53 AM, Walter Bright wrote: > It's a small bit, but the idea here is to eliminate if conditionals > where possible: > > https://medium.com/@bartobri/applying-the-linus-tarvolds-good-taste-coding-requirement-99749f37684a#.nhth1eo4e I find it both funny and saddening how many reddi

Re: Namespace for a module defined by its import path

2016-10-26 Thread Jeff Thompson via Digitalmars-d
On Wednesday, 26 October 2016 at 07:57:57 UTC, Mike Parker wrote: On Wednesday, 26 October 2016 at 07:14:30 UTC, Jeff Thompson wrote: dmd -I/commit_b3bf5c7725c98ee3e49dfc4e47318162f138fe94/version/ main.d dmd -I//commit_df0741a84c8a967ea08674090afdff4e9a58d23e/version/ main.d This will

Re: Linus' idea of "good taste" code

2016-10-26 Thread Walter Bright via Digitalmars-d
On 10/25/2016 5:19 PM, bluecat wrote: Interesting, that's going in my tips.txt file. Quick question, if you don't mind. What would be the top three things you've learned that significantly made you a better programmer? Ha, great question. Never thought about it before. Off the top of my head:

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

2016-10-26 Thread Basile B. via Digitalmars-d
On Wednesday, 26 October 2016 at 09:22:23 UTC, pineapple wrote: On Wednesday, 26 October 2016 at 08:15:44 UTC, Basile B. wrote: What would be possible is a "-fdmain" switch (force dummy main). Its role would be: if a functionDeclaration named "main" is present then this normal "main" is not use

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

2016-10-26 Thread pineapple via Digitalmars-d
On Wednesday, 26 October 2016 at 08:15:44 UTC, Basile B. wrote: What would be possible is a "-fdmain" switch (force dummy main). Its role would be: if a functionDeclaration named "main" is present then this normal "main" is not used (technically erased from the AST or something like that). Then

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

2016-10-26 Thread Basile B. via Digitalmars-d
On Wednesday, 26 October 2016 at 05:24:45 UTC, deadalnix wrote: Seriously that makes no sense, almost everybody has it own hack to have a different main when building for unitests, and we look like clown. [...] Can I have my unittest build do not complain if there is no main and not run main ?

Re: Namespace for a module defined by its import path

2016-10-26 Thread deadalnix via Digitalmars-d
On Wednesday, 26 October 2016 at 07:14:30 UTC, Jeff Thompson wrote: This will force the application to use either one version or the other. As I said, it's a large application. I different parts of the same application to be able to import the version they need. Unless there are some part of

Re: Namespace for a module defined by its import path

2016-10-26 Thread Mike Parker via Digitalmars-d
On Wednesday, 26 October 2016 at 07:14:30 UTC, Jeff Thompson wrote: dmd -I/commit_b3bf5c7725c98ee3e49dfc4e47318162f138fe94/version/ main.d dmd -I//commit_df0741a84c8a967ea08674090afdff4e9a58d23e/version/ main.d This will force the application to use either one version or the other. As I

Re: Namespace for a module defined by its import path

2016-10-26 Thread Jeff Thompson via Digitalmars-d
On Wednesday, 26 October 2016 at 01:15:02 UTC, Mike Parker wrote: On Tuesday, 25 October 2016 at 22:25:51 UTC, Jeff Thompson wrote: On Tuesday, 25 October 2016 at 19:54:42 UTC, Jonathan Marler wrote: On Tuesday, 25 October 2016 at 06:47:14 UTC, Jeff Thompson wrote: [...] Sorry if I didn't un