Re: ARM Cortex-M Microcontroller startup files

2015-05-02 Thread Mike via Digitalmars-d
On Saturday, 2 May 2015 at 21:53:42 UTC, Martin Nowak wrote: I never even needed dynamic memory allocation on a microcontroller. For many typical uses of microcontrollers this is absolutely true. However, the 32-bit microcontrollers from ARM are much more powerful than the likes of AVR

Re: Ada to D - an array for storing values of each of the six bits which are sufficient

2015-05-02 Thread Dennis Ritchie via Digitalmars-d-learn
On Friday, 1 May 2015 at 23:22:31 UTC, Dennis Ritchie wrote: Maybe someone will show a primitive packed array. I really can not imagine how to do it on D. Maybe you can somehow use bitfields. While what happened is something like this: - import std.stdio, std.bitmanip;

Re: ARM Cortex-M Microcontroller startup files

2015-05-02 Thread Jens Bauer via Digitalmars-d
On Saturday, 2 May 2015 at 21:53:42 UTC, Martin Nowak wrote: On Saturday, 2 May 2015 at 15:15:50 UTC, Jens Bauer wrote: Will it be possible to have associative arrays without garbage collection ? You can write an AA container. A RefCounted AA implementation might allow unsafe escaping

Re: GTA5 mods in D?

2015-05-02 Thread Israel via Digitalmars-d
On Saturday, 2 May 2015 at 20:38:11 UTC, w0rp wrote: If it's a C API, you can use it from D. You just need to write the bindings to the library to use it with some extern(C) functions. If it's a C++ API, you can kind of sort of use it from D, mileage may vary. It's a shame Rockstar is

Re: [your code here] Rounding real numbers

2015-05-02 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 2 May 2015 at 22:23:01 UTC, Andrei Alexandrescu wrote: On Friday, 1 May 2015 at 17:17:09 UTC, Justin Whear wrote: A process for rounding numbers. Thanks Justin. Could someone take this? We don't have PHP code for rotating examples randomly yet. -- Andrei Doesn't need to be

Re: The hackathon week roundup

2015-05-02 Thread Mike via Digitalmars-d
On Saturday, 2 May 2015 at 23:02:05 UTC, Andrei Alexandrescu wrote: I'm looking into ways to make this more interactive (google hangouts?) and more fun (contests? prizes? etc). Chime in! My idea: 1. Members of the D leadership/committers form a working group. 2. The working group creates of

Re: The hackathon week roundup

2015-05-02 Thread Mike via Digitalmars-d-announce
On Saturday, 2 May 2015 at 23:02:05 UTC, Andrei Alexandrescu wrote: I'm looking into ways to make this more interactive (google hangouts?) and more fun (contests? prizes? etc). Chime in! My idea: 1. Members of the D leadership/committers form a working group. 2. The working group creates of

Re: The hackathon week roundup

2015-05-02 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/2/15 4:50 PM, Ilya Yaroshenko wrote: * Tutorial: http://d.readthedocs.org (btw should we link that from the homepage?) May I transfer the repositories (both GitHub and RTD) to the D-Programming-Language community? That'd be a fine idea. Thoughts from Walter, Martin et al? -- Andrei

Re: The hackathon week roundup

2015-05-02 Thread Andrei Alexandrescu via Digitalmars-d
On 5/2/15 4:50 PM, Ilya Yaroshenko wrote: * Tutorial: http://d.readthedocs.org (btw should we link that from the homepage?) May I transfer the repositories (both GitHub and RTD) to the D-Programming-Language community? That'd be a fine idea. Thoughts from Walter, Martin et al? -- Andrei

Re: The hackathon week roundup

2015-05-02 Thread Walter Bright via Digitalmars-d-announce
On 5/2/2015 5:12 PM, Andrei Alexandrescu wrote: On 5/2/15 4:50 PM, Ilya Yaroshenko wrote: * Tutorial: http://d.readthedocs.org (btw should we link that from the homepage?) May I transfer the repositories (both GitHub and RTD) to the D-Programming-Language community? That'd be a fine idea.

Re: The hackathon week roundup

2015-05-02 Thread Walter Bright via Digitalmars-d
On 5/2/2015 5:12 PM, Andrei Alexandrescu wrote: On 5/2/15 4:50 PM, Ilya Yaroshenko wrote: * Tutorial: http://d.readthedocs.org (btw should we link that from the homepage?) May I transfer the repositories (both GitHub and RTD) to the D-Programming-Language community? That'd be a fine idea.

Re: ARM Cortex-M Microcontroller startup files

2015-05-02 Thread Jens Bauer via Digitalmars-d
On Sunday, 3 May 2015 at 00:59:07 UTC, Mike wrote: On Saturday, 2 May 2015 at 21:53:42 UTC, Martin Nowak wrote: {snip} these 32-bit ARM chips have processing power to spare. Definitely. Even though they might only be running between 100 and 200 MHz, they're much more powerful than the

Re: ARM Cortex-M Microcontroller startup files

2015-05-02 Thread Jens Bauer via Digitalmars-d
On Sunday, 3 May 2015 at 01:57:45 UTC, Jens Bauer wrote: {snip} the overhead per block was only a single bit + the malloc header. Correction: The overhead was a single bit + 1/128 of the malloc header, because we had 128 blocks per cluster. Thus if having a cluster of 32 blocks, the overhead

Re: How to I translate this C++ structure/array

2015-05-02 Thread WhatMeWorry via Digitalmars-d-learn
On Saturday, 2 May 2015 at 22:36:29 UTC, anonymous wrote: On Saturday, 2 May 2015 at 22:01:10 UTC, WhatMeWorry wrote: struct Vertex { vec3 position; vec3 color; } Vertex triangle[6] = [ vec3(0.0, 1.0, 0.0), vec3(1.0, 0.0, 0.0), // red //

Re: The hackathon week roundup

2015-05-02 Thread Rikki Cattermole via Digitalmars-d-announce
On 3/05/2015 1:27 p.m., Walter Bright wrote: On 5/2/2015 5:12 PM, Andrei Alexandrescu wrote: On 5/2/15 4:50 PM, Ilya Yaroshenko wrote: * Tutorial: http://d.readthedocs.org (btw should we link that from the homepage?) May I transfer the repositories (both GitHub and RTD) to the

Re: The hackathon week roundup

2015-05-02 Thread Rikki Cattermole via Digitalmars-d
On 3/05/2015 1:27 p.m., Walter Bright wrote: On 5/2/2015 5:12 PM, Andrei Alexandrescu wrote: On 5/2/15 4:50 PM, Ilya Yaroshenko wrote: * Tutorial: http://d.readthedocs.org (btw should we link that from the homepage?) May I transfer the repositories (both GitHub and RTD) to the

Re: [your code here] Rounding real numbers

2015-05-02 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 3 May 2015 at 02:48:32 UTC, Vladimir Panteleev wrote: Doesn't need to be PHP could also be D

Re: The hackathon week roundup

2015-05-02 Thread Andrei Alexandrescu via Digitalmars-d
On 5/2/15 6:27 PM, Walter Bright wrote: On 5/2/2015 5:12 PM, Andrei Alexandrescu wrote: On 5/2/15 4:50 PM, Ilya Yaroshenko wrote: * Tutorial: http://d.readthedocs.org (btw should we link that from the homepage?) May I transfer the repositories (both GitHub and RTD) to the

Re: [your code here] Rounding real numbers

2015-05-02 Thread Andrei Alexandrescu via Digitalmars-d
On 5/2/15 7:48 PM, Vladimir Panteleev wrote: On Saturday, 2 May 2015 at 22:23:01 UTC, Andrei Alexandrescu wrote: On Friday, 1 May 2015 at 17:17:09 UTC, Justin Whear wrote: A process for rounding numbers. Thanks Justin. Could someone take this? We don't have PHP code for rotating examples

Re: [your code here] Rounding real numbers

2015-05-02 Thread Andrei Alexandrescu via Digitalmars-d
On 5/2/15 7:51 PM, Adam D. Ruppe wrote: On Sunday, 3 May 2015 at 02:48:32 UTC, Vladimir Panteleev wrote: Doesn't need to be PHP could also be D code or it didn't happen -- Andrei

Re: The hackathon week roundup

2015-05-02 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/2/15 6:27 PM, Walter Bright wrote: On 5/2/2015 5:12 PM, Andrei Alexandrescu wrote: On 5/2/15 4:50 PM, Ilya Yaroshenko wrote: * Tutorial: http://d.readthedocs.org (btw should we link that from the homepage?) May I transfer the repositories (both GitHub and RTD) to the

Re: The most awesome forward to member solution?

2015-05-02 Thread Andrei Alexandrescu via Digitalmars-d
On 5/2/15 5:42 PM, Meta wrote: On Sunday, 3 May 2015 at 00:25:13 UTC, Dicebot wrote: Sounds similar to http://dlang.org/phobos/std_typecons.html#.Proxy That's a good idea. Proxy could be improved to take a list of names of members to forward. That'd be pretty cool actually. Here's what I

<    1   2