On Thursday, 15 June 2017 at 18:02:54 UTC, Moritz Maxeiner wrote:
We need automatic deterministic destruction (and we partially
have it, using scope(exit) and structs RAII).
Not sure what exactly you are expecting, tbh.
I'm not advocating for a language change here.
As I said, we already have
On Friday, 16 June 2017 at 03:57:17 UTC, Adam D. Ruppe wrote:
On Friday, 16 June 2017 at 03:26:28 UTC, Jonathan Marler wrote:
If you have a better idea on how to implement the bitfields
template that would be great.
The real WTF is that it returns a string in the first place. It
should
On Friday, 16 June 2017 at 03:26:28 UTC, Jonathan Marler wrote:
If you have a better idea on how to implement the bitfields
template that would be great.
The real WTF is that it returns a string in the first place. It
should return a struct.
Here, take a look at this:
-
/++
Seriously! D is starting to gain momentum and if things are not
stabilized it's going to slow D down.
1 ==>> The VERY FIRST order of business is very simple:
When a new user goes to start using D for the first time, D is a
PITA to get working! Don't believe me?!?!
Just try getting D
On Thursday, 15 June 2017 at 22:59:23 UTC, Adam D. Ruppe wrote:
On Thursday, 15 June 2017 at 22:36:56 UTC, Jonathan Marler
wrote:
Doesn't work with eponymous templates, like std.traits.Flag.
For example, make this code work:
That uses `.stringof` which means it is useless for anything
On Friday, 16 June 2017 at 01:19:56 UTC, solidstate1991 wrote:
Other than I'm planning to using DCompute to implement "GPU
blitter" (as I couldn't find any hardware acceleration API for
raster graphics besides the long obsolete DirectDraw), but I'm
also thinking on if I could implement some
https://issues.dlang.org/show_bug.cgi?id=17053
--- Comment #2 from Gavin Higham ---
Yep, looks like the page was updated and this is no longer an issue.
--
https://issues.dlang.org/show_bug.cgi?id=17052
--- Comment #2 from Gavin Higham ---
Looks good now!
--
https://issues.dlang.org/show_bug.cgi?id=17051
--- Comment #2 from Gavin Higham ---
I think the docs have been corrected since I opened this issue. Everything
looks fine now :)
--
On Wednesday, 14 June 2017 at 05:43:01 UTC, Manu wrote:
See, I would have a very different conversation:
N: DCompute
M: Awesome, I've been waiting!
instead of:
N: D-GPU
M: What's that... is it, like, a rendering library?
N: No, it's a 'compute' library.
M: Ohhh, awesome! I've been
https://issues.dlang.org/show_bug.cgi?id=8107
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=8107
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dlang.org
https://github.com/dlang/dlang.org/commit/cc7880723c224d8b11428f1f157b80cbb69054fa
Fix Issue 8107 - Float literals are not specified
On Thursday, 15 June 2017 at 22:36:56 UTC, Jonathan Marler wrote:
Doesn't work with eponymous templates, like std.traits.Flag.
For example, make this code work:
That uses `.stringof` which means it is useless for anything
except informational printing.
Post the code you are actually doing
On Thursday, 15 June 2017 at 21:54:44 UTC, Adam D. Ruppe wrote:
On Thursday, 15 June 2017 at 21:26:38 UTC, Jonathan Marler
wrote:
The common use case is when you'd like to mixin a type when it
is passed to a template.
That's also the most common wrong case. If it is passed to a
template, you
https://issues.dlang.org/show_bug.cgi?id=17512
johanenge...@weka.io changed:
What|Removed |Added
Summary|Unclear error message when |[REG 2.073] Error on bad
https://issues.dlang.org/show_bug.cgi?id=17512
--- Comment #2 from johanenge...@weka.io ---
Or... it _is_ a frontend bug, as the compiler should deduce that the return
type cannot be 'ref'. It correctly deduces that ("does not return any
indirections") but because it added "return" function
https://issues.dlang.org/show_bug.cgi?id=17512
johanenge...@weka.io changed:
What|Removed |Added
Severity|regression |normal
--- Comment #1 from
https://issues.dlang.org/show_bug.cgi?id=17512
johanenge...@weka.io changed:
What|Removed |Added
Summary|[REG 2.073] wrong deduction |Unclear error message when
On Thursday, 15 June 2017 at 14:23:29 UTC, jmh530 wrote:
mir.ndslice.slice has CanonicalMatrix/ContinguousMatrix, and
similar versions for vectors and tensors and all the algorithms
that operate on ranges in mir seem to work fine with them.
Ilya has expressed his intention in the past for
On Thursday, 15 June 2017 at 21:26:38 UTC, Jonathan Marler wrote:
The common use case is when you'd like to mixin a type when it
is passed to a template.
That's also the most common wrong case. If it is passed to a
template, you have a local name that you should use because it
will work
https://issues.dlang.org/show_bug.cgi?id=17512
johanenge...@weka.io changed:
What|Removed |Added
Keywords|rejects-valid |
--
https://issues.dlang.org/show_bug.cgi?id=17512
johanenge...@weka.io changed:
What|Removed |Added
Keywords||industry, rejects-valid
--
https://issues.dlang.org/show_bug.cgi?id=17512
Issue ID: 17512
Summary: [REG 2.073] wrong deduction of "return" function
attribute
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
On Thursday, 15 June 2017 at 20:34:39 UTC, Adam D. Ruppe wrote:
On Thursday, 15 June 2017 at 19:15:55 UTC, Jonathan Marler
wrote:
I've found that the fullyQualifiedName template in std.traits
is a good tool for creating mixin code, however, it doesn't
always work.
Why is it useful? I suggest
On Thursday, 15 June 2017 at 13:41:07 UTC, MGW wrote:
On Thursday, 15 June 2017 at 13:16:24 UTC, CRAIG DILLABAUGH
wrote:
The purpose - search of changes in file system.
Sorting is a slow operation as well as hashing. Creation of a
tree, is equally in sorting.
So far the best result:
On Thursday, 15 June 2017 at 19:15:55 UTC, Jonathan Marler wrote:
I've found that the fullyQualifiedName template in std.traits
is a good tool for creating mixin code, however, it doesn't
always work.
Why is it useful? I suggest you are probably doing it wrong.
https://issues.dlang.org/show_bug.cgi?id=17511
--- Comment #1 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/c7b6b87333fe731962f38a8a6ac0a3b5f675be06
test against regression
fixes issue 17511
--
On Thursday, 15 June 2017 at 15:50:06 UTC, Anonymouse wrote:
I wanted to make a Hello World discord bot, and I found
dscord[1] on dub. It even has an example bot Jeff[2], but it
won't build. The machine is running Manjaro/Arch linux x64.
Is that vibe.d not linking with openssl? There are more
wow! I hadn't tried this gtkd library before. I was hunting for
the gstreamer in particular.
The hello_world alsa-sink audio example failed on Windows. The
debugger indicates no sink, which I guess is reasonable.
With very little effort, though, I converted the hello_world
example to
https://issues.dlang.org/show_bug.cgi?id=17502
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=17502
--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/99b7e49ad99ac2cb3e64e053a45e4663271ffae7
Fix issue 17502: Allow no parameters in out contract for auto
I've found that the fullyQualifiedName template in std.traits is
a good tool for creating mixin code, however, it doesn't always
work.
-
import std.traits;
struct GlobalFoo
{
int x;
}
// WORKS
mixin(fullyQualifiedName!GlobalFoo ~ " globalFoo;");
unittest
{
static struct Foo
https://issues.dlang.org/show_bug.cgi?id=17511
Issue ID: 17511
Summary: [REG 2.075a] std.xml puts grand-children into items
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: pull
On Wednesday, 14 June 2017 at 09:34:27 UTC, Balagopal Komarath
wrote:
Why doesn't this work? The Test!Duck type has a void quack()
method but the compiler says it is not implemented.
You question was answered, but you can do this:
--
interface IDuck
{
void
On Wednesday, 14 June 2017 at 09:38:06 UTC, Martin Nowak wrote:
On Saturday, 10 June 2017 at 23:30:18 UTC, Liam McGillivray
wrote:
I'd be in favor of finally deprecating all sub-standard phobos
module (moving them to https://github.com/dlang/undeaD) to make
room for good implementations.
On Thursday, 15 June 2017 at 18:19:35 UTC, Murzistor wrote:
On Thursday, 15 June 2017 at 16:42:08 UTC, Eugene Wissner wrote:
Здесь английская версия с описанием процесса:
https://github.com/dlang-tour/english/blob/master/README.md
русская:
On Thursday, 15 June 2017 at 16:42:08 UTC, Eugene Wissner wrote:
Здесь английская версия с описанием процесса:
https://github.com/dlang-tour/english/blob/master/README.md
русская:
https://github.com/dlang-tour/russian/blob/master/README.md
Английскую правку приняли, а для русской написано:
On Thursday, 15 June 2017 at 17:06:31 UTC, Sebastien Alaiwan
wrote:
On Thursday, 15 June 2017 at 15:04:26 UTC, Suliman wrote:
Should D really move to GC-free? I think there is already
enough GC-free language on the market. D even now is very
complected language, and adding ways to manually
On Thursday, 15 June 2017 at 15:50:06 UTC, Anonymouse wrote:
I wanted to make a Hello World discord bot, and I found
dscord[1] on dub. It even has an example bot Jeff[2], but it
won't build. The machine is running Manjaro/Arch linux x64.
Apologies, this was meant to go into Learn. I'll post
On Thursday, 15 June 2017 at 15:04:26 UTC, Suliman wrote:
Should D really move to GC-free? I think there is already
enough GC-free language on the market. D even now is very
complected language, and adding ways to manually managing
memory will make it's more complicated.
We need automatic
https://issues.dlang.org/show_bug.cgi?id=17269
Andre changed:
What|Removed |Added
CC||an...@s-e-a-p.de
--- Comment #4
https://issues.dlang.org/show_bug.cgi?id=17510
Issue ID: 17510
Summary: How could 509 be a byte value?
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/
OS: All
Status: NEW
On Thursday, 15 June 2017 at 16:22:53 UTC, Murzistor wrote:
On Thursday, 15 June 2017 at 09:46:14 UTC, Dmitry wrote:
Создайте pull request'ы к английской и русскоязычной версии,
пожалуйста.
Понятия не имею, как это делается.
Если что, по-английски читаю, вроде...
Здесь английская версия с
https://issues.dlang.org/show_bug.cgi?id=17509
Issue ID: 17509
Summary: [typo] "refered to" ("referred to")
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/
OS: All
Status: NEW
On Thursday, 15 June 2017 at 09:46:14 UTC, Dmitry wrote:
Создайте pull request'ы к английской и русскоязычной версии,
пожалуйста.
Понятия не имею, как это делается.
Если что, по-английски читаю, вроде...
On Wednesday, 14 June 2017 at 09:38:06 UTC, Martin Nowak wrote:
I'd be in favor of finally deprecating all sub-standard phobos
module (moving them to https://github.com/dlang/undeaD) to make
room for good implementations. Having a vacant place might be
more encouraging than to wait for
On Thursday, 15 June 2017 at 15:04:26 UTC, Suliman wrote:
Should D really move to GC-free? I think there is already
enough GC-free language on the market. D even now is very
complected language, and adding ways to manually managing
memory will make it's more complicated.
A lot of people need
On Thursday, 15 June 2017 at 15:50:42 UTC, Seb wrote:
On Thursday, 15 June 2017 at 15:47:54 UTC, Jonathan Shamir
wrote:
Also note I can't cast to char[] in compile time? What's the
reason for that?
Have a look at:
https://dlang.org/phobos/std_utf.html#byCodeUnit
On Thursday, June 15, 2017 15:47:54 Jonathan Shamir via Digitalmars-d wrote:
> I see this is a recurring rant (I apologize if this is a
> repeating topic, I'm new to the forums). Here's an example of
> something that should be simple in D but isn't:
>
> enum string PATTERN = "abcd";
> immutable
On Thursday, 15 June 2017 at 15:47:54 UTC, Jonathan Shamir wrote:
Also note I can't cast to char[] in compile time? What's the
reason for that?
Have a look at:
https://dlang.org/phobos/std_utf.html#byCodeUnit
https://dlang.org/phobos/std_utf.html#byChar
I wanted to make a Hello World discord bot, and I found dscord[1]
on dub. It even has an example bot Jeff[2], but it won't build.
The machine is running Manjaro/Arch linux x64.
$ ./build.py
Building with 0 plugins...
Building jeff...
...
dscord ~master: target for configuration
I see this is a recurring rant (I apologize if this is a
repeating topic, I'm new to the forums). Here's an example of
something that should be simple in D but isn't:
enum string PATTERN = "abcd";
immutable char[10] repeatingPattern =
PATTERN.cycle().takeExactly(10).array();
The fact that
On Thursday, 15 June 2017 at 15:01:27 UTC, Jonathan Shamir wrote:
To quote Andrei, if it looks like it should work, it should.
(Also something about turtles).
Hmm, interestingly, even if you explicitly merge the overloads
with `alias foo s.foo;` (which is required btw, see:
I think the following example is legitimate code that should work:
struct S1 {
void foo() {
writeln("S1.foo()");
}
void foo(ulong x) {
writefln("S1.foo(%d)", x);
}
}
struct S2 {
S1 s;
alias s this;
void foo(string str) {
writeln("S2.foo(%s)",
Should D really move to GC-free? I think there is already enough
GC-free language on the market. D even now is very complected
language, and adding ways to manually managing memory will make
it's more complicated.
A lot of people need more powerful static-typing alternative to
Python/C# for
On Thursday, 15 June 2017 at 13:41:07 UTC, MGW wrote:
On Thursday, 15 June 2017 at 13:16:24 UTC, CRAIG DILLABAUGH
wrote:
The purpose - search of changes in file system.
Sorting is a slow operation as well as hashing. Creation of a
tree, is equally in sorting.
So far the best result:
On Thursday, 15 June 2017 at 13:44:33 UTC, Nordlöw wrote:
On Thursday, 15 June 2017 at 12:22:25 UTC, Nordlöw wrote:
On Tuesday, 13 June 2017 at 08:26:20 UTC, 9il wrote:
[1] http://code.dlang.org/packages/lubeck
https://github.com/kaleidicassociates/lubeck/tree/master/example
Nice.
Will
https://issues.dlang.org/show_bug.cgi?id=17508
Martin Nowak changed:
What|Removed |Added
Priority|P1 |P2
Hardware|x86_64
https://issues.dlang.org/show_bug.cgi?id=17508
Issue ID: 17508
Summary: optlink 8.00.17 crash at EIP=0040F60A
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
On Monday, 12 June 2017 at 18:12:38 UTC, Timothee Cour wrote:
any help on this would be most welcome:
https://github.com/msgpack-rpc/msgpack-rpc-d/issues/16
Unfortunately I find the RPC support in D lacking. Having a
good RPC integration for D is key for production use of D where
one wants
On Thursday, 15 June 2017 at 12:22:25 UTC, Nordlöw wrote:
On Tuesday, 13 June 2017 at 08:26:20 UTC, 9il wrote:
[1] http://code.dlang.org/packages/lubeck
https://github.com/kaleidicassociates/lubeck/tree/master/example
Nice.
Will there be any matrix, vector, scalar, types with operator
On Thursday, 15 June 2017 at 13:16:24 UTC, CRAIG DILLABAUGH wrote:
The purpose - search of changes in file system.
Sorting is a slow operation as well as hashing. Creation of a
tree, is equally in sorting.
So far the best result:
string[] rez;
foreach(str; m2) {
bool fFind; int
On Thursday, 15 June 2017 at 11:48:54 UTC, Ivan Kazmenko wrote:
On Thursday, 15 June 2017 at 06:06:01 UTC, MGW wrote:
There are two arrays of string [] mas1, mas2; Size of each
about 5M lines. By the size they different, but lines in both
match for 95%. It is necessary to find all lines in an
https://issues.dlang.org/show_bug.cgi?id=17507
Issue ID: 17507
Summary: Associative Array range operations should be marked
@safe
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
https://issues.dlang.org/show_bug.cgi?id=11176
greenify changed:
What|Removed |Added
CC||greeen...@gmail.com
---
https://issues.dlang.org/show_bug.cgi?id=11176
Steven Schveighoffer changed:
What|Removed |Added
Status|NEW |RESOLVED
On Wednesday, 14 June 2017 at 22:01:38 UTC, bachmeier wrote:
It's a bigger problem for D than for those languages. If you
introduce too many changes, the tools stop working, and we
don't have the manpower to fix them. The same goes for
libraries. A language with a larger group of developers,
On Tuesday, 13 June 2017 at 08:26:20 UTC, 9il wrote:
[1] http://code.dlang.org/packages/lubeck
https://github.com/kaleidicassociates/lubeck/tree/master/example
Nice.
Will there be any matrix, vector, scalar, types with operator
overloads?
On Wednesday, 14 June 2017 at 12:08:16 UTC, Mike wrote:
* immutable by default
I have to admit I always get confused why people get so invested
in this. It seems like you would have to completely redesign
everything related to std.range/std.algorithm.
On Thursday, 15 June 2017 at 06:06:01 UTC, MGW wrote:
There are two arrays of string [] mas1, mas2; Size of each
about 5M lines. By the size they different, but lines in both
match for 95%. It is necessary to find all lines in an array of
mas2 which differ from mas1. The principal criterion -
Moritz Maxeiner wrote:
Is D perfect? No, not by any stretch of the definition, but it is still
(by far) the least worst choice out there, no matter how good the tooling
for other languages is or becomes.
exactly my feelings! ;-)
On Thursday, 15 June 2017 at 07:32:42 UTC, Russel Winder wrote:
The GC is the single major factor for D in a world of C++17,
Rust, and Go:
An opinion. Mine is this: The two major factors for D are (and
have been for as long as I've been using it):
1. Productivity (i.e. focusing on writing
https://issues.dlang.org/show_bug.cgi?id=16659
greensunn...@gmail.com changed:
What|Removed |Added
Assignee|alexandru.razva...@gmail.co |greensunn...@gmail.com
On Tuesday, 13 June 2017 at 21:49:53 UTC, jmh530 wrote:
On Tuesday, 13 June 2017 at 20:45:34 UTC, jmh530 wrote:
Fair point. I just was playing around with it today and was
like, oh that's pretty easy. It was only when I was trying to
see if anyone else had done anything like this that I came
Wouldn't it be better done at the lexer level: it needs to reset
line count, see https://issues.dlang.org/show_bug.cgi?id=2660#c13
https://github.com/ldc-developers/ldc/issues/1716 this?
On Wednesday, 14 June 2017 at 06:54:23 UTC, Vadim Lopatin wrote:
Кто-нибудь из переводчиков хочет написать статью на Хабре?
В принципе, я мог бы заняться, но не раньше следующей недели.
Если кто-то хочет раньше - пишите.
On Thursday, 15 June 2017 at 03:54:53 UTC, Murzistor wrote:
Спасибо за поддержку такого замечательного языка!
И спасибо его создателям!
Я ошибку нашёл в коде:
https://tour.dlang.org/tour/ru/basics/interfaces
auto dog = new Animal; // "создание" экземпляра интерфейса
Animal animal = dog;
On Thursday, 15 June 2017 at 07:12:56 UTC, Biotronic wrote:
Here however, is a solution that works for simple examples.
This is awesome. Very generic. Thanks.
On Thursday, 15 June 2017 at 04:14:22 UTC, Timothee Cour wrote:
Msgpack rpc with vibe.d works. We used it.
you mean with msgpackrpc-d? If so, it works, until you run into
https://github.com/msgpack-rpc/msgpack-rpc-d/issues/16 (when
server sends >= 4090 bytes, client hangs forever).
we
SCons is beginning to gear up to releasing version 3.
In looking at the D tooling, I have found something of an inconsistency
that would lead to a breaking change. SCons 2 → 3 would be a good place
to do this, but it would require short-circuiting SCons' usual
deprecation process.
Currently the
Wulfklaue wrote:
On Wednesday, 14 June 2017 at 21:20:58 UTC, ketmar wrote:
yeah. D should silently miscompile old code too: it seems that this is
exactly what people want!
Please point out the people who advocate for D silently miscompiling old
code... Because i have yet to see anybody in
On Wednesday, 14 June 2017 at 21:20:58 UTC, ketmar wrote:
yeah. D should silently miscompile old code too: it seems that
this is exactly what people want!
Please point out the people who advocate for D silently
miscompiling old code... Because i have yet to see anybody in
this topic advocate
On Wed, 2017-06-14 at 21:55 +, bachmeier via Digitalmars-d wrote:
> […]
>
> I'm not saying all old code should compile without changes, just
> that it should compile with only minor changes. I know that in
> some cases new releases of DMD have stopped compiling pieces of
> my code that
On Thursday, 15 June 2017 at 04:14:22 UTC, Timothee Cour wrote:
not sure what asdf is?
I assume its this.
https://en.wikipedia.org/wiki/Advanced_Scientific_Data_Format
A file format with a YAML header followed by binary or ascii
data. Human readable in design but still has binary/ascii
On Wednesday, 14 June 2017 at 09:34:27 UTC, Balagopal Komarath
wrote:
void main()
{
Test!Duck d;
}
As has been pointed out at length by others here, it's simply not
how alias this is intended to work. I do see some arguments in
favor of working that way, but I'm not sure what's the
On Thursday, 15 June 2017 at 01:34:01 UTC, Manu wrote:
Hey people, I haven't checked in for a while, I'm yet again
tempted to use D for a small work thing, but I'll need LDC for
it, and debuginfo needs to work or it's a non-starter.
Does anyone know where that stuff stands? What are the
https://issues.dlang.org/show_bug.cgi?id=10233
Issue 10233 depends on issue 15556, which changed state.
Issue 15556 Summary: Script line missing from lexical specification
https://issues.dlang.org/show_bug.cgi?id=15556
What|Removed |Added
https://issues.dlang.org/show_bug.cgi?id=15556
greensunn...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=17043
greensunn...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=8107
greensunn...@gmail.com changed:
What|Removed |Added
Keywords||pull
CC|
There are two arrays of string [] mas1, mas2; Size of each about
5M lines. By the size they different, but lines in both match for
95%. It is necessary to find all lines in an array of mas2 which
differ from mas1. The principal criterion - speed. There are the
8th core processor and it is good
https://issues.dlang.org/show_bug.cgi?id=16659
greensunn...@gmail.com changed:
What|Removed |Added
Keywords||pull
CC|
93 matches
Mail list logo