Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Jack Applegame via Digitalmars-d-announce
At first, thank you. There is an issue with Diet templates highlighting. It's very poor. Just compare Mono-D 2.0.1/Xamarian Studio 5.0 - http://a-rei.ru/eNhp Sublime Text 3 - http://a-rei.ru/vuoY

Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Alexander Bothe via Digitalmars-d-announce
On Saturday, 3 May 2014 at 08:12:50 UTC, Jack Applegame wrote: At first, thank you. There is an issue with Diet templates highlighting. It's very poor. Just compare Mono-D 2.0.1/Xamarian Studio 5.0 - http://a-rei.ru/eNhp Sublime Text 3 - http://a-rei.ru/vuoY Hmm, normally, this stuff

Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Alexander Bothe via Digitalmars-d-announce
On Saturday, 3 May 2014 at 11:28:25 UTC, Alexander Bothe wrote: But thanks for noticing that regression. No, it actually is working. Your file has to end with '.dt' to have proper highlighting. A screenshot I just took: http://i.imgur.com/KaWAKgW.png

Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Jack Applegame via Digitalmars-d-announce
On Saturday, 3 May 2014 at 11:37:58 UTC, Alexander Bothe wrote: On Saturday, 3 May 2014 at 11:28:25 UTC, Alexander Bothe wrote: But thanks for noticing that regression. No, it actually is working. Your file has to end with '.dt' to have proper highlighting. A screenshot I just took:

Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Alexander Bothe via Digitalmars-d-announce
On Saturday, 3 May 2014 at 13:21:24 UTC, Jack Applegame wrote: Strange. What is wrong? editor - http://a-rei.ru/meJf about - http://a-rei.ru/RAuW add-in manager - http://a-rei.ru/jIrf Nothing is wrong with that - except that in the current release, the inline-D syntax highlighting only

Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Paolo Invernizzi via Digitalmars-d-announce
On Wednesday, 30 April 2014 at 20:15:37 UTC, Alexander Bothe wrote: Hi everyone, there's a new XamarinStudio version upcoming. And just as usual, I've just downloaded the bleeding-edge release candidate and made Mono-D run on it :P For the next couple of days, you'll only be able to get

Re: Unit-threaded v0.4.0 released

2014-05-03 Thread Atila Neves via Digitalmars-d-announce
Version v0.4.3 now. New: . Tests can be run in random (single-threaded) order. A seed can be specified. . unittest blocks are registered at compile-time. This mean each block/function is its own test case. Before all blocks from a module were a test case. Atila On Wednesday, 23 April 2014

Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Alexander Bothe via Digitalmars-d-announce
On Saturday, 3 May 2014 at 17:09:41 UTC, Paolo Invernizzi wrote: I'm not seeing any more the icons in the document outline pad: is it expected? must be a regression as well. Gonna check it.

Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Alexander Bothe via Digitalmars-d-announce
On Saturday, 3 May 2014 at 17:09:41 UTC, Paolo Invernizzi wrote: I'm not seeing any more the icons in the document outline pad: is it expected? Fixed it in v2.0.2

Re: Mono-D 2.0 - XamarinStudio 5.0 support, completion improvements

2014-05-03 Thread Paolo Invernizzi via Digitalmars-d-announce
On Saturday, 3 May 2014 at 18:55:44 UTC, Alexander Bothe wrote: On Saturday, 3 May 2014 at 17:09:41 UTC, Paolo Invernizzi wrote: I'm not seeing any more the icons in the document outline pad: is it expected? Fixed it in v2.0.2 Thank you! /Paolo

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Paolo Invernizzi via Digitalmars-d
On Friday, 2 May 2014 at 15:03:47 UTC, Andrei Alexandrescu wrote: On 5/2/14, 1:34 AM, Paolo Invernizzi wrote: On Thursday, 1 May 2014 at 21:29:19 UTC, Andrei Alexandrescu wrote: On 5/1/14, 1:19 PM, H. S. Teoh via Digitalmars-d wrote: On Thu, May 01, 2014 at 01:03:06PM -0700, Andrei

Re: Reopening the debate about non-nullable-by-default: initialization of member fields

2014-05-03 Thread bearophile via Digitalmars-d
Jonathan M Davis: Idan Arye: We are all sick and tired of this debate, but today I've seen a question in Stack Exchange's Programmers board that raises a point I don't recall being discussed here: Yeah, I brought this up before, and it's one of the reasons why I'm against non-nullable by

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Benjamin Thaut via Digitalmars-d
Am 30.04.2014 22:21, schrieb Andrei Alexandrescu: Walter and I have had a long chat in which we figured our current offering of abstractions could be improved. Here are some thoughts. There's a lot of work ahead of us on that and I wanted to make sure we're getting full community buy-in and

Re: More radical ideas about gc and reference counting

2014-05-03 Thread froglegs via Digitalmars-d
feels like writing C++ with C# syntax. Ahem. C++ has RAII k thanks. C++ C# Proof.

Re: Reopening the debate about non-nullable-by-default: initialization of member fields

2014-05-03 Thread w0rp via Digitalmars-d
I would allow this bug. This also happens with 'final' member in Java, and there you expect the value to not be null. A rule of thumb should be to never call virtual methods from inside of a constructor. Bad things happen.

Re: More radical ideas about gc and reference counting

2014-05-03 Thread w0rp via Digitalmars-d
On Friday, 2 May 2014 at 00:45:42 UTC, Andrei Alexandrescu wrote: Here's where the point derails. A struct may be preexisting; the decision to define a destructor for it and the decision to use polymorphism for an object that needs that structure are most of the time distinct. Andrei I

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Benjamin Thaut via Digitalmars-d
Am 01.05.2014 19:35, schrieb Marc Schütz schue...@gmx.net: But conceptually, this is _not_ the same as classes! As others have mentioned, it's possible to created structs with `new`, or have them in dynamic arrays, as well as managing class objects manually. Maybe the language should have some

Progress on Adam Wilson's Graphics API?

2014-05-03 Thread Nordlöw
Is there any progress on the graphics API Adam Wilson is working on?

Re: More radical ideas about gc and reference counting

2014-05-03 Thread via Digitalmars-d
On Friday, 2 May 2014 at 20:59:46 UTC, monarch_dodra wrote: Yeah, you have to read the fine print: collection implies destruction *but* no guarantees the collection will actually ever happen. Which make destructors dangerous constructs. It means you now risk getting random bugs-reports after

The Current Status of DQt

2014-05-03 Thread w0rp via Digitalmars-d
Hello everyone. From time to time, people ask in the newsgroup and also IRC about Qt bindings for D, so I thought it would be a good idea to give people an update on where my own bindings stand. First, if you want to take a look at my code as it stands, you can get it here.

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Michel Fortin via Digitalmars-d
On 2014-05-01 17:35:36 +, Marc Schütz schue...@gmx.net said: Maybe the language should have some way to distinguish between GC-managed and manually-managed objects, preferably in the type system. Then it could be statically checked whether an object is supposed to be GC-managed, and

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Paulo Pinto via Digitalmars-d
Am 03.05.2014 10:57, schrieb froglegs: feels like writing C++ with C# syntax. Ahem. C++ has RAII k thanks. C++ C# Proof. Which does not work across threads, relies on stack allocations and has issues if cleaning a resource implies having a not handled exception on the destructor of

Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
So I tried using unit-threaded to run Phobos unit tests again and had problems (which I'll look into later) with its compile-time reflection. Then I realised I was an idiot since I don't need to reflect on anything: all Phobos tests are in unittest blocks so all I need to do is include them in

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
I turned off all output to check. It was still slower with multiple threads. That was the only weird thing I was doing I could think of as the cause. Otherwise it's just a foreach(test; tests.parallel) { test(); }. Atila On Saturday, 3 May 2014 at 11:54:55 UTC, Atila Neves wrote: So I tried

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
Out of curiosity are you on Windows? No, Arch Linux 64-bit. I also just noticed a glaring threading bug in my code as well that somehow's never turned up. This is not a good day. Atila

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Rikki Cattermole via Digitalmars-d
On Saturday, 3 May 2014 at 12:08:56 UTC, Atila Neves wrote: I turned off all output to check. It was still slower with multiple threads. That was the only weird thing I was doing I could think of as the cause. Otherwise it's just a foreach(test; tests.parallel) { test(); }. Atila On

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Rikki Cattermole via Digitalmars-d
On Saturday, 3 May 2014 at 12:24:59 UTC, Atila Neves wrote: Out of curiosity are you on Windows? No, Arch Linux 64-bit. I also just noticed a glaring threading bug in my code as well that somehow's never turned up. This is not a good day. Atila I'm surprised. Threads should be cheap on

GC vs Resource management.

2014-05-03 Thread monnoroch via Digitalmars-d
I've been reading all the topics with those radical ideas about the GC and dtors and, honestly, i'd rather call them insane. After all the reading and thinking, i came to conclusion, that what Andrey suggests is to call dtors only on stack-allocated structs. That also implies, that one can't

Re: GC vs Resource management.

2014-05-03 Thread Rikki Cattermole via Digitalmars-d
On Saturday, 3 May 2014 at 12:28:03 UTC, monnoroch wrote: I've been reading all the topics with those radical ideas about the GC and dtors and, honestly, i'd rather call them insane. After all the reading and thinking, i came to conclusion, that what Andrey suggests is to call dtors only on

Re: GC vs Resource management.

2014-05-03 Thread monnoroch via Digitalmars-d
Hey I have this global variable, if I assign a value to it and later null it, it'll call its destructor if its not referenced anywhere else. Which in turn would make me think ref counting would be a good idea. It seems, that ARC is the only way. There were idea to make all non-scoped (in

Re: GC vs Resource management.

2014-05-03 Thread monnoroch via Digitalmars-d
Scoped-objects + ARC on non-scoped objects with dtors + GC on non-scoped objects w/o dtors would arguably solve the problem, especially, is arrays of scoped objects would be considered also scoped, or just add separate scoped arrays.

[OT] Slides from 2014 International Symposium on Code Generation and Optimization

2014-05-03 Thread Paulo Pinto via Digitalmars-d
Hi, the slides are now available, with lots of interesting talks about code generation, which are a domain of systems programming targeted by D. http://cgo.org/cgo2014/conference/program/ -- Paulo

Re: The Current Status of DQt

2014-05-03 Thread Jonathan M Davis via Digitalmars-d
On Sat, 03 May 2014 11:00:37 + w0rp via Digitalmars-d digitalmars-d@puremagic.com wrote: So, I am eager to hear what people think about all of this. Does anyone like the work that I have done, and will it be useful? Have I committed some terrible crime against nature, for which I must be

Re: GC vs Resource management.

2014-05-03 Thread Paulo Pinto via Digitalmars-d
Am 03.05.2014 14:28, schrieb monnoroch: I've been reading all the topics with those radical ideas about the GC and dtors and, honestly, i'd rather call them insane. After all the reading and thinking, i came to conclusion, that what Andrey suggests is to call dtors only on stack-allocated

Re: GC vs Resource management.

2014-05-03 Thread via Digitalmars-d
On Saturday, 3 May 2014 at 13:21:04 UTC, Paulo Pinto wrote: C# and Java also have scoped blocks (using, try-with-resources), similar to Python for resource management. Yeah, but it doesn't work for graphs that maintain resources, such as a scene graph which hold onto texture memory.

Re: GC vs Resource management.

2014-05-03 Thread Paulo Pinto via Digitalmars-d
Am 03.05.2014 16:02, schrieb Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com: On Saturday, 3 May 2014 at 13:21:04 UTC, Paulo Pinto wrote: C# and Java also have scoped blocks (using, try-with-resources), similar to Python for resource management. Yeah, but it doesn't work for graphs

Re: GC vs Resource management.

2014-05-03 Thread via Digitalmars-d
On Saturday, 3 May 2014 at 14:31:59 UTC, Paulo Pinto wrote: - Make all scene graph nodes IDisposable. - Have a using(rootNode) {} on your render loop That would work for a static scene. But you want to mark resources ready for release when nodes are removed from the graph dynamically. In

Re: GC vs Resource management.

2014-05-03 Thread Paulo Pinto via Digitalmars-d
Am 03.05.2014 16:43, schrieb Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com: On Saturday, 3 May 2014 at 14:31:59 UTC, Paulo Pinto wrote: - Make all scene graph nodes IDisposable. - Have a using(rootNode) {} on your render loop That would work for a static scene. But you want to

Re: GC vs Resource management.

2014-05-03 Thread via Digitalmars-d
On Saturday, 3 May 2014 at 15:10:43 UTC, Paulo Pinto wrote: Easy, you already know that you don't need the node, just call the dispose method, instead of marking for release. But you don't know unless you use RC or GC. Let's say you make a jungle. Lots of pointers to the tree root node. And

Re: The Current Status of DQt

2014-05-03 Thread Russel Winder via Digitalmars-d
On Sat, 2014-05-03 at 11:00 +, w0rp via Digitalmars-d wrote: […] 2. I have not yet implemented signals and slots. Two options for this involve generating QMetaObject instances for classes, possibly via template mixins, which do what 'moc' does for C++. A second option is to use Qt5 for

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
Ok, so I went and added __traits(getUnitTests) to unit-threaded. That way each unittest block is its own test case. I registered these modules in std to run: array, ascii, base64, bigint, bitmanip, concurrency, container, cstream. On the good news front, they all passed even though they

Re: GC vs Resource management.

2014-05-03 Thread Paulo Pinto via Digitalmars-d
Am 03.05.2014 17:20, schrieb Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com: On Saturday, 3 May 2014 at 15:10:43 UTC, Paulo Pinto wrote: Easy, you already know that you don't need the node, just call the dispose method, instead of marking for release. But you don't know unless you

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
I can reproduce the slower-with-threads issue without using my library. I've included the source file below and would like to know if other people see the same thing. The Phobos modules are all called ustd because I couldn't/didn't know how to get this to work otherwise. So I copied the

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Andrei Alexandrescu via Digitalmars-d
On 5/3/14, 1:49 AM, Benjamin Thaut wrote: 2) Quit D. (which is becomeing more and more an option when reading the recent news group discussions.) The entire idea of starting these discussions is to gather a sense of shared vision with the community on the best direction to follow. I'm

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Andrei Alexandrescu via Digitalmars-d
On 5/3/14, 4:54 AM, Atila Neves wrote: So I tried using unit-threaded to run Phobos unit tests [snip] Thanks. Are you using thread pooling (a limited number of threads e.g. 1.5 * cores running all unittests)? -- Andrei

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Walter Bright via Digitalmars-d
On 5/3/2014 5:26 AM, Rikki Cattermole wrote: Something funky is definitely going on I bet. No doubt: http://www.youtube.com/watch?v=aZcbDESaxhY

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Walter Bright via Digitalmars-d
On 5/3/2014 10:22 AM, Atila Neves wrote: I can reproduce the slower-with-threads issue without using my library. I've included the source file below and would like to know if other people see the same thing. I haven't investigated this, but my suspicions are: 1. thread creation/destruction is

Re: GC vs Resource management.

2014-05-03 Thread Andrei Alexandrescu via Digitalmars-d
On 5/3/14, 5:39 AM, monnoroch wrote: Hey I have this global variable, if I assign a value to it and later null it, it'll call its destructor if its not referenced anywhere else. Which in turn would make me think ref counting would be a good idea. It seems, that ARC is the only way. There

Re: GC vs Resource management.

2014-05-03 Thread monarch_dodra via Digitalmars-d
On Saturday, 3 May 2014 at 18:27:46 UTC, Andrei Alexandrescu wrote: On 5/3/14, 5:39 AM, monnoroch wrote: Hey I have this global variable, if I assign a value to it and later null it, it'll call its destructor if its not referenced anywhere else. Which in turn would make me think ref counting

Re: More radical ideas about gc and reference counting

2014-05-03 Thread H. S. Teoh via Digitalmars-d
On Sat, May 03, 2014 at 11:12:36AM -0700, Andrei Alexandrescu via Digitalmars-d wrote: [...] Anyhow, just to clarify, it seems like eliminating destructor calls during GC is not a viable option. I'll define std.allocator to allow users to define such a GC if they so want, without prescribing

Re: D For A Web Developer

2014-05-03 Thread Walter Bright via Digitalmars-d
On 4/30/2014 1:36 PM, Andrei Alexandrescu wrote: One good example is networking tests - if I worked on an airplane I'd love to not test tests that need connectivity with a simple regex. I am suspicious that testing networks with a unit test is an inappropriate use of unit tests. Unit tests

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
On Saturday, 3 May 2014 at 18:26:37 UTC, Walter Bright wrote: On 5/3/2014 10:22 AM, Atila Neves wrote: I can reproduce the slower-with-threads issue without using my library. I've included the source file below and would like to know if other people see the same thing. I haven't

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
On Saturday, 3 May 2014 at 18:16:52 UTC, Andrei Alexandrescu wrote: On 5/3/14, 4:54 AM, Atila Neves wrote: So I tried using unit-threaded to run Phobos unit tests [snip] Thanks. Are you using thread pooling (a limited number of threads e.g. 1.5 * cores running all unittests)? -- Andrei I'm

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Walter Bright via Digitalmars-d
On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote: If a class has at least one member with a destructor, the compiler might need to generate a destructor for the class. And in fact that's what dmd does.

Re: Progress on Adam Wilson's Graphics API?

2014-05-03 Thread Adam Wilson via Digitalmars-d
On Sat, 03 May 2014 02:56:37 -0700, Nordlöw per.nord...@gmail.com wrote: Is there any progress on the graphics API Adam Wilson is working on? Yes. There has been progress. I am currently finishing up the DirectX 11 bindings. For now it will include everything but 3D. I am focusing on

Re: D For A Web Developer

2014-05-03 Thread Atila Neves via Digitalmars-d
On Thursday, 1 May 2014 at 10:50:12 UTC, John Colvin wrote: On Wednesday, 30 April 2014 at 19:25:40 UTC, Dicebot wrote: On Wednesday, 30 April 2014 at 19:08:15 UTC, Jacob Carlborg wrote: On 2014-04-30 11:43, Dicebot wrote: This is common complaint I still fail to understand. I have never

Re: D For A Web Developer

2014-05-03 Thread Atila Neves via Digitalmars-d
On Thursday, 1 May 2014 at 09:58:32 UTC, Jacob Carlborg wrote: On 2014-04-30 22:11, Russel Winder via Digitalmars-d wrote: This cannot be a good idea. If the block says unittest then it contains unit tests, not integration tests or system tests, just unit tests. Then we need to come up with

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Dmitry Olshansky via Digitalmars-d
03-May-2014 21:22, Atila Neves пишет: I can reproduce the slower-with-threads issue without using my library. I've included the source file below and would like to know if other people see the same thing. The Phobos modules are all called ustd because I couldn't/didn't know how to get this to

Re: GC vs Resource management.

2014-05-03 Thread monnoroch via Digitalmars-d
Interesting, we haven't explored that. The most problematic implication would be that classes with destructors will form a hierarchy separate from Object. As i understood, you want to remove dtors for non-scoped objects completely, so all classes will be without it, except user defined ones.

Re: GC vs Resource management.

2014-05-03 Thread monnoroch via Digitalmars-d
The most problematic implication would be that classes with destructors will form a hierarchy separate from Object. What for? As i understand object's dtor does nothing, so for any class we can determine, if dtor is empty. I don't see a problem here. Cycles and locks for RC are the biggest

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
if(single) { foreach(test; tests) { test(); } } else { foreach(test; tests.parallel) { Try different batch size: test.parallel(1), test.parallel(2) etc. So as to not have thread creation be disproportionately represented, I repeated the module list

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
gdc gave _very_ different results. I had to use different modules because at some point tests started failing, but with gdc the threaded version runs ~3x faster. On my own unit-threaded benchmarks, running the UTs for Cerealed over and over again was only slightly slower with threads than

Re: GC vs Resource management.

2014-05-03 Thread Michel Fortin via Digitalmars-d
On 2014-05-03 18:27:47 +, Andrei Alexandrescu seewebsiteforem...@erdani.org said: Interesting, we haven't explored that. The most problematic implication would be that classes with destructors will form a hierarchy separate from Object. Seems like people have been ignoring my two posts

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Atila Neves via Digitalmars-d
Same thing with unit_threaded on Phobos, 3x faster even without repeating the modules (0.1s vs 0.3s). Since the example is shorter than the other one, I'll post it here in case anyone else wants to try: import unit_threaded.runner; int main(string[] args) { return args.runTests!(

Re: Progress on Adam Wilson's Graphics API?

2014-05-03 Thread Nordlöw
You can follow all progress on GitHub here: https://github.com/auroragraphics/ Ok. Now I know :) Thx.

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Andrei Alexandrescu via Digitalmars-d
On 5/3/14, 12:40 PM, Walter Bright wrote: On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote: If a class has at least one member with a destructor, the compiler might need to generate a destructor for the class. And in fact that's what dmd does. Which suggests a simple solution for calling

Re: Running Phobos unit tests in threads: I have data

2014-05-03 Thread Andrei Alexandrescu via Digitalmars-d
On 5/3/14, 2:42 PM, Atila Neves wrote: gdc gave _very_ different results. I had to use different modules because at some point tests started failing, but with gdc the threaded version runs ~3x faster. On my own unit-threaded benchmarks, running the UTs for Cerealed over and over again was only

Re: Progress on Adam Wilson's Graphics API?

2014-05-03 Thread Tofu Ninja via Digitalmars-d
On Saturday, 3 May 2014 at 19:45:38 UTC, Adam Wilson wrote: Yes. There has been progress. I am currently finishing up the DirectX 11 bindings. For now it will include everything but 3D. I am focusing on Windows 2D for the moment because that is the environment I am most familiar with. Just a

Re: std.allocator: false pointers

2014-05-03 Thread safety0ff via Digitalmars-d
On Friday, 2 May 2014 at 17:15:20 UTC, Orvid King via Digitalmars-d wrote: Well, in a 64-bit address space, the false pointer issue is almost mute, the issue comes in when you try to apply this design to 32-bit, where the false pointer issue is more prevelent. Is the volume of memory saved by

Re: The Current Status of DQt

2014-05-03 Thread FrankLike via Digitalmars-d
I'm intersting for DQt is better than QML.

Re: The Current Status of DQt

2014-05-03 Thread FrankLike via Digitalmars-d
I think Get experience from QML to create a D binding to Qt, that is better than binding to QML. the Go's The programming thinking is not same to the C++,and D. DQt is Working hard more, but has significant effect for D. DQt is very clear.

Re: D For A Web Developer

2014-05-03 Thread Nick Sabalausky via Digitalmars-d
On 5/3/2014 3:32 PM, Walter Bright wrote: On 4/30/2014 1:36 PM, Andrei Alexandrescu wrote: One good example is networking tests - if I worked on an airplane I'd love to not test tests that need connectivity with a simple regex. I am suspicious that testing networks with a unit test is an

isUniformRNG

2014-05-03 Thread Nick Sabalausky via Digitalmars-d
In std.random, is the isUniformRNG intended to determine whether the given type is *some* RNG or just a *specific* form of RNG? Because I don't see any isRNG that's more general. More importantly, should a crypto RNG count as isUniformRNG?

Re: D For A Web Developer

2014-05-03 Thread Walter Bright via Digitalmars-d
On 5/3/2014 6:57 PM, Nick Sabalausky wrote: I'm not sure mock networks can really be used for testing a client-only lib of some specific protocol. There may also be other examples. There's also the question of whether or not D's unittest {...} should *expect* to be limited to tests that are

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Nick Sabalausky via Digitalmars-d
On 5/3/2014 6:44 PM, Andrei Alexandrescu wrote: On 5/3/14, 12:40 PM, Walter Bright wrote: On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote: If a class has at least one member with a destructor, the compiler might need to generate a destructor for the class. And in fact that's what dmd does.

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Jonathan M Davis via Digitalmars-d
On Sat, 03 May 2014 22:44:39 -0400 Nick Sabalausky via Digitalmars-d digitalmars-d@puremagic.com wrote: On 5/3/2014 6:44 PM, Andrei Alexandrescu wrote: On 5/3/14, 12:40 PM, Walter Bright wrote: On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote: If a class has at least one member with a

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Caligo via Digitalmars-d
On Sat, May 3, 2014 at 3:49 AM, Benjamin Thaut via Digitalmars-d digitalmars-d@puremagic.com wrote: 2) Quit D. (which is becomeing more and more an option when reading the recent news group discussions.) -- Kind Regards Benjamin Thaut I never thought I would say this, but I have begun to

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Jonathan M Davis via Digitalmars-d
On Sat, 03 May 2014 15:44:03 -0700 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 5/3/14, 12:40 PM, Walter Bright wrote: On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote: If a class has at least one member with a destructor, the compiler might need to generate a

Re: D For A Web Developer

2014-05-03 Thread Jonathan M Davis via Digitalmars-d
On Sat, 03 May 2014 19:36:53 -0700 Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 5/3/2014 6:57 PM, Nick Sabalausky wrote: I'm not sure mock networks can really be used for testing a client-only lib of some specific protocol. There may also be other examples.

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Andrei Alexandrescu via Digitalmars-d
On 5/3/14, 8:48 PM, Caligo via Digitalmars-d wrote: On Sat, May 3, 2014 at 3:49 AM, Benjamin Thaut via Digitalmars-d digitalmars-d@puremagic.com mailto:digitalmars-d@puremagic.com wrote: 2) Quit D. (which is becomeing more and more an option when reading the recent news group

Dlangui can't build x64 example1.exe , because the size_t is ulong on winx64

2014-05-03 Thread FrankLike via Digitalmars-d-learn
Hi,everyone, I build the dlangui on win7 x64,use the debug win32,it can get the example1.exe, but use the debug x64,not get the exe file,the error is Error: function pointer FreeImage_OpenMemory (ubyte* data = null, uint size_in_bytes = 0u) is not callable using argument types (ubyte*,

Re: Dlangui can't build x64 example1.exe , because the size_t is ulong on winx64

2014-05-03 Thread Rikki Cattermole via Digitalmars-d-learn
On Saturday, 3 May 2014 at 08:59:40 UTC, FrankLike wrote: Hi,everyone, I build the dlangui on win7 x64,use the debug win32,it can get the example1.exe, but use the debug x64,not get the exe file,the error is Error: function pointer FreeImage_OpenMemory (ubyte* data = null, uint

Re: Math-Parser

2014-05-03 Thread Rikki Cattermole via Digitalmars-d-learn
On Friday, 2 May 2014 at 22:34:48 UTC, Tim Holzschuh via Digitalmars-d-learn wrote: Hi there, I currently try to write a simple math-parser in D. However.. something isn't working and I just can't figure out what's the problem. (I'm relative new to D, and this is my first test to write a

Re: Math-Parser

2014-05-03 Thread Timon Gehr via Digitalmars-d-learn
On 05/03/2014 12:34 AM, Tim Holzschuh via Digitalmars-d-learn wrote: Most probably this isn't a wrong use of something D-specific Some of the problems are: @property Lexer lexer() pure { return _lexer; } If you change the result of a call to 'lexer' this will not change '_lexer'. Mark the

Re: Postblit not invokable with MyStruct(MyStruct()); ?

2014-05-03 Thread Artur Skawina via Digitalmars-d-learn
On 05/03/14 01:05, Mark Isaacson via Digitalmars-d-learn wrote: 2) I ran into this issue while attempting to leverage the postblit for code-reuse. In particular, I have a setup that is similar to: struct A { this(B b) { /* Stuff */ } } struct B { } void foo(T)(T param) { auto a

ncurses linking(?) problem on Mac OS X

2014-05-03 Thread Joakim via Digitalmars-d-learn
Hi, I am very new to D, I just started with it a week ago or so, and I haven't really been using compiled languages before (except for Java), so I'm pretty confused with the whole thing in general. ;) I try to use the ncurses library in my project using: dependencies : { ncurses :

Re: Error 42: Symbol Undefined for asserts

2014-05-03 Thread FrankLike via Digitalmars-d-learn
The problem I am running in to now is that Xamarin Studio now launches Test.pdb.exe which doesn't seem to do anything at all. Use visual d,it's simple for using pdb.exe

Re: ncurses linking(?) problem on Mac OS X

2014-05-03 Thread Mike Parker via Digitalmars-d-learn
On 5/3/2014 9:36 PM, Joakim wrote: Terminated, exit code: 2 I have no idea where to go from here to be honest. It's probably something easily fixed for someone even a tiny bit more experienced. I would love some help if anyone feels up to it. Have you actually installed

Re: Error 42: Symbol Undefined for asserts

2014-05-03 Thread Andre Steenveld via Digitalmars-d-learn
On Saturday, 3 May 2014 at 13:18:13 UTC, FrankLike wrote: The problem I am running in to now is that Xamarin Studio now launches Test.pdb.exe which doesn't seem to do anything at all. Use visual d,it's simple for using pdb.exe Which isn't really an option, Visual D is for Visual Studio

Re: ncurses linking(?) problem on Mac OS X

2014-05-03 Thread Joakim via Digitalmars-d-learn
Have you actually installed ncurses on your system? https://gist.github.com/cnruby/960344 I will try this, but I did a search/info with homebrew and it said it was not recommended because OS X already has ncurses installed by default. Something about conflicts that could possibly occur. I

Re: ncurses linking(?) problem on Mac OS X

2014-05-03 Thread Joakim via Digitalmars-d-learn
It worked perfecly. I knew I had missed something stupid. :) What confused me was the homebrew warning. Thank you for helping a newbie out. :)

Re: *** GMX Spamverdacht *** Re: Math-Parser

2014-05-03 Thread Tim Holzschuh via Digitalmars-d-learn
Am 03.05.2014 11:17, schrieb Rikki Cattermole via Digitalmars-d-learn: General suggestions: Don't commit the build ext. files along with source code and in this case they aren't needed. Mono-D can load dub.json straight. As well as the obj/bin directories. Yeah you're right, thank you. (And

Re: Math-Parser

2014-05-03 Thread Tim Holzschuh via Digitalmars-d-learn
Am 03.05.2014 13:29, schrieb Timon Gehr via Digitalmars-d-learn: @property Lexer lexer() pure { return _lexer; } If you change the result of a call to 'lexer' this will not change '_lexer'. Mark the property 'ref' or get rid of it How did I forget about Lexer being a struct is a value

Re: Math-Parser

2014-05-03 Thread Timon Gehr via Digitalmars-d-learn
On 05/03/2014 08:20 PM, Tim Holzschuh via Digitalmars-d-learn wrote: Let me know if you also want hints on how to get the logic right. Would be very nice! While 2*2 works, 2+2 throws an Error because the number-method gets an END-Token instead of a Number-Token (although I'm not sure why).

Re: Postblit not invokable with MyStruct(MyStruct()); ?

2014-05-03 Thread Mark Isaacson via Digitalmars-d-learn
What actually fails is the initialization of 'a'. Add another this(A a) { /* Stuff */ } constructor to the 'A' struct, and it will work. And, yes, the missing cpctors are a language problem. artur Thanks. Yeah, I figured I could do that, I was just hoping that I could leverage the

Error

2014-05-03 Thread Martin Bossard via Digitalmars-d-learn
I tried the following: dub install derelict but i only received the following error The 'install' Command was renamed to 'fetch'. Please update your scripts. Getting a release version failed: No package derelict was found matching the dependency =0.0.0 Retry with ~master... Fetching derelict

map!(char)(string) problem

2014-05-03 Thread David Held via Digitalmars-d-learn
import std.algorithm; int toInt(char c) { return 1; } void main() { map!(a = toInt(a))(hello); } Can someone please explain why I get this: Bug.d(10): Error: function Bug.toInt (char c) is not callable using argument types (dchar)

Re: map!(char)(string) problem

2014-05-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Sat, 03 May 2014 14:47:56 -0700 David Held via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: import std.algorithm; int toInt(char c) { return 1; } void main() { map!(a = toInt(a))(hello); } Can someone please explain why I get this: Bug.d(10): Error:

Conversion and Assignment on EnumUnion and EnumChain

2014-05-03 Thread Nordlöw
I've put up a module https://github.com/nordlow/justd/blob/master/enums.d that provides two type constructors - EnumChain - EnumUnion that can be used to combine names or names-and-values from one or more enums. I would now like to define rules for assignments and implicit conversions

[Issue 12695] New: GIT HEAD : undefined symbols when -debug specified

2014-05-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12695 Issue ID: 12695 Summary: GIT HEAD : undefined symbols when -debug specified Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression

  1   2   >