Re: New web newsreader - requesting participation

2011-01-31 Thread Trass3r
OT: c) It tries to convert news posts to HTML, so the paragraphs wrap to the browser, links work, quotes are put into the proper tags for indentation, and it tries to auto-detect D code and put it in a pre block - which my javascript can make inline editable and runnable. Example:

Re: New web newsreader - requesting participation

2011-01-31 Thread foobar
Adam Ruppe Wrote: In the other newsgroup, I've been talking about a little web news program I've been writing as a spinoff of the potential new homepage idea. It's to the point where it is usuable, but still kinda buggy: http://arsdnet.net/d-web-site/nntp/thread-index?

Re: New web newsreader - requesting participation

2011-01-31 Thread Nick Sabalausky
foobar f...@bar.com wrote in message news:ii62n0$1r3i$1...@digitalmars.com... 1. common human markup such as: _foo_ (underline), *foo* (bold) etc, I've never been much of a fan of that. Actually that's one of the things I didn't like about Thunderbird when I tried it: it kept replacing *'s

Re: New web newsreader - requesting participation

2011-01-31 Thread Daniel Gibson
Am 31.01.2011 13:19, schrieb Nick Sabalausky: foobarf...@bar.com wrote in message news:ii62n0$1r3i$1...@digitalmars.com... 1. common human markup such as: _foo_ (underline), *foo* (bold) etc, I've never been much of a fan of that. Actually that's one of the things I didn't like about

Re: New web newsreader - requesting participation

2011-01-31 Thread Adam Ruppe
Nick Sabalausky wrote: It's amazing how often people seem to forget [a:visited] exists. Yeah, it boggles my mind - I personally find it incredibly useful. But every design I get for clients invariably has visited colors purposefully indistinguishable from regular links. Other things that break

Re: New web newsreader - requesting participation

2011-01-31 Thread Adam Ruppe
Trass3r wrote: So it showed me some Get Message form with mailman.1085.1296409409.4748.digitalmar...@puremagic.com in the message id field. That, by the way, is one of the background features of web.d. If there's insufficient parameters to call a function ( newsgroup != newsgroup so it

Re: New web newsreader - requesting participation

2011-01-31 Thread Adam Ruppe
foobar wrote: 1. common human markup such as: _foo_ (underline), *foo* (bold) etc, Yeah, that's a pretty good idea. I agree with the others that it should keep the text symbols (especially since I've seen these algorithms wrongly flag things *a lot*) but a basic implementation is ok. 2. parse

Re: New web newsreader - requesting participation

2011-01-31 Thread Adam Ruppe
But I'm curious how you do web programming with D. Do you use CGI? Yes, for most my apps (some have a homegrown HTTP server they use instead, if persistence is necessary). The module is here: http://arsdnet.net/dcode/cgi.d That same module works with standard CGI and with the embedded http

Re: New web newsreader - requesting participation

2011-01-31 Thread Trass3r
Strange thing is, most functions are properly demangled but 2 aren't. Is this a (known) bug? Yes, core.demangle can't do some symbols because DMD applies a one-way hash to them once they reach a certain length because such long symbols tend to break linkers. Ah I see, but what about

Re: New web newsreader - requesting participation

2011-01-31 Thread Adam Ruppe
Stephan Soller wrote: Cache invalidation How do you handle this right now? I don't. My program assumes that once it has a message, it never needs to look to the server for it again. (This is probably because of my own experience with mailing lists - I use the mailing list interface to the

Re: New web newsreader - requesting participation

2011-01-31 Thread Adam Ruppe
Ah I see, but what about the short one: Might be a bug in core.demangle (passing it to the function directly didn't work either). I'm not sure though.

Re: New web newsreader - requesting participation

2011-01-31 Thread foobar
Adam Ruppe Wrote: foobar wrote: 1. common human markup such as: _foo_ (underline), *foo* (bold) etc, Yeah, that's a pretty good idea. I agree with the others that it should keep the text symbols (especially since I've seen these algorithms wrongly flag things *a lot*) but a basic

Re: New web newsreader - requesting participation

2011-01-31 Thread Trass3r
Very interesting stuff. May D kick php out of business ;)

Re: New web newsreader - requesting participation

2011-01-31 Thread Andrej Mitrovic
Word wrapping, please! Looks cool so far.

Re: New web newsreader - requesting participation

2011-01-31 Thread Andrej Mitrovic
8. Search functionality digitalmars uses google for searching the NG archive, but I've no idea how to do custom searches. I.e. I'd like to search for a keyword in the topic title only, how would I do that?

Re: New web newsreader - requesting participation

2011-01-31 Thread Gour
On Mon, 31 Jan 2011 14:28:37 -0800 Walter Bright newshou...@digitalmars.com wrote: 7. runs on 64 bit FreeBSD (what the Digital Mars server runs on), yes, I know that means I have to get 64 bit dmd on FreeBSD working! You've made my day. :-) Sincerely, Gour -- Gour | Hlapicina, Croatia |

Re: Possible workaround for static linking of C and D obj files on Win32

2011-01-31 Thread Xiemargl
Did you try the Open Watcom Linker? It support OMF, COFF, AR, ELF, but no x64.

Re: Bus error w/combined writeln(int) and uniform

2011-01-31 Thread Lars T. Kyllingstad
On Sun, 30 Jan 2011 18:43:22 +0100, Magnus Lie Hetland wrote: Tried to see if I could find this in the issue tracker; sorry if I missed it. (Maybe it manifests with something other than a bus error on other platforms?) Anyway, when I run the following program in OS X (using dmd 2.051), it

Re: Variants array and IDK

2011-01-31 Thread Nick Sabalausky
g g g...@g.com wrote in message news:ii5mtb$12qv$1...@digitalmars.com... IDK where to put this. first thing: Could it be a way to collapse Variants in std.variant?, like Variant x = Variant(1) Variant y = Variant([x,x,x,x]) //y could be simplified to Variant(int[]) instead of

Re: std.unittests [updated] for review

2011-01-31 Thread Jens Mueller
Andrei Alexandrescu wrote: On 01/30/2011 06:13 AM, Jens Mueller wrote: Masahiro Nakagawa wrote: I vote Andrei's suggestion, std.exception is better than new std.unittests. I think testing module should provide more features(e.g. Mock, Stub...). Your helpers help assert writing style but not

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Don
Tomek Sowiński wrote: Andrej Mitrovic napisał: If you really want to set up a column limit that *everyone* has to abide to, then make a poll to see what everyone can agree on. Actually that's a splendid idea. Let's take it easy. Regardless of that silly beef I'm really curious what

scope and delete are being removed, but not type-safe variadic templates?

2011-01-31 Thread %u
Hi, I just realized something: If the delete keyword is being removed because it's dangerous, and if the scope storage class is being removed because of the same dangling reference problem, how come int[] global_var; void foo(int[] args...) { global_var = args; } isn't considered to be

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread Max Samukha
On 01/30/2011 07:17 PM, Andrej Mitrovic wrote: The unittest topic is about to get derailed so I want to continue this silly discussion here. Wheres Nick? I want to see the CRT vs LCD discussion heated up again with Andrei claiming that LCDs are so Godlike but yet claims 80 columns is enough

Re: Smartphones and D

2011-01-31 Thread retard
Sun, 30 Jan 2011 19:36:44 +0100, Daniel Gibson wrote: Am 30.01.2011 13:29, schrieb Michel Fortin: On 2011-01-30 03:05:59 -0500, Gary Whatmore n...@spam.sp said: D's main focus currently is 32-bit x86 servers and desktop applications. This is where the big market has traditionally been. Not

Re: Bus error w/combined writeln(int) and uniform

2011-01-31 Thread Magnus Lie Hetland
On 2011-01-31 10:18:49 +0100, Lars T. Kyllingstad said: It works fine on Linux, which means the bug is likely OSX specific. I only know of one mysterious OSX segfault bug currently in Bugzilla, but I'm not sure if it's related: http://d.puremagic.com/issues/show_bug.cgi?id=4854 Thanks for

Re: Smartphones and D

2011-01-31 Thread dennis luehring
While workstations for developers have bigger and completely different requirements, in general the most demanding applications for ordinary sixpack-joe are hd-video transcoding (which actually isn't memory intensive), image manipulation (this year's basic $100 models already sport a sensor of 14

Re: Smartphones and D

2011-01-31 Thread retard
Mon, 31 Jan 2011 12:04:11 +0100, dennis luehring wrote: While workstations for developers have bigger and completely different requirements, in general the most demanding applications for ordinary sixpack-joe are hd-video transcoding (which actually isn't memory intensive), image manipulation

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread Daniel Gibson
Am 31.01.2011 00:17, schrieb Stewart Gordon: On 30/01/2011 17:17, Andrej Mitrovic wrote: snip 80 colums is an artifact of the old age. Just like the preprocessor is an artifact of the C language. And many other old things are artifacts. There's no reason to keep these artifacts around anymore.

Re: Smartphones and D

2011-01-31 Thread Daniel Gibson
Am 31.01.2011 11:52, schrieb retard: Sun, 30 Jan 2011 19:36:44 +0100, Daniel Gibson wrote: Am 30.01.2011 13:29, schrieb Michel Fortin: On 2011-01-30 03:05:59 -0500, Gary Whatmoren...@spam.sp said: D's main focus currently is 32-bit x86 servers and desktop applications. This is where the

Re: Smartphones and D

2011-01-31 Thread Daniel Gibson
Am 31.01.2011 12:04, schrieb dennis luehring: While workstations for developers have bigger and completely different requirements, in general the most demanding applications for ordinary sixpack-joe are hd-video transcoding (which actually isn't memory intensive), image manipulation (this year's

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread Nick Sabalausky
Daniel Gibson metalcae...@gmail.com wrote in message news:ii67i0$1vf2$2...@digitalmars.com... Am 31.01.2011 00:17, schrieb Stewart Gordon: For all I know, people probably still do run the D compiler in the terminal app on Unix-like systems. 1. The D-Compiler doesn't care if the code fits

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Michel Fortin
On 2011-01-31 02:18:26 -0500, foobar f...@bar.com said: Phobos is a very good product that I for one will never use. Just looking at the one huge page for algorithms is enough to discourage many people. But is Phobos the problem or is the one-page-per-module documentation the problem? --

Re: Internal error: backend\cod1.c 1895 when trying to build DMD/Druntime/Phobos from source

2011-01-31 Thread Vladimir Panteleev
On Mon, 31 Jan 2011 06:13:54 +0200, Walter Bright newshou...@digitalmars.com wrote: Vladimir Panteleev wrote: Compiling the source from the .zip still yields a broken dmd.exe. My version and the one from the .zip seem to differ in many small ways. The first difference is that in main(),

Re: Smartphones and D

2011-01-31 Thread Jacob Carlborg
On 2011-01-30 18:53, Daniel Gibson wrote: Am 30.01.2011 09:30, schrieb 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++

Re: Bus error w/combined writeln(int) and uniform

2011-01-31 Thread Jacob Carlborg
On 2011-01-31 12:04, Magnus Lie Hetland wrote: On 2011-01-31 10:18:49 +0100, Lars T. Kyllingstad said: It works fine on Linux, which means the bug is likely OSX specific. I only know of one mysterious OSX segfault bug currently in Bugzilla, but I'm not sure if it's related:

Re: Bus error w/combined writeln(int) and uniform

2011-01-31 Thread Jacob Carlborg
On 2011-01-31 10:18, Lars T. Kyllingstad wrote: On Sun, 30 Jan 2011 18:43:22 +0100, Magnus Lie Hetland wrote: Tried to see if I could find this in the issue tracker; sorry if I missed it. (Maybe it manifests with something other than a bus error on other platforms?) Anyway, when I run the

Re: Smartphones and D

2011-01-31 Thread dennis luehring
Am 31.01.2011 12:15, schrieb retard: Mon, 31 Jan 2011 12:04:11 +0100, dennis luehring wrote: While workstations for developers have bigger and completely different requirements, in general the most demanding applications for ordinary sixpack-joe are hd-video transcoding (which actually

Re: d-programming-language.org

2011-01-31 Thread Ary Manzana
On 1/30/11 5:03 AM, Andrei Alexandrescu wrote: I've had some style updates from David Gileadi rotting in a zip file in my inbox for a good while. It took me the better part of today to manually merge his stale files with the ones in the repository, which have in the meantime undergone many

Re: Is D still alive?

2011-01-31 Thread Steven Schveighoffer
On Fri, 28 Jan 2011 20:16:54 -0500, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: I can't buy enterprise support, Of course you can! No really, I can't afford it ;) But seriously, I find it hard to believe that you can buy enterprise support for D if it

Re: Is D still alive?

2011-01-31 Thread Steven Schveighoffer
On Fri, 28 Jan 2011 16:25:49 -0500, retard r...@tard.com.invalid wrote: Fri, 28 Jan 2011 10:14:04 -0500, Steven Schveighoffer wrote: I think as D matures and hopefully gets more enterprise support, these problems will be history. This is the classic chicken or the egg problem. I'm not trying

Re: Variants array and IDK

2011-01-31 Thread Robert Jacques
On Mon, 31 Jan 2011 02:04:11 -0500, g g g...@g.com wrote: IDK where to put this. first thing: Could it be a way to collapse Variants in std.variant?, like Variant x = Variant(1) Variant y = Variant([x,x,x,x]) //y could be simplified to Variant(int[]) instead of Variant(Variant(int)[]) //now

Re: Decision on container design

2011-01-31 Thread Steven Schveighoffer
On Fri, 28 Jan 2011 18:32:28 -0500, Michel Fortin michel.for...@michelf.com wrote: On 2011-01-28 17:09:08 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org said: On 1/28/11 3:05 PM, Michel Fortin wrote: Not my preferred choices (especially #1), but having containers in Phobos will

Re: Decision on container design

2011-01-31 Thread Steven Schveighoffer
On Sat, 29 Jan 2011 12:09:00 -0500, Simon Buerger k...@gmx.net wrote: On 28.01.2011 19:31, Andrei Alexandrescu wrote: 1. Containers will be classes. 2. Most of the methods in existing containers will be final. It's up to the container to make a method final or not. 3. Containers and their

Audio time-compression (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Ulrik Mikaelsson
2011/1/30 Walter Bright newshou...@digitalmars.com: People who use screen readers often crank up the playback rate to 2x. The software adjusts the pitch so it doesn't sound like the Chipmunks. I've often wondered why DVRs don't do this (I've sent the suggestion to Tivo, they ignored me). I'd

Re: Smartphones and D

2011-01-31 Thread Andrew Wiley
On Mon, Jan 31, 2011 at 5:51 AM, Daniel Gibson metalcae...@gmail.comwrote: Am 31.01.2011 11:52, schrieb retard: Sun, 30 Jan 2011 19:36:44 +0100, Daniel Gibson wrote: Am 30.01.2011 13:29, schrieb Michel Fortin: On 2011-01-30 03:05:59 -0500, Gary Whatmoren...@spam.sp said: D's main

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Andrei Alexandrescu
On 01/31/2011 01:18 AM, foobar wrote: Andrei Alexandrescu Wrote: == Quote from Walter Bright (newshou...@digitalmars.com)'s article foobar wrote: ATM, Phobos ranks extremely poorly in this regard. Far worse than C++ which is by far one of worst ever. both Java and C# are surprisingly high on

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread Andrei Alexandrescu
On 01/31/2011 01:48 AM, foobar wrote: Stewart Gordon Wrote: Therein lies the problem - in this day and age, everyone's screen is different, and everyone's needs are different. Even if we can get people to agree on a limit of 100 in this day and age, it might not suit the programmers of the

Re: Is D still alive?

2011-01-31 Thread Simen kjaeraas
Steven Schveighoffer schvei...@yahoo.com wrote: On Fri, 28 Jan 2011 20:16:54 -0500, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: I can't buy enterprise support, Of course you can! No really, I can't afford it ;) But seriously, I find it hard to believe

Re: Decision on container design

2011-01-31 Thread Simon Buerger
On 31.01.2011 17:53, Steven Schveighoffer wrote: http://www.dsource.org/projects/dcollections -Steve Well, seems not bad on a quick look. But source is updated 2 years ago, so I doubt it would compile with current dmd. Anyway, the topic here is the std-behaviour of the std-lib. But sure,

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread Ulrik Mikaelsson
FWIW: Here's my two cents; (Non-Phobos participant, so feel free to click delete now) I'm not sure whether text-books and program-code are really comparable in this respect. When reading books I hardly put much attention to each particular word, while in computer-code, each token is very

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread foobar
Michel Fortin Wrote: On 2011-01-31 02:18:26 -0500, foobar f...@bar.com said: Phobos is a very good product that I for one will never use. Just looking at the one huge page for algorithms is enough to discourage many people. But is Phobos the problem or is the one-page-per-module

Re: Decision on container design

2011-01-31 Thread David Nadlinger
On 1/31/11 6:48 PM, Simon Buerger wrote: Well, seems not bad on a quick look. But source is updated 2 years ago,… http://www.dsource.org/projects/dcollections/browser/branches/d2 – four months are not quite as long as two years. Oh, and Steve is the very author of dcollections. ;) David

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread Andrei Alexandrescu
On 1/31/11 11:54 AM, Ulrik Mikaelsson wrote: FWIW: Here's my two cents; (Non-Phobos participant, so feel free to click delete now) I'm not sure whether text-books and program-code are really comparable in this respect. When reading books I hardly put much attention to each particular word,

Re: Decision on container design

2011-01-31 Thread Steven Schveighoffer
On Mon, 31 Jan 2011 12:48:06 -0500, Simon Buerger k...@gmx.net wrote: On 31.01.2011 17:53, Steven Schveighoffer wrote: http://www.dsource.org/projects/dcollections -Steve Well, seems not bad on a quick look. But source is updated 2 years ago, so I doubt it would compile with current dmd.

Re: Is D still alive?

2011-01-31 Thread Ulrik Mikaelsson
2011/1/28 retard r...@tard.com.invalid: I've heard this before. I've also heard the 64-bit port and many other things are done in a year/month or two. The fact is, you're overly optimistic and these are all bullshit. When I come back here in a year or two, I have full justification to laugh at

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Ulrik Mikaelsson
90 as a rule of thumb with some exceptions.

Re: Is D not-for-profit or not?!

2011-01-31 Thread Steven Schveighoffer
On Sun, 30 Jan 2011 11:55:28 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Steve is in New York City. If you mean me, I'm in the Boston area (not exactly in Boston), and I bring a thousand curses on you for suggesting I'm from NYC ;) Unfortunately, all of us must turn

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread foobar
Andrei Alexandrescu Wrote: On 01/31/2011 01:18 AM, foobar wrote: Andrei Alexandrescu Wrote: == Quote from Walter Bright (newshou...@digitalmars.com)'s article foobar wrote: ATM, Phobos ranks extremely poorly in this regard. Far worse than C++ which is by far one of worst ever.

Re: Decision on container design

2011-01-31 Thread Simon Buerger
Okay, my fault. Didnt realize you were the author, and the project is still active. The 2 years came from here: http://www.dsource.org/projects/dcollections/browser/trunk/dcollections. I thought, that trunk was the most recent version. Added a bookmark, and will definitely take a closer look

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread bearophile
Andrei: Seems reasonable. Since both Jonathan and Don prefer longer lines, I'm now more inclined to increase and/or soften the recommended limit for Phobos. I think 110 columns are a little too many. I have suggested 90-95 chars max (but less than 80 on average) after seeing both the

Re: d-programming-language.org

2011-01-31 Thread Adam Ruppe
Ary Manzana The only think I don't like is the background image. I mean, I like the background, it just doesn't have to be an image. Each time I go to another page it shows me a white page and then loads everything. That's not the image's fault. The image is cached and background loaded, so

Partial template application

2011-01-31 Thread bearophile
Functional languages often have built-in partial function application: http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application D doesn't have this feature built-in despite it can't break C compatibility, maybe because it's a lot of work to implement, maybe because it is

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread Ulrik Mikaelsson
2011/1/31 Andrei Alexandrescu seewebsiteforem...@erdani.org: On 1/31/11 11:54 AM, Ulrik Mikaelsson wrote: I'm not sure whether text-books and program-code are really comparable in this respect. When reading books I hardly put much attention to each particular word, while in computer-code, each

Re: d-programming-language.org

2011-01-31 Thread Steven Schveighoffer
On Sun, 30 Jan 2011 03:03:08 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I've had some style updates from David Gileadi rotting in a zip file in my inbox for a good while. It took me the better part of today to manually merge his stale files with the ones in the

Re: review for unittests

2011-01-31 Thread Steven Schveighoffer
On Sun, 30 Jan 2011 17:54:20 -0500, Nick Sabalausky a@a.a wrote: bearophile bearophileh...@lycos.com wrote in message news:ii3nsc$kob$1...@digitalmars.com... Andrei: Yes, once you go beyond 80 columns. I suggest to relax that limit a little, I think 90-95 columns are acceptable still. Too

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread foobar
Walter Bright Wrote: foobar wrote: Java (the language itself) is mediocre at best but the Java standard libraries are excellent with comprehensive usable documentation to boot. Phobes is half a notch above c++ stdlib which is the worst ever from a usability and readability

Re: Partial template application

2011-01-31 Thread Simen kjaeraas
bearophile bearophileh...@lycos.com wrote: If (as usual) you don't want to implement this as a new D feature, I presume something like a PartialTemplate/StaticCurry/StaticPartialApplication is writeable in the standard library: import std.typecons, std.functional, std.array; auto

Re: Is D still alive?

2011-01-31 Thread Trass3r
I've chosen to only work with D1/Tango from start, and I simply don't recognize the frustration many are feeling. I'm only concerned over that there ARE quite a few developers that seems to have been turned off by instability, and the Phobos/Tango-problem. Well, if nobody acted as a guinea pig,

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Steven Schveighoffer
On Sun, 30 Jan 2011 14:47:26 -0500, Walter Bright newshou...@digitalmars.com wrote: Tomek Sowiński wrote: What is your preferred *maximum* length for a line of D code? (please reply with a number only) 6.022e+23 It's amazing that D does so much, and to top it off, it's only ONE LINE OF

Re: d-programming-language.org

2011-01-31 Thread David Gileadi
On 1/31/11 11:50 AM, Steven Schveighoffer wrote: BTW, in perusing the site, I noticed the language reference does not contain a navigation menu. I can only get to the lexical page, not any other pages of the language reference. Andrei e-mailed me about this. It's due to some Ddoc macros that

Re: Partial template application

2011-01-31 Thread Andrej Mitrovic
Isn't it possible to unify functions which work on compile-time and run-time arguments? What I mean is, if curry detects that you're currying a compile-time argument against a template, then it should do what your PartialTemplate/StaticCurry would do. It seems odd having to create 'static'

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Steven Schveighoffer
On Sun, 30 Jan 2011 13:55:53 -0500, Tomek Sowiński j...@ask.me wrote: Andrej Mitrovic napisał: If you really want to set up a column limit that *everyone* has to abide to, then make a poll to see what everyone can agree on. Actually that's a splendid idea. Let's take it easy. Regardless of

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread Russel Winder
On Mon, 2011-01-31 at 13:41 -0500, bearophile wrote: [ . . . ] I think 110 columns are a little too many. I have suggested 90-95 chars max (but less than 80 on average) after seeing both the problems caused by too much short lines (to keep lines below 70-80 chars I have seen programmers use 2

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Steven Schveighoffer
On Mon, 31 Jan 2011 12:09:01 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 01/31/2011 01:18 AM, foobar wrote: You completely miss the most important principle - it doesn't matter how good and efficient your product is if no one's using it. Phobos is a very good product

Re: d-programming-language.org

2011-01-31 Thread Andrei Alexandrescu
On 1/31/11 12:50 PM, Steven Schveighoffer wrote: On Sun, 30 Jan 2011 03:03:08 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I've had some style updates from David Gileadi rotting in a zip file in my inbox for a good while. It took me the better part of today to manually merge

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Andrei Alexandrescu
On 1/31/11 1:07 PM, Steven Schveighoffer wrote: On Mon, 31 Jan 2011 12:09:01 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 01/31/2011 01:18 AM, foobar wrote: You completely miss the most important principle - it doesn't matter how good and efficient your product is if

Re: scope and delete are being removed, but not type-safe variadic templates?

2011-01-31 Thread spir
On 01/31/2011 11:10 AM, %u wrote: Hi, I just realized something: If the delete keyword is being removed because it's dangerous, and if the scope storage class is being removed because of the same dangling reference problem, how come int[] global_var; void foo(int[] args...) {

Re: std.unittests [updated] for review

2011-01-31 Thread spir
On 01/30/2011 01:13 PM, Jens Mueller wrote: I do not like putting it in std.exception. Maybe the name std.unittest is also not good. I would propose std.assert if assert wasn't a keyword. [...] I would_not_ expect helpers for writing assertions (Assert_Error_) in a module named

Re: std.unittests [updated] for review

2011-01-31 Thread spir
On 01/30/2011 02:13 PM, Jens Mueller wrote: The only argument against putting in its own module is it's size. That seems to be your main point. I think putting something in new module should mainly be concerned with separating stuff logically. Later on it should be easy to add a new module that

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Walter Bright
foobar wrote: Walter Bright Wrote: foobar wrote: Java (the language itself) is mediocre at best but the Java standard libraries are excellent with comprehensive usable documentation to boot. Phobes is half a notch above c++ stdlib which is the worst ever from a usability and readability

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Adam Ruppe
Andrei Alexandrescu wrote: We'd eliminate the unstructured jump to section and we create the grouping by hand (sigh). Maybe we can get the best of both worlds: how about a Group: or Tags: section in the ddoc that a program could automatically pull out to make the listing? I think we can do

Re: Is D still alive?

2011-01-31 Thread Steven Schveighoffer
On Mon, 31 Jan 2011 12:26:56 -0500, Simen kjaeraas simen.kja...@gmail.com wrote: Steven Schveighoffer schvei...@yahoo.com wrote: On Fri, 28 Jan 2011 20:16:54 -0500, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: I can't buy enterprise support, Of course

Re: Is D still alive?

2011-01-31 Thread Jesse Phillips
Trass3r Wrote: I've chosen to only work with D1/Tango from start, and I simply don't recognize the frustration many are feeling. I'm only concerned over that there ARE quite a few developers that seems to have been turned off by instability, and the Phobos/Tango-problem. Well, if

Re: Decision on container design

2011-01-31 Thread Steven Schveighoffer
On Mon, 31 Jan 2011 13:36:57 -0500, Simon Buerger k...@gmx.net wrote: Okay, my fault. Didnt realize you were the author, and the project is still active. The 2 years came from here: http://www.dsource.org/projects/dcollections/browser/trunk/dcollections. I thought, that trunk was the most

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread JMRyan
Walter Bright newshou...@digitalmars.com wrote in news:ii4an2$1npj$1...@digitalmars.com: 80 columns came from how many characters would fit on a standard size 8.5*11 sheet of paper. Even punch cards followed this precedent. This suggests (without exactly stating) one of my personal reasons

Max length of a LOC: poll results (Was: On 80 columns...)

2011-01-31 Thread Tomek Sowiński
Tomek Sowiński napisał: Actually that's a splendid idea. Let's take it easy. Regardless of that silly beef I'm really curious what distribution will emerge. What is your preferred *maximum* length for a line of D code? (please reply with a number only) Alright, I'm wrapping up this toy

Re: Audio time-compression (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Walter Bright
Ulrik Mikaelsson wrote: 2011/1/30 Walter Bright newshou...@digitalmars.com: People who use screen readers often crank up the playback rate to 2x. The software adjusts the pitch so it doesn't sound like the Chipmunks. I've often wondered why DVRs don't do this (I've sent the suggestion to Tivo,

Re: scope and delete are being removed, but not type-safe variadic templates?

2011-01-31 Thread Steven Schveighoffer
On Mon, 31 Jan 2011 14:15:18 -0500, spir denis.s...@gmail.com wrote: On 01/31/2011 11:10 AM, %u wrote: Hi, I just realized something: If the delete keyword is being removed because it's dangerous, and if the scope storage class is being removed because of the same dangling reference

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Steven Schveighoffer
On Mon, 31 Jan 2011 14:17:50 -0500, Adam Ruppe destructiona...@gmail.com wrote: Steven Schveighoffer wrote: I think the main problem is with ddoc. This, from std.algorithm is a f**king mess IMO: Note that that is generated through some short javascript in the html header. I remember

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Andrei Alexandrescu
On 1/31/11 1:22 PM, Adam Ruppe wrote: Andrei Alexandrescu wrote: We'd eliminate the unstructured jump to section and we create the grouping by hand (sigh). Maybe we can get the best of both worlds: how about a Group: or Tags: section in the ddoc that a program could automatically pull out to

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Michel Fortin
On 2011-01-31 14:13:40 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org said: Let's fix it! I'm thinking along the lines of finding some broad groups, e.g. Searching find until mismatch startsWith ... Sorting sort partialSort partition ... Set operations setUnion setDifference

Re: Is D still alive?

2011-01-31 Thread Ulrik Mikaelsson
2011/1/31 Jesse Phillips jessekphillip...@gmail.com: I do not think there is an issue with using D2 in a new project, but if you have to ask you probably should go with D1. I say this because someone who is aware of the issues present in the language is able to decide if their desired

Re: (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread so
Java is an excellent example of many very usable APIs, meaning that it very easy to both read Java code and understand what the functions do and write code that's just as readable *without* RTFM. This one i don't understand. (seems i fail to understand many things nowadays!). I have read

Re: Max length of a LOC: poll results (Was: On 80 columns...)

2011-01-31 Thread Tomek Sowiński
Tomek Sowiński napisał: Alright, I'm wrapping up this toy study. Two things before the numbers come: - A few respondents gave 2 numbers, one reasonable, the other if I really have to. I took the latter (larger) number as I was after maximum length, something usable as a setting for a

Re: Audio time-compression (Was: On 80 columns should (not) be enough for everyone)

2011-01-31 Thread Ulrik Mikaelsson
2011/1/31 Walter Bright newshou...@digitalmars.com: I think the reason I.E. YouTube and Tivo don't do it is that AFAIU, it is fairly CPU-consuming (FFT back and forth?) In the TiVo-case, my guess is nobody paid for the hardware, and in the YouTube-case I doubt neither Flash nor JavaScript will

Re: Is D still alive?

2011-01-31 Thread retard
Mon, 31 Jan 2011 11:43:37 -0500, Steven Schveighoffer wrote: On Fri, 28 Jan 2011 20:16:54 -0500, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: I can't buy enterprise support, Of course you can! No really, I can't afford it ;) But seriously, I find it

Re: Is D still alive?

2011-01-31 Thread Jonathan M Davis
On Monday, January 31, 2011 11:31:29 Jesse Phillips wrote: Trass3r Wrote: I've chosen to only work with D1/Tango from start, and I simply don't recognize the frustration many are feeling. I'm only concerned over that there ARE quite a few developers that seems to have been turned off

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread spir
On 01/30/2011 07:27 PM, Walter Bright wrote: Andrej Mitrovic wrote: 80 columns wasn't determined by some scientific method to be a good size for code, it's a product of limitations of the older generation hardware. 80 columns came from how many characters would fit on a standard size 8.5*11

Re: On 80 columns should (not) be enough for everyone

2011-01-31 Thread bearophile
Russel Winder: What say we cut the agist crap. There are also armies of programmers with myopia :-) Bye, bearophile

Re: Max length of a LOC: poll results (Was: On 80 columns...)

2011-01-31 Thread Walter Bright
Tomek Sowiński wrote: 1 respondent answered 1 mole which I also excluded as a 22-order-of-magnitude outlier. What kind of a jerk is that respondent?

  1   2   >