Re: DConf 2014 acceptance rate likely under 50%

2014-02-17 Thread Walter Bright
On 2/16/2014 10:21 PM, Rory McGuire wrote: Great news! In a strange way. Perhaps we could encourage the people that are not accepted to make videos of their submissions by going to local universities and asking if they can do a talk there? Would be an interesting way of promoting D and getting

Re: std.serialization

2014-02-17 Thread Rory McGuire
Interesting, do you have to run though all registered classes that are sub-classes of the base class and cast them checking for null? On Mon, Feb 17, 2014 at 9:24 AM, Jacob Carlborg d...@me.com wrote: On Monday, 17 February 2014 at 06:09:35 UTC, Rory McGuire wrote: A base class reference

Re: early alpha of D REPL

2014-02-17 Thread Rory McGuire
hehe, sorry. I use GMail and your comment was the last comment so I ended up commenting on your comment instead of the announcement. On Fri, Feb 14, 2014 at 4:33 PM, Tourist grava...@gravatar.com wrote: Looks like you're being sarcastic. What I meant is that sending comments twice

Re: Bounty for -minimal compiler flag

2014-02-17 Thread 1100110
On 2/17/14, 0:40, Paulo Pinto wrote: On Sunday, 16 February 2014 at 23:40:58 UTC, 1100110 wrote: On 2/16/14, 10:18, Elie Morisse wrote: IMHO an approach that would not involve making a binary choice between full D and minimal D is to add an option to make the linker strip druntime and Phobos'

Re: DConf 2014 acceptance rate likely under 50%

2014-02-17 Thread Dicebot
Both good and bad news. Awesome part is that D community is already able to generate that much quality content for a yearly conference. Somewhat sad part is that a lot of good stuff won't be seen because simply publishing talks is not that encouraging as hitting DConf itself :) There are

Re: DConf 2014 acceptance rate likely under 50%

2014-02-17 Thread simendsjo
On Monday, 17 February 2014 at 13:45:03 UTC, Dicebot wrote: Both good and bad news. Awesome part is that D community is already able to generate that much quality content for a yearly conference. Somewhat sad part is that a lot of good stuff won't be seen because simply publishing talks is not

Re: DConf 2014 acceptance rate likely under 50%

2014-02-17 Thread Daniel Kozák
Dicebot píše v Po 17. 02. 2014 v 13:45 +: There are some internal speculations about possibility to host smaller european counterpart of DConf at Sociomantic in other part of the year but have no idea if something will actually come out of it eventually. This would be great! I am

Re: DConf 2014 acceptance rate likely under 50%

2014-02-17 Thread Ali Çehreli
On 02/17/2014 12:18 AM, Walter Bright wrote: I encourage all of them, accepted or not, to also submit their proposals to other conferences. Still in Silicon Valley but I think Code Camp is yet another conference D should be present at. Twelve tracks, hundreds of speakers and sessions:

Re: COMPO

2014-02-17 Thread Steve Teale
On Monday, 17 February 2014 at 06:57:55 UTC, Steve Teale wrote: I would love to get some feedback on both the application and the documentation Have now done a dual-boot install of Ubuntu 12.04 64 bit, and built COMPO using that. Seems to pass limited sanity testing. Will make a .deb file

Re: std.serialization

2014-02-17 Thread Jacob Carlborg
On 2014-02-17 13:20, Rory McGuire wrote: Interesting, do you have to run though all registered classes that are sub-classes of the base class and cast them checking for null? No, that's not required. When a subclass is registered I'm storing a templated delegate which performs the downcast.

Re: Bounty for -minimal compiler flag

2014-02-17 Thread Jacob Carlborg
On 2014-02-16 21:51, Steven Schveighoffer wrote: Right, but there is no obligation to follow this pattern. One is free to just not do anything, and the GC will clean up your garbage. I was replying to the issue that it's not possible to know in the destructor of a class if it's destroyed by

Re: Bounty for -minimal compiler flag

2014-02-17 Thread inout
On Monday, 17 February 2014 at 06:40:54 UTC, Paulo Pinto wrote: On Sunday, 16 February 2014 at 23:40:58 UTC, 1100110 wrote: On 2/16/14, 10:18, Elie Morisse wrote: IMHO an approach that would not involve making a binary choice between full D and minimal D is to add an option to make the

Re: Digger - a D archeology tool

2014-02-17 Thread Joakim
On Monday, 17 February 2014 at 07:46:04 UTC, Andrej Mitrovic wrote: On 2/17/14, Vladimir Panteleev vladi...@thecybershadow.net wrote: https://github.com/CyberShadow/Digger Now I understand how you've managed to find offending pull requests for regressions so fast. Will try the tool as soon

Re: DConf 2014 acceptance rate likely under 50%

2014-02-17 Thread Walter Bright
On 2/17/2014 5:45 AM, Dicebot wrote: Both good and bad news. Awesome part is that D community is already able to generate that much quality content for a yearly conference. Somewhat sad part is that a lot of good stuff won't be seen because simply publishing talks is not that encouraging as

Re: Bounty for -minimal compiler flag

2014-02-17 Thread Paulo Pinto
Am 17.02.2014 21:40, schrieb inout: On Monday, 17 February 2014 at 06:40:54 UTC, Paulo Pinto wrote: On Sunday, 16 February 2014 at 23:40:58 UTC, 1100110 wrote: On 2/16/14, 10:18, Elie Morisse wrote: IMHO an approach that would not involve making a binary choice between full D and minimal D

Re: DConf 2014 acceptance rate likely under 50%

2014-02-17 Thread John Carter
At various academic conferences I have attended they have had Poster Sessions where instead of a formal stand up and talk people put up A0 posters. The submitter then can stand around to field questions and deeper discussion from those interested. Although A0 paper is a bit Old Worlde in this

dmd 2.065 rc 1

2014-02-17 Thread Andrew Edwards
First I would like to say thanks to Martin Nowak, Kenji Hara, Jordi Sayol and Brad Anderson for their support. Their efforts directly impact my ability to prepare the releases and they work tirelessly to ensure that it happens. RC1 is available for review: All Systems:

Re: dmd 2.065 rc 1

2014-02-17 Thread Walter Bright
On 2/17/2014 3:17 PM, Andrew Edwards wrote: First I would like to say thanks to Martin Nowak, Kenji Hara, Jordi Sayol and Brad Anderson for their support. Their efforts directly impact my ability to prepare the releases and they work tirelessly to ensure that it happens. Awesome! Thanks and

Re: dmd 2.065 beta 1 #2

2014-02-17 Thread Dejan Lekic
Andrew Edwards wrote: On 1/26/14, 11:19 AM, Jordi Sayol wrote: El 26/01/14 16:23, Dejan Lekic ha escrit: On Wednesday, 22 January 2014 at 08:25:05 UTC, Jordi Sayol wrote: El 22/01/14 02:06, Andrew Edwards ha escrit: On 1/21/14, 6:02 PM, Jordi Sayol wrote: El 21/01/14 23:29, Brad Anderson ha

Re: dmd 2.065 rc 1

2014-02-17 Thread Dejan Lekic
Andrew Edwards wrote: First I would like to say thanks to Martin Nowak, Kenji Hara, Jordi Sayol and Brad Anderson for their support. Their efforts directly impact my ability to prepare the releases and they work tirelessly to ensure that it happens. RC1 is available for review: All

Re: DConf 2014 acceptance rate likely under 50%

2014-02-17 Thread Ary Borenszweig
On 2/16/14, 10:55 PM, Andrei Alexandrescu wrote: Hello, Walter and I are hard at work on reviewing DConf 2014 submissions. We'd like to thank all of you who have submitted. There is not even one submission that we found sub-par or unacceptable. That said, the sheer numbers force us to make

Re: Bounty for -minimal compiler flag

2014-02-17 Thread Steven Schveighoffer
On Mon, 17 Feb 2014 15:12:39 -0500, Jacob Carlborg d...@me.com wrote: On 2014-02-16 21:51, Steven Schveighoffer wrote: Right, but there is no obligation to follow this pattern. One is free to just not do anything, and the GC will clean up your garbage. I was replying to the issue that it's

Re: DConf 2014 acceptance rate likely under 50%

2014-02-17 Thread Rikki Cattermole
On Monday, 17 February 2014 at 21:28:24 UTC, John Carter wrote: At various academic conferences I have attended they have had Poster Sessions where instead of a formal stand up and talk people put up A0 posters. The submitter then can stand around to field questions and deeper discussion

Re: dmd 2.065 rc 1

2014-02-17 Thread Walter Bright
On 2/17/2014 5:26 PM, Dejan Lekic wrote: Speaking about Fedora, DMD will never get into their official repository. I've spoken to them. Even the RPMFusion guys were sceptical. Reason is simple, every new mirror would need to request permission from Walter to distribute DMD backend. Ask them to

Re: std.serialization

2014-02-17 Thread Rory McGuire
On Mon, Feb 17, 2014 at 10:10 PM, Jacob Carlborg d...@me.com wrote: No, that's not required. When a subclass is registered I'm storing a templated delegate which performs the downcast. Have a look at these two methods:

Re: dmd 2.065 rc 1

2014-02-17 Thread Joakim
On Tuesday, 18 February 2014 at 01:26:52 UTC, Dejan Lekic wrote: Andrew Edwards wrote: First I would like to say thanks to Martin Nowak, Kenji Hara, Jordi Sayol and Brad Anderson for their support. Their efforts directly impact my ability to prepare the releases and they work tirelessly to

Re: D as A Better C?

2014-02-17 Thread Marco Leise
Am Tue, 11 Feb 2014 11:43:02 -0800 schrieb Walter Bright newshou...@digitalmars.com: I've toyed with this idea for a while, and wondered what the interest there is in something like this. The idea is to be able to use a subset of D that does not require any of druntime or phobos - it

Re: switch()

2014-02-17 Thread Kapps
On Sunday, 16 February 2014 at 15:43:31 UTC, Manu wrote: int difficulty; switch(e.note.note) { case 60: .. case 71: difficulty = 0; break; case 72: .. case 83: difficulty = 1; break; case 84: .. case 95: difficulty = 2; break; case 96: .. case 107: difficulty = 3; break; default: difficulty =

Re: D as A Better C?

2014-02-17 Thread Marco Leise
Am Tue, 11 Feb 2014 21:12:12 + schrieb bearophile bearophileh...@lycos.com: Steven Schveighoffer: I think you overestimate the size of this project. The project is very small as long as people don't start creating (or modifying) library modules for such language subset. Bye,

Re: C++ Binding Generator

2014-02-17 Thread eles
On Monday, 17 February 2014 at 07:48:51 UTC, w0rp wrote: On Monday, 17 February 2014 at 01:16:44 UTC, Xavier Bigand wrote: Le 17/02/2014 01:36, w0rp a écrit : On Saturday, 15 February 2014 at 03:36:29 UTC, michaelc37 wrote: Writing a native D GUI library instead of wrapping a C++ one is a

Re: is(Mutex == shared) == false?

2014-02-17 Thread Sönke Ludwig
Am 11.02.2014 06:58, schrieb Sean Kelly: On Saturday, 8 February 2014 at 16:46:26 UTC, Stanislav Blinov wrote: Also, on a related note, is there any benefit in having core.sync primitives not final? What would be a use case to inherit from e.g. Mutex or Condition? GC does that with Mutex, but

Re: switch()

2014-02-17 Thread Walter Bright
On 2/16/2014 7:39 PM, Manu wrote: I think a really useful construct could be made out of switch, but it seems that it won't happen because it must support C code unchanged. I tend to agree with Andrei on this - the proposals aren't fundamental or game changing, and are kinda just bouncing the

Re: C++ Binding Generator

2014-02-17 Thread Abdulhaq
I have a SWIG version of D-VTK but it is a little flaky and s slow to generate. I've just started work developing D wrapper for VTK based on their Java wrapper but it's very early stages (started yesterday in fact). If you've got a VTK wrapping that generates D code I'd love to check

Re: C++ Binding Generator

2014-02-17 Thread Abdulhaq
On Monday, 17 February 2014 at 01:16:44 UTC, Xavier Bigand wrote: Le 17/02/2014 01:36, w0rp a écrit : On Saturday, 15 February 2014 at 03:36:29 UTC, michaelc37 wrote: I'll try Qt5 later. The main reason I'm trying to get Qt4 working at the moment is that I have experience with Qt4, but not

Re: C++ Binding Generator

2014-02-17 Thread Abdulhaq
On Monday, 17 February 2014 at 00:36:58 UTC, w0rp wrote: On Saturday, 15 February 2014 at 03:36:29 UTC, michaelc37 wrote: [1] QtD is not actively maintained. It existed on BitBucket: https://bitbucket.org/qtd/repo before someone else forked it and moved to GitHub:

Re: is(Mutex == shared) == false?

2014-02-17 Thread Stanislav Blinov
On Monday, 17 February 2014 at 08:29:41 UTC, Sönke Ludwig wrote: vibe.d currently (ab)uses this fact to be able to use its own mutex class as object monitors and for use in synchronized blocks. I agree that they should generally be final, but please let's add another way to plug in there when

Re: TypeInfo in the library

2014-02-17 Thread Max Samukha
On Friday, 14 February 2014 at 20:05:53 UTC, Rainer Schuetze wrote: The only drawback I see is that it makes compilation a bit slower and pollutes object files with code just executed during CTFE. Currently, the bloat can be reduced like this: void foo() { if (__ctfe) { //

Re: is(Mutex == shared) == false?

2014-02-17 Thread Stanislav Blinov
On Monday, 17 February 2014 at 02:22:10 UTC, Andrei Alexandrescu wrote: Feel free to paste these in a wiki page. Experience suggests that me telling people what I think is important and must be done has very limited impact. I'd hazard a guess that this is in part because whatever consensus

Re: C++ Binding Generator

2014-02-17 Thread Andrej Mitrovic
On 2/16/14, Abdulhaq alynch4...@gmail.com wrote: that should of course be https://github.com/alynch4047/smidgen Nice. I've had a codegen project before which is currently stalled: https://github.com/AndrejMitrovic/dgen Some docs I wrote about peculiarities of wrapping C++:

Re: switch()

2014-02-17 Thread Nick Sabalausky
On 2/16/2014 10:39 PM, Manu wrote: Yeah, but when I suggest a..b, I suggest applying existing [) range rules, as would be expected. It doesn't make sense for enum keys, and I think the existing syntax is acceptable for [] usage with enum keys, but you're not always switching on enums. Perhaps

Re: switch()

2014-02-17 Thread Damian Day
On Sunday, 16 February 2014 at 15:43:31 UTC, Manu wrote: So D offers great improvements to switch(), but there are a few small things I wonder about. 1. case fall-through is not supported; explicit 'goto case n;' is required. With this in mind, 'break' is unnecessary. Why is it required? It

Re: switch()

2014-02-17 Thread Chris Cain
On Monday, 17 February 2014 at 04:00:08 UTC, Manu wrote: Of course, I'd just write the above as: int difficulty = e.note.note.between(60,108) ? (e.note.note-60)/12 : -1; Yes yes, very clever. Obviously it's an example and could come in any shape or form. Personally, I also wouldn't do

Re: is(Mutex == shared) == false?

2014-02-17 Thread Tolga Cakiroglu (tcak)
Not everyone is fond of taking initiative, that's a known fact. Me, I'm tired of seeing new big features and ideas popping up when there's so much unfinished business in the language, runtime and Phobos. When I left this NG (two years ago?) 'shared' was an infant, today it's just a tad more

Re: switch()

2014-02-17 Thread Manu
On 17 February 2014 16:18, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/16/14, 7:42 AM, Manu wrote: So D offers great improvements to switch(), but there are a few small things I wonder about. TL;DR of my answer to this: at some point we must get used to the notion that

Re: TypeInfo in the library

2014-02-17 Thread Dicebot
On Monday, 17 February 2014 at 09:33:01 UTC, Max Samukha wrote: But that's an awful dangerous hack. A better solution is needed. I have been thinking about addition of something like `pragma(nocodegen)` to the language. Should be simple to implement and can fix some of most crazy bloat

Re: switch()

2014-02-17 Thread Manu
On 17 February 2014 18:43, Walter Bright newshou...@digitalmars.com wrote: On 2/16/2014 7:39 PM, Manu wrote: I think a really useful construct could be made out of switch, but it seems that it won't happen because it must support C code unchanged. I tend to agree with Andrei on this - the

Re: switch()

2014-02-17 Thread Ary Borenszweig
On 2/16/14, 5:03 PM, Walter Bright wrote: On 2/16/2014 7:42 AM, Manu wrote: 3. Why is 'default' necessary? If I'm not switching on an enumerated type, then many values are meaningless. requiring an empty 'default: break;' line at the end is annoying and noisy. It originally was not required,

Re: std.allocator ready for some abuse

2014-02-17 Thread Dicebot
Andrei, what is current state of std.allocator? I am asking this in context of recent Walter Phobos proposal (ScopeBuffer) to evaluate how feasible is to define any relations between two at current stage.

Re: List of Phobos functions that allocate memory?

2014-02-17 Thread Daniel Murphy
Marco Leise wrote in message news:20140217030525.67a21...@org.homedns.org... 0xFFFD should probably be used only when error messages are out of question like when displaying/printing text only. What do you use for displaying text, if not a text editor?

Re: switch()

2014-02-17 Thread Manu
On 17 February 2014 22:38, Chris Cain clc...@uncg.edu wrote: On Monday, 17 February 2014 at 04:00:08 UTC, Manu wrote: Of course, I'd just write the above as: int difficulty = e.note.note.between(60,108) ? (e.note.note-60)/12 : -1; Yes yes, very clever. Obviously it's an example and could

Re: Phobos for Review: std.buffer.scopebuffer

2014-02-17 Thread Dicebot
I have created a small summary for this proposal based on existing comments : http://wiki.dlang.org/Std.buffer.scopebuffer By this point I consider initial discussion finished and from now it is up to Walter to prepare his proposal to formal review for Phobos inclusion. Walter, please write

Re: TypeInfo in the library

2014-02-17 Thread Kenji Hara
If a function is only used for CTFE, compiler can elide its codegen. It's in the scope of optimization. Kenji Hara 2014-02-17 22:48 GMT+09:00 Dicebot pub...@dicebot.lv: On Monday, 17 February 2014 at 09:33:01 UTC, Max Samukha wrote: But that's an awful dangerous hack. A better solution is

Re: switch()

2014-02-17 Thread Kenji Hara
2014-02-17 22:33 GMT+09:00 Manu turkey...@gmail.com: On 17 February 2014 16:18, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/16/14, 7:42 AM, Manu wrote: So D offers great improvements to switch(), but there are a few small things I wonder about. TL;DR of my answer to

Re: switch()

2014-02-17 Thread Manu
On 18 February 2014 01:02, Kenji Hara k.hara...@gmail.com wrote: 2014-02-17 22:33 GMT+09:00 Manu turkey...@gmail.com: On 17 February 2014 16:18, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/16/14, 7:42 AM, Manu wrote: So D offers great improvements to switch(), but there

Re: std.allocator ready for some abuse

2014-02-17 Thread Andrei Alexandrescu
On 2/17/14, 5:55 AM, Dicebot wrote: Andrei, what is current state of std.allocator? I am asking this in context of recent Walter Phobos proposal (ScopeBuffer) to evaluate how feasible is to define any relations between two at current stage. Progress on std.allocator is slow but I do have a

Re: TypeInfo in the library

2014-02-17 Thread Dicebot
On Monday, 17 February 2014 at 14:51:20 UTC, Kenji Hara wrote: If a function is only used for CTFE, compiler can elide its codegen. It's in the scope of optimization. It can't know for sure it without some sort of WPO / LTO - and those won't happen any time soon. I propose a simple

Re: switch()

2014-02-17 Thread Andrei Alexandrescu
On 2/17/14, 7:42 AM, Daniel Murphy wrote: Manu turkey...@gmail.com wrote in message news:mailman.156.1392649746.6445.digitalmar...@puremagic.com... I agree, to an extent. That's why I say if it is to be improved, I guess it needs a new name. foreach eliminated almost all instances of for. I

Re: TypeInfo in the library

2014-02-17 Thread Kenji Hara
2014-02-18 0:48 GMT+09:00 Dicebot pub...@dicebot.lv: On Monday, 17 February 2014 at 14:51:20 UTC, Kenji Hara wrote: If a function is only used for CTFE, compiler can elide its codegen. It's in the scope of optimization. It can't know for sure it without some sort of WPO / LTO - and those

Re: switch()

2014-02-17 Thread Andrej Mitrovic
On 2/17/14, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: A match statement that figures type patterns and introduce names and all that - that might be more interesting (though being far from a game changer). But that's not quite what has been proposed in this thread. There are some

Re: switch()

2014-02-17 Thread Daniel Murphy
Manu turkey...@gmail.com wrote in message news:mailman.156.1392649746.6445.digitalmar...@puremagic.com... I agree, to an extent. That's why I say if it is to be improved, I guess it needs a new name. foreach eliminated almost all instances of for. I don't think anyone's upset about that.

Re: switch()

2014-02-17 Thread Andrei Alexandrescu
On 2/17/14, 5:33 AM, Manu wrote: On 17 February 2014 16:18, Andrei Alexandrescu seewebsiteforem...@erdani.org mailto:seewebsiteforem...@erdani.org wrote: On 2/16/14, 7:42 AM, Manu wrote: So D offers great improvements to switch(), but there are a few small things I

Re: switch()

2014-02-17 Thread Timon Gehr
On 02/17/2014 04:59 AM, Manu wrote: On 17 February 2014 03:14, Timon Gehr timon.g...@gmx.ch ... Of course, I'd just write the above as: int difficulty = e.note.note.between(60,108) ? (e.note.note-60)/12 : -1; Yes yes, very clever. I can't agree. Obviously it's an example and

Re: switch()

2014-02-17 Thread Dejan Lekic
OT: Do you realise how harsh your posts often appear to people? I often find I need to restrain myself when replying to your blunt dismissals of peoples opinions/suggestions. So, you admit that this is a disaster site, but are reluctant to consider what good may come of it? I'm not

Re: [Fwd: Re: [go-nuts] Re: Generics false dichotomy]

2014-02-17 Thread Andrei Alexandrescu
On 2/16/14, 12:09 PM, Russel Winder wrote: Someone with serious knowledge should wade into this campaign of FUD. The whole thread is wrong-headed. Thanks for mentioning this. It's an interesting thread. I posted a response:

Re: switch()

2014-02-17 Thread Daniel Murphy
Andrei Alexandrescu wrote in message news:ldtbcb$mel$1...@digitalmars.com... A match statement that figures type patterns and introduce names and all that - that might be more interesting (though being far from a game changer). I doubt one can really know if it's a game changer until it has

needed: a mac osx 10.7 or .8 box

2014-02-17 Thread Brad Roberts
The mac mini used for the D auto-tester has a failing drive (all but failed at this point). I've got the tools to crack it open and a new drive on the way, but until then, the box is mostly dead. It's the only mac tester. So, to avoid going to go without testing on a mac for several days, I

Re: C++ Binding Generator

2014-02-17 Thread Abdulhaq
On Monday, 17 February 2014 at 09:46:15 UTC, Andrej Mitrovic wrote: Nice. I've had a codegen project before which is currently stalled: https://github.com/AndrejMitrovic/dgen Some docs I wrote about peculiarities of wrapping C++: https://github.com/AndrejMitrovic/dgen/wiki Interesting

Re: [Fwd: Re: [go-nuts] Re: Generics false dichotomy]

2014-02-17 Thread Andrei Alexandrescu
On 2/17/14, 10:59 AM, Jesse Phillips wrote: On Monday, 17 February 2014 at 17:03:46 UTC, Andrei Alexandrescu wrote: On 2/16/14, 12:09 PM, Russel Winder wrote: Someone with serious knowledge should wade into this campaign of FUD. The whole thread is wrong-headed. Thanks for mentioning this.

Re: switch()

2014-02-17 Thread Manu
On 18 February 2014 02:48, Dejan Lekic dejan.le...@gmail.com wrote: [snip] And do you realise that every sentence in your post is matter your your persona taste. It is extremely subjective, and you provide no proof that majority of people who are interested in all this share your opinion,

Re: [Fwd: Re: [go-nuts] Re: Generics false dichotomy]

2014-02-17 Thread Jesse Phillips
On Monday, 17 February 2014 at 17:03:46 UTC, Andrei Alexandrescu wrote: On 2/16/14, 12:09 PM, Russel Winder wrote: Someone with serious knowledge should wade into this campaign of FUD. The whole thread is wrong-headed. Thanks for mentioning this. It's an interesting thread. I posted a

Re: TypeInfo in the library

2014-02-17 Thread Dmitry Olshansky
17-Feb-2014 17:48, Dicebot пишет: On Monday, 17 February 2014 at 09:33:01 UTC, Max Samukha wrote: But that's an awful dangerous hack. A better solution is needed. I have been thinking about addition of something like `pragma(nocodegen)` to the language. Should be simple to implement and can

Re: TypeInfo in the library

2014-02-17 Thread Dicebot
On Monday, 17 February 2014 at 16:01:50 UTC, Kenji Hara wrote: - Immediately called lambdas enum x = (){ return some_sort_ctfe_calculartions; }; // lambda codegen is unnecessary. True but this is only one of many cases. - modue private functions module a; private string foo() {

Re: TypeInfo in the library

2014-02-17 Thread Johannes Pfau
Am Tue, 18 Feb 2014 01:01:18 +0900 schrieb Kenji Hara k.hara...@gmail.com: In some case it would be possible without WPO/LTO: - Immediately called lambdas enum x = (){ return some_sort_ctfe_calculartions; }; // lambda codegen is unnecessary. - modue private functions module a;

Re: switch()

2014-02-17 Thread Walter Bright
On 2/17/2014 5:49 AM, Manu wrote: Refer to my other reply wrt the 'rubble' concept. Sure :-) I think a quality implementation would be fairly game changing. A properly scoped and fully featured switch/select/match statement would result in some radical simplifications of code all over the

Re: Why is int implicitly convertible to ulong?

2014-02-17 Thread Xinok
On Monday, 17 February 2014 at 04:40:52 UTC, Jonathan M Davis wrote: On Sunday, February 16, 2014 21:35:01 Hannes Steffenhagen wrote: isImplicitlyConvertible!(int,ulong) is true. Maybe this is just me, but I get the impression that this is quite nuts. Why is an implicit conversion from a signed

Re: switch()

2014-02-17 Thread Walter Bright
On 2/17/2014 5:33 AM, Manu wrote: We can compact it a bit like this: int difficulty; switch(e.note.note) { case 60: .. case 71: difficulty = 0; break; case 72: .. case 83: difficulty = 1; break; case 84: .. case 95:

Re: [Fwd: Re: [go-nuts] Re: Generics false dichotomy]

2014-02-17 Thread Paulo Pinto
Am 17.02.2014 20:08, schrieb Andrei Alexandrescu: On 2/17/14, 10:59 AM, Jesse Phillips wrote: On Monday, 17 February 2014 at 17:03:46 UTC, Andrei Alexandrescu wrote: On 2/16/14, 12:09 PM, Russel Winder wrote: Someone with serious knowledge should wade into this campaign of FUD. The whole

Re: C++ Binding Generator

2014-02-17 Thread Jacob Carlborg
On 2014-02-17 10:45, Andrej Mitrovic wrote: Clang itself has a C API, but from what I've read online it doesn't export enough C++ typeinfo either, so I'd have to use the Clang C++ interface instead (maybe libtooling or something of that sort). Why not contribute to Clang by adding the missing

Re: switch()

2014-02-17 Thread Walter Bright
On 2/17/2014 10:03 AM, Manu wrote: Well, I firmly stand by all those convictions. They also look worse out of context. I don't think switch is particularly good, and firmly believe C's switch statement was (is) a design catastrophe. I've believed that for 20 years. You're welcome to disagree,

Re: TypeInfo in the library

2014-02-17 Thread Jacob Carlborg
On 2014-02-17 17:01, Kenji Hara wrote: - modue private functions module a; private string foo() { ... } enum x = foo(); // Compiler can elide codegen for 'foo', if other declarations // in module a don't use it for runtime code. Private functions can be called from other

Re: C++ Binding Generator

2014-02-17 Thread Xavier Bigand
Le 17/02/2014 08:48, w0rp a écrit : On Monday, 17 February 2014 at 01:16:44 UTC, Xavier Bigand wrote: Le 17/02/2014 01:36, w0rp a écrit : On Saturday, 15 February 2014 at 03:36:29 UTC, michaelc37 wrote: I'll try Qt5 later. The main reason I'm trying to get Qt4 working at the moment is that I

Re: C++ Binding Generator

2014-02-17 Thread Xavier Bigand
Le 17/02/2014 09:18, eles a écrit : On Monday, 17 February 2014 at 07:48:51 UTC, w0rp wrote: On Monday, 17 February 2014 at 01:16:44 UTC, Xavier Bigand wrote: Le 17/02/2014 01:36, w0rp a écrit : On Saturday, 15 February 2014 at 03:36:29 UTC, michaelc37 wrote: Writing a native D GUI library

Re: C++ Binding Generator

2014-02-17 Thread Xavier Bigand
Le 17/02/2014 09:54, Abdulhaq a écrit : On Monday, 17 February 2014 at 01:16:44 UTC, Xavier Bigand wrote: Le 17/02/2014 01:36, w0rp a écrit : On Saturday, 15 February 2014 at 03:36:29 UTC, michaelc37 wrote: I'll try Qt5 later. The main reason I'm trying to get Qt4 working at the moment is that

Re: needed: a mac osx 10.7 or .8 box

2014-02-17 Thread Joakim
On Monday, 17 February 2014 at 19:34:34 UTC, Brad Roberts wrote: The mac mini used for the D auto-tester has a failing drive (all but failed at this point). I've got the tools to crack it open and a new drive on the way, but until then, the box is mostly dead. It's the only mac tester. So,

Re: [Fwd: Re: [go-nuts] Re: Generics false dichotomy]

2014-02-17 Thread Russel Winder
On Mon, 2014-02-17 at 21:00 +0100, Paulo Pinto wrote: Am 17.02.2014 20:08, schrieb Andrei Alexandrescu: On 2/17/14, 10:59 AM, Jesse Phillips wrote: On Monday, 17 February 2014 at 17:03:46 UTC, Andrei Alexandrescu wrote: On 2/16/14, 12:09 PM, Russel Winder wrote: Someone with serious

Re: needed: a mac osx 10.7 or .8 box

2014-02-17 Thread Brad Roberts
On 2/17/14, 1:51 PM, Joakim wrote: On Monday, 17 February 2014 at 19:34:34 UTC, Brad Roberts wrote: The mac mini used for the D auto-tester has a failing drive (all but failed at this point). I've got the tools to crack it open and a new drive on the way, but until then, the box is mostly

Re: [Fwd: Re: [go-nuts] Re: Generics false dichotomy]

2014-02-17 Thread ponce
On Monday, 17 February 2014 at 17:03:46 UTC, Andrei Alexandrescu wrote: On 2/16/14, 12:09 PM, Russel Winder wrote: Someone with serious knowledge should wade into this campaign of FUD. The whole thread is wrong-headed. Thanks for mentioning this. It's an interesting thread. I posted a

Re: [Fwd: Re: [go-nuts] Re: Generics false dichotomy]

2014-02-17 Thread ponce
On Monday, 17 February 2014 at 22:19:24 UTC, ponce wrote: Granted code bloat is a real thing and you _might_ have instruction cache problems, but the problem only ever show itself when the working set of code exceed the instruction cache capacity. Ie. a huge executable might not be a good

Re: switch()

2014-02-17 Thread Walter Bright
On 2/17/2014 5:48 AM, Ary Borenszweig wrote: On 2/16/14, 5:03 PM, Walter Bright wrote: It originally was not required, but there was a campaign by a lot of D users to make it required to deal with the common bug of adding a value in one switch statement but forgetting to add it to another

Re: switch()

2014-02-17 Thread Ary Borenszweig
On 2/17/14, 7:31 PM, Walter Bright wrote: On 2/17/2014 5:48 AM, Ary Borenszweig wrote: On 2/16/14, 5:03 PM, Walter Bright wrote: It originally was not required, but there was a campaign by a lot of D users to make it required to deal with the common bug of adding a value in one switch

Re: [Fwd: Re: [go-nuts] Re: Generics false dichotomy]

2014-02-17 Thread Asman01
On Monday, 17 February 2014 at 03:59:15 UTC, logicchains wrote: On Sunday, 16 February 2014 at 20:29:04 UTC, Walter Bright wrote: It's not exactly true. What has happened is I spent a LOT of time trying to make my C/C++ compiler fast. That experience has enabled me to design D so it is

mysql-native: newbie questions

2014-02-17 Thread salvari
Hi all! After 14 years using Perl for programming at job I'm now learning D. (And enjoying it) We've been using Perl (at job) for years for loading input data (UTF files) into a database and using these data for different purposes. The volume of input data files has been constantly

Re: C++ Binding Generator

2014-02-17 Thread Andrej Mitrovic
On 2/17/14, Abdulhaq alynch4...@gmail.com wrote: Interesting reading, it seems we've run into the same problems (not surprising I suppose) and even come up with the same solutions (virtual functions, return-by-value). And then there are things like trying to allow access to protected methods

Re: switch()

2014-02-17 Thread Asman01
On Monday, 17 February 2014 at 00:27:44 UTC, Namespace wrote: On Monday, 17 February 2014 at 00:22:52 UTC, Casper Færgemand wrote: What about new evolved switch statement, called something as to not confuse it with C syntax? It could be a simple rewrite thing. mysteryswitch (some expression)

Re: switch()

2014-02-17 Thread Walter Bright
On 2/17/2014 2:43 PM, Ary Borenszweig wrote: Now suppose bit_flag can get an additional new_bit_flag value. How does default helps me notice that I'm supposed to add it to that switch statement? Because if you account for all the cases, you write: default: assert(0); Now you intentionally

Re: C++ Binding Generator

2014-02-17 Thread Andrej Mitrovic
On 2/17/14, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 2/17/14, Abdulhaq alynch4...@gmail.com wrote: Interesting reading, it seems we've run into the same problems (not surprising I suppose) and even come up with the same solutions (virtual functions, return-by-value). And then

Re: mysql-native: newbie questions

2014-02-17 Thread simendsjo
On Monday, 17 February 2014 at 22:54:58 UTC, salvari wrote: Hi all! After 14 years using Perl for programming at job I'm now learning D. (And enjoying it) Hi, and welcome. (...) As a newbie I've a few questions. I'm already using D and it's working fine, although I'm writing baby-D the

Re: Why are there Properties in D?

2014-02-17 Thread Dejan Lekic
Robin wrote: Hiho, I am learning D since some time and I must say all in all it is truely a better C++! I especially like the statement of Walter Bright that nowadays it is more important that the programmer can easily read programming text and do not have to interpret every single line

Re: [Fwd: Re: [go-nuts] Re: Generics false dichotomy]

2014-02-17 Thread logicchains
On Monday, 17 February 2014 at 19:08:46 UTC, Andrei Alexandrescu wrote: On 2/17/14, 10:59 AM, Jesse Phillips wrote: Andrei It looks like you've been completely ignored. This may be partly a logistics issue - my name appears garbled. Have you posted to that Google group before? If you

Re: switch()

2014-02-17 Thread Steven Schveighoffer
On Mon, 17 Feb 2014 18:01:38 -0500, Walter Bright newshou...@digitalmars.com wrote: On 2/17/2014 2:43 PM, Ary Borenszweig wrote: Now suppose bit_flag can get an additional new_bit_flag value. How does default helps me notice that I'm supposed to add it to that switch statement? Because

  1   2   3   >