Re: OT: Behaviour of Experienced Programmers Towards Newcomers

2018-03-18 Thread Amorphorious via Digitalmars-d
On Saturday, 17 March 2018 at 10:28:27 UTC, Joakim wrote: On Saturday, 17 March 2018 at 07:01:53 UTC, rumbu wrote: On Saturday, 17 March 2018 at 06:46:17 UTC, Uknown wrote: I haven't really noticed any of what he mentions in the D community 3 days ago:

Re: how to make private class member private

2018-03-17 Thread Amorphorious via Digitalmars-d-learn
On Saturday, 17 March 2018 at 23:54:22 UTC, psychoticRabbit wrote: On Saturday, 17 March 2018 at 21:33:01 UTC, Adam D. Ruppe wrote: On Saturday, 17 March 2018 at 21:22:44 UTC, arturg wrote: maybe extend that to a list of types? this is basically what C++ friend does and D was trying to

Re: how to make private class member private

2018-03-13 Thread Amorphorious via Digitalmars-d-learn
On Wednesday, 14 March 2018 at 01:41:33 UTC, psychoticRabbit wrote: On Tuesday, 13 March 2018 at 21:38:59 UTC, Amorphorious wrote: You are a moron...etc..etc..etc..etc. See. This is what happens when you have access to a keyboard while high on ice. Yep. So maybe you should

Re: how to make private class member private

2018-03-13 Thread Amorphorious via Digitalmars-d-learn
On Tuesday, 13 March 2018 at 06:10:26 UTC, psychoticRabbit wrote: On Tuesday, 13 March 2018 at 05:35:30 UTC, Amorphorious wrote: There is another problem: 3rd: You are a brainwashed monkey who can't think for himself. Gee..takes some real brains to come up with that one. See, You learned

Re: how to make private class member private

2018-03-12 Thread Amorphorious via Digitalmars-d-learn
On Tuesday, 13 March 2018 at 05:11:48 UTC, psychoticRabbit wrote: On Tuesday, 13 March 2018 at 02:24:38 UTC, Mike Parker wrote: On Tuesday, 13 March 2018 at 02:06:57 UTC, psychoticRabbit wrote: Mmm.. I don't think I like it. I feel you should be able to make a member of a class, private,

Granular GC

2018-03-10 Thread Amorphorious via Digitalmars-d
The GC sucks because it requires one to use it or jump through many hoops and unsafe techniques to get away from it. It would be better if we simply had more control over the GC. 1. Allow for granular GC - Multiple independent GC's that handle independent parts of the D ecosystem each of

Re: D-dll support: testers needed round 2

2018-02-11 Thread Amorphorious via Digitalmars-d
On Saturday, 10 February 2018 at 12:34:03 UTC, Benjamin Thaut wrote: On Saturday, 10 February 2018 at 02:24:58 UTC, rikki cattermole wrote: On 09/02/2018 8:34 PM, Benjamin Thaut wrote: -import switch makes me a little concerned, what exactly is it changing that makes it required? Thank you

Re: Somewhat OT: defining algebras in D

2018-02-09 Thread Amorphorious via Digitalmars-d
On Friday, 9 February 2018 at 17:10:11 UTC, Simen Kjærås wrote: On Friday, 9 February 2018 at 15:45:11 UTC, Amorphorious wrote: On Friday, 9 February 2018 at 02:40:06 UTC, Nick Sabalausky (Abscissa) wrote: Well, that's the difference between a formal library package release vs sharing a

Re: Somewhat OT: defining algebras in D

2018-02-09 Thread Amorphorious via Digitalmars-d
On Friday, 9 February 2018 at 02:40:06 UTC, Nick Sabalausky (Abscissa) wrote: On 02/08/2018 04:37 PM, Amorphorious wrote: On Thursday, 8 February 2018 at 15:23:05 UTC, Simen Kjærås wrote: So I was bored in a meeting and decided to implement a generic template for defining complex numbers, dual

NewCTFE dead?

2018-02-09 Thread Amorphorious via Digitalmars-d
Haven't seen anything about this in a while, is it dead?

Re: Somewhat OT: defining algebras in D

2018-02-08 Thread Amorphorious via Digitalmars-d
On Thursday, 8 February 2018 at 15:23:05 UTC, Simen Kjærås wrote: So I was bored in a meeting and decided to implement a generic template for defining complex numbers, dual numbers, quaternions and many other possible algebras by simply defining a set of rules and the components on which they

Re: The daily D riddle

2018-01-31 Thread Amorphorious via Digitalmars-d
On Sunday, 28 January 2018 at 06:44:40 UTC, Jonathan M Davis wrote: On Sunday, January 28, 2018 08:25:51 Shachar Shemesh via Digitalmars-d wrote: What will the following code print? Do not use the compiler: import std.stdio; struct A { int a = 1; void initialize() { a = a.init; }

Re: DMD as a library package can now run through all semantic phases

2018-01-29 Thread Amorphorious via Digitalmars-d
On Tuesday, 30 January 2018 at 04:31:43 UTC, rikki cattermole wrote: On 30/01/2018 4:21 AM, EntangledQuanta wrote: On Tuesday, 30 January 2018 at 02:04:30 UTC, H. S. Teoh wrote: On Tue, Jan 30, 2018 at 01:20:02AM +, Bastiaan Veelo via Digitalmars-d wrote: On Tuesday, 30 January 2018 at

Re: DMD as a library package can now run through all semantic phases

2018-01-29 Thread Amorphorious via Digitalmars-d
On Friday, 26 January 2018 at 18:40:23 UTC, Seb wrote: In case someone wants to play with DMD as a library, it got a lot easier as of today. Here's an example: ``` #!/usr/bin/env dub /+dub.sdl: dependency "dmd" version="~master" +/ void main() { import dmd.frontend; import

Re: Interfacing with webcam

2018-01-11 Thread Amorphorious via Digitalmars-d-learn
On Tuesday, 30 September 2014 at 03:41:20 UTC, Kyle wrote: Hi, Has anyone successfully used D to capture images from a webcam? Something like what you can do with OpenCV or pygame's camera API? Any idea how I can do this without having to know a lot of complex stuff? Thanks! Looking for

Re: Any free stock market data API?

2018-01-04 Thread Amorphorious via Digitalmars-d-learn
On Thursday, 4 January 2018 at 23:04:44 UTC, Amorphorious wrote: Most are in other languages: https://www.alphavantage.co/ https://iextrading.com/ are two free ones. I'm just hoping for a more D'ish solution. http://www.quantmod.com/ I'm wondering if I can use something like alphavantage

Any free stock market data API?

2018-01-04 Thread Amorphorious via Digitalmars-d-learn
Most are in other languages: https://www.alphavantage.co/ https://iextrading.com/ are two free ones. I'm just hoping for a more D'ish solution.

Re: VisualD temp D variables showing up

2017-12-29 Thread Amorphorious via Digitalmars-d-debugger
Also, when I put a BP on an if statement it is not hit and Visual D says that no symbols have been loaded for the document. If I put the BP on a line that isn't an if statement, it hits the BP fine.

Re: VisualD temp D variables showing up

2017-12-29 Thread Amorphorious via Digitalmars-d-debugger
On Friday, 29 December 2017 at 11:25:09 UTC, Amorphorious wrote: I am computing equations involving ^^ and about 90%, around 40, temp variables are showing up in the locals window. __powtmp5173.712227326 double __powtmp5174.3275114687 double

VisualD temp D variables showing up

2017-12-29 Thread Amorphorious via Digitalmars-d-debugger
I am computing equations involving ^^ and about 90%, around 40, temp variables are showing up in the locals window. __powtmp5173.712227326 double __powtmp5174.3275114687 double __powtmp51751 double dist

Re: Maybe D is right about GC after all !

2017-12-27 Thread Amorphorious via Digitalmars-d
On Tuesday, 19 December 2017 at 09:54:05 UTC, Walter Bright wrote: "C, Python, Go, and the Generalized Greenspun Law" http://esr.ibiblio.org/?p=7804 "Maybe D is right about GC after all" or maybe not...

Re: arsd simpledisplay opengl 3d

2017-12-26 Thread Amorphorious via Digitalmars-d-learn
Thanks. It's working. Seems like either it was the drawing code or the setting one of the setup conditions.

arsd simpledisplay opengl 3d

2017-12-26 Thread Amorphorious via Digitalmars-d-learn
Hi Adam, I'm interested in using your simpledisplay for 3D in openGL. I have worked with 2D fine but 3D is problemattic. I cannot get any depth even though i have set up 3D mode by modifying gamehelpers: SimpleWindow create2dWindow(int width = 512, int height = 512, int viewportWidth=512,

Re: Compile to non-OS binary

2017-12-24 Thread Amorphorious via Digitalmars-d-learn
On Sunday, 24 December 2017 at 03:24:36 UTC, Adam D. Ruppe wrote: On Sunday, 24 December 2017 at 03:15:58 UTC, Amorphorious wrote: In fact, it would be very helpful to have switches that disable the various "features" of D that I will not use rather than having to do any self compilation.

betterC current consequences

2017-12-24 Thread Amorphorious via Digitalmars-d-learn
The docs states Consequences As no Druntime is available, many D features won't work. For example: Garbage Collection Thread-local storage TypeInfo and ModuleInfo Classes Built-in threading (e.g. core.thread) Dynamic arrays (but not slices) and associative arrays

Re: Compile to non-OS binary

2017-12-23 Thread Amorphorious via Digitalmars-d-learn
Premature send(tabs?!?! ;/) void main() { version(BIOS) { import iBIOS; BIOSOut("Hello World"); } else { writeln("Hello World"); } } When compiled appropriately will create a bootable executable that displays the string. Else will create an OS specific

Compile to non-OS binary

2017-12-23 Thread Amorphorious via Digitalmars-d-learn
I would like to compile D for the different supported architectures only without and OS, C lib, D lib, or GC code. For example, as a boot loader or even bios binary. In fact, it would be very helpful to have switches that disable the various "features" of D that I will not use rather than