Re: Is garbage detection a thing?

2020-11-29 Thread Mark via Digitalmars-d-learn
Recovering from memory errors at run time is unreliable. I should add that I have more like a romantic view of software release cycles where testing is done until the software is in a very, very sophisticated and stable state. More than usual. Not that I want to solely rely on such an

Re: Is garbage detection a thing?

2020-11-29 Thread Mark via Digitalmars-d-learn
Elimination of memory problems is much more valuable than detection. Recovering from memory errors at run time is unreliable. I'm not sure but I have a gut feeling that I am just in a position that is not good to defend. I want small software that fails hard on weak causes, and the industry

Re: Is garbage detection a thing?

2020-11-29 Thread Mark via Digitalmars-d-learn
The reason this distinction is important, and the reason I bring up graph theory, is that liveness is impossible to prove. Seriously: it's impossible, in the general case, for the GC to prove that an object is still alive. Whereas it's trivial to prove reachability. My motivation was

Re: Is garbage detection a thing?

2020-11-29 Thread Bastiaan Veelo via Digitalmars-d-learn
On Sunday, 29 November 2020 at 16:05:04 UTC, Mark wrote: Hi, can I ask you something in general? I don't know anyone whom I could ask. I'm a hobbyist with no science degree or job in computing, and also know no other programmers. I have no good understanding why "garbage collection" is a

Re: Why are default template parameters not permitted on class templates?

2020-11-29 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 29 November 2020 at 21:52:10 UTC, JN wrote: ValueHolder v2; // error Make it `ValueHolder!()` and it works. Default template params are only considered *after* it is clear a template needs to be instantiated. `ValueHolder` by itself is just the name of the template which is

Why are default template parameters not permitted on class templates?

2020-11-29 Thread JN via Digitalmars-d-learn
class ValueHolder(T = int) { T t; } void main() { ValueHolder!int v1; ValueHolder v2; // error } onlineapp.d(9): Error: template class onlineapp.ValueHolder(T = int) is used as a type without instantiation; to instantiate it use ValueHolder!(arguments)

Re: Is garbage detection a thing?

2020-11-29 Thread Elronnd via Digitalmars-d-learn
On Sunday, 29 November 2020 at 16:05:04 UTC, Mark wrote: I have no good understanding why "garbage collection" is a big thing and why "garbage detection" is no thing (I think so). Because it's just as expensive to do garbage detection as automatic garbage collection. So if you're going to go

Re: How to bundle a GtkD application for Windows

2020-11-29 Thread Jack via Digitalmars-d-learn
On Sunday, 29 November 2020 at 20:08:33 UTC, adnan449 wrote: Hello, I would be greatly thankful if I was given an easy guide on how to produce windows executables for GtkD applications. I do not have an access to a windows machine but I need to be able to produce installers/exe files for the

Re: list dll from Gtk executable build with dmd not working

2020-11-29 Thread Jack via Digitalmars-d-learn
On Saturday, 28 November 2020 at 15:58:57 UTC, Jack wrote: So I build a Gtk executable with dmd, following this[1] tutorial but no tool ldd, nlldd, listdlls[2], dependencies[3] list the gtk's dlls that the executable, as far I know, depends on to run, hence the need to install the Gtk

Re: How to bundle a GtkD application for Windows

2020-11-29 Thread adnan449 via Digitalmars-d-learn
On Sunday, 29 November 2020 at 20:08:33 UTC, adnan449 wrote: Hello, I would be greatly thankful if I was given an easy guide on how to produce windows executables for GtkD applications. I do not have an access to a windows machine but I need to be able to produce installers/exe files for the

Re: Is garbage detection a thing?

2020-11-29 Thread Daniel N via Digitalmars-d-learn
On Sunday, 29 November 2020 at 16:35:26 UTC, Mark wrote: Maybe I should just install Linux. But ... the drivers... My Thinkpad just doesn't like any Linux. I run out of ideas. In the first place all I wanted to do is make some music. Kind regards You could try a linux image in VirtualBox

How to bundle a GtkD application for Windows

2020-11-29 Thread adnan449 via Digitalmars-d-learn
Hello, I would be greatly thankful if I was given an easy guide on how to produce windows executables for GtkD applications. I do not have an access to a windows machine but I need to be able to produce installers/exe files for the windows users. Users should not have to install any

Re: Is garbage detection a thing?

2020-11-29 Thread Mark via Digitalmars-d-learn
Looking at Ada now. I found: Ada is not good for me. It has no augmented assignment. It's just that I want DRY because I use very verbose variable names, and in the past I had a real world case (game in Lua) where I became frustrated when I had to repeat the names. I understand that NASA or

Re: vibe.d and my first web service

2020-11-29 Thread James Blachly via Digitalmars-d-learn
On 11/27/20 12:05 PM, Steven Schveighoffer wrote: FYI, this bug was just fixed (eventcore version 0.9.11). I tested it and it works. Thanks Sönke for fixing this! -Steve https://github.com/vibe-d/vibe-core/issues/205 Hooray and congrats to Soenke and team!

Re: Is garbage detection a thing?

2020-11-29 Thread Mark via Digitalmars-d-learn
I could use AddressSanitizer indirectly by using Go. But their Oh wait, it was ThreadSanitizer that Go uses, right? I failed at talking. I would probably use ASAN under Linux, because that is the right thing to do? Looking at Ada now.

Re: Is garbage detection a thing?

2020-11-29 Thread Mark via Digitalmars-d-learn
On Sunday, 29 November 2020 at 16:21:59 UTC, Daniel N wrote: On Sunday, 29 November 2020 at 16:05:04 UTC, Mark wrote: Thanks a lot for reading, and sorry for a lot of text that is off-topic and is not related to D. Sounds like what you want is ASAN? You can use it with plain C or D(LDC).

Re: Is garbage detection a thing?

2020-11-29 Thread Kagamin via Digitalmars-d-learn
Maybe Ada.

Re: Is garbage detection a thing?

2020-11-29 Thread Daniel N via Digitalmars-d-learn
On Sunday, 29 November 2020 at 16:05:04 UTC, Mark wrote: Thanks a lot for reading, and sorry for a lot of text that is off-topic and is not related to D. Sounds like what you want is ASAN? You can use it with plain C or D(LDC). https://clang.llvm.org/docs/AddressSanitizer.html

Is garbage detection a thing?

2020-11-29 Thread Mark via Digitalmars-d-learn
Hi, can I ask you something in general? I don't know anyone whom I could ask. I'm a hobbyist with no science degree or job in computing, and also know no other programmers. I have no good understanding why "garbage collection" is a big thing and why "garbage detection" is no thing (I think