Andrei Alexandrescu schrieb:
> Zz wrote:
>> Hi,
>>
>> Are there any plans for a logging library in Std Phobos 2.0?
>>
>> Zz
>
> I wanted to add logging support for a while now but am undecided about
> the API to use. Log4J is quite popular but quite complicated. There are
> a number of simpler API
"Leandro Lucarella" kirjoitti viestissä
news:20090411030416.ga22...@homero.springfield.home...
BTW, is there any real interest in adding some more power to the GC
implementator to allow some kind of moving or generational collector?
What I mostly want/need from the GC would be determinism. I w
dsimcha wrote:
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article
Leandro Lucarella wrote:
Christopher Wright, el 10 de abril a las 16:18 me escribiste:
BLS wrote:
Zz wrote:
Hi,
Are there any plans for a logging library in Std Phobos 2.0?
Zz
Why ask. Phobos is a o
So, for the following code, I get something I think is a little off. I get the
same value for all three variable types. I'm kind of new to this, but I would
think that a 32 bit would give me a different "smallest value" than a 64 bit or
80 bit (if real even evaluates to 80 bit on my machine).
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article
> Leandro Lucarella wrote:
> > Christopher Wright, el 10 de abril a las 16:18 me escribiste:
> >> BLS wrote:
> >>> Zz wrote:
> Hi,
>
> Are there any plans for a logging library in Std Phobos 2.0?
>
> >>>
== Quote from Leandro Lucarella (llu...@gmail.com)'s article
> Andrei Alexandrescu, el 10 de abril a las 16:49 me escribiste:
> > >And Braddr just made a documentation fix, and Walter only commits
> > >portability stuff and an occasional bug fix now and then, so...
> > >Yes, it really looks like a
On Fri, 10 Apr 2009 23:04:16 -0400, Leandro Lucarella
wrote:
I hope I can come up with something useful with my thesis (improving D's
GC) and I can contribute that. Right now all my energies are focused on
that, and I'm very close to the point to finally start playing with
alternate implementat
Michel Fortin wrote:
On 2009-04-10 17:25:30 -0400, Andrei Alexandrescu
said:
Curiously, I didn't find a need for them in std.algorithm so far. I
only defined sameHead, and that's only to help a little improvement in
the bringToFront algorithm.
I've written a few parsers where I repeat this
Leandro Lucarella wrote:
BTW, is there any real interest in adding some more power to the GC
implementator to allow some kind of moving or generational collector?
That would be awesome!
Here are some good starting points on how to allow better GC support in D:
http://d.puremagic.com/issues/sh
Andrei Alexandrescu, el 10 de abril a las 16:49 me escribiste:
> >And Braddr just made a documentation fix, and Walter only commits
> >portability stuff and an occasional bug fix now and then, so...
> >Yes, it really looks like a five-person show =)
> >I think most work in Phobos now it's done by A
On 2009-04-10 17:25:30 -0400, Andrei Alexandrescu
said:
Curiously, I didn't find a need for them in std.algorithm so far. I
only defined sameHead, and that's only to help a little improvement in
the bringToFront algorithm.
I've written a few parsers where I repeat this pattern a lot:
bearophile wrote:
Andrei Alexandrescu:
Then please vote up my comment which shows a solution that is simple
*and* efficient :o).
Does it work with (the keys of) an AA too? For example:
int[double] aa = [3.0:0, 4:0, 7:0, 11:0, 3:0, 2:0, 5:0];
auto r = reduce!(min, max)(aa);
No, AAs are poorly
bearophile wrote:
Andrei Alexandrescu:
Then please vote up my comment which shows a solution that is simple
*and* efficient :o).
I am not registered there, so I can't vote, I guess.
Generally I don't like reduce() HOF, because it generally leads to less
readable code (and often people use it
Jason House wrote:
It looks useful, especially when using rdmd. Why does rdmd require that the
file end in .d? That seems limiting, especially when I want to make an
executable file that looks like other executables in linux... aka no
extension at all.
Andrei Alexandrescu wrote:
I wrote
Andrei Alexandrescu:
> Then please vote up my comment which shows a solution that is simple
> *and* efficient :o).
Does it work with (the keys of) an AA too? For example:
int[double] aa = [3.0:0, 4:0, 7:0, 11:0, 3:0, 2:0, 5:0];
auto r = reduce!(min, max)(aa);
Bye,
bearophile
Andrei Alexandrescu:
> Then please vote up my comment which shows a solution that is simple
> *and* efficient :o).
I am not registered there, so I can't vote, I guess.
Generally I don't like reduce() HOF, because it generally leads to less
readable code (and often people use it only to compute
It looks useful, especially when using rdmd. Why does rdmd require that the
file end in .d? That seems limiting, especially when I want to make an
executable file that looks like other executables in linux... aka no
extension at all.
Andrei Alexandrescu wrote:
> I wrote a simple utility (at
Leandro Lucarella wrote:
Christopher Wright, el 10 de abril a las 16:18 me escribiste:
BLS wrote:
Zz wrote:
Hi,
Are there any plans for a logging library in Std Phobos 2.0?
Zz
Why ask. Phobos is a one man show. In other word, Phobos is an ego-lib.
In case that you want something special, as
bearophile wrote:
For even bigger data you may use muds:
"On the Complexity of Processing Massive, Unordered, Distributed Data", by Jon
Feldman, S. Muthukrishnan, Anastasios Sidiropoulos, Cliff Stein, Zoya Svitkina:
http://arxiv.org/abs/cs.CC/0611108
I've developed a skepticism towards arxiv.o
Christopher Wright, el 10 de abril a las 16:18 me escribiste:
> BLS wrote:
> >Zz wrote:
> >>Hi,
> >>
> >>Are there any plans for a logging library in Std Phobos 2.0?
> >>
> >>Zz
> >Why ask. Phobos is a one man show. In other word, Phobos is an ego-lib.
> >In case that you want something special, as
bearophile wrote:
Walter Bright:
This C++0x article is relevant for comparison:
http://www.reddit.com/r/programming/comments/8bijk/gcc_c0x_features_exploration/
"Advanced" features have to be used only if they improve the code. I don't like
that little article and the following discussion.
For even bigger data you may use muds:
"On the Complexity of Processing Massive, Unordered, Distributed Data", by Jon
Feldman, S. Muthukrishnan, Anastasios Sidiropoulos, Cliff Stein, Zoya Svitkina:
http://arxiv.org/abs/cs.CC/0611108
Bye,
bearophile
Fawzi Mohamed wrote:
On 2009-04-03 19:24:25 +0200, Christopher Wright said:
Georg Wrede wrote:
Fawzi Mohamed wrote:
Well inlined functions will have no frame, also last call
optimization (tail optimization) removes the frame.
If I were to write a compiler, then using "-g -debug", etc. woul
Walter Bright:
> This C++0x article is relevant for comparison:
> http://www.reddit.com/r/programming/comments/8bijk/gcc_c0x_features_exploration/
"Advanced" features have to be used only if they improve the code. I don't like
that little article and the following discussion.
The following D1 co
This C++0x article is relevant for comparison:
http://www.reddit.com/r/programming/comments/8bijk/gcc_c0x_features_exploration/
0.633 Look In Here Now ... 0.3814552
0.8967502 Now Visit Tobacco Is Drugs 0.8901139
Sergey Gromov wrote:
Thu, 09 Apr 2009 13:40:36 -0700, Andrei Alexandrescu wrote:
The line wraps are all garbled, but you get the idea: all symbols quoted
`like this' have been demangled appropriately. Below is the source of
the demangle script:
#!/home/andrei/bin/rdmd
import std.algorithm, s
Thu, 09 Apr 2009 13:40:36 -0700, Andrei Alexandrescu wrote:
> The line wraps are all garbled, but you get the idea: all symbols quoted
> `like this' have been demangled appropriately. Below is the source of
> the demangle script:
>
> #!/home/andrei/bin/rdmd
> import std.algorithm, std.demangle,
That said, on re-reading your original post, I can guess what you're
doing wrong: trying to work around the missing extern (C) attributes in
ras.d instead of fixing them. And consequently, merely renaming the
functions and not actually fixing the calling convention. I got it to
link by fi
BLS wrote:
Zz wrote:
Hi,
Are there any plans for a logging library in Std Phobos 2.0?
Zz
Why ask. Phobos is a one man show. In other word, Phobos is an ego-lib.
In case that you want something special, ask the tango folks. ( beside,
logging is avail. there for quite a while)
Björn
It's a
Don wrote:
Philip Miess wrote:
Walter Bright wrote:
Don wrote:
That's true, but if you're in a floatingpoint module, and you call a
non-floatingpoint module, it's your responsibility to make sure that
the rounding mode is back to normal. You're saying that you don't
care about the status fla
== Quote from BLS (windev...@hotmail.de)'s article
> Zz wrote:
> > Hi,
> >
> > Are there any plans for a logging library in Std Phobos 2.0?
> >
> Why ask. Phobos is a one man show.
Phobos has never been a one-man show. Either way, you're
guaranteed not to get what you want if you don't even bothe
On Fri, 10 Apr 2009 12:20:46 -0400, Andrei Alexandrescu
wrote:
Zz wrote:
Hi,
Are there any plans for a logging library in Std Phobos 2.0?
Zz
I wanted to add logging support for a while now but am undecided about
the API to use. Log4J is quite popular but quite complicated. There are
Denis Koroskin wrote:
On Sat, 04 Apr 2009 15:19:46 +0400, Philip Miess
wrote:
of course my example makes no sense
try
pure float square(float x, invariant roundingMode round = default)
{
return x*x;
}
in case that helps
Phil
I don't see roundingMode used anywhere in your example.
Andrei Alexandrescu, el 10 de abril a las 09:20 me escribiste:
> Zz wrote:
> >Hi,
> >Are there any plans for a logging library in Std Phobos 2.0?
> >Zz
>
> I wanted to add logging support for a while now but am undecided about the
> API
> to use. Log4J is quite popular but quite complicated. The
Leonid Krashenko wrote:
What value are you actually getting for RASENTRYNAME.sizeof?
And does buf.sizeof give the same value as
buf.length*RASENTRYNAME.sizeof, as it should?
Yes, it does;
RASENTRYNAME size = 532
WINVER = 0x501 (-version=WindowsXP)
Which agrees with my calculation.
Delph
Vincent Richomme wrote:
Hi,
I am really sorry but I was following the newsgroups for a long time
then I stopped 4 months ago and now there a too many news to read.
So could someone tell me :
1) Have you merged the two libs tango and phobos, I mean does it use a
common base ?
Phobos for D2
== Quote from davidl (dav...@126.com)'s article
> Actually I'm not sure about what kind of bugs my d apps usually have. But
> I notice that the harmonia project(I now make it uptodate) gets the
> problem of integer overlapping(actually I find it quite hard to detect and
> fix).
> What's your opinio
Hi,
I am really sorry but I was following the newsgroups for a long time
then I stopped 4 months ago and now there a too many news to read.
So could someone tell me :
1) Have you merged the two libs tango and phobos, I mean does it use a
common base ?
2) What is the status of D compilers, d
"Weed" wrote in message
news:grlsqk$245...@digitalmars.com...
> davidl ÐÉÛÅÔ:
>>
>> Actually I'm not sure about what kind of bugs my d apps usually have.
>> But I notice that the harmonia project(I now make it uptodate) gets the
>> problem of integer overlapping(actually I find it quite hard to d
Andrei Alexandrescu wrote:
ulong t = (dt - ticksFrom1601To1970) * (10_000_000 /
TicksPerSecond);
That must be addition, otherwise I go back in time to 1200 or so. Now
everything works, thanks to all who answered. The upside of all this is
that now setFileTimes works on both Windows an
On Fri, Apr 10, 2009 at 09:20:46AM -0700, Andrei Alexandrescu wrote:
> If anyone has ideas and/or code to contribute, that would be great.
I never understood why they should be complicated. Couldn't you just do
something like (pseudocodeish):
==
enum LogLevel { Verbose, Warning, Error }
FIL
BLS wrote:
Zz wrote:
Hi,
Are there any plans for a logging library in Std Phobos 2.0?
Zz
Why ask. Phobos is a one man show. In other word, Phobos is an ego-lib.
That's a rather random thing to say, particularly in wake of the recent
concerted efforts to improve Phobos and to port it to new
Zz wrote:
Hi,
Are there any plans for a logging library in Std Phobos 2.0?
Zz
I wanted to add logging support for a while now but am undecided about
the API to use. Log4J is quite popular but quite complicated. There are
a number of simpler APIs out there but I couldn't figure out which is
Steven Schveighoffer wrote:
On Fri, 10 Apr 2009 10:07:20 -0400, Andrei Alexandrescu
wrote:
Hello,
I want to port the function setFileTimes available in Phobos/Posix to
Windows. Does anyone know of a simple way to convert a d_time value to
a FILETIME value? d_time is Ticks since 1-1-1970 an
Zz wrote:
Hi,
Are there any plans for a logging library in Std Phobos 2.0?
Zz
Why ask. Phobos is a one man show. In other word, Phobos is an ego-lib.
In case that you want something special, ask the tango folks. ( beside,
logging is avail. there for quite a while)
Björn
Hi,
Are there any plans for a logging library in Std Phobos 2.0?
Zz
On Fri, 10 Apr 2009 10:07:20 -0400, Andrei Alexandrescu
wrote:
Hello,
I want to port the function setFileTimes available in Phobos/Posix to
Windows. Does anyone know of a simple way to convert a d_time value to a
FILETIME value? d_time is Ticks since 1-1-1970 and FILETIME contains
quan
On Fri, 10 Apr 2009 18:07:20 +0400, Andrei Alexandrescu
wrote:
> Hello,
>
> I want to port the function setFileTimes available in Phobos/Posix to
> Windows. Does anyone know of a simple way to convert a d_time value to a
> FILETIME value? d_time is Ticks since 1-1-1970 and FILETIME contains
Hello,
I want to port the function setFileTimes available in Phobos/Posix to
Windows. Does anyone know of a simple way to convert a d_time value to a
FILETIME value? d_time is Ticks since 1-1-1970 and FILETIME contains
quanta of 100-nanoseconds since 1-1-1601. So there's only some shifting
an
Denis Koroskin wrote:
BTW, that's a breaking change! XD
Ssh!
Leonid Krashenko Wrote:
> 2. used "implib rasapi32.lib rasapi32.def" with written by hand
> rasapi32.def with following content (linkdef (don't know why) can't find
> any of that symbols):
you should use coffimplib
R:
>While D still seems to be better off than C++ I guess something like this is
>unavoidable with metaprogramming?<
Lot of people have discussed about this topic, and some of them have even found
some partial solutions, for example:
http://www.ddj.com/cpp/184401416?pgno=1
Of course Andrei was a
Hurm. I thought one of the things D had over C++ was that with aliases such
complex error messages can be avoided. While D still seems to be better off
than C++ I guess something like this is unavoidable with metaprogramming?
Andrei Alexandrescu Wrote:
> I wrote a simple utility (at the bottom
On Fri, 10 Apr 2009 03:44:06 +0400, Rainer Deyke wrote:
bearophile wrote:
You are right, there's a problem here, even once you have added an
".idup" to AAs. A hash value isn't data, it's metadata, so you may
have a lazily computed mutable metadata of immutable data. Once
computed the hash valu
On Fri, 10 Apr 2009 11:00:01 +0400, Nick Sabalausky wrote:
"Denis Koroskin" <2kor...@gmail.com> wrote in message
news:op.ur2f3rglo7c...@korden-pc...
On Wed, 08 Apr 2009 15:04:29 +0400, Frits van Bommel
wrote:
Andrei Alexandrescu wrote:
Denis Koroskin wrote:
Well, actually I think that hav
"Denis Koroskin" <2kor...@gmail.com> wrote in message
news:op.ur2f3rglo7c...@korden-pc...
> On Wed, 08 Apr 2009 15:04:29 +0400, Frits van Bommel
> wrote:
>
>> Andrei Alexandrescu wrote:
>>> Denis Koroskin wrote:
Well, actually I think that having an Appender object is an overkill.
I n
57 matches
Mail list logo