Re: Enum that can be 0 or null

2016-06-06 Thread ParticlePeter via Digitalmars-d-learn
On Monday, 6 June 2016 at 20:32:23 UTC, Alex Parrill wrote: They'd be the same type, since you would define the vulkan functions to take these structures instead of pointer or integer types. It relies on a lot of assumptions about the ABI that make a raw pointer work the same as a structure

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Adam Wilson via Digitalmars-d
Walter Bright wrote: Andrei posted this on another thread. I felt it deserved its own thread. It's very important. - I go to conferences. Train and consult at large companies. Dozens every year, cumulatively thousands

[Issue 14648] DIP25's "return" attribute breaks safety checks

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

Re: Windows system casting

2016-06-06 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 7 June 2016 at 04:06:01 UTC, Mike Parker wrote: Fourth, while casting the string directly to void* will work, it's considered best practice to use the pointer property for clarity. Oops! cast(void*)path.ptr In both cases. Like I said, without .ptr, it works, but this makes

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread H. S. Teoh via Digitalmars-d
On Tue, Jun 07, 2016 at 05:39:37AM +, ketmar via Digitalmars-d wrote: > On Monday, 6 June 2016 at 05:49:53 UTC, Ethan Watson wrote: > > Echoing the need for decimal support. I won't use it myself, but I > > know it's critical for finance. > > funny thing: those "financial sector" most of the

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Kai Nacke via Digitalmars-d-announce
On Monday, 6 June 2016 at 13:58:55 UTC, Martin Nowak wrote: On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! Congratulations! And please update

Re: How to enable feedback for AssertError?

2016-06-06 Thread Seb via Digitalmars-d-learn
On Tuesday, 7 June 2016 at 01:40:01 UTC, your_name wrote: On Monday, 6 June 2016 at 00:09:15 UTC, Ali Çehreli wrote: [...] Hello Ali, The behavior you described is what I'd expect, however, it's not what I get. The way I traced the problem, ironically ;), was to catch Error and print it

Re: How to enable feedback for AssertError?

2016-06-06 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 7 June 2016 at 02:05:00 UTC, Seb wrote: On Tuesday, 7 June 2016 at 01:40:01 UTC, your_name wrote: The way I traced the problem, ironically ;), was to catch Error and print it to screen. It involved dereferencing a null pointer in a thread and an 'assert null this' silently killed

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Walter Bright via Digitalmars-d
On 6/6/2016 5:19 PM, Brad Roberts via Digitalmars-d wrote: Safety as a usable subset of D is still pretty non-existent and yet is used as a selling point. The language still has holes -- I don't have bug report numbers, but others have reported them in the past, some closed some not. At the

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread ketmar via Digitalmars-d
On Tuesday, 7 June 2016 at 05:38:25 UTC, H. S. Teoh wrote: Same thing goes with a fixed point type. People keep complaining about it, but honestly if I were in the finance sector I'd implement the type myself in a couple o' days and put it up on code.dlang.org or something. It's not *that*

Error: castSwitch

2016-06-06 Thread none via Digitalmars-d-learn
import std.algorithm.iteration : map; import std.algorithm : castSwitch; import std.format : format; class A { int value; this(int value) { this.value = value; }} interface I { } class B : I { } Object[] arr = [new A(5), new B(), null]; auto results = arr.map!(castSwitch!(

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Walter Bright via Digitalmars-d
On 6/6/2016 5:19 PM, Brad Roberts via Digitalmars-d wrote: This isn't a small problem, don't dismiss it quite that quickly. Safety as a usable subset of D is still pretty non-existent and yet is used as a selling point. I use it regularly. The language still has holes -- I don't have bug

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread ketmar via Digitalmars-d
On Monday, 6 June 2016 at 05:49:53 UTC, Ethan Watson wrote: Echoing the need for decimal support. I won't use it myself, but I know it's critical for finance. funny thing: those "financial sector" most of the time doesn't give anything back. adding special decimal type complicating the

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Kai Nacke via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 01:30:53 UTC, deadalnix wrote: On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2

Re: Parse File at compile time, but not embedded

2016-06-06 Thread Pie? via Digitalmars-d-learn
On Tuesday, 7 June 2016 at 02:04:41 UTC, Mithun Hunsur wrote: On Monday, 6 June 2016 at 21:57:20 UTC, Pie? wrote: On Monday, 6 June 2016 at 21:31:32 UTC, Alex Parrill wrote: [...] This doesn't seem to be the case. In a release build, even though I never "use" the string, it is embedded. I

Re: Windows system casting

2016-06-06 Thread Mike Parker via Digitalmars-d-learn
On Monday, 6 June 2016 at 19:52:36 UTC, Alexander Patapoff wrote: import std.stdio; import std.string; import core.sys.windows.windows; void main() { string filepath = "C:\\Users\\awpat\\Pictures\\patterns_00387591.jpg"; auto p = toStringz(filepath); int result;

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread finalpatch via Digitalmars-d
On Monday, 6 June 2016 at 05:13:11 UTC, Daniel Kozak wrote: You can still unregister your critical thread from GC. Thanks, didn't know you could do that.

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Joakim via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 01:30:53 UTC, deadalnix wrote: On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Andre Pany via Digitalmars-d
On Monday, 6 June 2016 at 22:21:45 UTC, jmh530 wrote: On Monday, 6 June 2016 at 21:28:14 UTC, Walter Bright wrote: The reason is that otherwise, you've just limited your apps to handling a maximum amount of $21,474,836.48. I wouldn't mind running into that problem :-) It's really not

Re: Parse File at compile time, but not embedded

2016-06-06 Thread Pie? via Digitalmars-d-learn
If I use an enum dmd DOES remove it in release build. But I'm not sure for the general case yet.

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Brad Roberts via Digitalmars-d
On 6/6/2016 10:25 PM, Walter Bright via Digitalmars-d wrote: On 6/6/2016 5:19 PM, Brad Roberts via Digitalmars-d wrote: Safety as a usable subset of D is still pretty non-existent and yet is used as a selling point. The language still has holes -- I don't have bug report numbers, but others

[Issue 16086] Imported function name shadows alias this member

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

[OT] Do you see a problem in this serialization format ?

2016-06-06 Thread Basile B. via Digitalmars-d
I had to make a custom format because - XML is not readable (think by hand edition; setting file) - JSON is not good to represent D data types (an object must be created for each data, currently i have a json writer I could post a sample if you don't get what i mean) I will use it as for

Re: DConf Videos

2016-06-06 Thread Mike Parker via Digitalmars-d
On Monday, 6 June 2016 at 18:48:30 UTC, Karabuta wrote: On Monday, 6 June 2016 at 16:22:18 UTC, Gary Willoughby wrote: On Monday, 6 June 2016 at 10:40:01 UTC, sarn wrote: What's the best source of DConf videos at the moment? Are there are any edited versions released? I'd like to share some

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread poliklosio via Digitalmars-d
On Monday, 6 June 2016 at 04:38:15 UTC, Jack Stouffer wrote: (...) While I understand that some people can't afford a GC, this has confused me as well. I never understood the large amount of people on /r/programming complaining about the GC when the vast majority of software is written in

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Mike Parker via Digitalmars-d
On Monday, 6 June 2016 at 07:39:40 UTC, interessted wrote: It was also the general impression, that windows is an orphan and there should be no risk taking with D because of that. I've never understood this. DMD started out on Windows exclusively. Linux and other platforms came later. It has

Re: Code runtime

2016-06-06 Thread Max Samukha via Digitalmars-d
On Sunday, 5 June 2016 at 21:52:20 UTC, Ausprobierer wrote: Then I've replicated this code in MSVS2015 C++: Note that 'long' in D is 64 bits, whereas in MSVC it is 32 bits.

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Walter Bright via Digitalmars-d
On 6/6/2016 1:15 AM, Russel Winder via Digitalmars-d wrote: * Safety has holes and bugs. Then so does C, C++ and Rust, so this is just a comment made because it can be made and sounds bad. Bad enough to salve the conscience of the speaker as to why they are not already using D. It's pretty

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Vadim Lopatin via Digitalmars-d
On Monday, 6 June 2016 at 08:21:22 UTC, ketmar wrote: On Monday, 6 June 2016 at 08:15:42 UTC, Russel Winder wrote: 3. Have one lightweight D realized cross platform IDE. by the way, Buggins has dlangIDE written with his dlangUI package. it is cross-platform, has debugger support, and written

LDC 1.0.0 has been released!

2016-06-06 Thread Kai Nacke via Digitalmars-d-announce
Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2 frontend and standard library and supports LLVM 3.5-3.8. We provide binaries for Linux, OX X, Win32 & Win64, Linux/ARM

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Guillaume Piolat via Digitalmars-d
On Monday, 6 June 2016 at 06:50:36 UTC, poliklosio wrote: Please, elliminate GC. This also hurts the open source community. Why would I write/opensource a high performance library if I know that projects like AAA games are not going to use it anyway due to GC in D? - well there is an AAA

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Laeeth Isharc via Digitalmars-d
On Monday, 6 June 2016 at 04:17:40 UTC, Adam D. Ruppe wrote: On Monday, 6 June 2016 at 02:30:55 UTC, Pie? wrote: Duh! The claim is made that D can work without the GC... but that's a red herring... If you take about the GC what do you have? Like 90% of the language, still generally nicer

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Observer via Digitalmars-d
On Monday, 6 June 2016 at 08:04:07 UTC, Observer wrote: That said, GNU C++ does provide some support: https://gcc.gnu.org/onlinedocs/gcc/Decimal-Float.html Apparently, I meant GNU C.

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Russel Winder via Digitalmars-d
On Mon, 2016-06-06 at 05:28 +, ketmar via Digitalmars-d wrote: > On Monday, 6 June 2016 at 05:13:11 UTC, Daniel Kozak wrote: > > You can still unregister your critical thread from GC. > > exactly. that's what i did in my sound engine, and it works like  > a charm: i can enjoy hiccup-less ogg

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Basile B. via Digitalmars-d-announce
On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, Thx ! very happy to read this announce.

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Russel Winder via Digitalmars-d
On Mon, 2016-06-06 at 07:00 +, Andre Pany via Digitalmars-d wrote: > On Monday, 6 June 2016 at 06:29:27 UTC, Andrei Alexandrescu wrote: > > On 6/6/16 6:17 AM, Andre Pany wrote: > > > to be usable for companies which want to create economic  > > > software, > > > in my opinion D lacks

Emulate C's (polymorphic) NULL type

2016-06-06 Thread ParticlePeter via Digitalmars-d-learn
In C NULL can be used as integer as well as null pointer. Is there a way to create such a type in D? The type should have only one value which is obviously (0/null). A extern( C ) function should be able to take it as either one. Overloaded enum pops into my mind as example: enum NULL = 0; enum

[Issue 16108] `to!string` fails on struct with disabled postblit

2016-06-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16108 Eyal changed: What|Removed |Added CC||e...@weka.io --- Comment #1 from Eyal

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Guillaume Piolat via Digitalmars-d
On Monday, 6 June 2016 at 04:17:40 UTC, Adam D. Ruppe wrote: On Monday, 6 June 2016 at 02:30:55 UTC, Pie? wrote: Duh! The claim is made that D can work without the GC... but that's a red herring... If you take about the GC what do you have? Like 90% of the language, still generally nicer

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Russel Winder via Digitalmars-d
On Mon, 2016-06-06 at 08:29 +0200, Andrei Alexandrescu via Digitalmars- d wrote: > On 6/6/16 6:17 AM, Andre Pany wrote: > > to be usable for companies which want to create economic software, > > in my opinion D lacks std.decimal. > > Do C, C++, Java, Go, or Rust have a standard decimal type? --

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Mike Parker via Digitalmars-d
On Monday, 6 June 2016 at 08:17:44 UTC, ixid wrote: On Monday, 6 June 2016 at 07:44:22 UTC, Mike Parker wrote: Where does this impression come from that Windows is a second-class citizen? 64-bit support seemed to take forever to reach Windows. Well, that was only because the backend didn't

DConf Videos

2016-06-06 Thread sarn via Digitalmars-d
What's the best source of DConf videos at the moment? Are there are any edited versions released? I'd like to share some of my favourite talks.

Re: Code runtime

2016-06-06 Thread Seb via Digitalmars-d
On Monday, 6 June 2016 at 10:44:10 UTC, Vladimir Panteleev wrote: On Monday, 6 June 2016 at 06:25:19 UTC, Andrei Alexandrescu wrote: * Just looked at std.permutation FWIW, there's also this: https://dlang.org/library/std/algorithm/iteration/permutations.html and mir.combinatorics

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread ketmar via Digitalmars-d
On Monday, 6 June 2016 at 08:18:20 UTC, Russel Winder wrote: On Mon, 2016-06-06 at 05:28 +, ketmar via Digitalmars-d wrote: On Monday, 6 June 2016 at 05:13:11 UTC, Daniel Kozak wrote: > You can still unregister your critical thread from GC. exactly. that's what i did in my sound engine,

Re: Speed up `dub`.

2016-06-06 Thread ciechowoj via Digitalmars-d-learn
On Sunday, 5 June 2016 at 21:20:20 UTC, Andrej Mitrovic wrote: On Thursday, 2 June 2016 at 13:04:00 UTC, ciechowoj wrote: and found that an assert from `std/path.d:3168` (`globMatch`) contributes a major amount to the running time of dub. ``` assert(balancedParens(pattern, '[', ']', 0));

Re: Code runtime

2016-06-06 Thread Johan Engelen via Digitalmars-d
On Sunday, 5 June 2016 at 22:34:47 UTC, John Colvin wrote: Be careful with benchmarks like this, you are giving the compiler a lot more information than it usually has in any real world case (here it knows the exact values of all the input data/parameters!). +1 ! For the input data, I

Re: Range and poolTask

2016-06-06 Thread moechofe via Digitalmars-d-learn
On Monday, 6 June 2016 at 09:38:32 UTC, Rene Zwanenburg wrote: http://dlang.org/phobos/std_parallelism.html#.TaskPool Or, more specifically, http://dlang.org/phobos/std_parallelism.html#.TaskPool.amap http://dlang.org/phobos/std_parallelism.html#.TaskPool.map The functions passed to map or

Re: Code runtime

2016-06-06 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 6 June 2016 at 06:25:19 UTC, Andrei Alexandrescu wrote: * Just looked at std.permutation FWIW, there's also this: https://dlang.org/library/std/algorithm/iteration/permutations.html

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread ixid via Digitalmars-d
On Monday, 6 June 2016 at 09:09:13 UTC, Mike Parker wrote: Where does this impression come from that Windows is a second-class citizen? So... what's the problem? I'm saying things like that is where the impression can come from. It's not a problem now.

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread rikki cattermole via Digitalmars-d
On 06/06/2016 10:35 PM, Andrea Fontana wrote: On Monday, 6 June 2016 at 02:20:52 UTC, Walter Bright wrote: Andrei posted this on another thread. I felt it deserved its own thread. It's very important. - I go to

Re: The Official D Blog is Live

2016-06-06 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 5 June 2016 at 16:47:57 UTC, Jack Stouffer wrote: On Friday, 3 June 2016 at 19:33:31 UTC, Mike Parker wrote: so if you have any suggestions fire away. Two things I noticed: 1. The site doesn't gzip its responses. This can lead to a 30%-40% reduction in total page size if used.

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Russel Winder via Digitalmars-d
On Mon, 2016-06-06 at 06:24 +, Mithun Hunsur via Digitalmars-d wrote: > […] > The problem is that D is targeted as a multi-paradigm systems  > programming language, and while it's largely successful at that,  > the GC doesn't fit in with that domain by nature of its existence. > > There's no

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Russel Winder via Digitalmars-d
On Mon, 2016-06-06 at 08:24 +, ketmar via Digitalmars-d wrote: > […] > it is even better: i do *zero* manual memory management in  > Follin! synthesizers are simple classes, and they are  > automatically anchored with __gshared variables (when user is  > creating a new replay channel). so i

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Ethan Watson via Digitalmars-d
On Monday, 6 June 2016 at 07:18:56 UTC, Guillaume Piolat wrote: - well there is an AAA game using it now, Replying solely to highlight that Unreal Engine has garbage collected since forever; and Unity is a .NET runtime environment and all the GC frills that come with it. GC in the AAA/indie

Re: Range and poolTask

2016-06-06 Thread Rene Zwanenburg via Digitalmars-d-learn
On Monday, 6 June 2016 at 09:32:30 UTC, moechofe wrote: I wonder if it is possible to write something like this: --- // taskPool.distribute -- take a range and distribute entries to different threads. dirEntries().distribute(function(R1,R2)(R1 from,R2 to){ from .filter!xxx

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Andre Pany via Digitalmars-d
On Monday, 6 June 2016 at 06:29:27 UTC, Andrei Alexandrescu wrote: On 6/6/16 6:17 AM, Andre Pany wrote: to be usable for companies which want to create economic software, in my opinion D lacks std.decimal. Do C, C++, Java, Go, or Rust have a standard decimal type? -- Andrei With java 7

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Walter Bright via Digitalmars-d
On 6/5/2016 11:38 PM, rikki cattermole wrote: On 06/06/2016 6:29 PM, Andrei Alexandrescu wrote: On 6/6/16 6:17 AM, Andre Pany wrote: to be usable for companies which want to create economic software, in my opinion D lacks std.decimal. Do C, C++, Java, Go, or Rust have a standard decimal

Re: LDC 1.0.0 has been released!

2016-06-06 Thread rikki cattermole via Digitalmars-d-announce
On 06/06/2016 7:00 PM, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2 frontend and standard library and supports LLVM 3.5-3.8. We provide binaries for

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread ixid via Digitalmars-d
On Monday, 6 June 2016 at 07:44:22 UTC, Mike Parker wrote: Where does this impression come from that Windows is a second-class citizen? 64-bit support seemed to take forever to reach Windows.

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Ethan Watson via Digitalmars-d
On Monday, 6 June 2016 at 08:00:30 UTC, Laeeth Isharc wrote: Hi Ethan. Ahoy. But don't you think that as a language D has intrinsically matured quite slowly? Sociomantic began in 2008,or 2009,whenever it was, but at the time given where the language was that must have been quite a

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 6 June 2016 at 07:25:49 UTC, tester wrote: On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2 frontend

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Bienlein via Digitalmars-d
RefCounted does not work for classes, only for structs. Reason against adoption at least for me ;-).

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Andrea Fontana via Digitalmars-d
On Monday, 6 June 2016 at 02:20:52 UTC, Walter Bright wrote: Andrei posted this on another thread. I felt it deserved its own thread. It's very important. - I go to conferences. Train and consult at large companies.

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2 frontend and standard library and supports LLVM 3.5-3.8. We

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Jacob Carlborg via Digitalmars-d
On 06/06/16 04:20, Walter Bright wrote: * Tooling is immature and of poorer quality compared to the competition. What is the competition in this case? -- /Jacob Carlborg

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread ketmar via Digitalmars-d
On Monday, 6 June 2016 at 10:33:29 UTC, Vadim Lopatin wrote: On Monday, 6 June 2016 at 08:21:22 UTC, ketmar wrote: On Monday, 6 June 2016 at 08:15:42 UTC, Russel Winder wrote: 3. Have one lightweight D realized cross platform IDE. by the way, Buggins has dlangIDE written with his dlangUI

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Guillaume Piolat via Digitalmars-d
On Monday, 6 June 2016 at 08:18:20 UTC, Russel Winder wrote: On Mon, 2016-06-06 at 05:28 +, ketmar via Digitalmars-d wrote: On Monday, 6 June 2016 at 05:13:11 UTC, Daniel Kozak wrote: > You can still unregister your critical thread from GC. exactly. that's what i did in my sound engine,

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Jack Stouffer via Digitalmars-d
On Monday, 6 June 2016 at 06:32:15 UTC, Andrei Alexandrescu wrote: These are only a part of our competition. -- Andrei Sure, I was just remarking on the fact that the amount of complaining about GCs is disproportionate to the number of people not using GCs. As I said, I think it's more of a

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread interessted via Digitalmars-d
On Monday, 6 June 2016 at 04:17:18 UTC, Andre Pany wrote: Hi, to be usable for companies which want to create economic software, in my opinion D lacks std.decimal. Maybe some companies will develop their own decimal libraries but for the others they won't. There is some great work, but

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Observer via Digitalmars-d
On Monday, 6 June 2016 at 07:01:33 UTC, Walter Bright wrote: On 6/5/2016 11:38 PM, rikki cattermole wrote: On 06/06/2016 6:29 PM, Andrei Alexandrescu wrote: On 6/6/16 6:17 AM, Andre Pany wrote: to be usable for companies which want to create economic software, in my opinion D lacks

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Russel Winder via Digitalmars-d
On Sun, 2016-06-05 at 19:20 -0700, Walter Bright via Digitalmars-d wrote: > […] > > * The garbage collector eliminates probably 60% of potential users > right off. And i bet over 80% of them are just saying this based on zero evidence, just prejudice.  Go went with the attitude "Go has a GC, if

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Russel Winder via Digitalmars-d
On Mon, 2016-06-06 at 06:50 +, poliklosio via Digitalmars-d wrote: > > […] > Please, elliminate GC. Let's not. It is a USP against C++ and Rust. It forges a new route to traction, cf. Go, Java, etc. > This also hurts the open source community. Why would I  > write/opensource a high

[Issue 16131] New: A struct is being copied unnecessarily when initialized

2016-06-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16131 Issue ID: 16131 Summary: A struct is being copied unnecessarily when initialized Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Range and poolTask

2016-06-06 Thread moechofe via Digitalmars-d-learn
I wonder if it is possible to write something like this: --- // taskPool.distribute -- take a range and distribute entries to different threads. dirEntries().distribute(function(R1,R2)(R1 from,R2 to){ from .filter!xxx .map!yyy .tee!zzz(to); }) .each!www; --- This

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Walter Bright via Digitalmars-d
On 6/6/2016 2:07 AM, tsbockman wrote: The Windows build for DMD, etc. seems to require tools that Microsoft no longer distributes publicly. I asked about this, but no one replied... http://forum.dlang.org/post/lzmnllscqyyuqlusr...@forum.dlang.org Building dmd with Microsoft C++ isn't an

[Issue 13940] std.algorithm.argMin

2016-06-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13940 greenify changed: What|Removed |Added Status|NEW |RESOLVED

Re: LDC 1.0.0 has been released!

2016-06-06 Thread deadalnix via Digitalmars-d-announce
On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2 frontend and standard library and supports LLVM 3.5-3.8. We

Re: How to enable feedback for AssertError?

2016-06-06 Thread your_name via Digitalmars-d-learn
On Monday, 6 June 2016 at 00:09:15 UTC, Ali Çehreli wrote: On 06/05/2016 07:39 AM, your_name wrote: > The problem I have is whenever an assert in my debug build fails the > program or thread is just killed silently. That's strange. When an assertion fails, the stack trace is printed and the

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Mithun Hunsur via Digitalmars-d-announce
On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2 frontend and standard library and supports LLVM 3.5-3.8. We

Re: Parse File at compile time, but not embedded

2016-06-06 Thread Mithun Hunsur via Digitalmars-d-learn
On Monday, 6 June 2016 at 21:57:20 UTC, Pie? wrote: On Monday, 6 June 2016 at 21:31:32 UTC, Alex Parrill wrote: On Monday, 6 June 2016 at 17:31:52 UTC, Pie? wrote: Is it possible to parse a file at compile time without embedding it into the binary? I have a sort of "configuration" file that

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread jmh530 via Digitalmars-d
On Monday, 6 June 2016 at 05:49:53 UTC, Ethan Watson wrote: Echoing the need for decimal support. I won't use it myself, but I know it's critical for finance. You can always round something to two digits if you need to.

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Jonathan M Davis via Digitalmars-d
On Monday, June 06, 2016 09:12:19 Ethan Watson via Digitalmars-d wrote: > Yet despite being ahead of the pack, its slow adoption doesn't > speak well for it. But there is precedent for slow adoption, It's my understanding that python had slow adoption. It's huge now, but it took them a long time

Tiobe Index again - now 5 month in Top 20

2016-06-06 Thread Martin Tschierschke via Digitalmars-d-announce
http://www.tiobe.com/tiobe_index For the first time in the history of the TIOBE index a language needs to have a rating of more than 1.0% to be part of the top 20.[] More detailed development: http://www.tiobe.com/tiobe_index?page=D I was watching it, after D jumped to 15th position in

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread NX via Digitalmars-d
On Monday, 6 June 2016 at 08:15:42 UTC, Russel Winder wrote: On Sun, 2016-06-05 at 19:20 -0700, Walter Bright via Digitalmars-d wrote: […] * The garbage collector eliminates probably 60% of potential users right off. And i bet over 80% of them are just saying this based on zero evidence,

Re: Range and poolTask

2016-06-06 Thread Rene Zwanenburg via Digitalmars-d-learn
On Monday, 6 June 2016 at 10:26:11 UTC, moechofe wrote: The functions passed to map or amap take the type of the element of the range as argument, but not a range itself. Right. I don't think I understand what the semantics of your example would be though.. Could you elaborate a bit?

Re: LDC 1.0.0 has been released!

2016-06-06 Thread FreeSlave via Digitalmars-d-announce
On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2 frontend and standard library and supports LLVM 3.5-3.8. We

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Radu via Digitalmars-d-announce
On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! The release is based on the 2.070.2 frontend and standard library and supports LLVM 3.5-3.8. We

Re: Range and poolTask

2016-06-06 Thread moechofe via Digitalmars-d-learn
On Monday, 6 June 2016 at 11:25:00 UTC, Rene Zwanenburg wrote: Could you elaborate a bit? Yes. I have an InputRange and need to pass it throughout a couple of iteration and manipulation functions such as filter, map and finishing by grouping with fold. Like: myrange .filter!xxx

Re: Emulate C's (polymorphic) NULL type

2016-06-06 Thread Anonymouse via Digitalmars-d-learn
On Monday, 6 June 2016 at 09:43:23 UTC, ParticlePeter wrote: A extern( C ) function should be able to take it as either one. Missed this bit. Not sure about that one.

Re: Emulate C's (polymorphic) NULL type

2016-06-06 Thread Anonymouse via Digitalmars-d-learn
On Monday, 6 June 2016 at 09:43:23 UTC, ParticlePeter wrote: In C NULL can be used as integer as well as null pointer. Is there a way to create such a type in D? The type should have only one value which is obviously (0/null). A extern( C ) function should be able to take it as either one.

I would like to transfer the D blog theme repo to the dlang umbrella

2016-06-06 Thread Jack Stouffer via Digitalmars-d
Just to start out, I created a private repo on Github to help with collaboration on the D blog theme between myself and Mike Parker. Now, there's no reason it should be private, and everyone should be able to see it and contribute. So, who do I talk to and what do I need to do to get this on

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread BigDog via Digitalmars-d
On Monday, 6 June 2016 at 13:15:12 UTC, Jonathan M Davis wrote: On Monday, June 06, 2016 09:12:19 Ethan Watson via Digitalmars-d wrote: Yet despite being ahead of the pack, its slow adoption doesn't speak well for it. But there is precedent for slow adoption, It's my understanding that python

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! Congratulations! And please update https://ldc-developers.github.io/LATEST.

Re: I would like to transfer the D blog theme repo to the dlang umbrella

2016-06-06 Thread Mike Parker via Digitalmars-d
On Monday, 6 June 2016 at 13:47:00 UTC, Jack Stouffer wrote: So, who do I talk to and what do I need to do to get this on github.com/dlang? +1 And, if I may add, the sooner the better!

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread BigDog via Digitalmars-d
On Monday, 6 June 2016 at 09:12:19 UTC, Ethan Watson wrote: On Monday, 6 June 2016 at 08:00:30 UTC, Laeeth Isharc wrote: D is still ahead of the pack in terms of features. I always think of Jurassic Park, when the D community talks of features. Specifically Jeff Goldblum's line of "Your

Re: Emulate C's (polymorphic) NULL type

2016-06-06 Thread ParticlePeter via Digitalmars-d-learn
On Monday, 6 June 2016 at 11:40:11 UTC, Anonymouse wrote: On Monday, 6 June 2016 at 09:43:23 UTC, ParticlePeter wrote: In C NULL can be used as integer as well as null pointer. Is there a way to create such a type in D? The type should have only one value which is obviously (0/null). A

Re: Building bits of D [was Andrei's list of barriers to D adoption]

2016-06-06 Thread Walter Bright via Digitalmars-d
On 6/6/2016 3:40 AM, Russel Winder via Digitalmars-d wrote: On Mon, 2016-06-06 at 02:46 -0700, Walter Bright via Digitalmars-d wrote: On 6/6/2016 2:07 AM, tsbockman wrote: The Windows build for DMD, etc. seems to require tools that Microsoft no longer distributes publicly. I asked about this,

[Issue 12575] extern(C) mangling ignored inside mixin template

2016-06-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12575 det <2k...@gmx.net> changed: What|Removed |Added CC||2k...@gmx.net --

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread jmh530 via Digitalmars-d
On Monday, 6 June 2016 at 08:09:29 UTC, Laeeth Isharc wrote: Maybe we need official containers that use the allocator, better messaging with concrete examples that get the point across that D generates less garbage than some other languages whose history might be putting people off, and

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread NX via Digitalmars-d
On Monday, 6 June 2016 at 13:51:30 UTC, NX wrote: This. I think the biggest problem about D is it's trying to satisfy *everyone*. It's literally combining C++, Java, Python, and ~the like. At some point it even tries to mimic Rust! Trying to be everything at once is key po- ---int

  1   2   3   >