Hello klickverbot,
In a nutshell, SWIG is a »glue code« generator, allowing you to access
C/C++ libraries from various target languages, including C#, Go, Java,
Ruby, Python . and, since I merged my work into SWIG trunk a few days
ago, also D, both version 1 and 2.
I'm so tempted to go learn
Hello Nick,
Pavel Vozenilek pavel_vozeni...@yahoo.co.uk wrote in message
news:ibjrca$158...@digitalmars.com...
And one little thing: the Czech Republic is part of the Central
Europe.
Saying it belongs to the Eastern Europe is a reliable way to upset
the Czechs, for rather complex historical
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff1d6668cd315bbe9b6...@news.digitalmars.com...
are you in china?
Unless
the browser is stupid enough to actually try to load external scripts
when JS is off...
1) You are assuming some third party isn't an idiot. I wouldn't usually
Hello Nick,
http://www.digitalmars.com
http://www.digitalmars.com/dmlogo.gif
http://www.digitalmars.com/download.png
http://www.digitalmars.com/library.png
http://www.digitalmars.com/news.png
http://www.digitalmars.com/buy.png
where is favicon.ico?
So at least in FF2 with JS disabled via
Hello Nick,
Lionello Lunesu l...@lunesu.remove.com wrote in message
news:i8bf68$s5...@digitalmars.com...
Twitter is blocked in China, so when I open your
website nothing is shown until the connection to twitter times out.
Works fine with JS off.
are you in china?
--
... IXOYE
Hello Walter,
This is primarily a bug fix release.
And that it is! Great job!
--
... IXOYE
Hello Trass3r,
I've created some bindings to access Matlab's external interface from
D, i.e. manipulating .mat files, accessing the current workspace and
creating .mex files.
Thought I'd share it:
http://bitbucket.org/trass3r/matd/wiki/Home
If you are looking for a place to host that I can
Hello Ali,
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s
article
I've been kindly invited by the ACCU Silicon Valley Chapter to give a
talk on D at their next meeting. The talk starts at 7:00pm on
Wednesday,
August 11 and takes place in Mountain View. Attendance is free
Hello BCS,
I'd be up for a get together after work on the 13th (provided I can
get to it).
Scratch that, I've got a conflict.
--
... IXOYE
Hello Mike,
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message
news:i353ak$1n...@digitalmars.com...
I'll give away a
few free copies of TDPL as prizes to the persons who ask the most
embarrassing questions.
Is that to the embarrassment of the questioner or the questionee ;-)
I've seeded the D tag's page from the D front page. If anyone wants to improve
it but doesn't have access, send me the text.
http://stackoverflow.com/questions/tagged?sort=infotagnames=d
--
... IXOYE
Hello Walter,
Yes, I receive a lot of information via the back channel that I
can't discuss more than that.
Can you give a ball park on how many?
--
... IXOYE
Hello Andrei,
Benjamin Shropshire from Google was kind enough to extend me an
invitation on behalf of his employer to give a talk on D on Friday,
July 30, 11:00 am in or around Building 43. I'm not sure whether the
talk will be taped but they asked me to sign a video release form so
there is a
Hello Walter,
David Gileadi was kind enough to spend some time redesigning the look
of the D web site. A preview of it is up on
d-programming-language.org. This isn't about the content, just the
look/style/feel.
Comments welcome.
I like it visually but I found it to hard to find the
Hello Adam,
On Internet Explorer, the size looks OK, but the menu text has poor
contrast. The mouse hover color looks better than the regular color.
Ditto, chrome.
--
... IXOYE
Hello bioinfornatics,
because not all is in open License, i read this:
http://www.prowiki.org/wiki4d/wiki.cgi?PhobosLicenseIssues
Looking at it I don't recognize what license most of it is under but IIRC
it's supposed to all be all under the boost license. I do know that Walter
has been
Hello Matthias,
Sadly they haven't applied my patches for D (uploaded on 12.April)
and many new users are overstrained with applying patchtes and compile
it per hand, ...
:(
When was the last time you buged them about it?
--
... IXOYE
Hello Lionello,
(It crashed when I started typing pragma (comment,...);
and I'm not sure that syntax is even correct.
The syntax is correct, but I didn't think comment is a supported pragma.
--
... IXOYE
Hello superdan,
dun tell me it dun work. i dun explain shit again. it works coz a
struct cant be null. but a struct can be a ref if it only haz one
pointer inside. methinks the builtin hash iz dat way.
void foo(container!shit poo)
{
if(!poo) poo = new container!shit; // fuck dat shit
Hello Vladimir,
On Thu, 20 May 2010 04:42:35 +0300, Steven Schveighoffer
schvei...@yahoo.com wrote:
interfaces
Does that imply that the most important methods are virtual?
If so, say good-bye to inlining, and hello to an additional level of
dereferencing.
From a technical standpoint
Hello Charles,
On 05/15/2010 06:13 PM, BCS wrote:
The same holds for every file in /usr/bin, I wonder what that says
about all the other people who put stuff there. Similar thought hold
for the other bits and places.
/usr/bin is for system installed executables. It's bad practice to
put
Hello linux,
The site looks like it was created using some generic boring
documentation tool with a basic minimalistic style template. It might
attract some developers who think that javadoc or doxygen looks a bit
too artistic for their taste and their largest goal in life is to win
the
Hello Adam,
On 5/15/10, Bernard Helyer b.hel...@gmail.com wrote:
Set executable bit, modify PATH
Meh, you don't have to do that. On my box, I have a wrapper script in
/usr/bin
so the dmd command works from anywhere, but you can just as well run
it right out of wherever you download it too.
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff13bd08ccc27164400...@news.digitalmars.com...
The same holds for every file in /usr/bin, I wonder what that says
about all the other people who put stuff there. Similar thought hold
for the other bits and places.
Maybe it's my
Hello Steven,
Several others have privately brought up this problem to Walter. He
does not want to change how the symbol lookup tables work, and there
is no way to iterate them.
Is it fundamentally impossible to iterate or is the code just not there and/or
nasty to write?
--
... IXOYE
Hello Walter,
Walter Bright wrote:
Alex Makhotin wrote:
It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3
kernel 2.6.32.4), to get the actual error messages about the
undefined identifier.
Definitely there's a problem.
The problem is the spell checker is O(n*n) on the
Hello Steven,
I have a feeling that bestwebbuys counts a purchase when you click
on the referring BUY link to e.g. amazon, even if you don't buy the
book at that site.
In that case it's counting interest in books, not sales. That's a different
but also interesting metric.
--
... IXOYE
Hello Walter,
bearophile wrote:
Walter Bright:
Thank you for your answer.
The error is not a mismatched file name, which is perfectly
legitimate in D.
Do you mean that in D it is OK to have a file named foo.d with
inside it at the top written module bar; ?
Yes.
What's the rationale
Hello Robert,
No need for a huge module, or module names mismatching file names:
module foo;
version (linux) import foo_linux;
version (Windows) import foo_win;
Sure it adds and extra file, it's a lot cleaner imo than having a huge
module with both implementations or mismatching
Hello bearophile,
BCS:
I don't think that works in one case; where you are forced to use
fully qualified name.
You can probably use a public import.
IIRC, all that does is make anything that imports you, import that as well.
It doesn't do anything to the names.
--
... IXOYE
Hello bearophile,
BCS:
IIRC, all that does is make anything that imports you, import that as
well. It doesn't do anything to the names.
I meant to create a module named foo with inside:
module foo;
version (linux) public import foo_linux;
version (Windows) public import foo_win;
The module
Hello Don,
Paul D. Anderson wrote:
I've been working on an arbitrary-precision floating-point module for
a while and have uploaded the source to DSource.
(www.dsource.org/projects/decimal)
It's an implementation of the General Decimal Arithmetic
Specification, Version 1.70, March 2009.
I just created a module that generates stack traces on asserts (D2):
http://www.dsource.org/projects/scrapple/browser/trunk/backtrace_assert/debugging.d
Just compile and link it.
It does have some not exactly ideal bits:
-it won't work nicely unless you link with gcc and add the -rdynamic
Hello Walter,
grauzone wrote:
Why are you creating these as mailing lists and not as
news.digitalmars.com groups?
Because I expect it to be very low traffic, and I wouldn't expect
people to constantly have to check the n.g. to see if the beta is
available.
A decent NG client will do that
Hello Walter,
digited wrote:
Walter Bright Wrote:
Fixes the Tango build breaks.
With RC's, you'll never need this.
I put out a beta to the people who have asked to be on the beta
announcement list, and nobody (other than Don) gave any feedback on
it. If you want to be on the beta list,
Hello Walter,
Happy New Year!
http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.054.zip
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.038.zip
Many thanks to the numerous people who contributed to this update.
New updates,
Hello Walter,
How do we fix the CPU? ;-)
I was thinking 220VAC might help!
That one way to be totally sure what is wrong with your CPU.
Hello Lutger,
Walter Bright wrote:
Looks like Bill Baxter is giving a presentation on D Nov. 18!
http://www.nwcpp.org/
slides are there! Very pretty, I bet it was a fine presentation. The
slides are informative, good examples.
re: the slides, are they avalable in .ppt or pdf for us
Hello Phil,
On the C++ page, I see:
Physical (shallow) equality a == b
Physical (shallow) inequality a != b
Deep equality *a == *b (a and b are pointers)
Deep inequality *a != *b (a and b are pointers)
On the D page, I see:
Physical (shallow) equality x == y
Physical (shallow)
Hello Michel,
Really? Can't you just partition your hard disk in two for 10.5? I'm
not saying you should take the burden of testing with both, but saying
you can't install 10.5 alongside 10.6 seems dubious to me:
1. Use Disk Utility to resize your current partition and create a new
one.
2.
Hello Walter,
#ponce wrote:
I think it's disabled in debug mode to keep the compilation time low.
That, and the optimizer tends to scramble the relationship between
source and assembler, making source debugging next to impossible.
How hard would it be to have the code generate run on the
Hello Walter,
I can set it
up to automatically build dmd after a commit, and run dstress/build
popular projects and libraries
The problem is if some package fails, then I have a large debugging
problem trying to figure out unfamiliar code.
Or it could just inform the owner of the lib and
Hello div0,
Maybe your just using a tiny resolution?
(does anybody use less than 1680x1050 these days?)
Right now I'm running at 1024X600 on a netbook, and mobile devices will go
even smaller. Also, I've heard that people tend to quit using the whole screen
for apps once they get to large
Reply to Robert,
BCS wrote:
Major suggestion:
The auto compleat drop down is very un-aggressive. I'd love to see it
be Google style sort based rather than ordered-list/browse based.
JDT definitely has this and Descent has some.
(I'll admit I don't know much about how the auto-compleat
Reply to Nick,
Hmm, but I guess it does allow match/not-match to
be determined by arbitrary compile-time expressions. Is there another
benefit to the constraints that I'm missing?
Not that I know of (but that says very little :). It might be a good rule
of thumb to never directly use the
Reply to bearophile,
John C:
Did you not read the change log?
Implicit integral conversions that could result in loss of
significant bits are no longer allowed.
This was the code:
ubyte m = (n = 0 ? 0 : (n = 255 ? 255 : n));
That last n is guaranteed to fit inside an ubyte (yes, I understand
Reply to Jarrett,
I was thinking it'd be more intuitive if constraints - which are more
general - would be used to implement specialization. That is,
template X(T: A, U: B)
would basically be syntactic sugar for
template X(T) if(is(T: A) is(U: B))
Then you have only a single system of
Reply to Walter,
How could I do partial ordering if one constraint expression accepts
only odd integers?
you wouldn't, but rather ignore that clause and mine the constraints that
you would use out of the expression (see my post for details)
Reply to Walter,
BCS wrote:
Reply to Walter,
How could I do partial ordering if one constraint expression accepts
only odd integers?
you wouldn't, but rather ignore that clause and mine the constraints
that you would use out of the expression (see my post for details)
Then aren't things
Hello Daniel,
[1] like me. My girlfriend disagrees with me on this,
You have a girlfriend that even bothers to have an opinion on a programming
issue, lucky bastard.
though. *I* think she's crazy, but I'm not exactly
inclined to try and change her mind. :)
That reminds me of a quote: If
Hello Derek,
The -deps= switch is helpful, but can we also have a -nogen switch
so that a compile is done but no object files are created.
look at: -o-
Reply to Walter,
Ary Borenszweig wrote:
Walter Bright escribio':
MIURA Masahiro wrote:
Thanks for the new release! Are case ranges limited to 256 cases?
Yes.
Why?
To avoid dealing with it in the back end for the moment. The back end
will die if you pass it 3,000,000 case statements
Reply to Chad,
Walter Bright wrote:
The fall-through thing, though, is purely local and so much less of
an issue.
huh?
These bugs always take me no less than 2 hours to find, unless I am
specifically looking for fall-through bugs.
They are that evil kind of bug where you can stare at the
Hello Ary,
But that's kind of redundant:
case 1: goto case 11:
case 11: goto case 111:
case 111: goto case :
case :
doIt();
don't you think?
case 1, 11, 111, :
doIt();
If you change the case expression, you must change it twice.
Why not:
case 1: continue case;
case 11:
Reply to grauzone,
BCS wrote:
The demarshaller function is indexed via a string derived from the
original object. What would the marshaller function key on? The best
I can think of right now is the typeinfo and as of now, that's broken
under DLLs
DLLs are broken in general. There are many
Reply to grauzone,
Can you get the mangled name of an object instance at runtime via
typeinfo?
Not that I know of. IMHO, ClassInfo.name() is good enough.
But if you don't like it, just keep using mangleof. You obviously have
compile time access to the serializeable type, e.g.:
Hello grauzone,
BCS wrote:
Well, I can switch the default but, in my experience, most of the
time repetition doesn't matter. I also dissagree on the relatively
useless
Oh really?
I haven't used a graph data structure in some time. Most of them have
been trees. And the cases I can think
Hello grauzone,
Huh? You can simple cast the interface to an object.
That is not safe. not all interface instances are D objects.
There are people who care for COM and C++ interfaces? COM is Windows
specific, and C++ vtables are... uh, I don't know,
platform/architecture/compiler vendor
Hello grauzone,
BCS wrote:
That's why I'd still require types to be marked as serializeable by
the programmer.
How would you do that aside from mixins?
Make the user implement a marker interface,
that would work (for classes) but IMHO the side effects of that are more
invasive
Hello grauzone,
BCS wrote:
introduce annotations into the language.
NO, not an option.
What, why? Sure, this is not a realistic option.
D1 is fixed, and D2 will be in the next few months. I'm not going to even
think of targeting D3 at this point. I'm writing this to be used
the latest and greatest:
http://arrayboundserror.blogspot.com/2009/06/serialization-for-d-part-6-of-n.html
This time I'm hoping for some feedback on how people want to interface with
3rd party types.
Reply to grauzone,
BCS wrote:
Reply to grauzone,
Is there any real reason for all those mixins?
which ones?
All used by the user. That would be Serializable and
SerializableRecuring.
What else would you use? I guess if I really wanted to I could use
the same device as for 3rd party
Hello Christopher,
SerializableRecuring.
Also, what is curing in this context, and why would you need to do it
multiple times?
My spelling sucks: s/Recuring/Recurring/
Reply to Ary,
(I came to this conclusion when trying to debug the scrapple:units
project).
I'm sorry g OTOH that is a rater pathological cases.
One option that might be doable (I don't know how the inside works so I'm
guessing here) is to have the debug more highlight expression that can
Reply to Pablo,
Hello,
just before it closes there appears a window message tittled Problems
saving worksppace and the message is:
Problems occurred while trying to save the state of the workbench.
On details it's written:
Problems ocurred during save.
java.lang.NullPointerException
And yet more progress. This time I've got hard-links working and I'm thinking
about how to do 3rd party types.
I don't have any useable ideas I really /like/, but I have one I'm sure I
can make work. I do have one idea down at the bottom that I'd love to use
but it would need some new
Reply to Nick,
[sniped rant about why the web sucks]
I'll grant you most of that and I don't care about the rest.
It's ironic that this should come up in the D community because it sounds
a lot like C++ template are to the web like D template are to what the web
should be. That is; the Web
Hello Bill,
I'll also add that you should be able to properly
serialize/deserialize a BaseClass pointer that actually points to a
DerivedClass.
This is pretty tricky to get working seamlessly when combined with the
external serialization requirement.
H3r3tic's xpose library has this working
Hello Nick,
I wish you were a higher-up at Epic ;) They seem to have pretty much
the opposite attitude, and I get so worked-up every time I see a quote
from CliffyB or any of the others...
I'm sorry to disappoint, but gaming is the only case where building to the
latest hardware has any
Hello Nick,
Yes, yes, yes. This. All of it.
[...]
Anything that can be used for good can be used for ill. Yes, lots of sites
out there are junk, but that would be true no matter what tools were available.
The (long term) solution isn't to reject the tools but to figure out how
to make
Hello Nick,
Just trying to anticipate that argument. It's amazing how many times
I've seen people try to argue that something isn't worth developing
for just because the stores don't sell them. What matters is what is
people are *using*, not what the stores are selling.
Should they stop
Hello Nick,
what they can do is additionally provide a
non-youtube/flash version. Which should be really [censored] easy since
they had to have already had one in order to upload it to craptube in
the first place.
If they can, yes, but they might not have access to general file hosting
or if
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff63c58cba9bbc96d8...@news.digitalmars.com...
Hello Nick,
what they can do is additionally provide a
non-youtube/flash version. Which should be really [censored] easy
since
they had to have already had one in order to upload
It turned out that the first pass was easy. No unexpected problems. However
I noticed a few more things I'm going to have to deal with at some point.
http://arrayboundserror.blogspot.com/2009/05/serialization-for-d-part-2-of-n.html
Again, please comment! (here or there, doesn't matter, I think
Reply to Ary,
http://www.youtube.com/watch?v=rtYCFVPfx4M
The clunk you just heard is my jaw bouncing on the floor G NICE!
I'm planning on taking a crack at a Serialization template library and I'm
looking for feed back. My thinking so far is up on my blog here:
http://arrayboundserror.blogspot.com/2009/05/serialization-for-d-part-1-of-n.html
Please comment! (here or there, doesn't matter, I think I'll see both)
Hello Walter,
I went there, but saw nobody around.
I walked all over Lake and Kirkland, but nobody. I even checked the
parking lot at the street end.
I love Google.
We were there from 11 to nearly 7 PM. By we I mean myself, Bartosz,
David, Bill, and Paul, though Bill and Paul were there for
Hello BLS,
Georg Wrede wrote:
(FWIW, I'd sure prefer to fly with ADA or D, than with C.) :-)
So you better fly with Boeing !
ASTREE is a static analyzer for C programs that proves the absence of
run-time errors in critical embedded software.
It has been applied to the flight control
Hello Robert,
If Walter is willing to put dmd under public source control I'd
happily set this up to automatically compile dmd, run tests suites,
compile libraries etc. I could even set up a one command/one click
release candidate/final release thing if needed (maybe even nightly
builds too).
Hello BLS,
(I think it is not really top secret to talk about what is in use.
1) OCAML, 2) C and 3) ADA ... )
The only surprise there (if any) is OCAML. *Everyone* uses C and, last I
heard, Ada is still the #1 choice for Bugs==DeadBodiesOrWorse development.
From what I've heard, it's
Hello Brad,
BCS wrote:
I can't memorize speeches either (OTOH I really like ones where I can
read it off a script) what I'd love to have is a power point setup
with two screens for me, one with a copy of the projector and one
with my notes (in inch high font) and thumbnails of the following
Reply to Sean,
Some professors seem to think that lecturing about material that isn't
presented anywhere else will force students to attend class. But in
my experience it also creates a class that takes notes furiously
rather than engaging the material and asking questions. Overall, I
think
Reply to Walter,
BCS wrote:
I can't memorize speeches either (OTOH I really like ones where I can
read it off a script) what I'd love to have is a power point setup
with two screens for me, one with a copy of the projector and one
with my notes (in inch high font) and thumbnails
Hello Arild,
Here's the link:
http://www.vimeo.com/4333802
SWEET! to bad it's almost midnight and I'm pineing for a 56K link right now
(don't ask) so I'll have to wait til later
Hello Nick,
I guess if you really hate having it not kill the app then the
program could just not /have/ a x button.
You've got to be kidding me, that would be just as bad. Why would I
want to have a program get rid of the standard exit mechanism?
If you basicly never want to exit it? (see
Reply to Nick,
BCS n...@anon.com wrote in message
news:a6268ff50d58cb92d952e5b...@news.digitalmars.com...
Hello Nick,
BCS n...@anon.com wrote in message
news:a6268ff50558cb926917215...@news.digitalmars.com...
yah, for some programs you rarely want to close the program but
often want
Hello Christopher,
Nick Sabalausky wrote:
The absolute worst of all though is when an app (*cough* skype
*cough*) decides that close and the 'close' button should mean
don't close anything at all, but minimize to tray instead. That
should be a firing squad offense ;)
I'd be killing my IM
Reply to Arild,
Walter Bright skrev:
BCS wrote:
Hello Walter,
Robert Fraser wrote:
Walter Bright wrote:
http://www.nwcpp.org/
!!! I had a lab or I would have gone ;-( Any chance of a
video...?
Bartosz videotaped it, I imagine he'll put it up on the nwcpp.org
web site soon
Hello Walter,
This is a major revision to Phobos, including Andrei's revolutionary
new range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
Cool template function literals sounds interesting
Reply to bearophile,
Andrei Alexandrescu:
If it were an error, I wouldn't let it go.
It's an error. It will lead to troubles.
Bye,
bearophile
Then there need to be a way for the format string to use an argument without
generating output for it because as Andrei is saying, there are real
Reply to Nick,
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message
news:gsiqdr$1cs...@digitalmars.com...
BCS wrote:
One option would be to not throw an error if the format string uses
indexing formats (e.i. out of order formatting)
Yah, that's an option I considered. Maybe
Hello Walter,
Stewart Gordon wrote:
Walter, how often do you update your working copy from the SVN?
Obviously less than once every 2 releases.
As far as I know, it is current. Everything got checked in.
I think he was asking about the otherway (not that I known why)
Hello Walter,
If dmd/phobos binaries for osx won't work on those machines, then it's
appropriate to have a different version identifier.
I'd assert the test should be if the systems are source code compatible.
Reply to Walter,
http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasceanu_a
nd_d_for_the_net_platform/
His comments on array slicing are interesting.
Seems to me the solution should be to have *all* dynamic arrays be ArraySegment
as all dynamic arrays under DMD are a slices of
I just figured out a neet trick to do with structs and mixins:
http://arrayboundserror.blogspot.com/
Oh, and I started a blog.
Reply to Georg,
The biggest lie I've ever heard is the meek shall inherit the earth.
That is a bit out of context...
OTOH have you looked that the earth recently? Frankly I'd rather NOT inherit
it thank you very much.
Hello Walter,
Robert Fraser wrote:
Walter Bright wrote:
http://www.nwcpp.org/
!!! I had a lab or I would have gone ;-( Any chance of a
video...?
Bartosz videotaped it, I imagine he'll put it up on the nwcpp.org web
site soon.
Bump ?
Hello Moritz,
On Sat, 28 Feb 2009 12:53:03 -0500, bobef wrote:
Because I'm lazy and I doubt there will be any interest. But if you
want I can send them to you and you can release them publicly ;)
I would suggest
http://dsource.org/projects/scrapple
Just make a ticket. :)
bobef: post your
Hello Dejan,
Well done!
When can we expect 64bit version of DMD?
OSX is still 32bit x86 so don't get your hopes up.
Hello Frits,
Perhaps the computer he's running Eclipse on doesn't have an internet
connection?
This way he can download it onto (e.g.) an USB stick and install from
there.
you got it
1 - 100 of 114 matches
Mail list logo