On 2016-11-21 22:32, mab-on wrote:
On Monday, 21 November 2016 at 20:56:41 UTC, Karabuta wrote:
There is a package in the dub registry called commando
(https://code.dlang.org/packages/commando) for that.
Hm.. maybe i explained it wrong.
My problem is not to pass a argument to the
On Sunday, 20 November 2016 at 17:47:50 UTC, MGW wrote:
core.exception.OutOfMemoryError@src\core\exception.d(693):
Memory allocation failed
Simple program and error. Why? Windows 7 (32) dmd 2.072.0
Making a 100 million bytes array by appending one byte at
https://github.com/libmir/mir-random
# mir-random
Dlang Random Number Generators
Comparison with Phobos
# Generators
- `opCall` API instead of range interface is used (similar to
C++)
- No default and copy constructors are allowed for generators.
- 64-bit Mt19937 initialization is
https://issues.dlang.org/show_bug.cgi?id=12429
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
On 22/11/2016 5:46 AM, Johan Engelen wrote:
Hi all,
2.071 introduced a significant ABI change: the layout of classes that
inherit from interfaces has changed.
Unfortunately, this is not very prominently featured in the release notes:
https://dlang.org/changelog/2.071.0.html
(try to find it)
https://issues.dlang.org/show_bug.cgi?id=10447
Walter Bright changed:
What|Removed |Added
Keywords||pull
--- Comment
https://issues.dlang.org/show_bug.cgi?id=13357
--- Comment #2 from Walter Bright ---
At least it doesn't seg fault anymore.
--
https://issues.dlang.org/show_bug.cgi?id=8047
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=5028
Xiao Di Guan changed:
What|Removed |Added
CC||x...@puxlit.net
--
On Tuesday, 22 November 2016 at 00:41:42 UTC, Meta wrote:
You could write a little script to generate an increasing
version and save it in a file. Then with Dub you can use a
pre-build or pre-generate command to call that script, and in
your D code do `enum version = import("version.txt");`.
On Monday, 21 November 2016 at 21:32:16 UTC, mab-on wrote:
On Monday, 21 November 2016 at 20:56:41 UTC, Karabuta wrote:
There is a package in the dub registry called commando
(https://code.dlang.org/packages/commando) for that.
Hm.. maybe i explained it wrong.
My problem is not to pass a
Dne 21.11.2016 v 13:44 Jonathan M Davis via Digitalmars-d-learn napsal(a):
... it's easy enough to just create a
template to do the same thing, it's not worth adding to the language.
That's a problem. I belive there is a lot of things which are easy to
add by some kind of magic (template or
On Monday, 21 November 2016 at 12:44:47 UTC, Jonathan M Davis
wrote:
(it might have even had a PR which was rejected), and
presumably, Ketmar added it to his own compiler, because he
liked the feature.
exactly. it is the old patch from Kenji. the patch even survived
C++ -> D transition, 'cause
On Monday, 21 November 2016 at 23:49:27 UTC, burjui wrote:
Though I would argue that it's better to use '_' instead of '$'
to denote deduced fixed size, it seems more obvious to me:
int[_] array = [ 1, 2, 3 ];
alas, `_` is valid identifier, so `enum _ = 42; int[_] a;` is
perfectly valid.
https://issues.dlang.org/show_bug.cgi?id=16681
Walter Bright changed:
What|Removed |Added
CC|
On 11/20/2016 12:41 PM, ag0aep6g via Digitalmars-d-learn wrote:
On 11/20/2016 09:09 PM, Charles Hixson via Digitalmars-d-learn wrote:
Thinking it over a bit more, the item returned would need to be a
struct, but the struct wouldn't contain the array, it would just contain
a reference to the
On Monday, 21 November 2016 at 23:46:41 UTC, Basile B. wrote:
On Monday, 21 November 2016 at 21:32:16 UTC, mab-on wrote:
What i want is a clever mechanism to store the SemVer (or
Commit-ID) in the binary at compiletime - automatically.
Otherwise i have to think to update a const in the code
On Monday, 21 November 2016 at 12:44:47 UTC, Jonathan M Davis
wrote:
Someone could create a DIP for it though and argue for it. If
they did that convincingly enough, maybe it would become a
feature. I suspect that the response will be though that since
it's easy enough to just create a
On Monday, 21 November 2016 at 21:32:16 UTC, mab-on wrote:
What i want is a clever mechanism to store the SemVer (or
Commit-ID) in the binary at compiletime - automatically.
Otherwise i have to think to update a const in the code every
time i build a new Version.
enum versionData =
On 11/21/2016 11:16 AM, Kagamin wrote:
Can't find a function for it.
Here is a draft adapted from the following page
http://stackoverflow.com/questions/14872499/is-there-an-equivalent-to-muldiv-for-linux
This draft works for signed types:
T mulDiv(T)(T number, T numerator, T denominator) {
On Monday, 21 November 2016 at 20:56:41 UTC, Karabuta wrote:
There is a package in the dub registry called commando
(https://code.dlang.org/packages/commando) for that.
Hm.. maybe i explained it wrong.
My problem is not to pass a argument to the application.
What i want is a clever
https://issues.dlang.org/show_bug.cgi?id=16048
--- Comment #2 from Andrej Mitrovic ---
https://github.com/dlang/phobos/pull/4917
--
https://issues.dlang.org/show_bug.cgi?id=16048
--- Comment #1 from Andrej Mitrovic ---
In fact duplicate long options aren't detected either.
--
https://issues.dlang.org/show_bug.cgi?id=16048
Andrej Mitrovic changed:
What|Removed |Added
Summary|std.getopt: duplicated |std.getopt:
https://issues.dlang.org/show_bug.cgi?id=16601
Andrej Mitrovic changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=16679
Walter Bright changed:
What|Removed |Added
Status|REOPENED|RESOLVED
On Monday, 21 November 2016 at 20:59:32 UTC, Timon Gehr wrote:
How about this alternative ("in" and "out" blocks inside
function body):
void foo(int a)
{
in
{
assert (a > 0);
}
out
{
(ret) assert(ret > 0);
}
// body code
return a;
}
or for
On 19.11.2016 22:16, Dicebot wrote:
DIP 1003 is merged to the queue and open for public informal feedback.
PR: https://github.com/dlang/DIPs/pull/48
Initial merged document:
https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md
If you want the change to be approved and have ideas how to
On 21.11.2016 17:55, Piotrek wrote:
On Saturday, 19 November 2016 at 21:16:15 UTC, Dicebot wrote:
DIP 1003 is merged to the queue and open for public informal feedback.
PR: https://github.com/dlang/DIPs/pull/48
Initial merged document:
https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md
On Monday, 21 November 2016 at 19:33:54 UTC, mab-on wrote:
I would like to implement a "--version" switch for a command
line application.
Is there a clever way to do that without using the brain on
every build? :)
A dub-solution would be nice - but i didnt find it.
There is a package in the
On Monday, 21 November 2016 at 18:39:26 UTC, Andrei Alexandrescu
wrote:
On 11/21/2016 01:18 PM, jmh530 wrote:
I would just generate a bunch of integers randomly and use
that, but I
don't know if you specifically need to work with strings.
I have that, too, but was looking for some real data
First, a reminder that we have this great resource of D idioms:
https://p0nce.github.io/d-idioms/#Rvalue-references:-Understanding-auto-ref-and-then-not-using-it
The link above has an idiom of mixing in a byRef() member function to a
struct. I think I've simplified the template by moving
On 11/21/2016 7:20 AM, ixid wrote:
On Sunday, 20 November 2016 at 22:34:26 UTC, Walter Bright wrote:
On 11/14/2016 1:39 AM, qznc wrote:
On Monday, 14 November 2016 at 06:57:07 UTC, Walter Bright wrote:
· Follow our YouTube channel.
So, there will be a recording? Great!
Unfortunately, the
I would like to implement a "--version" switch for a command line
application.
Is there a clever way to do that without using the brain on every
build? :)
A dub-solution would be nice - but i didnt find it.
Can't find a function for it.
On Monday, 21 November 2016 at 16:01:27 UTC, Antonio Corbi wrote:
Maybe some ideas could be taken from here:
https://wiki.debconf.org/wiki/Videoteam
The only thing they don't seem to do that I'd additionally
recommend is take another separate audio recording using a
separate voice recorder.
On Monday, 21 November 2016 at 19:16:07 UTC, deadalnix wrote:
On Monday, 21 November 2016 at 01:20:06 UTC, deadalnix wrote:
This doesn't affect installation. But nothing link anymore.
Ho Hi !
The .deb do NOT work. Can we get an hotfix out there ?
Which deb does not work where ?
I will try
On Sunday, 20 November 2016 at 09:02:30 UTC, Stefan Koch wrote:
On Saturday, 19 November 2016 at 11:22:18 UTC, Stefan Koch
wrote:
[...]
I would buy you a beer but the Internet is in the way.
On Monday, 21 November 2016 at 19:11:58 UTC, Anonymouse wrote:
On Sunday, 20 November 2016 at 09:02:30 UTC, Stefan Koch wrote:
On Saturday, 19 November 2016 at 11:22:18 UTC, Stefan Koch
wrote:
[...]
I would buy you a beer but the Internet is in the way.
I appreciate the offer.
During the
On Monday, 21 November 2016 at 01:20:06 UTC, deadalnix wrote:
This doesn't affect installation. But nothing link anymore.
Ho Hi !
The .deb do NOT work. Can we get an hotfix out there ?
https://issues.dlang.org/show_bug.cgi?id=16381
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=16381
--- Comment #10 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/1429da40f6bd24c702eb4a5c0685faa0addfcb39
fix Issue 16381 - Wrapping a float4 array leads to segfault
https://issues.dlang.org/show_bug.cgi?id=16116
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=16116
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/089cea83dd054f78db9e0145c4bef6d298f165a3
fix Issue 16116 - Infinite loop on (somewhat complex) simd
Hi all
Here is my small project - ability to move some code optimization
and generation to runtime.
Any function can be marked with special attribute and llvm
bitcode for it will saved in binary.
Then during runtime it will be optimized and compiled (and it can
use best available cpu
On Monday, 21 November 2016 at 17:26:37 UTC, Jonathan M Davis
wrote:
[...]
Thanks Jonathan for the explanation. The cast works fine but
feels "unsafe".
I will wait for the next version.
Stefan
https://issues.dlang.org/show_bug.cgi?id=16710
Issue ID: 16710
Summary: 18003819788 Quickbooks Support phone Number-Quickbooks
Tech Suppo
Product: D
Version: D2
Hardware: x86
OS: Windows
Status:
On 11/21/2016 01:18 PM, jmh530 wrote:
I would just generate a bunch of integers randomly and use that, but I
don't know if you specifically need to work with strings.
I have that, too, but was looking for some real data as well. It would
be a nice addition. -- Andrei
On Monday, 21 November 2016 at 17:39:40 UTC, Andrei Alexandrescu
wrote:
Hey folks, I'm working on a paper for fast median computation
and https://issues.dlang.org/show_bug.cgi?id=16517 came to
mind. I see the Google ngram corpus has occurrences of n-grams
per year. Is data aggregated for all
https://issues.dlang.org/show_bug.cgi?id=16709
Timothee Cour changed:
What|Removed |Added
Keywords|diagnostic |
On Monday, 21 November 2016 at 17:26:37 UTC, Jonathan M Davis
wrote:
On Monday, November 21, 2016 17:01:56 Stefan via
Digitalmars-d-learn wrote:
[...]
[...]
there was an overload for toUpper that took string as an
optimization but that inadvertently meant that types that
implicitly converted
On Monday, 21 November 2016 at 17:35:14 UTC, Meta wrote:
On Monday, 21 November 2016 at 16:44:34 UTC, Kagamin wrote:
https://github.com/dlang/tools/commit/5ed4f176f41b7559c64cf525c07ccf13ca3a5160
this?
That seems like a probable cause, but where is cstream being
referenced? I did github
https://issues.dlang.org/show_bug.cgi?id=16709
Timothee Cour changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=16709
Vladimir Panteleev changed:
What|Removed |Added
Hardware|x86 |All
https://issues.dlang.org/show_bug.cgi?id=16709
Vladimir Panteleev changed:
What|Removed |Added
Keywords||diagnostic
Hey folks, I'm working on a paper for fast median computation and
https://issues.dlang.org/show_bug.cgi?id=16517 came to mind. I see the
Google ngram corpus has occurrences of n-grams per year. Is data
aggregated for all years available somewhere? I'd like to compute e.g.
"the word (1-gram)
https://issues.dlang.org/show_bug.cgi?id=16709
Issue ID: 16709
Summary: Error: common.to at common.d conflicts with common.to
at common.d
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status:
On Monday, 21 November 2016 at 16:44:34 UTC, Kagamin wrote:
https://github.com/dlang/tools/commit/5ed4f176f41b7559c64cf525c07ccf13ca3a5160
this?
That seems like a probable cause, but where is cstream being
referenced? I did github search for cstream and all it came up
with were references
On Monday, November 21, 2016 17:01:56 Stefan via Digitalmars-d-learn wrote:
> Before 2.0.72.0:
>
> import std.algorithm : map, joiner;
> import std.uni : toUpper;
> import std.traits : EnumMembers;
> import std.stdio : writeln;
> import std.conv: to;
>
> private enum Color : string {
> RED =
Before 2.0.72.0:
import std.algorithm : map, joiner;
import std.uni : toUpper;
import std.traits : EnumMembers;
import std.stdio : writeln;
import std.conv: to;
private enum Color : string {
RED = "red",
BLUE = "blue",
YELLOW = "yellow"
}
void main(string[] args) {
writeln( [
On Saturday, 19 November 2016 at 21:16:15 UTC, Dicebot wrote:
DIP 1003 is merged to the queue and open for public informal
feedback.
PR: https://github.com/dlang/DIPs/pull/48
Initial merged document:
https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md
If you want the change to be
On Monday, 21 November 2016 at 16:37:32 UTC, Kagamin wrote:
Anything in .data and .bss sections and stack. See
https://issues.dlang.org/show_bug.cgi?id=15723
Ok, not an actual reference then, but a false pointer.
Hi all,
2.071 introduced a significant ABI change: the layout of
classes that inherit from interfaces has changed.
Unfortunately, this is not very prominently featured in the
release notes:
https://dlang.org/changelog/2.071.0.html
(try to find it)
My request is to add ABI changes to the
https://github.com/dlang/tools/commit/5ed4f176f41b7559c64cf525c07ccf13ca3a5160
this?
On Monday, 21 November 2016 at 16:24:38 UTC, Q. Schroll wrote:
Why don't lambdas cast to a delegate if they are of type R
function(Args)? I don't see any reason to that; a lambda should
be a delegate type by default, and a function only as a special
guarantee/optimization. It just makes them
On Monday, 21 November 2016 at 16:37:41 UTC, Johan Engelen wrote:
I think there is some confusion: a D-CTFE C-compiler is exactly
what my OP was about ;)
Not really true, my OP was about adding a backend to a compiler
that compiles C to another language. The new backend should
output D
On Monday, 21 November 2016 at 12:59:26 UTC, John Colvin wrote:
mixin(import("myCode.d"));
Even better because it doesn't have to output the program at
runtime, the generated executable *is* the compiled code ;). I
guess that's just the same as #include though
If you want to compile to
On Monday, 21 November 2016 at 11:22:40 UTC, ag0aep6g wrote:
Who could "someone" be? It's a self-contained example, and buf
doesn't leave the test function.
Anything in .data and .bss sections and stack. See
https://issues.dlang.org/show_bug.cgi?id=15723
As for GC compaction:
On 11/21/16 11:24 AM, Q. Schroll wrote:
Why don't lambdas cast to a delegate if they are of type R
function(Args)? I don't see any reason to that; a lambda should be a
delegate type by default, and a function only as a special
guarantee/optimization. It just makes them cumbersome to use with
Why don't lambdas cast to a delegate if they are of type R
function(Args)? I don't see any reason to that; a lambda should
be a delegate type by default, and a function only as a special
guarantee/optimization. It just makes them cumbersome to use with
toDelegate.
Probably there is a good
On Monday, 21 November 2016 at 15:20:49 UTC, ixid wrote:
On Sunday, 20 November 2016 at 22:34:26 UTC, Walter Bright
wrote:
On 11/14/2016 1:39 AM, qznc wrote:
[...]
Unfortunately, the audio was lost 18 minutes in. Looks to be
not worth posting. I do have the slides up, though.
On Monday, 21 November 2016 at 12:42:34 UTC, ZombineDev wrote:
That was a proposal for D that was rejected in the last moment
by Andrei. My guess is that ketmar's modified dmd has that
feature implemented.
exactly. it is handy feature, so i used to it. and it slept into
code (i usually test
On Monday, 21 November 2016 at 13:22:57 UTC, Paolo Invernizzi
wrote:
I'm not sure if it's the same as #15064 bug:
import std.array, std.range, std.algorithm;
immutable static foo = ["a", "b", "c"];
auto bar(R)(R r)
{
string s = r[1];
return s;
}
immutable static res =
On Monday, 21 November 2016 at 10:51:01 UTC, Stefan Koch wrote:
When writing do { ... } while(true/false)
The IR generated would tell the interpreter to evaluate the
condition flag.
This Bug is now fixed.
At the same time a superfluous jump could be eliminated.
I have also fixed another bug
On Sunday, 20 November 2016 at 22:34:26 UTC, Walter Bright wrote:
On 11/14/2016 1:39 AM, qznc wrote:
On Monday, 14 November 2016 at 06:57:07 UTC, Walter Bright
wrote:
· Follow our YouTube channel.
So, there will be a recording? Great!
Unfortunately, the audio was lost 18 minutes in. Looks
I'm having trouble evaluating basic code with rdmd. It's
complaining that std/cstream.d does not exist. I checked, and
surely enough, it doesn't. My question is why is it looking for
cstream.d? Is rdmd out of date, or is there a problem with my dmd
install? I am on OSX 10.12.1 (Sierra) and
https://issues.dlang.org/show_bug.cgi?id=16708
ag0ae...@gmail.com changed:
What|Removed |Added
CC||ag0ae...@gmail.com
--- Comment #2 from
https://issues.dlang.org/show_bug.cgi?id=16680
Steven Schveighoffer changed:
What|Removed |Added
Summary|dmd doesn't use dritime |dmd doesn't use
https://issues.dlang.org/show_bug.cgi?id=16708
Eyal Lotem changed:
What|Removed |Added
CC||eyal.lo...@gmail.com
---
https://issues.dlang.org/show_bug.cgi?id=16708
ZombineDev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=16708
Tomer Filiba changed:
What|Removed |Added
Keywords||industry
--
https://issues.dlang.org/show_bug.cgi?id=16708
Issue ID: 16708
Summary: opAssign and struct-member padding break comparison
and invariants
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status:
https://issues.dlang.org/show_bug.cgi?id=16680
ZombineDev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=15064
Paolo Invernizzi changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=6125
Lucia Cojocaru changed:
What|Removed |Added
CC|
I'm not sure if it's the same as #15064 bug:
import std.array, std.range, std.algorithm;
immutable static foo = ["a", "b", "c"];
auto bar(R)(R r)
{
string s = r[1];
return s;
}
immutable static res = foo.enumerate.map!bar().array;
std/typecons.d(526): Error:
On Monday, 21 November 2016 at 12:44:47 UTC, Jonathan M Davis
wrote:
On Monday, November 21, 2016 12:08:30 Patric Dexheimer via
Digitalmars-d- learn wrote:
No. D doesn't have that, though it's easy enough to do the same
thing with a helper template. However, Ketmar seems to like to
use his own
On Monday, 21 November 2016 at 10:41:27 UTC, Johan Engelen wrote:
In LLVMweekly [1], I read the following:
"You may be be interested, amazed, and/or horrified to learn of
constexpr-8cc [2]. It provides a compile-time C compiler
implemented as C++14 constant expressions."
The constexpr
On Monday, November 21, 2016 12:08:30 Patric Dexheimer via Digitalmars-d-
learn wrote:
> On Saturday, 19 November 2016 at 00:47:00 UTC, ketmar wrote:
> > On Saturday, 19 November 2016 at 00:28:36 UTC, Stefan Koch
> >
> > wrote:
> >> Please don't post non-d.
> >
> > it slipped accidentally, sorry.
On Monday, 21 November 2016 at 12:08:30 UTC, Patric Dexheimer
wrote:
On Saturday, 19 November 2016 at 00:47:00 UTC, ketmar wrote:
On Saturday, 19 November 2016 at 00:28:36 UTC, Stefan Koch
wrote:
Please don't post non-d.
it slipped accidentally, sorry. ;-)
for OP: `uint[2] a = [42, 69];` is
On Sunday, 20 November 2016 at 08:59:19 UTC, Tourist wrote:
Please implement the suggestion. Thanks.
http://imgur.com/X7fJLpF
I agree. This forum and the wiki could also use a better font as
well. It looks ugly at the moment.
On Saturday, 19 November 2016 at 00:47:00 UTC, ketmar wrote:
On Saturday, 19 November 2016 at 00:28:36 UTC, Stefan Koch
wrote:
Please don't post non-d.
it slipped accidentally, sorry. ;-)
for OP: `uint[2] a = [42, 69];` is the correct syntax.
"uint[$] a = [42, 69];"
haha for a moment I
On Monday, 21 November 2016 at 10:25:17 UTC, Satoshi wrote:
Hello,
how can calling method on local struct throw "null this"?
struct is initialized by .init and have default values.
struct Foo {
Bar bar;
static struct Bar {
float x, y, z;
}
Bar getBar() {
return bar;
}
}
Am 19.11.2016 um 22:16 schrieb Dicebot:
DIP 1003 is merged to the queue and open for public informal feedback.
PR: https://github.com/dlang/DIPs/pull/48
Initial merged document:
https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md
If you want the change to be approved and have ideas how
On 11/21/2016 08:27 AM, Stefan Koch wrote:
Someone could still be hanging on to an old Reference of buf.
Who could "someone" be? It's a self-contained example, and buf doesn't
leave the test function.
On Monday, 21 November 2016 at 10:41:27 UTC, Johan Engelen wrote:
In LLVMweekly [1], I read the following:
"You may be be interested, amazed, and/or horrified to learn of
constexpr-8cc [2]. It provides a compile-time C compiler
implemented as C++14 constant expressions."
The constexpr
On Sunday, 20 November 2016 at 13:19:41 UTC, qznc wrote:
For mobile I would prefer it to use the whole width for the
title and convert the other two columns into "subtitle text"
below.
+1, that'd avoid the other columns taking up too much empty
vertical space vs. if the title column was
On Sunday, 20 November 2016 at 16:27:24 UTC, Stefan Koch wrote:
On Sunday, 20 November 2016 at 15:37:50 UTC, Stefan Koch wrote:
Furthermore I need to extend my bc_tests. to make sure the
interpretation is the same.
Such that this bug cannot happen again.
before.
I have extended my test-suite
https://issues.dlang.org/show_bug.cgi?id=16116
Walter Bright changed:
What|Removed |Added
Keywords||pull
On Saturday, 19 November 2016 at 21:16:15 UTC, Dicebot wrote:
DIP 1003 is merged to the queue and open for public informal
feedback.
Perhaps a good idea for D3...
1 - 100 of 110 matches
Mail list logo