On Monday, 22 August 2016 at 23:40:50 UTC, Bill Hicks wrote:
On Monday, 22 August 2016 at 06:47:43 UTC, Johnjo Willoughby
wrote:
"We decided not to fix the suspension but we painted some cool
flames on the bonnet for you... isn't it awesome!!!".
"Huh???"
"Well you can still drive it, just try
On Monday, 22 August 2016 at 18:09:28 UTC, Meta wrote:
On Monday, 22 August 2016 at 15:34:47 UTC, Seb wrote:
Hey all,
I am proud to publish a report of my GSoC work as two
extensive blog posts, which explain non-uniform random
sampling and the mir.random.flex package (part of Mir >
On 08/23/2016 03:23 AM, Engine Machine wrote:
On Monday, 22 August 2016 at 22:52:28 UTC, ag0aep6g wrote:
[...]
Simply not replying is an option, too. It may be a bit less
polite, but it's better than escalating things.
True, but then you should also take your own advice.
Yeah, I'm going to
On Monday, 22 August 2016 at 15:34:47 UTC, Seb wrote:
Hey all,
I am proud to publish a report of my GSoC work as two extensive
blog posts, which explain non-uniform random sampling and the
mir.random.flex package (part of Mir > 0.16-beta2):
On 08/23/2016 06:06 AM, cy wrote:
On Sunday, 21 August 2016 at 21:18:11 UTC, ag0aep6g wrote:
I may be missing the point here, but just putting `auto pattern =
regex("foobar");` at module level works for me.
Really? I thought global variables could only be initialized with static
stuff
Why fix the suspension? You can pass it as a template parameter
and have your driving skills work on any broke-ass suspension!
And now I remember that people still use the stupid default of 8
spaces per tab, and I can't specify to use 2 in the text.
mixin template Batch(alias transaction, alias operation, size_t
max = 0x10) {
import std.typecons: Tuple, tuple;
import std.traits: Parameters,ReturnType;
import
aka I finally found a use for mixin templates :p
When I can batch up operations and run them quicker all at once,
I usually make a list of those operations and append to it in
lieu of calling the operation. Then periodically flushing the
list, and actually calling the operation. Database
On Sunday, 21 August 2016 at 21:18:11 UTC, ag0aep6g wrote:
I may be missing the point here, but just putting `auto pattern
= regex("foobar");` at module level works for me.
Really? I thought global variables could only be initialized with
static stuff available during compile time, and you
https://issues.dlang.org/show_bug.cgi?id=16416
Issue ID: 16416
Summary: Phobos std.uni out of date (should be updated to
latest Unicode standard)
Product: D
Version: D2
Hardware: All
OS: All
https://issues.dlang.org/show_bug.cgi?id=14238
--- Comment #2 from Walter Bright ---
https://github.com/dlang/dmd/pull/5972
--
On 22.08.2016 20:26, Joakim wrote:
Sorry, I stopped reading this thread after my last response, as I felt I
was wasting too much time on this discussion, so I didn't read your
response till now.
...
No problem. Would have been fine with me if it stayed that way.
On Saturday, 21 May 2016 at
On Monday, 22 August 2016 at 22:52:28 UTC, ag0aep6g wrote:
On Monday, 22 August 2016 at 21:46:35 UTC, Engine Machine wrote:
I'm sorry if it confuses you... it doesn't confuse me.
You needed quite some help to get this thing to work. And you
made some mistakes and wrong statements in the
https://issues.dlang.org/show_bug.cgi?id=16409
Andrej Mitrovic changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=16122
Andrej Mitrovic changed:
What|Removed |Added
Status|NEW |RESOLVED
On Monday, 22 August 2016 at 06:47:43 UTC, Johnjo Willoughby
wrote:
"We decided not to fix the suspension but we painted some cool
flames on the bonnet for you... isn't it awesome!!!".
"Huh???"
"Well you can still drive it, just try to avoid hitting any pot
holes"
I think it's more like
On Monday, 22 August 2016 at 21:46:35 UTC, Engine Machine wrote:
I'm sorry if it confuses you... it doesn't confuse me.
You needed quite some help to get this thing to work. And you
made some mistakes and wrong statements in the process. That's
perfectly fine, but please don't act as if Jack
Is it possible to generate an argument list that contains
pointers to local variables at compile time?
For example, consider following code:
template Repeat(alias int N, alias variable)
{
// Magic
alias Repeat = /* Even more magic */;
}
void foo(int* x, int* y, int* z)
{
// [...]
On Monday, 22 August 2016 at 19:09:34 UTC, Jack Applegame wrote:
On Monday, 22 August 2016 at 18:04:43 UTC, Engine Machine wrote:
How do you seriously think this is cleaner/simpler?
1. No extra encrypted things, such as InstantiateOrEmptySeq
2. Much more understandable.
You have two classes.
On Wednesday, 10 August 2016 at 18:35:03 UTC, Sebastiaan Koppe
wrote:
So true. Then I will do PR's first.
I finally got around implementing running dmd/druntime/phobos
pull requests against all dub packages. Thank you digger, for
making it so easy.
I did a run of master + druntime#1602.
On Monday, 22 August 2016 at 07:00:23 UTC, brian wrote:
On Monday, 22 August 2016 at 06:19:00 UTC, Mike Parker wrote:
Terminology wise, we distinguish between associative arrays
(AA) and arrays. The former should never simply be called
'array', otherwise people will assume you are referring to
On Monday, 22 August 2016 at 19:56:08 UTC, ag0aep6g wrote:
So this is just to avoid typing out `class Pug : Dog {...}
class Dog : Animal {...} class Animal {...}`?
This allows you to create different inheritance chains with the
same components quickly and easily. I don't know any use case,
but
https://issues.dlang.org/show_bug.cgi?id=16409
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/e3c9f21acac9c086b98389185d917952e0b397cb
Fix Issue 16409 - Add support for assign switches
All
https://issues.dlang.org/show_bug.cgi?id=16409
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
On 08/22/2016 08:54 PM, Engine Machine wrote:
Yeah, but a name means nothing. Change it if you want ;)
Even with a better name it still requires a good amount of thinking by
the reader to see what's going on.
[...]
What it achieves is a uniform way to create a hierarchical relationship
https://issues.dlang.org/show_bug.cgi?id=16415
--- Comment #1 from Artem Borisovskiy ---
Oh, almost forgot: it's DMD v2.071.1 and the message says:
src/main.d(26): Error: main.Visitor!(A, B).Visitor.generateMethods!(A,
B).generateMethods!(B).generateMethod!(B).visit at
https://issues.dlang.org/show_bug.cgi?id=16415
Issue ID: 16415
Summary: Overload conflicts with mixin templates
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority:
On Monday, 22 August 2016 at 18:48:12 UTC, ag0aep6g wrote:
You can take this further with template constraints. Gives it a
more uniform appearance at the price of some repetition:
class T()
{
int x;
}
class T(A...) : T!(A[0..$-1])
if (A.length > 0 && A[$-1] == "Animal")
{
int
On Monday, 22 August 2016 at 18:04:43 UTC, Engine Machine wrote:
How do you seriously think this is cleaner/simpler?
1. No extra encrypted things, such as InstantiateOrEmptySeq
2. Much more understandable.
You have two classes.
No. I have one template with two specializations. Class template
On Monday, 22 August 2016 at 18:48:12 UTC, ag0aep6g wrote:
On 08/22/2016 08:04 PM, Engine Machine wrote:
How do you seriously think this is cleaner/simpler? You have
two
classes. Their is no uniformity between them. You have
uniformity
between all the derived classes then have a special case
On 08/22/2016 08:04 PM, Engine Machine wrote:
How do you seriously think this is cleaner/simpler? You have two
classes. Their is no uniformity between them. You have uniformity
between all the derived classes then have a special case for the base
class. A certain easy to follow pattern is set up
Sorry, I stopped reading this thread after my last response, as I
felt I was wasting too much time on this discussion, so I didn't
read your response till now.
On Saturday, 21 May 2016 at 14:38:20 UTC, Timon Gehr wrote:
On 20.05.2016 13:32, Joakim wrote:
Yet you're the one arguing against
On Monday, 22 August 2016 at 15:58:14 UTC, Meta wrote:
On Sunday, 21 August 2016 at 21:21:22 UTC, Engine Machine wrote:
Well, I see that a template with 0 parameters can act as a
"type", if you will.
Just like functions
void foo(T)(T x)
acts like a normal function foo(3) even though it is a
On Monday, 22 August 2016 at 05:02:41 UTC, jkpl wrote:
On Monday, 22 August 2016 at 04:52:40 UTC, Cauterite wrote:
[...]
That's a 32 bit codegen issue then because DMD64 's disasm
shows that SSE regs are used:
void foo()
{
union test { int i; float f; }
test t = { i :
On Mon, Aug 22, 2016 at 06:02:20PM +, Meta via Digitalmars-d wrote:
> On Monday, 22 August 2016 at 17:22:28 UTC, H. S. Teoh wrote:
> > I think it should be possible even with recursion, at least if there
> > is a non-recursive branch in the function(s). Of course, it may not
> > necessarily be
On Monday, 22 August 2016 at 15:34:47 UTC, Seb wrote:
Hey all,
I am proud to publish a report of my GSoC work as two extensive
blog posts, which explain non-uniform random sampling and the
mir.random.flex package (part of Mir > 0.16-beta2):
On Monday, 22 August 2016 at 17:22:28 UTC, H. S. Teoh wrote:
I think it should be possible even with recursion, at least if
there is a non-recursive branch in the function(s). Of course,
it may not necessarily be *feasible* to implement the required
analysis in the compiler. But maybe for the
On Monday, 22 August 2016 at 07:54:36 UTC, Jack Applegame wrote:
On Monday, 22 August 2016 at 00:43:00 UTC, Engine Machine wrote:
The following code works and does what I want!
template InstantiateOrEmptySeq(alias tmpl, args...)
{
alias Seq(T...)=T;
static if (args.length > 0)
On Monday, 22 August 2016 at 15:47:34 UTC, karabuta wrote:
I made a blog post on vibe.d for people who might be into
node.js and other web frameworks. Its not meant for everybody
especially not for softwares engineers or hardcore coders :)
Please let me know what you think.
It's a nice
On Mon, Aug 15, 2016 at 04:46:15PM -0700, Walter Bright via Digitalmars-d wrote:
> On 8/15/2016 4:30 PM, H. S. Teoh via Digitalmars-d wrote:
> > I'm looking forward to the day we have pervasive attribute
> > inferrence throughout the language. It's the only sane way to deal
> > with attributes,
On Monday, 22 August 2016 at 16:16:43 UTC, karabuta wrote:
Oh my bad :) What was I thinking? Here
https://laberba.github.io/2016/hello-world-app-with-the-vibe.d-web-framework/
Something like 40% of the screen is covered up by a sidebar...
On Monday, 22 August 2016 at 15:34:47 UTC, Seb wrote:
Hey all,
I am proud to publish a report of my GSoC work as two extensive
blog posts, which explain non-uniform random sampling and the
mir.random.flex package (part of Mir > 0.16-beta2):
https://issues.dlang.org/show_bug.cgi?id=16046
Andrei Alexandrescu changed:
What|Removed |Added
CC||and...@erdani.com
On 08/22/2016 12:16 PM, karabuta wrote:
On Monday, 22 August 2016 at 15:50:55 UTC, Edwin van Leeuwen wrote:
On Monday, 22 August 2016 at 15:47:34 UTC, karabuta wrote:
I made a blog post on vibe.d for people who might be into node.js and
other web frameworks. Its not meant for everybody
On Monday, 22 August 2016 at 15:50:55 UTC, Edwin van Leeuwen
wrote:
On Monday, 22 August 2016 at 15:47:34 UTC, karabuta wrote:
I made a blog post on vibe.d for people who might be into
node.js and other web frameworks. Its not meant for everybody
especially not for softwares engineers or
On Sunday, 21 August 2016 at 21:21:22 UTC, Engine Machine wrote:
Well, I see that a template with 0 parameters can act as a
"type", if you will.
Just like functions
void foo(T)(T x)
acts like a normal function foo(3) even though it is a
templated function.
In fact, I see very little
On Monday, 22 August 2016 at 15:47:34 UTC, karabuta wrote:
I made a blog post on vibe.d for people who might be into
node.js and other web frameworks. Its not meant for everybody
especially not for softwares engineers or hardcore coders :)
Please let me know what you think.
Sounds good, but
I made a blog post on vibe.d for people who might be into node.js
and other web frameworks. Its not meant for everybody especially
not for softwares engineers or hardcore coders :) Please let me
know what you think.
Hey all,
I am proud to publish a report of my GSoC work as two extensive
blog posts, which explain non-uniform random sampling and the
mir.random.flex package (part of Mir > 0.16-beta2):
http://blog.mir.dlang.io/random/2016/08/19/intro-to-random-sampling.html
On Monday, 22 August 2016 at 07:58:50 UTC, Andrew wrote:
Hi,
It appears as though the Phobos Unicode methods (such as
std.uni.isAlpha()) are compatible with Unicode 6.2 (i.e. the
2012 standard, which is now nearly 5 years old). Unicode is now
up to version 9.0. Changes do include changes to
https://issues.dlang.org/show_bug.cgi?id=16405
--- Comment #5 from Sobirari Muhomori ---
I uploaded the file at
https://www.microsoft.com/en-us/security/portal/submission/submit.aspx for
online scan with microsoft antivirus and it tells that the file is not
detected.
On 21/08/16 19:31, Andrei Alexandrescu wrote:
On 08/20/2016 11:25 AM, Shachar Shemesh wrote:
On 20/08/16 00:51, Walter Bright wrote:
On 8/18/2016 7:59 PM, Adam D. Ruppe wrote:
Alas, C insisted on making everything int all the time and D followed
that :(
Actually, Adam's suggestion on how
On Sunday, 21 August 2016 at 16:31:41 UTC, Andrei Alexandrescu
wrote:
Consider:
void fun(byte);
void fun(int);
fun(b + c);
Does anybody actually do that in the real world? Given the int
promotion rule, such an overload is something i'd flag as always
bug prone and confusing anyway.
With
On Monday, 22 August 2016 at 05:54:17 UTC, Shachar Shemesh wrote:
On 21/08/16 12:47, ag0aep6g wrote:
Consider `ubyte(255) * ubyte(2) / ubyte(2)`. If the operands
are
promoted to a larger type, you get 255 as the result. If they
are not,
you have the equivalent of `ubyte x = 255; x *= 2; x /=
https://issues.dlang.org/show_bug.cgi?id=3284
--- Comment #6 from Sobirari Muhomori ---
The original description probably complains about C malloc too - worth
checking.
--
On Monday, 22 August 2016 at 12:14:41 UTC, Alexandru Ermicioi
wrote:
Good day.
In current implementation of dmd/ldc/gdc, does this trait
guarantee, that the order of elements returned in tuple, is
same, in several calls of it on same Type and member?
Also, is guaranteed that in future
On Monday, 22 August 2016 at 11:45:37 UTC, Matthias Klumpp wrote:
On Monday, 22 August 2016 at 01:34:36 UTC, jkpl wrote:
On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp
wrote:
for a project like Terminix, dub with LDC builds in 8.6s,
while Meson and ninja take only 6s here.
Did
Good day.
In current implementation of dmd/ldc/gdc, does this trait
guarantee, that the order of elements returned in tuple, is same,
in several calls of it on same Type and member?
Also, is guaranteed that in future versions of dmd, the order of
elements won't change?
On Thursday, 18 August 2016 at 17:05:05 UTC, Dicebot wrote:
On 08/11/2016 04:38 PM, Sönke Ludwig wrote:
That will just leave one hole in conjunction with the @trusted
destructor, which is (presumably) not easy to fix without much
larger changes to the type system, as well as to how container
On Monday, 22 August 2016 at 01:34:36 UTC, jkpl wrote:
On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp
wrote:
for a project like Terminix, dub with LDC builds in 8.6s,
while Meson and ninja take only 6s here.
Did you try to build with DUB but with WIFI or ethernet
interface
https://issues.dlang.org/show_bug.cgi?id=3284
Cauterite changed:
What|Removed |Added
Status|RESOLVED|REOPENED
On Monday, 22 August 2016 at 07:05:01 UTC, Shachar Shemesh wrote:
On 22/08/16 09:31, Vadim Lopatin wrote:
On Friday, 12 August 2016 at 19:29:42 UTC, Shachar Shemesh
- No RAII support, despite the fact everybody here seems to
think that
D supports RAII.
Shachar
There IS RAII in D.
I'm using
On Monday, 22 August 2016 at 10:26:35 UTC, Cauterite wrote:
On Monday, 22 August 2016 at 07:58:50 UTC, Andrew wrote:
Note that changing isAlpha() can potentially break any D code
with unicode in its identifiers, because the DMD frontend uses
isAlpha() to determine which characters are
On Monday, 22 August 2016 at 07:58:50 UTC, Andrew wrote:
Note that changing isAlpha() can potentially break any D code
with unicode in its identifiers, because the DMD frontend uses
isAlpha() to determine which characters are allowed in
identifiers.
https://issues.dlang.org/show_bug.cgi?id=3284
--- Comment #4 from Sobirari Muhomori ---
As I understand, the test is as follows:
import core.memory, core.stdc.stdio;
void main()
{
void*[100] arrays;
// allocate and free lots of 10MB arrays
foreach (ref x;
https://issues.dlang.org/show_bug.cgi?id=16414
Issue ID: 16414
Summary: final opCmp in interface: throws at runtime. (OK if
abstract class instead of interface)
Product: D
Version: D2
Hardware: x86_64
OS:
On Monday, 22 August 2016 at 06:44:11 UTC, Jacob Carlborg wrote:
It would be nice to have the whole picture now, before
implementing DIP1000.
It can be reviewed after the spec is inferred from
implementation. But yes, it can be unclear how the implementation
can affect the review process.
On Monday, 22 August 2016 at 08:38:12 UTC, MGW wrote:
The excellent programming language is D. I all the projects
make, nearly two years, only on D (dmd) + Qt (QtE4 and QtE5).
What are the advantages and drawbacks you faced and face while
working with D?
How are old D programs compiled with
On Friday, 1 July 2016 at 15:28:04 UTC, Zekereth wrote:
On Thursday, 30 June 2016 at 21:18:22 UTC, Luke Picardo wrote:
Why is it so hard to simply get the current date and time
formatted properly in a string?
There are no examples of this in your documentation yet this
is probably one of
https://issues.dlang.org/show_bug.cgi?id=16413
Issue ID: 16413
Summary: multiSort doesn't work with @system comparison
function
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
On Monday, 22 August 2016 at 07:00:23 UTC, brian wrote:
That's a terribly confusing naming convention for beginners
then! :P
Is this D-specific terminology, or is this a more general
convention that AA are not actually arrays?
This might help my understanding of when to use or not use one
https://issues.dlang.org/show_bug.cgi?id=16365
Walter Bright changed:
What|Removed |Added
CC|
On Sunday, 21 August 2016 at 17:21:14 UTC, eugene wrote:
On Sunday, 21 August 2016 at 13:18:04 UTC, MGW wrote:
Hello, could you share your experience with D language? How it
feels to work with it?
The excellent programming language is D. I all the projects make,
nearly two years, only on D
Hi,
It appears as though the Phobos Unicode methods (such as
std.uni.isAlpha()) are compatible with Unicode 6.2 (i.e. the 2012
standard, which is now nearly 5 years old). Unicode is now up to
version 9.0. Changes do include changes to std.uni.isAlpha(),
and other methods.
Is there either
On Monday, 22 August 2016 at 00:43:00 UTC, Engine Machine wrote:
The following code works and does what I want!
template InstantiateOrEmptySeq(alias tmpl, args...)
{
alias Seq(T...)=T;
static if (args.length > 0)
alias InstantiateOrEmptySeq = tmpl!(args[0 .. $-1]);
else
On Sunday, 21 August 2016 at 23:07:43 UTC, Solomon E wrote:
The D spec is full of errors, literally, or teasers sometimes.
Erroneous code should be omitted from a spec, or at least
clearly marked such as by a red background.
I'd like to respond critically to my own silly comment.
On 22/08/16 09:31, Vadim Lopatin wrote:
On Friday, 12 August 2016 at 19:29:42 UTC, Shachar Shemesh wrote:
I'll give some highlights, but those are, mostly, things that I've
already listed in this forum and in my lightening talk.
- No RAII support, despite the fact everybody here seems to think
On Monday, 22 August 2016 at 06:19:00 UTC, Mike Parker wrote:
Terminology wise, we distinguish between associative arrays
(AA) and arrays. The former should never simply be called
'array', otherwise people will assume you are referring to
either or both of foo[] (dynamic array/slice) or foo[N]
On Monday, 22 August 2016 at 06:44:11 UTC, Jacob Carlborg wrote:
It would be nice to have the whole picture now, before
implementing DIP1000. Then it's possible to review them
together, making sure the end goal is actual possible to
achieve. Now we just have to trust Andrei and Walter that all
"We decided not to fix the suspension but we painted some cool
flames on the bonnet for you... isn't it awesome!!!".
"Huh???"
"Well you can still drive it, just try to avoid hitting any pot
holes"
On 2016-08-21 22:01, Dicebot wrote:
This week I had a tele-meeting with Andrei and Walter regarding the fate
of DIP1000 (https://github.com/dlang/DIPs/blob/master/DIPs/DIP1000.md)
and intented way to move forward with it. This is a short summary of the
meeting.
Approval of DIP1000
On Friday, 12 August 2016 at 19:29:42 UTC, Shachar Shemesh wrote:
I'll give some highlights, but those are, mostly, things that
I've already listed in this forum and in my lightening talk.
- No RAII support, despite the fact everybody here seems to
think that D supports RAII.
Shachar
There
On Sunday, 21 August 2016 at 23:57:27 UTC, brian wrote:
On Sunday, 21 August 2016 at 23:37:38 UTC, Adam D. Ruppe wrote:
testStruct[int] testStructArray;
That's not actually an array per se, that is a key/value map
where the keys are ints.
I understand it's a map, but does my syntax not define
On Sunday, 21 August 2016 at 19:30:51 UTC, Guillaume Piolat wrote:
5) Is there a way to do simple heap allocation with 'new'
while ensuring the GC doesn't deallocate until I want it to?
Keep a reference somewhere reachable (by default: stack, heap,
globals: everything is reachable and
84 matches
Mail list logo