Re: input completion system

2012-05-15 Thread James Miller
. I hope that helps. -- James Miller

Re: Introducing vibe.d!

2012-05-08 Thread James Miller
small, but still allow the vibe team to provide more functionality, especially if it is common functionality. -- James Miller

Re: Introducing vibe.d!

2012-05-06 Thread James Miller
, and supporting 8 different load-balancing schemes is great, but doesn't help me produce a website...), would they be mostly modules, or more core parts? -- James Miller

Re: nginx reverse proxy for vibe tutorial

2012-05-06 Thread James Miller
On Sunday, 6 May 2012 at 13:47:27 UTC, David wrote: Am 06.05.2012 03:00, schrieb James Miller: On Friday, 4 May 2012 at 11:54:04 UTC, David wrote: * using `try_files`, nginx complains that you can't use proxy_pass inside a named location (like `@vibe`), which means you can't use try_files

Re: nginx reverse proxy for vibe tutorial

2012-05-06 Thread James Miller
On Sunday, 6 May 2012 at 22:32:16 UTC, James Miller wrote: I thought it should work, and I'm probably missing something, but here: nginx: [emerg] proxy_pass cannot have URI part in location given by regular expression, or inside named location, or inside if statement, or inside

Re: R suffix for reals

2012-05-06 Thread James Miller
a good idea, I didn't even know that it was possible until now, so I imagine it can't be stepping on many people's toes. -- James Miller

Re: nginx reverse proxy for vibe tutorial

2012-05-06 Thread James Miller
On Sunday, 6 May 2012 at 22:50:56 UTC, David Nadlinger wrote: On Sunday, 6 May 2012 at 22:42:21 UTC, James Miller wrote: I think FUU is the most appropriate sentiment here. Wait till you try using conditional blocks in Lighty's configuration files… [1] David [1] lighttpd supports

Re: nginx reverse proxy for vibe tutorial

2012-05-05 Thread James Miller
On Friday, 4 May 2012 at 11:54:04 UTC, David wrote: * using `try_files`, nginx complains that you can't use proxy_pass inside a named location (like `@vibe`), which means you can't use try_files to serve arbitrary static files, hence the massive list of extensions. why not doing: root

Array type inference

2012-05-04 Thread James Miller
. Is this a known bug, expected functionality, or should I file a bug request? -- James Miller

nginx reverse proxy for vibe tutorial

2012-05-04 Thread James Miller
works (mostly). With nginx serving the static files out the front, the speed of the setup is incredible. I hope that people find this helpful. -- James Miller

Re: bootDoc - advanced DDoc framework using Twitter's Bootstrap

2012-05-03 Thread James Miller
On Thursday, 3 May 2012 at 06:09:31 UTC, Jakob Ovrum wrote: On Thursday, 3 May 2012 at 05:14:43 UTC, James Miller wrote: On Wednesday, 2 May 2012 at 18:26:11 UTC, Jakob Ovrum wrote: This project is finally published and documented, so here's an announcement. https://github.com/JakobOvrum

Re: D3 is potentially damaging

2012-05-03 Thread James Miller
be better to gradually deprecate code going forward and replace the broken syntax and non backwards-compatible code. Another useful could be to have a pragma(version, 2) so the compiler compiles with version 2 rules, no porting needed, just a single line near the top. -- James Miller

Re: bootDoc - advanced DDoc framework using Twitter's Bootstrap

2012-05-02 Thread James Miller
to see it. How this is implemented is up to you, but being able to collapse to module view might be enough. -- James Miller

Re: luajit-ffi

2012-05-02 Thread James Miller
you do some crazy CTFE magic. -- James Miller

Oddness with C binding

2012-05-02 Thread James Miller
. -- James Miller

extern and opaque structs

2012-05-02 Thread James Miller
struct. Adding __gshared doesn't help. I assume this is bug, since usage of extern means that I don't need to know the size, since it will be allocated in the C code, not the D code. -- James Miller

Re: More bugs...

2012-04-29 Thread James Miller
of whether it compiles, seems too magic-y for my tastes. I don't like things not being explicit. -- James Miller

Re: Cairo Deimos bindings

2012-04-27 Thread James Miller
On Friday, 27 April 2012 at 09:50:21 UTC, Dejan Lekic wrote: James Miller wrote: I am currently writing D bindings for Cairo for submission into Deimos, could somebody please make the repository so I can fork it? Thanks -- James Miller Is it a binding, or a wrapper? It is a binding

Re: Cairo Deimos bindings

2012-04-27 Thread James Miller
with in normal D code. -- James Miller

Re: More bugs...

2012-04-27 Thread James Miller
type, so it goes through and instantiates Foo(T[][]) which is, again, a different type. Think before declaring D to have bugs. -- James Miller

Cairo Deimos bindings

2012-04-26 Thread James Miller
I am currently writing D bindings for Cairo for submission into Deimos, could somebody please make the repository so I can fork it? Thanks -- James Miller

Cross module version specs

2012-04-26 Thread James Miller
carried across modules, which pretty much makes them completely useless unless you only use the built-in versions. -- James Miller

Re: Cross module version specs

2012-04-26 Thread James Miller
On Thursday, 26 April 2012 at 10:20:37 UTC, Jonathan M Davis wrote: On Thursday, April 26, 2012 12:09:19 James Miller wrote: which pretty much makes them completely useless unless you only use the built-in versions. That's not true at all. It just means that versions are either useful

Re: Cairo Deimos bindings

2012-04-26 Thread James Miller
replicate, in D, similar error messages to the C headers. There is alot that is difficult to do with automated tools, and it would be nice if this was properly complete, I plan on actually writing a proper install for this so your installed D bindings reflect the available C functions. -- James

Re: Cross module version specs

2012-04-26 Thread James Miller
On Thursday, 26 April 2012 at 12:37:44 UTC, Steven Schveighoffer wrote: On Thu, 26 Apr 2012 06:32:58 -0400, James Miller ja...@aatch.net wrote: On Thursday, 26 April 2012 at 10:20:37 UTC, Jonathan M Davis wrote: On Thursday, April 26, 2012 12:09:19 James Miller wrote: which pretty much

Re: Cairo Deimos bindings

2012-04-26 Thread James Miller
the binding for the 3000 line cairo.h file in about 3 hours, through judicious use of regex replaces and macros (I love Vim). -- James Miller

Re: Cairo Deimos bindings

2012-04-26 Thread James Miller
of the enum would suffice. Its not that hard since Vim has a block select, and cairo has some pretty consistent naming that makes doing macros easy for them, the last step is just to check that everything gets renamed properly. -- James Miller

Re: ^^ limitation

2012-04-26 Thread James Miller
they feel like part of the language. -- James Miller

Re: Cairo Deimos bindings

2012-04-26 Thread James Miller
On Friday, 27 April 2012 at 01:45:20 UTC, Walter Bright wrote: On 4/26/2012 1:28 AM, James Miller wrote: I am currently writing D bindings for Cairo for submission into Deimos, could somebody please make the repository so I can fork it? I need: library file name cairo

Notice/Warning on narrowStrings .length

2012-04-23 Thread James Miller
I'm writing an introduction/tutorial to using strings in D, paying particular attention to the complexities of UTF-8 and 16. I realised that when you want the number of characters, you normally actually want to use walkLength, not length. Is is reasonable for the compiler to pick this up

Re: Notice/Warning on narrowStrings .length

2012-04-23 Thread James Miller
On Monday, 23 April 2012 at 23:52:41 UTC, bearophile wrote: James Miller: I realised that when you want the number of characters, you normally actually want to use walkLength, not length. As with strlen() in C, unfortunately the result of walkLength(somestring) is computed every time you

Re: Is the use of .di depreceated ?

2012-04-23 Thread James Miller
compiling in order to speed up compilation times when doing incremental compilation (don't have to parse as much code). -- James Miller

Re: Foreach Closures?

2012-04-13 Thread James Miller
it is has an LLVM backend. SDC would be good too, but SDC is probably the best one to try to move towards adding this functionality. -- James Miller

Re: Precise GC

2012-04-13 Thread James Miller
On 2012-04-13 16:54:28 +0300 Manu turkey...@gmail.com wrote: While I'm at it. 'final:' and 'virtual' keyword please ;) Hmmm, I thought we decided that was a good idea, anybody in the know if this going to happen or not? -- James Miller

Re: FormatSpec struct

2012-04-13 Thread James Miller
for the standard format specifier, but its not very clear as to proper usage. I'm going to try to improve it and submit a pull request, until then looking at the source code for std.format should give you some idea of how to best use it. -- James Miller

Re: FormatSpec struct

2012-04-13 Thread James Miller
* James Miller ja...@aatch.net [2012-04-13 19:16:48 +1200]: * Paul D. Anderson paul.d.removethis.ander...@comcast.andthis.net [2012-04-13 07:50:31 +0200]: I'm trying to add formatted output to my decimal arithmetic module. Decimals should format like floating point, using 'E', 'F' and 'G

Re: Is anyone hacking on druntime in a widespread fashion atthemoment?

2012-04-12 Thread James Miller
* H. S. Teoh hst...@quickfur.ath.cx [2012-04-11 22:28:32 -0700]: On Thu, Apr 12, 2012 at 12:59:06AM -0400, Nick Sabalausky wrote: James Miller ja...@aatch.net wrote in message news:mailman.1640.1334189880.4860.digitalmar...@puremagic.com... I don't trust computers, I've spent too long

Re: The Downfall of Imperative Programming

2012-04-12 Thread James Miller
). -- James Miller

Re: The Downfall of Imperative Programming

2012-04-12 Thread James Miller
* bearophile bearophileh...@lycos.com [2012-04-12 15:14:37 +0200]: James Miller: I wish I could love Haskell, and for pure computer science, it's fine, amazing even, but for real-world programming, it just doesn't cut it. Haskell contains some ideas worth copying even in non-functional

Re: Measuring the page generation of the forum

2012-04-12 Thread James Miller
. I understand that you want to see how the GC affects the server performance, but it will be so small that it will be lost in the noise, a blip in traffic because it's lunchtime and people are watching youtube in your area will cause a bigger delay than the GC kicking in. -- James Miller

Re: Passing function as values and returning functions

2012-04-12 Thread James Miller
questions, not for people that are learning D. (High level questions being along the lines of What changes need to be made in dmd to support the new AA implementation?) -- James Miller

Re: Passing function as values and returning functions

2012-04-12 Thread James Miller
* James Miller ja...@aatch.net [2012-04-13 02:49:03 +1200]: Glad you got help Xan, but for future reference can you please keep questions to D.learn? It is somewhat frustrating to see the question How do I do that? on this list, since it is for discussion, and high-level questions

Re: Sampling algorithms for D

2012-04-12 Thread James Miller
() and (] to obtain the other two intervals -- James Miller

Re: Is anyone hacking on druntime in a widespread fashion at themoment?

2012-04-11 Thread James Miller
anything right. -- James Miller

Re: Multiple %s format specifiers with a single argument

2012-04-11 Thread James Miller
posting using things like Windows Live Mail. And it seems that Outlook Express is better at mailing lists than Outlook, which is strange... -- James Miller

Re: The Downfall of Imperative Programming

2012-04-10 Thread James Miller
* Marco Leise marco.le...@gmx.de [2012-04-10 05:57:52 +0200]: Am Tue, 10 Apr 2012 12:50:32 +1200 schrieb James Miller ja...@aatch.net: Slightly OT: With the unstoppable march of parallel programming, does anybody else find node.js incredibly infuriating, since it is single-core

Re: The Downfall of Imperative Programming

2012-04-09 Thread James Miller
of pure functional, but don't miss the advantages of mutable variables and being able to write in the imperative style. Slightly OT: With the unstoppable march of parallel programming, does anybody else find node.js incredibly infuriating, since it is single-core. -- James Miller

Re: Operator Overloading with class template

2012-04-09 Thread James Miller
a template instantiation of opBinary(/) for the type. That means that you can add on more template arguments. 3. Using `auto` means that the compiler works out the type, so you don't have to add extra template arguments to calculate the correct type. Hope that helps. -- James Miller

Re: UFCS for D

2012-04-03 Thread James Miller
. Because it breaks the natural flow of conversation Why shouldn't you top-post? -- James Miller

Re: Nested functions should be exempt from sequential visibility rules

2012-04-03 Thread James Miller
be visible to the closures? -- James Miller

Re: making args global

2012-04-03 Thread James Miller
On 4 April 2012 10:32, jicman cabr...@wrc.xerox.com wrote: How can I make args global? thanks, In D, technically the only way is to use Runtime, as Andrej mentioned. As an aside, it is worth noting there is no global scope in D, module is as high as you go.

Re: Add Element to list not Working

2012-04-02 Thread James Miller
for arrays but apperantly not for lists. How do I add an element to a list? opAppend (or whatever it is) isn't defined for alot of types that it probably should be. There should be an append method that you can use though. -- James Miller

Re: Equivalents to policy classes in D

2012-04-02 Thread James Miller
you only want/need a minor change, I only use them for polymorphism in D. -- James Miller

Custom Allocators

2012-04-02 Thread James Miller
to write a completely GC-free application (using ref-counting instead for example)? Or would the GC still be used anyway? If I'm way off base on anything, feel free to say so, memory management and garbage collection aren't exactly my strong suits. Thanks -- James Miller

Re: traits getProtection

2012-04-01 Thread James Miller
for it are similar to yours, generating bindings from exported members, so you don't need to maintain separate lists or use a naming convention. -- James Miller

Re: Compiler development

2012-04-01 Thread James Miller
functions the same. That is why we have several thousand tests for the compiler that check various behaviours. -- James Miller

Re: Keeping imports clean

2012-04-01 Thread James Miller
, they are not required, and often people don't even bother with them, merely distributing the source. So in short, it isn't relevant at all, since there is no preprocessor to f**k things up. -- James Miller

Re: D for a Qt developer

2012-04-01 Thread James Miller
toolchains are what makes a language, but it's the requirement of an IDE that shows a language's flaws and faults. Ideally you should be able to write code in a simple text editor without much issue, and that is what you can do in D, because that is what I do in D. -- James Miller

Re: UFCS for types?

2012-04-01 Thread James Miller
, not Uniform Template-Instantiation Syntax (UTIS?). Because even ext(T)(); is just sugar for: template ext(T) { void ext(); } -- James Miller

Re: std.typecons.Ref(T).opImplicitCastTo()

2012-04-01 Thread James Miller
On 31 March 2012 06:28, Jonathan M Davis jmdavisp...@gmx.com wrote: it also has opDot, which is being removed from the language. Out of curiosity, what was opDot? -- James Miller

Re: Linux and D wallpaper :)

2012-03-28 Thread James Miller
. Although, while I like the Men are from Mars quote, I can see it being taken the wrong way... -- James Miller

Documentation Layout

2012-03-28 Thread James Miller
, or other large projects. The standard library is supposed to be a showcase of some of our best work, but right now the case is old and busted, we need to make it the new hotness. -- James Miller

Re: Documentation Layout

2012-03-28 Thread James Miller
function - next to insert - a manipulation function - next to isNumeric - a property testing function. Each of those functions are self-documenting but that doesn't mean they wouldn't benefit from categorization. -- James Miller

Re: Documentation Layout

2012-03-28 Thread James Miller
work long days. -- James Miller

Re: Get indexes of character in array

2012-03-28 Thread James Miller
On 28 March 2012 19:35, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: I'd like to get a list of indexes into an array that matches a character. E.g.: a foo a bar a.indexes(a) == [0, 6, 12] Anything like that in Phobos? std.regex might be able to produce something like it. -- James

Re: std.conv length=0

2012-03-28 Thread James Miller
like I did): I award thee the Necromancer badge, for reviving a long-dead thread. -- James Miller

Re: std.conv length=0

2012-03-28 Thread James Miller
On 29 March 2012 17:05, Jesse Phillips jessekphillip...@gmail.com wrote: On Thursday, 29 March 2012 at 03:40:55 UTC, James Miller wrote: I award thee the Necromancer badge, for reviving a long-dead thread. -- James Miller I find the distaste of reviving a thread strange. It would be like

std.containers - WAT

2012-03-27 Thread James Miller
the front elements from the container, not obvious. Is there any reason why things are the way they are? Because all I see are people getting exited about ranges and operator overloading and not really thinking about what a useful set of features any given container should have. -- James Miller

Re: std.containers - WAT

2012-03-27 Thread James Miller
the documentation, or provide me with better explanations. I have also attached the screenshot you asked for, sorry for the quality, I don't have the tools on my machine to deal with images properly right now. -- James Miller attachment: screengrab.jpg

Re: std.containers - WAT

2012-03-27 Thread James Miller
now you get a dense list at the top, in mostly-alphabetical order (I think it puts caps first, then lower case) and then you get a massive list of classes and functions that are difficult to navigate. -- James Miller

Re: How to remove element from an SList?

2012-03-27 Thread James Miller
is that in order to remove, say the 5th element from a SList, you need to do this: SList!int s = [1,2,3,4,5,6,7,8,9,0]; auto r = s[0..4]; auto r1 = take(1, r); s.linearRemove(r1) Not the most intuitive way in the world... -- James Miller

Re: Regex performance

2012-03-26 Thread James Miller
) -- James Miller

Re: D web apps: cgi.d now supports scgi

2012-03-25 Thread James Miller
. -- James Miller

Re: D web apps: cgi.d now supports scgi

2012-03-25 Thread James Miller
On 26 March 2012 09:28, Adam D. Ruppe destructiona...@gmail.com wrote: I don't really care; you can do whatever you want with it. I figured, but its nice to ask first :D. -- James Miller

Re: BitC, Rust, dog food and more

2012-03-25 Thread James Miller
arguments that apply well to bootstrapped compilers, like improving the language improves the compiler, which improves the language. It's also a complicated enough endeavour that it showcases D well. I don't think that we should replace DMD with it, but it would be a cool project. -- James Miller

Re: BitC, Rust, dog food and more

2012-03-25 Thread James Miller
++, I think Walter has explained why on occasion before, but it basically boils down to: its easier for other compiler developers to understand + integrate with C++ code when building the compiler back-end than if they had to interface with D code. -- James Miller

Re: How to use D for cross platform development?

2012-03-25 Thread James Miller
On 26 March 2012 09:44, Iain Buclaw ibuc...@ubuntu.com wrote: A spork of druntime, yes. A spork? I've never heard that before... -- James Miller

Re: Getting around the non-virtuality of templates

2012-03-25 Thread James Miller
on a combination of template arguments and class hierarchy. This is a hard problem with no obvious answer. in terms of trying to work around it, perhaps compile-time reflection could help, I haven't encountered this before, but that's where I would start. -- James Miller

Re: When do you use templates instead of CTFE?

2012-03-25 Thread James Miller
that operates on types, whereas CTFE works for stuff that can be normal functions. - Jonathan M Davis Often I end up using the same function in CTFE and runtime. -- James Miller

Re: Poll of the week - How long have you been in the D world?

2012-03-25 Thread James Miller
, but it is also 6-10 years, D hasn't been around much longer than that . -- James Miller

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread James Miller
hoping you mean `fm.list = [1, abc, 4L, 3.33];` I think that using the right template parameters, you can use the same code for (T...)(T el) and (T)(T[]), I just can't remember what that is... Another question : How do I bring in : opDispatch(string name, T) (T[] t) -- James Miller

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread James Miller
fits into that properly, but it shouldn't be too hard. Also, remember that opDispatch takes the name of the function as the last parameter, so watch out for that. -- James Miller

Re: avgtime - Small D util for your everyday benchmarking needs

2012-03-23 Thread James Miller
the name while you still can. avgtime is not that informative a name given that it now does more than just Average times. -- James Miller

Re: avgtime - Small D util for your everyday benchmarking needs

2012-03-23 Thread James Miller
is quite good. (I would have to embed a table for the t student tail factors, pull reqs velcome). If its possible to calculate it, then you can generate a table at compile-time using CTFE. Less error-prone, and controllable accuracy. -- James Miller

Re: Wrong lowering for a[b][c]++

2012-03-23 Thread James Miller
On 23 March 2012 19:15, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: I've no idea. It's probably a front-end bug and the cast forces the compiler to.. come to its senses? `cast()` is the compiler equivalent to a slap with a wet fish? -- James Miller

Re: Vector operations optimization.

2012-03-23 Thread James Miller
where available, so it should be fast. -- James Miller

Re: Windows Socket Timeout

2012-03-22 Thread James Miller
probably have a separate thread for your rendering code anyway. -- James Miller

Re: Mono-D@GSoC - Mentor needed

2012-03-20 Thread James Miller
and the like, so it would be nice to be able to use these features in, for example, vim. I don't know how feasible this is, but it's worth mentioning. -- James Miller

Re: Three Unlikely Successful Features of D

2012-03-20 Thread James Miller
. Also when dealing with complex parameterized types, so when I have a function that gives me the type foo!(bar!(int, 5), baz!string) I don't have to know that, I can just use `auto` instead. -- James Miller

Re: Proposal: user defined attributes

2012-03-20 Thread James Miller
, everything that those annotations cover can be done using CTFE and mixins, with the minor addition above. -- James Miller

Re: Mono-D@GSoC - Mentor needed

2012-03-20 Thread James Miller
On 21 March 2012 12:08, Adam D. Ruppe destructiona...@gmail.com wrote: On Tuesday, 20 March 2012 at 22:52:13 UTC, James Miller wrote: features in, for example, vim. I use this script called supertab.vim that maps tab to vim's control+p and control+n completition. I find it works really

Re: regex issue

2012-03-20 Thread James Miller
, no strange other usages of the same escape sequence... -- James Miller

Re: Interesting Memory Optimization

2012-03-19 Thread James Miller
. Not because I get off on talking about optimisation, but because it shows that there are still people care about squeezing every last instruction of performance, without compromising on productivity. Resources cost money, any saving of resources saves money. -- James Miller

Re: Interesting Memory Optimization

2012-03-19 Thread James Miller
to check that the files exist every time the file loads. They still have to read the file and parse it. It makes me feel ill thinking about it. Anyway, I should probably stop ranting about this. -- James Miller

Comparison issue

2012-03-19 Thread James Miller
that the type of `v1` is `float`, as you'd expect. And the last one passes fine, as does doing `(v1+1)-1 == 1`. I'm not sure what could be causing this. I believe it may be a bug, but I would like to see if I'm just wrong instead. -- James Miller

Re: Comparison issue

2012-03-19 Thread James Miller
On Mar 20, 2012 1:50 AM, bearophile bearophileh...@lycos.com wrote: James Miller: writeln(v1 == 1); //false writeln(v1 == 1.0); //false writeln(v1 == 1.0f); //false writeln(v1+1 == 2.0f); //true Maybe I'd like to deprecate and then statically forbid

StackOverflow Chat Room

2012-03-18 Thread James Miller
Hey guys, I made a StackOverflow chat room. You don't have to use it or anything, but at least it exists now. Its called Dlang, http://chat.stackoverflow.com/rooms/9025/dlang -- James Miller

Re: Implicit integer casting

2012-03-18 Thread James Miller
on things like range, though I know that it cannot be outside certain ranges. Not that to!type is actually slow in the general case, but the difference is significant when doing on the order of 10^6 casts. -- James Miller

Re: virtual-by-default rant

2012-03-18 Thread James Miller
decisions for me. For small programs, where it doesn't matter if it's half as fast as it could be, but that just means 2ms vs 1ms, I don't care. But in intensive programs, then I want to be sure that the compiler will do what I want. -- James Miller

Re: Implicit integer casting

2012-03-18 Thread James Miller
involved, and possibly inlining doesn't make it for whatever reason. Andrei Oh, I wasn't complaining, more just making an observation that the safe to!type is slower than an unsafe cast. Probably obvious, but worth mentioning nonetheless. -- James Miller

  1   2   3   >