On Thursday, 24 December 2015 at 13:16:02 UTC, JerryR wrote:
On Thursday, 24 December 2015 at 05:50:06 UTC, Israel wrote:
On Thursday, 24 December 2015 at 04:06:40 UTC, JerryR wrote:
[...]
Upgrading GTKD is definitely the best route...
...you wont have to fix anything on the library's side.
On Thursday, 17 December 2015 at 20:21:00 UTC, Adam D. Ruppe
wrote:
On Thursday, 17 December 2015 at 19:51:19 UTC, Walter Bright
wrote:
That has nothing to do with Ddoc, and is more about the
organization of the files on github. Switching to another
framework does nothing for that.
Well, I
On Friday, 18 December 2015 at 15:42:32 UTC, steven kladitis
wrote:
On Monday, 14 December 2015 at 08:36:27 UTC, Andrea Fontana
wrote:
On Saturday, 12 December 2015 at 12:08:50 UTC, Martin Nowak
wrote:
As you might already know from the last sprint review
On Thursday, 17 December 2015 at 11:47:23 UTC, Walter Bright
wrote:
On 12/16/2015 11:12 AM, H. S. Teoh via Digitalmars-d wrote:
Having said that, though, using ddoc for the website leads to
other
problems (e.g., the ongoing fiasco with XREF, LREF,
whatever-REF and the
associated
On Thursday, 17 December 2015 at 16:12:32 UTC, Vadim Lopatin
wrote:
On Wednesday, 16 December 2015 at 13:32:21 UTC, Suliman wrote:
Is it's possible to use some native frontend with dlangui
instead of drawing all controls with OpenGL? I really dislike
how all OpenGL toolkit looks like.
OpenGL
On Wednesday, 16 December 2015 at 20:05:03 UTC, Vladimir
Panteleev wrote:
On Tuesday, 15 December 2015 at 21:45:02 UTC, deadalnix wrote:
On Tuesday, 15 December 2015 at 13:42:29 UTC, Andrei
Alexandrescu wrote:
On 12/15/15 5:54 AM, tcak wrote:
The harder it is made for people to contribute the
On Thursday, 17 December 2015 at 07:44:43 UTC, ZombineDev wrote:
On Thursday, 17 December 2015 at 01:04:15 UTC, Luís Marques
wrote:
Hi,
I often type `range.algorithm(myFunc)` instead of the correct
`range.algorithm!(myFunc)`. Would it be possible to improve
the error message for this?
On Wednesday, 16 December 2015 at 21:05:27 UTC, Andrei
Alexandrescu wrote:
I was looking at
https://github.com/D-Programming-Language/dlang.org/pull/1169
and that bold sans serif proportional text for the code is
just... well let's say it's time to replace it.
What would be a good code font
On Wednesday, 16 December 2015 at 23:00:03 UTC, Timon Gehr wrote:
On 12/15/2015 12:26 PM, rumbu wrote:
And personally, I found the MS remark more compact and more
user
friendly than:
"This is a best-effort implementation of length for any kind
of range.
If hasLength!Range, simply returns
On Wednesday, 16 December 2015 at 10:15:49 UTC, Saurabh Das wrote:
On Wednesday, 16 December 2015 at 10:07:38 UTC, Saurabh Das
wrote:
On Wednesday, 16 December 2015 at 09:38:24 UTC, Ali Çehreli
wrote:
On 12/16/2015 01:26 AM, Saurabh Das wrote:
struct xlref
{
ushort rwFirst;
ushort
On Sunday, 13 December 2015 at 05:10:17 UTC, Jack Stouffer wrote:
This is the voting thread to decide if the proposed addition to
Phobos, std.experimental.ndslice, should be accepted.
[...]
Docs are hitting a server error.
On Wednesday, 16 December 2015 at 11:31:00 UTC, Dennis Ritchie
wrote:
On Wednesday, 16 December 2015 at 11:21:13 UTC, John Colvin
wrote:
On Sunday, 13 December 2015 at 05:10:17 UTC, Jack Stouffer
wrote:
This is the voting thread to decide if the proposed addition
to Phobos
On Wednesday, 16 December 2015 at 07:46:53 UTC, Jacob Carlborg
wrote:
On 2015-12-15 15:43, John Colvin wrote:
I have no idea how you got something in /Library/D, but it
doubt it
was from homebrew.
The native installer installs into /Library/D.
Well that probably explains the problem
On Wednesday, 16 December 2015 at 09:26:33 UTC, Saurabh Das wrote:
struct xlref
{
ushort rwFirst;
ushort rwLast;
ubyte colFirst;
ubyte colLast;
}
struct xlmref
{
ushort count;
xlref reflist;
}
Mac OS X (dmd 2.069.0)
===
dmd dprob.d
Segmentation fault:
On Tuesday, 15 December 2015 at 14:03:50 UTC, rumbu wrote:
This is a *good* documentation:
- "Count" is a better name than "walkLength"; every other
programming language will use concepts similar to count, cnt,
length, len.
meh, I like walkLength. I hate it when a innocuous looking little
On Monday, 14 December 2015 at 11:12:03 UTC, Ali Çehreli wrote:
On 12/14/2015 02:09 AM, Mike McKee wrote:
I finally managed to get it working
Congratulations! But this is not the right medium for this blog
post. ;) Please polish and publish it somewhere before someone
puts it on Reddit now.
On Sunday, 13 December 2015 at 05:10:17 UTC, Jack Stouffer wrote:
This is the voting thread to decide if the proposed addition to
Phobos, std.experimental.ndslice, should be accepted.
[...]
I've played some large part in the various iterations of
reviewing this, so I'm biased, but of
On Thursday, 10 December 2015 at 13:33:07 UTC, Pradeep Gowda
wrote:
I read this post about the difficulties of using go/cgo to
interface with C code:
http://www.cockroachlabs.com/blog/the-cost-and-complexity-of-cgo/
How does D do in comparison? specifically in regards to:
1. Call overhead
On Thursday, 10 December 2015 at 15:29:46 UTC, Jack Stouffer
wrote:
On Thursday, 10 December 2015 at 15:18:18 UTC, John Colvin
wrote:
On Thursday, 10 December 2015 at 14:57:33 UTC, Jack Stouffer
wrote:
On Thursday, 10 December 2015 at 13:52:57 UTC, John Colvin
wrote:
On Thursday, 10 December
On Thursday, 10 December 2015 at 14:57:33 UTC, Jack Stouffer
wrote:
On Thursday, 10 December 2015 at 13:52:57 UTC, John Colvin
wrote:
On Thursday, 10 December 2015 at 13:33:07 UTC, Pradeep Gowda
wrote:
5. Debugging (ease of accessing C parts when debugging)
5) Trivial. From the debuggers
On Monday, 7 December 2015 at 17:39:14 UTC, Andrei Alexandrescu
wrote:
We're over 20% full and seats are going fast!
We planned to send an announcement when we're 50% sold out.
However, this time around registrations are coming quite a bit
quicker than before so we thought we'd keep you
On Saturday, 5 December 2015 at 09:49:06 UTC, ref2401 wrote:
I want to create a static array large enough to store 1MB of
float values.
What am I doing wrong?
Here is a sample code with notes:
void main(string[] args) {
enum size_t COUNT = 1024 * 512 / float.sizeof; // works OK :)
On Saturday, 5 December 2015 at 20:44:40 UTC, Andrei Alexandrescu
wrote:
Working on the big-oh thing I noticed that for an overloaded
function, __traits(getAttributes, ...) applied to overloaded
functions only fetches attributes for the first syntactically
present overload. Bug or feature?
On Monday, 30 November 2015 at 03:30:02 UTC, Martin Nowak wrote:
Second beta for the 2.069.2 point release.
New fixes:
Bugzilla 15281: std\experimental\allocator\package.d not
included in build script
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.069.2.html
Please
On Wednesday, 25 November 2015 at 18:06:45 UTC, Wild wrote:
On Wednesday, 25 November 2015 at 16:18:56 UTC, Piotrek wrote:
Hi,
No worries :) Feel free to use whatever license you want. It
is your code.
However my point was that the code released with license other
than Boost (or similar)
On Thursday, 26 November 2015 at 10:28:15 UTC, Dragos Carp wrote:
On Thursday, 26 November 2015 at 10:19:13 UTC, Mike Parker
wrote:
This is not even an issue. IDEs can create a dub.json for all
new projects and call 'dub describe' on imported projects
without ever touching SDLang. Again,
On Wednesday, 25 November 2015 at 16:11:09 UTC, Ozan wrote:
Hi
Is there any overview, list, wiki about what's behind runtime
errors like
"Program exited with code -11"?
Okay, I made a mistake...but it's better to know where and what
kind?
Thanks & Regards,
Ozan
That's just normal
On Wednesday, 25 November 2015 at 20:10:37 UTC, deadalnix wrote:
On Wednesday, 25 November 2015 at 09:20:53 UTC, John Colvin
wrote:
On Wednesday, 25 November 2015 at 02:33:24 UTC, deadalnix
wrote:
Don't be confused. Krugman do not understand bitcoin, but
Krugman think that terrorism and riots
On Wednesday, 25 November 2015 at 02:33:24 UTC, deadalnix wrote:
On Monday, 23 November 2015 at 12:11:36 UTC, Steven
Schveighoffer wrote:
One could ask the same thing about any currency that isn't the
one accepted at a store.
I looked with a tinge of fascination at what bitcoin was a
while
On Wednesday, 25 November 2015 at 08:10:03 UTC, Jack Applegame
wrote:
This doesn't compile:
import std.range;
import std.algorithm;
void main() {
char[64] arr;
copy(chain("test1", "test2"), arr[0..10]);
}
http://dpaste.dzfl.pl/24230ac02e6e
Essentially this comes down to the
On Saturday, 21 November 2015 at 10:29:57 UTC, deadalnix wrote:
On Saturday, 21 November 2015 at 07:20:07 UTC, Joakim wrote:
PHP scales. This is why people use it. And this is why people
will continue to use it. This is why Facebook, wikipedia,
Baidu, wordpress and many others are using it.
On Thursday, 19 November 2015 at 06:33:06 UTC, Jay Norwood wrote:
On Wednesday, 18 November 2015 at 22:46:01 UTC, jmh530 wrote:
My sense is that any data frame implementation should try to
build on the work that's being done with n-dimensional slices.
I've been watching that development, but
On Thursday, 19 November 2015 at 15:16:37 UTC, Jack Stouffer
wrote:
On Wednesday, 18 November 2015 at 13:59:36 UTC, John Colvin
wrote:
On Wednesday, 11 November 2015 at 22:43:22 UTC, Kingsley wrote:
Hi
Please come to the London D meetup on Wednesday 18th November.
We have a great talk
On Thursday, 19 November 2015 at 06:20:28 UTC, Andrew wrote:
The documentation gives plenty of examples of how to use a
static if with the arity trait, but how do I specify the
constructor of an object as the parameter to arity?
Thanks
Ugly but works:
import std.traits;
struct A
{
On Wednesday, 18 November 2015 at 08:52:11 UTC, Robert burner
Schadek wrote:
I couldn't easily find how to make the module work with
allocators. IMO combining this module with
std.experiemtal.allocator should be possible. And if it is
already possible, there should be tests for documentation
On Wednesday, 18 November 2015 at 14:11:45 UTC, maik klein wrote:
On Wednesday, 18 November 2015 at 13:51:59 UTC, John Colvin
wrote:
On Wednesday, 18 November 2015 at 12:20:42 UTC, maik klein
wrote:
[...]
I think this is a bug, please report it at issues.dlang.org
and perhaps
On Wednesday, 11 November 2015 at 22:43:22 UTC, Kingsley wrote:
Hi
Please come to the London D meetup on Wednesday 18th November.
We have a great talk by John Colvin on semi functional
programming.
We have a fantastic venue at skills matter with great
facilities and free video recording
On Wednesday, 18 November 2015 at 12:20:42 UTC, maik klein wrote:
https://stackoverflow.com/questions/33779822/unable-to-call-each-on-a-lockstep-range-containing-2-or-more-ranges
http://dpaste.dzfl.pl/76c79f1f12ab
void main(){
import std.container;
import std.stdio;
import
On Tuesday, 17 November 2015 at 23:26:15 UTC, Vladimir Panteleev
wrote:
On Tuesday, 17 November 2015 at 13:08:37 UTC, Namal wrote:
On Monday, 16 November 2015 at 15:20:51 UTC, Andrei
Alexandrescu wrote:
[...]
Hello Andrei,
what do you think how good the download numbers are
representing
On Friday, 13 November 2015 at 10:20:53 UTC, Don wrote:
On Friday, 13 November 2015 at 09:37:41 UTC, deadalnix wrote:
On Friday, 13 November 2015 at 09:33:51 UTC, John Colvin wrote:
I don't understand what you think is so complicated about it?
After arithmetic operations f is applied
signed
On Friday, 13 November 2015 at 09:09:33 UTC, Don wrote:
At the very least, we should change the terminology on that
page. The word "overflow" should not be used when referring to
both signed and unsigned types. On that page, it is describing
two very different phenomena, and gives the
On Friday, 13 November 2015 at 12:06:43 UTC, Matthias Bentrup
wrote:
On Friday, 13 November 2015 at 09:33:51 UTC, John Colvin wrote:
unsigned: f(v) = v mod 2^n - 1
signed: f(v) = ((v + 2^(n-1)) mod (2^n - 1)) - 2^(n-1)
I guess you meant mod 2^n in both cases...
haha, yes, sorry.
On Thursday, 12 November 2015 at 19:11:25 UTC, tired_eyes wrote:
On Thursday, 12 November 2015 at 14:44:49 UTC, John Colvin
wrote:
To test the speed of fmttable itself I split fmttable and main
in to different modules, made fmttable extern(C) so I could
just prototype it in the main module
On Wednesday, 4 November 2015 at 09:30:30 UTC, Andrei
Alexandrescu wrote:
Reply to this with 1.1, 1.2, 2, or 3:
1) by ponce:
Variant 1:
https://github.com/p0nce/dconf.org/blob/master/2016/images/logo-sample.png
Variant 2:
On Thursday, 12 November 2015 at 11:59:50 UTC, Daniel Kozak wrote:
code:
import std.stdio;
auto fmttable(immutable(string[][]) table) {
import std.array : appender, uninitializedArray;
import std.range : take, repeat;
import std.exception : assumeUnique;
auto res =
On Thursday, 12 November 2015 at 12:23:11 UTC, Daniel Kozak wrote:
V Thu, 12 Nov 2015 12:10:30 +
John Colvin via Digitalmars-d <digitalmars-d@puremagic.com>
napsáno:
On Thursday, 12 November 2015 at 11:59:50 UTC, Daniel Kozak
wrote:
> [...]
What versions of these compilers?
On Thursday, 12 November 2015 at 11:59:50 UTC, Daniel Kozak wrote:
code:
import std.stdio;
auto fmttable(immutable(string[][]) table) {
import std.array : appender, uninitializedArray;
import std.range : take, repeat;
import std.exception : assumeUnique;
auto res =
On Thursday, 12 November 2015 at 15:06:26 UTC, ric maicle wrote:
On Thursday, 12 November, 2015 07:50 PM, anonymous wrote:
__traits has special syntax. The first "argument" must be from
a list of
special keywords that only have special meaning in that place.
You can't
put the name of a struct
On Wednesday, 11 November 2015 at 22:43:22 UTC, Kingsley wrote:
Hi
Please come to the London D meetup on Wednesday 18th November.
We have a great talk by John Colvin on semi functional
programming.
We have a fantastic venue at skills matter with great
facilities and free video recording
On Tuesday, 3 November 2015 at 23:06:58 UTC, Chris wrote:
On Tuesday, 3 November 2015 at 19:42:58 UTC, Andrei
Alexandrescu wrote:
I wrote this: http://wiki.dlang.org/Starting_as_a_Contributor,
is it what you need it to be? -- Andrei
"Then, github detects the new code and offers assistance
On Monday, 2 November 2015 at 09:16:09 UTC, Nordlöw wrote:
On Monday, 2 November 2015 at 09:02:28 UTC, Gary Willoughby
wrote:
On Monday, 2 November 2015 at 08:23:16 UTC, Nordlöw wrote:
I need `T` to be an alias in order for .stringof to work.
typeof(T).stringof
No, I want the variable name
On Saturday, 6 June 2015 at 12:49:37 UTC, Atila Neves wrote:
On Saturday, 6 June 2015 at 06:59:26 UTC, Jonathan M Davis
wrote:
On Saturday, 6 June 2015 at 06:16:17 UTC, Andrei Alexandrescu
wrote:
Nested functions that allocate their environment dynamically
can be quite useful. However,
On Wednesday, 28 October 2015 at 08:36:07 UTC, Walter Bright
wrote:
On 10/13/2015 12:13 PM, Walter Bright wrote:
On 10/13/2015 6:36 AM, Daniel Kozak wrote:
lists.llvm.org/pipermail/llvm-dev/2015-October/091218.html
Maybe we could have something similar in D community
No. People who need to
On Monday, 26 October 2015 at 11:10:31 UTC, Iakh wrote:
On Monday, 26 October 2015 at 09:49:00 UTC, Iakh wrote:
On Monday, 26 October 2015 at 00:00:45 UTC, anonymous wrote:
runBinary calls naiveIndexOf. You're not testing
binaryIndexOf.
You are right.
This is fixed example:
On Sunday, 25 October 2015 at 18:15:20 UTC, TheFlyingFiddle wrote:
This problem has gained my interest and I plan on implementing
this sometime this week. I'll post a link to the source when
it's done if anyone is interested in it.
Without having looked at this in detail, phobos should have a
On Saturday, 24 October 2015 at 13:18:26 UTC, Shriramana Sharma
wrote:
Hello. I had first expected that dynamic arrays (slices) would
provide a `.clear()` method but they don't seem to. Obviously I
can always effectively clear an array by assigning an empty
array to it, but this has unwanted
On Friday, 23 October 2015 at 12:22:49 UTC, tcak wrote:
[code]
mixin template Test(alias a){
int a;
}
void main(){
mixin Test!blah;
}
[/code]
Compiler says it doesn't know about "blah". My purpose is to
define the parameter as a variable. Is that possible?
you would have to
On Wednesday, 21 October 2015 at 23:21:21 UTC, Brian Schott wrote:
dfmt is a formatter for D source code.
Changes from 0.4.0:
* #189: Better formatting for "in" expressions where the right
side of the "in" operator is a function literal.
* #190: Fix a bug where whitespace was removed from
On Thursday, 22 October 2015 at 01:54:47 UTC, Sebastiaan Koppe
wrote:
On Wednesday, 21 October 2015 at 17:38:14 UTC, Jacob Carlborg
wrote:
You can have a look at Grafana [1]. Then you can have a real
time graph, if that's of interest. In addition to that the
graphs are a lot nicer :)
I
On Thursday, 22 October 2015 at 18:20:07 UTC, pineapple wrote:
I'd like to use fread and fwrite in place of File.rawRead and
File.rawWrite which force the creation of an array where I'd
rather specify a buffer location and length.
D's arrays *are* just buffer locations and lengths with a few
On Wednesday, 21 October 2015 at 23:21:21 UTC, Brian Schott wrote:
dfmt is a formatter for D source code.
Changes from 0.4.0:
* #189: Better formatting for "in" expressions where the right
side of the "in" operator is a function literal.
* #190: Fix a bug where whitespace was removed from
On Thursday, 22 October 2015 at 13:53:33 UTC, pineapple wrote:
I'm just starting to hammer D's very pleasant syntax into my
head. After "Hello world", the first thing I do when learning
any language is to write a simple program which generates and
outputs the Collatz sequence for an arbitrary
On Thursday, 22 October 2015 at 15:10:58 UTC, pineapple wrote:
On Thursday, 22 October 2015 at 14:36:52 UTC, John Colvin wrote:
Using ranges instead of threads or fibers, slightly
over-engineered to show off features:
What does if(isIntegral!T) do? It looks like it would verify
On Thursday, 22 October 2015 at 16:15:23 UTC, Shriramana Sharma
wrote:
I wanted a D equivalent to:
http://doc.qt.io/qt-5/qdatastream.html
https://docs.python.org/3/library/pickle.html
and saw that one is under construction:
http://wiki.dlang.org/Review/std.serialization
But till it's
On Wednesday, 21 October 2015 at 14:27:45 UTC, Shriramana Sharma
wrote:
John Colvin wrote:
It might be better to ask in
http://forum.dlang.org/group/learn first for these sort of
questions.
I didn't do that only because it concerns implemental details
of Phobos which didn't seem
On Wednesday, 21 October 2015 at 20:50:29 UTC, Andrei
Alexandrescu wrote:
Better late than later.
http://wiki.dlang.org/Vision/2015H2_(draft)
Destroy. After we make this good I'll rename it and make it
official.
Andrei
Memory Management
There has been progress on memory management in
On Wednesday, 21 October 2015 at 10:08:24 UTC, Shriramana Sharma
wrote:
In Python I can do:
ints = [1, 2, 3]
chars = ['a', 'b', 'c']
for i, c in zip(ints, chars):
print(i, c)
Output:
1 a
2 b
3 c
But in D if I try:
import std.stdio, std.range;
void main ()
{
int [] ints = [1, 2, 3];
On Wednesday, 21 October 2015 at 12:05:27 UTC, Shriramana Sharma
wrote:
import std.math;
real round(real val, int prec)
{
real pow = 10 ^^ prec;
return round(val * pow) / pow;
}
Trying to compile this I get:
foo.d(5): Error: function foo.round (real val, int prec) is not
callable
On Wednesday, 21 October 2015 at 12:07:12 UTC, Shriramana Sharma
wrote:
John Colvin wrote:
static assert(is(ElementType!string == dchar));
But this is false, no? Since ElementType!string is char and not
dchar?
No. char[], wchar[] and dchar[] all have ElementType dchar.
Strings
On Wednesday, 21 October 2015 at 12:22:25 UTC, Shriramana Sharma
wrote:
The templates `MutableOf` etc in std.traits – they don't seem
to be of any public use since `const(T)` is more direct and
meaningful than `ConstOf!T`.
Except for `MutableOf` they are all currently public and even
the
On Monday, 19 October 2015 at 21:01:06 UTC, Brian Schott wrote:
On Monday, 19 October 2015 at 20:29:41 UTC, Brian Schott wrote:
From the README: "The D Completion Daemon is an auto-complete
program for the D programming language." 0.7.1 is a (boring)
bug-fix release.
On Tuesday, 20 October 2015 at 10:10:05 UTC, Andrei Alexandrescu
wrote:
On 10/20/2015 03:38 AM, Shriramana Sharma wrote:
Writing stdin.byLine(KeepTerminator.yes) is quite awkward. Why
this long
name and not something shorter like KeepEOL?
It is what it is. Write it and move on.
Or if you
On Tuesday, 20 October 2015 at 15:48:47 UTC, Andrea Fontana wrote:
It happens I need to perform an operation just one time (inside
a function, a loop...)
I wonder if doing this it's a good idea or not.
bool isFirstTime(alias T)()
{
static val = true;
if (val)
{
On Tuesday, 20 October 2015 at 16:01:58 UTC, Andrea Fontana wrote:
On Tuesday, 20 October 2015 at 15:55:47 UTC, John Colvin wrote:
Be aware that there will be one instance of val per thread, so
you are detecting the first run in each thread, not in the
program overall.
This is the kind
On Friday, 16 October 2015 at 08:03:06 UTC, German Diago wrote:
[...]
Just a small note FYI, there's an easy way to get a feel for the
current state of GC reliance:
void main() @nogc
{
// try stuff out
}
On Friday, 16 October 2015 at 09:01:41 UTC, German Diago wrote:
On Friday, 16 October 2015 at 08:58:25 UTC, John Colvin wrote:
void main() @nogc
{
// try stuff out
}
Thanks for the tip. Is this 100% reliable?
As far as I know, yes. @nogc can be put on any function and
will guarantee
On Friday, 16 October 2015 at 08:43:12 UTC, German Diago wrote:
On Friday, 16 October 2015 at 08:11:18 UTC, John Colvin wrote:
On Friday, 16 October 2015 at 08:03:06 UTC, German Diago wrote:
[...]
Just a small note FYI, there's an easy way to get a feel for
the current state of GC reliance
On Friday, 16 October 2015 at 11:11:28 UTC, Guillaume Chatelet
wrote:
Is there an idiomatic way to do:
int[] numbers = [0, 1, 2, 3];
assert(adjacent_diff(numbers) == [1, 1, 1]);
I can't find something useful in the std library.
import std.range, std.algorithm;
auto slidingWindow(R)(R r,
On Friday, 16 October 2015 at 12:03:56 UTC, Per Nordlöw wrote:
On Friday, 16 October 2015 at 11:48:19 UTC, Edwin van Leeuwen
wrote:
zip(r, r[1..$]).map!((t) => t[1]-t[0]);
And for InputRanges (not requiring random-access):
zip(r, r.dropOne).map!((t) => t[1]-t[0]);
We should have a good
On Friday, 16 October 2015 at 15:48:59 UTC, Edwin van Leeuwen
wrote:
Just wondering if anyone has any tips on how to solve/avoid
"cannot deduce function from argument types" when relying on
template programming.
I run into these problems all the time. Current one was when I
tried:
```
auto
On Friday, 16 October 2015 at 15:48:59 UTC, Edwin van Leeuwen
wrote:
Just wondering if anyone has any tips on how to solve/avoid
"cannot deduce function from argument types" when relying on
template programming.
I run into these problems all the time. Current one was when I
tried:
```
auto
On Thursday, 15 October 2015 at 15:45:00 UTC, Shriramana Sharma
wrote:
John Colvin wrote:
On Wednesday, 14 October 2015 at 15:02:02 UTC, Shriramana
Sharma
wrote:
What binary arithmetic operators do you need that real[]
doesn't
already support?
OMG silly me! I can already do a[] /= b
On Thursday, 15 October 2015 at 19:16:08 UTC, deadalnix wrote:
Making a roadmap when you don't have people you pay to stick to
it doesn't really work. It's like trying to transport frogs
using a wheelbarrel.
s/barrel/barrow/
On Thursday, 15 October 2015 at 18:35:40 UTC, Shriramana Sharma
wrote:
object.d (from dmd 2.068.2) line 1636:
auto e = new Exception("msg", new Exception("It's an
Excepton!"), "hello", 42);
Next time somebody edits this file, s/Excepton/Exception.
Didn't want to file a bug for such a minor
On Wednesday, 14 October 2015 at 14:32:00 UTC, jmh530 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.
I was just writing some R code yesterday after playing
On Wednesday, 14 October 2015 at 15:02:02 UTC, Shriramana Sharma
wrote:
Hello. I just came upon a need in my program to make binary
arithmetic operators valid between two real[] in my programs
What binary arithmetic operators do you need that real[] doesn't
already support?
On Wednesday, 14 October 2015 at 15:25:22 UTC, David DeWitt wrote:
On Wednesday, 14 October 2015 at 14:48:22 UTC, John Colvin
wrote:
On Wednesday, 14 October 2015 at 14:32:00 UTC, jmh530 wrote:
On Tuesday, 13 October 2015 at 23:26:14 UTC, Laeeth Isharc
wrote:
https://www.quora.com/Why
On Monday, 12 October 2015 at 13:17:32 UTC, Timon Gehr wrote:
On 10/09/2015 04:41 AM, Timothee Cour via Digitalmars-d wrote:
Could we have a function with iota_inclusive that has
inclusive bounds
for 'end' parameter ?
iota!"[]" ?
Yes please.
On Tuesday, 13 October 2015 at 13:21:54 UTC, Suliman wrote:
I tried to use map! but it's look like it do not work with
string, becouse I got error: Error: no property 'map' for type
'ByLine!(char, char)'
I suspect you don't have it imported.
import std.algorithm;
or
import std.algorithm :
On Tuesday, 13 October 2015 at 12:16:26 UTC, Jacob wrote:
On Monday, 12 October 2015 at 19:35:33 UTC, Ice Cream Overload
wrote:
On Monday, 12 October 2015 at 16:56:27 UTC, Jacob wrote:
I've noticed that you seem to be quite arrogant. Usually it
is a result of ignorance. Your statement
On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote:
First beta for the 2.069.0 release.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.069.0.html
Please report any bugs at https://issues.dlang.org
-Martin
brew reinstall dmd --devel
:) thanks for all
On Sunday, 11 October 2015 at 13:58:24 UTC, Temtaime wrote:
On Friday, 9 October 2015 at 07:20:43 UTC, John Colvin wrote:
On Friday, 9 October 2015 at 02:41:50 UTC, Timothee Cour wrote:
how to do iota(0,256) with ubytes ?
and more generally:
iota with 'end' parameter set to max range of a type
On Thursday, 8 October 2015 at 12:32:59 UTC, John Colvin wrote:
On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak
wrote:
First beta for the 2.069.0 release.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.069.0.html
Please report any bugs at https
On Thursday, 8 October 2015 at 21:40:02 UTC, TheGag96 wrote:
In my code I'm passing an array of BitArrays to a constructor
like this (though mostly as a placeholder):
Terrain t = new Terrain(1, 15, [
BitArray([1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]),
BitArray([1, 1, 1, 1, 1, 0, 1, 1,
On Friday, 9 October 2015 at 07:20:43 UTC, John Colvin wrote:
On Friday, 9 October 2015 at 02:41:50 UTC, Timothee Cour wrote:
how to do iota(0,256) with ubytes ?
and more generally:
iota with 'end' parameter set to max range of a type.
of course this doesn't work:
auto b=iota(ubyte(0), ubyte
On Friday, 9 October 2015 at 02:41:50 UTC, Timothee Cour wrote:
how to do iota(0,256) with ubytes ?
and more generally:
iota with 'end' parameter set to max range of a type.
of course this doesn't work:
auto b=iota(ubyte(0), ubyte(256));
//cannot implicitly convert expression (256) of type int
On Thursday, 8 October 2015 at 09:29:30 UTC, tcak wrote:
I am "trying" to write a function that takes an array of items,
and returns the length of longest item.
[code]
size_t maxLength(A)( const A[] listOfString ) if( __traits(
hasMember, A, "length" ) )
{
return 0; // not
On Thursday, 8 October 2015 at 12:35:08 UTC, Kagamin wrote:
Hmm... conceptually a bidirectional range should be able to
iterate back and forth:
void is_word_boundary(Bidi r)
{
bool is_word_prev = r.re.empty ? false : isword(r.re.back);
bool is_word_this = r.empty ? false :
On Thursday, 8 October 2015 at 14:36:03 UTC, Kagamin wrote:
On Thursday, 8 October 2015 at 13:10:24 UTC, John Colvin wrote:
What you're effectively describing is a trio of iterators
wrapped to give an interface of two linked ranges. popFront
grows the first one and shrinks the second. I'd
On Thursday, 8 October 2015 at 15:22:02 UTC, tcak wrote:
BTW, there is nothing like std.traits.hasLength.
yeah, that's because __traits(hasMember, ...) should be good
enough, but obviously not in this case at the moment.
401 - 500 of 2625 matches
Mail list logo