Re: State of D for webassembly

2021-05-17 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 17 May 2021 at 20:38:12 UTC, Chris Piker wrote: What is the general state of support for GC dependent D-code running as webassembly? If the runtime is not ready that's okay, just wanted to inquire about the state of things. There is a partial port of full runtime but it is still

State of D for webassembly

2021-05-17 Thread Chris Piker via Digitalmars-d-learn
Hi D Our group has some spectragram (aka dynamic spectra) creation algorithms that are fast in Java and since D has many Java-ish concepts it looks like it would be do-able to port the code to D. If I take on this project my target would be to run as a webassembly program. What is the

Re: PyD - accessing D class fields in Python

2021-05-17 Thread mw via Digitalmars-d-learn
On Monday, 17 May 2021 at 17:16:27 UTC, Imperatorn wrote: On Monday, 17 May 2021 at 16:54:07 UTC, mw wrote: On Tuesday, 19 March 2019 at 23:58:48 UTC, Bastiaan Veelo wrote: [...] I filed the issue here (still no response yet): https://github.com/ariovistus/pyd/issues/152 [...]

Re: ugly and/or useless features in the language.

2021-05-17 Thread Berni44 via Digitalmars-d-learn
On Saturday, 15 May 2021 at 14:31:08 UTC, Alain De Vos wrote: Which parts in dlang don't you use and why? There is one feature (actually a mix of features) I'd be happy not to use, but it is not possible: I call it autoreals, because it resembles somewhat the idea behind autodecoding - in

Re: DMC + Win32Api: Error: undefined identifier 'SetDCBrushColor'

2021-05-17 Thread Marcone via Digitalmars-d-learn
Why gdi32.lib in dmc is not a Valid Library File?

Re: Anyone tried?

2021-05-17 Thread Ali Çehreli via Digitalmars-d-learn
On 5/17/21 10:49 AM, Imperatorn wrote: https://www.educative.io/courses/programming-in-d-ultimate-guide That's the interactive version of (first half of) "Programming in D"[1]. The entire conversion was done by Educative and some editing was added by them. The main difference is the ability

Re: Encryption

2021-05-17 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can copy the password. I haven't done this

Anyone tried?

2021-05-17 Thread Imperatorn via Digitalmars-d-learn
https://www.educative.io/courses/programming-in-d-ultimate-guide

Re: PyD - accessing D class fields in Python

2021-05-17 Thread Imperatorn via Digitalmars-d-learn
On Monday, 17 May 2021 at 16:54:07 UTC, mw wrote: On Tuesday, 19 March 2019 at 23:58:48 UTC, Bastiaan Veelo wrote: [...] I filed the issue here (still no response yet): https://github.com/ariovistus/pyd/issues/152 [...] https://github.com/symmetryinvestments/autowrap

Re: Encryption

2021-05-17 Thread mw via Digitalmars-d-learn
On Monday, 17 May 2021 at 17:08:41 UTC, noid wrote: On Monday, 17 May 2021 at 17:03:39 UTC, Imperatorn wrote: On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example

Re: Encryption

2021-05-17 Thread noid via Digitalmars-d-learn
On Monday, 17 May 2021 at 16:59:28 UTC, mw wrote: On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can

Re: Encryption

2021-05-17 Thread noid via Digitalmars-d-learn
On Monday, 17 May 2021 at 17:03:39 UTC, Imperatorn wrote: On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so

Re: Encryption

2021-05-17 Thread Imperatorn via Digitalmars-d-learn
On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can copy the password. I couldn't find any way of

Re: Encryption

2021-05-17 Thread mw via Digitalmars-d-learn
On Monday, 17 May 2021 at 16:54:18 UTC, noid wrote: Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can copy the password. I couldn't find any way of

Encryption

2021-05-17 Thread noid via Digitalmars-d-learn
Hi! I am pretty new on Dlang and I wanted to make a small password manager that used some sort of encryption on a file (for example AES256) and save a password to decrypt it later, so you can copy the password. I couldn't find any way of doing encryption on Dlang, is there a lib that's better

Re: PyD - accessing D class fields in Python

2021-05-17 Thread mw via Digitalmars-d-learn
On Tuesday, 19 March 2019 at 23:58:48 UTC, Bastiaan Veelo wrote: On Monday, 18 March 2019 at 22:25:10 UTC, clothlen wrote: Howdy; I'm trying to extend my Python program with D, but I'm having trouble accessing a D class's field/attribute/property/something. My D file looks like this: ```

Re: property functions

2021-05-17 Thread Nick via Digitalmars-d-learn
On Sunday, 16 May 2021 at 15:47:55 UTC, Adam D. Ruppe wrote: On Sunday, 16 May 2021 at 15:12:25 UTC, Nick wrote: Is this warning still valid? The @property thing doesn't do much. All it does is change typeof(a.prop) from function over to the return value of the function. (Which actually

Re: ugly and/or useless features in the language.

2021-05-17 Thread Ola Fosheim Grostad via Digitalmars-d-learn
On Sunday, 16 May 2021 at 16:16:22 UTC, H. S. Teoh wrote: I cannot live without auto return types and Voldemort types. They are my bread and butter. Take them away, and I might as well go back to C/C++. C++ has both? What I find ugly: - shared, and all of its quirks and incomplete

Re: property functions

2021-05-17 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 17 May 2021 at 14:56:21 UTC, Steven Schveighoffer wrote: It used to be required, but we removed that requirement a long time ago. yeah i remember ElementType required it last time i checked but that was a while ago indeed it is all fixed now

Re: property functions

2021-05-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/16/21 11:47 AM, Adam D. Ruppe wrote: On Sunday, 16 May 2021 at 15:12:25 UTC, Nick wrote: Is this warning still valid? The @property thing doesn't do much. All it does is change typeof(a.prop) from function over to the return value of the function. (Which actually makes it required for

Re: dual-context deprecation

2021-05-17 Thread jmh530 via Digitalmars-d-learn
On Monday, 17 May 2021 at 14:35:51 UTC, Steven Schveighoffer wrote: [snip] The feature is deprecated in its current form. The issue as I understand it (i.e. very little) is that compilers other than DMD could not use this same way to implement dual contexts, and so they could not have the

Re: dual-context deprecation

2021-05-17 Thread 12345swordy via Digitalmars-d-learn
On Monday, 17 May 2021 at 14:35:51 UTC, Steven Schveighoffer wrote: On 5/17/21 9:47 AM, jmh530 wrote: The code below (simplified from my actual problem) generates a warning that member function b "requires a dual-context, which is deprecated". However when I look at the list of deprecated

Re: dual-context deprecation

2021-05-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/17/21 9:47 AM, jmh530 wrote: The code below (simplified from my actual problem) generates a warning that member function b "requires a dual-context, which is deprecated". However when I look at the list of deprecated features [1], I'm not seeing which one this is referring to. Is it a

Re: dual-context deprecation

2021-05-17 Thread jmh530 via Digitalmars-d-learn
On Monday, 17 May 2021 at 13:51:32 UTC, Paul Backus wrote: [snip] See this issue for context: https://issues.dlang.org/show_bug.cgi?id=5710 Thanks. Lots of details there that I don't follow all of. I mentioned in the deprecation PR [1] that it was not listed in the list of deprecated

Re: dual-context deprecation

2021-05-17 Thread Paul Backus via Digitalmars-d-learn
On Monday, 17 May 2021 at 13:47:28 UTC, jmh530 wrote: The code below (simplified from my actual problem) generates a warning that member function b "requires a dual-context, which is deprecated". However when I look at the list of deprecated features [1], I'm not seeing which one this is

dual-context deprecation

2021-05-17 Thread jmh530 via Digitalmars-d-learn
The code below (simplified from my actual problem) generates a warning that member function b "requires a dual-context, which is deprecated". However when I look at the list of deprecated features [1], I'm not seeing which one this is referring to. Is it a valid deprecation? I could only

Re: stack out of scope ?

2021-05-17 Thread Alain De Vos via Digitalmars-d-learn
I now compile with the following flags, ``` # DIP25 , return ref # DIP1000 , scoped pointers # --boundscheck=on , perform array bounds check # --safe-stack-layout , enable safe stack layout #--D , generate documentation, #--g , symbolic debug info #--d-debug ,it enables all debug checks (i.e.

Re: stack out of scope ?

2021-05-17 Thread Alain De Vos via Digitalmars-d-learn
Thanks. Alot of info,but the flag dip1000 is not show in help hidden. The solution seems to be compiling with flag dip1000 and putting @safe on top on the file then all the errors are catched by the compiler.