Re: I wrote a little socket tutorial

2019-11-13 Thread SrMordred via Digitalmars-d-announce
On Tuesday, 12 November 2019 at 18:03:44 UTC, Adam D. Ruppe wrote: A lot of people ask me how to use sockets in Phobos, so I wrote it up with a few samples. Not every detail you could ever need, but I tried to be reasonably comprehensive for new users.

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-06 Thread SrMordred via Digitalmars-d-announce
On Sunday, 6 October 2019 at 08:31:20 UTC, Dennis wrote: On Sunday, 6 October 2019 at 00:58:17 UTC, SrMordred wrote: But why if this is a final switch? (also assert(0); at the end don´t help ) Because the optimization hasn't been implemented yet. https://issues.dlang.org/show_bug.cgi?id=13169

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread SrMordred via Digitalmars-d-announce
I wonder about the generated Assembly: In Rust if u add #[repr(usize)] to the enum the generated code as only two lines. In D, Look like the first assembly lines are checking for errors(or out of bounds index?). But why if this is a final switch? (also assert(0); at the end don´t help )

Re: BindBC -- The successor to Derelict

2018-10-19 Thread SrMordred via Digitalmars-d-announce
On Friday, 19 October 2018 at 17:34:10 UTC, Mike Parker wrote: In the 14.5 (!) years I've been maintaining the Derelict bindings, I've restructured the source tree a few times (Derelict 1 - 3 to DerelictOrg), had three implementations of the loader (that I can remember), switched from

Re: Beta 2.082.0

2018-10-18 Thread SrMordred via Digitalmars-d-announce
On Wednesday, 17 October 2018 at 12:14:55 UTC, Martin Nowak wrote: Glad to announce the first beta for the 2.083.0 release, ♥ to the 48 contributors for this release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.083.0.html As usual please report any bugs at

Re: I have a plan.. I really DO

2018-07-11 Thread SrMordred via Digitalmars-d-announce
But for technical aspect like performance, very honestly I'm still not sure of its technical superiority over similar languages. Just have a look at this one, which is quite famous : https://www.techempower.com/benchmarks/ I know that many people here will simply tell me that all those

Re: I have a plan.. I really DO

2018-07-10 Thread SrMordred via Digitalmars-d-announce
On Tuesday, 10 July 2018 at 17:44:59 UTC, Adam D. Ruppe wrote: On Tuesday, 10 July 2018 at 17:39:06 UTC, SrMordred wrote: After the GC.collect you now get 1GB of memory usage. http://dpldocs.info/experimental-docs/core.memory.GC.minimize.html yeah I was looking to this right now on the

Re: I have a plan.. I really DO

2018-07-10 Thread SrMordred via Digitalmars-d-announce
On Tuesday, 10 July 2018 at 17:03:01 UTC, H. S. Teoh wrote: AFAIK, the current GC does not release memory back to the OS. So you won't see the memory footprint decrease. However, it does free up memory for subsequent allocations. T if you put another int[] x; x.length = 1024 * 1024 *

Re: I have a plan.. I really DO

2018-07-10 Thread SrMordred via Digitalmars-d-announce
As I've already repeated twice, this is not true in D. You *can* predict precisely when the GC runs a collection cycle by calling GC.disable and then calling GC.collect according to *your* own schedule. This is not just a theoretical thing. I have actually done this in my own projects, and

Re: #include C headers in D code

2018-04-09 Thread SrMordred via Digitalmars-d-announce
On Monday, 9 April 2018 at 11:03:48 UTC, Atila Neves wrote: Here's my blog post about my project that allows directly #including C headers in D* https://atilanevesoncode.wordpress.com/2018/04/09/include-c-headers-in-d-code/ The summary is that, modulo bugs, things like this work:

Re: compile D to asm.js using ldc --betterC and emcc

2017-11-14 Thread SrMordred via Digitalmars-d-announce
On Sunday, 8 October 2017 at 09:48:57 UTC, Dukc wrote: On Saturday, 7 October 2017 at 17:31:37 UTC, cosinus wrote: I wrote a little working demo that shows how to use D inside firefox. It uses emscripten(emcc) and ldc. https://github.com/cosinus2/dlang-emscripten-demo Judging by looking at

Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-10-31 Thread SrMordred via Digitalmars-d-announce
Thank you , works perfectly! One idea: Integrating with dub. So you don´t have to manually set lib dirs and flags since its all on 'dub.json' already.

Re: D on Tiobe Index

2017-08-31 Thread SrMordred via Digitalmars-d-announce
On Thursday, 31 August 2017 at 14:57:28 UTC, bitwise wrote: https://www.tiobe.com/tiobe-index/d/ What happened in 2009?

Re: D as a Better C

2017-08-23 Thread SrMordred via Digitalmars-d-announce
On Wednesday, 23 August 2017 at 15:53:11 UTC, Walter Bright wrote: On 8/23/2017 7:10 AM, Steven Schveighoffer wrote: It's only if you do something that needs the runtime, such as static ctors, or use the GC. Or use asserts, or even declare a struct. No structs in -betterC ???