Re: You don't like GC? Do you?

2018-10-16 Thread Tony via Digitalmars-d
On Monday, 15 October 2018 at 08:21:11 UTC, Eugene Wissner wrote: On Monday, 15 October 2018 at 05:26:56 UTC, Tony wrote: Ideally you wouldn’t have chosen to even try D. You (and others who spend so much time arguing against garbage collection on a forum for a language designed with garbage

Re: You don't like GC? Do you?

2018-10-14 Thread Tony via Digitalmars-d
On Sunday, 14 October 2018 at 07:51:09 UTC, Stanislav Blinov wrote: That's a lamest excuse if I ever seen one. If you can't be bothered to acquire one of the most relevant skills for writing code for modern systems, then: a) Ideally, you shouldn't be writing code b) At the very least, you're

Re: Engine of forum

2018-08-20 Thread Tony via Digitalmars-d
On Monday, 20 August 2018 at 09:52:01 UTC, Peter Alexander wrote: On Monday, 20 August 2018 at 08:39:38 UTC, Andrey wrote: On Sunday, 19 August 2018 at 11:11:56 UTC, rikki cattermole wrote: This is a news group not a forum. The web interface is driven by DFeed and is written in D. It has been

Re: Remember the Vasa! by Bjarne Stroustrup

2018-06-01 Thread Tony via Digitalmars-d
With regard to having, say, a GUI written with garbage collection, and then needing to have non-garbage collected code to process audio, could that not be done with GC D calling C? And, if there was a garbage-collected D (D for Applications) and a non-GC D (D for Systems Programming), couldn't

Re: Remember the Vasa! by Bjarne Stroustrup

2018-05-29 Thread Tony via Digitalmars-d
On Tuesday, 29 May 2018 at 20:19:09 UTC, bachmeier wrote: I don't think it's difficult to do that yourself. There's no need to have a formal split. One example is that it's really nice to have the GC available for part of the program and avoid it for another part. @nogc gives you a guarantee.

Re: Remember the Vasa! by Bjarne Stroustrup

2018-05-29 Thread Tony via Digitalmars-d
On Tuesday, 29 May 2018 at 11:31:53 UTC, Guillaume Piolat wrote: On Tuesday, 29 May 2018 at 05:11:27 UTC, Dmitry Olshansky wrote: D is probably at the edge of what I can tollerate complexity-wise. And we’ll get to simplify a few things soon I believe. Within D, there is a bit smaller and clea

Re: On Forum Moderation

2018-05-26 Thread Tony via Digitalmars-d
On Saturday, 26 May 2018 at 12:06:13 UTC, Mike Parker wrote: On Saturday, 26 May 2018 at 11:30:24 UTC, Tony wrote: On Saturday, 26 May 2018 at 11:12:29 UTC, Rubn wrote: What about self moderation? If I make an unprofessional comment and want to delete it? Will this be allowed now? I guess it'

Re: On Forum Moderation

2018-05-26 Thread Tony via Digitalmars-d
On Saturday, 26 May 2018 at 11:12:29 UTC, Rubn wrote: What about self moderation? If I make an unprofessional comment and want to delete it? Will this be allowed now? I guess it's more of a feature request. The lack of an edit feature has been brought up before and it was said that it doesn'

Re: Sealed classes - would you want them in D?

2018-05-11 Thread Tony via Digitalmars-d
On Friday, 11 May 2018 at 03:32:25 UTC, Uknown wrote: Also, classes are pretty inconvenient because they are hard to use without the GC. I find it surprising that a language that had Garbage Collection as one of its' key features, now has that feature looked at as an inconvenience. Was it a d

Re: Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

2018-04-08 Thread Tony via Digitalmars-d
On Saturday, 7 April 2018 at 20:14:49 UTC, bauss wrote: The above in my case will give a deprecation warning that "_baz" isn't visible from "Bar". Seems like a bug to me since I'm accessing "_baz" from "Foo" itself and not from "Bar" or is it by design that you can't do such thing. I wo

Re: does it scale to have 1 person approve of all phobos additions?

2018-03-20 Thread Tony via Digitalmars-d
I have never used DUB, but as I understand it, it will automatically bring down modules that are stored in gitub or two other git hosts (but not SourceForge for some reason). With that kind of functionality, it seems that inclusion in the standard library becomes much less important for a libra

Downloads page

2018-03-19 Thread Tony via Digitalmars-d
The downloads page is a little corrupted: https://dlang.org/download.html

Re: UDK : Comment sont levés les "Mappable keys"

2018-03-05 Thread Tony via Digitalmars-d
On Monday, 5 March 2018 at 02:12:07 UTC, Adam Levine wrote: Bonjour à tous Alors voilà, quelqu'un saurait-il comment sont levé les évènements des touches appuyées pour UDK? Nous voudrions pouvoir utiliser un nouveau périphérique autre que la souris, le clavier ... : En l’occurrence la Kinect

Re: Annotation of functions

2018-02-21 Thread Tony via Digitalmars-d
On Tuesday, 20 February 2018 at 12:15:57 UTC, psychoticRabbit wrote: I've noticed that Go and Rust annotate functions. func (in go) fn (in rust) I was kind of wondering why they made that choice, given compilers in many languages do not. On Tuesday, 20 February 2018 at 12:15:57 UTC, psychoticR

Re: -libpath?

2018-02-21 Thread Tony via Digitalmars-d
On Wednesday, 21 February 2018 at 10:23:08 UTC, Tony wrote: There is a tool that lets you call GDC and use DMD command-line options (gdmd). If it doesn't already exist, what about a tool that allows you to call DMD using GDC options (which I think are the same as gcc/g++/clang/clang++)? I

Re: -libpath?

2018-02-21 Thread Tony via Digitalmars-d
On Wednesday, 21 February 2018 at 02:21:14 UTC, Jonathan Marler wrote: If we added a new "linker-independent" flag to dmd, then you could add paths using the same interface regardless of which linker you are using. I'd expect the argument to be something like: -libpath= The disadvantage

Re: Which language futures make D overcompicated?

2018-02-15 Thread Tony via Digitalmars-d
On Friday, 9 February 2018 at 19:19:03 UTC, H. S. Teoh wrote: But none of these features are *necessary* to start coding in D. They are optional extras that are nice once you're comfortable with the language. I got by fine for *years* without even using a single mixin, or knowing what 'inout'

Re: The name "Phobos" in user-facing docs

2018-01-12 Thread Tony via Digitalmars-d
I had similar feelings when starting out with D - "why don't they say "standard library" instead of "Phobos"? I don't know that it would change D's image, but I think it would be better for newcomers if they only saw "standard library".

Re: load data from txt file

2018-01-04 Thread Tony via Digitalmars-d
On Thursday, 4 January 2018 at 05:52:35 UTC, codephantom wrote: On Wednesday, 3 January 2018 at 05:45:32 UTC, Tony wrote: Someone else should know what the correct replacement is for removechars(). the replacement is known as 'programming' ;-) //string trimmed = removechars!string(line,"[\\

Re: Maybe D is right about GC after all !

2018-01-03 Thread Tony via Digitalmars-d
On Wednesday, 3 January 2018 at 21:11:06 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 3 January 2018 at 19:42:28 UTC, Tony wrote: Why would someone choose to use a language with a Garbage Collector and then complain that the language has a Garbage Collector? People always complain about garb

Re: Maybe D is right about GC after all !

2018-01-03 Thread Tony via Digitalmars-d
Why would someone choose to use a language with a Garbage Collector and then complain that the language has a Garbage Collector?

Re: load data from txt file

2018-01-02 Thread Tony via Digitalmars-d
On Tuesday, 2 January 2018 at 22:08:52 UTC, aerto wrote: Hello and happy new year im new in d so i have a question i have into a txt file named users.txt the bellow ["admin":"123456789"] ["test":"test345"] im my app string[string] data; so i need to load users.txt content into data in order

Re: Maybe D is right about GC after all !

2017-12-24 Thread Tony via Digitalmars-d
On Sunday, 24 December 2017 at 22:04:00 UTC, Dan Partelly wrote: 1995. A dark year. Two of the crappiest language ever devised by man arrived. Both gained traction. Java, through marketing. PhP though tribalism. What makes Java a "crappy" language? I think PHP's success is due to its abili

Re: Maybe D is right about GC after all !

2017-12-20 Thread Tony via Digitalmars-d
I have heard with regard to reference counting as is done in Python, that if two objects each have a reference to the other, that they will never be deleted, even if neither is used elsewhere in the program. Garbage collection is not supposed to have that issue, although I don't know how a garb

Re: "body" keyword is unnecessary

2017-11-19 Thread Tony via Digitalmars-d
On Sunday, 19 November 2017 at 11:02:37 UTC, bauss wrote: They wouldn't need to know. Obviously they know its purpose and how it works if they have it in their source code, if they don't have it in their source code and they look at contracts, then they will be fine either way as it's not a

Re: "body" keyword is unnecessary

2017-11-19 Thread Tony via Digitalmars-d
On Sunday, 19 November 2017 at 11:02:37 UTC, bauss wrote: On Sunday, 19 November 2017 at 08:13:32 UTC, Tony wrote: On Sunday, 19 November 2017 at 08:05:38 UTC, Tony wrote: OK, but how would someone who is looking at: https://docarchives.dlang.io/v2.074.0/spec/contracts.html I wish this bo

Re: "body" keyword is unnecessary

2017-11-19 Thread Tony via Digitalmars-d
On Sunday, 19 November 2017 at 08:05:38 UTC, Tony wrote: OK, but how would someone who is looking at: https://docarchives.dlang.io/v2.074.0/spec/contracts.html I wish this board had an edit function. That should be "OK, but how would someone who is looking at: https://dlang.org/spec/contr

Re: "body" keyword is unnecessary

2017-11-19 Thread Tony via Digitalmars-d
On Sunday, 19 November 2017 at 07:21:32 UTC, Seb wrote: On Sunday, 19 November 2017 at 04:57:11 UTC, Tony wrote: On Saturday, 18 November 2017 at 19:22:25 UTC, Meta wrote: On Saturday, 18 November 2017 at 16:21:30 UTC, Eljay wrote: [...] Don't worry, you've got a few years yet. Currently `bo

Re: "body" keyword is unnecessary

2017-11-18 Thread Tony via Digitalmars-d
On Saturday, 18 November 2017 at 19:22:25 UTC, Meta wrote: On Saturday, 18 November 2017 at 16:21:30 UTC, Eljay wrote: On Monday, 28 March 2011 at 18:59:03 UTC, Walter Bright wrote: On 3/27/2011 10:35 PM, Jonathan M Davis wrote: I'll be _very_ excited to have both the destructor issues and the

Re: What do people here use as an IDE?

2017-11-17 Thread Tony via Digitalmars-d
On Friday, 17 November 2017 at 14:57:52 UTC, Stas wrote: I use and highly recommend Codelobster: http://www.codelobster.com But I would hope you don't recommend it for D language development. "Details of Codelobster: Our goal is to create product which would simplify and speed up to the ma

Re: Zig mentions D in justifying its existence

2017-11-15 Thread Tony via Digitalmars-d
I am surprised C hasn't tried to become a "better C". Add a string datatype (and maybe other datatypes like datetime). Add an array type (static and/or dynamic) that doesn't suffer from "array decay" when passed to a function or returned from a function. Provide an alternative to the ridiculous

Re: [OT] mobile rising

2017-11-12 Thread Tony via Digitalmars-d
On Friday, 10 November 2017 at 14:28:10 UTC, Ola Fosheim Grøstad wrote: On Friday, 10 November 2017 at 12:55:24 UTC, Tony wrote: Very few companies are not "all about making money". That is why Americans were laid off by the millions and replaced by workers in countries with much cheaper labor

Re: [OT] mobile rising

2017-11-10 Thread Tony via Digitalmars-d
On Friday, 10 November 2017 at 11:28:41 UTC, Joakim wrote: It would either be you and Jobs, or just you, letting them rebel. I would keep the line. That's funny, as I was responding to your statement above, "So, let them rebel." :D "Let them rebel" was with regard to your point of view. As

Re: [OT] mobile rising

2017-11-10 Thread Tony via Digitalmars-d
On Friday, 10 November 2017 at 11:10:30 UTC, Tony wrote: I don't see any relationship between that iOS picture in the Wiki article and Metro. The idea is RESIZABLE, LIVE tiles. Not effects to make them look 3D or not. "live tile" meaning the underlying app can dynamically put readable inform

Re: [OT] mobile rising

2017-11-10 Thread Tony via Digitalmars-d
On Wednesday, 8 November 2017 at 09:34:39 UTC, Joakim wrote: I see, so your claim is that MS, Nokia, HP, Sony, all much larger companies than Apple or Google at the time, could not have countered them even on a lucky day. I wonder why this is, as they certainly had more money, you don't be

Re: [OT] mobile rising

2017-11-10 Thread Tony via Digitalmars-d
On Wednesday, 8 November 2017 at 09:34:39 UTC, Joakim wrote: Why did they fund development of a new iMac Pro which is coming this December as well as the new MacBook Pros that came out this June? That's a contradiction of "milk it like an iPod". Because their userbase was rebelling? I take i

Re: [OT] mobile rising

2017-11-10 Thread Tony via Digitalmars-d
Apple had a big benefit on mobile with their iTunes store that had already been established on Desktop and the very popular iPod. They also had rich USA buyers who bought more apps than users of the other platforms which encouraged developers to target iOS. And they had the Apple/Jobs mystique.

Re: [OT] Windows dying

2017-11-07 Thread Tony via Digitalmars-d
On Monday, 6 November 2017 at 08:33:16 UTC, Joakim wrote: The vast majority of users would be covered by 5-10 GBs of available storage, which is why the lowest tier of even the luxury iPhone was 16 GBs until last year. Every time I talk to normal people, ie non-techies unlike us, and ask th

Re: [OT] Windows dying

2017-11-05 Thread Tony via Digitalmars-d
On Friday, 3 November 2017 at 14:12:56 UTC, Joakim wrote: I don't know why you're so obsessed with storage when even midrange smartphones come with 32 GBs nowadays, expandable to much more with an SD card. My tablet has only 16 GBs of storage, with only 10-12 actually accessible, but I've ne

Re: [OT] Windows dying

2017-11-03 Thread Tony via Digitalmars-d
On Friday, 3 November 2017 at 09:16:42 UTC, Joakim wrote: Why do predictions about the future matter when at the present Windows dominates the desktop and is also strong in the server space? Because that desktop market matters much less than it did before, see the current mobile dominance,

Re: [OT] Windows dying

2017-11-02 Thread Tony via Digitalmars-d
On Wednesday, 1 November 2017 at 08:49:05 UTC, Joakim wrote: On Wednesday, 1 November 2017 at 00:16:19 UTC, Mengu wrote: On Monday, 30 October 2017 at 13:32:23 UTC, Joakim wrote: I don't know how intense your data analysis is, but I replaced a Win7 ultrabook that had a dual-core i5 and 4 GBs

Re: [OT] Windows dying

2017-10-31 Thread Tony via Digitalmars-d
On Monday, 30 October 2017 at 13:32:23 UTC, Joakim wrote: There will always be a few Windows cockroaches that survive the mobile nuclear blast, but we're talking about the majority who won't. Why do predictions about the future matter when at the present Windows dominates the desktop and

Re: What is the Philosophy of D?

2017-10-23 Thread Tony via Digitalmars-d
Combine C and Java.

Re: D on quora ...

2017-10-15 Thread Tony via Digitalmars-d
On Friday, 6 October 2017 at 21:12:58 UTC, Rion wrote: Other aspects like being unsure when the GC will trigger can also influence people to a non-gc language. The Go developers have done a massive ( an impressive ) amount of work on trying to reduce GC pauses in the last two years, and that