On Sunday, 18 October 2015 at 19:00:16 UTC, rcorre wrote:
You might find this interesting. It's an "outside-in" approach to
the same problem as opposed to your "inside-out" approach. Not
finished, but the general idea is there.
On Sunday, 18 October 2015 at 20:12:42 UTC, sigod wrote:
On Sunday, 18 October 2015 at 20:05:24 UTC, holo wrote:
@sigod
Actually im working on ec2 requests. Thank you for help, it
is working right now. I don't know why i was trying "+="
before instead of "~=". Is it good solution to make it
19.10.2015 02:57, holo пишет:
How to make dub to work for me?
Try
```
import kxml.xml; // instead of import kxml;
```
@sigod
Actually im working on ec2 requests. Thank you for help, it is
working right now. I don't know why i was trying "+=" before
instead of "~=". Is it good solution to make it such way?
@Suliaman
I need to collect information about my instances and put it to
DB. I want to present those
On Sunday, 18 October 2015 at 13:29:50 UTC, Ola Fosheim Grøstad
wrote:
On Sunday, 18 October 2015 at 12:50:43 UTC, Namespace wrote:
On Tuesday, 13 October 2015 at 23:26:14 UTC, Laeeth Isharc
wrote:
https://www.quora.com/Why-is-Python-so-popular-despite-being-so-slow
Andrei suggested posting
ok i fugure out it. When i do initiation i need to add
dependencies (thought it is enough to add them to sdl file).
Proper initiation should look like that:
dub init projectname kxml
On Sunday, 18 October 2015 at 20:44:44 UTC, Mengu wrote:
i've seen the presentation and i can't stop thinking how it'd
be if they had chosen D instead of Go.
Not much better, probably worse, given that Go has stack
protection for fibers and D doesn't. So in Go you can get away
with 2K
On Sunday, 18 October 2015 at 21:01:05 UTC, holo wrote:
On Sunday, 18 October 2015 at 20:12:42 UTC, sigod wrote:
[...]
I changed it to such code:
...
auto client = HTTP(endpoint ~ "?" ~
canonicalQueryString);
client.method = HTTP.Method.get;
On Sunday, 18 October 2015 at 21:18:52 UTC, rcorre wrote:
On Sunday, 18 October 2015 at 21:00:32 UTC, Meta wrote:
On Sunday, 18 October 2015 at 19:00:16 UTC, rcorre wrote:
You might find this interesting. It's an "outside-in" approach
to the same problem as opposed to your "inside-out"
On Sunday, 18 October 2015 at 20:05:24 UTC, holo wrote:
@sigod
Actually im working on ec2 requests. Thank you for help, it is
working right now. I don't know why i was trying "+=" before
instead of "~=". Is it good solution to make it such way?
Not really as it will trigger allocation on
On Sunday, 18 October 2015 at 21:18:52 UTC, rcorre wrote:
That's just the kind of thing I was looking for! I actually
started with a 'visitor' function that works similar to project:
https://github.com/rcorre/superstruct/blob/master/src/superstruct.d#L153-L166
then decided to wrap the whole
On Sunday, October 18, 2015 11:12:18 Suliman via Digitalmars-d-announce wrote:
> >I think a new website will be much better suited for this task.
> I do not think that we should diffuse efforts and yet another
> site is bad idea. And now dsource is not live, so it's better
> revive it then create
On Sunday, 18 October 2015 at 21:11:58 UTC, sigod wrote:
On Sunday, 18 October 2015 at 21:01:05 UTC, holo wrote:
On Sunday, 18 October 2015 at 20:12:42 UTC, sigod wrote:
[...]
I changed it to such code:
...
auto client = HTTP(endpoint ~ "?" ~
canonicalQueryString);
On Sunday, October 18, 2015 17:48:18 Freddy via Digitalmars-d-learn wrote:
> How do you call startsWith with only a predicate
> ---
> import std.algorithm;
> import std.ascii;
>
> bool iden(string str)
> {
> return str.startsWith!(a => a.isAlpha || a == '_');
> }
> ---
startsWith doesn't
I want to add xml support to my application so i fetched kxml
library with dub but it don't want to work for me. Steps and test
code:
[holo@ultraxps kxml]$ cat dub.sdl
name "kxml"
description "A minimal D application."
copyright "Copyright © 2015, holo"
authors "holo"
dependencies "kxml"
On Saturday, 17 October 2015 at 15:31:00 UTC, Nikolay wrote:
I asked on SO question about opDispatch and compile time
parameters:
http://stackoverflow.com/questions/32998781/opdispatch-and-compile-time-parameters
[...]
Is it good idea for opDispatch improvement or may there is some
other
On Sunday, 18 October 2015 at 21:52:17 UTC, Jonathan M Davis
wrote:
I expect that you're going to get a fair bit of disagreement on
that. We've been telling everyone for years that it's full of
old stuff that mostly only works with old versions of D (most
of it D1) and that it should usually
On Monday, 19 October 2015 at 03:04:28 UTC, drug wrote:
19.10.2015 02:57, holo пишет:
How to make dub to work for me?
Try
```
import kxml.xml; // instead of import kxml;
```
Same:
[holo@ultraxps kxml]$ dub run
Performing "debug" build using dmd for x86_64.
kxml ~master: building
https://issues.dlang.org/show_bug.cgi?id=15221
Jonathan M Davis changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=15221
Issue ID: 15221
Summary: Duration should treat division by 0 as a logic error
rather than throwing an exception
Product: D
Version: D2
Hardware: All
OS: All
I'm trying to take out from AWS respond needed information. Here
is cut off part of example respond:
...
i-x
ami-x
16
running
Jacob Carlborg wrote:
> If you declare the subclass as usual you can have a template mixin that
> adds the constructor.
>
> class SubException : Exception
> {
> mixin ExceptionConstructors;
> }
https://github.com/D-Programming-Language/druntime/pull/1413
--
Shriramana Sharma, Penguin #395953
On 18-Oct-2015 21:16, Shriramana Sharma wrote:
Dmitry Olshansky wrote:
I guess the idiomatic way is:
foreach (pos; iota(0, sink.data.length, 4).retro)
Mmm no that throws an assertion failure, since the guarantee of the regex is
only to insert commas before every third digit *from the end*,
On Sunday, 18 October 2015 at 15:51:50 UTC, Jacob Carlborg wrote:
On 2015-10-16 23:54, Jonathan M Davis wrote:
Basically all of the usage of the "synchronized" keyword in DWT
is actually the synchronized statement. I found a couple of
more false positives where "synchronized" was part of a
On Sunday, 18 October 2015 at 21:00:32 UTC, Meta wrote:
On Sunday, 18 October 2015 at 19:00:16 UTC, rcorre wrote:
You might find this interesting. It's an "outside-in" approach
to the same problem as opposed to your "inside-out" approach.
Not finished, but the general idea is there.
On Sunday, 18 October 2015 at 17:58:30 UTC, Meta wrote:
Is this a simplified use case of some actual code you have?
Otherwise, you can just do:
bool iden(string str)
{
auto f = str.front;
return f.isAlpha || f == '_';
}
It's simplified, i wanted to check for empty
On Sunday, 18 October 2015 at 03:28:28 UTC, Shriramana Sharma
wrote:
bitwise wrote:
Not sure what you're getting at either.
By `ls -v1` I was illustrating that directory listing utilities
are capable of sorting numbers meaningfully, so there is no
need for leading zeroes for *that*
On Sunday, 18 October 2015 at 18:04:53 UTC, holo wrote:
I'm trying to receive data from curl request my sample code
looks like that:
...
auto client = HTTP(endpoint ~ "?" ~
canonicalQueryString);
client.method = HTTP.Method.get;
SuperStruct is a struct that acts like a class:
---
struct Square {
float size;
float area() { return size * size; }
}
struct Circle {
float r;
float area() { return r * r * PI; }
}
alias Shape = SuperStruct!(Square, Circle);
// look! polymorphism!
Shape sqr = Square(2);
Shape cir =
On Sunday, 18 October 2015 at 18:04:53 UTC, holo wrote:
I'm trying to receive data from curl request my sample code
looks like that:
...
auto client = HTTP(endpoint ~ "?" ~
canonicalQueryString);
client.method = HTTP.Method.get;
On 10/18/15 7:55 AM, Joakim wrote:
Now, the download page has not traditionally listed alphas and betas.
But the importance of mobile is so high that I think it is worth it to
do so, with the appropriate cautions about alpha quality.
Yes, very much so. Please make that happen. Thanks! --
On 17 Oct 2015 11:25 pm, "Vladimir Panteleev via Digitalmars-d" <
digitalmars-d@puremagic.com> wrote:
>
> On Saturday, 17 October 2015 at 16:55:06 UTC, Joakim wrote:
>>
>> On Saturday, 17 October 2015 at 16:38:29 UTC, Andrei Alexandrescu wrote:
>>>
>>> Fantastic!
>>>
>>> Could you please send a PR
Hello all,
I recently decided to have another play with sdc to see how it's doing. Since
my dmd is installed in /opt/dmd/ I had to do a couple of tricks to get sdc
itself to build:
(i) put a dlang.conf in /etc/ld.so.conf.d/ containing the /opt/dmd/lib64 path;
(ii) call 'make
On 18 Oct 2015 9:45 am, "Vladimir Panteleev via Digitalmars-d" <
digitalmars-d@puremagic.com> wrote:
>
> On Sunday, 18 October 2015 at 07:37:55 UTC, Iain Buclaw wrote:
>>
>> Essentially, the reason D has not been ported to X has nothing to do
with lack of compiler support. A compiler can always
On Saturday, October 17, 2015 19:12:41 Andrei Alexandrescu via
Digitalmars-d-announce wrote:
> On 10/17/15 4:06 PM, suliman wrote:
> > Can anybody outside USA join to the foundation?
>
> As a member, yes. We'll define private and corporate membership with
> sponsorship levels etc.
>
> As an
On Sunday, 18 October 2015 at 04:55:53 UTC, Joakim wrote:
I made available a test runner for druntime/phobos as an
Android apk months ago and never got any feedback:
http://forum.dlang.org/post/erqxbcfyyxzviftmh...@forum.dlang.org
Posts buried deep in old threads are not very visible. I
https://issues.dlang.org/show_bug.cgi?id=14327
Rainer Schuetze changed:
What|Removed |Added
CC||r.sagita...@gmx.de
On Sunday, 18 October 2015 at 07:37:55 UTC, Iain Buclaw wrote:
Essentially, the reason D has not been ported to X has nothing
to do with lack of compiler support. A compiler can always be
built to target X, and if that wasn't enough, there are many
ready built packages available that target
https://issues.dlang.org/show_bug.cgi?id=14327
Rainer Schuetze changed:
What|Removed |Added
Keywords||pull
--- Comment #13
https://issues.dlang.org/show_bug.cgi?id=13561
Issue 13561 depends on issue 11216, which changed state.
Issue 11216 Summary: Make synchronized statement `nothrow`
https://issues.dlang.org/show_bug.cgi?id=11216
What|Removed |Added
https://issues.dlang.org/show_bug.cgi?id=11216
Mathias LANG changed:
What|Removed |Added
Status|RESOLVED|REOPENED
https://issues.dlang.org/show_bug.cgi?id=3913
--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/4817e508904471d349e71637385f8894cb4bb4f6
Fix Issue 3913 - Emit better
On Sunday, October 18, 2015 05:09 AM, Shriramana Sharma wrote:
> By `ls -v1` I was illustrating that directory listing utilities are
> capable of sorting numbers meaningfully, so there is no need for leading
> zeroes for *that* purpose...
You only showed that ls can do it, and you need a special
On Tuesday, 13 October 2015 at 23:26:14 UTC, Laeeth Isharc wrote:
https://www.quora.com/Why-is-Python-so-popular-despite-being-so-slow
Andrei suggested posting more widely.
Maybe also interesting:
Am Sun, 18 Oct 2015 09:55:52 +0200
schrieb Iain Buclaw via Digitalmars-d :
> On 18 Oct 2015 9:45 am, "Vladimir Panteleev via Digitalmars-d" <
> digitalmars-d@puremagic.com> wrote:
> >
> > On Sunday, 18 October 2015 at 07:37:55 UTC, Iain Buclaw wrote:
> >>
> >>
On Friday, 16 October 2015 at 10:04:36 UTC, Andrei Alexandrescu
wrote:
We are pleased to announce that the D Language Foundation is
now incorporated with the state of Washington, USA. The
foundation's Board of Directors are Walter Bright, Ali Çehreli,
and myself.
Our initial administrative
On Thursday, 15 October 2015 at 21:16:18 UTC, Laeeth Isharc wrote:
On Wednesday, 14 October 2015 at 22:11:56 UTC, data pulverizer
wrote:
On Tuesday, 13 October 2015 at 23:26:14 UTC, Laeeth Isharc
wrote:
https://www.quora.com/Why-is-Python-so-popular-despite-being-so-slow
Andrei suggested
On Friday, 16 October 2015 at 23:23:15 UTC, H. S. Teoh wrote:
Not to mention, if you want to talk about the truly Big Boys,
even Windows doesn't follow any of the proposed versioning
schemes (I mean, what's up with 3.0 -> 3.1 -> 95 -> 98 -> 2000
-> XP -> 7 -> 8 -> 9... ? That doesn't even
- [REG2.065] std.getopt parses -o=value as "=value"
https://github.com/D-Programming-Language/phobos/commit/3612fdab0eb50a9bb899e803f1c7aaa17d757e70
Merge pull request #3727 from CyberShadow/pull-20151018-004338
fix Issue 15220 - [REG2.065] std.getopt parses -o=value as "=value"
--
https://issues.dlang.org/show_bug.cgi?id=15220
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
On Sunday, 18 October 2015 at 12:50:43 UTC, Namespace wrote:
On Tuesday, 13 October 2015 at 23:26:14 UTC, Laeeth Isharc
wrote:
https://www.quora.com/Why-is-Python-so-popular-despite-being-so-slow
Andrei suggested posting more widely.
Maybe also interesting:
On Sunday, 18 October 2015 at 13:29:50 UTC, Ola Fosheim Grøstad
wrote:
On Sunday, 18 October 2015 at 12:50:43 UTC, Namespace wrote:
On Tuesday, 13 October 2015 at 23:26:14 UTC, Laeeth Isharc
wrote:
https://www.quora.com/Why-is-Python-so-popular-despite-being-so-slow
Andrei suggested posting
I think a new website will be much better suited for this task.
I do not think that we should diffuse efforts and yet another
site is bad idea. And now dsource is not live, so it's better
revive it then create fork.
I currently host dsource.org as a read-only archive
ok, when we are done I
Dmitry Olshansky wrote:
> Listing code that is not routinely tested on each build means someday it
> may become broken. Anyway just issue a pull request, we can figure out
> the details in github discussion.
Hmmm... AFAICS the *Into function is most useful when you don't know how
many items of
https://issues.dlang.org/show_bug.cgi?id=12658
Andrej Mitrovic changed:
What|Removed |Added
Status|NEW |RESOLVED
On Friday, 16 October 2015 at 12:43:59 UTC, Meta wrote:
On Friday, 16 October 2015 at 10:38:52 UTC, Shriramana Sharma
wrote:
Is there a particular reason that File.byLine() returns char[]
and not string i.e. immutable(char)[]? Is it just to avoid
being overly restrictive? It seems that having
For the Gentoo Linux DMD package I made dynamic linking the
default. It's not just Phobos but other libraries as well,
like GtkD and what else you link into your executable.
A simple GUI converting text in the clipboard on button press
is at around 553 KiB now. With static linking it is 6 MiB.
what buffer you are talking.
internal buffer. where result line resides.
And what is "signal"? How it's working?
just the fact for programmer, that result line can be changed by
other code (by phobos library code in this case).
no any special programming "signal".
Am Sun, 18 Oct 2015 11:35:16 +0200
schrieb Joseph Rushton Wakeling via Digitalmars-d-learn
:
> Hello all,
>
> I recently decided to have another play with sdc to see how it's doing.
> Since
> my dmd is installed in /opt/dmd/ I had to do a couple of tricks to
On 2015-10-18 09:55, Iain Buclaw via Digitalmars-d wrote:
In it's runtime? Correct - assuming no one invents any new predefined
version conditions in the process. :-)
I'm pretty sure Dan has added/is planning to add new version identifiers
for iOS. It might be that the OSX version identifier
On 2015-10-17 13:28, Marc Schütz wrote:
Yes, it's still linked statically by default, at least with DMD. I don't
know why this wasn't changed yet
1. It makes it easier to distribute binaries since most computers won't
have a Phobos and druntime installed
2. There's no guaranteed ABI
V Sun, 18 Oct 2015 15:51:13 +
Suliman via Digitalmars-d-learn
napsáno:
> On Sunday, 18 October 2015 at 15:40:09 UTC, novice2 wrote:
> >> what buffer you are talking.
> >
> > internal buffer. where result line resides.
> >
> >
> >> And what is "signal"?
https://issues.dlang.org/show_bug.cgi?id=12385
Andrej Mitrovic changed:
What|Removed |Added
URL|https://github.com/D-Progra
On Sunday, 18 October 2015 at 15:40:09 UTC, novice2 wrote:
what buffer you are talking.
internal buffer. where result line resides.
And what is "signal"? How it's working?
just the fact for programmer, that result line can be changed
by other code (by phobos library code in this case).
On 2015-10-16 23:54, Jonathan M Davis wrote:
Well, you probably will at some point, even if you don't know. According
to TDPL, there's not supposed to be any such thing as a class with some
functions which are synchronized and some not. The entire class is
synchronized or none of it is, and if
On Sunday, 18 October 2015 at 13:57:40 UTC, Namespace wrote:
I liked the fact that Python with PyPy is more performant than
Go (in contrast to the title "Python is slow") and that
Go-Routines leak.
Yes, Python apparently used less memory, which is rather
important when you write a service
On 18-Oct-2015 17:26, Shriramana Sharma wrote:
Dmitry Olshansky wrote:
Listing code that is not routinely tested on each build means someday it
may become broken. Anyway just issue a pull request, we can figure out
the details in github discussion.
Hmmm... AFAICS the *Into function is most
https://issues.dlang.org/show_bug.cgi?id=15198
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=14778
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=14778
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/d24a3f8fa0864849d324b210796b92d22c938eae
fix Issue 14778 - ddoc
On Sunday, 18 October 2015 at 15:03:22 UTC, Suliman wrote:
Sorry, but could you explain more simply? I reread all
information, bit can't understand about what buffer you are
talking.
This is more or less how byLine works, simplified:
struct ByLine
{
File file;
char[] line;
char[]
On Sunday, 18 October 2015 at 04:03:49 UTC, Andrei Alexandrescu
wrote:
On 10/18/15 1:57 AM, bitwise wrote:
On Friday, 9 October 2015 at 05:21:13 UTC, Andrei Alexandrescu
wrote:
On 10/9/15 4:47 AM, bitwise wrote:
On Thursday, 8 October 2015 at 17:21:52 UTC, Andrei
Alexandrescu wrote:
On
Dmitry Olshansky wrote:
> I guess the idiomatic way is:
>
> foreach (pos; iota(0, sink.data.length, 4).retro)
Mmm no that throws an assertion failure, since the guarantee of the regex is
only to insert commas before every third digit *from the end*, but doing
retro on an *ascending* iota
https://issues.dlang.org/show_bug.cgi?id=15198
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/04349a9cf415a4a420e4d8ffade0934949b2bc18
fix Issue 15198 -
How do you call startsWith with only a predicate
---
import std.algorithm;
import std.ascii;
bool iden(string str)
{
return str.startsWith!(a => a.isAlpha || a == '_');
}
---
On Sunday, 18 October 2015 at 17:48:20 UTC, Freddy wrote:
How do you call startsWith with only a predicate
---
import std.algorithm;
import std.ascii;
bool iden(string str)
{
return str.startsWith!(a => a.isAlpha || a == '_');
}
---
Is this a simplified use case of some actual code you
I'm trying to receive data from curl request my sample code looks
like that:
...
auto client = HTTP(endpoint ~ "?" ~
canonicalQueryString);
client.method = HTTP.Method.get;
client.addRequestHeader("x-amz-date", xamztime);
On Sunday, 18 October 2015 at 16:00:11 UTC, Jacob Carlborg wrote:
On 2015-10-18 09:55, Iain Buclaw via Digitalmars-d wrote:
In it's runtime? Correct - assuming no one invents any new
predefined
version conditions in the process. :-)
I'm pretty sure Dan has added/is planning to add new
On 18/10/15 19:43, Marco Leise via Digitalmars-d-learn wrote:
Maybe you should have started with `return 42;`? :D
writeln is not a light-weight in terms of exercised compiler
features. I didn't even know that it compiles yet. Last time I
heard it was not usable.
Hahahahahahahaha :-D
Turns out
79 matches
Mail list logo