On Tuesday, 4 July 2017 at 04:49:29 UTC, Manu wrote:
If authors of both plugins are active here, I ask; why have 2
separate
The same reason there are multiple editors.
I've been using code-d for a while, and it generally works well. I've also
noticed there's another plugin available, which at the time I first looked,
appeared to be older and less-featured than code-d.
I've recently had a couple of colleagues ask me which plugin to install,
and I noticed that
On Monday, 3 July 2017 at 20:34:00 UTC, Ali Çehreli wrote:
On 07/03/2017 07:53 AM, Vladimir Panteleev wrote:
> That code is pretty old. std.process was changed to use poll
when
> available over a year ago:
>
> https://github.com/dlang/phobos/pull/4114
>
> Update your D installation?
Jonathan
Am 04.07.2017 um 01:17 schrieb Andrei Alexandrescu:
Trying to to this:
file.dd
This will be highlighted:
---
int i;
---
This should also be but it isn't:
$(MYMACRO
int j;
)
Macros:
MYMACRO = Code begins
---
$0
---
Code ends
file.dd ends
The expansion
On Tuesday, 4 July 2017 at 03:13:14 UTC, Filip Bystricky wrote:
Oh and I forgot to mention: another use-case for this would be
for arrays. For manually managed arrays like
std.container.array, it would make it possible to transfer
ownership of individual objects from the array back to the
On Monday, 3 July 2017 at 22:34:51 UTC, FoxyBrown wrote:
On Monday, 3 July 2017 at 20:45:19 UTC, bauss wrote:
On Monday, 3 July 2017 at 13:54:42 UTC, Jean-Louis Leroy wrote:
I know how to find all the classes:
foreach (mod; ModuleInfo) {
foreach (c; mod.localClasses) {
//
On Tuesday, 4 July 2017 at 02:53:00 UTC, Filip Bystricky wrote:
On Tuesday, 4 July 2017 at 01:56:11 UTC, Moritz Maxeiner wrote:
[...]
However, in many cases it is unacceptable to have to prevent
the whole block from being freed (especially if the memory is
managed by a compacting gc).
On Friday, 30 June 2017 at 20:36:47 UTC, bachmeier wrote:
On Tuesday, 27 June 2017 at 02:40:37 UTC, jmh530 wrote:
On Tuesday, 27 June 2017 at 02:38:31 UTC, bachmeier wrote:
I'll post here after updating and testing the embedr package.
Great. I'll give it a go again when it's ready.
An
https://issues.dlang.org/show_bug.cgi?id=17481
Walter Bright changed:
What|Removed |Added
CC|
Oh and I forgot to mention: another use-case for this would be
for arrays. For manually managed arrays like std.container.array,
it would make it possible to transfer ownership of individual
objects from the array back to the program after the array goes
out of scope. For gc slices, it could
On 7/3/17 7:19 PM, Vladimir Panteleev wrote:
On Monday, 3 July 2017 at 23:17:02 UTC, Andrei Alexandrescu wrote:
Is there a macro equivalent for "---"?
D_CODE ?
That renders the code in constant-width font, but it's not colorized. --
Andrei
On Tuesday, 4 July 2017 at 01:56:11 UTC, Moritz Maxeiner wrote:
On Monday, 3 July 2017 at 17:06:10 UTC, Ali Çehreli wrote:
On 07/02/2017 07:56 PM, Stefan Koch wrote:
On Monday, 3 July 2017 at 02:51:49 UTC, Filip Bystricky wrote:
Anyone?
The answer is no.
Partial deallocation in an
https://issues.dlang.org/show_bug.cgi?id=17592
alexanderheisterm...@gmail.com changed:
What|Removed |Added
Severity|blocker |major
--
https://issues.dlang.org/show_bug.cgi?id=14723
alexanderheisterm...@gmail.com changed:
What|Removed |Added
CC||alexanderheistermann@gmail.
https://issues.dlang.org/show_bug.cgi?id=17592
alexanderheisterm...@gmail.com changed:
What|Removed |Added
CC||alexanderheistermann@gmail.
On Monday, 3 July 2017 at 20:34:14 UTC, Walter Bright wrote:
https://www.reddit.com/r/cpp/comments/6ky6oc/i_created_a_c_static_print_statement_it_allows/
Good things from D keep finding their way into C++.
Unfortunately, it pretty much always looks worse there.
https://issues.dlang.org/show_bug.cgi?id=17482
Jonathan M Davis changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=17480
--- Comment #4 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/dlang.org
https://github.com/dlang/dlang.org/commit/4848d71051dbe2e2178b51f7252b03607edda338
Fix Issue 17480 - Update file contents of the
On Monday, 3 July 2017 at 21:43:07 UTC, Timothee Cour wrote:
How would I use a dynamic shared libraries compiled with
-defaultlib=libphobos2.so? Is that supported?
I'm running into https://issues.dlang.org/show_bug.cgi?id=17591
Works for me using dmd v2.074.1 on 64bit Linux. What exactly are
On Monday, 3 July 2017 at 17:06:10 UTC, Ali Çehreli wrote:
On 07/02/2017 07:56 PM, Stefan Koch wrote:
On Monday, 3 July 2017 at 02:51:49 UTC, Filip Bystricky wrote:
Anyone?
The answer is no.
Partial deallocation in an arbitrary fashion is not advisable.
And there are no standard library
https://issues.dlang.org/show_bug.cgi?id=14085
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
https://issues.dlang.org/show_bug.cgi?id=14085
--- Comment #8 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/dlang.org
https://github.com/dlang/dlang.org/commit/5677e55763e30550ec77bbf3f9e2255f8ab63084
Fix broken link to cpp0x
Partial fix for issue
https://issues.dlang.org/show_bug.cgi?id=13153
--- Comment #6 from Seb ---
See NG:
http://forum.dlang.org/post/sxxdxahqofpdnsjdd...@forum.dlang.org
> Could you please give a bit of insight in why that's difficult? My ignorant
> take on this is: create a sandbox with
Hi all,
I remember that especially long-time users of GDC and LDC
complained from time to time about non-versioned docs. There's a
simple solution now: docarchives.dlang.io and contains snapshots
from dlang.org at every release from 2.074.0 to 2.066.0:
https://docarchives.dlang.io/v2.074.0
On Tuesday, 4 July 2017 at 01:02:16 UTC, Era Scarecrow wrote:
As soon as a class defines at least one constructor, the
implicit default constructor is not avaliable anymore. - TDPL
pg. 182
This is also true for structs, but one can't infer that from a
rule about classes.
On Tuesday, 4 July 2017 at 00:46:36 UTC, Timothee Cour wrote:
How would I disable the following?
```
auto a1=A(1);
auto a2=A(1, "b");
Disable the struct's default constructor, which implicitly
disables struct literals for it [1].
---
struct A
{
int a;
string b;
@disable this();
On Tuesday, 4 July 2017 at 00:46:36 UTC, Timothee Cour wrote:
How would I disable the following?
```
auto a1=A(1);
auto a2=A(1, "b");
struct A{
int a;
string b;
// @disable default constructors with N(N>=1) arguments
}
```
I'd like to force the user to set fields explicitly, so as to
On Tuesday, 4 July 2017 at 00:46:36 UTC, Timothee Cour wrote:
How would I disable the following?
```
auto a1=A(1);
auto a2=A(1, "b");
struct A{
int a;
string b;
// @disable default constructors with N(N>=1) arguments
}
```
I'd like to force the user to set fields explicitly, so as to
How would I disable the following?
```
auto a1=A(1);
auto a2=A(1, "b");
struct A{
int a;
string b;
// @disable default constructors with N(N>=1) arguments
}
```
I'd like to force the user to set fields explicitly, so as to make it
more safe to add / move fields
https://issues.dlang.org/show_bug.cgi?id=14085
--- Comment #7 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/c266aa9087829d34d00a0140be524c73e04c906c
index.d: Use MREF to fix broken DDox links
Partial fix
On Mon, Jul 03, 2017 at 07:13:45AM +, Era Scarecrow via Digitalmars-d-learn
wrote:
> On Monday, 3 July 2017 at 06:20:22 UTC, H. S. Teoh wrote:
[...]
> > I don't think there's a way to change how the FPU works -- the
> > hardware is coded that way and can't be changed. You'd have to
> > build
On Mon, Jul 03, 2017 at 11:49:56AM -0700, Walter Bright via Digitalmars-d wrote:
[...]
> Keep in mind that today's optimizers are pretty much tuned to what
> works for C++. While D's particular semantics offer opportunities for
> optimizations, they are currently pretty much unexploited.
So what
While I currently don't have an ARM based hardware that would be
easy to develop on, I'm planning to use QEMU to emulate some form
of ARMv6 CPU, as it'll be the main target, as it's still being
used in devices like the Raspberry Pi. ARMv5 is being considered
if it doesn't need a lot of work,
On Monday, 3 July 2017 at 23:17:02 UTC, Andrei Alexandrescu wrote:
Is there a macro equivalent for "---"?
D_CODE ?
Trying to to this:
file.dd
This will be highlighted:
---
int i;
---
This should also be but it isn't:
$(MYMACRO
int j;
)
Macros:
MYMACRO = Code begins
---
$0
---
Code ends
file.dd ends
The expansion doesn't result in highlighted code. Is there a macro
https://issues.dlang.org/show_bug.cgi?id=14085
Vladimir Panteleev changed:
What|Removed |Added
Keywords||pull
https://issues.dlang.org/show_bug.cgi?id=17492
Walter Bright changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=17591
Timothee Cour changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=17592
Issue ID: 17592
Summary: destroy isn't marked @nogc when the class destructor
is marked as @nogc
Product: D
Version: D2
Hardware: x86_64
OS: Windows
On Monday, 3 July 2017 at 20:45:19 UTC, bauss wrote:
On Monday, 3 July 2017 at 13:54:42 UTC, Jean-Louis Leroy wrote:
I know how to find all the classes:
foreach (mod; ModuleInfo) {
foreach (c; mod.localClasses) {
// use c.base to construct inheritance graph
}
}
Can
https://issues.dlang.org/show_bug.cgi?id=12620
--- Comment #5 from Andrej Mitrovic ---
Jesus sorry to spam Vladimir, but just how many issues have I filed over the
years? lol.
Thanks for taking care of this.
--
How would I use a dynamic shared libraries compiled with
-defaultlib=libphobos2.so? Is that supported?
I'm running into https://issues.dlang.org/show_bug.cgi?id=17591
https://issues.dlang.org/show_bug.cgi?id=14085
--- Comment #5 from Vladimir Panteleev ---
The remaining dead ones:
(In reply to Vladimir Panteleev from comment #4)
> http://dlang.org/library/index.html ->
> http://dlang.org/library/std_algorithm.html
>
https://issues.dlang.org/show_bug.cgi?id=17582
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/07452c208c6164292c46bff3292586b659856376
fix Issue 17582 - Applying const to struct declaration should
https://issues.dlang.org/show_bug.cgi?id=17582
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=14085
Vladimir Panteleev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=9855
Vladimir Panteleev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=17591
Issue ID: 17591
Summary: SIGSEGV in pthread_mutex_destroy after dlopen'ing a
shared library with -defaultlib=libphobos2.so
Product: D
Version: D2
Hardware: x86
https://issues.dlang.org/show_bug.cgi?id=17264
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
https://issues.dlang.org/show_bug.cgi?id=17523
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=12101
Vladimir Panteleev changed:
What|Removed |Added
Keywords|
On Monday, 3 July 2017 at 06:15:44 UTC, Stefan Koch wrote:
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch
wrote:
[ ... ]
This code works now as well ;)
int maxFloat()
{
float prev = 1;
foreach(int i; 0 .. int.max)
{
if (i == prev++)
return i;
}
return int.max;
On Monday, 3 July 2017 at 13:54:42 UTC, Jean-Louis Leroy wrote:
I know how to find all the classes:
foreach (mod; ModuleInfo) {
foreach (c; mod.localClasses) {
// use c.base to construct inheritance graph
}
}
Can I do the same with all the interfaces? Looking at
https://issues.dlang.org/show_bug.cgi?id=17590
--- Comment #1 from johanenge...@weka.io ---
https://github.com/dlang/dmd/pull/6963
--
https://issues.dlang.org/show_bug.cgi?id=17590
Issue ID: 17590
Summary: Unnecessary GC alloc on returning static local struct
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
https://issues.dlang.org/show_bug.cgi?id=17590
johanenge...@weka.io changed:
What|Removed |Added
Keywords||industry
--
https://issues.dlang.org/show_bug.cgi?id=15225
--- Comment #2 from Vladimir Panteleev ---
(In reply to Vladimir Panteleev from comment #1)
> then compilation succeeds (though then I get a linker error).
Linking succeeds since 2.071.0 (fixed by
https://www.reddit.com/r/cpp/comments/6ky6oc/i_created_a_c_static_print_statement_it_allows/
On 07/03/2017 07:53 AM, Vladimir Panteleev wrote:
> That code is pretty old. std.process was changed to use poll when
> available over a year ago:
>
> https://github.com/dlang/phobos/pull/4114
>
> Update your D installation?
Jonathan is hailing from Weka. :) As evidenced from Johan's recent
https://issues.dlang.org/show_bug.cgi?id=12620
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
On Thursday, 29 June 2017 at 21:06:12 UTC, Ola Fosheim Grøstad
wrote:
On Thursday, 29 June 2017 at 19:34:22 UTC, Crayo List wrote:
Checked exceptions are a horrible idea because they leak
internal implementation details as part of the signature of a
method directly and in a transitive manner,
https://issues.dlang.org/show_bug.cgi?id=17589
Issue ID: 17589
Summary: Prevent local imports from hiding imported symbols
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
https://issues.dlang.org/show_bug.cgi?id=1360
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
https://issues.dlang.org/show_bug.cgi?id=14620
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
https://issues.dlang.org/show_bug.cgi?id=14684
Vladimir Panteleev changed:
What|Removed |Added
Hardware|x86_64 |All
https://issues.dlang.org/show_bug.cgi?id=14684
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
On Monday, 3 July 2017 at 15:48:26 UTC, Petar Kirov [ZombineDev]
wrote:
but can you explain exactly what part of Rust's type system
provides extra
benefits in terms of optimization over D's type system?
In safe Rust, a reference to mutable data has to be unique [1].
So the optimizer could
https://issues.dlang.org/show_bug.cgi?id=7539
--- Comment #4 from timon.g...@gmx.ch ---
:(
--
On Sunday, 25 June 2017 at 23:21:25 UTC, aberba wrote:
Can you share feature(s) in D people are not talking about
which you've found very useful?
If you need to write a lightweight library or app with no GC and
Phobos, you can fall back to C functions in core.stdc, my
wavefile codec/utility
https://issues.dlang.org/show_bug.cgi?id=13667
Vladimir Panteleev changed:
What|Removed |Added
Hardware|x86_64 |All
https://issues.dlang.org/show_bug.cgi?id=10378
Vladimir Panteleev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=15819
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
This code:
```
void fun() {
auto a = new int;
}
```
results in this assembly output on asm.dlang.org:
```
void example.fun():
push rbp
movrbp,rsp
subrsp,0x10
movedi,0x0
call 12
movQWORD PTR [rbp-0x8],rax
leave
ret
```
It'd help a lot if relocation entries are
https://issues.dlang.org/show_bug.cgi?id=7539
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
https://issues.dlang.org/show_bug.cgi?id=4733
Vladimir Panteleev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=5922
Vladimir Panteleev changed:
What|Removed |Added
Hardware|x86 |All
On Monday, 3 July 2017 at 17:30:51 UTC, Ali Çehreli wrote:
hOn 07/03/2017 10:13 AM, Paolo Invernizzi wrote:
> [...]
struct with
> [...]
I had difficulty understanding the requirements. For example,
it's not clear whether you want the literal "first" and
"second" names.
[...]
Thanks Ali,
https://issues.dlang.org/show_bug.cgi?id=15130
Vladimir Panteleev changed:
What|Removed |Added
CC|
On 7/3/2017 8:48 AM, Petar Kirov [ZombineDev] wrote:
Unlike C++, in D objects can't be shared across threads, unless they are marked
as `shared` (modulo un-`@safe` code - like casts and `__gshared` - and compiler
bugs).
I.e. non-`shared` objects can't be mutated by more than one thread.
https://issues.dlang.org/show_bug.cgi?id=17588
--- Comment #2 from Timothee Cour ---
D20170703T114214
--
https://issues.dlang.org/show_bug.cgi?id=17588
Timothee Cour changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=15432
--- Comment #4 from Rainer Schuetze ---
Here's a further reduction:
///
void call15432(string col) {}
int test15432() // line 8
{
call15432(null);
return 0;
}
///
dumpbin:
Hi all,
On 18 July, we will have our next Munich meetup. Mario will give
a talk with the title "Avoiding the Big Ball of Mud".
As usual before and after the talk we will also have good
conversations with pizza and drinks.
Please RSVP on:
https://issues.dlang.org/show_bug.cgi?id=11637
Vladimir Panteleev changed:
What|Removed |Added
Hardware|x86 |All
https://issues.dlang.org/show_bug.cgi?id=4034
Vladimir Panteleev changed:
What|Removed |Added
Hardware|x86 |All
https://issues.dlang.org/show_bug.cgi?id=11385
Vladimir Panteleev changed:
What|Removed |Added
See Also|
https://issues.dlang.org/show_bug.cgi?id=11886
Vladimir Panteleev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=12204
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
https://issues.dlang.org/show_bug.cgi?id=3011
Vladimir Panteleev changed:
What|Removed |Added
See Also|
The spec (or DMD frontend) is broken regarding struct
initialization with explicit mention of member field names:
https://dlang.org/spec/struct.html#static_struct_init
The spec says:
"The static initializer syntax can also be used to initialize
non-static variables, provided that the member
https://issues.dlang.org/show_bug.cgi?id=3085
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
https://issues.dlang.org/show_bug.cgi?id=1215
Vladimir Panteleev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=13094
Vladimir Panteleev changed:
What|Removed |Added
Hardware|x86 |All
On Monday, 3 July 2017 at 16:51:47 UTC, Cym13 wrote:
I don't get it: how is linking old and unmaintained code
"fixing" anything? Dead code is dead, if it's been two years
already let it die and fix your own, anything else can't be
future-proof.
I don't understand your comment. I'm
https://issues.dlang.org/show_bug.cgi?id=17588
Issue ID: 17588
Summary: SIGSEGV in pthread_mutex_destroy on a shared library
executable (with -pie)
Product: D
Version: D2
Hardware: x86
OS: Linux
On Monday, 3 July 2017 at 16:47:35 UTC, Iain Buclaw wrote:
Can we tag compiler versions in dub? I think you have such a
construct in npm...
Found it, https://docs.npmjs.com/files/package.json#engines
Yeah - compiler, os, and cpu all seem like something that
should be made available in the
On Monday, July 03, 2017 19:57:35 Shachar Shemesh via Digitalmars-d wrote:
> On 03/07/17 16:59, Jonathan M Davis via Digitalmars-d wrote:
> > 1. The functions for converting to and from a timezone take a struct
> > containing information about what that timezone is - including the DST
> >
hOn 07/03/2017 10:13 AM, Paolo Invernizzi wrote:
> It's not exactly the same, as first and second should be struct with
> partial fields from Foo, of different types.
I had difficulty understanding the requirements. For example, it's not
clear whether you want the literal "first" and "second"
https://issues.dlang.org/show_bug.cgi?id=15432
Vladimir Panteleev changed:
What|Removed |Added
Keywords|
On Monday, 3 July 2017 at 16:41:51 UTC, vit wrote:
On Monday, 3 July 2017 at 13:53:45 UTC, Paolo Invernizzi wrote:
[...]
//https://dpaste.dzfl.pl/d59469c264b2
import std.algorithm : map, copy, equal;
import std.range : iota;
struct Foo {
int[3] a;
string[2] b;
}
ref T first(R :
1 - 100 of 174 matches
Mail list logo