Re: Is it possible to request a code review?

2017-12-15 Thread IM via Digitalmars-d
On Friday, 15 December 2017 at 21:34:48 UTC, Neia Neutuladh wrote: On Wednesday, 13 December 2017 at 03:15:11 UTC, IM wrote: https://code.dlang.org/packages/libdtasks I'd get rid of the ITaskRunner interface and rename AbstractTaskRunner to TaskRunner. Interfaces are fine when you need them,

[your code here]

2017-12-15 Thread allnewso via Digitalmars-d
namespace Ethplorer \ UnitTest ; ใช้ ข้อยกเว้น ; ใช้ PHPUnit_Framework_TestCase ; / ** * ทดสอบ Ethplorer API * / class Api_Test ขยาย PHPUnit_Framework_TestCase { protected $ url = ' https://api.ethplorer.io/ ' ; / ** * @return void * / การ ตั้งค่าฟังก์ชัน สาธารณะ ()

Re: Wiki down?

2017-12-15 Thread John Gabriele via Digitalmars-d
On Friday, 15 December 2017 at 21:25:52 UTC, H. S. Teoh wrote: On Fri, Dec 15, 2017 at 08:40:17PM +, John Gabriele via Digitalmars-d wrote: Not sure where to mention this, but it appears that the wiki's down (for me at least). I can ping it, but it won't come up in my browser. Down for me

Re: Wiki down?

2017-12-15 Thread H. S. Teoh via Digitalmars-d
On Fri, Dec 15, 2017 at 08:40:17PM +, John Gabriele via Digitalmars-d wrote: > Not sure where to mention this, but it appears that the wiki's down > (for me at least). I can ping it, but it won't come up in my browser. Down for me too. It comes up with a message saying they're experiencing tec

Re: Is it possible to request a code review?

2017-12-15 Thread Neia Neutuladh via Digitalmars-d
On Wednesday, 13 December 2017 at 03:15:11 UTC, IM wrote: https://code.dlang.org/packages/libdtasks I'd get rid of the ITaskRunner interface and rename AbstractTaskRunner to TaskRunner. Interfaces are fine when you need them, but you rarely need them. You can just make PostTaskAndReply non-f

Wiki down?

2017-12-15 Thread John Gabriele via Digitalmars-d
Not sure where to mention this, but it appears that the wiki's down (for me at least). I can ping it, but it won't come up in my browser.

Who can make Phobos faster to import?

2017-12-15 Thread Seb via Digitalmars-d
Following the discussion at https://github.com/dlang/phobos/pull/5916, we realized that there's quite some overhead in importing some Phobos modules. Ideally importing a Phobos module without using it, should be cost-free (i.e. pay for what you use). Test case: consider a file with `import st

Re: classes by value

2017-12-15 Thread Petar via Digitalmars-d
On Friday, 15 December 2017 at 12:56:41 UTC, Jonathan M Davis wrote: On Friday, December 15, 2017 11:10:42 Dgame via Digitalmars-d wrote: On Friday, 15 December 2017 at 09:18:23 UTC, Seb wrote: > On Thursday, 14 December 2017 at 16:40:33 UTC, Petar Kirov > > [ZombineDev] wrote: >> ``` >> scope f

Re: classes by value

2017-12-15 Thread Dgame via Digitalmars-d
On Friday, 15 December 2017 at 12:56:41 UTC, Jonathan M Davis wrote: On Friday, December 15, 2017 11:10:42 Dgame via Digitalmars-d wrote: On Friday, 15 December 2017 at 09:18:23 UTC, Seb wrote: > [...] Since scope was revived with DIP-1000 we will see about that. I doubt that the deprecation wi

Re: classes by value

2017-12-15 Thread Jonathan M Davis via Digitalmars-d
On Friday, December 15, 2017 11:10:42 Dgame via Digitalmars-d wrote: > On Friday, 15 December 2017 at 09:18:23 UTC, Seb wrote: > > On Thursday, 14 December 2017 at 16:40:33 UTC, Petar Kirov > > > > [ZombineDev] wrote: > >> ``` > >> scope foo = new Foo(); > >> ``` > > > > That's about to be deprecat

Re: classes by value

2017-12-15 Thread Dgame via Digitalmars-d
On Friday, 15 December 2017 at 09:18:23 UTC, Seb wrote: On Thursday, 14 December 2017 at 16:40:33 UTC, Petar Kirov [ZombineDev] wrote: ``` scope foo = new Foo(); ``` That's about to be deprecated in favor of scoped!Foo: https://dlang.org/deprecate.html#scope%20for%20allocating%20classes%20on

Re: classes by value

2017-12-15 Thread Dgame via Digitalmars-d
On Thursday, 14 December 2017 at 16:40:33 UTC, Petar Kirov [ZombineDev] wrote: On Thursday, 14 December 2017 at 16:10:17 UTC, Jonathan Marler wrote: On Thursday, 14 December 2017 at 14:45:51 UTC, Dgame wrote: Strongly reminds me of scoped Declaring a variable as `scoped` prevents that variabl

hahaur code sucks aha x

2017-12-15 Thread Adam Godwin via Digitalmars-d
Fuckur shitty language hahahahahahahahahaha pisslords!

ACCU 2018

2017-12-15 Thread Russel Winder via Digitalmars-d
No D submissions for ACCU this year. :-( -- Russel. == Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk signature.asc Description: This is a digitally signed message part

Re: classes by value

2017-12-15 Thread Seb via Digitalmars-d
On Thursday, 14 December 2017 at 16:40:33 UTC, Petar Kirov [ZombineDev] wrote: ``` scope foo = new Foo(); ``` That's about to be deprecated in favor of scoped!Foo: https://dlang.org/deprecate.html#scope%20for%20allocating%20classes%20on%20the%20stack

Re: Is it possible to request a code review?

2017-12-15 Thread rikki cattermole via Digitalmars-d
On 15/12/2017 8:15 AM, IM wrote: I'm still looking for feedback about these points:   - Any candidate class that can be better switched to a struct or even a template? Template(d/s) symbols are only useful for making things more generic for the purpose of code reuse. Next it comes to two

Re: Is it possible to request a code review?

2017-12-15 Thread IM via Digitalmars-d
I'm still looking for feedback about these points: - Any candidate class that can be better switched to a struct or even a template? - The use of shared and __gshared, did I get those right? I find the TLS concept unpleasant, because it makes me unsure what's the right thing to do. For exa

Answers needed from those using D for Web Development, Web APIs and Services

2017-12-15 Thread aberba via Digitalmars-d
I'm going to do a writeup on the state of D in Web Development, APIs and Services for 2017. I need the perspective of the community too along with my personal experience. Please help out. More details the better. 0. Since when did you or company start using D in this area? 1. Do you use a fra

Re: Is it possible to request a code review?

2017-12-15 Thread IM via Digitalmars-d
On Thursday, 14 December 2017 at 12:51:07 UTC, rjframe wrote: On Wed, 13 Dec 2017 03:15:11 +, IM wrote: [...] I like this API design. I would separate each unit test to its own `unittest` block (you have three tests in a single block in `SingleThreadTaskRunner.d`); it doesn't really m