Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-08 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/8/2014 4:35 PM, Ben Boeckel via Digitalmars-d-announce wrote: On Thu, May 08, 2014 at 15:41:57 -0400, Nick Sabalausky via Digitalmars-d-announce wrote: Or better yet, don't. Steam's UI is terrible. Clicking search suggestions often does nothing, the search result paging is goofy as hell

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-08 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/8/2014 4:51 PM, Sönke Ludwig wrote: Am 08.05.2014 21:41, schrieb Nick Sabalausky: (...)my trackpad's scrolling gestures don't even fucking work on it (they work fine on nearly anything else). To be fair, some time ago I've had the joy to try and properly support scrolling gestures

Re: isUniformRNG

2014-05-08 Thread Nick Sabalausky via Digitalmars-d
On 5/4/2014 4:08 PM, Joseph Rushton Wakeling via Digitalmars-d wrote: I should also be thanking you -- this reminded me that I needed to make some key changes to my std.random2 proposal, including this stricter isUniformRNG template:

Re: Ranges of char and wchar

2014-05-08 Thread Nick Sabalausky via Digitalmars-d
On 5/8/2014 1:46 PM, Andrei Alexandrescu wrote: However output range means the string operation will be done eagerly, whereas lazy has advantages (nice piping, saving on work etc). Isn't eagerness what we have array() for? Also, while naming is often just bikeshedding, in this case I think

Re: Ranges of char and wchar

2014-05-08 Thread Nick Sabalausky via Digitalmars-d
On 5/8/2014 2:19 PM, H. S. Teoh via Digitalmars-d wrote: This way, you maximize the usability of the function -- it can participate in UFCS chains, compose with other std.algorithm functions, etc.. I think that actually raises an issue worth considering. I posit that the results of an

Re: Ranges of char and wchar

2014-05-08 Thread Nick Sabalausky via Digitalmars-d
On 5/8/2014 2:46 PM, Walter Bright wrote: But to make a lazy version from an eager one means reimplementing it. Or yield()-ing inside the eager one's sink. And note also there is such as thing as a stackless fiber, so I'm not certain a full-fledged context-switching fiber would necessarily

Re: Ranges of char and wchar

2014-05-08 Thread Nick Sabalausky via Digitalmars-d
On 5/8/2014 4:13 PM, Walter Bright wrote: 8/2014 12:22 PM, Nick Sabalausky wrote: On 5/8/2014 2:46 PM, Walter Bright wrote: But to make a lazy version from an eager one means reimplementing it. Or yield()-ing inside the eager one's sink. The data is still supplied to it. I think I've

Re: isUniformRNG

2014-05-08 Thread Nick Sabalausky via Digitalmars-d
On 5/8/2014 5:29 PM, Joseph Rushton Wakeling via Digitalmars-d wrote: On 08/05/14 19:18, Nick Sabalausky via Digitalmars-d wrote: Some good looking stuff in there. The separation is a nice improvement, and having a shuffle is something we could certainly use. Thanks! :-) There is already

Re: isUniformRNG

2014-05-07 Thread Nick Sabalausky via Digitalmars-d
On 5/4/2014 3:26 PM, Joseph Rushton Wakeling via Digitalmars-d wrote: On 04/05/14 20:56, Nick Sabalausky via Digitalmars-d wrote: So I think it's probably safe to figure this is a uniform distribution unless some expert chimes in and says otherwise. Thanks for the help. You're very welcome

Re: isUniformRNG

2014-05-07 Thread Nick Sabalausky via Digitalmars-d
On 5/7/2014 4:06 PM, Nick Sabalausky wrote: // The algorithm specifically supports generating // arbitrary lengths at once, so can also do: HashDRBGStream!uint randStream; Oops, that's supposed to be: HashDRBGStream!() randStream; //aka: // HashDRBGStream!(SHA512, D Crypto RNG) randStream;

Re: isUniformRNG

2014-05-07 Thread Nick Sabalausky via Digitalmars-d
On 5/7/2014 5:09 PM, David Nadlinger wrote: On Wednesday, 7 May 2014 at 21:01:20 UTC, David Nadlinger wrote: Shouldn't that take an ubyte output range instead? Erm, scrap that, wasn't thinking. Actually, maybe it should, even if only as an option. Unless I'm the one not thinking now...?

Re: Implicit static-dynamic arr and modifying

2014-05-07 Thread Nick Sabalausky via Digitalmars-d-learn
On 5/6/2014 6:46 PM, Rene Zwanenburg wrote: On Tuesday, 6 May 2014 at 02:17:06 UTC, Nick Sabalausky wrote: So all is well, and deliberately so. Pardon the noise. IMO it's not. I once had a particularly nasty bug because of this: struct S { @safe: string str; this(string data)

Re: [Rosettacode] D code line length limit

2014-05-07 Thread Nick Sabalausky via Digitalmars-d-learn
On 5/7/2014 9:25 AM, bearophile wrote: So far in Rosettacode D entries I've kept a line length limit of 72 or 73 chars. But now a little larger monitors are common, D UFCS chains are common, and we also have longer function signatures with pure nothrow @safe @nogc (that usually I put on a new

Re: My D book is now officially coming soon

2014-05-06 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/6/2014 9:11 AM, Adam D. Ruppe wrote: On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote: Any way to see the TOC? Hmm, not on the website yet but here it is. [snip] Sounds awesome!

Re: Advertising D Cookbook on http://dlang.org or http://wiki.dlang.org/Books

2014-05-06 Thread Nick Sabalausky via Digitalmars-d
On 5/6/2014 12:13 PM, Andrei Alexandrescu wrote: I wanted to ask the community how they'd feel about this. The ads would only advertise Adam's book and we'd have leeway with format and size. As long as there's no sound/animation/malware, then it sounds like a great idea. Non-commercial OSS

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-05 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/5/2014 4:58 AM, Gary Willoughby wrote: On Sunday, 4 May 2014 at 19:19:57 UTC, Nick Sabalausky wrote: -Jsource/example/media: Use stringImportPaths to specify import paths in a compiler independent way Error: multiple definition of tcl_38_307: _Tcl_Main and Tcl_Main: _Tcl_Main These

Re: Get object address when creating it in for loop

2014-05-05 Thread Nick Sabalausky via Digitalmars-d
On 5/5/2014 12:15 PM, hardcoremore wrote: How to get and address of newly created object and put it in pointer array? int maxNeurons = 100; Neuron*[] neurons = new Neuron*[](maxNeurons); Neuron n; for(int i = 0; i maxNeurons; i++) { n = new Neuron(); neurons[] = n; // here n

Re: Adding a chocolatey package

2014-05-05 Thread Nick Sabalausky via Digitalmars-d
On 5/5/2014 4:05 PM, Etienne wrote: Are we allowed to put a DMD installer on http://chocolatey.org as a package? I'd be interested in building a bulk installer for DMD + dub + Mono-D but I'm not sure about the licensing terms b/c the dmd back-end is supposedly proprietary. Go here (with JS

Re: Adding a chocolatey package

2014-05-05 Thread Nick Sabalausky via Digitalmars-d
On 5/5/2014 4:26 PM, Nick Sabalausky wrote: Use the Send email to Walter Bright and request permission. He's known to be cool about this sort of thing. IIUC, the whole permission thing is just a formality necessitated by the backend's former life as part of various companies's commercial

Implicit static-dynamic arr and modifying

2014-05-05 Thread Nick Sabalausky via Digitalmars-d-learn
Is this kinds stuff a sane thing to do, or does it just work by accident?: void modify(ubyte[] dynamicArr) { dynamicArr[$-1] = 5; } void main() { ubyte[4] staticArr = [1,1,1,1]; modify(staticArr); assert(staticArr == [1,1,1,5]); }

Re: Implicit static-dynamic arr and modifying

2014-05-05 Thread Nick Sabalausky via Digitalmars-d-learn
On 5/5/2014 10:11 PM, Nick Sabalausky wrote: Is this kinds stuff a sane thing to do, or does it just work by accident?: void modify(ubyte[] dynamicArr) { dynamicArr[$-1] = 5; } void main() { ubyte[4] staticArr = [1,1,1,1]; modify(staticArr); assert(staticArr == [1,1,1,5]);

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-04 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/4/2014 12:18 PM, Gary Willoughby wrote: Tkd v1.0.0-beta https://github.com/nomad-software/tkd http://code.dlang.org/packages/tkd Looks great, anxious to give this a try! BTW, on the main readme page, the links into the API docs don't appear to be working (although it might be a GitHub

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-04 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/4/2014 12:44 PM, Nick Sabalausky wrote: On 5/4/2014 12:18 PM, Gary Willoughby wrote: Tkd v1.0.0-beta https://github.com/nomad-software/tkd http://code.dlang.org/packages/tkd Looks great, anxious to give this a try! BTW, on the main readme page, the links into the API docs don't appear

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-04 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/4/2014 3:11 PM, Nick Sabalausky wrote: On 5/4/2014 2:39 PM, Gary Willoughby wrote: On Sunday, 4 May 2014 at 18:20:01 UTC, Nick Sabalausky wrote: I'm getting compile errors building the example (Win32 DMD 2.065.0): Those errors are from the DMD -property flag being passed somewhere,

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-04 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/4/2014 3:55 PM, Gary Willoughby wrote: On Sunday, 4 May 2014 at 19:19:57 UTC, Nick Sabalausky wrote: Just updated to latest DUB release (v0.9.21), but now I'm getting this: That's building with the config 'library'. If you want to run the example build with: dub --config=example in the

Re: Scenario: OpenSSL in D language, pros/cons

2014-05-04 Thread Nick Sabalausky via Digitalmars-d
On 5/4/2014 9:29 AM, Meta wrote: While D is a somewhat safer language by *default*, it makes it fairly easy to escape from the safe part of the language and write unsafe code Yea, I'm finding that in some ways, D accidentally encourages @system/@trusted code. For example, if you need some

Re: D For A Web Developer

2014-05-04 Thread Nick Sabalausky via Digitalmars-d
On 5/4/2014 12:34 AM, Jonathan M Davis via Digitalmars-d wrote: Regardless, unittest blocks don't really put any restrictions on what kind of code can go in them, and I'd prefer that that stay the case. The discussion on parallelizing unit tests threatens that on some level, but as long as we

Re: isUniformRNG

2014-05-04 Thread Nick Sabalausky via Digitalmars-d
On 5/4/2014 3:47 AM, Joseph Rushton Wakeling via Digitalmars-d wrote: About a more general isRNG template: can you be more precise about what you are interested in achieving with this? Generally speaking I would find it rather dangerous to go passing around sources of randomness without having

Re: isUniformRNG

2014-05-04 Thread Nick Sabalausky via Digitalmars-d
On 5/4/2014 11:38 AM, Joseph Rushton Wakeling via Digitalmars-d wrote: On 04/05/14 16:28, Nick Sabalausky via Digitalmars-d wrote: On a general level, I'm trying to grok the whole intent of isUniformRNG and see whether or not anything else may ever be needed in addition to isUniformRNG. I'm

Re: isUniformRNG

2014-05-04 Thread Nick Sabalausky via Digitalmars-d
On 5/4/2014 2:10 PM, Joseph Rushton Wakeling via Digitalmars-d wrote: On 04/05/14 19:42, Nick Sabalausky via Digitalmars-d wrote: Just a string of random bits. Effectively unsigned integers. Ahh, OK. So in practice you can probably template it on an unsigned integral type (which could

Re: isUniformRNG

2014-05-04 Thread Nick Sabalausky via Digitalmars-d
On 5/4/2014 3:26 PM, Joseph Rushton Wakeling via Digitalmars-d wrote: On 04/05/14 20:56, Nick Sabalausky via Digitalmars-d wrote: So I think it's probably safe to figure this is a uniform distribution unless some expert chimes in and says otherwise. Thanks for the help. You're very welcome

Re: D For A Web Developer

2014-05-03 Thread Nick Sabalausky via Digitalmars-d
On 5/3/2014 3:32 PM, Walter Bright wrote: On 4/30/2014 1:36 PM, Andrei Alexandrescu wrote: One good example is networking tests - if I worked on an airplane I'd love to not test tests that need connectivity with a simple regex. I am suspicious that testing networks with a unit test is an

isUniformRNG

2014-05-03 Thread Nick Sabalausky via Digitalmars-d
In std.random, is the isUniformRNG intended to determine whether the given type is *some* RNG or just a *specific* form of RNG? Because I don't see any isRNG that's more general. More importantly, should a crypto RNG count as isUniformRNG?

Re: More radical ideas about gc and reference counting

2014-05-03 Thread Nick Sabalausky via Digitalmars-d
On 5/3/2014 6:44 PM, Andrei Alexandrescu wrote: On 5/3/14, 12:40 PM, Walter Bright wrote: On 5/1/2014 7:59 AM, Andrei Alexandrescu wrote: If a class has at least one member with a destructor, the compiler might need to generate a destructor for the class. And in fact that's what dmd does.

Re: DIP(?) Warning to facilitate porting to other archs

2014-05-02 Thread Nick Sabalausky via Digitalmars-d
On 5/2/2014 12:21 PM, Jonathan M Davis via Digitalmars-d wrote: As far as the compiler is concerned, everything should be either an error or nothing (and Walter agrees with me on this; It would be nice if all code *could* be considered either good or error without causing problems. But we

Re: D For A Web Developer

2014-05-02 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 4:17 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Wednesday, 30 April 2014 at 20:00:59 UTC, Russel Winder via (*) Are we allowed to have gotos any more since Dijkstra's letter? You better ask the dining philosophers. Nah, they're too busy trying to

Re: D For A Web Developer

2014-05-01 Thread Nick Sabalausky via Digitalmars-d
On Thursday, 1 May 2014 at 13:33:50 UTC, Marc Schütz wrote: IMO the client shouldn't do any validation, unless you can really, really trust it. That's why I like to do things the following way: 1. user input on the client 2. post using ajax 3. server validates and stores the data 4a. if

Re: python vs d

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 6:16 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Wednesday, 30 April 2014 at 08:52:48 UTC, Chris wrote: In D you can do this: if (mode == TEST) { // Second block added later if (x == 1) { // First block writeln(Hurray!); } } Yea, I do that all the

Re: D For A Web Developer

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 3:14 AM, Jacob Carlborg wrote: There's a plugin [1] for Rails for generating a form based on a type. I don't understand how anyone can manage without that. It can automatically respond in a couple of formats as well. By default JSON, XML and Erb template. The most basic example

Re: D For A Web Developer

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 1:24 AM, Russel Winder via Digitalmars-d wrote: I would say from anecdotal observation, so no real significance, that most languages end up with a number of frameworks: 1A. Full stack Web framework. 1B. Lightweight HTTP framework. 2A. Full feature networking framework. 2B.

Re: D vs Rust: function signatures

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 3:26 AM, Paulo Pinto wrote: On Wednesday, 30 April 2014 at 01:49:01 UTC, Nick Sabalausky wrote: On 4/29/2014 9:38 PM, Narrator wrote: fn map'r, B(self, f: |A|: 'r - B) - Map'r, A, B, Self That looks like line noise. Not if one is used to ML languages. Beauty is in the eyes

Re: D For A Web Developer

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 9:47 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Wednesday, 30 April 2014 at 12:56:03 UTC, Nick Sabalausky wrote: FWIW, IMO the big selling point of D is it's fairly unique knack for letting you eat your cake and still have it. I rather like to think we

Re: D For A Web Developer

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 10:58 AM, Ary Borenszweig wrote: What if you have tests against a database that where each take some time? I don't want to wait for the whole tests to run... Collapse block, [Home], [Shift]-[Down] (select), [Ctrl]-/ (comment) ;) Just FWIW, though. I'm not arguing for or against

Re: D For A Web Developer

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 10:53 AM, Adam D. Ruppe wrote: On Wednesday, 30 April 2014 at 12:26:06 UTC, Nick Sabalausky wrote: Then I use Adam's dom.d (in non-strict mode) to read the HTML form template (preserving the templating stuff) I use strict mode for that stuff, keep in mind strict mode is about

Re: D For A Web Developer

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 11:04 AM, Adam D. Ruppe wrote: A big difference though is the compiler helps you a lot in D. In Ruby, for example, the main reason we use the unit tests (so far) is to help ensure consistency after refactoring something. It catchings things like a renaming we missed, or a removed

Re: D For A Web Developer

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 12:32 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On the other side of the fence the Wordpress authors are having a lot of power. Whatever Wordpress makes easy will dominate a large portion of the web. I think that is so sad, because the Wordpress codebase

Re: python vs d

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 11:59 AM, Chris wrote: The simplest example is to insert writeln() simply to see up to which point it prints before the app crashes. Believe it or not, I find this technique very efficient in certain situations. I do that all the time. :) Python often gets in my way when

Re: python vs d

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 1:05 PM, Russel Winder via Digitalmars-d wrote: On Wed, 2014-04-30 at 16:38 +, Brian Rogoff via Digitalmars-d wrote: […] Right, it's not the significant indentation which perplexes you, but the complete lack of compile time checking from Python. I'm perplexed that anyone could

Re: D For A Web Developer

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 4:36 PM, Andrei Alexandrescu wrote: One good example is networking tests - if I worked on an airplane I'd love to not test tests that need connectivity with a simple regex. The biggest thing for me has been unittests in third party libraries (hence the idiom of

Re: D For A Web Developer

2014-04-30 Thread Nick Sabalausky via Digitalmars-d
On 4/30/2014 3:53 PM, Jacob Carlborg wrote: On 2014-04-30 17:04, Adam D. Ruppe wrote: You also have problems like race conditions: account = BankAccount.find(1) account.balance -= 10 account.save! I think most Rails application are run single threaded. But with multiple processes instead.

Re: python vs d

2014-04-29 Thread Nick Sabalausky via Digitalmars-d
On 4/28/2014 7:02 PM, bearophile wrote: Nick Sabalausky: VB6 let you choose your starting index, too. It was rarely useful and constantly made array-handling code a pain in the ass. Of course, VB made pretty much everything a PITA...(I used to work at a VB6 house. *shudder*) (As far as I

Re: D For A Web Developer

2014-04-29 Thread Nick Sabalausky via Digitalmars-d
On 4/29/2014 10:41 AM, James wrote: I have a friend that is a web developer. I, however want to collaborate with him, so I am trying to get him to learn D. I don't know how to persuade him! How can D be used to greatly assist an HTML5/JavaScript web developer? I decided to go here to get some

Re: D For A Web Developer

2014-04-29 Thread Nick Sabalausky via Digitalmars-d
On 4/29/2014 11:55 AM, Etienne wrote: On 2014-04-29 11:27 AM, Adam D. Ruppe wrote: I recently started a Ruby on Rails job and using it makes me really, really miss the high productivity and ease of use D offers. (And, of course, a dynamic site in D runs about 3x faster out of the box than hello

Re: D vs Rust: function signatures

2014-04-29 Thread Nick Sabalausky via Digitalmars-d
On 4/29/2014 9:38 PM, Narrator wrote: fn map'r, B(self, f: |A|: 'r - B) - Map'r, A, B, Self That looks like line noise.

Re: python vs d

2014-04-29 Thread Nick Sabalausky via Digitalmars-d
On 4/29/2014 1:05 PM, Brian Rogoff wrote: The argument is roughly like this: if we accept that it would be a good thing if there was a universal indentation/code formatting standard that everyone followed (like gofmt for Go) then punctuation is redundant and the remaining question is whether

Re: D For A Web Developer

2014-04-29 Thread Nick Sabalausky via Digitalmars-d
On 4/29/2014 3:48 PM, JN wrote: On Tuesday, 29 April 2014 at 15:28:00 UTC, Nick Sabalausky wrote: Show him forum.dlang.org (written in D) and point out that modern HTML5/JS sites are freaking horrid. /admitted-curmudgeon forum.dlang.org is written in HTML/JS too. Anything on the web

Re: python vs d

2014-04-28 Thread Nick Sabalausky via Digitalmars-d
On 4/28/2014 6:31 PM, bearophile wrote: Paulo Pinto: Pascal expatriates like myself won't consider indexes from 1 a design mistake. :) What's the good of having all arrays always start from index 1 (this is different from Ada, where you can choose the indexing range and type)? VB6 let you

Re: Distributing implib?

2014-04-27 Thread Nick Sabalausky via Digitalmars-d
On 4/27/2014 1:53 PM, Jeremy DeHaan wrote: According to the license [implib] comes with, I would need to obtain a redistribution license for this. Anyone else had any experience with that? Standard procedure is to just email Walter your request. There's a JS Send email button here:

Re: Redesign of dlang.org

2014-04-25 Thread Nick Sabalausky via Digitalmars-d
On 4/25/2014 1:06 AM, H. S. Teoh via Digitalmars-d wrote: On Fri, Apr 25, 2014 at 12:24:47AM -0400, Nick Sabalausky via Digitalmars-d wrote: I would think basic computing features like text editing, copy/paste, and filenames would make trivially short work of conforming to various templates

Re: Poll - How long have you been in D?

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/24/2014 2:17 AM, bytedruid wrote: (Side note: I entered a fake email address, is that a no-no one this list?) It's fine, many of us do that. Look at mine ;)

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
(Argh! Accidentally emailed this to digitalmars-d@puremagic.com twice! Actually posting to NG now...) On 4/23/2014 6:48 PM, H. S. Teoh via Digitalmars-d wrote: until sometime in the last few years I got so sick of JS eating up CPU, memory, causing needless browser slowdowns, popping up

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 6:19 PM, H. S. Teoh via Digitalmars-d wrote: On Wed, Apr 23, 2014 at 05:32:00PM -0400, Nick Sabalausky via Digitalmars-d wrote: I certainly won't disagree that small fonts can be hard to read, but on the other end, I've seen a lot of newer websites with gigantic fonts, and I find

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/24/2014 3:40 PM, H. S. Teoh via Digitalmars-d wrote: In an ideal world, the webserver simply serves the content, and the browser is the one that decides how to present it -- and the user decides how the browser should present it. Ultimately, the user should be in charge. That's exactly

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/24/2014 8:27 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: What annoy me the most is non-promotional sites that set the body font-family to anything but the default sans-serif (which often happens to be pixel perfect, have good unicode support and is legible). Yea,

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/24/2014 9:59 AM, Kagamin wrote: On Thursday, 24 April 2014 at 08:17:15 UTC, Nick Sabalausky wrote: As if b hasn't always implied the semantics of emphasis anyway...not that anyone's ever had any real use for semantic which text is emphasized? for any purpose besides Should this text be

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/24/2014 9:54 PM, bearophile wrote: Walter Bright: I don't get the reason for doing this. Are they trying to save paper or something? They are often trying to save paper. Some conferences (and sometimes even some journals) set a maximum limit of pages for submitted papers. Don't they

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/24/2014 10:07 PM, H. S. Teoh via Digitalmars-d wrote: I don't like wide screens that much, actually. I still prefer 4x3 aspect ratio. I kinda agree with Nick that wide screens are more like half-height screens. :-P I've even seen companies actually trying to sell ~2:1 abominations. Even

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/25/2014 12:00 AM, H. S. Teoh via Digitalmars-d wrote: OTOH, I believe journals nowadays actually give you a LaTeX template that you're supposed to follow, and they greatly frown upon submissions that don't conform to that template. So people are less likely to fiddle with stuff that they

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 2:12 PM, Walter Bright wrote: On 4/23/2014 10:02 AM, H. S. Teoh via Digitalmars-d wrote: On the contrary, I find almost all websites have broken layouts because I enforce a minimal font size of 16pt (I have a high-resolution screen) -- they insist on font sizes that are far too

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 2:47 AM, Martin Nowak wrote: Eww. Font size and image scaling should *not* be a function of window size. That's just...yuck. Let the system determine it's own appropriate base font size. And it's all in that horrible, ugly, giant sized, yet minimal content and maximal blank space

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 9:11 AM, Adam D. Ruppe wrote: On Tuesday, 22 April 2014 at 23:45:43 UTC, Aleksandar Ruzicic wrote: Wow, this looks really nice! It has variables, mixins, nested selectors and includes.. That's all I need! Yea, I wrote this several years ago before even knowing about sass based on

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 2:34 AM, Jacob Carlborg wrote: On 23/04/14 00:57, Nick Sabalausky wrote: Apparently they can't even manage make basic links work properly: http://getbootstrap.com/examples/starter-template/ How anyone can manage to fuck up a href=../a is beyond me. What's fucked up with

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 5:55 PM, John Colvin wrote: On Tuesday, 22 April 2014 at 23:08:45 UTC, Adam D. Ruppe wrote: I wrote a css expander that has a little bit of SASS features. Previously it was hidden in my html.d on my misc. github, but I just now made it a standalone program in a separate repo:

Re: Redesign of dlang.org

2014-04-22 Thread Nick Sabalausky via Digitalmars-d
On 4/22/2014 4:39 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: This is the proper link: http://www.w3.org/TR/WCAG20-TECHS/ Man do I REALLY wish movie makers and game devs would at least TRY to follow this one: http://www.w3.org/TR/WCAG20-TECHS/G56.html In just the

Re: Redesign of dlang.org

2014-04-22 Thread Nick Sabalausky via Digitalmars-d
On 4/22/2014 6:26 PM, Martin Nowak wrote: On 04/21/2014 05:48 PM, Aleksandar Ruzicic wrote: Just one question, would it be okay to depend on node.js/npm to manage dependencies (i.e. CSS/JS frameworks) and build CSS/JS files? As I'd use Sass for styling, which must be translated to CSS (I'd use

Re: Redesign of dlang.org

2014-04-22 Thread Nick Sabalausky via Digitalmars-d
On 4/22/2014 5:47 PM, Aleksandar Ruzicic wrote: and would need a tool to concat those later to the target CSS (this can be done with cat but it's non-standard on windows) FWIW, on windows: type input1.txt output.txt type input2.txt output.txt type input3.txt output.txt

Re: Redesign of dlang.org

2014-04-22 Thread Nick Sabalausky via Digitalmars-d
On 4/22/2014 7:29 PM, Aleksandar Ruzicic wrote: On Tuesday, 22 April 2014 at 22:26:39 UTC, Martin Nowak wrote: Why do you want to write the whole CSS yourself? Isn't something like bootstrap more appropriate for the task? I would use Foundation[1] instead of Bootstrap. [1]

Re: Redesign of dlang.org

2014-04-21 Thread Nick Sabalausky via Digitalmars-d
On 4/21/2014 8:14 AM, Steven Schveighoffer wrote: but I think having the font grow when the window is expanded is somewhat useful. I don't. Overly-large text is just as hard to read as overly-small text. In any case, if I want the text bigger/smaller, that's what the zoom/text-size

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/18/2014 1:24 PM, Steven Schveighoffer wrote: On Fri, 18 Apr 2014 12:40:31 -0400, Aleksandar Ruzicic aleksan...@ruzicic.info wrote: I must respectfully disagree about retaining left justification. I have 27'' monitor with resolution of 2560x1440 and left-aligned websites are really hard to

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 3:45 AM, Aleksandar Ruzicic wrote: On Friday, 18 April 2014 at 22:06:03 UTC, John Colvin wrote: [snip] Or just a little switch in a corner somewhere to change the justification, with a cookie. That can be easily done (although I wouldn't use cookies) but I would prefer centered

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/18/2014 12:40 PM, Aleksandar Ruzicic wrote: I must respectfully disagree about retaining left justification. I have 27'' monitor with resolution of 2560x1440 and left-aligned websites are really hard to read! Why does everyone these days seem to forget that windows are resizable? FWIW

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 6:56 AM, Aleksandar Ruzicic wrote: Ok here's a mockup of search concept I would like to implement: http://krcko.net/dlang.org/dlang-search-concept.png Search suggestions feature would surely require JavaScript but IMHO it would be a really nice enhancement. I don't know

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 7:48 AM, Kagamin wrote: On Friday, 18 April 2014 at 16:40:32 UTC, Aleksandar Ruzicic wrote: [1] http://devdocs.io/ Sorry, your browser is not supported. I would understand, if it was an FPS web game, but what advanced technology a documentation site absolutely can't live

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/18/2014 12:53 PM, Brad Anderson wrote: Even if it weren't better looking, just different, I'd say it should be done. I'm of the opinion that every site, no matter how good it looks, should go through redesigns periodically in order to feel fresh and non-stagnant to repeat visitors. It's a

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/18/2014 2:56 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: Nice initiative, but the top bar looks a lot like adobe.com . I think something less corporate would be more suitable. What are you trying to communicate? A community or a corporation? I had a brief thought

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/18/2014 4:12 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: 1. visitors are likely to be familiar with one of those 2. they might have figured out something that works 3. you want to do at least what they do, but better Good points. IMO: http://www.rust-lang.org/

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 6:52 PM, Nick Sabalausky wrote: On 4/18/2014 4:12 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: https://www.python.org/ This is a much better, less useless, variant of the popular dartlang.org style above. It isn't bad, but I'm not sure D really needs to

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 6:01 PM, Aleksandar Ruzicic wrote: That can surely be stored in a Cookie, but I also prefer localStorage, mostly for performance reasons (cookies get sent on *every* request, unless you setup subdomain just for that type of cookies) and for the fact that cookies are the worst thing

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 5:57 PM, Aleksandar Ruzicic wrote: On Saturday, 19 April 2014 at 21:44:20 UTC, Nick Sabalausky wrote: - There should be some visual indication of the search box besides the text itself. It *looks* nice as you have it, but practically speaking it'd be a bit awkward to not be able

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 3:48 AM, Aleksandar Ruzicic wrote: On Friday, 18 April 2014 at 22:08:13 UTC, Nick Sabalausky wrote: As long as it's: - A normal reflowing layout (not a static fixed-width one or an auto-rescaling one) Of course. Cool. - Doesn't require JS (optional JS enhancements are

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 4:02 AM, Aleksandar Ruzicic wrote: On Friday, 18 April 2014 at 23:50:56 UTC, 1100110 wrote: It looks 'clean'. Go for it! Thanks! I'm planning to start working on this as soon as I get approval from Walter/Andrei, and as most of people who answered here are agreed that redesign

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 4:16 AM, Aleksandar Ruzicic wrote: I'm slightly against autofocus on search field, as I am one of people who use Backspace to navigate to previous page and I'm always frustrated when I hit Backspace on Google search results page and it's not taking me to previous page. But if

Re: Redesign of dlang.org

2014-04-19 Thread Nick Sabalausky via Digitalmars-d
On 4/19/2014 7:19 PM, Aleksandar Ruzicic wrote: On Saturday, 19 April 2014 at 23:06:55 UTC, Nick Sabalausky wrote: On 4/19/2014 6:01 PM, Aleksandar Ruzicic wrote: That can surely be stored in a Cookie, but I also prefer localStorage, mostly for performance reasons (cookies get sent on *every*

Re: Redesign of dlang.org

2014-04-18 Thread Nick Sabalausky via Digitalmars-d
On 4/18/2014 10:04 AM, Aleksandar Ruzicic wrote: I have also tried to design something myself (although I'm not a designer) and this is what I came up with: http://krcko.net/dlang.org/dlang-home-draft1.png I'm not entirely satisfied with it but I believe that it looks better (or at least more

Re: Redesign of dlang.org

2014-04-18 Thread Nick Sabalausky via Digitalmars-d
On 4/18/2014 6:07 PM, Nick Sabalausky wrote: As long as it's: [...] Meant to say: Nothing against the current design, but as long as yours is (those things), then I'd be very happy to see your design used.

Re: Size_t on x86 is uint,on x64 is ulong,it's a good thing?

2014-04-17 Thread Nick Sabalausky via Digitalmars-d
On 4/17/2014 12:36 PM, FrankLike wrote: Size_t on x86 is uint,on x64 is ulong,it's a good thing? I don't think is ok. it creates many convert thing,such as length is ulong ,must cast to int or cast to uint. It will be waste of time ,I think. If you want fixed-length, you use

Re: [OT] from YourNameHere via Digitalmars-d

2014-04-17 Thread Nick Sabalausky via Digitalmars-d
On 4/17/2014 8:51 AM, Steven Schveighoffer wrote: Every time I open one of these messages I get a huge pregnant 5-second pause, along with the Mac Beach Ball (hourglass) while this message is opened in my news reader. Sounds like something's wrong with your news reader.

<    4   5   6   7   8   9