Re: automatically closing stale pull requests

2018-10-16 Thread Walter Bright via Digitalmars-d
On 10/16/2018 1:16 PM, notna wrote: [...] We're not going to automatically close stale pull requests, nor are we going to arbitrarily close old unfixed bug reports.

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

2018-10-16 Thread Walter Bright via Digitalmars-d-announce
On 10/16/2018 1:50 AM, Dukc wrote: 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. They've s

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

2018-10-16 Thread Walter Bright via Digitalmars-d-announce
On 10/16/2018 3:26 AM, Dennis wrote: Will it be streamed live? No. It will be recorded, and posted later.

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

2018-10-15 Thread Walter Bright via Digitalmars-d-announce
On 10/15/2018 3:30 PM, Nicholas Wilson wrote: On Monday, 15 October 2018 at 21:23:13 UTC, Walter Bright wrote: I'm giving a presentation at: http://nwcpp.org/ See you there! Where'd you get your time machine from? I want one! Gaaah! I mean Oct. 17.

Wed Oct 7 - Avoiding Code Smells by Walter Bright

2018-10-15 Thread Walter Bright via Digitalmars-d-announce
I'm giving a presentation at: http://nwcpp.org/ See you there!

Re: Farewell (of sorts)

2018-10-10 Thread Walter Bright via Digitalmars-d
On 10/4/2018 6:15 AM, Shachar Shemesh wrote: One of those things is this: October 14th will be my last day working for Weka.IO. My best wishes for your next adventure! -Walter

Re: Iain Buclaw at GNU Tools Cauldron 2018

2018-10-10 Thread Walter Bright via Digitalmars-d-announce
On 10/7/2018 8:41 AM, greentea wrote: Date: September 7 to 9, 2018. Location: Manchester, UK GDC - D front-end GCC https://www.youtube.com/watch?v=iXRJJ_lrSxE Nice work, Iain!

Re: `shared`...

2018-10-03 Thread Walter Bright via Digitalmars-d
On 10/3/2018 1:33 AM, Atila Neves wrote: I'm confused. Given how the lifetimes of aggregates are defined in DIP1000, and also given that I tried to escape members of a struct when I wrote fearless and the compiler didn't let me, I'm trying to understand in what situation scope doesn't apply

Re: DIP 1014

2018-10-02 Thread Walter Bright via Digitalmars-d
On 10/2/2018 4:30 PM, Adam D. Ruppe wrote: On Tuesday, 2 October 2018 at 22:30:38 UTC, Jonathan M Davis wrote: Yeah. IIRC, it was supposed to be _guaranteed_ that the compiler moved structs in a number of situations - e.g. when the return value was an rvalue. Something like Eh, I don't think

Re: `shared`...

2018-10-02 Thread Walter Bright via Digitalmars-d
On 10/2/2018 1:49 PM, Manu wrote: So... `scope` says "I won't escape this, but I may escape anything this points to"? That's right. http://dconf.org/2017/talks/bright.html

Re: DIP 1014

2018-10-02 Thread Walter Bright via Digitalmars-d
On 10/2/2018 2:17 AM, Walter Bright wrote: 1. Don't allow moving of C++ structs 2. Add a struct attribute that means "not moveable" 3. DIP 1014, which is add a __move_post_blit() function (most complex solution) 4. Use copy/destruct for C++ structs that have copy constructors (this is

Re: DIP 1014

2018-10-02 Thread Walter Bright via Digitalmars-d
On 9/29/2018 9:34 PM, Manu wrote: Who knows about DIP 1014? (struct move hook) Is it well received? Is it likely to be accepted soon? I'm working on the std::string binding, it's almost finished... but then I hit a brick wall. GNU's std::string implementation stores an interior pointer! >_<

Re: DIP 1014

2018-10-02 Thread Walter Bright via Digitalmars-d
On 9/29/2018 9:34 PM, Manu wrote: Who knows about DIP 1014? (struct move hook) When discussing DIP 1014, a link is helpful: https://github.com/dlang/DIPs/blob/38cec74a7471735559e3b8a7553f55102d289d28/DIPs/DIP1014.md

Re: `shared`...

2018-10-02 Thread Walter Bright via Digitalmars-d
On 10/1/2018 7:31 PM, Manu wrote: Surely `scope` must be transitive? It isn't. How could it work otherwise? It's a storage class, not a type constructor. There is no "pointer to scope" type, for example. Having it transitive would make it unworkable, actually, for similar reasons that

Re: `shared`...

2018-10-01 Thread Walter Bright via Digitalmars-d
On 10/1/2018 4:56 PM, Timon Gehr wrote: There was no 'scope' in the OP, and no, that is not sufficient either, because scope is not transitive but shared is. Oops, I missed that point. Glad you noticed it.

Re: DIP 1014

2018-09-30 Thread Walter Bright via Digitalmars-d
On 9/29/2018 9:34 PM, Manu wrote: GNU's std::string implementation stores an interior pointer! >_< No other implementation does this. It's a really bad implementation actually, quite inefficient. It could make better use of its space for small-strings if it wasn't wasting 8-bytes for an

Re: Calling nested function before declaration

2018-09-27 Thread Walter Bright via Digitalmars-d
On 9/27/2018 11:33 AM, Timon Gehr wrote: The current behavior is easy to specify and simple to implement, and it is what Walter has implemented. A better behavior that is almost as simple to implement would be to insert nested functions into the symbol table in blocks of back-to-back-defined

Re: Updating D beyond Unicode 2.0

2018-09-27 Thread Walter Bright via Digitalmars-d
On 9/27/2018 12:35 AM, aliak wrote: Anyway, on a related note: D itself (not identifiers, but std) also supports unicode 6 or something. That's from 2010. That's a decade ago. We're at unicode 11 now. And I've already had someone tell me (while trying to get them to use D) - "hold on it

Re: Updating D beyond Unicode 2.0

2018-09-26 Thread Walter Bright via Digitalmars-d
On 9/26/2018 5:46 AM, Steven Schveighoffer wrote: Does this need a DIP? Feel free to write one, but its chances of getting incorporated are remote and would require a pretty strong rationale that I haven't seen yet.

Re: Updating D beyond Unicode 2.0

2018-09-26 Thread Walter Bright via Digitalmars-d
On 9/26/2018 5:46 AM, Steven Schveighoffer wrote: This is a non-starter. We can't break people's code, especially for trivial reasons like 'you shouldn't code that way because others don't like it'. I'm pretty sure Walter would be against removing Unicode support for identifiers. We're not

Re: Updating D beyond Unicode 2.0

2018-09-26 Thread Walter Bright via Digitalmars-d
On 9/25/2018 11:50 PM, Shachar Shemesh wrote: This sounded like a very compelling example, until I gave it a second thought. I now fail to see how this example translates to a real-life scenario. Also, there are usually common ASCII versions of city names, such as Cologne for Köln.

Re: D web site and accessibility

2018-09-25 Thread Walter Bright via Digitalmars-d
On 9/25/2018 1:49 AM, Chris wrote: This said, I was working with a blind person a couple of years ago (I think it was 3 years ago) and he used D for one of his assignments, he never had a problem with the documentation. That's good to hear.

Re: Updating D beyond Unicode 2.0

2018-09-25 Thread Walter Bright via Digitalmars-d
On 9/23/2018 12:06 PM, Abdulhaq wrote: The early history of computer science is completely dominated by cultures who use latin script based characters, Small character sets are much more implementable on primitive systems like telegraphs and electro-mechanical ttys. It wasn't even practical

Re: Updating D beyond Unicode 2.0

2018-09-23 Thread Walter Bright via Digitalmars-d
On 9/23/2018 3:23 PM, Neia Neutuladh wrote: Okay, that's why you previously selected C99 as the standard for what characters to allow. Do you want to update to match C11? It's been out for the better part of a decade, after all. I wasn't aware it changed in C11.

Re: Updating D beyond Unicode 2.0

2018-09-23 Thread Walter Bright via Digitalmars-d
On 9/23/2018 6:06 PM, Dennis wrote: Have you changed your mind since? D the language is well suited to the development of Unicode apps. D source code is another matter.

D web site and accessibility

2018-09-23 Thread Walter Bright via Digitalmars-d
I met a blind programmer at a conference back in the 80's, and had a long talk with her and how she did it. I was amazed. Ever since, I've wanted to ensure products I've worked on were accessible to the blind. It's one thing to follow guidelines, it's another to have someone who relies on a

Re: Updating D beyond Unicode 2.0

2018-09-23 Thread Walter Bright via Digitalmars-d
On 9/22/2018 6:01 PM, Jonathan M Davis wrote: For better or worse, English is the international language of science and engineering, and that includes programming. In the earlier days of D, I put on the web pages a google widget what would automatically translate the page into any language

Re: Updating D beyond Unicode 2.0

2018-09-23 Thread Walter Bright via Digitalmars-d
On 9/23/2018 9:52 AM, aliak wrote: Not seeing identifiers in languages you don't program in or can read in is expected. On the other hand, I've been programming for 40 years. I've customized my C++ compiler to emit error messages in various languages:

Re: Jai compiles 80,000 lines of code in under a second

2018-09-21 Thread Walter Bright via Digitalmars-d
On 9/21/2018 7:46 AM, Steven Schveighoffer wrote: I can see the marketing now, "D finds infinite loops in compile-time code way faster than Jai!". We need you over in marketing!

Re: Updating D beyond Unicode 2.0

2018-09-21 Thread Walter Bright via Digitalmars-d
When I originally started with D, I thought non-ASCII identifiers with Unicode was a good idea. I've since slowly become less and less enthusiastic about it. First off, D source text simply must (and does) fully support Unicode in comments, characters, and string literals. That's not an issue.

Re: Jai compiles 80,000 lines of code in under a second

2018-09-21 Thread Walter Bright via Digitalmars-d
On 9/21/2018 9:29 AM, welkam wrote: Jai compiler perform parsing and lexing in different thread so its kinda multi threaded. Its possible to do the same with D front end. We can start here but there are plenty of low hanging fruits in compiler you just need to run profiler to find them D was

Re: Jai compiles 80,000 lines of code in under a second

2018-09-21 Thread Walter Bright via Digitalmars-d
On 9/21/2018 12:19 AM, mate wrote: It depends on the developer not doing anything stupid Aye, there's the rub!

Re: Jai compiles 80,000 lines of code in under a second

2018-09-21 Thread Walter Bright via Digitalmars-d
On 9/20/2018 10:11 PM, mate wrote: Note that the build can be done at compile time because the metaprogramming capabilities of the language are not limited in terms of system calls. Back in the naive olden days, Microsoft released ActiveX, where a web page could load executable objects (!)

Walter's Guide to Translating Code From One Language to Another

2018-09-21 Thread Walter Bright via Digitalmars-d
I've learned this the hard way, and I've had to learn it several times because I am a slow learner. I've posted this before, and repeat it because bears repeating. The procedure is: 1. pass the test suite 2. prep the file for conversion, i.e. try to minimize the use of idioms that won't

Re: Jai compiles 80,000 lines of code in under a second

2018-09-20 Thread Walter Bright via Digitalmars-d
On 9/20/2018 7:44 PM, Nick Sabalausky (Abscissa) wrote: 3. You can embed your buildscript into one of your project's existing source files, instead of putting it in a dedicated buildscript file. (We can do that in D too, by utilizing version identifiers, but we don't because its messy and

Re: extern(C++, ns) is wrong

2018-09-19 Thread Walter Bright via Digitalmars-d
On 9/18/2018 5:22 PM, Manu wrote: Thank you Walter for coming to the party! I suppose I should explain this. 1. The PR uses a different syntax, i.e. strings instead of identifiers. This implies it is not creating a scope, and doesn't interfere with the scoping of the existing syntax. The

Re: Small @nogc experience report

2018-09-19 Thread Walter Bright via Digitalmars-d
On 9/19/2018 11:35 AM, Steven Schveighoffer wrote: I'm running into this coincidentally right now, when trying to debug a PR. I found I'm getting a range error deep inside a phobos function. But because Phobos is trying to be pure @nogc nothrow @safe, I can do almost nothing to display what is

Re: Small @nogc experience report

2018-09-19 Thread Walter Bright via Digitalmars-d
On 9/19/2018 10:13 AM, Shachar Shemesh wrote:   assert(condition, string); // string is useless without actual info about what went wrong.   assert(condition, format(string, arg, arg)); // No good - format is not @nogc Another method: debug assert(condition, format(string, arg,

Re: Small @nogc experience report

2018-09-19 Thread Walter Bright via Digitalmars-d
On 9/7/2018 10:35 AM, Eugene Wissner wrote: fill() uses enforce() which allocates and throws. The addition of -dip1008 stopped using the gc for throwing exceptions, but it's opt-in at the moment.

Re: D is dead

2018-09-15 Thread Walter Bright via Digitalmars-d
On 8/22/2018 10:37 PM, Shachar Shemesh wrote: Let's start with this one: https://issues.dlang.org/show_bug.cgi?id=14246#c6 https://github.com/dlang/dmd/pull/8697

Re: Copy Constructor DIP and implementation

2018-09-11 Thread Walter Bright via Digitalmars-d-announce
On 9/11/2018 8:08 AM, RazvanN wrote: [1] https://github.com/dlang/DIPs/pull/129 [2] https://github.com/dlang/dmd/pull/8688 Thank you, RazvanN!

Re: Source changes should include date of change

2018-09-09 Thread Walter Bright via Digitalmars-d
On 9/8/2018 9:37 PM, Josphe Brigmo wrote: [...]s**t[...] We expect professional demeanor here. Please don't use such language.

Re: Source changes should include date of change

2018-09-08 Thread Walter Bright via Digitalmars-d
On 9/8/2018 4:29 AM, Josphe Brigmo wrote: Um, I didn't say don't use Git! I've done this manually before git. I can guarantee you that the dates put in the file are invariably wrong, incomplete, or non-existent. But if you bring up a source file in github, and click on the "Blame" button,

Re: John Regehr on "Use of Assertions"

2018-09-06 Thread Walter Bright via Digitalmars-d
On 9/5/2018 4:55 PM, Timon Gehr wrote: John rather explicitly states the opposite in the article. I believe that his statement: "it’s not an interpretation that is universally useful" is much weaker than saying "the opposite". He did not say it was "never useful". For example, it is not

Re: extern(C++, ns) is wrong

2018-09-05 Thread Walter Bright via Digitalmars-d
On 9/4/2018 10:16 PM, Manu wrote: I'm serious, you can have your cake, and potentially, I could have my cake too, and everybody would be happy... nobody would be sad. If it is the same, I provided solutions in those threads. The incomplete example code did not make use of them. I don't know

Re: John Regehr on "Use of Assertions"

2018-09-05 Thread Walter Bright via Digitalmars-d
On 9/2/2018 2:12 PM, Nick Sabalausky (Abscissa) wrote: On 09/01/2018 04:15 PM, Walter Bright wrote: https://blog.regehr.org/archives/1091 This does make me think of one thing: Shouldn't assert expressions be required to be pure? (even if only weakly pure) Not sure how much practical

Re: extern(C++, ns) is wrong

2018-09-05 Thread Walter Bright via Digitalmars-d
On 9/4/2018 10:32 PM, Manu wrote: "A handwavy description"! What do you mean? I started the email with the code... if you compiled it you would have reproduced those error messages. There are 3 files referenced, but only two are given.

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-09-05 Thread Walter Bright via Digitalmars-d
On 9/4/2018 5:37 PM, bachmeier wrote: Having to deal with the possibility that others might have any of twelve different compiler versions installed just isn't sustainable. Back in the bad old DOS days, my compiler depended on the Microsoft linker, which was helpfully included on the DOS

Re: extern(C++, ns) is wrong

2018-09-04 Thread Walter Bright via Digitalmars-d
On 9/4/2018 5:31 PM, Manu wrote: I'm just showing one case that you tend to be confronted with immediately, which is that if you import a module, and then open a namespace with the same name as the root namespace of a module you imported, that is an error condition; the namespace conflicts with

Re: extern(C++, ns) is wrong

2018-09-04 Thread Walter Bright via Digitalmars-d
On 9/4/2018 3:33 PM, Manu wrote: file1.d - module bliz.ecs.component_access; import bliz.ecs.table; import bliz.ecs.types; extern(C++, bliz): // things... Error: project\ecs\include\d2\bliz\ecs\component_access.d(7): Error: namespace `bliz.ecs.component_access.bliz` conflicts with

Re: This thread on Hacker News terrifies me

2018-09-04 Thread Walter Bright via Digitalmars-d
Another example I read on HackerNews today: "I recall that during their most recent s3 outage Amazon's status page was green across the board, because somehow all the assets that were supposed to be displayed when things went wrong were themselves hosted on the thing that was down."

Re: D IDE

2018-09-04 Thread Walter Bright via Digitalmars-d
On 9/3/2018 11:55 AM, Joakim wrote: On Monday, 3 September 2018 at 16:55:10 UTC, Jonathan M Davis wrote: But if you're ever expecting IDE support to be a top priority of many of the contributors, then you're going to be sorely disappointed. It's the sort of thing that we care about because we

Re: D is dead

2018-09-04 Thread Walter Bright via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=19221

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-09-04 Thread Walter Bright via Digitalmars-d
On 9/4/2018 12:59 PM, Timon Gehr wrote: [...] Thanks for the great explanation! Not sure I thoroughly understand it, though. Therefore, D immutable/pure are both too strong and too weak: they prevent @system code from implementing value representations that internally use mutation

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-09-04 Thread Walter Bright via Digitalmars-d
On 9/1/2018 4:12 AM, Chris wrote: Hope is usually the last thing to die. But one has to be wise enough to see that sometimes there is nothing one can do. As things are now, for me personally D is no longer an option, because of simple basic things, like autodecode, a flaw that will be there

Re: D is dead

2018-09-03 Thread Walter Bright via Digitalmars-d
On 9/3/2018 7:19 PM, Laeeth Isharc wrote: The way for D to appeal to more people is not to address the complaints of those who spend more time writing on the forum grumbling but don't use it much, because in my experience you do much better appealing to the people who are your best customers

Re: This thread on Hacker News terrifies me

2018-09-03 Thread Walter Bright via Digitalmars-d
On 9/3/2018 8:33 AM, tide wrote: Yes why wouldn't a company want to fix a "feature" where by, if you have a scratch on a DVD you have to go buy another one in order to play it. Not playing it with an appropriate message is fine. Hanging the machine is not. It's obviously not that big of a

Re: This thread on Hacker News terrifies me

2018-09-02 Thread Walter Bright via Digitalmars-d
On 9/1/2018 8:18 PM, Nick Sabalausky (Abscissa) wrote: [...] My take on all this is people spend 5 minutes thinking about it and are confident they know it all. A few years back some hacker claimed they'd gotten into the Boeing flight control computers via the passenger entertainment

Re: John Regehr on "Use of Assertions"

2018-09-01 Thread Walter Bright via Digitalmars-d
On 9/1/2018 5:47 PM, Nick Sabalausky (Abscissa) wrote: All in all, John is very non-committal about the whole thing. He probably got tired of arguing about it :-)

Re: John Regehr on "Use of Assertions"

2018-09-01 Thread Walter Bright via Digitalmars-d
On 9/1/2018 3:23 PM, Guillaume Boucher wrote: On Saturday, 1 September 2018 at 20:15:15 UTC, Walter Bright wrote: Note the "may or may not be evaluated." We've debated this here before. I'm rather pleased that John agrees with me on this. I.e. the optimizer can assume the expressi

Re: Engine of forum

2018-09-01 Thread Walter Bright via Digitalmars-d
On 9/1/2018 3:58 PM, Adam D. Ruppe wrote: On Saturday, 1 September 2018 at 22:10:27 UTC, Nick Sabalausky wrote: I've used StackOverflow. It's NOT a place for asking and answering questions. I generally agree, but the D tag on it isn't so bad since most the annoying regulars keep away. It is

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 9/1/2018 2:33 PM, Gambler wrote: Alan Kay, Joe Armstrong, Jim Coplien - just to name a few famous people who talked about this issue. It's amazing that so many engineers still don't get it. I'm inclined to put some blame on the recent TDD movement. They often to seem stress low-level code

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 9/1/2018 5:33 AM, tide wrote: It is vastly different, do you know what fly by wire is? Yes, I do. Do you know I worked for three years on critical flight controls systems at Boeing? I said so in the article(s). These ideas are not mine, I did not come up with them in 5 minutes at the

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 9/1/2018 5:25 AM, tide wrote: and that all bugs can be solved with asserts I never said that, not even close. But I will maintain that DVD players still hanging on a scratched DVD after 20 years of development means there's some cowboy engineering going on, and an obvious lack of concern

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 9/1/2018 1:18 AM, Walter Bright wrote: On 8/31/2018 7:28 PM, tide wrote: I'm just wondering but how would you code an assert to ensure the variable for a title bar is the correct color? Just how many asserts are you going to have in your real-time game that can be expected to run at 144

Re: Engine of forum

2018-09-01 Thread Walter Bright via Digitalmars-d
On 8/31/2018 3:16 AM, Andrey wrote: Forum posts should be informative and contain meaningful text that will be understandable for readers. And if required, it should contain videos / images / screenshots / quotes / links, etc. It already highlights quotes and links. As for the rest, the D

John Regehr on "Use of Assertions"

2018-09-01 Thread Walter Bright via Digitalmars-d
https://blog.regehr.org/archives/1091 As usual, John nails it in a particularly well-written essay. "ASSERT(expr) Asserts that an expression is true. The expression may or may not be evaluated. If the expression is true, execution continues normally. If the expression is false, what happens is

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 9/1/2018 3:49 AM, Dennis wrote: On Friday, 31 August 2018 at 22:23:09 UTC, Walter Bright wrote: For example, in any CS program, are there any courses at all about this? In Year 1 Q4 of my Bachelor CS, there was a course "Software Testing and Quality Engineering" which covered t

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 9/1/2018 2:15 AM, Paulo Pinto wrote: On Saturday, 1 September 2018 at 08:19:49 UTC, Walter Bright wrote: On 8/31/2018 11:59 PM, Paulo Pinto wrote: For example, in any CS program, are there any courses at all about this? Yes, we had them on my degree, I'm curious how the courses you took

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 8/31/2018 7:28 PM, tide wrote: I'm just wondering but how would you code an assert to ensure the variable for a title bar is the correct color? Just how many asserts are you going to have in your real-time game that can be expected to run at 144+ fps ? Experience will guide you on where to

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 8/31/2018 11:59 PM, Paulo Pinto wrote: For example, in any CS program, are there any courses at all about this? Yes, we had them on my degree, I'm curious how the courses you took compared with the articles I wrote about it.

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 8/31/2018 5:47 PM, tide wrote: I've already read them before. Why don't you explain what is wrong with it rather than posting articles. Because the articles explain the issues at length. Explaining why your proposal is deeply flawed was the entire purpose I wrote them. You are just

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Walter Bright via Digitalmars-d
On 8/31/2018 5:40 PM, tide wrote: On Friday, 31 August 2018 at 22:42:39 UTC, Walter Bright wrote: On 8/31/2018 2:40 PM, tide wrote: I don't think I've ever had a **game** hung up in a black screen and not be able to close it. I've had that problem with every **DVD player** I've had

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Walter Bright via Digitalmars-d
On 8/31/2018 2:40 PM, tide wrote: I don't think I've ever had a game hung up in a black screen and not be able to close it. I've had that problem with every DVD player I've had in the last 20 years. Power cycling is the only fix.

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Walter Bright via Digitalmars-d
On 8/31/2018 2:21 PM, tide wrote: On Friday, 31 August 2018 at 19:50:20 UTC, Walter Bright wrote: "Stopping all executing may not be the correct 'safe state' for an airplane though!" Depends on the aircraft and how it is implemented. If you have a plane that is fly by wire, and yo

Re: This thread on Hacker News terrifies me

2018-08-31 Thread Walter Bright via Digitalmars-d
On 8/31/2018 1:42 PM, Paulo Pinto wrote: Some countries do have engineering certifications and professional permits for software engineering, but its still a minority. That won't fix anything, because there is NO conventional wisdom in software engineering for how to deal with program bugs. I

Re: Assertions in production code on Reddit

2018-08-31 Thread Walter Bright via Digitalmars-d-announce
On 8/31/2018 1:19 PM, Nick Sabalausky (Abscissa) wrote: (IF the programmer in question even has the expertise to implement such a system correctly anyway - and most don't). The closer you can get to the ideal, the better. It's not all or nothing. I'll have done my job if people would just

This thread on Hacker News terrifies me

2018-08-31 Thread Walter Bright via Digitalmars-d
https://news.ycombinator.com/item?id=17880722 Typical comments: "`assertAndContinue` crashes in dev and logs an error and keeps going in prod. Each time we want to verify a runtime assumption, we decide which type of assert to use. We prefer `assertAndContinue` (and I push for it in code

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-30 Thread Walter Bright via Digitalmars-d
On 8/25/2018 4:49 PM, Nicholas Wilson wrote: Run semantic3 on the constructor independent of the requirement to destruct already constructed objects. If the constructors is nothrow then there is no need to have the destructors run or the eh code at all, because no Exceptions can be thrown (an

Assertions in production code on Reddit

2018-08-30 Thread Walter Bright via Digitalmars-d-announce
https://www.reddit.com/r/programming/comments/9bl72d/assertions_in_production_code/

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-29 Thread Walter Bright via Digitalmars-d
On 8/29/2018 10:50 AM, Timon Gehr wrote: D const/immutable is stronger than immutability in Haskell (which is usually _lazy_). I know Haskell is lazy, but don't see the connection with a weaker immutability guarantee. In any case, isn't immutability a precept of FP?

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-29 Thread Walter Bright via Digitalmars-d
On 8/29/2018 10:05 AM, Timon Gehr wrote: This is a misunderstanding. The __mutable DIP will define the set of allowed program rewrites based on const/immutable/pure. Then code that uses __mutable must remain correct when they are applied. This achieves two things: it clearly defines the

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-29 Thread Walter Bright via Digitalmars-d
On 8/29/2018 11:02 AM, Timon Gehr wrote: Absolutely. But D only strives to provide such automation in @safe code. For @system code, we need a formal specification of what is allowed. (And it needs to include all things that the GC and language do; no magic.) Note that such a formal

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-29 Thread Walter Bright via Digitalmars-d
On 8/26/2018 6:09 PM, Jonathan M Davis wrote: I don't know what Walter's current plans are for what any built-in ref-counting solution would look like, but it's my understanding that whatever he was working on was put on hold, because he needed something like DIP 1000 in order to make it work

Re: Is @safe still a work-in-progress?

2018-08-29 Thread Walter Bright via Digitalmars-d
On 8/28/2018 10:18 PM, Nicholas Wilson wrote: Bugzilla is not documentation. These are language changes they need to be in release notes and the spec. You asked for a clue: "we have no clue WTF its supposed to do or why the changes are being made" and there it is. There are no barriers to

Re: D is dead

2018-08-29 Thread Walter Bright via Digitalmars-d
On 8/28/2018 11:52 PM, Jonathan M Davis wrote: Would it make sense then to change it to work more like what you and Martin were thinking of doing? Yes, it would. But it would be a non-trivial effort to remove Kenji's design.

Re: D is dead

2018-08-28 Thread Walter Bright via Digitalmars-d
On 8/28/2018 6:39 AM, Iain Buclaw wrote: Template emission strategy is a mess, we're better off just instantiating all templates in all compilation units, and let the compiler decide whatever to discard. Even -allinst does not instantiate enough to allow the compiler to make such decisions

Re: Is @safe still a work-in-progress?

2018-08-28 Thread Walter Bright via Digitalmars-d
On 8/23/2018 6:10 AM, Atila Neves wrote: -- struct S {     int x;     @safe int* foo() { return } } -- % dmd -o- -dip1000 foo.d % echo $? 0 struct S { int x; @safe int* foo() { return } } int* bar() { S s; return s.foo(); } dmd test -dip1000 test.d(3):

Re: Is @safe still a work-in-progress?

2018-08-28 Thread Walter Bright via Digitalmars-d
On 8/28/2018 6:12 AM, Steven Schveighoffer wrote: So this would mean a member function would have to be refactored into a different function with a different calling syntax. i.e: x.foo(target); would have to be refactored to: target.foo(x); or foo(target, x); Maybe it should be anyway.

Re: Is @safe still a work-in-progress?

2018-08-28 Thread Walter Bright via Digitalmars-d
On 8/25/2018 4:09 AM, Nicholas Wilson wrote: On Saturday, 25 August 2018 at 02:25:41 UTC, Walter Bright wrote: I'm not hostile to debate. I just don't care for "this is uncharted territory, so let's do nothing" which has been going on for probably 4 years now, coincident w

Re: Is @safe still a work-in-progress?

2018-08-28 Thread Walter Bright via Digitalmars-d
On 8/25/2018 5:42 AM, Chris M. wrote: What about my other point then on the syntax? I think something similar to what I suggested would be a much more flexible solution and is worth considering. Much more work would be needed to make that a proposal.

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-28 Thread Walter Bright via Digitalmars-d
There's been some talk of adding a "mutable" qualifier for fields, which would stop the transitivity of const at that point. But it has problems, such as what happens with opaque types. The compiler can no longer check them, and hence will have to assume they contain mutable members.

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-28 Thread Walter Bright via Digitalmars-d
Thanks, that's a good explanation of the point of the differences between const and immutable.

Re: D is dead

2018-08-28 Thread Walter Bright via Digitalmars-d
On 8/27/2018 7:02 AM, Don wrote: I can explain this, since I did the original implementation. [...] Thank you, Don. And you do have my mad respect for figuring out Windows SEH.

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-28 Thread Walter Bright via Digitalmars-d
On 8/26/2018 11:16 PM, Manu wrote: The code looks the same, and in fact, is about 98% the same. This code appears to be a mechanical translation. It's not. It's by hand. But I had a specific goal of minimizing the diffs, so that if the translation didn't work, it reduced the number of places

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-28 Thread Walter Bright via Digitalmars-d
On 8/27/2018 2:14 AM, Chris wrote: On Sunday, 26 August 2018 at 22:44:05 UTC, Walter Bright wrote: Because nobody thought about that issue before. A lot of things only become apparent in hindsight. QED. With this approach you do more harm than good. I have a bad feeling about the way things

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-27 Thread Walter Bright via Digitalmars-d
On 8/27/2018 10:08 AM, H. S. Teoh wrote: Const in D makes sense as-is. Though, granted, its infectiousness means its scope is actually very narrow, and as a result, we ironically can't use it in very many places, and so its touted benefits only rarely apply. :-( Which also means that it's

Re: D is dead

2018-08-27 Thread Walter Bright via Digitalmars-d
On 8/23/2018 8:53 PM, David Nadlinger wrote: On Thursday, 23 August 2018 at 23:27:51 UTC, Walter Bright wrote: D deals with it via "chained exceptions", which is terrifyingly difficult to understand. If you believe it is understandable, just try to understand the various devious

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-27 Thread Walter Bright via Digitalmars-d
On 8/26/2018 6:25 PM, Neia Neutuladh wrote: Same here. I do make unicode errors more often than I'd care to admit (someString[$-1] being the most common; I need to write a lastChar helper function), but autodecoding means I can avoid that class of errors. Autodecoding doesn't prevent you from

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-08-26 Thread Walter Bright via Digitalmars-d
On 8/26/2018 6:11 PM, Manu wrote: I'm sure I recall experimental patches where those operators were available to try out... was I dreaming? :/ Andrei has worked on this for a long while, and finally came to the conclusion that ref counting won't work without copy constructors. Hence copy

<    1   2   3   4   5   6   7   8   9   10   >