Re: D, SCons, Dub

2017-04-18 Thread Alex via Digitalmars-d
On Tuesday, 18 April 2017 at 06:51:51 UTC, Russel Winder wrote: I have been trying to do the opposite with scons - incremental builds. In c++ the .h and .cpp files allowed the compilation from many edits to be limited to one translation unit. Per module compilation then linking is the default

Re: D, SCons, Dub

2017-04-17 Thread Alex via Digitalmars-d
On Monday, 17 April 2017 at 17:51:33 UTC, Russel Winder wrote: Just in case anyone gives a : I have submitted a pull request that adds ProgramAllAtOnce I have been trying to do the opposite with scons - incremental builds. In c++ the .h and .cpp files allowed the compilation from many ed

Re: Threads not garbage collected ?

2017-02-22 Thread Alex via Digitalmars-d
On Wednesday, 22 February 2017 at 15:23:59 UTC, Moritz Maxeiner wrote: It seems undesirable, as the thread can be many layers of encapsulation down, and they all need manual deletes. It's highly desirable to not have the program terminate when there's still work to be done on some critical non

Re: Threads not garbage collected ?

2017-02-22 Thread Alex via Digitalmars-d
On Wednesday, 22 February 2017 at 08:28:48 UTC, ketmar wrote: Alex wrote: import core.thread; class A { Thread mThread; bool mStopped; this() { mThread = new Thread(&run); mThread.start(); } void run() {

Re: Threads not garbage collected ?

2017-02-22 Thread Alex via Digitalmars-d
On Wednesday, 22 February 2017 at 05:39:50 UTC, rikki cattermole wrote: On 22/02/2017 6:28 PM, Alex wrote: import core.thread; class A { Thread mThread; bool mStopped; this() { mThread = new Thread(&run); mThread.start(); } void run() { whil

Threads not garbage collected ?

2017-02-21 Thread Alex via Digitalmars-d
import core.thread; class A { Thread mThread; bool mStopped; this() { mThread = new Thread(&run); mThread.start(); } void run() { while (!mStopped) {

Re: D is crap

2016-07-12 Thread Alex via Digitalmars-d
On Tuesday, 12 July 2016 at 07:01:05 UTC, Paulo Pinto wrote: Also contrary to what Microsoft tried to push with C++/CX on WinRT, besides game developers not many decided to embrace it. We didn't embrace it at all, we just have no choice but to use it for a lot of XBoxOne SDK calls. Any file

Re: std.data.json formal review

2015-10-06 Thread Alex via Digitalmars-d
JSON is a particular file format useful for serialising heirachical data. Given that D also has an XML module which appears to be deprecated, I wonder if it would be better to write a more abstract serialisation/persistance module that could use either json,xml,some binary format and future f

Yes or No Options

2015-07-27 Thread Alex via Digitalmars-d
Hey guys! I am super new to programming and still trying to learn the very basics via a book that I bought. My problem is the following: import std.stdio; import std.string; void main() { char[] yesno; write("Roll the dice: Enter a number!"); int dieNumber;

Re: MSBUILD 2014, C# gets an ahead of time compiler to native code.

2015-01-08 Thread Alex via Digitalmars-d
There are some tools in the wild which allows to compile C#(MSIL) into native code (using LLVM) thus being cross-compiled as opposed to C# native compiler which Windows OS oriented. here some links: https://csnative.codeplex.com/ and https://github.com/xen2/SharpLang

Re: What does the compiler really require from the runtime?

2014-08-19 Thread Alex via Digitalmars-d
On Tuesday, 19 August 2014 at 16:55:49 UTC, Jacob Carlborg wrote: On 2014-08-19 18:31, Alex wrote: Hi Everyone, Is there a list of functions and data structures, the D-Compiler would expect from a custom runtime? Here's a list [1]. It's probably not complete but it's a start. It's best to

What does the compiler really require from the runtime?

2014-08-19 Thread Alex via Digitalmars-d
Hi Everyone, Is there a list of functions and data structures, the D-Compiler would expect from a custom runtime?