Re: implementing --version?

2016-11-21 Thread Jacob Carlborg via Digitalmars-d-learn
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

Re: Memory allocation failed. Why?

2016-11-21 Thread thedeemon via Digitalmars-d-learn
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

Mir Random [WIP]

2016-11-21 Thread Ilya Yaroshenko via Digitalmars-d
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

[Issue 12429] SIMD vector type errors are too eager

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12429 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

Re: Request: feature ABI changes more prominently in release notes

2016-11-21 Thread rikki cattermole via Digitalmars-d
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)

[Issue 10447] Refused increment of double2 with a immutable(double2)

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10447 Walter Bright changed: What|Removed |Added Keywords||pull --- Comment

[Issue 13357] [ICE] Segfault on comparison of rvalue __vector and array

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13357 --- Comment #2 from Walter Bright --- At least it doesn't seg fault anymore. --

[Issue 8047] important opcodes missing from core/simd.d

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8047 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5028] Problem with named mixins in base class and derived class

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5028 Xiao Di Guan changed: What|Removed |Added CC||x...@puxlit.net --

Re: implementing --version?

2016-11-21 Thread Meta via Digitalmars-d-learn
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");`.

Re: implementing --version?

2016-11-21 Thread Meta via Digitalmars-d-learn
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

Re: the best language I have ever met(?)

2016-11-21 Thread Daniel Kozak via Digitalmars-d-learn
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

Re: the best language I have ever met(?)

2016-11-21 Thread ketmar via Digitalmars-d-learn
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

Re: the best language I have ever met(?)

2016-11-21 Thread ketmar via Digitalmars-d-learn
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.

[Issue 16681] ICE 1662

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16681 Walter Bright changed: What|Removed |Added CC|

Re: shared arrray problem

2016-11-21 Thread Charles Hixson via Digitalmars-d-learn
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

Re: implementing --version?

2016-11-21 Thread Basile B. via Digitalmars-d-learn
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

Re: the best language I have ever met(?)

2016-11-21 Thread burjui via Digitalmars-d-learn
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

Re: implementing --version?

2016-11-21 Thread Basile B. via Digitalmars-d-learn
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 =

Re: How to muldiv in D?

2016-11-21 Thread Ali Çehreli via Digitalmars-d-learn
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) {

Re: implementing --version?

2016-11-21 Thread mab-on via Digitalmars-d-learn
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

[Issue 16048] std.getopt: duplicated options are not detected

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16048 --- Comment #2 from Andrej Mitrovic --- https://github.com/dlang/phobos/pull/4917 --

[Issue 16048] std.getopt: duplicated options are not detected

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16048 --- Comment #1 from Andrej Mitrovic --- In fact duplicate long options aren't detected either. --

[Issue 16048] std.getopt: duplicated options are not detected

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16048 Andrej Mitrovic changed: What|Removed |Added Summary|std.getopt: duplicated |std.getopt:

[Issue 16601] No way to configure number of worker threads for default taskPool

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16601 Andrej Mitrovic changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 16679] prefetch on old pentium d results in an illegal instruction

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16679 Walter Bright changed: What|Removed |Added Status|REOPENED|RESOLVED

Re: DIP 1003: remove `body` as a keyword

2016-11-21 Thread Piotrek via Digitalmars-d-announce
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

Re: DIP 1003: remove `body` as a keyword

2016-11-21 Thread Timon Gehr via Digitalmars-d-announce
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

Re: DIP 1003: remove `body` as a keyword

2016-11-21 Thread Timon Gehr via Digitalmars-d-announce
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

Re: implementing --version?

2016-11-21 Thread Karabuta via Digitalmars-d-learn
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

Re: [OT] All your medians are belong to me

2016-11-21 Thread Patrick Schluter via Digitalmars-d
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

A simplification of the RvalueRef idiom

2016-11-21 Thread Ali Çehreli via Digitalmars-d-learn
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

Re: Nov 16 - Memory Safety and the D Programming Language

2016-11-21 Thread Walter Bright via Digitalmars-d-announce
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

implementing --version?

2016-11-21 Thread mab-on via Digitalmars-d-learn
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.

How to muldiv in D?

2016-11-21 Thread Kagamin via Digitalmars-d-learn
Can't find a function for it.

Re: Nov 16 - Memory Safety and the D Programming Language

2016-11-21 Thread Wyatt via Digitalmars-d-announce
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.

Re: What is going on with the ubuntu/debian debacle ?

2016-11-21 Thread Stefan Koch via Digitalmars-d
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

Re: CTFE Status

2016-11-21 Thread Anonymouse via Digitalmars-d
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.

Re: CTFE Status

2016-11-21 Thread Stefan Koch via Digitalmars-d
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

Re: What is going on with the ubuntu/debian debacle ?

2016-11-21 Thread deadalnix via Digitalmars-d
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 ?

[Issue 16381] Wrapping a float4 array leads to segfault.

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16381 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 16381] Wrapping a float4 array leads to segfault.

2016-11-21 Thread via Digitalmars-d-bugs
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

[Issue 16116] Infinite loop on (somewhat complex) simd math

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16116 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 16116] Infinite loop on (somewhat complex) simd math

2016-11-21 Thread via Digitalmars-d-bugs
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

Dlang dynamic compilation

2016-11-21 Thread Ivan Butygin via Digitalmars-d-announce
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

Re: Converting all enum members to a string fails with version 2.0.72.0

2016-11-21 Thread Stefan via Digitalmars-d-learn
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

[Issue 16710] New: 18003819788 Quickbooks Support phone Number-Quickbooks Tech Suppo

2016-11-21 Thread via Digitalmars-d-bugs
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:

Re: [OT] All your medians are belong to me

2016-11-21 Thread Andrei Alexandrescu via Digitalmars-d
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

Re: [OT] All your medians are belong to me

2016-11-21 Thread jmh530 via Digitalmars-d
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

[Issue 16709] Error: common.to at common.d conflicts with common.to at common.d

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16709 Timothee Cour changed: What|Removed |Added Keywords|diagnostic |

Re: Converting all enum members to a string fails with version 2.0.72.0

2016-11-21 Thread Basile B. via Digitalmars-d-learn
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

Re: RDMD can't eval code because of missing cstream module

2016-11-21 Thread Meta via Digitalmars-d-learn
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

[Issue 16709] Error: common.to at common.d conflicts with common.to at common.d

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16709 Timothee Cour changed: What|Removed |Added CC|

[Issue 16709] Error: common.to at common.d conflicts with common.to at common.d

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16709 Vladimir Panteleev changed: What|Removed |Added Hardware|x86 |All

[Issue 16709] Error: common.to at common.d conflicts with common.to at common.d

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16709 Vladimir Panteleev changed: What|Removed |Added Keywords||diagnostic

[OT] All your medians are belong to me

2016-11-21 Thread Andrei Alexandrescu via Digitalmars-d
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)

[Issue 16709] New: Error: common.to at common.d conflicts with common.to at common.d

2016-11-21 Thread via Digitalmars-d-bugs
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:

Re: RDMD can't eval code because of missing cstream module

2016-11-21 Thread Meta via Digitalmars-d-learn
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

Re: Converting all enum members to a string fails with version 2.0.72.0

2016-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
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 =

Converting all enum members to a string fails with version 2.0.72.0

2016-11-21 Thread Stefan via Digitalmars-d-learn
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( [

Re: DIP 1003: remove `body` as a keyword

2016-11-21 Thread Piotrek via Digitalmars-d-announce
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

Re: Memory allocation failed. Why?

2016-11-21 Thread ag0aep6g via Digitalmars-d-learn
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.

Request: feature ABI changes more prominently in release notes

2016-11-21 Thread Johan Engelen via Digitalmars-d
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

Re: RDMD can't eval code because of missing cstream module

2016-11-21 Thread Kagamin via Digitalmars-d-learn
https://github.com/dlang/tools/commit/5ed4f176f41b7559c64cf525c07ccf13ca3a5160 this?

Re: Why don't Function Lambdas Cast to Delegate?

2016-11-21 Thread Rene Zwanenburg via Digitalmars-d-learn
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

Re: CTFE C compiler

2016-11-21 Thread Johan Engelen via Digitalmars-d
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

Re: CTFE C compiler

2016-11-21 Thread Johan Engelen via Digitalmars-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

Re: Memory allocation failed. Why?

2016-11-21 Thread Kagamin via Digitalmars-d-learn
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:

Re: Why don't Function Lambdas Cast to Delegate?

2016-11-21 Thread Steven Schveighoffer via Digitalmars-d-learn
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 Function Lambdas Cast to Delegate?

2016-11-21 Thread Q. Schroll via Digitalmars-d-learn
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

Re: Nov 16 - Memory Safety and the D Programming Language

2016-11-21 Thread Antonio Corbi via Digitalmars-d-announce
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.

Re: the best language I have ever met(?)

2016-11-21 Thread ketmar via Digitalmars-d-learn
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

Re: Enumerate CTFE bug...

2016-11-21 Thread Stefan Koch via Digitalmars-d-learn
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 =

Re: CTFE Status

2016-11-21 Thread Stefan Koch via Digitalmars-d
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

Re: Nov 16 - Memory Safety and the D Programming Language

2016-11-21 Thread ixid via Digitalmars-d-announce
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

RDMD can't eval code because of missing cstream module

2016-11-21 Thread Meta via Digitalmars-d-learn
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

[Issue 16708] opAssign and struct-member padding break comparison and invariants

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16708 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #2 from

[Issue 16680] dmd doesn't use druntime optimized versions of subtraction array operations

2016-11-21 Thread via Digitalmars-d-bugs
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

[Issue 16708] opAssign and struct-member padding break comparison and invariants

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16708 Eyal Lotem changed: What|Removed |Added CC||eyal.lo...@gmail.com ---

[Issue 16708] opAssign and struct-member padding break comparison and invariants

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16708 ZombineDev changed: What|Removed |Added CC|

[Issue 16708] opAssign and struct-member padding break comparison and invariants

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16708 Tomer Filiba changed: What|Removed |Added Keywords||industry --

[Issue 16708] New: opAssign and struct-member padding break comparison and invariants

2016-11-21 Thread via Digitalmars-d-bugs
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:

[Issue 16680] dmd doesn't use dritime optimized versions of substraction array operations

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16680 ZombineDev changed: What|Removed |Added CC|

[Issue 15064] [CTFE] std.range.enumerate is not CTFE-able

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15064 Paolo Invernizzi changed: What|Removed |Added CC|

[Issue 6125] to!string doesn't throw on invalid UTF sequence

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6125 Lucia Cojocaru changed: What|Removed |Added CC|

Enumerate CTFE bug...

2016-11-21 Thread Paolo Invernizzi via Digitalmars-d-learn
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:

Re: the best language I have ever met(?)

2016-11-21 Thread Namespace via Digitalmars-d-learn
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

Re: CTFE C compiler

2016-11-21 Thread John Colvin via Digitalmars-d
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

Re: the best language I have ever met(?)

2016-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
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.

Re: the best language I have ever met(?)

2016-11-21 Thread ZombineDev via Digitalmars-d-learn
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

Re: Don't truncate forum titles, use multiple lines instead

2016-11-21 Thread Swoorup Joshi via Digitalmars-d
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.

Re: the best language I have ever met(?)

2016-11-21 Thread Patric Dexheimer via Digitalmars-d-learn
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

Re: null this

2016-11-21 Thread Satoshi via Digitalmars-d-learn
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; } }

Re: DIP 1003: remove `body` as a keyword

2016-11-21 Thread Sönke Ludwig via Digitalmars-d-announce
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

Re: Memory allocation failed. Why?

2016-11-21 Thread ag0aep6g via Digitalmars-d-learn
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.

Re: CTFE C compiler

2016-11-21 Thread Stefan Koch via Digitalmars-d
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

Re: Don't truncate forum titles, use multiple lines instead

2016-11-21 Thread Nick Treleaven via Digitalmars-d
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

Re: CTFE Status

2016-11-21 Thread Stefan Koch via Digitalmars-d
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

[Issue 16116] Infinite loop on (somewhat complex) simd math

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16116 Walter Bright changed: What|Removed |Added Keywords||pull

Re: DIP 1003: remove `body` as a keyword

2016-11-21 Thread Dejan Lekic via Digitalmars-d-announce
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   2   >