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
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
It seems it doesn't work with a branch in dub.sdl. I just
replaced the files in ~/.dub/packages.
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)
{
return e;
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
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
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
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 Nu
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
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
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
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
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
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/
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
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
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
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
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.
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
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
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
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
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
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
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 readme has
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
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
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 ?
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
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.
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
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)
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;
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.
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.
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
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
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.
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
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
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
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
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
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
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
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"
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
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.
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!
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't kno
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 ugly }{ in
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
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
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
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
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
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
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
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
On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby
wrote:
Can I get more opinions on increasing the logo size on the
website please.
See here for an example:
https://github.com/D-Programming-Language/dlang.org/pull/1227
Destroy!
I like the big one, it looks more solid. But I wou
On Wednesday, 17 February 2016 at 18:28:08 UTC, Suliman wrote:
Hello, I wrote pretty good FAQ about D on Russian language. I
need help with translation it to English and Germany and
possible to other languages.
http://dlang.ru/Why-D-is-Better
I hope it people will like it, it will help to att
On Friday, 19 February 2016 at 04:42:12 UTC, Suliman wrote:
On Thursday, 18 February 2016 at 18:20:48 UTC, Eugene Wissner
wrote:
On Wednesday, 17 February 2016 at 18:28:08 UTC, Suliman wrote:
Hello, I wrote pretty good FAQ about D on Russian language. I
need help with translation it to English
On Tuesday, 31 May 2016 at 20:12:33 UTC, Russel Winder wrote:
On Tue, 2016-05-31 at 10:09 +, Atila Neves via
Digitalmars-d wrote:
[…]
No, no, no, no. We had LDC be the default already on Arch
Linux for a while and it was a royal pain. I want to choose to
use LDC when and if I need perfor
On Thursday, 2 June 2016 at 17:04:25 UTC, Basile B. wrote:
On Sunday, 29 May 2016 at 03:52:33 UTC, open-source-guy wrote:
Hi,
this is a short ping about one of D's weaknesses - the
restrictive license for the backend. IIRC [1, 2, 3] the status
is that because some parts have been written by W
On Thursday, 2 June 2016 at 17:54:10 UTC, Basile B. wrote:
On Thursday, 2 June 2016 at 17:32:25 UTC, Eugene Wissner wrote:
On Thursday, 2 June 2016 at 17:04:25 UTC, Basile B. wrote:
On Sunday, 29 May 2016 at 03:52:33 UTC, open-source-guy wrote:
Hi,
this is a short ping about one of D's weakne
On Thursday, 2 June 2016 at 18:16:33 UTC, Basile B. wrote:
It's also that LDC is at front end 2.070 and GDC 2.067 ;););)
GDC is actively maintained and it would have the latest features
if more developers come, what would happen if it would be the
reference compiler.
On Wednesday, 8 June 2016 at 02:47:14 UTC, Dsby wrote:
http://rustaceans.cologne/2016/06/06/rust-anniversary-part-2.html
in sides 3. : The Future of Rust
in the last 2 pages:
•GC integration
In rust, it will add the GC integration.
but in our D, many people want to kill the GC.
On Wednesday, 8 June 2016 at 03:19:18 UTC, Jack Stouffer wrote:
On Wednesday, 8 June 2016 at 03:10:32 UTC, Eugene Wissner wrote:
In D some very important things like exceptions depend on GC.
This is a common misconception. Exceptions do not have to use
the GC, they just often are. All you hav
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
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
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
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
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).
74 matches
Mail list logo