Re: Phobos is now compiled with -preview=dip1000

2019-05-16 Thread Dukc via Digitalmars-d-announce
On Thursday, 16 May 2019 at 04:29:10 UTC, evilrat wrote: On Thursday, 16 May 2019 at 01:05:53 UTC, H. S. Teoh wrote: ... I hate SFINAE. But.. But D doesn't have it!11 NOOO!!1! Not in the same sense as C++. But if the template constrains rely of is() statements, that is still a kind of

Re: Phobos is now compiled with -preview=dip1000

2019-05-15 Thread Dukc via Digitalmars-d-announce
On Wednesday, 15 May 2019 at 08:26:23 UTC, Walter Bright wrote: This is a good start: http://dconf.org/2017/talks/bright.html Ah, at least something. Thanks.

Re: Phobos is now compiled with -preview=dip1000

2019-05-15 Thread Dukc via Digitalmars-d-announce
On Wednesday, 15 May 2019 at 07:56:48 UTC, Walter Bright wrote: About -DIP1000, I sure want to use it. But is there currently any practical way to learn it's usage without researching compiler source code? Simply add the switch -preview=dip1000 to your builds, and follow where it leads.

Re: Phobos is now compiled with -preview=dip1000

2019-05-15 Thread Dukc via Digitalmars-d-announce
On Wednesday, 15 May 2019 at 07:39:05 UTC, Walter Bright wrote: https://github.com/dlang/phobos/pull/6931 This is a major milestone in improving the memory safety of D programming. Thanks to everyone who helped with this! Time to start compiling your projects with DIP1000, too! For me, the

Re: DConf 2019 Livestream

2019-05-08 Thread Dukc via Digitalmars-d-announce
On Wednesday, 8 May 2019 at 10:13:35 UTC, Ethan wrote: Good news everyone! A Youtube stream will be arriving after the lunch break. Cheers for your patience. Excellent!

Re: DConf 2019 Livestream

2019-05-08 Thread Dukc via Digitalmars-d-announce
On Wednesday, 8 May 2019 at 07:57:40 UTC, Mike Parker wrote: The venue uses WebEx for livestreaming. All the information is available in this PDF: Why does the Webex plugin need access to data from all intenet tabs, and outside the program? Seems suspicious for me.

Re: D 2019 GSoC projects - annoucement

2019-05-07 Thread Dukc via Digitalmars-d-announce
On Monday, 6 May 2019 at 18:15:54 UTC, Seb wrote: Independency of D from the C Standard Library (Stefanos Baziotis) - An effort to decouple D from the C standard library. Does this mean that the GC will be using

Re: Last Year in D

2019-01-25 Thread Dukc via Digitalmars-d-announce
On Thursday, 24 January 2019 at 13:58:59 UTC, Mike Parker wrote: I said in my annual D Blog retrospective that I wanted to do a similar post focused on D at large. Sebastian Wilzbach sent me a tremendously helpful info dump of all sorts of goings on, most of which I knew nothing about. When I

Re: Blog post: What D got wrong

2018-12-17 Thread Dukc via Digitalmars-d-announce
On Saturday, 15 December 2018 at 19:53:06 UTC, Atila Neves wrote: @safe and pure though... Why @safe? Can't you just write "@safe:" on top and switch to @system/@trusted as needed?

Re: Blog post: What D got wrong

2018-12-17 Thread Dukc via Digitalmars-d-announce
On Monday, 17 December 2018 at 09:41:01 UTC, Dukc wrote: On Saturday, 15 December 2018 at 19:53:06 UTC, Atila Neves wrote: @safe and pure though... Why @safe? Can't you just write "@safe:" on top and switch to @system/@trusted as needed? Argh, I forgot that you are not supposed to @safe

Re: Blog post: What D got wrong

2018-12-11 Thread Dukc via Digitalmars-d-announce
On Tuesday, 11 December 2018 at 15:34:28 UTC, Simen Kjærås wrote: I believe a reasonable case can be made for .! for UFCS - it's currently invalid syntax and will not compile, and ! is the symbol we already associate with template instantiation: alias memberFunctions = __traits(allMembers,

Re: Ported js13k game underrun to D targeting webassembly

2018-11-19 Thread Dukc via Digitalmars-d-announce
On Monday, 19 November 2018 at 13:52:28 UTC, Sebastiaan Koppe wrote: I am not sure where you got that impression from, but I am afraid you'll still need js glue code. I met the type JsHandle, found it's definiton and saw that it's only an alias for an int. I did remember seeing something

Re: Ported js13k game underrun to D targeting webassembly

2018-11-19 Thread Dukc via Digitalmars-d-announce
On Saturday, 17 November 2018 at 21:35:59 UTC, Sebastiaan Koppe wrote: [snip] I had a look at your code, and just now I realized that spasm can really call JavaScript without any glue from JavaScript side. This is huge! Now I can start to think about expanding my usage of D at the web page

Re: Backend nearly entirely converted to D

2018-11-07 Thread Dukc via Digitalmars-d-announce
On Wednesday, 7 November 2018 at 14:39:55 UTC, Joakim wrote: I don't know why you think that would matter: I'm using the same compilers to build each DMD version and comparing the build times as the backend was translated to D. Because generally, LLVM compilers provide faster code, but

Re: Backend nearly entirely converted to D

2018-11-07 Thread Dukc via Digitalmars-d-announce
On Wednesday, 7 November 2018 at 08:31:21 UTC, Joakim wrote: I just benchmarked building the last couple versions of DMD, when most of the backend was converted to D, by building them with the latest DMD 2.083.0 official release and clang 6.0 in a single-core linux/x64 VPS. Here are the times

Re: Blog post on fearless (library for @safe sharing)

2018-11-07 Thread Dukc via Digitalmars-d-announce
On Wednesday, 7 November 2018 at 10:58:35 UTC, Atila Neves wrote: Definitely worth it. Nice to hear. And nice that you put it to use! I'm still unclear on the non-transitivity of scope and exactly what the consequences of this rule: 3. A scope variable cannot be initialized with the

Re: Blog post on fearless (library for @safe sharing)

2018-11-07 Thread Dukc via Digitalmars-d-announce
On Tuesday, 6 November 2018 at 16:20:00 UTC, Atila Neves wrote: https://www.reddit.com/r/programming/comments/9uoak1/implementing_rusts_stdsyncmutex_in_d/ Good post. Since you have battle-tested DIP1000, I'm interested what you think about it. You mentioned that it's currently hard to

Re: Interfacing D with C: Arrays Part 1

2018-10-18 Thread Dukc via Digitalmars-d-announce
On Wednesday, 17 October 2018 at 15:20:08 UTC, Mike Parker wrote: but after many revisions and discussions with a couple of reviewers, I've decided to put it on hold until something gets worked out about the conflation of destruction and finalization in D (something I'll be pushing for soon).

Re: Wed Oct 7 - Avoiding Code Smells by Walter Bright

2018-10-16 Thread Dukc via Digitalmars-d-announce
On Monday, 15 October 2018 at 21:23:13 UTC, Walter Bright wrote: I'm giving a presentation at: Is there a video about your talk "taking advantage of D in existing C codebases" at Code Europe? I recall that you were going to share it.

Re: printed v0.0.3: a low-level API to generate self-contained PDF/SVG

2018-10-01 Thread Dukc via Digitalmars-d-announce
On Monday, 1 October 2018 at 10:44:53 UTC, Guillaume Piolat wrote: Mmmm you mean dlib has a software renderer? Yes. https://github.com/gecko0307/dlib/blob/master/dlib/image/canvas.d Small and simple, but so far enough for my converter, as it pairs well with DLib's image file i/o.

Re: printed v0.0.3: a low-level API to generate self-contained PDF/SVG

2018-10-01 Thread Dukc via Digitalmars-d-announce
On Monday, 1 October 2018 at 09:34:34 UTC, Guillaume Piolat wrote: printed is a low-level API to generate self-contained PDF 1.4/SVG 1.1 documents hopefully suitable for print. At work, I had to make a file converter which converts an obsolete CAD format to image files. It currently makes png

Re: DIP Draft Reviews

2018-09-06 Thread Dukc via Digitalmars-d-announce
On Thursday, 6 September 2018 at 11:18:25 UTC, Nicholas Wilson wrote: I can understand not requiring authors to respond to all the feedback, but not requiring them to respond to _any_ is just wasting everyone's time, since _all_ of the previous points will be bought up again and the next stage

Re: DIP Draft Reviews

2018-09-06 Thread Dukc via Digitalmars-d-announce
On Thursday, 6 September 2018 at 07:13:20 UTC, Nicholas Wilson wrote: IMO the DIP author should at least participate in the community review if they expect their DIP to have _any_ chance of success. I disagree. Reviews are mainly for giving feedback, not for deciding the fate of the DIP

Re: Write for the D Blog!

2018-08-13 Thread Dukc via Digitalmars-d-announce
On Monday, 13 August 2018 at 14:29:30 UTC, Mike Parker wrote: You may have noticed the blog is relatively quiet right now. That's not from a lack of trying. Good to know, and thanks for trying. If you've got something D-related you'd like to tell the world about, please let me know. I'll

Re: Dpp on run.dlang.io

2018-08-06 Thread Dukc via Digitalmars-d-announce
On Monday, 6 August 2018 at 02:17:28 UTC, Mike Franklin wrote: The C standard library not a true and intrinsic dependency of D, and is outside of D's charter. [...] D is a much more capable programming language than C, and whatever functionality is being imported from the C standard library

Re: Dpp on run.dlang.io

2018-08-04 Thread Dukc via Digitalmars-d-announce
On Saturday, 4 August 2018 at 02:39:23 UTC, Mike Franklin wrote: Cool! Can we now deprecate and eventually jettison C/C++ bindings from druntime, please? Why? As I understand it, they do not increase your executable size unless used. Besides, the bindings include the @trusted and scope

Re: Blogpost about the T.init problem

2018-07-11 Thread Dukc via Digitalmars-d-announce
On Tuesday, 10 July 2018 at 15:10:21 UTC, Dukc wrote: It definitely needs clarification if I understood it's intent right. https://github.com/dlang/dlang.org/pull/2418

Re: Blogpost about the T.init problem

2018-07-10 Thread Dukc via Digitalmars-d-announce
On Tuesday, 10 July 2018 at 13:41:56 UTC, FeepingCreature wrote: I've written up a short blogpost about the T.init issue. I believe that whoever wrote that spec meant that the invariant WOULD not need to hold if MyDomainData.init WAS called, but that MyDomainData.init must not be called if

Re: D only has Advantages

2018-06-14 Thread Dukc via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 22:38:26 UTC, Walter Bright wrote: https://news.ycombinator.com/item?id=17306761 I think that if you want to advertise a single comment on Reddit or similar sites, the general forum would be more appopriate place for that. But that's just my opinion.

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Dukc via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 09:59:52 UTC, Mike Franklin wrote: The benchmark doesn't allocate any data; it's just copying data. Mike Ah of course. I was thinking other stuff while writing.

Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Dukc via Digitalmars-d-announce
On Wednesday, 13 June 2018 at 06:46:43 UTC, Mike Franklin wrote: I had a little fun today kicking the crap out of C's memcpy with a D implementation. If I read your benchmark graphs right, they claimed that allocating 16 kilobytes takes over 10^^6 usecs, with both mallocs. Doesn't that mean

Re: DConf 2018 Ex Post Facto

2018-05-31 Thread Dukc via Digitalmars-d-announce
Thanks for the post. A link that tries to point to Igor's talk points to Leroy's one. On Thursday, 31 May 2018 at 15:01:12 UTC, Mike Parker wrote: I've got a couple of guest posts lined up (including one from Walter) Great!

Re: A bit more Emscripten

2018-05-10 Thread Dukc via Digitalmars-d-announce
On Tuesday, 8 May 2018 at 08:53:36 UTC, Vladimir Panteleev wrote: I heard there was a bit of general interest on the subject, so would be interesting to hear about more potential use cases. Like Franklin, I am programming a web page. It works fully with script, even the html elements are

Re: Dconf live stream for Shachar's talk

2018-05-06 Thread Dukc via Digitalmars-d-announce
On Saturday, 5 May 2018 at 07:59:48 UTC, Steven Schveighoffer wrote: I will note that we don't have the normal A/V crew from the other days, so this is being done via a laptop camera. So you will probably need to download the slides. -Steve It's hard to hear the words from this, but at

Re: Postblit documentation

2018-03-29 Thread Dukc via Digitalmars-d-announce
On Thursday, 29 March 2018 at 09:15:56 UTC, RazvanN wrote: I've been documenting how the postblit works [1] and discovered that it has some major issues when used with qualifiers. Perhaps you're already aware, but there was discussion about that a while back:

Re: Vision document for H1 2018

2018-03-16 Thread Dukc via Digitalmars-d-announce
On Friday, 16 March 2018 at 18:35:14 UTC, Tony wrote: I thought C# was like Java and does not allow free procedures. Can you give an example of C# procedural-style IO? Well, this is not IO, but: public struct DivInt { public int quot; public int rem; } public static class Utility {

Re: Vision document for H1 2018

2018-03-15 Thread Dukc via Digitalmars-d-announce
On Sunday, 11 March 2018 at 07:59:53 UTC, rumbu wrote: My opinion is that the day when C# will compile to native (on any platform), the C# developer interest in D will drop instantly. I do write a commerical project in C#. But I have an opposite feeling: The day D will easily compile to

Re: Vision document for H1 2018

2018-03-10 Thread Dukc via Digitalmars-d-announce
On Saturday, 10 March 2018 at 10:05:49 UTC, rumbu wrote: According to the State of D Survey, 71% of the respondents don't care about betterC. Why is betterC on the priority list? I believe it's because it's so important for the 29% who care. If you're doing an module for project written in

Re: Article: Why Const Sucks

2018-03-06 Thread Dukc via Digitalmars-d-announce
On Tuesday, 6 March 2018 at 12:05:26 UTC, Dukc wrote: I think we have a bug here. I believe postblits should behave like constructors in both events. https://issues.dlang.org/show_bug.cgi?id=18561

Re: Article: Why Const Sucks

2018-03-06 Thread Dukc via Digitalmars-d-announce
On Tuesday, 6 March 2018 at 11:03:24 UTC, Nemanja Boric wrote: title = title.dup;// doesn't work anymore Strange! You're right it does not when the type declares a member as const, yet: On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote (in the article): And if an

Re: Article: Why Const Sucks

2018-03-06 Thread Dukc via Digitalmars-d-announce
On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote (in the article): The problem is that the entire object must be fully initialized before the body of the postblit constructor is run. That means that any member variables which are const or immutable are stuck at whatever they

Re: An optional/maybe type with range semantics

2018-02-27 Thread Dukc via Digitalmars-d-announce
On Monday, 26 February 2018 at 20:04:14 UTC, aliak wrote: Guess I could do a pointer and call new when i need to store a value instead. Or maybe it's better to do it like above and store as value type with default value and a boolean at the site. Not sure. You do not need a separate boolean

Re: An optional/maybe type with range semantics

2018-02-26 Thread Dukc via Digitalmars-d-announce
On Monday, 26 February 2018 at 15:27:11 UTC, Meta wrote: The idea is to treat `Option!T` as a regular input range so it can be used with all the regular range algorithms without special casing it. You're right in that the null/non-null dichotomy is equivalent to the notion of a range being

Re: An optional/maybe type with range semantics

2018-02-26 Thread Dukc via Digitalmars-d-announce
On Sunday, 25 February 2018 at 18:03:35 UTC, aliak wrote: Alo, Just finished up a first take on an optional type for D. It's essentially a mix of Nullable and std.range.only, but with a lot more bells and whistles. I would love to hear any feedback on code, or features, or bad design or

Re: Beta 2.079.0

2018-02-19 Thread Dukc via Digitalmars-d-announce
On Monday, 19 February 2018 at 10:49:03 UTC, Martin Nowak wrote: Glad to announce the first beta for the 2.079.0 release, ♥ to the 77 contributors for this release. - -Martin Huh? Did I understand right? Just add an empty object.d into your project and --BetterC is now basically needless,

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Dukc via Digitalmars-d-announce
On Wednesday, 14 February 2018 at 14:17:31 UTC, Seb wrote: changed the text to: ...and D even supports native interoperability with C and most of C++. Great!

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Dukc via Digitalmars-d-announce
On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote: Someone revived the Expressive C++17 Coding Challenge thread today and I thought this is an excellent opportunity to revive my blog and finally write an article showing why I like D so much I first looked into C++ and Rust examples,

Re: Vanquish Forever These Bugs That Blasted Your Kingdom

2018-02-11 Thread Dukc via Digitalmars-d-announce
On Sunday, 11 February 2018 at 12:56:34 UTC, rikki cattermole wrote: And it worked just as in desktop, meaning that one can do pipeline programming in the internet using D! Or in any enviroment where D can compile to, D runtime or no. Well, I just remembered that the Emscripten compiler did

Re: Vanquish Forever These Bugs That Blasted Your Kingdom

2018-02-11 Thread Dukc via Digitalmars-d-announce
On Wednesday, 7 February 2018 at 13:29:04 UTC, Mike Parker wrote: Walter's got a new post up! It's the first in a new series on the benefits of BetterC mode. In this one, he talks about solving the fencepost problem (off-by-one errors) with D's arrays. I think that at some point it should

Re: Bootstrap D template

2018-01-29 Thread Dukc via Digitalmars-d-announce
On Monday, 29 January 2018 at 11:04:19 UTC, Seb wrote: As others who I have shown this have found this useful, I thought it might be helpful to other people (even so it's pretty straight-forward). You're truly becoming the bearer of good news...

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

2017-10-08 Thread Dukc via Digitalmars-d-announce
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 that build script, sure that's simpler than what I

Re: D on Tiobe Index

2017-09-05 Thread dukc via Digitalmars-d-announce
On Friday, 1 September 2017 at 10:18:25 UTC, Vadim Lopatin wrote: I believe DlangIDE can become such tool. Runs on all platforms. Small. which includes syntax highlighting, auto-complete, symbol-information on hover, go to declaration, Supports it using embedded DCD. and runtime debugging

Re: DlangUI v0.7.60 released

2017-08-30 Thread Dukc via Digitalmars-d-announce
On Wednesday, 30 August 2017 at 07:44:54 UTC, Vadim Lopatin wrote: [snip] From what I've followed, you sure update the project often! Perhaps more often than what Phobos is upgraded, by all developers combined. Great work.

Re: SpaceD - a racing game written in D

2017-08-16 Thread Dukc via Digitalmars-d-announce
On Wednesday, 28 June 2017 at 07:20:08 UTC, Murzistor wrote: The spaceship is completely uncontrollable! It obviously lacks of some sort of brakes (with jet engines directed forward). Don't try to drive it like a car. Imagine you're piloting a boat. That's roughly how it behaves.

Re: H2 2017 Vision Document

2017-07-25 Thread Dukc via Digitalmars-d-announce
On Tuesday, 25 July 2017 at 07:03:08 UTC, Joakim wrote: Love the actionable lists of things to be done, I see items on there that I can pick up. What I like about this and the H1 of this year is that they are compact and realistic compared to the earlier ones. And it shows: most thigs aimed

Re: WebConfig - a vibe.d HTML form generator & validator from D structs

2017-07-21 Thread Dukc via Digitalmars-d-announce
On Thursday, 20 July 2017 at 15:57:55 UTC, WebFreak001 wrote: [snip] At my current work I do program web pages to access a database, just in C#. Vibe.D and this would wipe the floor with our methods! Thank you!

Re: DMD library available as DUB package

2017-07-18 Thread Dukc via Digitalmars-d-announce
On Tuesday, 18 July 2017 at 12:35:10 UTC, Suliman wrote: Could you explain where it can be helpful? For tools, such as source code formatters. They do not have to write the parsers themselves if they use a library such as this one.

Re: DIP 1007--"future symbol"--Has Been Accepted

2017-07-08 Thread Dukc via Digitalmars-d-announce
On Saturday, 8 July 2017 at 02:20:02 UTC, Mike Parker wrote: [snip] DIPs are being handled off from the queue again, that's great! Thank you from that.

Re: Life in the Fast Lane (@nogc blog post)

2017-06-20 Thread Dukc via Digitalmars-d-announce
On Tuesday, 20 June 2017 at 09:56:03 UTC, Bastiaan Veelo wrote: Transferring this to GC, you could have @gc (the default), @nogc (the @safe equivalent) and the @trusted equivalent: @gc_code_that_is_acceptable_to_be_called_in_nogc_code_as_an_exception_to_the_rule. I'll abbreviate this as @gc78

Re: Life in the Fast Lane (@nogc blog post)

2017-06-19 Thread Dukc via Digitalmars-d-announce
On Monday, 19 June 2017 at 00:12:25 UTC, Ali Çehreli wrote: I would like to see these ideas in a blog post. It's liberating when assumed problems are convinced away. :) True, but I think the very blog post we're talking about already does that.

Re: Life in the Fast Lane (@nogc blog post)

2017-06-17 Thread Dukc via Digitalmars-d-announce
On Saturday, 17 June 2017 at 13:05:50 UTC, Adam D. Ruppe wrote: The reason writeln fails @nogc is that it *might* throw an exception with most args if stdout is closed or something. Perfect example of an *extremely* rare case failing @nogc's ridiculously strict requirements. If that

Re: SpaceD - a racing game written in D

2017-03-28 Thread Dukc via Digitalmars-d-announce
One more note, the dub package descriptor says "MIT license". You may want to change that to copyleft if you continue development, so competing companies cannot use that as base to make a clone of your future full version game.

Re: SpaceD - a racing game written in D

2017-03-28 Thread Dukc via Digitalmars-d-announce
On Tuesday, 21 March 2017 at 00:49:14 UTC, WebFreak001 wrote: I just released my racing game I have been working on for the past few days for a linux game jam on itch.io[1]. It is an open source[2] 3D racing game in space (tracks/physics are 2D though) and I'm quite proud how it turned out.

Re: DConf 2017 Schedule

2017-03-25 Thread Dukc via Digitalmars-d-announce
On Thursday, 23 March 2017 at 13:17:41 UTC, Adrian Matoga wrote: AFAIR unedited recordings were immediately available on ustream.tv That explains why I did not find them, I looked on youtube. But good to know they are available. Thanks for info.

Re: DConf 2017 Schedule

2017-03-20 Thread Dukc via Digitalmars-d-announce
If I remember correctly, last year it took perhaps two months or so for the talks to be published on YouTube. Would it be much extra effort to publish unedited versions of them asap, for us who can't wait for the edited versions? Yes, they are that interesting.

Re: Silvermirror to mirror websites

2017-01-15 Thread Dukc via Digitalmars-d-announce
You forgot to add a license/unlicense...