instantiated?
--
James Miller
thats nice, but I can't afford to go to such things. I think the
cheapest conference I've seen here is Kiwicon, at like $50, but its a
hacker convention, not necessarily what I want to go to.
--
James Miller
wouldn't mind trying to find more D programmers
near where I live.
--
James Miller
Hey,
Whats the word on this issue:
http://d.puremagic.com/issues/show_bug.cgi?id=5689
Its kinda killing my ability to profile my code here, since the
program is no longer valid when compiled with -profile.
--
James Miller
On 16 March 2012 03:00, Daniel Murphy yebbl...@nospamgmail.com wrote:
James Miller ja...@aatch.net wrote in message
news:mailman.693.1331810915.4860.digitalmar...@puremagic.com...
Hey,
Whats the word on this issue:
http://d.puremagic.com/issues/show_bug.cgi?id=5689
Its kinda killing my
, since
this stuff interests me. How well does this stuff inline? I can
imagine that a lot of the benefit of using SIMD would be lost if every
SIMD instruction ends up wrapped in 3-4 more instructions, especially
if you need to do consecutive operations on the same data.
--
James Miller
experience with Lisp.
--
James Miller
the point.
e.g. if you change some type in your Haskell code, you have to fix
every use of that type before you can test anything. Surely you’ve
found that annoying?”, *cough*Type Inference*cough*.
Even D has type inference through auto.
--
James Miller
On 16 March 2012 11:14, F i L witte2...@gmail.com wrote:
Great to hear this is coming along. Can I get a link to the (github?)
source?
Do the simd functions have fallback functionally for unsupported hardware?
Is that planned? Or is that something I'd be writing into my own Vector
to me :) .. You
only need the compiler as a part of the games asset-pipeline, and can static
link when you release for extra FPS's!
Also, less files to download, I like a lot of indie games because they
are often a single binary, more things need to have the assets
compiled in...
--
James Miller
On 16 March 2012 11:44, Manu turkey...@gmail.com wrote:
On 15 March 2012 22:27, James Miller ja...@aatch.net wrote:
On 16 March 2012 08:02, Manu turkey...@gmail.com wrote:
On 15 March 2012 20:35, Robert Jacques sandf...@jhu.edu wrote:
This sounds reasonable. However, please realize
terrible code when I started making Flash games,
and now Actionscript is so foreign to me that i can barely understand
where to start.
--
James Miller
On 16 March 2012 14:36, Daniel Murphy yebbl...@nospamgmail.com wrote:
James Miller ja...@aatch.net wrote in message
news:mailman.707.1331841671.4860.digitalmar...@puremagic.com...
Out of curiosity, what does -profile do that could cause this bug?
Seems like an odd cause, since in my specific
it that
frequently, it is fairly easy to implement a nice syntax for it in D,
no language changes needed.
--
James Miller
the styling isn't amazing, maybe tone the size of the
buttons down.
Also, Github does not exactly give a useful message when you aren't
logged in (404), but that isn't your fault.
--
James Miller
files.
Also, git-svn isn't actually that bad...
--
James Miller
--
James Miller
to start? Obviously you want things like lots of
entries, but is it important to test big Keys, particular types of
keys, that sort of thing.
I'll also probably do separate speed and memory benchmarks.
--
James Miller
...
Same discussion, different topic. I think the one before was sparked
by size_t issues.
--
James Miller
On 13 March 2012 18:50, Chad J chadjoan@__spam.is.bad__gmail.com wrote:
On 03/13/2012 01:41 AM, James Miller wrote:
On 13 March 2012 18:24, Chad Jchadjoan@__spam.is.bad__gmail.com wrote:
I'm not sure I agree with resetting to a default color. What if I want
to
write to the stream without
On 14 March 2012 14:37, Daniel Murphy yebbl...@nospamgmail.com wrote:
Welcome to Hell. =D
Sounds fun.
(Seasoned DF player)
--
James Miller
and
suddenly a completely different part of your code breaks, because it's
expecting pure, or @safe code and you have done something to prevent
the inference. I don't know how much of a problem that could be, but
its one I can think of.
--
James Miller
but always have the
possibility to enforce it, e.g. at a much higher level.
My point was more about distant code breaking. Its more to do with
unexpected behavior than code correctness in this case. As i said, I
could be worrying about nothing though.
--
James Miller
if
people want to contribute.
Otherwise, you could start adding issues to Github that people can look at.
--
James Miller
...
--
James Miller
that.
--
James Miller
On 13 March 2012 15:48, Nick Sabalausky a@a.a wrote:
James Miller ja...@aatch.net wrote in message
news:mailman.576.1331604546.4860.digitalmar...@puremagic.com...
The phrase in web development is Progressive enhancement that used
to be all the rage at one point. I miss those days...
Heh
necessarily have to be in a
human-readable format, or even in a specific grammar format, just up
to date. We can always have something to convert it into a specific
format for whatever we are doing. We are programmers after all.
--
James Miller
, though mostly, you'd just change to using greek letters, right?
Finally we can use θ for angles, alias ulong ℕ...
That might actually make it /more/ readable in some cases.
--
James Miller
On 13 March 2012 16:47, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 3/12/12 10:36 PM, James Miller wrote:
I agree, automatic generation of the grammar rules would be incredibly
useful for D tools. It doesn't necessarily have to be in a
human-readable format, or even
On 13 March 2012 16:58, Chad J chadjoan@__spam.is.bad__gmail.com wrote:
On 03/12/2012 10:37 PM, James Miller wrote:
I think the problem with putting it into formatting is that it is
inherently not output. IOW formatting should go anywhere, but colored
output is terminal-only.
Also
are fast everywhere. I agree that slow animations
are annoying though, I only do it for things that are loading anyway,
so the slow animation doesn't actually slow down interaction. (I'm
talking 1-2 second-long credit card transaction situations).
--
James Miller
On 13 March 2012 17:31, Ary Manzana a...@esperanto.org.ar wrote:
Ideally, you don't have to detect for javascript, you just have to
*shock horror* code to web standards.
--
James Miller
But the non-javascript version is a worse user experience, and it's less
efficient. Why not make
probably use braces
('{' and '}') instead, since they are less common.
writefln('%Cred(\(this is in color\))');
vs
writefln('%Cred{(this is in color)}');
Neither are /that/ pretty, but at least the second one requires less
escaping in the common case.
--
James Miller
that he does, doesn't he know that he shouldn't do
that?!
There are quite a few people here writing code in D, professionally,
so I would take a moment before declaring that D is alpha at best
--
James Miller
at
once and spend the next 2 years re-arranging it in your brain, but
unfortunately people don't work like that...
--
James Miller
that you output the correct sequences when
terminals don't support color, i.e., nothing. Terminals are strange,
complicated beasts.
--
James Miller
, it's 0
}
I think parse should pop the first two characters if the string starts with
0x.
Side-note, it would be nice if std.string.isNumeric took a radix. :)
I agree, seems like a bug to me.
--
James Miller
analyse the AST
and do thing with it (like autocompletion). Clang has done some pretty
cool things in this respect, to the point that it can practically do
code completion itself.
--
James Miller
the opposite to Reagan, gone from England to NZ.
I tend to get frustrated when I can't even correct pronunciation
because nobody can hear the difference!
--
James Miller
On 9 March 2012 12:45, Nick Sabalausky a@a.a wrote:
Nick Sabalausky a@a.a wrote in message
news:jjavf2$1v3p$1...@digitalmars.com...
James Miller ja...@aatch.net wrote in message
news:mailman.235.1331210469.4860.digitalmar...@puremagic.com...
On 9 March 2012 01:23, Stewart Gordon smjg_1
On Thursday, March 08, 2012 10:21:48 Matthias Walter wrote:
but the following did not work:
std.algorithm.swap(arrayInstance[i], arrayInstance[j]);
What error did you get exactly? Since that exact call should work. It
didn't work doesn't help.
--
James Miller
. I'd say that it would probably work, but you can't necessarily
rely on that, you may have to live with a bit of code duplication.
For 2. It seems that it should be fine, I can't check it right now,
but I would be surprised if it didn't compile and run.
--
James Miller
On 8 March 2012 23:16, Matthias Walter xa...@xammy.homelinux.net wrote:
On 03/08/2012 10:48 AM, James Miller wrote:
On Thursday, March 08, 2012 10:21:48 Matthias Walter wrote:
but the following did not work:
std.algorithm.swap(arrayInstance[i], arrayInstance[j]);
What error did you get
him about 2 weeks.
--
James Miller
better and more intuitive.
Because you don't describe things as -5 metres tall, so you don't
describe things as -1024 bytes long. size_t makes sense unsigned
because negatives make no sense for size.
However, if you cast array.length to an int, it may work, haven't tested it.
--
James Miller
language to D.
--
James Miller
, probably because you
are normally checking mutually exclusive version descriptions.
Otherwise, its probably a good idea to keep the syntax as is, since it
stops people from abusing the mechanic.
--
James Miller
On 7 March 2012 16:51, Adam D. Ruppe destructiona...@gmail.com wrote:
On Wednesday, 7 March 2012 at 03:46:45 UTC, James Miller wrote:
However, I would like jQuery's CSS selector engine as a standalone
library, sooo much easier than complex DOM lookups
CSS selector is built into all
and the segfault is caused by space bees?! is not something we should
be thinking about. If a process fails, then it fails, you try to
figure out what happened (you do have logging on this mysterious
program right? then fix it.
Its not easy, but if it was easy, we'd be out of jobs.
/rant
--
James
outputting them as 12 us
anyway...
--
James Miller
the correct name for it. I can't be
bothered to check.
--
James Miller
On 7 March 2012 15:35, Peter Alexander peter.alexander...@gmail.com wrote:
On Tuesday, 6 March 2012 at 23:57:07 UTC, James Miller wrote:
On 7 March 2012 10:58, Kapps opantm2+s...@gmail.com wrote:
On Tuesday, 6 March 2012 at 20:28:40 UTC, H. S. Teoh wrote:
It'd be really cool if I could do
.
In my opinion, critical and error should /not/ throw by default,
however they should be able to get an optional Exception to throw, if
that is appropriate behavior.
--
James Miller
On 7 March 2012 17:03, bearophile bearophileh...@lycos.com wrote:
James Miller:
What? I'm assuming you mean that you expect an array of `bool`s?
Right. Vector operations like a[]b[] are meant to return an array of bools.
To see how this is useful you probably must think in terms of vector
Do these already exist?
sys/types is part of the C runtime if I remember correctly, and
netinet/in.h is part of the Unix networking interface.
You shouldn't have to do anything with them, just write bindings for
the api, with all the correct types.
--
James Miller
On 7 March 2012 14:47, Tyler Jameson Little beatgam...@gmail.com wrote:
You shouldn't have to do anything with them, just write bindings for
the api, with all the correct types.
--
James Miller
Thanks! I guess I got a little over-zealous in porting stuff over. I just
need to create
Steve, your original article was brilliant, clearly
explained how D arrays and slices work without out segueing into other
topics, which tends to happen with these kinds of articles.
--
James Miller
On 5 March 2012 15:57, Walter Bright newshou...@digitalmars.com wrote:
On 3/4/2012 6:01 PM, Brad Roberts wrote:
Downtime complete. Sorry for the interruption.
No problem.
There was downtime? Didn't even notice :D.
to be using a better email client...
--
James Miller
that. However i agree
that it is not helpful.
--
James Miller
a division by zero, then
running it causes a floating point error.
So other than the fact that you are using `uint`s rather than `int`s
the behaviour is identical to that of C.
--
James Miller
and Dom
manipulation, everything is just extras.
--
James Miller
).
Awesome!
Frickin' Sweet! Nice to see D get some high-level love.
--
James Miller
On 3 March 2012 23:13, bearophile bearophileh...@lycos.com wrote:
Walter:
Adding in software checks for null pointers will dramatically slow things
down.
Define this use of dramatically in a more quantitative and objective way,
please. Is Java dramatically slower than C++/D here?
Bye,
On 2 March 2012 18:52, Alex Rønne Petersen xtzgzo...@gmail.com wrote:
Hi,
Are there any actively-maintained Cocoa bindings for D?
--
- Alex
Not as far as I know.
You should make some!
--
James Miller
On 29 February 2012 21:24, Walter Bright newshou...@digitalmars.com wrote:
On 2/28/2012 11:01 PM, H. S. Teoh wrote:
But now I've found the
cause of the inconsistent hash problem.
Good catch, I'll fix it.
Wow, serious bug caused by 14 characters, insane.
. Obviously you need to do a reasonable job, but it is only
writing function prototypes, so there's not much that can go wrong.
--
James Miller
should have used an Appender from the
start. Now you have to go change all that code. Its your own fault
really
--
James Miller
than using a condition.
Bitfields are for tightly packed data, and therefore expecting all
language features to be available is missing the point. Hell bitfields
are provided by templates, so they aren't even a part of the language,
they are just a library feature.
Hope that helps
--
James Miller
language definitions would be benefited by CTFE
parser-generation since the load times to create the generator can be
quite long, a problem for programs that may not be long-running (a
lint tool for example).
--
James Miller
, useful for gui programs and the like.
I have tried your code, using a *nix shell, and using 3\ works.
If you are on Windows, then I don't know why this is happening.
--
James Miller
everything was
compiled as x32.
I don't know much, but wouldn't bigger register sizes mean that less
data needs shuffled in and out of memory? Resulting in less
instructions and therefore less memory usage?
I'm just guessing though
--
James Miller
On 29 February 2012 20:21, Jos van Uden user@domain.invalid wrote:
On 29-2-2012 7:06, James Miller wrote:
On 29 February 2012 18:51, jiccabr...@wrc.xerox.com wrote:
Greetings!
I have this program,
import std.process : system;
import std.stdio;
int main(char[][] args)
{
char[] cmd
, there might be, but not an obvious one. Its because
templates can hold multiple types of declarations, not just functions
or classes. The eponymous template pattern you see normally is not
mandatory.
--
James Miller
ring
0 in D, D compiles to native machine code, and can do anything C/C++
can do.
I don't know if thats what you mean, but I do know that somebody
started to write a microkernel in D (the project is now dead) so
there's that.
--
James Miller
for some small reason.
At least in this case its the simple matter of adding `ref` to the
loop.
--
James Miller
On 27 February 2012 15:18, Kevin kevincox...@gmail.com wrote:
I was playing arround with compiling and found that my unittest were getting
compiled into the file that has main() rather than the file they were
defined in. Is this the intended result and, if so why?
Example:
unittest are in
On 26 February 2012 21:28, Jabba Laci jabba.l...@gmail.com wrote:
Hi,
I'm new to D. I tried the basic Hello World program (dmd hello.d)
but it produced a 316 KB big binary. The same thing with C (gcc
hello.c) is about 9 KB. Is there a way to reduce the size of the
produced binary?
Thanks,
, then add specific functionality to the individual classes.
It also allows for more reflection, which is easier and probably more
powerful than conditional compilation.
--
James Miller
.
* Programming using `cat` is not recommended.**
** Even though /real/ programmers use `cat`
--
James Miller
I disagree. Simply put:
+-+ +-+
| Magic | | comfort |
| happens | | zone |
| here! | +-+
+-+
Magic cannot happen here
come close to D in terms of generics? I don't know, I'm just
asking?
Zach
Lisp macros. But that's not a fair comparison, Lisp's object system was
built using their macros...
--
James Miller
On Feb 25, 2012 12:16 PM, Caligo iteronve...@gmail.com wrote:
That was a typo, and it doesn't change anything. Here is a shorter
version:
88
import std.datetime;
import std.stdio;
struct A{
auto fun(A a){ return 0; }
}
void bench(alias
On 23 February 2012 04:26, Stewart Gordon smjg_1...@yahoo.com wrote:
On 21/02/2012 00:53, James Miller wrote:
snip
There are a potentially infinite number of possible configurations,
and sites need to be aimed at the lowest-common denominator. Doesn't
look right with an enlarged font size
I just realised that I'll be 21 by then too, I wont have to be annoyed by
not being able to drink.
James Miller -- On The Go
for winxp
thank's
dolive
Hey, are you sure that the Makefile is using WXDIR? Try adding it to
you PATH (or whatever the windows equivalent is) You should probably
add it anyway, since `sh`will be trying to find wx-config in your
path.
--
James Miller
On 23 February 2012 19:28, F i L witte2...@gmail.com wrote:
H. S. Teoh wrote:
So for example, here's a function that computes the average of an array:
}efas erup tsnoc a f~a+z!~ni z@# b! $
a c)0=
hcaerof~d=b! $c^)d=%
nruter c(b{htgnel=
On 23 February 2012 19:41, H. S. Teoh hst...@quickfur.ath.cx wrote:
On Thu, Feb 23, 2012 at 06:02:30PM +1300, James Miller wrote:
[...]
And I've been playing with trying to write my own terminal emulator. I
actually kinda have one working, in C. I just need to wrap all the C
code in functions
.
--
James Miller
On 24 February 2012 12:03, H. S. Teoh hst...@quickfur.ath.cx wrote:
On Thu, Feb 23, 2012 at 10:34:24PM +0100, Adam D. Ruppe wrote:
On Thursday, 23 February 2012 at 21:17:35 UTC, H. S. Teoh wrote:
Taking the idea of an in-terminal video player further, what about
a general escape sequence for
everybody mostly happy, and that is by aiming at
the people using `cat`* to program and hitting the people using VS
along the way.
* Programming using `cat` is not recommended.**
** Even though /real/ programmers use `cat`
--
James Miller
the language in more depth :)
We don't mind. :-)
T
--
Truth, Sir, is a cow which will give [skeptics] no more milk, and so
they are gone to milk the bull. -- Sam. Johnson
Just don't start asking too stupid questions (like how does 1+1 work?) :P.
--
James Miller
On 23 February 2012 23:35, simendsjo simend...@gmail.com wrote:
Say i have a c function (didn't include first format argument for
simplicity)
void print(...);
I wrap it up:
extern(System) void print(...);
And then I try to wrap it up in some safer D way:
void print(Args...)(Args args)
{
I find that when learning a complicated system or library, the best
way is to write out the code examples, compile them, then change
things until they break, fix it, then make more changes. Eventually
you end up with the worst code ever known to man and a thorough
understanding of the system at
or 2, but I know that there is a GC
class with a bunch of methods on it for controlling the GC, including
enabling and disabling it and getting GC-allocated memory. Whether
that helps you write GC predictable code - I don't know, garbage
collection is mostly a black art to me :-)
--
James Miller
system DLLs (for example,
kernel32.dll). Note that this switch is not available via the ID
I hope that helps, I don't actually do any windows programming so I
can't test this at all
--
James Miller
On 24 February 2012 12:06, H. S. Teoh hst...@quickfur.ath.cx wrote:
On Fri, Feb 24, 2012 at 04:06:52AM +1300, James Miller wrote:
On 23 February 2012 13:15, BLM blm...@gmail.com wrote:
After messing around for a while, I figured out what is making DMD choke
on my
file. The methods were
throwing masses of
garbage at you, it renders the picture, I might have to write my own
cat to do so however...
--
James Miller
On 21 February 2012 23:29, Kagamin s...@here.lot wrote:
On Tuesday, 21 February 2012 at 00:53:51 UTC, James Miller wrote:
There are a potentially infinite number of possible configurations,
and sites need to be aimed at the lowest-common denominator. Doesn't
look right with an enlarged font
in
replacement for vim, so here we are.
--
James Miller
101 - 200 of 247 matches
Mail list logo