On Friday, 7 August 2015 at 04:56:39 UTC, Rikki Cattermole wrote:
*whispers* Hey hey you. You want tests? Well here is something
you'll like[0]. Oh and check out[1].
[0] http://www.libpng.org/pub/png/pngsuite.html
[1]
http://forum.dlang.org/post/zxbexpwmirzdkewhq...@forum.dlang.org
Well
On 8/08/2015 8:05 p.m., lobo wrote:
On Friday, 7 August 2015 at 04:56:39 UTC, Rikki Cattermole wrote:
*whispers* Hey hey you. You want tests? Well here is something you'll
like[0]. Oh and check out[1].
[0] http://www.libpng.org/pub/png/pngsuite.html
[1]
On Saturday, 8 August 2015 at 08:05:27 UTC, lobo wrote:
Sorry I don't mean to sound harsh but that's the reality I'm in
right now pushing D on teams in my workplace. It would be much
simpler if there were quality (idiomatic) D interfaces to
existing quality C/C++ libraries.
Have you looked
On 8/7/15 2:20 PM, Steven Schveighoffer wrote:
On 8/7/15 1:36 PM, Andrei Alexandrescu wrote:
I ran into an oddity of pthread_create, see
https://github.com/D-Programming-Language/druntime/pull/1340. It appears
that if stack size is not explicitly set, the 32-bit version of
pthread_create fails.
Hi !
I want to add some sugar to D : sometimes it's necessary to use
complex start index.
For example:
auto sub = arr[idx + 123 * 10..idx + 123 * 10 + 1];
Proposal is to add a mnemonic for start index, for instance :
auto sub = arr[idx + 123 * 10..# + 1]; // # == start index
# is for
On 9/08/2015 1:08 a.m., Temtaime wrote:
Hi !
I want to add some sugar to D : sometimes it's necessary to use complex
start index.
For example:
auto sub = arr[idx + 123 * 10..idx + 123 * 10 + 1];
Proposal is to add a mnemonic for start index, for instance :
auto sub = arr[idx + 123 * 10..# +
On Saturday, 8 August 2015 at 13:08:08 UTC, Temtaime wrote:
Hi !
I want to add some sugar to D : sometimes it's necessary to use
complex start index.
For example:
auto sub = arr[idx + 123 * 10..idx + 123 * 10 + 1];
Proposal is to add a mnemonic for start index, for instance :
auto sub =
On Saturday, 8 August 2015 at 13:08:08 UTC, Temtaime wrote:
Hi !
I want to add some sugar to D : sometimes it's necessary to use
complex start index.
For example:
auto sub = arr[idx + 123 * 10..idx + 123 * 10 + 1];
Proposal is to add a mnemonic for start index, for instance :
auto sub =
On 8/7/15 4:07 PM, bitwise wrote:
On Monday, 3 August 2015 at 00:24:56 UTC, bitwise wrote:
Just stumbled upon this:
https://code.visualstudio.com/
I see support for Rust and Go, but no D.
If you download it, there is a little smiley/frowny in the bottom
right corner for feedback/feature
On Saturday, 8 August 2015 at 13:08:08 UTC, Temtaime wrote:
Hi !
I want to add some sugar to D : sometimes it's necessary to use
complex start index.
For example:
auto sub = arr[idx + 123 * 10..idx + 123 * 10 + 1];
Proposal is to add a mnemonic for start index, for instance :
auto sub =
On Friday, 7 August 2015 at 20:24:54 UTC, jmh530 wrote:
On Friday, 7 August 2015 at 17:40:16 UTC, deadalnix wrote:
[...]
I wouldn't think what you're saying is controversial...just a
lot of work to do well.
[...]
+2000
On 6 August 2015 at 21:46, Rikki Cattermole via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 6/08/2015 11:30 p.m., Manu via Digitalmars-d wrote:
On 6 August 2015 at 21:23, Rikki Cattermole via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 6/08/2015 11:18 p.m., Manu via
On Saturday, 8 August 2015 at 13:08:08 UTC, Temtaime wrote:
Hi !
I want to add some sugar to D : sometimes it's necessary to use
complex start index.
For example:
auto sub = arr[idx + 123 * 10..idx + 123 * 10 + 1];
Proposal is to add a mnemonic for start index, for instance :
auto sub =
On 9/08/2015 2:40 p.m., Manu via Digitalmars-d wrote:
On 6 August 2015 at 21:46, Rikki Cattermole via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 6/08/2015 11:30 p.m., Manu via Digitalmars-d wrote:
On 6 August 2015 at 21:23, Rikki Cattermole via Digitalmars-d
On Sunday, 9 August 2015 at 02:41:00 UTC, Manu wrote:
...
This pretty much hit the nail on the head on why dmd needs
deprecated.
I'm tired of seeing 'BUT IT WORKS ON WINDOWS' as an excuse. I
don't care if it works on windows, it produces code slower than
interpreted lua. Exactly what use
On 8/8/2015 7:40 PM, Manu via Digitalmars-d wrote:
1. DMD has unsatisfactory codegen for anything other than debug builds.
Do you mean the codegen is slower? But consider that the bottleneck in most
programs is a small section of code. Taking a good look at the generated code
for that and
https://issues.dlang.org/show_bug.cgi?id=14871
--- Comment #12 from Daniel Kozak kozz...@gmail.com ---
Changlog comment is better than nothing
--
https://issues.dlang.org/show_bug.cgi?id=14888
Issue ID: 14888
Summary: std.zlib.uncompress should take const(void)[] instead
of void[]
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status:
https://issues.dlang.org/show_bug.cgi?id=14507
Rainer Schuetze r.sagita...@gmx.de changed:
What|Removed |Added
CC||r.sagita...@gmx.de
---
https://issues.dlang.org/show_bug.cgi?id=14885
Adam D. Ruppe destructiona...@gmail.com changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=12750
--- Comment #6 from Manu turkey...@gmail.com ---
Yup, it's all good. We've recently switched to 2013 at work, and I'm starting
to make the change at home too _
--
https://issues.dlang.org/show_bug.cgi?id=14507
--- Comment #2 from Manu turkey...@gmail.com ---
At the time I logged this bug, the paths you mention were not present in the
executable paths setting (a fresh install).
I had to manually add them.
The option to override sc.ini does seem to be
On Saturday, 8 August 2015 at 01:24:04 UTC, 岩倉 澪 wrote:
On Saturday, 8 August 2015 at 00:39:57 UTC, 岩倉 澪 wrote:
receiveTimeout(0.msecs,
(immutable Bar[] bar){ baz = cast(Bar[])bar;
});
Whoops, that should be:
receiveTimeout(0.msecs,
08.08.2015 01:34, Ali Çehreli пишет:
On 08/07/2015 06:59 AM, drug wrote:
What is the best way to create range from uniform() function (in other
words create a generator based on some function, returning, say, scalar,
not range)? I did http://dpaste.dzfl.pl/53e3d9255cd7 but I'm not sure
it's the
On Friday, 7 August 2015 at 11:45:22 UTC, Nordlöw wrote:
To implement a new trait
isSortedRange(R, pred)
needed for SortedRange specializations I need a variant of
I've put all my progress into
https://github.com/D-Programming-Language/phobos/pull/3534
On Friday, 7 August 2015 at 22:34:40 UTC, Ali Çehreli wrote:
There is an undocumented (why?) Generator struct and generate()
functin in std.range:
It's new in 2.068, that's why it's missing in the current docs.
It's already in the prerelease docs:
On Sunday, 2 August 2015 at 10:04:54 UTC, nikolai wrote:
Yes, I was so excited about Dlang that i forgot to paste the
error:
Here's the link to imagescreen http://prntscr.com/7zwe6h
Can't help you with your problem, but I have another tip:
Shift-right-click inside a dir- open cmd window here
On Saturday, 8 August 2015 at 00:39:57 UTC, 岩倉 澪 wrote:
On Friday, 7 August 2015 at 22:13:35 UTC, 岩倉 澪 wrote:
message is local to the delegate that receiveTimeout takes.
I want to use message outside of the delegate in the
receiving thread. However, if you send an immutable value from
the
I'm writing a program that rotates numbers then asks the user if
a new set of numbers should be rotated. I'm having trouble using
a Foreach loop to fill a dynamic array with the elements to be
rotated.
Here's my code, I add a TAB when a loop is inside a loop and and
do that too to the
Here's what happens :
How many elements need to be used? 5
Input the element : 1 1
Input the element : 1 2
Input the element : 1 3
Input the element : 1 4
Input the element : 1 5
How many positions do you wish to rotate ? 3
The original patter is : 5 0 0 0 0
The final is : 0 0 0 5 0
Do you want
On Saturday, 8 August 2015 at 15:57:15 UTC, Binarydepth wrote:
Here's what happens :
How many elements need to be used? 5
Input the element : 1 1
Input the element : 1 2
Input the element : 1 3
Input the element : 1 4
Input the element : 1 5
How many positions do you wish to rotate ? 3
The
On Saturday, 8 August 2015 at 17:19:08 UTC, DarthCthulhu wrote:
You can fix it like the following:
foreach(num, element; liaOrig) {//Data input loop
writefln(num: %s current element: %s liaOrig.length: %s,
num, element, liaOrig.length);
On Friday, 7 August 2015 at 23:01:33 UTC, Ali Çehreli wrote:
Thank you very much for the kind words. Which format are you
using? It is good to hear that it is acceptable as an ebook, as
I've always targetted HTML and then PDF for the print version
(which should be purchasable any day
On Saturday, 8 August 2015 at 18:24:48 UTC, Binarydepth wrote:
On Saturday, 8 August 2015 at 17:19:08 UTC, DarthCthulhu wrote:
Now 'num' is just an iterative number starting from 0 (the
.init value of an int), while the actual element value is
stored in 'element'. I added the writefln()
I'm playing around with the range based operations and with raw
file io. I couldn't figure out a way to get rid of the outer
foreach loops.
Nice execution time of 537 msec for this, which creates and reads
back a file of about 160MB (20_000_000 doubles).
import std.algorithm;
import
On Saturday, 8 August 2015 at 18:28:25 UTC, Binarydepth wrote:
This is the new code :
foreach(num; 0..liEle) {//Data input loop
write(Input the element : , num+1, );
readf( %d, liaOrig[num]);
}
Even better :
foreach(num; 0..liaOrig.length
On 08/08/2015 04:11 PM, Jay Norwood wrote:
I'm playing around with the range based operations and with raw file
io. I couldn't figure out a way to get rid of the outer foreach loops.
When the body of the foreach loop performs something, then
std.algorithm.each can be useful:
import
On Sunday, 9 August 2015 at 00:50:16 UTC, Ali Çehreli wrote:
{
auto f = File(fn,wb);
iota(10.5, 20_000_010.5, 1.0)
.chunks(100)
.each!(a = f.rawWrite(a.array));
}
Ali
Thanks. There are many examples of numeric to string data output
in the
I'm just learning D. Something I often do in C# is have an
IEnumerable (Range) of some type that is then conditionally
filtered. It looks like this:
IEnumerableDictionarystring, string foo = bar;
if (baz)
{
foo = foo.Where(d = d[key] == value);
}
I'm trying to do the same in D. Here's
On Sunday, 9 August 2015 at 00:50:16 UTC, Ali Çehreli wrote:
// NOTE: No need to tell rawRead the type as double
iota(10, 20_000_000 + 10, n)
.each!(a = f.rawRead(dbv));
}
Ali
Your f.rawRead(dbv) form compiles, but f.rawRead!(dbv) results in
an error msg in
On 08/08/2015 07:07 PM, Jay Norwood wrote:
On Sunday, 9 August 2015 at 00:50:16 UTC, Ali Çehreli wrote:
// NOTE: No need to tell rawRead the type as double
iota(10, 20_000_000 + 10, n)
.each!(a = f.rawRead(dbv));
}
Ali
Your f.rawRead(dbv) form compiles,
41 matches
Mail list logo