On Thursday, 20 October 2016 at 01:04:35 UTC, Jonathan M Davis
wrote:
The transitivity of const shoot stuff in the foot pretty
thoroughly in a number of cases. A prime example would be
ranges, because they have to be mutated to be iterated over. If
the function actually took a range directly, y
On 10/20/2016 2:53 PM, Andrei Alexandrescu wrote:
The combinatorial explosion was one core motivation for C++ rvalue references. I
think the authors of the would-be DIP would do good to be conversant with that
proposal. -- Andrei
"However, as the number of free parameters grows (as in bind and
On 10/20/2016 04:57 PM, Walter Bright wrote:
On 10/20/2016 12:49 PM, Andrei Alexandrescu wrote:
On 10/20/2016 06:23 AM, Ethan Watson wrote:
Suitable enough for simple functions. But beyond that becomes
maintenance hell.
I agree this workaround has a combinatorial problem.
Yes, Ethan made a
On 10/20/2016 04:16 PM, Karabuta wrote:
On Thursday, 20 October 2016 at 19:52:32 UTC, Andrei Alexandrescu wrote:
On 10/20/2016 03:48 PM, Karabuta wrote:
On Thursday, 20 October 2016 at 14:04:06 UTC, Andrei Alexandrescu wrote:
On 10/20/2016 07:38 AM, Nick Treleaven wrote:
On Sunday, 16 October
On 10/20/16 5:07 PM, Nick Sabalausky wrote:
I think I'm going to try to put out first-try pass at a new API in a
separate branch, try to get that out as soon as I can, and post it for
experimentation/feedback.
Awesome! Looking forward to it.
-Steve
On 10/20/2016 04:32 PM, Steven Schveighoffer wrote:
On 10/20/16 12:50 PM, Nick Sabalausky wrote:
You can't bind individual values? Is there something wrong with
"bindParameter(value, paramIndex)"? (I mean, besides the fact that it
takes a ref, and, like the rest of the lib, isn't really documen
On 10/20/2016 12:49 PM, Andrei Alexandrescu wrote:
On 10/20/2016 06:23 AM, Ethan Watson wrote:
Suitable enough for simple functions. But beyond that becomes
maintenance hell.
I agree this workaround has a combinatorial problem.
Yes, Ethan made a good point I hadn't thought of. And any DIP on
On 10/20/16 12:50 PM, Nick Sabalausky wrote:
On 10/20/2016 09:33 AM, Steven Schveighoffer wrote:
Yes, it does work. However, one thing that I *sorely* miss is the
ability to simply bind an individual value.
At the moment, in order to bind a value, you have to pass an array of
Variant for all t
This is actually a nodejs project's dependencies for a small
code-base.
{
"name": "Houston",
"version": "0.3.0",
"description": "Backend for AppHub",
"main": "build/houston/index.js",
"dependencies": {
"babel-core": "^6.9.1",
"babel-loader": "^6.2.5",
"babel-plugin-syntax-a
On Thursday, 20 October 2016 at 19:52:32 UTC, Andrei Alexandrescu
wrote:
On 10/20/2016 03:48 PM, Karabuta wrote:
On Thursday, 20 October 2016 at 14:04:06 UTC, Andrei
Alexandrescu wrote:
On 10/20/2016 07:38 AM, Nick Treleaven wrote:
On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven
wro
On 10/20/2016 03:48 PM, Karabuta wrote:
On Thursday, 20 October 2016 at 14:04:06 UTC, Andrei Alexandrescu wrote:
On 10/20/2016 07:38 AM, Nick Treleaven wrote:
On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven wrote:
I think this example is a bit awkward for D newbies to decipher. I
th
On 10/20/2016 06:23 AM, Ethan Watson wrote:
On Wednesday, 19 October 2016 at 10:32:56 UTC, Walter Bright wrote:
Better:
void f(ref Vector v);
void f(Vector v) { f(v); }
f(Vector(10,20,30));
Suitable enough for simple functions. But beyond that becomes
maintenance hell.
I agree thi
On Thursday, 20 October 2016 at 14:04:06 UTC, Andrei Alexandrescu
wrote:
On 10/20/2016 07:38 AM, Nick Treleaven wrote:
On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven
wrote:
I think this example is a bit awkward for D newbies to
decipher. I
think here we are showing D's ctRegex; drop
On Wednesday, 19 October 2016 at 15:18:36 UTC, Atila Neves wrote:
[...]
On the one hand some people want rvalues to bind to const ref.
I can only assume that they want this because they want to pass
rvalues to a function efficiently
[...]
struct Vector { float x, y, z; }
In games/real-time
On 10/19/2016 10:10 PM, Andrei Alexandrescu wrote:
On 10/19/16 6:19 PM, Lurker wrote:
On Wednesday, 19 October 2016 at 17:09:35 UTC, Andrei Alexandrescu wrote:
Just made one more pass through it addressing concerns and adding a
new policy (Throw). Reviews welcome. Let's get this through Scylla
On 10/20/2016 09:33 AM, Steven Schveighoffer wrote:
Yes, it does work. However, one thing that I *sorely* miss is the
ability to simply bind an individual value.
At the moment, in order to bind a value, you have to pass an array of
Variant for all the values. I currently have a whole wrapper ar
On 10/17/2016 05:44 AM, deadalnix wrote:
> On Monday, 17 October 2016 at 02:08:44 UTC, Dicebot wrote:
>> Listen, I understand you are not interested in spending loads of time
>> on boring polishing of formalities. We all do this in our spare time
>> so that is to be expected.
>>
>
> I spent fuck 4
On Thursday, 20 October 2016 at 16:03:32 UTC, Nick Sabalausky
wrote:
On 10/20/2016 08:21 AM, ketmar wrote:
On Thursday, 20 October 2016 at 05:43:47 UTC, Nick Sabalausky
wrote:
Not sure what your point is here. If you're writing a library
and want
to avoid giving your users deprecation messages
On 10/18/2016 02:40 AM, David Soria Parra wrote:
> On Monday, 17 October 2016 at 21:52:32 UTC, Andrei Alexandrescu wrote:
>> Thanks, David. Hope you're doing well! I was curious about one thing -
>> is there some scrutiny going into the PIPs before Guido reviews them?
>> Right now we seem to have a
On 10/20/2016 08:21 AM, ketmar wrote:
On Thursday, 20 October 2016 at 05:43:47 UTC, Nick Sabalausky wrote:
Not sure what your point is here. If you're writing a library and want
to avoid giving your users deprecation messages due to the import
changes, then you need to test on 2.070 or newer. Cl
On Thursday, 20 October 2016 at 08:44:09 UTC, Ethan Watson wrote:
On Thursday, 20 October 2016 at 07:17:49 UTC, Benjamin Thaut
wrote:
Any suggestions how to solve this problem? Who are other
platforms doing it?
Would this also be a bigger problem if people use LoadLibrary
and don't FreeLibrar
On 20 October 2016 at 21:07, Ethan Watson via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
> On Thursday, 20 October 2016 at 10:36:16 UTC, Manu wrote:
>
>> DIP25 introduced return ref to address this issue. Just annotate it
>> correctly?
>>
>
> I mean, it'll work, but it's not the most secu
On Thursday, 20 October 2016 at 14:04:06 UTC, Andrei Alexandrescu
wrote:
On 10/20/2016 07:38 AM, Nick Treleaven wrote:
On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven
wrote:
I think this example is a bit awkward for D newbies to
decipher. I
think here we are showing D's ctRegex; drop
On 10/20/2016 07:38 AM, Nick Treleaven wrote:
On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven wrote:
I think this example is a bit awkward for D newbies to decipher. I
think here we are showing D's ctRegex; dropping the functional map and
lambdas would make this more universally under
On 10/20/16 2:38 AM, Nick Sabalausky wrote:
On 10/19/2016 07:04 PM, Chris Wright wrote:
Right. For instance, binding query parameters with mysql-native. The
thing you're binding is passed by reference and I'm not sure why.
It's been like that since mysql-native's original release, by the
ori
On Thursday, 20 October 2016 at 11:38:04 UTC, Nick Treleaven
wrote:
On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven
wrote:
I think this example is a bit awkward for D newbies to
decipher. I think here we are showing D's ctRegex; dropping
the functional map and lambdas would make this
On Thursday, 20 October 2016 at 07:40:05 UTC, Jonathan M Davis
wrote:
In general, in D, if you don't need inheritance and
polymorphism, you probably shouldn't be using a class.
and even if you need, most of the time it is better to write
templated free functions with constraints instead. ;-)
On Thursday, 20 October 2016 at 05:43:47 UTC, Nick Sabalausky
wrote:
And GDC is using the 2.068 feature set, plus a lot of bug
fixes from
later versions. I guess you could call it 2.068.5. :-)
Maybe there's a certain amount of truth to that, but not
completely: In all my projects anyway, t
On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven wrote:
I think this example is a bit awkward for D newbies to
decipher. I think here we are showing D's ctRegex; dropping the
functional map and lambdas would make this more universally
understood.
https://github.com/dlang/dlang.org/p
On Thursday, 20 October 2016 at 11:12:24 UTC, Daniel Kozak wrote:
On Wednesday, 19 October 2016 at 12:51:46 UTC, Lodovico
Giaretta wrote:
Hi!
As you might have noticed, Ubuntu 16.10 joins the community of
hardened systems by shipping GCC 6.2 with PIE enabled by
default. This is a wonderful se
On Wednesday, 19 October 2016 at 12:51:46 UTC, Lodovico Giaretta
wrote:
Hi!
As you might have noticed, Ubuntu 16.10 joins the community of
hardened systems by shipping GCC 6.2 with PIE enabled by
default. This is a wonderful security choice
Maybe it is not so perfect security choice
http://w
On Thursday, 20 October 2016 at 10:23:40 UTC, Ethan Watson wrote:
On Wednesday, 19 October 2016 at 10:32:56 UTC, Walter Bright
wrote:
Better:
void f(ref Vector v);
void f(Vector v) { f(v); }
f(Vector(10,20,30));
Suitable enough for simple functions. But beyond that becomes
maintena
On Thursday, 20 October 2016 at 10:36:16 UTC, Manu wrote:
DIP25 introduced return ref to address this issue. Just
annotate it correctly?
I mean, it'll work, but it's not the most secure method to rely
on the programmer remembering to do it.
On 20 October 2016 at 20:16, Ethan Watson via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
> On Wednesday, 19 October 2016 at 21:19:03 UTC, Atila Neves wrote:
>
>> On Wednesday, 19 October 2016 at 15:58:23 UTC, Chris Wright wrote:
>>
>>> So it seems like the compiler could take care of this
On Wednesday, 19 October 2016 at 10:32:56 UTC, Walter Bright
wrote:
Better:
void f(ref Vector v);
void f(Vector v) { f(v); }
f(Vector(10,20,30));
Suitable enough for simple functions. But beyond that becomes
maintenance hell.
For example:
void func2( ref const( Vector ) v1, ref c
On Wednesday, 19 October 2016 at 21:19:03 UTC, Atila Neves wrote:
On Wednesday, 19 October 2016 at 15:58:23 UTC, Chris Wright
wrote:
So it seems like the compiler could take care of this by only
providing lvalue references but automatically creating those
temporary variables for me. It's going
On Thursday, 20 October 2016 at 07:40:05 UTC, Jonathan M Davis
wrote:
User-defined types that manage system resources are pretty much
always better off as structs so that they can have
deterministic destruction.
They could be reference counted classes if it played well with
the language.
In
On Thursday, 20 October 2016 at 07:17:49 UTC, Benjamin Thaut
wrote:
This is a topic really specific to druntime, I don't know a
better place to put it though.
rt_init increases the _initCount and rt_term decreases it and
only terminates the runtime in case the _initCount reaches zero
(see dma
On Wednesday, 19 October 2016 at 09:51:50 UTC, Benjiro wrote:
The current homepage example is in my option, right between
group 2 and 3. And its disregarding group one and two.
What about setting up snippets about things people want to know
about straight away like:
1. OOP
2. Functional pr
On Wednesday, 19 October 2016 at 20:46:08 UTC, Karabuta wrote:
On Wednesday, 19 October 2016 at 09:28:28 UTC, Benjiro wrote:
On Tuesday, 18 October 2016 at 20:51:24 UTC, Karabuta wrote:
[...]
True. Anybody can make a website. A website that is efficient,
takes time. A stupid travel booking w
On Thursday, 20 October 2016 at 07:17:49 UTC, Benjamin Thaut
wrote:
Any suggestions how to solve this problem? Who are other
platforms doing it?
Would this also be a bigger problem if people use LoadLibrary and
don't FreeLibrary after?
On Thursday, October 20, 2016 06:59:12 lumpyzhu via Digitalmars-d wrote:
> std.stdio.File has reference counter inside,
> why not std.stdio.File is class?
By using a struct with a reference count, you get deterministic destruction,
and the file will be closed as soon as the reference count hits ze
This is a topic really specific to druntime, I don't know a
better place to put it though.
rt_init increases the _initCount and rt_term decreases it and
only terminates the runtime in case the _initCount reaches zero
(see dmain2.d)
The problem now is as follows.
Each dynamic library that is
std.stdio.File has reference counter inside,
why not std.stdio.File is class?
44 matches
Mail list logo