Re: DConf 2014 Keynote: High Performance Code Using D by Walter Bright

2014-07-18 Thread dennis luehring via Digitalmars-d-announce
Am 18.07.2014 07:54, schrieb Walter Bright: On 7/17/2014 9:40 PM, dennis luehring wrote: i understand your focus on dmd - but talking about fast code and optimizing WITHOUT even trying to compare with other compiler results is just a little bit strange for someone who stated speed = money The

Skeletal generator

2014-07-18 Thread Rikki Cattermole via Digitalmars-d-announce
In advancing to a reload system for Cmsed, I've built a directory skeleton generator[0]. It supports both lua and a simpler text file syntax. An example of this is: # Simple skeleton descriptor dlfile livereload.txt livereload.txt mkdir bin mkdir deps dlfile deps/package.json package.json

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-18 Thread w0rp via Digitalmars-d-announce
On Thursday, 17 July 2014 at 17:41:59 UTC, Adam D. Ruppe wrote: BTW here's the post Andrei made on the day of with the little notebook paper I used for a topic list and some discussion we had in May: http://forum.dlang.org/thread/llo7i8$e4e$1...@digitalmars.com I watched your talk and it

Re: DConf 2014 Keynote: High Performance Code Using D by Walter Bright

2014-07-18 Thread Walter Bright via Digitalmars-d-announce
On 7/17/2014 11:42 PM, dennis luehring wrote: Am 18.07.2014 07:54, schrieb Walter Bright: On 7/17/2014 9:40 PM, dennis luehring wrote: i understand your focus on dmd - but talking about fast code and optimizing WITHOUT even trying to compare with other compiler results is just a little bit

Re: DConf 2014 Keynote: High Performance Code Using D by Walter Bright

2014-07-18 Thread John Colvin via Digitalmars-d-announce
On Friday, 18 July 2014 at 04:40:52 UTC, dennis luehring wrote: Am 18.07.2014 04:52, schrieb Walter Bright: On 7/16/2014 7:21 AM, dennis luehring wrote: can you give an short (working) example code to show the different resulting assembler for your for-rewrite example - and what compilers

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-18 Thread Puming via Digitalmars-d-announce
I've added an indirect link to my awesome-d github page where your book is listed: https://github.com/zhaopuming/awesome-d#books But don't know whether that would be filtered also. On Thursday, 17 July 2014 at 19:29:44 UTC, Adam D. Ruppe wrote: On Thursday, 17 July 2014 at 18:48:11 UTC,

Re: DSnips - making D coding awesome in Vim (with GIFs!)

2014-07-18 Thread simendsjo via Digitalmars-d-announce
On 07/17/2014 10:57 PM, Kiith-Sa wrote: DSnips is a set of UltiSnips snippets for D (now with GIFs showing each snippet in action (image-heavy)) https://github.com/kiith-sa/DSnips This is an attempt to overhaul the D snippets I got merged to UltiSnips (now a separate vim-snippets

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-18 Thread Mengu via Digitalmars-d-announce
On Thursday, 17 July 2014 at 18:42:38 UTC, Adam D. Ruppe wrote: On Thursday, 17 July 2014 at 18:37:54 UTC, Andrei Alexandrescu wrote: Put that on reddit. -- Andrei I've tried a few times and it doesn't work.. the post appears to me, but is invisible to everyone else. I think reddit's silent

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 18 July 2014 at 12:15:19 UTC, Mengu wrote: i don't know how many times you tried but when i searched the url on reddit it found 3 results. Yeah, the top level post seems to work, but comments on other posts, including this one, don't show up. The indirect link plan appears to work

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 18 July 2014 at 08:35:07 UTC, Puming wrote: I've added an indirect link to my awesome-d github page where your book is listed: Cool, that seems to be working, thanks!

DConf 2014: Mobile Gameserver Backend in D by Stephan Dilly

2014-07-18 Thread Andrei Alexandrescu via Digitalmars-d-announce
http://www.reddit.com/r/programming/comments/2b1uat/dconf_2014_mobile_gameserver_backend_in_d_by/ https://www.facebook.com/dlang.org/posts/887057894641226 https://twitter.com/D_Programming/status/490149592923901952 Andrei

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-18 Thread John via Digitalmars-d-announce
On Friday, 18 July 2014 at 08:35:07 UTC, Puming wrote: I've added an indirect link to my awesome-d github page Your awesome-d is awesome! Keep up the good work! :D I didn't know this concept using github. Now I started exploring the other awesome pages of less than awesome languages too.

Re: DConf 2014: Mobile Gameserver Backend in D by Stephan Dilly

2014-07-18 Thread Dicebot via Digitalmars-d-announce
On Friday, 18 July 2014 at 15:09:13 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/2b1uat/dconf_2014_mobile_gameserver_backend_in_d_by/ https://www.facebook.com/dlang.org/posts/887057894641226 https://twitter.com/D_Programming/status/490149592923901952 Andrei

Re: DUB Bash Completion

2014-07-18 Thread Matt Soucy via Digitalmars-d-announce
On 07/14/2014 05:54 PM, Nordlöw wrote: On Monday, 14 July 2014 at 00:10:38 UTC, Mathias LANG wrote: complete --config= too, so you could tab complete Yeah, that would be nice. Need to add som json parsing to the bash logic. Any suggestions on how to most easily and portably do that? So, I

Re: DSnips - making D coding awesome in Vim (with GIFs!)

2014-07-18 Thread Kiith-Sa via Digitalmars-d-announce
On Friday, 18 July 2014 at 00:44:15 UTC, uri wrote: On Thursday, 17 July 2014 at 20:57:10 UTC, Kiith-Sa wrote: DSnips is a set of UltiSnips snippets for D (now with GIFs showing each snippet in action (image-heavy)) https://github.com/kiith-sa/DSnips This is an attempt to overhaul the D

Re: DSnips - making D coding awesome in Vim (with GIFs!)

2014-07-18 Thread Justin Whear via Digitalmars-d-announce
On Thu, 17 Jul 2014 20:57:10 +, Kiith-Sa wrote: DSnips is a set of UltiSnips snippets for D (now with GIFs showing each snippet in action (image-heavy)) https://github.com/kiith-sa/DSnips This is an attempt to overhaul the D snippets I got merged to UltiSnips (now a separate

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-18 Thread Adam D. Ruppe via Digitalmars-d-announce
Plain text transcript of the video (typed up by me, so there may be some errors but the bulk of it should be readable) http://arsdnet.net/dconf-transcript.txt I'll do an annotated HTML version when my schedule permits but for now you can look at the plain text file there (if you don't see it

Re: Ambiguous mangling of symbols declared in nested scopes

2014-07-18 Thread Daniel Murphy via Digitalmars-d
H. S. Teoh via Digitalmars-d wrote in message news:mailman.4366.1405642929.2907.digitalmar...@puremagic.com... Hmm. How to generate a unique id? It must be module-wide, but not program-wide, because otherwise you get a different mangling depending on the order of imports. It must not

Re: GCs in the news

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/17/2014 11:17 AM, H. S. Teoh via Digitalmars-d wrote: I don't think it will affect existing code (esp. given Walter's stance on breaking changes!). Probably the old GC-based string functions will still be around for backwards-compatibility. Perhaps some of them might be replaced with non-GC

Re: GCs in the news

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/17/2014 10:47 PM, H. S. Teoh via Digitalmars-d wrote: Deferring the allocation point to the top level has the advantage of letting high-level user code decide what the allocation strategy should be, rather than percolating that decision down the call graph to every low-level function.

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-18 Thread Tobias Müller via Digitalmars-d
deadalnix deadal...@gmail.com wrote: On Thursday, 17 July 2014 at 19:58:32 UTC, Tobias Müller wrote: IMO manual memory management is quite easy. In 99% of all cases ownership is clear to trivial. But maybe this is just because I usually write C++ and ownership is crucial in C++. Maybe

Re: Encouraging memory efficiency

2014-07-18 Thread Jacob Carlborg via Digitalmars-d
On 17/07/14 22:18, Dicebot wrote: Discouraged and unmaintained is probably a better description. How does it need maintaining? -- /Jacob Carlborg

Re: [OT] Uploading DConf videos

2014-07-18 Thread Jacob Carlborg via Digitalmars-d
On 18/07/14 03:55, Israel Rodriguez wrote: This man has it right. I dont think quality is a huge issue though unless youre watching something that needs to be sensitive to the eye in which case youtube will work just fine for these videos. Youtube supports resolutions of 4k, I don't see the

Re: GCs in the news

2014-07-18 Thread Kagamin via Digitalmars-d
On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: Just from watching a few of the DConf 2014 talks, if you want performance you avoid the GC at all costs (even if that means allocating into huge predefined buffers). Once you're going to these lengths to avoid garbage collection it

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: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/17/2014 3:59 PM, Brad Anderson wrote: Walter's prototype[1] for removing allocations from a phobos function (std.path.setExtension) got hung up on the naming of the function. It couldn't keep the same name because it differed only by return type. Walter doesn't like explicitly naming them

Re: Integer overflow and underflow semantics?

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/17/2014 4:56 AM, David Nadlinger wrote: Oh dear, you'd be in for a very nasty surprise if you relied on this. ;) When I wrote that part of the spec, it was long before these sorts of optimizations appeared, and it never occurred to me that they would be.

Re: Encouraging memory efficiency

2014-07-18 Thread John Colvin via Digitalmars-d
On Thursday, 17 July 2014 at 16:28:00 UTC, Tero wrote: Just watched Don's DConf 2014 talk where he said D has to be ruthless about memory inefficiency. Here's one thing that I think could help avoid unnecessary garbage: built-in syntax for this: import core.stdc.stdlib : alloca; ubyte[]

Re: Integer overflow and underflow semantics?

2014-07-18 Thread John Colvin via Digitalmars-d
On Friday, 18 July 2014 at 08:49:43 UTC, Walter Bright wrote: On 7/17/2014 4:56 AM, David Nadlinger wrote: Oh dear, you'd be in for a very nasty surprise if you relied on this. ;) When I wrote that part of the spec, it was long before these sorts of optimizations appeared, and it never

Re: GCs in the news

2014-07-18 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 18:19:04 UTC, H. S. Teoh via Digitalmars-d wrote: On Thu, Jul 17, 2014 at 05:58:14PM +, Chris via Digitalmars-d wrote: On Thursday, 17 July 2014 at 17:49:24 UTC, H. S. Teoh via Digitalmars-d wrote: [...] AFAIK some work still needs to be done with std.string;

Re: Encouraging memory efficiency

2014-07-18 Thread Dicebot via Digitalmars-d
On Friday, 18 July 2014 at 06:46:16 UTC, Jacob Carlborg wrote: On 17/07/14 22:18, Dicebot wrote: Discouraged and unmaintained is probably a better description. How does it need maintaining? I mean that if you create bug report or enhancement request for scope classes it is quite unlikely

Re: GCs in the news

2014-07-18 Thread Dicebot via Digitalmars-d
On Friday, 18 July 2014 at 00:08:17 UTC, H. S. Teoh via Digitalmars-d wrote: On Thu, Jul 17, 2014 at 06:32:58PM +, Dicebot via Digitalmars-d wrote: On Thursday, 17 July 2014 at 18:22:11 UTC, H. S. Teoh via Digitalmars-d wrote: Actually, I've realized that output ranges are really only

Re: static opCall 'hidden' by incompatible constructors

2014-07-18 Thread Nick Treleaven via Digitalmars-d
On 17/07/2014 18:56, Dicebot wrote: It has never worked properly (opCall never got called) and being a bad style going against language design rationale it was completely banned. More info: https://issues.dlang.org/show_bug.cgi?id=12124 Thanks for the link. We need a note in the changelog

Re: static opCall 'hidden' by incompatible constructors

2014-07-18 Thread Nick Treleaven via Digitalmars-d
On 17/07/2014 18:58, Dicebot wrote: (for Unique probably disabling default constructor makes most sense) I'm not sure about that, default construction is useful to be able to delay resource creation: Unique!S u1; ... u1 = unique!S(); // factory function To allow that but

Re: Why are the nogc crowed labeled as alarmists?!?!

2014-07-18 Thread Paulo Pinto via Digitalmars-d
On Thursday, 17 July 2014 at 18:13:18 UTC, Frustrated wrote: Are those that say the GC is fine and works for 90-95% of apps without issue just ignorant? Or are they arrogant? ... We probably had the fortune of using operating systems written in GC enabled system programming languages before

Re: Why are the nogc crowed labeled as alarmists?!?!

2014-07-18 Thread Kagamin via Digitalmars-d
On Thursday, 17 July 2014 at 18:13:18 UTC, Frustrated wrote: Are those that say the GC is fine and works for 90-95% of apps without issue just ignorant? Or are they arrogant? When one is writing a real time app and have the absolute lowest chance of losing control, a STW GC is simply not

Re: Why are the nogc crowed labeled as alarmists?!?!

2014-07-18 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Friday, 18 July 2014 at 13:17:34 UTC, Kagamin wrote: On Thursday, 17 July 2014 at 18:13:18 UTC, Frustrated wrote: Are those that say the GC is fine and works for 90-95% of apps without issue just ignorant? Or are they arrogant? When one is writing a real time app and have the absolute

Re: Why are the nogc crowed labeled as alarmists?!?!

2014-07-18 Thread bearophile via Digitalmars-d
Dominikus Dittes Scherkl: The very little rest is things like exceptions, delegates and closures - because I have no idea how to use them with manual memory management. So unfortunately I have to avoid them in RT code. Some closures can be avoided with scope, and some exception allocations

Re: Why are the nogc crowed labeled as alarmists?!?!

2014-07-18 Thread Paulo Pinto via Digitalmars-d
On Friday, 18 July 2014 at 13:53:14 UTC, Dominikus Dittes Scherkl wrote: On Friday, 18 July 2014 at 13:17:34 UTC, Kagamin wrote: On Thursday, 17 July 2014 at 18:13:18 UTC, Frustrated wrote: Are those that say the GC is fine and works for 90-95% of apps without issue just ignorant? Or are they

Re: D logo copyright

2014-07-18 Thread via Digitalmars-d
On Friday, 18 July 2014 at 07:43:32 UTC, Alix Pexton wrote: 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. WIPO has treaties, but they only affect local law on the least-common-denominator

Re: [OT] Uploading DConf videos

2014-07-18 Thread Andrei Alexandrescu via Digitalmars-d
On 7/17/14, 11:53 PM, Jacob Carlborg wrote: On 18/07/14 03:55, Israel Rodriguez wrote: This man has it right. I dont think quality is a huge issue though unless youre watching something that needs to be sensitive to the eye in which case youtube will work just fine for these videos. Youtube

Re: Why are the nogc crowed labeled as alarmists?!?!

2014-07-18 Thread jackdeath via Digitalmars-d
:)) how true On Friday, 18 July 2014 at 14:25:54 UTC, Paulo Pinto wrote: On Friday, 18 July 2014 at 13:53:14 UTC, Dominikus Dittes Scherkl wrote: On Friday, 18 July 2014 at 13:17:34 UTC, Kagamin wrote: On Thursday, 17 July 2014 at 18:13:18 UTC, Frustrated wrote: Are those that say the GC is

Re: [OT] Uploading DConf videos

2014-07-18 Thread ponce via Digitalmars-d
On Friday, 18 July 2014 at 15:44:21 UTC, Andrei Alexandrescu wrote: On 7/17/14, 11:53 PM, Jacob Carlborg wrote: On 18/07/14 03:55, Israel Rodriguez wrote: This man has it right. I dont think quality is a huge issue though unless youre watching something that needs to be sensitive to the eye

Re: [OT] Uploading DConf videos

2014-07-18 Thread David Gileadi via Digitalmars-d
On 7/18/14, 9:32 AM, ponce wrote: On Friday, 18 July 2014 at 15:44:21 UTC, Andrei Alexandrescu wrote: On 7/17/14, 11:53 PM, Jacob Carlborg wrote: On 18/07/14 03:55, Israel Rodriguez wrote: This man has it right. I dont think quality is a huge issue though unless youre watching something that

Re: function default arguments depending on other arguments

2014-07-18 Thread Timon Gehr via Digitalmars-d
On 07/18/2014 12:00 AM, Trass3r wrote: void foo(int a, int b = a) { } is illegal in C++ because order of evaluation is undefined. But since D defines the order to be left to right couldn't it also allow this? It could, and I think it is an unnecessary limitation that it currently does not.

Re: [OT] Uploading DConf videos

2014-07-18 Thread Nick Sabalausky via Digitalmars-d
On 7/18/2014 12:40 PM, David Gileadi wrote: And you can always download a high-quality version from YouTube in various formats (including the original format) using something like ClipGrab. But not the original non-re-encoded version.

Re: [OT] Uploading DConf videos

2014-07-18 Thread Nick Sabalausky via Digitalmars-d
On 7/18/2014 2:53 AM, Jacob Carlborg wrote: On 18/07/14 03:55, Israel Rodriguez wrote: This man has it right. I dont think quality is a huge issue though unless youre watching something that needs to be sensitive to the eye in which case youtube will work just fine for these videos. Youtube

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-18 Thread Timon Gehr via Digitalmars-d
On 07/17/2014 04:01 PM, Byron Heads wrote: A Volatile(T) in stdlib seems to make a lot of sense, I am also wondering if the implementation of shared should be done the same way (if it does already then ignore), just use the compile to enforce shared and have it rewrite it as Shared(T). ...

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-18 Thread Paulo Pinto via Digitalmars-d
On Thursday, 17 July 2014 at 19:58:32 UTC, Tobias Müller wrote: Paulo Pinto pj...@progtools.org wrote: ... Personally, I don't believe anyone is able to reason properly about manual memory management, unless they wrote 100% of their code, and don't work in more than one codebase. IMO

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 08:48:08 UTC, Walter Bright wrote: [...] Since there are a lot of existing lazy algorithms in Phobos that do not follow this naming convention, either the convention is pointless or we go through yet another round of changing Phobos names and breaking everyone's

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 17:59:05 UTC, Brad Anderson wrote: - abbrev : abbreviated: withAbbrev abbrev actually doesn't belong in this list. I probably included a few others mistakenly too.

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-18 Thread Timon Gehr via Digitalmars-d
On 07/17/2014 05:58 PM, Andrei Alexandrescu wrote: * volatile has been one of the most awkward parts of the C and C++ specifications. If we're to learn of anything about it, it's we must stay away from it. It is extremely heavy for what it provides. ... == I think an approach

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Ali Çehreli via Digitalmars-d
On 07/18/2014 10:59 AM, Brad Anderson wrote: maybe use the past participle on the ones with verbs. I vote 100% for past participle, 20% for with. - abbrev : abbreviated: withAbbrev Haha! We can't keep it abbreviated anymore though. Wait, what? :p - removechars:

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/18/2014 11:06 AM, Timon Gehr wrote: On 07/17/2014 05:58 PM, Andrei Alexandrescu wrote: * volatile has been one of the most awkward parts of the C and C++ specifications. If we're to learn of anything about it, it's we must stay away from it. It is extremely heavy for what it provides. ...

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread H. S. Teoh via Digitalmars-d
On Fri, Jul 18, 2014 at 05:59:03PM +, Brad Anderson via Digitalmars-d wrote: [...] Yeah, I agree. I'd hate having a with prefix on everything. Yeah, with doesn't fit everywhere, only in some places. I think withExtension (or withExt) is a very good choice of name. It may apply to a few other

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/18/2014 10:53 AM, Timon Gehr wrote: I've grepped the DMD source and currently 'shared' is a _bit flag_ set or not set on some uint member field of the 'Type' class. I assume this is also the main reason why adding new type qualifiers is a really unpleasant undertaking: this is a highly

Re: [OT] Uploading DConf videos

2014-07-18 Thread Jyxent via Digitalmars-d
On Thursday, 17 July 2014 at 18:54:18 UTC, Andrei Alexandrescu wrote: http://i.imgur.com/x1bsTNf.jpg with archive.org http://i.imgur.com/CEFCgAi.jpg with youtube.com Indeed the archive.org resolutions looks visibly better; my understanding is archive.org is streaming the very mp4 content I

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/18/2014 10:59 AM, Brad Anderson wrote: What do you think? I'd leaven that proposal with the observation that functions are likely to be lexically sorted by name. Hence, like functions should lexicographically be adjacent to each other. setExtension and withExtension will be widely

Re: Integer overflow and underflow semantics?

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/18/2014 1:59 AM, John Colvin wrote: On Friday, 18 July 2014 at 08:49:43 UTC, Walter Bright wrote: On 7/17/2014 4:56 AM, David Nadlinger wrote: Oh dear, you'd be in for a very nasty surprise if you relied on this. ;) When I wrote that part of the spec, it was long before these sorts of

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Meta via Digitalmars-d
On Friday, 18 July 2014 at 17:59:05 UTC, Brad Anderson wrote: On Friday, 18 July 2014 at 08:48:08 UTC, Walter Bright wrote: [...] Since there are a lot of existing lazy algorithms in Phobos that do not follow this naming convention, either the convention is pointless or we go through yet

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Tourist via Digitalmars-d
On Thursday, 17 July 2014 at 22:59:27 UTC, Brad Anderson wrote: Walter's prototype[1] for removing allocations from a phobos function (std.path.setExtension) got hung up on the naming of the function. It couldn't keep the same name because it differed only by return type. Walter doesn't like

Re: [OT] Uploading DConf videos

2014-07-18 Thread Jacob Carlborg via Digitalmars-d
On 2014-07-18 17:44, Andrei Alexandrescu wrote: Somehow the same DConf videos are of better quality on archive.org than on youtube.com. Could you explain that? -- Andrei You're streaming and not downloading from Youtube. I always download longer video clips from Youtube. I don't want any

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 18:49:13 UTC, H. S. Teoh via Digitalmars-d wrote: [...] I think it's a fool's errand to try to invent a single system of naming that's blindly applied across the board. We should have some guiding principles for common cases (like withXxx, xxxOf, verbed, etc.) for

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/18/2014 12:40 PM, Tourist wrote: Are you planning to deprecate the non-lazy functions at some (maybe very distant) point? No. Phobos has already gone through multiple rounds of renaming/deprecation, all at considerable disruption. Each one was supposed to be worth it and the last time.

Re: [OT] Uploading DConf videos

2014-07-18 Thread Guillaume Chatelet via Digitalmars-d
A few things to know : - Bitrate is adaptive to accommodate for - slow to high speed transport layer - windowed to fullscreen image size (as for C++ you pay for what you want :) - resolution can be forced ( click the bottom right gear ) - The original format you upload matters : see

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 19:00:56 UTC, Walter Bright wrote: On 7/18/2014 10:59 AM, Brad Anderson wrote: What do you think? I'd leaven that proposal with the observation that functions are likely to be lexically sorted by name. Hence, like functions should lexicographically be adjacent to

Re: Random points from a D n00b CTO

2014-07-18 Thread Joseph Rushton Wakeling via Digitalmars-d
On 14/07/14 08:13, Manu via Digitalmars-d wrote: I'm among the minority that REALLY care about this, and it's clear (and it's been made clear) that if I'm not prepared to work on it myself, then it won't move forward. I was one of the people who (gently, I hope) made that suggestion to you. I

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 20:35:33 UTC, Walter Bright wrote: General comment (not particularly directed at Tourist): There is no such thing as the perfect set of names and the perfect naming convention. These discussions about which of car, auto, vehicle is more intuitive give the illusion

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread H. S. Teoh via Digitalmars-d
On Fri, Jul 18, 2014 at 09:14:44PM +, Brad Anderson via Digitalmars-d wrote: On Friday, 18 July 2014 at 20:35:33 UTC, Walter Bright wrote: [...] I find these interminable naming threads to be frustrating and an impediment to progress on issues with Phobos that actually matter, like making

Re: [OT] Uploading DConf videos

2014-07-18 Thread Andrei Alexandrescu via Digitalmars-d
On 7/18/14, 10:46 AM, Nick Sabalausky wrote: On 7/18/2014 12:40 PM, David Gileadi wrote: And you can always download a high-quality version from YouTube in various formats (including the original format) using something like ClipGrab. But not the original non-re-encoded version. So I think

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/18/2014 2:14 PM, Brad Anderson wrote: It's kind of weird that you'd say that because you seem to be pretty strongly opinionated about the naming. It's not just this one, it comes up again and again, always spawning long debates, and accomplishing next to nothing. I find these

Re: [OT] Uploading DConf videos

2014-07-18 Thread Andrei Alexandrescu via Digitalmars-d
On 7/18/14, 12:53 PM, Jacob Carlborg wrote: On 2014-07-18 17:44, Andrei Alexandrescu wrote: Somehow the same DConf videos are of better quality on archive.org than on youtube.com. Could you explain that? -- Andrei You're streaming and not downloading from Youtube. I always download longer

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 22:37:26 UTC, Walter Bright wrote: On 7/18/2014 2:14 PM, Brad Anderson wrote: It's kind of weird that you'd say that because you seem to be pretty strongly opinionated about the naming. It's not just this one, it comes up again and again, always spawning long

Bug in Array?

2014-07-18 Thread Frustrated via Digitalmars-d
std.container.Array seems to have a bug in the latest beta. emplace fails // Insert one item size_t insertBack(Stuff)(Stuff stuff) if (isImplicitlyConvertible!(Stuff, T)) { if (_capacity == length) { reserve(1 + capacity *

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-18 Thread Timon Gehr via Digitalmars-d
On 07/18/2014 08:37 PM, Walter Bright wrote: On 7/18/2014 11:06 AM, Timon Gehr wrote: On 07/17/2014 05:58 PM, Andrei Alexandrescu wrote: * volatile has been one of the most awkward parts of the C and C++ specifications. If we're to learn of anything about it, it's we must stay away from it.

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/18/2014 4:58 PM, Timon Gehr wrote: On 07/18/2014 08:37 PM, Walter Bright wrote: That doesn't change the heavy effort in the semantic front end What does this mean in detail? Is it just about the unfortunate AST representation chosen or are there more sources of heavy effort in the front

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
To summarize what I think are the best ideas so far: std.string -- EagerLazy - capitalize capitalized center centered detabdetabbed entabentabbed format formatted leftJustify

Re: Encouraging memory efficiency

2014-07-18 Thread Timon Gehr via Digitalmars-d
On 07/17/2014 06:27 PM, Tero wrote: Just watched Don's DConf 2014 talk where he said D has to be ruthless about memory inefficiency. Here's one thing that I think could help avoid unnecessary garbage: built-in syntax for this: import core.stdc.stdlib : alloca; ubyte[] buffer = (cast(ubyte*)

Re: [OT] Uploading DConf videos

2014-07-18 Thread Joakim via Digitalmars-d
On Friday, 18 July 2014 at 22:39:02 UTC, Andrei Alexandrescu wrote: On 7/18/14, 12:53 PM, Jacob Carlborg wrote: On 2014-07-18 17:44, Andrei Alexandrescu wrote: Somehow the same DConf videos are of better quality on archive.org than on youtube.com. Could you explain that? -- Andrei You're

Re: [OT] Uploading DConf videos

2014-07-18 Thread currysoup via Digitalmars-d
On Friday, 18 July 2014 at 21:26:34 UTC, Andrei Alexandrescu wrote: On 7/18/14, 10:46 AM, Nick Sabalausky wrote: On 7/18/2014 12:40 PM, David Gileadi wrote: And you can always download a high-quality version from YouTube in various formats (including the original format) using something

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Timon Gehr via Digitalmars-d
On 07/18/2014 09:23 PM, Meta wrote: On Friday, 18 July 2014 at 17:59:05 UTC, Brad Anderson wrote: On Friday, 18 July 2014 at 08:48:08 UTC, Walter Bright wrote: [...] Since there are a lot of existing lazy algorithms in Phobos that do not follow this naming convention, either the convention is

Re: [OT] Uploading DConf videos

2014-07-18 Thread deadalnix via Digitalmars-d
On Friday, 18 July 2014 at 22:39:02 UTC, Andrei Alexandrescu wrote: On 7/18/14, 12:53 PM, Jacob Carlborg wrote: On 2014-07-18 17:44, Andrei Alexandrescu wrote: Somehow the same DConf videos are of better quality on archive.org than on youtube.com. Could you explain that? -- Andrei You're

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-18 Thread Timon Gehr via Digitalmars-d
On 07/19/2014 02:07 AM, Walter Bright wrote: On 7/18/2014 4:58 PM, Timon Gehr wrote: On 07/18/2014 08:37 PM, Walter Bright wrote: That doesn't change the heavy effort in the semantic front end What does this mean in detail? Is it just about the unfortunate AST representation chosen or are

Re: [OT] Uploading DConf videos

2014-07-18 Thread Kiith-Sa via Digitalmars-d
On Saturday, 19 July 2014 at 00:31:33 UTC, Joakim wrote: On Friday, 18 July 2014 at 22:39:02 UTC, Andrei Alexandrescu wrote: On 7/18/14, 12:53 PM, Jacob Carlborg wrote: On 2014-07-18 17:44, Andrei Alexandrescu wrote: Somehow the same DConf videos are of better quality on archive.org than on

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-18 Thread Walter Bright via Digitalmars-d
On 7/18/2014 6:16 PM, Timon Gehr wrote: On 07/19/2014 02:07 AM, Walter Bright wrote: On 7/18/2014 4:58 PM, Timon Gehr wrote: On 07/18/2014 08:37 PM, Walter Bright wrote: That doesn't change the heavy effort in the semantic front end What does this mean in detail? Is it just about the

Re: [OT] Uploading DConf videos

2014-07-18 Thread Andrei Alexandrescu via Digitalmars-d
On 7/18/14, 5:58 PM, currysoup wrote: On Friday, 18 July 2014 at 21:26:34 UTC, Andrei Alexandrescu wrote: On 7/18/14, 10:46 AM, Nick Sabalausky wrote: On 7/18/2014 12:40 PM, David Gileadi wrote: And you can always download a high-quality version from YouTube in various formats (including the

Re: [OT] Uploading DConf videos

2014-07-18 Thread Andrei Alexandrescu via Digitalmars-d
On 7/18/14, 6:15 PM, Kiith-Sa wrote: This. Vimeo is quite popular, quality shouldn't be a problem and people aren't going to wait for an hour like with archive.org. Awesome. Can you please volunteer to mirror all of dconf videos to vimeo? Thanks. Andrei: I'm about 90% sure you're doing

Re: [OT] Uploading DConf videos

2014-07-18 Thread Andrei Alexandrescu via Digitalmars-d
On 7/18/14, 5:31 PM, Joakim wrote: On Friday, 18 July 2014 at 22:39:02 UTC, Andrei Alexandrescu wrote: On 7/18/14, 12:53 PM, Jacob Carlborg wrote: On 2014-07-18 17:44, Andrei Alexandrescu wrote: Somehow the same DConf videos are of better quality on archive.org than on youtube.com. Could you

Re: [OT] Uploading DConf videos

2014-07-18 Thread Joakim via Digitalmars-d
On Saturday, 19 July 2014 at 03:37:37 UTC, Andrei Alexandrescu wrote: On 7/18/14, 5:31 PM, Joakim wrote: Do you increase the resolution of your Youtube videos when you don't like the quality that it's streaming? I streamed at maximum resolution (720p) when taking those screenshots. Sorry,

Re: Integer overflow and underflow semantics?

2014-07-18 Thread via Digitalmars-d
On Friday, 18 July 2014 at 19:02:48 UTC, Walter Bright wrote: No, it doesn't, and I don't intend to add them. I believe they cause more trouble than they're worth. That applies to some other optimizations I've also refused to implement, because while legal, they mess up code that most users

Re: Attempt at DWT 64 bit port

2014-07-18 Thread Mike via Digitalmars-d-dwt
On Tuesday, 24 June 2014 at 19:06:34 UTC, Jacob Carlborg wrote: I think it should be only one code base. SWT is actually only one code base. They have a tool that converts between 32bit and 64bit. Where can one obtain this tool and, hopefully, its source code? Mike

Dump mixins (preprocessed/generated) code

2014-07-18 Thread Domingo Alvarez Duarte via Digitalmars-d-learn
Hello ! I'm trying to make MiniD/Croc work with dmd2 and I'm having a problem with this code and I want to know how to dump the generated code to understand what's happening. How that can be done ? debugmixin.d-mixin-15(15): Error: no identifier for declarator char[] -debugmixin.d

Re: Dump mixins (preprocessed/generated) code

2014-07-18 Thread Rikki Cattermole via Digitalmars-d-learn
On 18/07/2014 11:39 p.m., Domingo Alvarez Duarte wrote: Hello ! I'm trying to make MiniD/Croc work with dmd2 and I'm having a problem with this code and I want to know how to dump the generated code to understand what's happening. How that can be done ? debugmixin.d-mixin-15(15): Error: no

Re: Dump mixins (preprocessed/generated) code

2014-07-18 Thread Rikki Cattermole via Digitalmars-d-learn
On 19/07/2014 12:09 a.m., Domingo Alvarez Duarte wrote: Thank you so much ! That did exactly what I was looking for, but now why I'm getting that error message ? Any help is welcome ! Cheers ! The generated code seems to fine: debug assert(t.stackIndex t.stackBase, (printStack(t),

Re: Dump mixins (preprocessed/generated) code

2014-07-18 Thread Dicebot via Digitalmars-d-learn
While `static if` false branch does not get compiled or semantically evaluated it still should have a valid syntax. __FUNCTION__ gets replaced with a fully qualified name of a function which has dot inside - illegal identifier for a variable. This causes parser to freak out.

mysterious performance gain

2014-07-18 Thread Archibald via Digitalmars-d-learn
Hello, So I have this big, performance critical function that takes about 9 seconds to execute. If I add : double[] direct = new double[2]; ... at the beggining of the function, with no further reference to this array, suddenly it takes only 8 seconds. Any rational explaination to this? (

Re: mysterious performance gain

2014-07-18 Thread bearophile via Digitalmars-d-learn
Archibald: Any rational explaination to this? ( Seems unrelated to garbage collection ) Not nearly enough info to answer. It looks fishy. Bye, bearophile

Re: Binary IO

2014-07-18 Thread Alexandre via Digitalmars-d-learn
Maybe this can be usefull for u https://gist.github.com/bencz/3576dfc8a217a34c05a9 On Thursday, 17 July 2014 at 23:04:06 UTC, H. S. Teoh via Digitalmars-d-learn wrote: On Thu, Jul 17, 2014 at 09:01:35PM +, seany via Digitalmars-d-learn wrote: Data is a built in type? what includefile do

Calling dynamically bound functions from weakly pure function

2014-07-18 Thread Rene Zwanenburg via Digitalmars-d-learn
For all intents and purposes, the following code can be weakly pure: struct VAO { }

Re: Dump mixins (preprocessed/generated) code

2014-07-18 Thread Domingo Alvarez Duarte via Digitalmars-d-learn
Thanks for all you answers, I think I found the problem. The constant __FUNCTION__ was not a compiler reserved word at the time MiniD/Croc was created and it was introduced later on dmd2, it was clashing with it. I renamed it to __MFUNCTUION__ and it compiles now, I'm getting more errors of

  1   2   >