Re: GSoC 2012 Proposal: Continued Work on a D Linear Algebra library (SciD - std.linalg)

2012-04-24 Thread Jens Mueller
Cristi Cobzarenco wrote: > Unfortunately, my proposal was not picked up this year. I might try to work > on these ideas this summer anyway so I would still be very much interested > in ideas and feedback, but I will probably have much less time if I'll be > working somewhere else. I'm less familia

Re: Escaping control in formatting

2012-04-24 Thread Denis Shelomovskij
On Tuesday, 24 April 2012 at 04:55:34 UTC, kenji hara wrote: My concern is that the proposal is much complicated and less useful for general use cases. You can emulate such formatting like follows: IMHO addition of %!+s and %!-s alone and removing %c's magic will only simplify formatting for

Re: Voldemort command structures

2012-04-24 Thread CTFE-4-the-win
On Sunday, 22 April 2012 at 18:42:19 UTC, Brad Anderson wrote: On Sun, Apr 22, 2012 at 4:24 AM, Gor Gyolchanyan < gor.f.gyolchan...@gmail.com> wrote: Voldemort types (coined by Andrei Alexandrescu) are types, which can't be named. Like so: auto getMisteriousData(int i) { struct Mysterious

Can we kill the D calling convention already?

2012-04-24 Thread Alex Rønne Petersen
Writing portable code is hard enough as it is. Why do we have to have some random, D-specialized calling convention (only on Win32 and only in DMD)? The result of the current state of things is that extern(D) is essentially useless - it has completely different meanings across compilers. You ca

Re: Closed development with Trello?

2012-04-24 Thread Jonas Drewsen
On Friday, 20 April 2012 at 20:42:43 UTC, Andrei Alexandrescu wrote: On 4/20/12 2:18 PM, Steven Schveighoffer wrote: On Fri, 20 Apr 2012 11:39:05 -0400, simendsjo wrote: "No results". It seems to only search for boards you are involved in. No global search. That's kind of silly. What is t

Re: Escaping control in formatting

2012-04-24 Thread kenji hara
2012年4月24日17:20 Denis Shelomovskij : > On Tuesday, 24 April 2012 at 04:55:34 UTC, kenji hara wrote: >> >> My concern is that the proposal is much complicated and less useful >> for general use cases. >> You can emulate such formatting like follows: > > > IMHO addition of %!+s and %!-s alone and rem

Re: Can we kill the D calling convention already?

2012-04-24 Thread Iain Buclaw
On 24 April 2012 09:42, Alex Rønne Petersen wrote: > Writing portable code is hard enough as it is. Why do we have to have some > random, D-specialized calling convention (only on Win32 and only in DMD)? > The result of the current state of things is that extern(D) is essentially > useless - it ha

Re: Can we kill the D calling convention already?

2012-04-24 Thread Iain Buclaw
On 24 April 2012 10:08, Iain Buclaw wrote: > On 24 April 2012 09:42, Alex Rønne Petersen wrote: >> Writing portable code is hard enough as it is. Why do we have to have some >> random, D-specialized calling convention (only on Win32 and only in DMD)? >> The result of the current state of things i

Re: Voldemort command structures

2012-04-24 Thread Gor Gyolchanyan
Sure. The whole point of this scheme is to specify the parameters first, and then choose the method to call. This can lead to cool results because the subsequent choice of the method can be deferred to later and/or automated and/or chained with more pre-parametrized calls. You'll be able to keep as

Re: Can we kill the D calling convention already?

2012-04-24 Thread Gor Gyolchanyan
There are lots of times, when a specialized custom calling convention is necessary. For instance, I need a dynamic typing subsystem, to create abstract state machines, which can be effortlessly adapted to run-time heterogeneous data. I already made a function, that takes arbitrary arguments and tig

Re: Can we kill the D calling convention already?

2012-04-24 Thread Kagamin
Speaking about GDC, you can't link to omf files directly - so there shouldn't be any binary incompatibility. If the assembler code is unportable across compilers, it's a developer's mistake or intention.

Re: Can we kill the D calling convention already?

2012-04-24 Thread Alex Rønne Petersen
On 24-04-2012 11:41, Gor Gyolchanyan wrote: There are lots of times, when a specialized custom calling convention is necessary. For instance, I need a dynamic typing subsystem, to create abstract state machines, which can be effortlessly adapted to run-time heterogeneous data. I already made a fu

Re: Can we kill the D calling convention already?

2012-04-24 Thread Alex Rønne Petersen
On 24-04-2012 11:42, Kagamin wrote: Speaking about GDC, you can't link to omf files directly - so there shouldn't be any binary incompatibility. If the assembler code is unportable across compilers, it's a developer's mistake or intention. The point is just that: Right now I can write assembly

How can D become adopted at my company?

2012-04-24 Thread Eljay
[I had sent Walter an email, answering a question he asked me a few years ago. Walter asked me to post the message here. Slightly redacted - I took out an non-relevant aside, and since the forum doesn't support HTML bold, italic, underscore tags those have been stripped as well.] Hi Walter,

Re: How can D become adopted at my company?

2012-04-24 Thread Trass3r
My understanding is that Facebook is sponsoring D. At least in some capacity, I’m not sure of the details or extent. But still, it’s a start, and important, and Facebook has monetary resources. Andrei works at facebook, that's all. Web framework. What do people use Ruby on Rails, or sligh

[OT] Programming Bacterial Cells

2012-04-24 Thread Manfred Nowak
> we will be programming bacterial cells in the computer and > compiling and storing its program into these new cells so they can > readily execute them http://www.nottingham.ac.uk/news/pressreleases/2011/november/easily-re- programmable-cells-could-be-key-in-creation-of-new-life-forms.aspx

Re: How can D become adopted at my company?

2012-04-24 Thread Eljay
As a follow up to my email to Walter... I know I didn't address the question "How can D become adopted at my company?" head-on. An on-going project written in (say) C++ is not going to get approval to re-write in D. There is no ROI in it. A new project that could be written in D will be me

Re: How can D become adopted at my company?

2012-04-24 Thread Eljay
Awesome! Thanks Trass3r!

Re: How can D become adopted at my company?

2012-04-24 Thread Adam D. Ruppe
On Tuesday, 24 April 2012 at 12:04:27 UTC, Eljay wrote: I have to say, I’m not a fan of JavaScript. I’ve seen the leading edge of compile-to-JavaScript languages, such as CoffeeScript and DART. Can D get on that bandwagon and have the D compiler compile to JavaScript as some sort of IL? Ye

Is it possible to build DMD using Windows SDK?

2012-04-24 Thread Andre Tampubolon
Hi folks, Now I'm using Win 7 64 (for work). It don't have MSVC installed, but Win 7 SDK. I tried to built DMD using it, but failed: C:\Downloads\Software\DigitalMars\d-git\dmd\src>vcbuild\builddmd.bat vcbuild\dmc_cl -c -Iroot;vcbuild /Zi -cpp mars -Ae cl : Command line warning D9026 : options

Re: GSoC 2012 Proposal: Continued Work on a D Linear Algebra library (SciD - std.linalg)

2012-04-24 Thread Cristi Cobzarenco
On 24 April 2012 08:32, Jens Mueller wrote: > Cristi Cobzarenco wrote: > > Unfortunately, my proposal was not picked up this year. I might try to > work > > on these ideas this summer anyway so I would still be very much > interested > > in ideas and feedback, but I will probably have much less t

Re: How can D become adopted at my company?

2012-04-24 Thread bearophile
Eljay: Looking at all the successful languages, I have noticed that all the successful ones I am familiar with have had some sort of sponsor pushing the technology. Python was widely used before Google "support". And I think Haskell has enjoyed corporate support for a lot of time. My und

Re: How can D become adopted at my company?

2012-04-24 Thread Alex Rønne Petersen
On 24-04-2012 16:05, bearophile wrote: Eljay: Looking at all the successful languages, I have noticed that all the successful ones I am familiar with have had some sort of sponsor pushing the technology. Python was widely used before Google "support". And I think Haskell has enjoyed corporate

Re: [OT] Programming Bacterial Cells

2012-04-24 Thread Trass3r
interesting, but all in all just ambitious goals. no actual work done yet.

Re: GSoC 2012 Proposal: Continued Work on a D Linear Algebra library (SciD - std.linalg)

2012-04-24 Thread Jens Mueller
Cristi Cobzarenco wrote: > On 24 April 2012 08:32, Jens Mueller wrote: > > > Cristi Cobzarenco wrote: > > > Unfortunately, my proposal was not picked up this year. I might try to > > work > > > on these ideas this summer anyway so I would still be very much > > interested > > > in ideas and feedb

Re: Can we kill the D calling convention already?

2012-04-24 Thread Iain Buclaw
On 24 April 2012 11:29, Alex Rønne Petersen wrote: > On 24-04-2012 11:42, Kagamin wrote: >> >> Speaking about GDC, you can't link to omf files directly - so there >> shouldn't be any binary incompatibility. >> If the assembler code is unportable across compilers, it's a developer's >> mistake or i

Re: Closed development with Trello?

2012-04-24 Thread Steven Schveighoffer
On Tuesday, 24 April 2012 at 08:43:18 UTC, Jonas Drewsen wrote: I tried to add myself to the review manager volunteer card. It seems I have to be member of the org in order to do that. Can you add me? I was going to add you, but looks like you are already added (Andrei must have done it). Y

Re: Can we kill the D calling convention already?

2012-04-24 Thread Alex Rønne Petersen
On 24-04-2012 16:39, Iain Buclaw wrote: On 24 April 2012 11:29, Alex Rønne Petersen wrote: On 24-04-2012 11:42, Kagamin wrote: Speaking about GDC, you can't link to omf files directly - so there shouldn't be any binary incompatibility. If the assembler code is unportable across compilers, it'

Re: Can we kill the D calling convention already?

2012-04-24 Thread Erik Jensen
On Tuesday, 24 April 2012 at 14:40:05 UTC, Iain Buclaw wrote: On 24 April 2012 11:29, Alex Rønne Petersen wrote: On 24-04-2012 11:42, Kagamin wrote: Speaking about GDC, you can't link to omf files directly - so there shouldn't be any binary incompatibility. If the assembler code is unportab

Re: Can we kill the D calling convention already?

2012-04-24 Thread mta`chrono
As D is more than just C or C++ it may take account for providing it's own calling convention. _BUT_ (That's the point, I agree to Alex), it needs to be consistent across _different compilers for the same plattform_. Maybe someone can point out the benefits of having a different calling conventio

Re: Is it possible to build DMD using Windows SDK?

2012-04-24 Thread David Nadlinger
On Tuesday, 24 April 2012 at 13:47:30 UTC, Andre Tampubolon wrote: Any suggestions? In case he doesn't read your message here anyway, you might want to ping Rainer Schuetze directly, as he is the one who worked on VC support. David

Re: Can we kill the D calling convention already?

2012-04-24 Thread Paulo Pinto
This means that in the end we have the same ABI issues between D compilers, as in other languages I suppose, right? -- Paulo On Tuesday, 24 April 2012 at 14:40:05 UTC, Iain Buclaw wrote: On 24 April 2012 11:29, Alex Rønne Petersen wrote: On 24-04-2012 11:42, Kagamin wrote: Speaking about GD

Re: Can we kill the D calling convention already?

2012-04-24 Thread Iain Buclaw
On 24 April 2012 17:05, Erik Jensen wrote: > On Tuesday, 24 April 2012 at 14:40:05 UTC, Iain Buclaw wrote: >> >> On 24 April 2012 11:29, Alex Rønne Petersen wrote: >>> >>> On 24-04-2012 11:42, Kagamin wrote: Speaking about GDC, you can't link to omf files directly - so there s

Re: Can we kill the D calling convention already?

2012-04-24 Thread Alex Rønne Petersen
On 24-04-2012 19:54, Paulo Pinto wrote: This means that in the end we have the same ABI issues between D compilers, as in other languages I suppose, right? -- Paulo On Tuesday, 24 April 2012 at 14:40:05 UTC, Iain Buclaw wrote: On 24 April 2012 11:29, Alex Rønne Petersen wrote: On 24-04-2012

Re: How can D become adopted at my company?

2012-04-24 Thread Paulo Pinto
On Tuesday, 24 April 2012 at 14:05:14 UTC, bearophile wrote: Eljay: Looking at all the successful languages, I have noticed that all the successful ones I am familiar with have had some sort of sponsor pushing the technology. Python was widely used before Google "support". And I think Haske

Re: How can D become adopted at my company?

2012-04-24 Thread Jacob Carlborg
On 2012-04-24 14:04, Eljay wrote: D on iOS. So for me personally, I would love to use D to write my applications for iOS, and OS X. But… I’m not sure how to do that. (The Objective-D project looks abandoned, never got out of the “toy” project stage, and doesn’t bridge Cocoa’s Frameworks written

Re: How can D become adopted at my company?

2012-04-24 Thread Brad Roberts
On Tue, 24 Apr 2012, Eljay wrote: > As a follow up to my email to Walter... > > I know I didn't address the question "How can D become adopted at my company?" > head-on. Your response is actually very typical of most responses to the question. What's interesting to me is that it's really a def

Re: How can D become adopted at my company?

2012-04-24 Thread mta`chrono
Am 24.04.2012 21:53, schrieb Brad Roberts: > Neither Walter (in this case) nor the question asked for re-writting > anything. In fact, that's frequently stated (again, by Walter and others, > including myself) as explicitly a non-goal. Rewriting applications to > another language is an exercis

^^ limitation

2012-04-24 Thread Tyro[17]
I believe the following two lines of code should produce the same output. Is there a specific reason why doesn't allow this? Of course the only way to store the result would be to put in into a BigInt variable or convert it to string but I don't that shouldn't prevent the compiler from producin

Re: ^^ limitation

2012-04-24 Thread Marco Leise
Am Wed, 25 Apr 2012 06:00:31 +0900 schrieb "Tyro[17]" : > I believe the following two lines of code should produce the same > output. Is there a specific reason why doesn't allow this? Of course the > only way to store the result would be to put in into a BigInt variable > or convert it to stri

ICE on latest git dmd when introspecting a class that contains a unittest

2012-04-24 Thread H. S. Teoh
http://d.puremagic.com/issues/show_bug.cgi?id=7983 T -- Ruby is essentially Perl minus Wall.

Re: [OT] Programming Bacterial Cells

2012-04-24 Thread Manfred Nowak
Trass3r wrote: > no actual work done yet. Wrong. Actual work on the project started more than three month ago and of course there exists previous research: http://gow.epsrc.ac.uk/NGBOViewPerson.aspx?PersonId=110493 -manfred

Re: ^^ limitation

2012-04-24 Thread bearophile
Marco Leise: If you need this functionality use a programming language that has type classes and seamlessly switches between int/BigInt types, but drops the systems language attribute. I think Lisp (that beside allowing you to use fixnums that can't grow, often is used with tagged integers,

Random distributions in Phobos

2012-04-24 Thread Joseph Rushton Wakeling
Hello all, Currently Phobos only implements the uniform distribution for random number generation. It should be relatively trivial to extend that to other distributions (exponential, normal, Pareto, ...), so I'm considering putting together some code. Before I start writing, though: are the

Extensible std.format.formattedRead?

2012-04-24 Thread H. S. Teoh
Today I was playing around with using std.format to read/write data, and I discovered that while writing %s works for almost anything (via .toString for user types), reading %s is not extensible. I tried overloading parse() and unformatValue, but due to the way D modules are handled, this doesn't

Re: Is it possible to build DMD using Windows SDK?

2012-04-24 Thread Rainer Schuetze
On 4/24/2012 6:43 PM, David Nadlinger wrote: On Tuesday, 24 April 2012 at 13:47:30 UTC, Andre Tampubolon wrote: Any suggestions? In case he doesn't read your message here anyway, you might want to ping Rainer Schuetze directly, as he is the one who worked on VC support. David Unfortunate