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

2018-10-15 Thread Eugene Wissner via Digitalmars-d
On Monday, 15 October 2018 at 05:26:56 UTC, Tony wrote: 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, y

Re: Proposal: __not(keyword)

2018-09-14 Thread Eugene Wissner via Digitalmars-d
On Friday, 14 September 2018 at 18:06:55 UTC, Adam D. Ruppe wrote: Here's the simple idea: __not(anything) just turns off whatever `anything` does in the compiler. __not(final) void foo() {} // turns off the final flag (if it is set) __not(@nogc) void foo() {} // turns off the @nogc flag (if i

Re: Small @nogc experience report

2018-09-07 Thread Eugene Wissner via Digitalmars-d
On Friday, 7 September 2018 at 16:44:05 UTC, Peter Alexander wrote: I recently wrote a small program of ~600 lines of code to solve an optimisation puzzle. Profiling showed that GC allocations were using non-trivial CPU, so I decided to try and apply @nogc to remove allocations. This is a small

Re: Small @nogc experience report

2018-09-07 Thread Eugene Wissner via Digitalmars-d
On Friday, 7 September 2018 at 17:01:09 UTC, Meta wrote: Semi-unrelated, but I think you should open a bug for this one. I remember Andrei stating before that every function in std.algorithm except for LevehnsteinDistance(?) is @nogc, so he either missed topNCopy or the gc-ness of the function

Re: This is why I don't use D.

2018-09-04 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 5 September 2018 at 05:44:38 UTC, H. S. Teoh wrote: On Wed, Sep 05, 2018 at 01:18:17AM +, James Blachly via Digitalmars-d wrote: On Wednesday, 5 September 2018 at 00:49:36 UTC, Everlast wrote: > I downloaded 3ddemo, extracted, built and I get these errors: > ... [...] Are yo

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

2018-08-28 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 28 August 2018 at 07:53:34 UTC, Walter Bright wrote: Let's take the much-maligned D const. It isn't C++ const (let's call that "head-const", because that's what it is). Head-const for a function parameter tells us very little about what may happen to it in the function. You can pass

Re: I want change package name for dub , how to do it?

2018-08-27 Thread Eugene Wissner via Digitalmars-d
On Monday, 27 August 2018 at 10:25:42 UTC, Brian wrote: My team want change packages name: hunt -> hunt-framework entity -> hunt-entity database -> hunt-database cache -> hunt-cache How to do it? Must delete package before add it again? Yes. And change the name in dub.json/dub.sdl.

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

2018-08-24 Thread Eugene Wissner via Digitalmars-d
On Friday, 24 August 2018 at 12:25:58 UTC, Paolo Invernizzi wrote: On Wednesday, 22 August 2018 at 11:59:37 UTC, Paolo Invernizzi wrote: Just found by chance, if someone is interested [1] [2]. /Paolo After having seen all the discussions around Mihails post in these days, I'm puzzled by one

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

2018-08-23 Thread Eugene Wissner via Digitalmars-d
On Thursday, 23 August 2018 at 07:37:07 UTC, Iain Buclaw wrote: Symptom: The compiler can't discard unused symbols at compile time, and so it will spend a lot of time pointlessly optimising code. Problem: D has no notion of symbol visibility. Possible Solution: Make all globals hidden by defa

Re: D is dead

2018-08-22 Thread Eugene Wissner via Digitalmars-d
On Thursday, 23 August 2018 at 04:59:47 UTC, Dukc wrote: On Thursday, 23 August 2018 at 04:44:47 UTC, Shachar Shemesh wrote: But, again, it is interesting to see what you took from my mail. I think the biggest problem is lack of reviewers when making PR:s. The fact that we have D language fou

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

2018-08-22 Thread Eugene Wissner via Digitalmars-d
On Thursday, 23 August 2018 at 03:50:44 UTC, Shachar Shemesh wrote: No, no and no. I was holding out on replying to this thread to see how the community would react. The vibe I'm getting, however, is that the people who are seeing D's problems have given up on affecting change. It is no sec

Re: High-level vision for 2018 H2?

2018-08-18 Thread Eugene Wissner via Digitalmars-d
On Saturday, 18 August 2018 at 07:50:04 UTC, Dukc wrote: On Thursday, 16 August 2018 at 14:11:20 UTC, Andrei Alexandrescu wrote: we're working on a HOPL submission. What's HOPL? http://www.hopl.info/

Re: Reimplementing software building blocks like malloc and free in D

2018-08-12 Thread Eugene Wissner via Digitalmars-d
On Sunday, 12 August 2018 at 06:44:37 UTC, Aruna Maurya wrote: On Sunday, 12 August 2018 at 05:24:56 UTC, Mike Franklin wrote: On Sunday, 12 August 2018 at 04:16:24 UTC, Aruna Maurya wrote: [...] I'd say there is only 1 requirement: implementing `malloc`, `realloc`, and `free` in idiomatic

Re: Reimplementing software building blocks like malloc and free in D

2018-08-11 Thread Eugene Wissner via Digitalmars-d
On Sunday, 12 August 2018 at 05:24:56 UTC, Mike Franklin wrote: I wasn't aware of Eugene's implementation. At first glance it looks real nice. It appears to have some dependencies on other features of his Tanya library, so at a minimum, those will have to be removed or replaced. It depend

Re: Reimplementing software building blocks like malloc and free in D

2018-08-11 Thread Eugene Wissner via Digitalmars-d
On Saturday, 11 August 2018 at 18:59:00 UTC, Aruna Maurya wrote: Hello all! I am a Computer Science undergraduate student. Currently a junior, I find the idea of 're-implementing software building blocks like malloc and free in D' listed in the wiki page of SAOC(Symmetry Autumn of Code) quite

Re: Faster printing of floats; is this something that D could benefit from?

2018-07-28 Thread Eugene Wissner via Digitalmars-d
On Saturday, 28 July 2018 at 16:02:22 UTC, Gary Willoughby wrote: I just saw this on hacker news: We present Ryū, a new routine to convert binary floating point numbers to their decimal representations using only fixed-size integer operations, and prove its correctness. Ryū is simpler and app

Re: std.experimental.collections.rcstring and its integration in Phobos

2018-07-18 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 18 July 2018 at 11:37:33 UTC, Seb wrote: On Tuesday, 17 July 2018 at 17:41:05 UTC, Jacob Carlborg wrote: On 2018-07-17 17:21, Seb wrote: - _no_ range by default (it needs an explicit `.by!{d,w,}char`) (as in no auto-decoding by default) What do you think about this approach? Do

Re: Do you have usecases for opAssign?

2018-06-29 Thread Eugene Wissner via Digitalmars-d
On Friday, 29 June 2018 at 07:37:46 UTC, FeepingCreature wrote: On Friday, 29 June 2018 at 07:31:42 UTC, Eugene Wissner wrote: You can move only exactly the same type. with opAssign you can assign a differnt type. So opAssign should forward assignment to the underlying type if you assign nor

Re: Do you have usecases for opAssign?

2018-06-29 Thread Eugene Wissner via Digitalmars-d
On Friday, 29 June 2018 at 07:15:38 UTC, FeepingCreature wrote: I'm doing a pull request to rewrite Nullable to use moveEmplace/move to replace its internal value. I'm considering whether it's better to let Nullable destroy its existing value, then memcpy the new one over it (via move()), or if

Re: Compilation is taking a ton of memory

2018-06-28 Thread Eugene Wissner via Digitalmars-d
On Thursday, 28 June 2018 at 16:24:07 UTC, H. S. Teoh wrote: On Thu, Jun 28, 2018 at 04:11:57PM +, crimaniak via Digitalmars-d wrote: [...] The problem is aggravated by the fact that DUB compiles all the sources in one DMD launch. Doesn't dub have an option to compile packages (i.e. subdir

Re: Disappointing performance from DMD/Phobos

2018-06-26 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 26 June 2018 at 18:07:56 UTC, Manu wrote: On Tue, 26 Jun 2018 at 10:43, Iain Buclaw via Digitalmars-d wrote: On 26 June 2018 at 19:41, Manu via Digitalmars-d wrote: > On Mon, 25 Jun 2018 at 20:50, Nicholas Wilson via > Digitalmars-d wrote: >> >> Then use LDC! ;) > > Keep LDC u

Re: D hash table comparison benchmark

2018-06-26 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 26 June 2018 at 09:03:10 UTC, Eugene Wissner wrote: It seems it doesn't work with a branch in dub.sdl. I just replaced the files in ~/.dub/packages. And to make tanya perform better than built-in AAs in the first test, define a hash function: size_t hasher(int e) { ret

Re: D hash table comparison benchmark

2018-06-26 Thread Eugene Wissner via Digitalmars-d
It seems it doesn't work with a branch in dub.sdl. I just replaced the files in ~/.dub/packages.

Re: D hash table comparison benchmark

2018-06-26 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 26 June 2018 at 04:17:44 UTC, Nathan S. wrote: On Tuesday, 26 June 2018 at 03:45:27 UTC, Seb wrote: Did you by chance also benchmark it with other languages like C++, Go or Rust? I didn't since I was evaluating hashtable implementations for use in a D application. BTW I'm not su

Re: #dbugfix Issue 15984

2018-03-07 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 7 March 2018 at 12:04:11 UTC, nkm1 wrote: On Tuesday, 6 March 2018 at 17:36:08 UTC, Mario Kröplin wrote: [REG2.071] Interface contracts retrieve garbage instead of parameters https://issues.dlang.org/show_bug.cgi?id=15984 This regression from 2016 causes random crashes if you use

Re: #dbugfix Issue 15984

2018-03-07 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 6 March 2018 at 17:36:08 UTC, Mario Kröplin wrote: [REG2.071] Interface contracts retrieve garbage instead of parameters https://issues.dlang.org/show_bug.cgi?id=15984 This regression from 2016 causes random crashes if you use one of the key features of D - Contract Programming.

Re: Status of @nogc with the runtime

2018-02-17 Thread Eugene Wissner via Digitalmars-d
On Saturday, 17 February 2018 at 12:18:28 UTC, Peter Campbell wrote: Hi everyone, it's been almost a year since I used D but I was wanted to get back into it. I was checking the 2017 vision pages and was wondering why there hasn't been a 2018H1 vision page but also what the current status of be

Re: minimal object.d implementation that allows classes

2017-12-06 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 6 December 2017 at 17:17:40 UTC, Luís Marques wrote: Is there a small druntime/object.d implementation that allows basic support for classes, without bringing the whole druntime implementation with it? http://arsdnet.net/dcode/minimal.zip ?

Re: Will D continu to live after walter death?

2017-10-18 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 18 October 2017 at 09:54:41 UTC, moechofe wrote: Iain, Adam: Can I concider working with GCD, knowing that only 1 guy knows everything about the project? There are two people behind GDC, don't forget about Johannes Pfau. And don't forget that they are responsible only for the gl

Re: Specifying @nogc on structs seems to have no effect

2017-09-19 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 19 September 2017 at 13:11:03 UTC, Craig Black wrote: I've recently tried coding in D again after some years. One of my earlier concerns was the ability to code without the GC, which seemed difficult to pull off. To be clear, I want my programs to be garbage collected, but I want

Re: How do you use D?

2017-08-07 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 8 August 2017 at 01:20:37 UTC, Nicholas Wilson wrote: On Monday, 7 August 2017 at 19:54:51 UTC, Eugene Wissner wrote: Yes. Everything I know about low-level network programming, assembler, memory management, I learned from my working on my library, tanya. OT but tanya's r

Re: How do you use D?

2017-08-07 Thread Eugene Wissner via Digitalmars-d
I'm a self-employed web-developer, mostly working with PHP and Javascript and markup languages like HTML and stuff like CSS and SQL databases. On the other hand at school (in Russia) we began with QBasic, then Turbo Pascal and could choose if we use Turbo Pascal or something else for solving

Re: The progress of D since 2013

2017-07-31 Thread Eugene Wissner via Digitalmars-d
On Monday, 31 July 2017 at 07:22:06 UTC, Maxim Fomin wrote: 4) What is the state of GDC/LDC? GDC team was actively working on including gdc in gcc project. Do gdc and ldc still pull D frontend, so there is essentially 1 frontend (where gdc and ldc frontends lag several versions behind) + 3 back

Re: Accessing memory after destroy

2017-07-29 Thread Eugene Wissner via Digitalmars-d
On Saturday, 29 July 2017 at 20:44:30 UTC, Johan Engelen wrote: I'd like to check a bit of info I need for Address Sanitizer checking. The spec says [1]: Use the destroy function to finalize an object by calling its destructor. The memory of the object is not immediately deallocated, instead

Re: Serialization/deserialization of templated class

2017-06-27 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 28 June 2017 at 05:52:38 UTC, Dmitry Solomennikov wrote: On Wednesday, 28 June 2017 at 05:01:17 UTC, Eugene Wissner wrote: On Wednesday, 28 June 2017 at 04:41:25 UTC, Dmitry Solomennikov wrote: Probably if you have serialized data, you convert strings to other types, so it may

Re: Serialization/deserialization of templated class

2017-06-27 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 28 June 2017 at 04:41:25 UTC, Dmitry Solomennikov wrote: Hi, guys! I have templated classes like this: class Some(T1) { T1 value; this(T1 _value){ value = _value; } } class Pair(T1, T2) { T1 first; T2 second; this(T1 _first, T2 _second){ first = _first; sec

Re: Checked vs unchecked exceptions

2017-06-25 Thread Eugene Wissner via Digitalmars-d
http://forum.dlang.org/post/ullvxbfqeuztwecxc...@forum.dlang.org On Sunday, 25 June 2017 at 17:38:14 UTC, mckoder wrote: I am disappointed that D doesn't have checked exceptions. C++ and C# also don't have checked exceptions. Java has checked exceptions. Having programmed extensively in all th

Re: What is your favorite D feature?

2017-06-21 Thread Eugene Wissner via Digitalmars-d
On Thursday, 22 June 2017 at 00:48:25 UTC, Seb wrote: Hi, I am currently trying to modernize the D code example roulette on the dlang.org front page [1]. Hence, I would love to hear about your favorite feature(s) in D. Ideas: - favorite language construct - favorite code sample - "only possib

Re: gdc is in

2017-06-21 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 21 June 2017 at 15:11:39 UTC, Joakim wrote: the gcc tree: https://gcc.gnu.org/ml/gcc/2017-06/msg00111.html Congratulations to Iain and the gdc team. :) I found out because it's on the front page of HN right now, where commenters are asking questions about D. Many thanks and co

Re: On "A New Collections Framework for the Standard Library"

2017-05-18 Thread Eugene Wissner via Digitalmars-d
On Thursday, 18 May 2017 at 15:18:00 UTC, Jack Stouffer wrote: I just got around to watching Eduard Staniloiu's talk at DConf [1] about the collections library he was working on. One thing seemed odd, in that Eduard seems to be saying that the container and the range over the container's elemen

Re: DIP 1003 Formal Review

2017-05-16 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 16 May 2017 at 19:25:25 UTC, Steven Schveighoffer wrote: On 5/16/17 2:48 PM, Eugene Wissner wrote: On Tuesday, 16 May 2017 at 18:34:06 UTC, Steven Schveighoffer wrote: 1) Consistency with functions without contracts. This only applies to the "naked" version which has

Re: DIP 1003 Formal Review

2017-05-16 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 16 May 2017 at 19:24:43 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 16 May 2017 at 19:23:28 UTC, Eugene Wissner wrote: What about error messages. With asserts I get the line where the assert failed. Can I get an information which condition failed (sorry for the question, I don&#

Re: DIP 1003 Formal Review

2017-05-16 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 16 May 2017 at 19:18:43 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 16 May 2017 at 18:57:37 UTC, H. S. Teoh wrote: this ugly verbosity, but imagine how much better it would be if we could write something like this instead: int foo(T, U)(T t, U u) if (sigConstraints!

Re: DIP 1003 Formal Review

2017-05-16 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 16 May 2017 at 16:10:56 UTC, David Gileadi wrote: One possible substitute for the `function` keyword in option 2 could be `do`. I'm not convinced it's a good substitute, but I thought I'd throw it out there. Looks weird for a C-style language imho.

Re: DIP 1003 Formal Review

2017-05-16 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 16 May 2017 at 18:34:06 UTC, Steven Schveighoffer wrote: On 5/12/17 12:17 PM, Mike Parker wrote: The first stage of the formal review for DIP 1003 [1], "Remove body as a Keyword", is now underway. From now until 11:59 PM ET on May 26 (3:59 AM GMT on May 27), the community has the op

Re: DIP 1003 Formal Review

2017-05-13 Thread Eugene Wissner via Digitalmars-d
On Saturday, 13 May 2017 at 18:07:57 UTC, Timon Gehr wrote: On 13.05.2017 16:30, Petar Kirov [ZombineDev] wrote: On Saturday, 13 May 2017 at 10:27:25 UTC, Timon Gehr wrote: On 12.05.2017 18:17, Mike Parker wrote: The first stage of the formal review for DIP 1003 [1], "Remove body as a Keyword"

Re: DIP 1003 Formal Review

2017-05-12 Thread Eugene Wissner via Digitalmars-d
On Friday, 12 May 2017 at 16:17:03 UTC, Mike Parker wrote: The first stage of the formal review for DIP 1003 [1], "Remove body as a Keyword", is now underway. From now until 11:59 PM ET on May 26 (3:59 AM GMT on May 27), the community has the opportunity to provide last-minute feedback. If you

Re: Thoughts from newcommer

2017-04-11 Thread Eugene Wissner via Digitalmars-d
On Tuesday, 11 April 2017 at 20:48:13 UTC, Piotr Kowalski wrote: (All gc-ed langauges recommend static preallocation :P) ;) Thanks for replying. https://wiki.dlang.org/Vision/2017H1 Thanks, I have read that already, that's why I've asked about longer term. What about RAII? It's alrea

Re: Exceptions in @nogc code

2017-04-01 Thread Eugene Wissner via Digitalmars-d
On Saturday, 1 April 2017 at 18:56:56 UTC, Guillaume Piolat wrote: (currently using @nogc exceptions with malloc+emplace and destroy+free) OK. The important bit imho is that exception don't become special class objects. ie. "scope new" is not specific to exceptions. The other @nogc blocker is

Re: Exceptions in @nogc code

2017-04-01 Thread Eugene Wissner via Digitalmars-d
On Saturday, 1 April 2017 at 14:54:21 UTC, deadalnix wrote: I'll repeat myself, even if I don't believe it'll be listened to at this point. The problem you want to address is not GC allocations, it is GC collection cycles. If everything is freed, then there is no GC problem. not only this, bu

Re: Property access to a struct that contains struct

2017-02-26 Thread Eugene Wissner via Digitalmars-d
On Sunday, 26 February 2017 at 11:05:42 UTC, Guenter wrote: Hi, i do not understand where I am wrong in this code. I seems there is a missing constructor, but i have no idea where. module main; import std.stdio; struct A_t { int fvalue; A_t opCall() { return this; }; @pr

Re: code.dlang.org major outage

2017-02-24 Thread Eugene Wissner via Digitalmars-d
On Friday, 24 February 2017 at 08:50:12 UTC, Sönke Ludwig wrote: Am 24.02.2017 um 01:46 schrieb Sönke Ludwig: Am 23.02.2017 um 23:55 schrieb Sönke Ludwig: The virtual server that is running code.dlang.org has frozen about an hour ago and fails to boot further than to the bootloader. Initial at

Re: code.dlang.org internal server error

2017-02-08 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 8 February 2017 at 12:54:00 UTC, John Colvin wrote: On Wednesday, 8 February 2017 at 05:49:55 UTC, Ali Çehreli wrote: code.dlang.org gives the following error: 500 - Internal Server Error Internal Server Error Ali Seeing as code.dlang.org is pretty critical these days, it wou

Re: code.dlang.org internal server error

2017-02-07 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 8 February 2017 at 05:49:55 UTC, Ali Çehreli wrote: code.dlang.org gives the following error: 500 - Internal Server Error Internal Server Error Ali code.dlang.org is quite often down with the same errror.

Re: @safe containers with std.experimental.allocator

2017-01-20 Thread Eugene Wissner via Digitalmars-d
On Saturday, 21 January 2017 at 05:52:49 UTC, bitwise wrote: I hadn't noticed this, but I immediately see two problems: 1) there is no alignedDeallocate() which is needed because aligned allocators usually prepend metadata containing a pointer to the actual start of the memory to be passed to

Re: @safe containers with std.experimental.allocator

2017-01-20 Thread Eugene Wissner via Digitalmars-d
On Saturday, 21 January 2017 at 02:47:49 UTC, bitwise wrote: When std.experimental.allocator was created, I was under the impression it was meant to be used to make containers. But since allocate() returns void[], casts are required before using that memory, which is unsafe. Is my only option

Re: Cannot use auto ref passing in expression template operator overloads

2017-01-18 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 18 January 2017 at 10:49:43 UTC, Nordlöw wrote: Is there a way around this problem? I had the same problem with opSliceAssign, opIndexAssign lately.

Re: Annotation programming in my design code ..

2017-01-09 Thread Eugene Wissner via Digitalmars-d
On Monday, 9 January 2017 at 18:41:31 UTC, Brian wrote: I see, man! If the parent class cannot generate code for a subclass, it's not as good as a high-level programing language. It isn't possible. mixin is interpeted at compile time and the parent class has no knowledge about its children.

Re: Dlang remote junior developer jobs

2017-01-09 Thread eugene via Digitalmars-d
On Monday, 9 January 2017 at 12:39:22 UTC, Bauss wrote: On Sunday, 8 January 2017 at 22:34:33 UTC, eugene wrote: Hello, everyone, could you share, please, your knowledge, where can i search D lang remote junior developer jobs? Currently there are barely any employers who require D

Dlang remote junior developer jobs

2017-01-08 Thread eugene via Digitalmars-d
Hello, everyone, could you share, please, your knowledge, where can i search D lang remote junior developer jobs?

Re: Annotation programming in my design code ..

2017-01-08 Thread Eugene Wissner via Digitalmars-d
On Sunday, 8 January 2017 at 20:11:23 UTC, Brian wrote: On Friday, 6 January 2017 at 17:48:23 UTC, Eugene Wissner wrote: On Friday, 6 January 2017 at 17:44:13 UTC, Brian wrote: I would like to design features, how should I do? coding: class User { @GenerateProperty int id

Re: ARC in D

2017-01-07 Thread eugene via Digitalmars-d
On Friday, 6 January 2017 at 15:17:05 UTC, Nordlöw wrote: On Wednesday, 4 January 2017 at 13:32:23 UTC, Nordlöw wrote: Non-atomic RC wrapper type is here http://dlang.org/phobos/std_typecons.html#.RefCounted Further, note that `RefCounted` is not yet pure, but will soon be; https://github.co

Re: Annotation programming in my design code ..

2017-01-06 Thread Eugene Wissner via Digitalmars-d
On Friday, 6 January 2017 at 17:44:13 UTC, Brian wrote: I would like to design features, how should I do? coding: class User { @GenerateProperty int id; @GenerateProperty string name; } struct GenerateProperty { this(string propertyName)

Re: ARC in D

2017-01-06 Thread eugene via Digitalmars-d
On Wednesday, 4 January 2017 at 13:32:23 UTC, Nordlöw wrote: On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote: hello everyone, is there any kind of smart pointers or something in D instead of GC? Non-atomic RC wrapper type is here http://dlang.org/phobos/std_typecons.html#.RefCounted

Re: ARC in D

2017-01-06 Thread eugene via Digitalmars-d
On Wednesday, 4 January 2017 at 04:26:19 UTC, Eugene Wissner wrote: On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote: hello everyone, is there any kind of smart pointers or something in D instead of GC? You may want to look into https://github.com/etcimon/memutils and https

Re: ARC in D

2017-01-03 Thread Eugene Wissner via Digitalmars-d
On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote: hello everyone, is there any kind of smart pointers or something in D instead of GC? You may want to look into https://github.com/etcimon/memutils and https://github.com/caraus-ecms/tanya (source/tanya/memory/types).

Re: ARC in D

2017-01-02 Thread eugene via Digitalmars-d
On Monday, 2 January 2017 at 16:32:12 UTC, Jonathan M Davis wrote: On Monday, January 02, 2017 16:07:26 eugene via Digitalmars-d wrote: On Monday, 2 January 2017 at 15:49:47 UTC, Stefan Koch wrote: > On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote: >> hello everyone, >&g

Re: ARC in D

2017-01-02 Thread eugene via Digitalmars-d
On Monday, 2 January 2017 at 15:49:47 UTC, Stefan Koch wrote: On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote: hello everyone, is there any kind of smart pointers or something in D instead of GC? It's coming! is it coming for real, or just for the record?

ARC in D

2017-01-02 Thread eugene via Digitalmars-d
hello everyone, is there any kind of smart pointers or something in D instead of GC?

Re: From r/linux: Which language should i use/learn ?

2016-12-12 Thread eugene via Digitalmars-d
On Saturday, 10 December 2016 at 16:09:53 UTC, Basile B. wrote: And I've hit a Rust user. why did you do that?

Re: D developer jobs

2016-11-23 Thread eugene via Digitalmars-d
On Wednesday, 23 November 2016 at 04:39:45 UTC, Adam Wilson wrote: eugene wrote: hello everyone, could you, please, tell do any jobs(full-time or freelance) exist for junior D developers? This page might be off assistance. These are all the known corps using D. Some have hiring links

D developer jobs

2016-11-22 Thread eugene via Digitalmars-d
hello everyone, could you, please, tell do any jobs(full-time or freelance) exist for junior D developers?

Re: Simplicity and complexity of dlang

2016-11-09 Thread eugene via Digitalmars-d
On Wednesday, 9 November 2016 at 14:09:14 UTC, Chris wrote: You have to upgrade your compiler in order to be able to keep on using D in the future. Else your project will be frozen in time. new version of compiler = new bugs if there is no backward compatibility it would be better to keep u

Re: Simplicity and complexity of dlang

2016-11-09 Thread eugene via Digitalmars-d
On Wednesday, 9 November 2016 at 08:10:13 UTC, MGW wrote: Having a huge project (approximately 8000 strings) and while supporting it permanently I often find out that changes that take place in new versions of the program (particularly in 2.072)are too hard to perceive and use (especially the b

Re: URI parsing

2016-10-05 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 5 October 2016 at 10:19:08 UTC, John C wrote: What packages do people use when they want to parse URIs? I rolled my own but it's incomplete and as it's a fairly common need there must be one out there? In fact, I'm surprised there isn't one in Phobos yet. I also wrote a function

Re: The worst Phobos template (in binderoo)

2016-09-29 Thread Eugene Wissner via Digitalmars-d
On Thursday, 29 September 2016 at 16:02:53 UTC, David Nadlinger wrote: This wouldn't be a correct use of the feature anyway, since it runs into all sorts of fundamental issues with imports/scoping, aliases and templates. Using .stringof/fullyQualifiedName to generate a reference to a type or

Re: The worst Phobos template (in binderoo)

2016-09-29 Thread Eugene Wissner via Digitalmars-d
On Thursday, 29 September 2016 at 14:49:03 UTC, Stefan Koch wrote: The reason why this fails is because of the cast(Flag) which should be cast(Flag!"unsafe"). I can probably make it work tough, that means more special casing :) Yes, I know. See this topic for the first discussion: http://forum

Re: The worst Phobos template (in binderoo)

2016-09-29 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 14 September 2016 at 20:28:13 UTC, Stefan Koch wrote: On Wednesday, 14 September 2016 at 20:24:13 UTC, Stefan Koch wrote: I would like to see users of fullyQualifiedName because apart from binderoo code which seems to work, I have none. That was supposed to say : I would like t

Re: D, ZeroMQ, Nanomsg

2016-09-28 Thread eugene via Digitalmars-d
On Wednesday, 28 September 2016 at 11:55:15 UTC, JN wrote: On Wednesday, 28 September 2016 at 11:53:05 UTC, Russel Winder wrote: Hi, I see that some people have wrapped in various different ways ZeroMQ. Was this manually, or using DStep? Has anyone wrapped Nanomsg? If yes, was this manually

module std.stream is deprecated

2016-09-22 Thread eugene via Digitalmars-d
Hello everyone, i get message: "Deprecation: module std.stream is deprecated - It will be removed from Phobos in October 2016..." What can i use instead of std.stream?

Re: consequences of removing semicolons in D like in Python

2016-09-22 Thread eugene via Digitalmars-d
On Thursday, 22 September 2016 at 14:07:29 UTC, Chris wrote: What about braces and brackets? debug { writeln("Error") } i think writeln("Error") could be parsed as one statement

Re: consequences of removing semicolons in D like in Python

2016-09-22 Thread eugene via Digitalmars-d
On Tuesday, 20 September 2016 at 15:42:10 UTC, Chris wrote: ¿How would you handle cases like debug { writeln("Error"); return; } of just debug { writeln("Error"); } it is handled by separating each statement with newline, not semicolon

Re: null analysis with control flow

2016-09-21 Thread eugene via Digitalmars-d
On Wednesday, 21 September 2016 at 13:10:53 UTC, w0rp wrote: Assignment of null to a type T is forbidden. Assignment to a type T? forms a fence, which would imply an atomic fence. When a type T is assigned to a variable of type T?, then after that line of code, the value can be considered to

Re: Why I am switching to Go

2016-09-20 Thread eugene via Digitalmars-d
On Tuesday, 20 September 2016 at 19:16:04 UTC, cym13 wrote: What exactly makes you think vibe is dying? it lacks the documentation?

Re: consequences of removing semicolons in D like in Python

2016-09-20 Thread eugene via Digitalmars-d
On Tuesday, 20 September 2016 at 15:46:58 UTC, Chris wrote: You come across as if you had set your heart on removing semicolons. i didn't set my heart on removing semicolons, the topic is "consequences of removing semicolons..."

Re: consequences of removing semicolons in D like in Python

2016-09-20 Thread eugene via Digitalmars-d
On Tuesday, 20 September 2016 at 15:36:42 UTC, Chris wrote: But is it really worth it? this was my question at the beginning of the thread

Re: consequences of removing semicolons in D like in Python

2016-09-20 Thread eugene via Digitalmars-d
On Tuesday, 20 September 2016 at 15:28:51 UTC, Chris wrote: Anyway, why don't you grab the compiler and make a version that accepts line breaks and ";" - and see what happens? yes, i've written about it in the thread before

Re: consequences of removing semicolons in D like in Python

2016-09-20 Thread eugene via Digitalmars-d
On Tuesday, 20 September 2016 at 14:19:50 UTC, Nick Sabalausky wrote: Just like you parse a sentence when you read it by noticing the spaces defining where words are. And the commas separating sections of a sentence, and periods/capitalization separating the sentences, in-sentence capitalizatio

Re: consequences of removing semicolons in D like in Python

2016-09-20 Thread eugene via Digitalmars-d
On Tuesday, 20 September 2016 at 12:00:00 UTC, bachmeier wrote: Without the semicolons, I have to parse the code myself could you, please, explain, why do you parse code yourself?

Re: consequences of removing semicolons in D like in Python

2016-09-20 Thread eugene via Digitalmars-d
On Monday, 19 September 2016 at 20:42:22 UTC, jmh530 wrote: I don't see a reason to make that sort of change within the D language or DMD, especially when something like Delight exists and probably accomplishes exactly what the OP had wanted. Delight is not what i meant, i meant something li

Re: consequences of removing semicolons in D like in Python

2016-09-17 Thread eugene via Digitalmars-d
On Saturday, 17 September 2016 at 14:23:40 UTC, jmh530 wrote: What if the OP wrote a compiler that turned his version of D sans semicolons into proper D code? i didn't try to implement it myself, but i will try

Re: consequences of removing semicolons in D like in Python

2016-09-17 Thread eugene via Digitalmars-d
On Saturday, 17 September 2016 at 13:33:49 UTC, Craig Dillabaugh wrote: On Saturday, 17 September 2016 at 13:18:24 UTC, eugene wrote: On Saturday, 17 September 2016 at 13:11:50 UTC, Nick Sabalausky wrote: On 09/16/2016 07:00 PM, eugene wrote: Hello everyone, what if to remove semicolons at

Re: consequences of removing semicolons in D like in Python

2016-09-17 Thread eugene via Digitalmars-d
On Saturday, 17 September 2016 at 13:11:50 UTC, Nick Sabalausky wrote: On 09/16/2016 07:00 PM, eugene wrote: Hello everyone, what if to remove semicolons at the end of each line of code in D like in Python? Is it worth it? Not worth it. Gripes about semicolons are a symptom of only seeing

Re: consequences of removing semicolons in D like in Python

2016-09-17 Thread eugene via Digitalmars-d
On Saturday, 17 September 2016 at 02:21:54 UTC, Chris M. wrote: Pointless and not worth breaking everyone's code over why?

Re: consequences of removing semicolons in D like in Python

2016-09-16 Thread eugene via Digitalmars-d
On Friday, 16 September 2016 at 23:00:08 UTC, eugene wrote: Hello everyone, what if to remove semicolons at the end of each line of code in D like in Python? Is it worth it? i.e. simply use a newline sign as a line separator

consequences of removing semicolons in D like in Python

2016-09-16 Thread eugene via Digitalmars-d
Hello everyone, what if to remove semicolons at the end of each line of code in D like in Python? Is it worth it?

Re: What is the most stable D compiler

2016-09-16 Thread eugene via Digitalmars-d
On Friday, 16 September 2016 at 02:39:07 UTC, Sai wrote: If stability is more important, I recommend to only update to x.y.2 or higher releases, just don't update to x.y.0 releases. yes, reliability is more important, could you, please, point out the link where i can read about versions? H

Re: What is the most stable D compiler

2016-09-15 Thread eugene via Digitalmars-d
On Thursday, 15 September 2016 at 13:14:16 UTC, Sai wrote: On Thursday, 15 September 2016 at 13:02:29 UTC, eugene wrote: On Thursday, 15 September 2016 at 06:26:40 UTC, Jacob Carlborg wrote: On 2016-09-14 13:42, rikki cattermole wrote: GDC is the slowest to update currently so that can be

Re: What is the most stable D compiler

2016-09-15 Thread eugene via Digitalmars-d
On Thursday, 15 September 2016 at 06:26:40 UTC, Jacob Carlborg wrote: On 2016-09-14 13:42, rikki cattermole wrote: GDC is the slowest to update currently so that can be ignored for now. LDC has fairly fast updates in terms of the frontend and can target more platforms. I would say 42 minute

Re: What is the most stable D compiler

2016-09-14 Thread eugene via Digitalmars-d
On Wednesday, 14 September 2016 at 11:52:00 UTC, Klmp wrote: On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote: What is the most reliable D compiler: dmd, ldc, gdc? because it's slightly before DMD the answer is: LDC. GDC is too far behind DMD is at the front LDC has most o

  1   2   >