https://issues.dlang.org/show_bug.cgi?id=17049
--- Comment #9 from Walter Bright ---
Fix for Comment 4:
https://github.com/dlang/dmd/pull/6577
--
On Monday, 27 February 2017 at 02:02:57 UTC, ag0aep6g wrote:
Make a range or an array of function pointers from the AliasSeq
of function aliases:
import std.meta: staticMap;
import std.range: only;
enum fptr(alias f) =
enum fptrs = staticMap!(fptr, funcs);
auto r = only(fptrs);
foreach
I use dub 1.2.1 to build my project. As convenience, I choose
`dflags-windows-x86: ["-m32mscoff"]` option in dub.json of my
library binding to specify default architecture in win32
platform. But in the newest dub release, this cause a warning
which told me to use DLFAGS environment or specify
On Monday, 27 February 2017 at 02:06:29 UTC, helxi wrote:
Any vim users here? I've been trying to set up Vim to get
started with D. I was going to install Dutyl plugin but DCD is
not working.
Hi,
setting up (Neo)Vim for D might be tricky. Here is my config for
neovim:
On Monday, 27 February 2017 at 04:51:37 UTC, Nick Sabalausky
(Abscissa) wrote:
On 02/26/2017 01:23 PM, cym13 wrote:
[1]: https://cym13.github.io/article/unpredictableSeed.html
Good enlightening article. And Veles looks cool, never heard of
it before.
One detail:
auto copyState(uint
On 02/26/2017 01:23 PM, cym13 wrote:
[1]: https://cym13.github.io/article/unpredictableSeed.html
Good enlightening article. And Veles looks cool, never heard of it before.
One detail:
auto copyState(uint origin) {
for (uint i=1; i>0; i++) {
if (origin == Random(i).front)
Any vim users here? I've been trying to set up Vim to get started
with D. I was going to install Dutyl plugin but DCD is not
working.
Neovim's deoplete-d doesn't seem to work either. I'm not sure
about how to set up importpath. Can anyone share .vimrc?
Also, if anyone gave me a step by step
On Saturday, 25 February 2017 at 19:59:29 UTC, ikod wrote:
Hello,
I have a method for range:
struct Range {
immutable(ubyte[]) _buffer;
size_t _pos;
@property void popFront() pure @safe {
enforce(_pos < _buffer.length, "popFront from empty
buffer");
On 02/27/2017 01:35 AM, Bastiaan Veelo wrote:
template eval_all(funcs...)
{
void eval_all(int val)
{
import std.parallelism;
//foreach (i, f; parallel(funcs))// Tries to evaluate f(void)
foreach (i, f; funcs)// How do I parallelise this?
On Monday, 27 February 2017 at 00:10:31 UTC, cym13 wrote:
The only thing that saves you here is that your
DefaultCryptoRand isn't seedable. Note that I'm not saying that
to bash you or anything, it just happens to show well why I
think my article was necessary.
Oh, don't get me wrong, I'm
On 2/26/17 7:59 PM, Andrei Alexandrescu wrote:
On 2/26/17 4:53 PM, hmm wrote:
On Sunday, 26 February 2017 at 21:25:52 UTC, Andrei Alexandrescu wrote:
On 02/26/2017 01:37 AM, Seb wrote:
That been said DUB is a build tool and it's good to be in verbose in
case of errors and there's `-q` which
On 2/26/17 4:53 PM, hmm wrote:
On Sunday, 26 February 2017 at 21:25:52 UTC, Andrei Alexandrescu wrote:
On 02/26/2017 01:37 AM, Seb wrote:
That been said DUB is a build tool and it's good to be in verbose in
case of errors and there's `-q` which you can use as expected, e.g:
dub run dscanner
Hi,
Is it possible to parallelise the iteration over an AliasSec?
Ordinary parallel foreach does not work. I have tried submitting
tasks to taskPool in an ordinary foreach, but I can't because i
cannot be read at compile time.
int one(int) {return 1;}
int two(int) {return 2;}
int three(int)
On Sunday, 26 February 2017 at 22:56:14 UTC, Nick Sabalausky
(Abscissa) wrote:
On 02/26/2017 01:23 PM, cym13 wrote:
Hi,
I found many times that people use unpredictableSeed in
combination with
normal PRNG for cryptographic purpose. Some even go as far as
reseeding
at each call to try making
https://issues.dlang.org/show_bug.cgi?id=17228
Sprink changed:
What|Removed |Added
Severity|enhancement |normal
--
https://issues.dlang.org/show_bug.cgi?id=17228
Sprink changed:
What|Removed |Added
Keywords||trivial
--
https://issues.dlang.org/show_bug.cgi?id=17228
Issue ID: 17228
Summary: File size() can't determine file unsearchable on
Windows.
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
On Sunday, February 26, 2017 11:13:47 Nick Sabalausky via Digitalmars-d
wrote:
> Yea. Six years ago, assertPred was written for Phobos and rejected
> because it was decided it was better for assert to just gain that
> functionality built-in...which a full six years later, never happened.
>
On 02/26/2017 01:23 PM, cym13 wrote:
Hi,
I found many times that people use unpredictableSeed in combination with
normal PRNG for cryptographic purpose. Some even go as far as reseeding
at each call to try making it more secure.
It is a dangerous practice, most PRNG are not designed with
Speaking of, another good source of more "how to not mess up security"
info is here:
https://crackstation.net/hashing-security.htm
DAuth/InstaUser is based on the points in there.
On Sunday, 26 February 2017 at 21:25:52 UTC, Andrei Alexandrescu
wrote:
On 02/26/2017 01:37 AM, Seb wrote:
That been said DUB is a build tool and it's good to be in
verbose in
case of errors and there's `-q` which you can use as expected,
e.g:
dub run dscanner -q -- --sloc .
Cool, that
On 2/26/2017 1:15 PM, Andrei Alexandrescu wrote:
Indeed, the routines in core.checkedint are everything needed (in addition to
some inline code for comparisons) if the purpose is to check operations
individually.
The purpose of core.checkedint is to provide the smallest possible building
On Saturday, 25 February 2017 at 19:55:04 UTC, Timothee Cour
wrote:
Try dscanner --sloc although IMO --tokenCount should be the
most relevant
metric (only caveat is mixin strings with which one could cheat
to make
token count smaller).
TokenCount formatting invariant
On Feb 25, 2017 11:36 AM,
On 02/26/2017 01:37 AM, Seb wrote:
That been said DUB is a build tool and it's good to be in verbose in
case of errors and there's `-q` which you can use as expected, e.g:
dub run dscanner -q -- --sloc .
Cool, that does it for me. Thanks! -- Andrei
On 02/26/2017 02:31 AM, Jack Stouffer wrote:
On Saturday, 25 February 2017 at 19:31:06 UTC, Andrei Alexandrescu wrote:
What would be a simple way to count the "effective" lines in a module,
i.e. excluding ddoc comments and unittests? Having a tool for that in
tools/ would be neat. -- Andrei
On 2/26/17 4:53 AM, Seb wrote:
On Sunday, 26 February 2017 at 09:41:46 UTC, rumbu wrote:
On Saturday, 25 February 2017 at 15:21:10 UTC, Andrei Alexandrescu wrote:
On 02/25/2017 10:17 AM, rumbu wrote:
A lot of bloat code for something extremely basic.
If you can do it with less code, I'm all
On Sunday, 26 February 2017 at 19:34:33 UTC, thorstein wrote:
// Reads CSV-like files with only numeric values in each column
// new_ndv replaces ndv, which is the original no-data-value
double[][]* readNumMatCsv(char[] filePath, int numHeaderLines,
char[] ndv, char[] new_ndv)
*
On Sunday, 26 February 2017 at 18:59:41 UTC, Walter Bright wrote:
On 2/26/2017 10:03 AM, Petar Kirov [ZombineDev] wrote:
On Saturday, 25 February 2017 at 07:02:48 UTC, Walter Bright
wrote:
http://dconf.org/2017/registration.html
Don't forget, it goes up to $400 after Monday.
Hello, I just
On Sunday, 26 February 2017 at 12:22:01 UTC, Suliman wrote:
I have this code:
module pages;
import vibe.d;
import database;
import vibe.web.web;
class MyPages
{
@path("/page1") void getPage()
{
render!("home.dt");
}
}
The error: https://snag.gy/PtNeSs.jpg
Error: template
Hi,
sorry for posting again, but I used a keyboard combination that
accidently send my post before it was done.
Coming more or less from Python I just started with D. Not a real
programmer, just automating things and looking for a neat
compiled language.
Just to learn, I wrote a function
Hi,
coming more or less from Python I just started with D. Not a real
programmer, just automating things and looking for a neat
compiled language.
Just to learn, I wrote a function to read CSV-like files (I know
D has its own routine). Since I'm still a bit overwhelmed by the
many complex
cym13 wrote:
"like /dev/random on Linux"
(sighs) it was so good until this...
That's a typo actually, I meant urandom, I'll correct it.
thank you. sorry for me being rough: i was trying to make a joke, and
i was pretty sure that it was a typo. but now i reread my post and
found that the
On Sunday, 26 February 2017 at 18:33:08 UTC, ketmar wrote:
cym13 wrote:
Hi,
I found many times that people use unpredictableSeed in
combination with normal PRNG for cryptographic purpose. Some
even go as far as reseeding at each call to try making it more
secure.
It is a dangerous
On 2/26/2017 10:03 AM, Petar Kirov [ZombineDev] wrote:
On Saturday, 25 February 2017 at 07:02:48 UTC, Walter Bright wrote:
http://dconf.org/2017/registration.html
Don't forget, it goes up to $400 after Monday.
Hello, I just tried to purchase a ticket, however I got a 'sales ended' message.
I
cym13 wrote:
Hi,
I found many times that people use unpredictableSeed in combination
with normal PRNG for cryptographic purpose. Some even go as far as
reseeding at each call to try making it more secure.
It is a dangerous practice, most PRNG are not designed with security
(and
Hi,
I found many times that people use unpredictableSeed in
combination with normal PRNG for cryptographic purpose. Some even
go as far as reseeding at each call to try making it more secure.
It is a dangerous practice, most PRNG are not designed with
security (and unpredictability) in
On Saturday, 25 February 2017 at 07:02:48 UTC, Walter Bright
wrote:
http://dconf.org/2017/registration.html
Don't forget, it goes up to $400 after Monday.
Hello, I just tried to purchase a ticket, however I got a 'sales
ended' message. I suppose that even though it is not Monday yet,
I am
mysql-native is now officially at v1.0.0!
https://github.com/mysql-d/mysql-native
mysql-native is a native D client driver for MySQL and MariaDB, usable
either with or without vibe.d. It does not rely on the official C
libraries, instead communicating directly with the server via the
On Sunday, 26 February 2017 at 16:13:47 UTC, Nick Sabalausky
(Abscissa) wrote:
On 02/26/2017 02:17 AM, Seb wrote:
[...]
Yea. Six years ago, assertPred was written for Phobos and
rejected because it was decided it was better for assert to
just gain that functionality built-in...which a full
On Thursday, 23 February 2017 at 21:04:39 UTC, Nick Sabalausky
(Abscissa) wrote:
Suppose I want ddoc output to include this line:
--
Note: Blah blabbety blah
--
But the colon causes "Note" to be considered a section header.
Is there a way to escape the ":" so that it's
On 02/26/2017 02:17 AM, Seb wrote:
On Sunday, 26 February 2017 at 06:34:07 UTC, Ali Çehreli wrote:
So, obviously, assert message generation is not lazy. This is a WAT!
for me but perhaps there is a good reason for it.
FWIW imho we shouldn't need to write such messages at all.
It shouldn't be
The package[1] is a binding to the Expat XML parser[2] with no
high level wrappers, just plain C API.
The initial release covers all of expat 2.2.0 and you need to
link against the appropriate library yourself.
The compile-time versions XML_UNICODE, XML_UNICODE_WCHAR_T, and
XML_LARGE_SIZE
As it's getting a bit exhaustive to repeat these bits on GitHub
over and over again,
I though I summarize a couple of notes that hopefully are
interesting for the DLang maintainers.
Please take this as a friendly summary and personal advice of
most GH-related process improvements that have
On 2017-02-26 06:50, Andrei Alexandrescu wrote:
On 2/25/17 2:55 PM, Timothee Cour via Digitalmars-d wrote:
Try dscanner --sloc although IMO --tokenCount should be the most
relevant metric (only caveat is mixin strings with which one could cheat
to make token count smaller).
Thanks, got that
On Sunday, 26 February 2017 at 08:37:29 UTC, Nicholas Wilson
wrote:
DCompute is an extension to LDC capable of generating code
(with no language changes*) for NVIDIA's NVPTX for use with
CUDA, SPIRV for use with the OpenCL runtime, and of course the
host, all at the same time! It is also
https://issues.dlang.org/show_bug.cgi?id=15124
Sönke Ludwig changed:
What|Removed |Added
Status|NEW |RESOLVED
https://github.com/libmir/mir-algorithm/blob/master/README.md
On Sunday, 26 February 2017 at 12:31:21 UTC, Suliman wrote:
It's look like wrong error, because project is buildable.
So I have only one question. Can I do response not in .dt, but
in .html?
It's seems that serveStaticFiles is only one normal way to get it
work.
It's look like wrong error, because project is buildable.
So I have only one question. Can I do response not in .dt, but in
.html?
I have this code:
module pages;
import vibe.d;
import database;
import vibe.web.web;
class MyPages
{
@path("/page1") void getPage()
{
render!("home.dt");
}
}
The error: https://snag.gy/PtNeSs.jpg
Error: template instance
vibe.web.web.render!"home.dt".render!("pages",
On Sunday, 26 February 2017 at 11:18:12 UTC, Mike Parker wrote:
On Sunday, 26 February 2017 at 11:05:42 UTC, Guenter wrote:
Hi,
i do not understand where I am wrong in this code. I seems
there is a missing constructor, but i have no idea where.
@property A_t ext() { return fext; }
On Sunday, 26 February 2017 at 11:15:21 UTC, Eugene Wissner wrote:
you return a copy of A_t and then change this copy instead of
the real B_t member.
Thank you.
Guenter
https://issues.dlang.org/show_bug.cgi?id=8471
greenify changed:
What|Removed |Added
Status|RESOLVED|REOPENED
CC|
Am Sat, 25 Feb 2017 21:19:59 +
schrieb Stefan Koch :
> On Saturday, 25 February 2017 at 21:12:13 UTC, Timon Gehr wrote:
>
> >
> > I know my claim seems insane, but it is actually true.
> >
> > http://forum.dlang.org/post/lr4kek$2rd$1...@digitalmars.com
>
> The
On Sunday, 26 February 2017 at 11:05:42 UTC, Guenter wrote:
Hi,
i do not understand where I am wrong in this code. I seems
there is a missing constructor, but i have no idea where.
@property A_t ext() { return fext; }
Structs in D are value types, so you're returning a copy of fext
On Sunday, 26 February 2017 at 11:05:42 UTC, Guenter wrote:
Hi,
i do not understand where I am wrong in this code. I seems
there is a missing constructor, but i have no idea where.
module main;
import std.stdio;
struct A_t
{
int fvalue;
A_t opCall()
{
return this;
};
Hi,
i do not understand where I am wrong in this code. I seems there
is a missing constructor, but i have no idea where.
module main;
import std.stdio;
struct A_t
{
int fvalue;
A_t opCall()
{
return this;
};
@property int value () { return fvalue; }
@property void
On Sunday, 26 February 2017 at 10:34:07 UTC, Patrick Schluter
wrote:
On Sunday, 26 February 2017 at 09:53:42 UTC, Seb wrote:
On Sunday, 26 February 2017 at 09:41:46 UTC, rumbu wrote:
[...]
If you want a module with a lot less features, the low-level
core.checkedint might be interesting for
On Sunday, 26 February 2017 at 09:53:42 UTC, Seb wrote:
On Sunday, 26 February 2017 at 09:41:46 UTC, rumbu wrote:
[...]
If you want a module with a lot less features, the low-level
core.checkedint might be interesting for you:
http://dlang.org/phobos/core_checkedint.html
[...]
It is
https://issues.dlang.org/show_bug.cgi?id=17226
j...@red.email.ne.jp changed:
What|Removed |Added
Keywords||EH
CC|
On Sunday, 26 February 2017 at 09:41:46 UTC, rumbu wrote:
On Saturday, 25 February 2017 at 15:21:10 UTC, Andrei
Alexandrescu wrote:
On 02/25/2017 10:17 AM, rumbu wrote:
A lot of bloat code for something extremely basic.
If you can do it with less code, I'm all ears. Thanks! --
Andrei
This
On Saturday, 25 February 2017 at 15:21:10 UTC, Andrei
Alexandrescu wrote:
On 02/25/2017 10:17 AM, rumbu wrote:
A lot of bloat code for something extremely basic.
If you can do it with less code, I'm all ears. Thanks! -- Andrei
This was not about coding skills, was about usability. The
https://issues.dlang.org/show_bug.cgi?id=17226
Jack Stouffer changed:
What|Removed |Added
Hardware|x86_64 |All
https://issues.dlang.org/show_bug.cgi?id=17226
Jack Stouffer changed:
What|Removed |Added
CC||j...@jackstouffer.com
On Sun, Feb 26, 2017 at 10:37 AM, Nicholas Wilson via
Digitalmars-d-announce wrote:
> DCompute is an extension to LDC capable of generating code (with no language
> changes*) for NVIDIA's NVPTX for use with CUDA, SPIRV for use with the
> OpenCL runtime, and
DCompute is an extension to LDC capable of generating code (with
no language changes*) for NVIDIA's NVPTX for use with CUDA, SPIRV
for use with the OpenCL runtime, and of course the host, all at
the same time! It is also possible to share implementation of
algorithms across the host and
Seb wrote:
On Sunday, 26 February 2017 at 06:34:07 UTC, Ali Çehreli wrote:
So, obviously, assert message generation is not lazy. This is a WAT!
for me but perhaps there is a good reason for it.
FWIW imho we shouldn't need to write such messages at all.
It shouldn't be to difficult to lower
https://issues.dlang.org/show_bug.cgi?id=17227
--- Comment #1 from Walter Bright ---
Regression introduced by:
https://github.com/dlang/phobos/pull/5083
--
On Sunday, 26 February 2017 at 06:02:59 UTC, Nick Sabalausky
(Abscissa) wrote:
On 02/26/2017 12:17 AM, Ola Fosheim Grostad wrote:
On Saturday, 25 February 2017 at 22:37:15 UTC, Chris Wright
wrote:
The undefined behavior is what happens after the would-be
assertion
failure occurs. The compiler
https://issues.dlang.org/show_bug.cgi?id=17227
Issue ID: 17227
Summary: deprecation messages building Phobos
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority:
70 matches
Mail list logo