Re: too early for D2 and too late for D1

2011-04-17 Thread Gary Whatmore
Andrej Mitrovic Wrote: > Gour, please disregard the troll above. > > If you're going with Python and Qt, I'd wholeheartedly recommend this > book: http://www.qtrac.eu/pyqtbook.html > Making GUIs with PyQT is dead simple. And Nokia already has that new > LGPL(I think?)-licensed binding in place -

Re: std.parallelism: Naming?

2011-04-17 Thread Gary Whatmore
Dmitry Olshansky Wrote: > On 16.04.2011 22:39, dsimcha wrote: > > I'm reconsidering the naming of std.parallelism. The name is catchy, > > but perhaps too general. std.parallelism currently targets SMP > > parallelism. In the future it would be nice for Phobos to target SIMD > > parallelism

Re: too early for D2 and too late for D1

2011-04-17 Thread Gary Whatmore
Gour-Gadadhara Dasa Wrote: One thing, go hang yourself. We don't like loser talk from people who only waste our time. Everyone agrees here D2 is the right tool for the job. Why did you come here to rant about D? - G.W.

i like cakes

2011-03-27 Thread Gary Whatmore
Hello again I've stayed quiet for a long time because people started accusing me of trolling. But now, I REALLY HATE THIS IDIOT IN REDDIT HE IS DRIVING ME CRAZY. ASSHOLE ASSWIPE SHITHOLE LUNATIC. I HATE HIM. BASHING D JUST BECAUSE HE'S SOME MENTALLY ILL PSYCHOPATE WANTING TO KILL ANDREI AN

Re: Google Summer of Code 2011 application

2011-03-11 Thread Gary Whatmore
Nebster Wrote: > On 10/03/2011 19:36, Trass3r wrote: > > How about adding more stuff to CTFE, esp. pointers and classes? > > Or get Algebraic data types to typecheck in the compiler :) Stop trolling. We should really ban these Tango fanboys here. Nobody really wants to turn D into an ivory towe

Re: What are tuples exactly? (D's tuples considered harmful)

2011-02-25 Thread Gary Whatmore
Jesse Phillips Wrote: > Morlan Wrote: > > > While trying to understand the expand mechanism presented in the TDPL book I > > tried to read std.typetuple and std.typecons files. I found a true nightmare > > in those files in the form of an almost infinite chain of aliases and macro > > processing.

Re: tooling quality and some random rant

2011-02-13 Thread Gary Whatmore
Alan Smithee Wrote: > > You can do the same in D using .di files. > > Except no one really does that because such an approach is insanely > error prone. E.g. with classes, you need to copy entire definitions. > Change any ordering, forget a field, change a type, and you're having > undefined beha

Re: tooling quality and some random rant

2011-02-13 Thread Gary Whatmore
Andrej Mitrovic Wrote: > I guess if you're not writing new templates in your code then > incremental compilation is possible? Exactly. What I did is a simple wrapper module for Phobos with preinstantiated non-templated functions for typical use cases. For example there are few wrappers for the

Re: tooling quality and some random rant

2011-02-13 Thread Gary Whatmore
Paulo Pinto Wrote: > Hi, > > I am sorry, but I don't belive it. > > Many other systems programming languages that atempted to displace C and > C++, have > the toolchain built in its languages, after the compilers were bootstrapped, > as anyone > with enough compiler knowledge will surely tell

Re: tooling quality and some random rant

2011-02-13 Thread Gary Whatmore
Paulo Pinto Wrote: > "Nick Sabalausky" wrote in message > news:ij7v76$1q4t$1...@digitalmars.com... > > ... (cutted) ... > > > > That's not the compiler, that's the linker. I don't know what linker DMD > > uses on OSX, but on Windows it uses OPTLINK which is written in > > hand-optimized Asm so

Re: std.xml should just go

2011-02-03 Thread Gary Whatmore
Steven Schveighoffer Wrote: > On Thu, 03 Feb 2011 18:22:21 -0500, Nick Sabalausky wrote: > > > "Steven Schveighoffer" wrote in message > > news:op.vqcns2egeav7ka@steve-laptop... > >> On Thu, 03 Feb 2011 17:53:24 -0500, David Nadlinger > >> wrote: > >> > >>> On 2/3/11 11:46 PM, Jonathan M Davis

Re: std.xml should just go

2011-02-03 Thread Gary Whatmore
Steven Schveighoffer Wrote: > On Thu, 03 Feb 2011 16:41:08 -0500, Daniel Gibson > wrote: > > > Am 03.02.2011 22:26, schrieb Steven Schveighoffer: > >> On Thu, 03 Feb 2011 16:03:55 -0500, Daniel Gibson > >> wrote: > >> > >>> Am 03.02.2011 21:48, schrieb Tomek Sowiński: > Speaking of Ta

How much time you spend daily?

2011-02-01 Thread Gary Whatmore
Recently Bruno M. wrote: > I may be spending too much time on the NG (especially for someone who doesn't > skip the 8 hours of sleep) A quick look at my daily routines revealed that I spend 7 hours studying the dmd and phobos diffs, Debian, Ubuntu, and Arch linux packages status, bug reports a

Re: Smartphones and D

2011-01-30 Thread Gary Whatmore
Jonathan M Davis Wrote: > On Sunday 30 January 2011 00:05:59 Gary Whatmore wrote: > > jim_g Wrote: > > > What I tried to say is, in my opinion, a language with only a half or a > > > quarter of D's improvements over C++ would be more successful on > >

Re: Smartphones and D

2011-01-30 Thread Gary Whatmore
jim_g Wrote: > What I tried to say is, in my opinion, a language with only a half or a > quarter of D's improvements over C++ would be more successful on > smartphone/tablet platforms than yet another x86 oriented language, no matter > how good. The killer feature is to be in the right place an

Re: What Makes A Programming Language Good

2011-01-19 Thread Gary Whatmore
Jesse Phillips Wrote: > DSSS seemed to provide a great amount of simplicity and power... the problem > is that it didn't always work. I always wondered what happened to that boy. He had impressive coding skills and lots of pragmatic common sense. There was at least one weakness in his persona

Re: DVCS

2011-01-19 Thread Gary Whatmore
Jeff Nowakowski Wrote: > On 01/19/2011 04:18 PM, Gour wrote: > > > > That's why we wrote it would be better to use some rolling release > > like Archlinux where distro cannot become so outdated that it's not > > possible to upgrade easily. > > https://wiki.archlinux.org/index.php/FAQ : > > "Q) W

Re: Google Summer of Code and the like

2011-01-17 Thread Gary Whatmore
new2d Wrote: > Trass3r Wrote: > > > new2d's recent post made me think about this. > > Couldn't we try to get D development sponsored by Google SoC or something > > similar? > > You should seriously consider if D is the next big language. It's hard to > believe D works without major funding. A

Re: Why is D slower than LuaJIT?

2010-12-22 Thread Gary Whatmore
Ary Borenszweig Wrote: > You said Lua is a joke language. It doesn't seem to be one... Okay then, maybe it's not completely true. I meant it doesn't work in large scale applications unlike a static systems programming language. Need to study how extensively it's used in that game. I just tihkn

Re: Why is D slower than LuaJIT?

2010-12-22 Thread Gary Whatmore
Ary Borenszweig Wrote: > Lua is a proven, robust language > > Lua has been used in many industrial applications (e.g., Adobe's > Photoshop Lightroom), with an emphasis on embedded systems (e.g., the > Ginga middleware for digital TV in Brazil) and games (e.g., World of > Warcraft). Lua is current

Re: Why is D slower than LuaJIT?

2010-12-22 Thread Gary Whatmore
Andreas Mayer Wrote: > To see what performance advantage D would give me over using a scripting > language, I made a small benchmark. It consists of this code: > > >auto L = iota(0.0, 1000.0); > >auto L2 = map!"a / 2"(L); > >auto L3 = map!"a + 2"(L2); > >auto V = reduce!"a +

Re: executable size

2010-12-19 Thread Gary Whatmore
jovo Wrote: > Hi, > Today I compiled my old two module console program with d-2.50. > It uses only std.c.time, std.c.stdio, std.random and templates. > Compiled with -O -release, on windows. > Executable size (d-2.50): 4.184 kb. > Trayed with d-1.30: 84 kb. > > Is it expected? This is something

Re: Slides from my ACCU Silicon Valley talk

2010-12-12 Thread Gary Whatmore
Simen kjaeraas Wrote: > Walter Bright wrote: > > > Andrei Alexandrescu wrote: > >> Compared to the talk at Google, I changed one of the "cool things" from > >> threading to operator overloading. Didn't manage to talk about that - > >> there were a million questions - although I think it's a

Re: Type Classes as Objects and Implicits

2010-11-29 Thread Gary Whatmore
Andrei Alexandrescu Wrote: > Interesting paper relevant to D's template constraints: > > http://tinyurl.com/26xdpbq Someone with knowledge of template constraints should extend the Figure 12. I assume in D2 all those circles are fully black? Would be useful to list all the new features in D2 c

Re: D's greatest mistakes

2010-11-28 Thread Gary Whatmore
Jack Wrote: > The post "C#'s greatest mistakes" prompts/begs this post. Have at it, > pick up the ball and run with it, don't be shy. I expect Walter and > Andrei to answer (if Walter and Andrei so dare!) after others' posts have > stopped or stagnated into that cesspool of threaded discussion

Re: D and multicore

2010-11-13 Thread Gary Whatmore
Peter Alexander Wrote: > On 13/11/10 7:04 PM, parallel noob wrote: > > The situation is different with GPUs. My Radeon 5970 has 3200 cores. When > > the core count doubles, the FPS rating in games almost doubles. They > > definitely are not running Erlang style processes (one for GUI, one for >

Re: D and multicore

2010-11-13 Thread Gary Whatmore
parallel noob Wrote: > Hello > > Intro: people with pseudonyms are often considered trolls here, but this is a > really honest question by a sw engineer now writing mostly sequential web > applications. (I write "parallel" web apps, but the logic goes that you > write sequential applications

Re: Thoughts on parallel programming?

2010-11-11 Thread Gary Whatmore
%u Wrote: > Sean Kelly Wrote: > > > Walter Bright Wrote: > > > > > Russel Winder wrote: > > > > At the heart of all this is that programmers are taught that algorithm > > > > is a sequence of actions to achieve a goal. Programmers are trained to > > > > think sequentially and this affects their

Re: Thoughts on parallel programming?

2010-11-11 Thread Gary Whatmore
retard Wrote: > Thu, 11 Nov 2010 19:41:56 +, Russel Winder wrote: > > > On Thu, 2010-11-11 at 15:16 +0100, Fawzi Mohamed wrote: [ . . . ] > >> on this I am not so sure, heterogeneous clusters are more difficult to > >> program, and GPU & co are slowly becoming more and more general > >> purpo

Re: The D Scripting Language

2010-11-11 Thread Gary Whatmore
Alexander Malakhov Wrote: > > > Perhaps a module std.scripting could help quite a lot, too. > > > > > > module std.script; > > > > public import std.stdio, std.file, std.process, std.algorithm, ... etc > > > > I use at least some of these for most of my programs/scripts. And > >

Re: Kill implicit joining of adjacent strings

2010-11-11 Thread Gary Whatmore
Steven Schveighoffer Wrote: > On Thu, 11 Nov 2010 08:26:40 -0500, Gary Whatmore wrote: > > Multiline strings have traditionally required stupid hacks. D might be > > the only string oriented language with so many useful string literals. > > Very useful in string processi

Re: Kill implicit joining of adjacent strings

2010-11-11 Thread Gary Whatmore
Yao G. Wrote: > On Wed, 10 Nov 2010 20:34:07 -0600, bearophile > wrote: > > > Do you seen anything wrong in this code? It compiles with no errors: > > > > enum string[5] data = ["green", "magenta", "blue" "red", "yellow"]; > > static assert(data[4] == "yellow"); > > void main() {} > > > > > >

Re: The D Scripting Language

2010-11-09 Thread Gary Whatmore
Jesse Phillips Wrote: > Tomek Sowiñski Wrote: > > > This wraps up a thread from a few days ago. Pascal featured my D examples > > on his Scriptometer site. > > > > http://rigaux.org/language-study/scripting-language/ > > > > D comes 17th out of 28, so it's so-so for scripting. > > > > -- >

Re: The D Scripting Language

2010-11-09 Thread Gary Whatmore
Pelle Månsson Wrote: > On 11/09/2010 06:12 PM, Andrei Alexandrescu wrote: > > On 11/7/10 9:12 PM, Eric Poggel wrote: > >> On 11/7/2010 8:49 PM, Andrei Alexandrescu wrote: > >>> On 11/7/10 5:34 PM, Jesse Phillips wrote: > Tomek Sowiñski Wrote: > > > This wraps up a thread from a few d

Re: Spec#, nullables and more

2010-11-06 Thread Gary Whatmore
bearophile Wrote: > Gary Whatmore: > > > I'm seeing it. The other arguments for non-null types also fall short > > because non-nulls don't solve basic problems like arrays, basic collections > > in the library (custom fill policy). > > Arrays and collec

Re: Spec#, nullables and more

2010-11-06 Thread Gary Whatmore
bearophile Wrote: > Gary Whatmore: > > > You're missing the point. The reason for seg faults is to terminate the > > application as quickly as possible. The developer then fires up the > > debugger and fixes the app. Seg faults should never happen in production &g

Re: Spec#, nullables and more

2010-11-06 Thread Gary Whatmore
Walter Bright Wrote: > Adam Burton wrote: > > I wouldn't consider that as the same thing. null represents the lack of a > > value where as 25 is the wrong value. Based on that argument the > > application > > should fail immediately on accessing the item with 25 (not many moons > > later) > >

Re: Spec#, nullables and more

2010-11-06 Thread Gary Whatmore
FeepingCreature Wrote: > Walter Bright Wrote: > > All that does is reinvent the null pointer seg fault. The hardware does > > this for > > you for free. > > Walter, I know you're a Windows programmer but this cannot be the first time > somebody has told you this - YOU CANNOT RECOVER FROM SEG F

Re: Spec#, nullables and more

2010-11-05 Thread Gary Whatmore
Pelle Månsson Wrote: > On 11/05/2010 02:39 PM, Kagamin wrote: > > bearophile Wrote: > > > >> Spec# adds only few things to C# 2.0: > >> - Non-nullable types; > > > > It's hard to tell, whether they fix anything. When you cast nullable to > > non-nullable, you get your runtime exception as usual,

Re: Spec#, nullables and more

2010-11-05 Thread Gary Whatmore
bearophile Wrote: > Ellery Newcomer: > > > hey, cool > > > > stumbled on sing# a while ago and thought it was intriguing, or at least > > the fact that ms was using it to write an OS kernel > > It contains a ton of new computer science ideas :-) So it's interesting > regardless its applicatio

Re: Spec#, nullables and more

2010-11-05 Thread Gary Whatmore
Pelle Månsson Wrote: > On 11/05/2010 12:43 PM, Gary Whatmore wrote: > > bearophile Wrote: > >> - A way to list what attributes are modified in a method (similar to my > >> @outer). > > > > The compiler should do this itself. > > Doesn't

Re: Spec#, nullables and more

2010-11-05 Thread Gary Whatmore
bearophile Wrote: > Plus a nice Microsoft site that allows you to try it in interactive way, this > is very good: > http://www.rise4fun.com/SpecSharp D can do that too. We had those interactive versions in the newsrgoup. We saw no value in them. > Spec# adds only few things to C# 2.0: > - Non-

Re: The Expressiveness of D

2010-11-02 Thread Gary Whatmore
Torarin Wrote: > > // these don't work - why? > > // auto b = [new B, new C]; > > // auto c = { return [1: new B,2: new C]; }; > > That seems to be just a matter of improving the compiler to make it > find the common type. I don't think there's anything in the language > stopping that from work

Re: The Expressiveness of D

2010-11-02 Thread Gary Whatmore
The D way of returning tuples is: T!(int,int) ret; auto f = (ref T!(int,int) r){ r = e; }; f(ret); It doesn't look so bad if you think about it. The tuple is first stack allocated. It doesn't trigger heap allocation. High level scripting languages always cause extra heap allocation if you

Re: The Expressiveness of D

2010-11-02 Thread Gary Whatmore
%u Wrote: > %u Wrote: > > > I found a slideshow called 'The Expressiveness of Go' recently. The > > conclusions are: > > > > * Go is not a small language but it is an expressive and comprehensible one. > > > > * Expressiveness comes from orthogonal composition of constructs. > > > > * Compreh

Re: shorter foreach syntax - C++0x range-based for

2010-11-01 Thread Gary Whatmore
Nick Treleaven Wrote: > There's a C++0x proposal for a range-based 'for' statement: > http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html > > The upcoming GCC 4.6 C++ compiler changes list support for this: > http://gcc.gnu.org/gcc-4.6/changes.html > > I think the syntax could be

Re: GCC 4.6

2010-10-30 Thread Gary Whatmore
bearophile Wrote: > Walter: > > > You post lists of features every day. > > I hate wasting your time, so please ignore my posts you aren't interested in. > I write those things because I like to think and discuss about new ways to > explain semantics to computers. Most of those things are for

Re: D in accounting program

2010-10-27 Thread Gary Whatmore
bearophile Wrote: > Adam D. Ruppe: > > > I've used D2 for a large web application for 7 months now without having to > > change > > any more than a handful of lines of code due to language/lib changes. > > Using D2 for an accounting program is currently too much dangerous still. D1 > may be us

Re: Linux Agora D thread

2010-10-22 Thread Gary Whatmore
retard Wrote: > What annoys me the most in pro D articles is the author usually tries to > prove (in a naive way) that despite all the deficiencies the language and > tool chain bla blah blah This guy has nothing better to do? Sheesh.. > For instance, I'm starting the implementation of a 64-bi

Re: Simple @tagged attribute for unions

2010-10-22 Thread Gary Whatmore
bearophile Wrote: > Andrei: > > > Hope you agree with yourself :o). > > "Do I contradict myself? Very well, then I contradict myself, I am large, I > contain multitudes." > --Walt Whitman. > > The @tagged attribute for unions is an additive change. Even if you don't > implement it now, people

Re: The Next Big Language

2010-10-21 Thread Gary Whatmore
I forgot Scala. They say Scala can @specialize without type erasure and it has variance polymorphism. What are these? Sounds as if Scala is getting closer to C++/D (instantiation and link-time optimization) and we need to fight back to make our language more expressive. - G.W. Gary Whatmore

Re: The Next Big Language

2010-10-21 Thread Gary Whatmore
What's the difference between: type polymorphism parametric polymorphism ad-hoc polymorphism generics c++ templates d style templates other templates (are there?) Does Java and C# have type polymorphism or generics or templates? What's the real name and how to compare? Is D most expressive? I be

Re: What do people here use as an IDE?

2010-10-13 Thread Gary Whatmore
Paulo Pinto Wrote: > Haskell, F#, Ada, just to name a few. Ivory tower bu***it. >, C#, F#, Scala Run in a VM > SLOW == impractical - G.W.

Re: The Many Faces of D - slides

2010-10-04 Thread Gary Whatmore
Gary Whatmore Wrote: > Walter Bright Wrote: > > > Looks like it hit reddit: > > > > http://www.reddit.com/r/programming/comments/dm8n8/the_many_faces_of_d_slides_pdf/ http://www.reddit.com/r/programming/comments/dm8n8/the_many_faces_of_d_slides_pdf/c11d2ie There&#x

Re: The Many Faces of D - slides

2010-10-03 Thread Gary Whatmore
Walter Bright Wrote: > Looks like it hit reddit: > > http://www.reddit.com/r/programming/comments/dm8n8/the_many_faces_of_d_slides_pdf/ Their already criticizing D. We must defend ourselves. - G.W.

Re: Proposal: Relax rules for 'pure'

2010-09-23 Thread Gary Whatmore
Simen kjaeraas Wrote: > Steven Schveighoffer wrote: > > > Would it not be less tedious to mark unpure functions instead of pure > > functions? Or am I just going too far with this? > > You're probably going too far for it to be included in D2. D: > > That said, I believe you are absolutely

Re: Andrei's Google Talk

2010-09-23 Thread Gary Whatmore
Steven Schveighoffer Wrote: > On Mon, 20 Sep 2010 13:46:19 -0400, Bruno Medeiros > wrote: > > > On 20/09/2010 16:13, klickverbot wrote: > >> On 9/20/10 5:10 PM, Bruno Medeiros wrote: > >>> I find myself wishing some more OSS projects had commercial-friendly > >>> licenses. :-/ In particular LL

Re: A summary of D's design principles

2010-09-17 Thread Gary Whatmore
retard Wrote: > Thu, 16 Sep 2010 21:38:24 -0400, sybrandy wrote: > > > On 09/16/2010 07:04 AM, Simen Kjaeraas wrote: > >> Here's a draft of something I'd like to see. I like having the ten > >> commandments, with #0 not really counting. C&C welcome. > > FWIW, if you're picking up one of the most