Re: Slides share: DMesos - Not only a re-implementation of Mesos

2017-07-12 Thread Patrick Schluter via Digitalmars-d
On Monday, 10 July 2017 at 18:45:34 UTC, Nick Sabalausky (Abscissa) wrote: On 07/10/2017 02:16 PM, Joakim wrote: I'm actually skeptical of cloud- I think mobile p2p will eat most of the cloud- I've been REALLY hoping p2p will eat...cloud^H^H^H^H^Hcentralized internet services[1], but if I

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-12 Thread wigy via Digitalmars-d-announce
On Wednesday, 12 July 2017 at 20:11:06 UTC, Vitor Rozsas wrote: So... suggestions... Centralized? Decentralized? I think the centralized wouldn't fit in any country. It would certainly contain pedophile posts... and any sane country would shut down the servers immediately... So...

Re: Whats the correct way to pass a D array type to a win32 api function wanting a buffer?

2017-07-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 13 July 2017 at 01:15:46 UTC, FoxyBrown wrote: auto EnumServices() I wouldn't use auto here. The reason you get mismatch types on return here since you don't return consistent types inside. ENUM_SERVICE_STATUS_PROCESS[5000] services; Are you sure you are getting the

Re: Whats the correct way to pass a D array type to a win32 api function wanting a buffer?

2017-07-12 Thread Nicholas Wilson via Digitalmars-d-learn
On Thursday, 13 July 2017 at 01:15:46 UTC, FoxyBrown wrote: Everything I do results in some problem, I've tried malloc but then converting the strings resulted in my program becoming corrupted. Heres the code: auto EnumServices() { auto schSCManager = OpenSCManager(null, null,

Re: CTFE Status 2

2017-07-12 Thread H. S. Teoh via Digitalmars-d
On Thu, Jul 13, 2017 at 01:23:53AM +, Stefan Koch via Digitalmars-d wrote: > On Wednesday, 12 July 2017 at 21:05:28 UTC, watcher wrote: > > > > stop advertising yourself and polluting this thread. > > seek help - no down-payments in Germany!! > > I am not sure what you mean ... > I assume

Re: CTFE Status 2

2017-07-12 Thread Stefan Koch via Digitalmars-d
On Wednesday, 12 July 2017 at 21:05:28 UTC, watcher wrote: stop advertising yourself and polluting this thread. seek help - no down-payments in Germany!! I am not sure what you mean ... I assume it's a joke ? If you are indeed offering help, you can reproduce this by checking out

Whats the correct way to pass a D array type to a win32 api function wanting a buffer?

2017-07-12 Thread FoxyBrown via Digitalmars-d-learn
Everything I do results in some problem, I've tried malloc but then converting the strings resulted in my program becoming corrupted. Heres the code: auto EnumServices() { auto schSCManager = OpenSCManager(null, null, SC_MANAGER_ALL_ACCESS); if (NULL == schSCManager) {

Re: 2D game physics, macOS

2017-07-12 Thread Joel via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 12:05:33 UTC, Jacob Carlborg wrote: On 2017-07-12 12:18, Joel wrote: Is there a 2D physics library I can use on macOS, with D? I already use a multimedia library for graphics, sound and input. Box2D [1] perhaps. I think I've seen bindings for it, somewhere.

[Issue 17643] New: std.traits.getSymbolsByUDA doesn't work with private attributes

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17643 Issue ID: 17643 Summary: std.traits.getSymbolsByUDA doesn't work with private attributes Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: Error on negating unsigned types

2017-07-12 Thread Walter Bright via Digitalmars-d
On 7/11/2017 12:46 PM, Johan Engelen wrote: So, adding the error may be nice, but it would make generic code a little more verbose. The particular issue you were having appears to be a bug in the compiler (I already filed it as a bug report). Being a bug, we need more evidence that adding an

[Issue 11997] rdmd should search it's binary path for the compiler

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11997 Vladimir Panteleev changed: What|Removed |Added Keywords||pull

[Issue 17630] DMD treats imports as public imports when selectively imported

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17630 --- Comment #2 from Seb --- > Can you investigate this a bit more and add that info to the bug report, > including that it's been around for a while? The leaked symbols are [found in the local `symtab`

Re: Error on negating unsigned types

2017-07-12 Thread Johan Engelen via Digitalmars-d
On Wednesday, 12 July 2017 at 20:12:03 UTC, Steven Schveighoffer wrote: ... Which means this may cause a bunch of nuisance errors. It's a trade-off between nuisance in some cases (the Phobos ones can be solved with val = abs(val), or with static if), and possibly catching bugs in other

Re: CTFE Status 2

2017-07-12 Thread watcher via Digitalmars-d
On Wednesday, 12 July 2017 at 18:57:12 UTC, Stefan Koch wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Another ABI issue just pooped on my Wednesday. this time it manifests while doing concatenation inside a template the test failing is

[Issue 17630] DMD treats imports as public imports when selectively imported

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17630 --- Comment #1 from Seb --- Without the selective import: test17630a.ScopeDsymbol::search(ident='Erase', flags=x0) object.ScopeDsymbol::search(ident='Erase', flags=x1) test17630b.ScopeDsymbol::search(ident='Erase',

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-12 Thread Vitor Rozsas via Digitalmars-d-announce
On Wednesday, 12 July 2017 at 20:06:02 UTC, Vitor Rozsas wrote: On Wednesday, 12 July 2017 at 20:04:58 UTC, Vitor Rozsas wrote: On Wednesday, 12 July 2017 at 19:37:01 UTC, Vitor Rozsas wrote: [...] People... I seriously don't know what to do... Continue with the decentralized, but very

Re: Error on negating unsigned types

2017-07-12 Thread Steven Schveighoffer via Digitalmars-d
On 7/12/17 11:00 AM, Andrei Alexandrescu wrote: On 07/11/2017 03:46 PM, Johan Engelen wrote: So, adding the error may be nice, but it would make generic code a little more verbose. Ideas? People OK with that? A compelling argument is that the rule exposed two bugs in Phobos. -- Andrei

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-12 Thread Vitor Rozsas via Digitalmars-d-announce
On Wednesday, 12 July 2017 at 20:04:58 UTC, Vitor Rozsas wrote: On Wednesday, 12 July 2017 at 19:37:01 UTC, Vitor Rozsas wrote: [...] People... I seriously don't know what to do... Continue with the decentralized, but very likely to have pedophilic content and users version, or go to a

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-12 Thread Vitor Rozsas via Digitalmars-d-announce
On Wednesday, 12 July 2017 at 19:37:01 UTC, Vitor Rozsas wrote: On Wednesday, 12 July 2017 at 04:55:45 UTC, Vitor Rozsas wrote: On Wednesday, 12 July 2017 at 04:40:16 UTC, Vitor Rozsas wrote: [...] If you have any price proposal, please tell me. * I will not participate directly in the

Re: Help me fix my compiler

2017-07-12 Thread Andrew Edwards via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 12:05:17 UTC, Namal wrote: Hello, I used the Install Script command line to install the newest dmd compiler (Ubuntu 16.04.2 LTS). Now I have to type 'source ~/dlang/dmd-2.074.1/activate' before I can use it and it is also not show in the software center like it

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-12 Thread Vitor Rozsas via Digitalmars-d-announce
On Wednesday, 12 July 2017 at 04:55:45 UTC, Vitor Rozsas wrote: On Wednesday, 12 July 2017 at 04:40:16 UTC, Vitor Rozsas wrote: * First of all, does Dlang.org have it's own website for hiring D programmers or offering D programming services? If not, it should! [...] If you have any price

[Issue 17193] selective imports -> deprecation warnings even if symbol is not used

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17193 Vladimir Panteleev changed: What|Removed |Added Keywords|

Re: CTFE Status 2

2017-07-12 Thread Stefan Koch via Digitalmars-d
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Another ABI issue just pooped on my Wednesday. this time it manifests while doing concatenation inside a template the test failing is (test/runnable/template8.d) This is again hard to debug because I have to piece

Re: Static array with parameter based size?

2017-07-12 Thread Jack Applegame via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 05:45:13 UTC, Miguel L wrote: Also what is it possible in D to write a function that accepts an static array of any size? void foo(size_t N)(ref int[N] arr) { ... } int[10] arr; foo(arr);

[Issue 17642] New: Specify in the documentation for destructors the problem with the error InvalidMemoryOperationError

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17642 Issue ID: 17642 Summary: Specify in the documentation for destructors the problem with the error InvalidMemoryOperationError Product: D Version: D2 Hardware: All

[Issue 16432] JSON incorrectly parses to string

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16432 Tomer Filiba (weka) changed: What|Removed |Added CC|to...@weka.io | --

Re: Foreign threads in D code.

2017-07-12 Thread Igor Shirkalin via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 09:49:32 UTC, Guillaume Piolat wrote: On Tuesday, 11 July 2017 at 22:59:42 UTC, Igor Shirkalin wrote: [...] -- Biotronic Thanks for very useful information! Just one small note. If you don't know the foreign thread lifetime, it's cleaner to detach it from

[Issue 12736] @nogc std.algorithm.all

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12736 Jon Degenhardt changed: What|Removed |Added CC|

[Issue 7839] std.range.countFrom() too

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7839 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

[Issue 16989] Ensure that every Phobos function has Returns/Params

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16989 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

[Issue 17640] std.concurrenct writeln conflicts with std.stdio writeln in unittests

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17640 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a5afe1609feed83f2233cad80a54201dccdd4b1e Fix Issue 17640 - std.concurrenct writeln conflicts

[Issue 17640] std.concurrenct writeln conflicts with std.stdio writeln in unittests

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17640 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 16432] JSON incorrectly parses to string

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16432 Seb changed: What|Removed |Added Keywords||pull CC|

Re: Call for arms: Arch Linux D package maintenance

2017-07-12 Thread Wild via Digitalmars-d-announce
On Monday, 10 July 2017 at 23:39:36 UTC, rjframe wrote: I couldn't find a documented deprecation process, but they do deprecate packages; perhaps if that could be pushed forward it would allow someone to maintain something in AUR. I can maintain the packages if they are moved to the AUR. I

[Issue 16783] std.net.curl application throws an exception

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16783 Seb changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

[Issue 17040] Examples should have an import of itself

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17040 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 16984] Make more modules runnable on dlang.org

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16984 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

[Issue 17082] assert in std.algorithm.iteration splitter example does not compile.

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17082 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 17107] Runnign phobos unittests do not work with PIE

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17107 Seb changed: What|Removed |Added Keywords||pull CC|

[Issue 17127] bad example code for std.concurrency.Generator

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17127 Seb changed: What|Removed |Added Keywords||pull CC|

[Issue 17641] TypeInfo for two identical delegates (or functions) are not equal to each other

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17641 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #1 from

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-12 Thread Kagamin via Digitalmars-d-announce
On Wednesday, 12 July 2017 at 14:27:41 UTC, István wrote: These are still centralized services which any time might decide to change to censorship or forced to shut down, then you lose access to your content the same way. I saw 4 such cases and it was always easier to setup a replica. And

Anything like quote?

2017-07-12 Thread Jean-Louis Leroy via Digitalmars-d-learn
I want to create a string while making sure it qualifies as an identifier. Like this: struct quote { static @property string opDispatch(string str)() { return str; } } unittest { assert(quote.foo == "foo"); } Does it already exist somewhere in the language or the library? J-L

[Issue 17641] New: TypeInfo for two identical delegates (or functions) are not equal to each other

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17641 Issue ID: 17641 Summary: TypeInfo for two identical delegates (or functions) are not equal to each other Product: D Version: D2 Hardware: All OS: Windows

Re: dmd and Archlinux

2017-07-12 Thread Marco Leise via Digitalmars-d
Am Tue, 11 Jul 2017 06:21:33 -0600 schrieb Jonathan M Davis via Digitalmars-d : > On Tuesday, July 11, 2017 12:00:51 PM MDT Seb via Digitalmars-d wrote: > > @mleise: OP is using the testing repos where the PIE enforcement > > already landed [1], but libphobos.a isn't

[Issue 5418] std.math.lround not implemented on win32 and not documented

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5418 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/4ea051f17a1308a92ce93d0cb7e5ea38c2de1e18 Issue 5418 - std.math.lround not implemented on win32

Re: Slides share: DMesos - Not only a re-implementation of Mesos

2017-07-12 Thread 鲜卑拓跋枫 via Digitalmars-d
On Monday, 10 July 2017 at 17:29:01 UTC, 鲜卑拓跋枫 wrote: Dear all, I am a D-language amateur from China, and just want to share you with a slides from me that post on MesosCon Asia 2017(Beijing):

Re: Slides share: DMesos - Not only a re-implementation of Mesos

2017-07-12 Thread 鲜卑拓跋枫 via Digitalmars-d
On Monday, 10 July 2017 at 20:45:01 UTC, Andy Smith wrote: On Monday, 10 July 2017 at 17:29:01 UTC, 鲜卑拓跋枫 wrote: Dear all, I am a D-language amateur from China, and just want to share you with a slides from me that post on MesosCon Asia 2017(Beijing):

Re: .NET Library In D

2017-07-12 Thread 鲜卑拓跋枫 via Digitalmars-d
On Monday, 10 July 2017 at 21:36:05 UTC, FoxyBrown wrote: I was able to get my C# to D convert to convert about 25% of the .net library v4.6 [...] Would you please publish your C# to D converter? I really need it!

Re: Error on negating unsigned types

2017-07-12 Thread Andrei Alexandrescu via Digitalmars-d
On 07/11/2017 03:46 PM, Johan Engelen wrote: So, adding the error may be nice, but it would make generic code a little more verbose. Ideas? People OK with that? A compelling argument is that the rule exposed two bugs in Phobos. -- Andrei

Re: Having a strange issue with std.net.curl.HTTP as a struct dependency

2017-07-12 Thread crimaniak via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 13:47:06 UTC, Adam D. Ruppe wrote: This tells me the problem is in the collection order at the end of the program. ... So I'd say the answer is prolly to keep HTTP away from the GC. Manually free its arrays, or keep them outside arrays in the first place. I'd

Re: D Milestones

2017-07-12 Thread jmh530 via Digitalmars-d
On Wednesday, 12 July 2017 at 14:14:02 UTC, Martin Tschierschke wrote: Please post events (even without date) you think are important. I see a lot of changes from 2.020 to 2.031. That period looks like there are a lot of things going on.

Re: D Milestones

2017-07-12 Thread Martin Tschierschke via Digitalmars-d
On Wednesday, 12 July 2017 at 14:16:48 UTC, rikki cattermole wrote: On 12/07/2017 3:14 PM, Martin Tschierschke wrote: Please post events (even without date) you think are important. First release of your IDE/Plugin or whatever made you more comfortable using D. Since when is the IRC channel

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-12 Thread István via Digitalmars-d-announce
On Wednesday, 12 July 2017 at 12:12:29 UTC, Kagamin wrote: On Wednesday, 12 July 2017 at 11:11:20 UTC, Steven Schveighoffer wrote: Have you heard of https://gab.ai ? They are doing something similar (in terms of providing an uncensored platform). Another one is dreamwidth.org, it started as a

Re: proposed @noreturn attribute

2017-07-12 Thread Andrei Alexandrescu via Digitalmars-d
On 07/12/2017 05:32 AM, Timon Gehr wrote: On 09.07.2017 23:45, Meta wrote: ... Another case that we should probably just statically disallow: ... > This obviously doesn't make any sense anyway ... > I don't see a reason for us to ever need to do that Sorry, but this thinking has no place in

Re: D Milestones

2017-07-12 Thread rikki cattermole via Digitalmars-d
On 12/07/2017 3:14 PM, Martin Tschierschke wrote: Please post events (even without date) you think are important. First release of your IDE/Plugin or whatever made you more comfortable using D. Since when is the IRC channel in use? Since like 2003 when it was registered on Freenode.

[Issue 4541] Intrinsic functions do not have pointers

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541 Mathias Lang changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: D Milestones

2017-07-12 Thread Martin Tschierschke via Digitalmars-d
On Wednesday, 12 July 2017 at 13:18:54 UTC, jmh530 wrote: On Wednesday, 12 July 2017 at 12:40:21 UTC, Martin Tschierschke wrote: On Monday, 26 June 2017 at 18:16:12 UTC, Patrick Schluter wrote: On Monday, 26 June 2017 at 12:58:00 UTC, Andrea Fontana wrote: On Monday, 26 June 2017 at 10:14:08

[Issue 15768] std.stdio.trustedStdout accesses __gshared data without synchronization.

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15768 --- Comment #9 from Jack Stouffer --- (In reply to John Colvin from comment #8) > Is this resolved now? I see a fair amount of synchronisation in makeGlobal, > which is what std{in,out,err} are aliased to now. Nope. I was

[Issue 17640] std.concurrenct writeln conflicts with std.stdio writeln in unittests

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17640 Seb changed: What|Removed |Added Summary|std.concurrenct writeln |std.concurrenct writeln

Re: Struct Constructor Lazy

2017-07-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 11:18:08 UTC, Biotronic wrote: The traditional solution is static opCall: That's bug city... the dummy argument is better, or a named static factory function. Foo foo = Foo; Foo foo = Foo(); those are different with static opCall. It also conflicts with

[Issue 17640] New: std.concurrenct writeln conflicts std.stdio writeln in unittests

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17640 Issue ID: 17640 Summary: std.concurrenct writeln conflicts std.stdio writeln in unittests Product: D Version: D2 Hardware: x86_64 OS: Linux Status:

Re: Struct Constructor Lazy

2017-07-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 11:57:33 UTC, Biotronic wrote: Debug = no optimization. That's not really true, you can have an optimized debug build. dmd's -debug, -g, and -O switches are all independent. -debug turns on blocks labeled with the `debug` switch in code. -g adds info for a

Re: Cannot dup an associative array but why?

2017-07-12 Thread Jean-Louis Leroy via Digitalmars-d-learn
On Tuesday, 11 July 2017 at 21:23:28 UTC, Ali Çehreli wrote: Default template and function arguments are resolved at instantiation site, which means __MODULE__ would resolve automatically to the caller's module. For example, if you have this module: __MODULE__ is a string so I cannot pass it

[Issue 17622] inline for m64 fails web APPS

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17622 --- Comment #3 from steven kladitis --- void main() { import std.stdio, std.base64, std.net.curl, std.string; const f = "http://rosettacode.org/favicon.ico".get.representation; Base64.encode(f).writeln; }

Re: Struct Constructor Lazy

2017-07-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 11:00:54 UTC, Jiyan wrote: when A(0) is called I would want here optimal performance, so there doesnt even need to be a value pushed on the stack (i=0), what would be like having a constructor with zero arguments (i is never used!). This is so, so irrelevant.

Re: Having a strange issue with std.net.curl.HTTP as a struct dependency

2017-07-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 10 July 2017 at 00:10:36 UTC, NoBigDeal256 wrote: The error goes away. The error also goes away if ThingA.arrayOfThingBs returns a single instance of ThingB instead of an array of ThingB. This tells me the problem is in the collection order at the end of the program. The HTTP

Re: Function with static array as parameter

2017-07-12 Thread Nicholas Wilson via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 12:20:11 UTC, Miguel L wrote: What is the best way in D to create a function that receives a static array of any length? Do know that static arrays are passed by value in D, so passing a static array of a million elements will copy them... There are two

Re: D Milestones

2017-07-12 Thread Martin Tschierschke via Digitalmars-d
On Wednesday, 12 July 2017 at 13:11:47 UTC, Nicholas Wilson wrote: On Wednesday, 12 July 2017 at 12:40:21 UTC, Martin Tschierschke wrote: On Monday, 26 June 2017 at 18:16:12 UTC, Patrick Schluter wrote: On Monday, 26 June 2017 at 12:58:00 UTC, Andrea Fontana wrote: On Monday, 26 June 2017 at

Re: Static array with parameter based size?

2017-07-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 05:45:13 UTC, Miguel L wrote: void f(int x) { int[] my_array; my_array.length=x; but I don't really need a dynamic array as length is not going to change inside f. Then just don't change the length... this is a correct way to do it. You could also allocate it

[Issue 15771] FileLogger should create the output directory if it does not exist

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15771 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/e85381ee42652029a8b1c8d8397aee78c2ae7139 Fix Issue 15771 - FileLogger should create the output

[Issue 15771] FileLogger should create the output directory if it does not exist

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15771 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: proposed @noreturn attribute

2017-07-12 Thread Meta via Digitalmars-d
On Wednesday, 12 July 2017 at 09:32:32 UTC, Timon Gehr wrote: On 09.07.2017 23:45, Meta wrote: ... Another case that we should probably just statically disallow: ... > This obviously doesn't make any sense anyway ... > I don't see a reason for us to ever need to do that Sorry, but this thinking

[Issue 17638] A pragma inside a function body is seen as a statement

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17638 --- Comment #1 from anonymous4 --- This can't be a declaration, because empty declaration can't have attributes: --- static; --- Error: declaration expected following attribute, not ';' --

Re: D Milestones

2017-07-12 Thread jmh530 via Digitalmars-d
On Wednesday, 12 July 2017 at 12:40:21 UTC, Martin Tschierschke wrote: On Monday, 26 June 2017 at 18:16:12 UTC, Patrick Schluter wrote: On Monday, 26 June 2017 at 12:58:00 UTC, Andrea Fontana wrote: On Monday, 26 June 2017 at 10:14:08 UTC, Martin Tschierschke [...] So the first version 0.0.1

Re: D Milestones

2017-07-12 Thread Nemanja Boric via Digitalmars-d
On Wednesday, 12 July 2017 at 13:11:47 UTC, Nicholas Wilson wrote: On Wednesday, 12 July 2017 at 12:40:21 UTC, Martin Tschierschke wrote: On Monday, 26 June 2017 at 18:16:12 UTC, Patrick Schluter wrote: On Monday, 26 June 2017 at 12:58:00 UTC, Andrea Fontana wrote: On Monday, 26 June 2017 at

Re: D Milestones

2017-07-12 Thread Nicholas Wilson via Digitalmars-d
On Wednesday, 12 July 2017 at 12:40:21 UTC, Martin Tschierschke wrote: On Monday, 26 June 2017 at 18:16:12 UTC, Patrick Schluter wrote: On Monday, 26 June 2017 at 12:58:00 UTC, Andrea Fontana wrote: On Monday, 26 June 2017 at 10:14:08 UTC, Martin Tschierschke [...] So the first version 0.0.1

[Issue 17395] std.file.rmdirRecurse isn't @safe

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17395 Seb changed: What|Removed |Added Keywords||bootcamp --

Re: Function with static array as parameter

2017-07-12 Thread Rene Zwanenburg via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 12:57:19 UTC, Rene Zwanenburg wrote: On Wednesday, 12 July 2017 at 12:20:11 UTC, Miguel L wrote: What is the best way in D to create a function that receives a static array of any length? Templatize the array length: void foo(size_t length)(int[length] arr) { }

Re: Function with static array as parameter

2017-07-12 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 12:20:11 UTC, Miguel L wrote: What is the best way in D to create a function that receives a static array of any length? You will need to use templates: void foo(size_t N)(int[N] arr) { } -- Biotronic

Re: Function with static array as parameter

2017-07-12 Thread Rene Zwanenburg via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 12:20:11 UTC, Miguel L wrote: What is the best way in D to create a function that receives a static array of any length? Templatize the array length: void foo(size_t length)(int[length] arr) { }

Re: D Milestones

2017-07-12 Thread Martin Tschierschke via Digitalmars-d
On Monday, 26 June 2017 at 18:16:12 UTC, Patrick Schluter wrote: On Monday, 26 June 2017 at 12:58:00 UTC, Andrea Fontana wrote: On Monday, 26 June 2017 at 10:14:08 UTC, Martin Tschierschke [...] So the first version 0.0.1 of this in the Wiki, please help to update!

Re: DWT is official ?

2017-07-12 Thread Flaze07 via Digitalmars-d-dwt
On Wednesday, 12 July 2017 at 11:18:21 UTC, Jacob Carlborg wrote: On 2017-07-12 12:10, Flaze07 wrote: hi...so is this group forum about the SWT D bindings ? (I am just surprised that it is...in the ecosystem if it is what I think it is) Technically DWT [1] is a port of SWT to D, not

Re: DIP 1010--Static foreach--Formal Review

2017-07-12 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 12 July 2017 at 10:57:37 UTC, Steven Schveighoffer wrote: Perhaps the deprecation path should include a removal of straight foreach over a tuple working (use static foreach explicitly). This would make the distinction even more obvious. I'd also vote for gradual removal of

Function with static array as parameter

2017-07-12 Thread Miguel L via Digitalmars-d-learn
What is the best way in D to create a function that receives a static array of any length?

Re: Foreign threads in D code.

2017-07-12 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 12:08:35 UTC, Jacob Carlborg wrote: On 2017-07-12 11:28, Biotronic wrote: That's basically what I tried to say It wasn't very clear to me at least. Yeah, I see it in retrospect. "might collect memory that the thread is referencing on the stack or in non-GC

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-12 Thread Kagamin via Digitalmars-d-announce
On Wednesday, 12 July 2017 at 11:11:20 UTC, Steven Schveighoffer wrote: Have you heard of https://gab.ai ? They are doing something similar (in terms of providing an uncensored platform). Another one is dreamwidth.org, it started as a reaction to tighter control too and has a permissive

Re: version=D_16

2017-07-12 Thread Adrian Matoga via Digitalmars-d
On Monday, 10 July 2017 at 21:30:44 UTC, Walter Bright wrote: On 7/10/2017 1:52 PM, Luís Marques wrote: On Monday, 10 July 2017 at 20:19:46 UTC, Walter Bright wrote: On 7/10/2017 12:46 PM, Luís Marques wrote: I'm curious how that implementation addresses the issues I brought up: I'm not

Re: Foreign threads in D code.

2017-07-12 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-07-12 11:28, Biotronic wrote: That's basically what I tried to say It wasn't very clear to me at least. - the GC may collect memory *it has allocated* if the only pointers to it are in memory the GC doesn't scan (i.e. on the stack of an unregistered thread or in memory not

Re: Struct Constructor Lazy

2017-07-12 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 12:02:37 UTC, Jiyan wrote: Thank you, one last question: If i declare the parameter as ref i, then there shouldnt be any overhead wouldnt it? Thanks :) That would be basically the exact equivalent - instead of passing an int, you'll be passing a pointer. --

Re: 2D game physics, macOS

2017-07-12 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-07-12 12:18, Joel wrote: Is there a 2D physics library I can use on macOS, with D? I already use a multimedia library for graphics, sound and input. Box2D [1] perhaps. I think I've seen bindings for it, somewhere. [1] http://box2d.org -- /Jacob Carlborg

Help me fix my compiler

2017-07-12 Thread Namal via Digitalmars-d-learn
Hello, I used the Install Script command line to install the newest dmd compiler (Ubuntu 16.04.2 LTS). Now I have to type 'source ~/dlang/dmd-2.074.1/activate' before I can use it and it is also not show in the software center like it used to be. How can I fix it or how can I remove it?

Re: Struct Constructor Lazy

2017-07-12 Thread Jiyan via Digitalmars-d-learn
Thank you, one last question: If i declare the parameter as ref i, then there shouldnt be any overhead wouldnt it? Thanks :)

Re: Struct Constructor Lazy

2017-07-12 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 11:34:45 UTC, Jiyan wrote: Hey, yes i did but to be honest i used dmd in debug version. The thing about the static one, is that it creates a local object A isnt that a performance issue itself - or am i wrong - im confused actually :P? Debug = no optimization.

[Issue 4541] Intrinsic functions do not have pointers

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4541 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

Re: Struct Constructor Lazy

2017-07-12 Thread Jiyan via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 11:18:08 UTC, Biotronic wrote: On Wednesday, 12 July 2017 at 11:00:54 UTC, Jiyan wrote: [...] The traditional solution is static opCall: struct A { int field; static A opCall() { A result; result.field = getDataFromFile("file.txt");

[Issue 4535] std.range could have a takeWhile!pred(range) function

2017-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4535 --- Comment #10 from RazvanN --- PR : https://github.com/dlang/phobos/pull/5563 We should either close this or work on the PR. --

Re: DWT is official ?

2017-07-12 Thread Jacob Carlborg via Digitalmars-d-dwt
On 2017-07-12 12:10, Flaze07 wrote: hi...so is this group forum about the SWT D bindings ? (I am just surprised that it is...in the ecosystem if it is what I think it is) Technically DWT [1] is a port of SWT to D, not bindings. No Java code is involved. [1]

Re: Struct Constructor Lazy

2017-07-12 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 12 July 2017 at 11:00:54 UTC, Jiyan wrote: Hey there:) i want to know whether the following is somehow possible: structs dont have default constructors, i know so: struct A { int field; this(int i){field = getDataFromFile("file.txt");} } A instance = A(0); Here comes my issue:

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/12/17 12:40 AM, Vitor Rozsas wrote: * First of all, does Dlang.org have it's own website for hiring D programmers or offering D programming services? If not, it should! Hello! I need a project, and I want it done with D (please note that it will be open-sourced, but I'll pay for the

  1   2   >