Re: ESA's Schiaparelli Mars probe crashed because of integer overflow

2016-11-25 Thread Alix Pexton via Digitalmars-d
On 25/11/2016 07:14, Patrick Schluter wrote: On Thursday, 24 November 2016 at 20:22:00 UTC, Timon Gehr wrote: On 24.11.2016 20:49, qznc wrote: Although, the article [0] does not say that literally, it sounds like an integer overflow: After trawling through mountains of data, the European

Re: unit-threaded v0.6.26 - advanced unit testing in D with new features

2016-08-08 Thread Alix Pexton via Digitalmars-d-announce
On 08/08/2016 08:37, Atila Neves wrote: On Saturday, 6 August 2016 at 10:34:52 UTC, Nicholas Wilson wrote: On Friday, 5 August 2016 at 15:31:34 UTC, Atila Neves wrote: https://code.dlang.org/packages/unit-threaded What's new: . Mocking support. Classes, interfaces and structs can be mocked

Re: Card on fire

2016-07-16 Thread Alix Pexton via Digitalmars-d
On 16/07/2016 01:02, Walter Bright wrote: The Ubuntu printer install isn't any better than Microsoft's. I wonder what it is about printers. I can plug in USB drives, internal drives, all sorts of things, and they just work. Even when it's working, the simplest things fail. I learned to never

Re: The Case Against Autodecode

2016-06-04 Thread Alix Pexton via Digitalmars-d
On 03/06/2016 20:12, Dmitry Olshansky wrote: On 02-Jun-2016 23:27, Walter Bright wrote: I wonder what rationale there is for Unicode to have two different sequences of codepoints be treated as the same. It's madness. Yeah, Unicode was not meant to be easy it seems. Or this is whatever

Re: Please vote for the DConf logo

2015-11-14 Thread Alix Pexton via Digitalmars-d-announce
On 13/11/2015 14:52, anonymous wrote: I/we should make an SVG version that uses paths instead of , so that it doesn't depend on a local font. Maybe agree on the font first, though. With the chosen font installed ("Droid Sans", Apache 2.0 licence) the text balances well (or at least better

Re: Please vote for the DConf logo

2015-11-04 Thread Alix Pexton via Digitalmars-d-announce
On 04/11/2015 09:30, Andrei Alexandrescu wrote: Reply to this with 1.1, 1.2, 2, or 3: 1) by ponce: Variant 1: https://github.com/p0nce/dconf.org/blob/master/2016/images/logo-sample.png Variant 2:

Re: Rant after trying Rust a bit

2015-07-26 Thread Alix Pexton via Digitalmars-d
On 25/07/2015 9:48 PM, Walter Bright wrote: Unfortunately, Bruce Eckel's seminal article on it http://www.mindview.net/Etc/Discussions/CheckedExceptions has disappeared. Eckel is not a Java code monkey, he wrote the book Thinking In Java http://www.amazon.com/gp/product/0131002872/

Re: Voting for std.experimental.allocator

2015-07-10 Thread Alix Pexton via Digitalmars-d-announce
Yes!

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-14 Thread Alix Pexton via Digitalmars-d
On 12/06/2015 12:48 PM, Chris wrote: man is still used as a gender neutral pronoun in German, however, for some reason it's frowned upon these days, just like one in English. It's considered arrogant and old fashioned, but it's effin useful and solves a lot of problems. Mind you, decisions made

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-14 Thread Alix Pexton via Digitalmars-d
On 12/06/2015 10:37 PM, Nick Sabalausky wrote: Yea, I'm fine with ain't being considered an actual word. Years ago, I used to hear a lot of 'Ain't' isn't a real word, but meh, it's used as a word, even the people who don't like it still know full-well exactly what it means, so...I ain't got a

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-12 Thread Alix Pexton via Digitalmars-d
On 12/06/2015 2:53 AM, Walter Bright wrote: On 6/10/2015 12:56 PM, Russel Winder via Digitalmars-d wrote: Please note, OED (which is the definition of the English language whatever any USA upstarts may try to pretend) is gearing up to define they as both singular and plural, thus at a stroke

Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-12 Thread Alix Pexton via Digitalmars-d
On 11/06/2015 2:30 AM, weaselcat wrote: On Thursday, 11 June 2015 at 00:57:34 UTC, Tofu Ninja wrote: On Wednesday, 10 June 2015 at 20:14:10 UTC, Nick Sabalausky wrote: Contrary to technical official definition, in REAL WORLD usage, he is BOTH a masuline AND a gender-neutral pronoun. A few

Re: dec64 decimal floating point type

2015-04-01 Thread Alix Pexton via Digitalmars-d
On 31/03/2015 7:22 PM, Gary Willoughby wrote: This is an old thread but does any one know if any decimal types were ever implemented? I set off trying to implement DEC64 based on the halffloat module, but never got very far. My main problem is that the assembler in the reference

Re: [OT] HTML: div/iframe hybrid?

2015-02-26 Thread Alix Pexton via Digitalmars-d
On 25/02/2015 9:55 PM, Nick Sabalausky wrote: (Pardon the ot, but I know there are other webdevs here). For various reasons, I like to keep my html...uhh...let's say non-bleeding-edge :), downside of course being I tend to not be quite as up on what's out there as I should be. So just tossing

Re: Redesign of gdcproject.org

2014-08-01 Thread Alix Pexton via Digitalmars-d
On 01/08/2014 10:15 AM, tn wrote: On Monday, 28 July 2014 at 10:27:02 UTC, Iain Buclaw wrote: - GDC's homepage is now getting a UI update. Staging area for the new look is found here: http://staging.dgnu.org I think the old logo was better. The new one looks weird, like it was unfinished.

Re: ddoc and CODE_HIGHLIGHT macro

2014-07-27 Thread Alix Pexton via Digitalmars-d-learn
On 26/07/2014 4:31 PM, Nick Treleaven wrote: Hi, Ddoc doesn't seem to expand a macro near top of http://dlang.org/hash-map.html: // The $(CODE_HIGHLIGHT KeyType) is string Which is weird because it expands it for 'remove' on this line not far below it: b.remove(hello); Maybe a bug in dmd?

[Dangerously OT] Re: D logo copyright

2014-07-20 Thread Alix Pexton via Digitalmars-d
On 19/07/2014 8:43 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: Not sure why you want a citation. Fair use differs from country to country. Mona Lisa is in the public domain, but photos of it that has been enhanced are not. Many novels and poems are in the public domain,

Re: D logo copyright

2014-07-19 Thread Alix Pexton via Digitalmars-d
On 18/07/2014 4:03 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: This may allow for the creation of a new graphic that is a derivative work of the current one but has a copyright held by Digital Mars. No. The copyright will be held by BOTH the original author and the

Re: D logo copyright

2014-07-19 Thread Alix Pexton via Digitalmars-d
On 18/07/2014 4:03 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: This may allow for the creation of a new graphic that is a derivative work of the current one but has a copyright held by Digital Mars. No. The copyright will be held by BOTH the original author and the

Re: D logo copyright

2014-07-18 Thread Alix Pexton via Digitalmars-d
On a whim I did a bit of research into the copyright of derivative works, and to my surprise they are actually covered by an international treaty. This may allow for the creation of a new graphic that is a derivative work of the current one but has a copyright held by Digital Mars. There is

Re: D logo copyright

2014-07-16 Thread Alix Pexton via Digitalmars-d
On 15/07/2014 9:05 PM, Chris wrote: On Tuesday, 15 July 2014 at 11:12:57 UTC, Alix Pexton wrote: I've been researching what is necessary to transfer the copyright of the D logo to Digital Mars, which is complicated by international issues. It seems that the term copyright is often aliased to

Re: D logo copyright

2014-07-16 Thread Alix Pexton via Digitalmars-d
On 16/07/2014 9:17 AM, Sönke Ludwig wrote: BTW, the shape of the logo itself isn't covered by either copyright, or Urheberrecht, AFAIK. That's what trademarks are for. So a full redo of the logo should be unaffected by the original work. Of course it would still be fair to properly negotiate

Re: D logo copyright

2014-07-16 Thread Alix Pexton via Digitalmars-d
On 16/07/2014 9:12 AM, Sönke Ludwig wrote: As far as I know, this is the Verwertungsrecht (roughly the right to distribute) and the Nutzungsrecht (the right to use). Both can be granted to third parties using a proper license, or using a work contract. Thanks, that could be useful ^^ I

Re: Worrying attitudes to the branding of the D language

2014-07-15 Thread Alix Pexton via Digitalmars-d
On 07/07/2014 11:35 AM, Alix Pexton wrote: On 03/07/2014 8:50 PM, Walter Bright wrote: On 7/3/2014 4:40 AM, Alix Pexton wrote: I agree! I started working on this little document last night while angry and tired, maybe it should find its way to the wiki.

D logo copyright

2014-07-15 Thread Alix Pexton via Digitalmars-d
I've been researching what is necessary to transfer the copyright of the D logo to Digital Mars, which is complicated by international issues. It seems that the term copyright is often aliased to the German Deutsches Urheberrecht which is what we call the moral rights of the author in the UK.

Re: Cool Stuff for D that we keep Secret

2014-07-10 Thread Alix Pexton via Digitalmars-d
On 09/07/2014 11:48 PM, Walter Bright wrote: Debugger leads to HTTP 404 Not Found (this is pretty embarrassing) There is a debugger.html in github, it just redirects to the wiki, but its not being served, can't tell you why said file is not finding its way to the server (maybe because its

Re: Worrying attitudes to the branding of the D language

2014-07-10 Thread Alix Pexton via Digitalmars-d
On 10/07/2014 9:18 AM, Jacob Carlborg wrote: BTW, have a look at this Scala website [1]. In the top left corner there is a Scala logo. It's flat and quite simple design with no colors. In the middle there's a big logo, more complex with shades, colors, shadows and so on. You can instantly see

Re: Worrying attitudes to the branding of the D language

2014-07-09 Thread Alix Pexton via Digitalmars-d
On 02/07/2014 10:10 PM, Alix Pexton wrote: On 02/07/2014 6:13 PM, Vladimir Panteleev wrote: On Wednesday, 2 July 2014 at 16:53:52 UTC, Brad Anderson wrote: He should be contacted and asked if he'd be willing to assign copyright to Walter. Does anyone have his email address? Walter and I have

[OT] Re: Redesign of dlang.org

2014-07-09 Thread Alix Pexton via Digitalmars-d
On 09/07/2014 12:36 PM, Chris wrote: On Tuesday, 8 July 2014 at 21:01:46 UTC, Iain Buclaw via Digitalmars-d And everyone should drive on the left. Driving on the left goes back to the times when coaches (carriages) were still in use. This was to avoid that drivers would accidentally hit

Re: [OT] Re: Redesign of dlang.org

2014-07-09 Thread Alix Pexton via Digitalmars-d
On 09/07/2014 4:43 PM, Chris wrote: This sounds just like Imperial education. Very interesting how it equates Imperial practices with the right thing and the (continental) arch enemy with the wrong thing. By the way, there was a reason why combatant riders would ride on the right side on a

Re: Redesign of dlang.org

2014-07-08 Thread Alix Pexton via Digitalmars-d
On 08/07/2014 10:01 PM, Iain Buclaw via Digitalmars-d wrote: But the imperial system *isn't* idiotic. :o) 14 lbs is a stone? apart from that its fine ^^ And everyone should drive on the left. I drive in the middle, it works fine until I meet other road users. A...

Re: Worrying attitudes to the branding of the D language

2014-07-07 Thread Alix Pexton via Digitalmars-d
On 07/07/2014 8:29 AM, Jacob Carlborg wrote: On 05/07/14 05:00, deadalnix wrote: We need various logos, as they'll be more or less readable at various scales. The flat-minimal is especially important as this is the only one that is going to scale down without become unrecognizable. I agree.

Re: Worrying attitudes to the branding of the D language

2014-07-07 Thread Alix Pexton via Digitalmars-d
On 07/07/2014 9:17 AM, Jacob Carlborg wrote: On 07/07/14 10:05, Alix Pexton wrote: https://drive.google.com/file/d/0B3i8FWPuOpryM0VJQlU5ZDJNcFk/edit https://drive.google.com/file/d/0B3i8FWPuOpryRW9PODBMUUZyMlE/edit I don't think that looks so nice. Which one, Package or Sourcefile or

Re: Worrying attitudes to the branding of the D language

2014-07-07 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 8:50 PM, Walter Bright wrote: On 7/3/2014 4:40 AM, Alix Pexton wrote: I agree! I started working on this little document last night while angry and tired, maybe it should find its way to the wiki.

Re: Worrying attitudes to the branding of the D language

2014-07-07 Thread Alix Pexton via Digitalmars-d
On 07/07/2014 12:26 PM, Jacob Carlborg wrote: On 07/07/14 12:20, Alix Pexton wrote: Which one, Package or Sourcefile or both? Both, actually. Shame, I kinda liked the cardboard box, I surprised myself with how quickly it came together. These are what I'm currently using myself, but I'm

Re: Worrying attitudes to the branding of the D language

2014-07-07 Thread Alix Pexton via Digitalmars-d
On 07/07/2014 1:09 PM, Alix Pexton wrote: On 07/07/2014 12:26 PM, Jacob Carlborg wrote: On 07/07/14 12:20, Alix Pexton wrote: There is a generic page icon, but that doesn't seem to have been updated to the windows 7 theme. Oh wait, yes it is, my bad A...

Re: Worrying attitudes to the branding of the D language

2014-07-07 Thread Alix Pexton via Digitalmars-d
On 07/07/2014 3:40 PM, Jacob Carlborg wrote: The C icon probably comes from Xcode. BTW, here's how it looks like [2]. The corresponding icon from TextMate looks like this [3]. Just the TextMate logo with a name of the language at the bottom. So it comes down to where the logo gets positioned.

Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 12:40 AM, deadalnix wrote: On Wednesday, 2 July 2014 at 19:05:56 UTC, Walter Bright wrote: On 7/2/2014 11:08 AM, Gary Willoughby wrote: Here is one of my all time favourite talks from Steve Yegge (Senior Engineer at Google) at OSCON 2007 entitled How to Ignore Marketing and

Re: Optimizing Java using D

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 9:13 AM, Andrei Alexandrescu wrote: On 7/3/14, 12:29 AM, Wanderer wrote: Nobody, never, measures sort algorithms by amount of swaps. That... is quite the claim. -- Andrei Most of the algorithm rankings I am aware of list both compares and swaps, because which one has the

Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 10:40 AM, Dicebot wrote: On Wednesday, 2 July 2014 at 17:34:46 UTC, Gary Willoughby wrote: On Wednesday, 2 July 2014 at 11:02:58 UTC, Dicebot wrote: We don't have any recognizable branding worth fighting for. I can't even remember how current D logo looks like without checking

Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 10:40 AM, Dicebot wrote: On Wednesday, 2 July 2014 at 17:34:46 UTC, Gary Willoughby wrote: On Wednesday, 2 July 2014 at 11:02:58 UTC, Dicebot wrote: We don't have any recognizable branding worth fighting for. I can't even remember how current D logo looks like without checking

Re: Redesign of dlang.org

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 12:35 PM, w0rp wrote: On Thursday, 3 July 2014 at 09:42:05 UTC, Dicebot wrote: On Wednesday, 2 July 2014 at 23:32:36 UTC, w0rp wrote: I just brought the Twitter module back. :( it was so much better with this ugly widget gone and replaced with something actually useful. I

[OT] Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 1:00 PM, Iain Buclaw via Digitalmars-d wrote: You mispelt Useage /spelling troll There is no red underline this end and invoking the spell checker is only finding the hex colour codes at the moment. But means nothing as I discovered just this morning that the google docs

Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 3:44 PM, Wyatt wrote: On Thursday, 3 July 2014 at 11:40:34 UTC, Alix Pexton wrote: I agree! I started working on this little document last night while angry and tired, maybe it should find its way to the wiki.

Re: Optimizing Java using D

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 4:16 PM, Wanderer wrote: On Thursday, 3 July 2014 at 11:30:57 UTC, Alix Pexton wrote: and how it is stored (all in a single page of memory vs across multiple networked disks vs in immutable memory such that each swap actually duplicate the whole dataset). And how much of that

Re: Redesign of dlang.org

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 6:38 PM, w0rp wrote: * Run it all with D to tick a official D site made in D checkbox. The powered by Python banner gave me an idea... In a nod to Walter's self confessed petrol-headedness, I thought we could incorporate the logo into a D under the hood or D in the tank

Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Alix Pexton via Digitalmars-d
On 03/07/2014 8:30 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Thursday, 3 July 2014 at 19:06:42 UTC, Wyatt wrote: Actually, stepping back a bit: maybe you can explain, concretely, why you believe the horizon line is essential to the point that removing it

Re: Worrying attitudes to the branding of the D language

2014-07-02 Thread Alix Pexton via Digitalmars-d
On 01/07/2014 10:29 PM, Walter Bright wrote: On 7/1/2014 10:45 AM, Gary Willoughby wrote: Here is the present and official D logo: http://media.sukimashita.com/d/d-5.svg I suggest we keep it. All excellent points, and I agree with you on all of them. And I like the current logo, and want

Re: Worrying attitudes to the branding of the D language

2014-07-02 Thread Alix Pexton via Digitalmars-d
On 02/07/2014 6:13 PM, Vladimir Panteleev wrote: On Wednesday, 2 July 2014 at 16:53:52 UTC, Brad Anderson wrote: He should be contacted and asked if he'd be willing to assign copyright to Walter. Does anyone have his email address? Walter and I have attempted to reach out to Martin a while

Re: Redesign of dlang.org

2014-07-01 Thread Alix Pexton via Digitalmars-d
On 01/07/2014 7:42 AM, w0rp wrote: The logo on the site I'm testing is the most effective duck. The logo is a placeholder I made with no graphic design experience. The old logo is a bit too fat and round to fit with the new design, so I'd like something which is obviously still the same brand,

Re: Redesign of dlang.org

2014-07-01 Thread Alix Pexton via Digitalmars-d
On 01/07/2014 8:40 AM, Alix Pexton wrote: On 01/07/2014 7:42 AM, w0rp wrote: The logo on the site I'm testing is the most effective duck. The logo is a placeholder I made with no graphic design experience. The old logo is a bit too fat and round to fit with the new design, so I'd like

Re: Redesign of dlang.org

2014-07-01 Thread Alix Pexton via Digitalmars-d
On 01/07/2014 6:08 PM, Brad Anderson wrote: The original D logo (and colours) must be used. The copyright of the original isn't owned by Walter. I think it'd be best if we moved away from it. I like the flatter, cleaner logo. Should anyone ever deem one of my designs worthy, I'd be happy to

Re: D Logos

2014-06-27 Thread Alix Pexton via Digitalmars-d
On 26/06/2014 9:15 PM, Wyatt wrote: I'll first admit I'm not fond of the font. I do agree with a sans serif with fairly thick stroke, but I don't like the vertical stress and I think a wider counter definitely looks better with these proportions. What's the font in the current logo? I don't

Re: D Logos

2014-06-27 Thread Alix Pexton via Digitalmars-d
On 26/06/2014 9:34 PM, H. S. Teoh via Digitalmars-d wrote: Of all these, I find that I like the bottom right one the most. I divided the options into left and right based on the emotion that I felt the angle of the shadow on the moon suggested, the left side are the ones that I felt were

Re: D Logos

2014-06-26 Thread Alix Pexton via Digitalmars-d
On 25/06/2014 5:16 PM, Walter Bright wrote: I agree with Russel. I think we've had good success with the D With Moons logo, and it's use is pervasive and recognizable as being D. Perhaps just a subtle clean up then? https://drive.google.com/file/d/0B3i8FWPuOpryTjFybHNYYVVtc1k/edit A...

Re: D Logos

2014-06-25 Thread Alix Pexton via Digitalmars-d
On 24/06/2014 9:58 PM, Iain Buclaw via Digitalmars-d wrote: You can also make a logo for GDC if you like. I'm phasing the site itself through something of an infrastructure change, may as well make some visual changes too to make it more appealing. ;-) http://gdcproject.org Here are half a

Re: D Logos

2014-06-25 Thread Alix Pexton via Digitalmars-d
On 25/06/2014 2:16 PM, Iain Buclaw via Digitalmars-d wrote: On 25 June 2014 14:08, Iain Buclaw ibuc...@gdcproject.org wrote: On 25 June 2014 12:07, Alix Pexton via Digitalmars-d digitalmars-d@puremagic.com wrote: On 24/06/2014 9:58 PM, Iain Buclaw via Digitalmars-d wrote: You can also make

Re: D Logos

2014-06-25 Thread Alix Pexton via Digitalmars-d
On 25/06/2014 6:34 PM, Iain Buclaw via Digitalmars-d wrote: Having quickly patched it together in gimp, I'm leaning on either on the right hand side. The G on the bottom left could be nice next to the D in a strange perspective (eg: a 3D box). I agree ^^ At the same time I agree with

Re: D Logos

2014-06-24 Thread Alix Pexton via Digitalmars-d
On 22/06/2014 9:52 AM, Alix Pexton wrote: I feel that most of the new logos that have been proposed lately are too much of a departure from what we already have, so I'm throwing a few of my own designs into the ring. https://drive.google.com/file/d/0B3i8FWPuOpryQU9OQlMydXJmeTQ/edit

Re: Passing around a list of differently typed functions

2014-06-23 Thread Alix Pexton via Digitalmars-d-learn
On 23/06/2014 8:19 AM, Bienlein wrote: On Monday, 23 June 2014 at 01:16:49 UTC, Evan Davis wrote: As the subject says, I would like to pass around an array of functions. The trick is, that the functions have different type signatures. Is there a way to put the two functions int foo(int a, int

Re: D Logos

2014-06-22 Thread Alix Pexton via Digitalmars-d
I feel that most of the new logos that have been proposed lately are too much of a departure from what we already have, so I'm throwing a few of my own designs into the ring. https://drive.google.com/file/d/0B3i8FWPuOpryQU9OQlMydXJmeTQ/edit

Re: Icons for .d and .di files

2014-06-22 Thread Alix Pexton via Digitalmars-d
On 22/06/2014 11:49 AM, Jordi Sayol via Digitalmars-d wrote: Another based on Alix Pexton's logo: http://s12.postimg.org/nz8amui7h/dsrc5.png Ooh, you based it on my favourite ^^ A...

Re: When is a slice not a slice?

2014-06-16 Thread Alix Pexton via Digitalmars-d-learn
On 06/06/2014 7:39 PM, Steven Schveighoffer wrote: On Fri, 06 Jun 2014 06:14:30 -0400, Rene Zwanenburg renezwanenb...@gmail.com wrote: Immutables should be usable at compile time and not allocate a new instance on every use when in module scope. I was about to say this. But immutable can have

Re: When is a slice not a slice?

2014-06-07 Thread Alix Pexton via Digitalmars-d-learn
On 06/06/2014 7:39 PM, Steven Schveighoffer wrote: On Fri, 06 Jun 2014 06:14:30 -0400, Rene Zwanenburg renezwanenb...@gmail.com wrote: Immutables should be usable at compile time and not allocate a new instance on every use when in module scope. I was about to say this. But immutable can

mangled coverage report

2014-06-07 Thread Alix Pexton via Digitalmars-d-learn
I've just noticed that in the .lst file for one of my libs the execution counts stop lining up with the source, and the source itself is truncated by a couple of lines. The function where the misalignment begins contains an if (__ctfe) block (first time I ever used one) but just testing that

Re: When is a slice not a slice?

2014-06-06 Thread Alix Pexton via Digitalmars-d-learn
On 05/06/2014 8:56 PM, Philippe Sigaud via Digitalmars-d-learn wrote: enum b = DataAndView(1); assert (!sameTail(b.data, b.view)); I suppose it's because enums are manifest constants: the value they represent is 'copy-pasted' anew everywhere it appears in the code. So for

Re: When is a slice not a slice?

2014-06-06 Thread Alix Pexton via Digitalmars-d-learn
On 06/06/2014 8:52 AM, Alix Pexton wrote: And the two DataAndView(1), being completely separated, do not have the same tail. Ah, Isee, that does kinda make sense ^^ A re-factoring we go... However, the code that originally tripped over this issue had the call to sameTail in the struct's

Re: When is a slice not a slice?

2014-06-06 Thread Alix Pexton via Digitalmars-d-learn
On 05/06/2014 8:58 PM, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 15:56:00 -0400, Philippe Sigaud via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: enum b = DataAndView(1); assert (!sameTail(b.data, b.view)); I suppose it's because enums are manifest

When is a slice not a slice?

2014-06-05 Thread Alix Pexton via Digitalmars-d-learn
In CTFE it seems. Only tested with DMD on Windows though. Is this a known limitation, or a bug, I couldn't find anything that seemed to match it in the bugzilla. import std.array; struct DataAndView { int[] data, view; this(int x) { data = [1, 2, 3,

Re: 1st Call for Ideas for Google Summer of Code 2015

2014-06-01 Thread Alix Pexton via Digitalmars-d
On 31/05/2014 3:43 AM, Craig Dillabaugh wrote: On Friday, 30 May 2014 at 19:49:31 UTC, Tobias Pankrath wrote: I know this is very early, but I work slowly :o) * Something like boost::log * Something like boost::program_options * An parser generator on par with antlr4 * std.stream replacement

Re: D Users Survey: Primary OS?

2014-05-30 Thread Alix Pexton via Digitalmars-d
On 29/05/2014 4:53 PM, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? Win7 64bit A...

[OT] Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-29 Thread Alix Pexton via Digitalmars-d-announce
On 28/05/2014 2:05 PM, Craig Dillabaugh wrote: On Tuesday, 27 May 2014 at 21:40:00 UTC, Walter Bright wrote: On 5/27/2014 2:22 PM, w0rp wrote: I'm actually a native speaker of 25 years and I didn't get it at first. Natural language communicates ideas approximately. What bugs me is when

Re: My D book is now officially coming soon

2014-05-28 Thread Alix Pexton via Digitalmars-d-announce
On 28/05/2014 9:00 AM, Mike James wrote: On Tuesday, 27 May 2014 at 14:20:49 UTC, Adam D. Ruppe wrote: On Tuesday, 27 May 2014 at 13:27:56 UTC, Szymon Gatner wrote: Will epub version be available too? Yeah, I think it is already on the packt website. I'm looking at getting the ebook

Re: Video of my LDC talk @ FOSDEM'14

2014-05-28 Thread Alix Pexton via Digitalmars-d-announce
On 27/05/2014 1:15 PM, Tommi wrote: On Monday, 26 May 2014 at 05:59:35 UTC, Kai Nacke wrote: [..] http://video.fosdem.org/2014/K4401/Sunday/LDC_the_LLVMbased_D_compiler.webm I can't watch this on my iPhone. https://itunes.apple.com/gb/app/vlc-for-ios/id650377962?mt=8

Re: Livestreaming DConf?

2014-05-15 Thread Alix Pexton via Digitalmars-d-announce
On 09/05/2014 8:48 PM, Andrei Alexandrescu wrote: Hi folks, We at Facebook are very excited about the upcoming DConf 2014. In fact, so excited we're considering livestreaming the event for the benefit of the many of us who can't make it to Menlo Park, CA. Livestreaming entails additional costs

Re: Redesign of dlang.org

2014-04-24 Thread Alix Pexton via Digitalmars-d
On 23/04/2014 5:28 PM, Dicebot wrote: Gosh now I finally know what researches to blame for my eyes bleeding upon most web site restylings (Facebook *caugh-caugh*). Are you sure that your eyes aren't bleeding because your fonts are too small? A...

Re: Redesign of dlang.org

2014-04-24 Thread Alix Pexton via Digitalmars-d
On 24/04/2014 9:44 AM, Dicebot wrote: Considering the very same size 9 fonts are used as default everywhere else in my desktop system and it feels just fine.. yeah, you must be right. It must be small font and not weirdly scaled UI with 2/3 of screen space blank. Sure. We must just be

Re: Redesign of dlang.org

2014-04-24 Thread Alix Pexton via Digitalmars-d
On 24/04/2014 9:44 AM, Dicebot wrote: Considering the very same size 9 fonts are used as default everywhere else in my desktop system and it feels just fine.. yeah, you must be right. It must be small font and not weirdly scaled UI with 2/3 of screen space blank. Sure. We must just be

Re: Table lookups - this is pretty definitive

2014-04-18 Thread Alix Pexton via Digitalmars-d
On 17/04/2014 8:41 PM, monarch_dodra wrote: On Thursday, 17 April 2014 at 18:07:24 UTC, ixid wrote: I feel like there must be a way of making a fast bit look up but my version is only moderate in speed. You can get all the bits you need on two 64 bit registers or one SSE register. I haven't

Re: A crazy idea for accurately tracking source position

2014-04-18 Thread Alix Pexton via Digitalmars-d
On 17/04/2014 8:20 PM, matovitch wrote: You are doing it all wrong. The easiest way to compute the col position is the following : col_pos = 0; if (non_tab_character_encounter) col_pos++; else col_pos += tab_length - col_pos % tab_length; That's it. Tabs can have variable

Re: Table lookups - this is pretty definitive

2014-04-18 Thread Alix Pexton via Digitalmars-d
I tested this against the others... (with -inline -release -O of course) === uint[8] tab4; // bitop function only work on uints static this() { for (size_t u = 0; u 0x100; ++u) { if (isIdentifierChar0(cast(ubyte)u)) { bts(tab4.ptr, u); } } }

Re: A crazy idea for accurately tracking source position

2014-04-18 Thread Alix Pexton via Digitalmars-d
A complete, tested and working proof of concept! Pipe the output to a file and load it in an editor that allows you to mess with the size of tabs and no matter what width they have things will still line up (as long as the font is fixed width). I'm pretty sure this is sub optimal even though

Re: A crazy idea for accurately tracking source position

2014-04-17 Thread Alix Pexton via Digitalmars-d
Just fixing an obvious typo in my code (that is still incomplete). struct someRange { ulong seq; bool fresh = true; long line; dchar front; // and lets just pretend that there is // somewhere for more characters to come from! void popFront() { //

Re: Table lookups - this is pretty definitive

2014-04-17 Thread Alix Pexton via Digitalmars-d
I added a lookup scheme of my own, its not as fast as Walters (in fact its the slowest without -inline - release -O) but it uses 1 bit per entry in the table instead of a whole byte so you can have lots and lots of different tables. I'm even reasonably sure that it works correctly!

A crazy idea for accurately tracking source position

2014-04-16 Thread Alix Pexton via Digitalmars-d
TL;DR Here is some under documented, incomplete and untested code. CAVEAT IMPLEMENTOR: some details have been omitted to keep things brief! struct someRange { ulong seq; bool fresh = true; long line; dchar front; // and lets just pretend that there is

Re: dec64 decimal floating point type

2014-04-15 Thread Alix Pexton via Digitalmars-d
I contacted Doug to ask if he had any additional resources that I could use to make my argument for DEC64. I only got a brief reply (happy to get any reply from someone so busy) to the effect that everything he has to say on the matter is in the motivation segment of his web site for the

Re: Formal review of std.lexer

2014-04-15 Thread Alix Pexton via Digitalmars-d
On 14/04/2014 10:34 PM, Brian Schott wrote: ubyte[] is required for the lexer to work quickly. That lexer range is designed to keep track of the column and line numbers. I can understand that speed requires the input to be handled as bytes instead of chars, but the restriction to an ubyte[]