Awesome!
You should post this to reddit/ycombinator, I'm sure there's quite a few people
using VStudio that wanted to know more about D (but have been hesitant to give
it a fair try because there were no IDE's available).
Walter Bright Wrote:
Jacob Carlborg wrote:
On 5/15/10 11:00, Walter Bright wrote:
Apple's web site isn't much better, it's got to be the most hard to read
site I've ever encountered. The text is a faint grey on white, of all
things, and the font is so poorly rendered my eyes turn red and
Charles Hixson Wrote:
The D web pages are a marvel of clarity and utility. Compare them to
the Python web pages, which I rate a second best.
OT:
The funny thing about the Python website, is that I never managed to find a
direct link to the package repo (pypi) from the main site.
And yet
Jérôme M. Berger Wrote:
Andrej Mitrovic wrote:
Charles Hixson Wrote:
The D web pages are a marvel of clarity and utility. Compare them to
the Python web pages, which I rate a second best.
OT:
The funny thing about the Python website, is that I never managed to find
Walter Bright Wrote:
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.
Please don't put links to anything other than
Walter Bright Wrote:
Nick Sabalausky wrote:
I didn't see any of the glitchiness or google-translate stuff that other
people saw (on IE7, FF2, or Iron). Although, from the screenshot someone
else posted of the translate-bar, I'm glad it's not showing up for me. (I
really wish people
Andrei Alexandrescu Wrote:
On 07/05/2010 02:33 PM, David Gileadi wrote:
On 7/5/10 8:51 AM, Andrei Alexandrescu wrote:
On 07/05/2010 09:08 AM, David Gileadi wrote:
Thanks everyone for your feedback. I sent Walter a new version that
addresses some of the issues.
Feel free to send one
Sweet!
I've never heard of GOLD before (I must live in a cave or something..). Thanks
for the link to that Bill Baxter presentation btw.
Maybe you should to get your engine featured on the GOLD website
http://www.devincook.com/goldparser/engine/d/index.htm ?
Nick Sabalausky Wrote:
I've
Works for me as well. 2.048 @ Win32.
dickl Wrote:
On 8/11/2010 1:09 PM, Walter Bright wrote:
dickl wrote:
I should have been a little more clear, a static this() as a member of
a class.
Still works:
--
H:\cbxtype test.d
import std.stdio;
void
Andrei, some spammer keeps removing the errata and putting spam links instead.
I can roll back the changes, but he/she will in no doubt spam again.
Andrei Alexandrescu Wrote:
I thought this might be of interest to the community - as of today,
August sales of TDPL from erdani.com redirected
I've reverted the change, you can see the history and the previous change for
the spam:
http://erdani.com/tdpl/errata/index.php?title=Main_Pageoldid=55
http://erdani.com/tdpl/errata/index.php?title=Main_Pageoldid=49
Andrej Mitrovic Wrote:
Andrei, some spammer keeps removing the errata
auto newErrata = const(oldErrata);
Btw, glad the sales are up, the book is really enjoyable to read.
Andrei Alexandrescu Wrote:
On 8/27/10 12:35 PDT, Andrej Mitrovic wrote:
I've reverted the change, you can see the history and the previous change
for the spam:
http://erdani.com/tdpl
Although this is way over my league (I've never used functional
languages before), I guess invariants could help in maintaining a type
with certain properties of those dependent types..?
Well, most of the papers that describe dependent types (that I've
glanced over) use functional languages and a
On 11/24/10, BLS windev...@hotmail.de wrote:
Hi David,
let me shake your hands and say Thank You, GREAT work.
It was a bit difficult to build SWIG SVN on Windows.
Just finding those automake/autoconf/bison binaries is a detectives' work.
How did u build from svn?
Am I supossed to use
--with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe or just
--with-d2-compiler=C:\DMD\ path when calling configure?
On 12/8/10, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
Okay, got it working now.
I've installed MinGW (again) via that new mingw-get installer from
, but great work klickverbot!!
On 12/8/10, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
Am I supossed to use
--with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe or just
--with-d2-compiler=C:\DMD\ path when calling configure?
On 12/8/10, Andrej Mitrovic andrej.mitrov...@gmail.com wrote
, Andrej Mitrovic wrote:
I'm curious, can you use SWIG with D2 on Linux as well? From what I've
read so far in the docs, SWIG creates an extension module that can be
compiled as a dynamic library. But afaik there are some issues with
using dynamic libs in Linux with D2, at least that's what I've
Yeah, maybe dsource wasn't such a good idea. It does have a lot of
dead projects and nobody wants to put up categories to split up D1/D2
projects (and the forums are slw).
Maybe a better solution is to just add any new interfaces to a D Wiki
page @ http://www.prowiki.org/wiki4d/wiki.cgi
On
On 12/10/10, BLS windev...@hotmail.de wrote:
On 08/12/2010 20:35, Andrej Mitrovic wrote:
I did a configure with:
--with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe and make to build
swig.
Guess you mean ..
--with-d2-compiler=C:/DMD/dmd2/windows/bin/dmd.exe
Bjoern
Backslashes worked fine
Must be a very simple language.. and Google probably pulled some
strings, or they have someone that worked/collaborated with GCC devs?
dunno..
On 12/13/10, Bee iteronve...@gmail.com wrote:
How the hell is Go already part of the main GCC distribution? It's only a
year old! If
I've got this
Personally I use Console2, and I've a hotkey to open a DMD session (it
just adds DMD to path really).
It's good old Pascal, much hated by C wizards. :D
As far as I can tell hg stores both a commit number and a hash, e.g.:
D:\dev\projects\projecthg log -r :
changeset: 0:08d729df85c9
user:Andrej Mitrovic andrej.mitrov...@gmail.com
date:Fri Dec 22 00:07:02 2010 +0200
summary: bla bla
changeset: 1:61cfebefee15
user
Word wrapping, please!
Looks cool so far.
8. Search functionality
digitalmars uses google for searching the NG archive, but I've no idea
how to do custom searches. I.e. I'd like to search for a keyword in
the topic title only, how would I do that?
On 2/1/11, Trass3r u...@known.com wrote:
Speaking of newsgroup web interface, interestingly while the main D site
points to this crappy reader:
http://www.digitalmars.com/pnews/indexing.php?server=news.digitalmars.comgroup=digitalmars.D.announce
there still is a hidden one which is much better
On 2/1/11, Andrew Wiley debio...@gmail.com wrote:
I'm not sure what you mean. I have my Gmail account subscribed to the
mailing lists, and everything seems fine?
When you start a new topic it doesn't show up in Gmail. Well, maybe
they've fixed that recently? I haven't tried in a while, but it
Is there even such a thing as Win64 OMF?
The GUI lib DFL uses callbacks as well IIRC. Probably not a range of
them though. I do know that in Qt you can have a signal attached to
multiple slots.
Woho!
I think you need to add GDC's /bin to path.
Apparently there is a way to strip the debuggin info and put it in
another file, and then link the executable to the debug file so GDB
can automatically load it. But this doesn't seem to work for me:
gdc -g foo.d -o foo.exe
objcopy --only-keep-debug foo.exe foo.debug
strip -g foo.exe
objcopy
On 3/26/11, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
if any Korean readers are out there, I'd be delighted to
see at least what the cover looks like.
If it's North Korea you're talking about, I think we know what the
cover will look like. :p
How is coding with GtkD like? Does it need any special treatment, like
having to use RAII and taking care of resources by hand? IIRC Gtk is a
C library and GtkD is a class-based wrapper around it?
Anyhow that's great news!
On 3/29/11, Mike Wey mike-...@example.com wrote:
There used to be a video editor named Pihlaja but i don't know if it's
still maintained.
Looks like this is it:
http://vimeo.com/471546
and some `Rae` gui library:
http://vimeo.com/6918620
It looks quite nice.
Reddit seems down. Is there a direct link to the video?
What about tutorials? Allowed?
*When I say tutorials I don't mean tutorials on the language itself.
But a tutorial on how to create some type of software by using D.
@dsimcha:
I can't compile your demotest from plot2kill, using gtkD and D2:
..\lib\plot2kill.lib(gtkwrapper)
Error 42: Symbol Undefined _D5cairo12ImageSurface12ImageSurface7__ClassZ
..\lib\plot2kill.lib(gtkwrapper)
Error 42: Symbol Undefined
Also I'm on XP32.
Sorry, I think these are gtkD-specific issues, not plot2kill. I've had
another problem building a cairo example project from gtkD, which I've
reported.
Ok thanks for letting me know.
Link: http://prowiki.org/wiki4d/wiki.cgi?Videos
There are numerous D-related videos scattered throughout the web. Some are
linked on conference pages, others are linked from various blogs. I've
collected as many as I could find, and I've put them in a table at the wiki4d
site. Some slides have
The name is Tomasz Stachowiak. It's also displayed at the beginning of
the video. :)
Thanks, fixed.
On 4/10/11, dsimcha dsim...@yahoo.com wrote:
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s
Just googled it now, it's quite a story. Found among other things a
Wikipedia page dedicated entirely to the topic!
http://en.wikipedia.org/wiki/Serial_comma
Above all, it's your
So could your library be used to implement an alternative for HTOD? Or
more simply put, could I use this to do (simple) transformations of C
code?
I've used your tool yesterday. I used it on a simple C file with the
ANSI C grammar from the gold website. It does seem to work fine, but
yeah I have to preprocess a C file first (I've spent so much time with
D that I almost completely forgot about the C preprocessor in the
first place).
I've
Is that a typo on page 31?
= should be =
maybe = should be
I guess that further drives the point though. :)
I still giggle at the long long name. Good thing there are no floats
floats and char chars.
133 bytes? Something went wrong with that ftp for DMD2.
I'm referring to http://ftp.digitalmars.com/dmd.2.053.zip. You've
posted the wrong links in your post btw.
On 5/14/11, bearophile bearophileh...@lycos.com wrote:
Walter:
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.053.zip
I especially like the stack trace on Windows.
Do you get the symbol names displayed without running cv2pdb on the exe?
Hmm.. so it might be an XP issue. I'll give Win7 a try later.
/symbols/debuggers/dbg_x86_6.11.1.404.msi
There is a newer version available, but it seems you have to install the
full Windows SDK for this.
Andrej Mitrovic wrote:
Hmm.. so it might be an XP issue. I'll give Win7 a try later.
No, I have had version 6.12.2.633 installed. I also gave your older
A simple app like:
void foo()
{
throw new Exception();
}
void main() { foo(); }
$ dmd -debug -g testexc.d testexc.exe:
D:\dev\code\d_codeobject.Exception@testexc.d(3):
40CD40
40CBB7
4025EB
4021E7
411FC1
$ cv2pdb testexc.exe testexc.exe
$ testexc.exe
I think this was a submission too:
http://octarineparrot.com/article/view/getting-more-fiber-in-your-diet
I think the biggest confusion about pointers comes from its C syntax.
Otherwise the concept is pretty simple.
The best way to explain it is with a lot of short code samples and
maybe even some simple diagrams. Forget trying to explain pointers
with walls of text and pretty language.
I think at the end of the day feedback from beginners reading the book
or tutorial is the most valuable thing to have. With an online version
of a book you could add extra clarification for some topics if newbies
end up being confused or didn't grasp a concept in full. I rarely see
this happen
Very cool article. :)
Btw, you can omit 'auto' when you use 'immutable' declarations.
On 5/30/11, Vladimir Panteleev vladi...@thecybershadow.net wrote:
On Mon, 30 May 2011 04:18:14 +0300, Jeremy Wright jer...@codestrokes.com
wrote:
I implemented bucket sort in D to demonstrate how easy it is to use
std.parallelism. I welcome any feedback.
One thing: I would suggest to avoid
Why doesn't Appender overload opCatAssign? It would be almost trivial
to replace usage of existing arrays with Appender, instead of having
to replace all calls with var.put().
And why doesn't it overload toString? You can't print its contents to
stdout like you can with slices.
And why can't you
Some notes:
Calling dvm regardless of arguments always prints out this string at
the bottom after any info before it:
The system cannot find the file specified.
Calling with -h or --help doesn't print out anything.
Calling dvm install or dvm fetch or dvm use without arguments throws
an out of
P.S. Turns out I'm a little silly for not realizing that I can use
'dvm install 2.053', since it was mentioned in your post.
I'm ok with appdata as long as it works for everyone. I guess it
should, maybe I'm just being paranoid that it won't. (I'll test it out
soon on win7 and report). Otherwise polluting home on Windows is kind
of ugly, I'm sure Nick will agree. :)
I get the same The system cannot find the file specified. on Win7 at
the end of invoking dvm.
UAC seems to be ok with installing in appdata.
Btw, is there a shortcut for getting the latest DMD release? E.g.
something like:
dvm install 2.x, for the latest 2.x release?
Also I still can't get
On 6/4/11, Nick Sabalausky a@a.a wrote:
It *should* have two things (separated by semicolon):
%APPDATA%\dvm\compilers\dmd-{default dmd version}\bin
%APPDATA%\dvm\bin
Yep, the first one points to the 2.052 install if I default select
that. But 2.053 gets run. Is this because I have 2.053
System PATH:
D:\DMD\dmd2\windows\bin
User PATH:
%DVM%
User DVM:
C:\Documents and Settings\Andrej\Application Data\dvm\compilers\dmd-2.052\bin
C:\Documents and Settings\Andrej\Application Data\dvm\bin
From what I can tell user variables should override system ones?
Ah, this explains it:
echo %PATH%
...D:\DMD\dmd2\windows\bin;..C:\Documents and
Settings\Andrej\Application
Data\dvm\compilers\dmd-2.052\bin;C:\Documents and
Settings\Andrej\Application Data\dvm\bin
So apparently system vars come first. Hm..
Have I been putting all of my executables in the wrong path? I've
always put them in the system path instead of the user one, maybe I've
been doing it wrong. :)
Yeah this all makes much more sense now. I've tried DVM install and
DVM will add %DVM% in PATH before all other path names, which
overrides them.
I think I just had the bad habit of putting everything in the system variables.
I think this might be a cool place to link DVM from:
http://prowiki.org/wiki4d/wiki.cgi?action=browseamp;id=D__Tutorial/StartingWithD/Compiler/DMDamp;oldid=D__Tutorial/InstallingDCompiler
I can already put this tool to good use. I've had DDMD fail to compile
for me, so I just did a 'dvm install 2.051' and 'dvm use 2.051', rerun
the build script and it then compiles again.
Huge time-saver, imo!
Yes I've also tried doing a clean install and -h didn't do anything.
On 6/11/11, Sean Kelly s...@invisibleduck.org wrote:
How about drdobbs.com? Short-form entries are common there.
After they've completely screwed up all the existing links to old
articles, I don't know why anyone would want to write there.
They won't die out. They'll just become rarer. Just like vinyl (and
you can still buy vinyl!).
Speaking of DRM, I can't believe Sony is so dumb as to block videos on
youtube from being seen from other countries. How is that going to
make me want to buy their music? Same goes for other major labels.
They might as well put a message on the video: We don't think you
deserve to watch our music
This is a translation project of Charles Petzold's Programming Windows
(5th edition) book code samples.
Currently over 120 code samples have been translated into D, with only
a few modules remaining.
Everything else you need to know is in the Readme file:
On 6/21/11, Walter Bright newshou...@digitalmars.com wrote:
This is nice work. When you're done, let's post a link on Reddit!
Let's shake the bees nest? :p
I'll have to make some kind of workaround for D DLLs for a few
examples. I'll see about doing this these days. There's a few audio
examples
I completey forgot about single-project compilation yesterday.
I've pushed a new changeset which allows you to build each project
alone by CD-ing to the directory and building, e.g.:
$ cd C:\Documents and Settings\Andrej\Desktop\WinAPI\Samples\Chap01\HelloMsg
$ rdmd ..\..\..\build.d %cd%
The
On 6/21/11, zhang bitwo...@qq.com wrote:
That's great!
I'm porting the Scintilla which is an editor library. I think I can get
benefit from your works greatly.
--
Zhang bitwo...@qq.com
Nice! Btw, I have DSciteWin in my projects too:
https://github.com/AndrejMitrovic/dscitewin
But
On 6/21/11, bearophile bearophileh...@lycos.com wrote:
I am not asking you to modify the code, but D with() was designed to reduce
noise in code like:
wndclass.style = CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc = WndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
On 6/21/11, zhang bitwo...@qq.com wrote:
That's great!
I'm porting the Scintilla which is an editor library. I think I can get
benefit from your works greatly.
--
Zhang bitwo...@qq.com
Btw, I'd like to know more about this. Is it an open-source project?
Will it be hosted somewhere?
On 6/21/11, Walter Bright newshou...@digitalmars.com wrote:
On 6/20/2011 10:11 PM, Andrej Mitrovic wrote:
Btw, would it be good idea to link this somewhere on the homepage?
Sure! Wanna generate a pull request?
Yeah I'll cook something up and make a pull.
Btw, std.c.windows.windows
On 6/21/11, bearophile bearophileh...@lycos.com wrote:
After translating so much code have you seen some recurring patterns in your
code conversion bugs?
A lot of C code is missing default labels. I've used the github 2.054
clone to compile all examples in order to catch missing labels at
On 6/21/11, Walter Bright newshou...@digitalmars.com wrote:
Fix:
char[100] buffer = 0;
I didn't know about this syntax! I've been under a rock apparently.
Fix:
char[100] buffer;
APIWriteToBuffer(buffer.ptr);
auto p = buffer[0 .. strlen(buffer.ptr)];
On 6/21/11, Jonathan M Davis jmdavisp...@gmx.com wrote:
stride isn't a UTF version of strlen.
Brain misshap, I meant std.utf.count.
Walter, would it be possible to make .map file generation follow the
-od flag? It's odd when a build script fills a directory with map
files while executables and object files are properly in their own
directories as specified via -od and -of flags.
Btw, I have just pushed a changeset and made
On 6/21/11, Daniel Gibson metalcae...@gmail.com wrote:
The README mentions 2.043 instead of 2.053.
Fixed, thanks.
On 6/21/11, Brad Roberts bra...@puremagic.com wrote:
Fixed in 2.053. See also bug 4833.
Well that's odd because the script still generates map files in the
root directory of the script file even though I'm using -od and -of,
and I'm using 2.053. I've added a cleanup call after each sample is
Wait, I'm using 2.054 from github. This might be a regression. I'll investigate.
No I've tested with 2.053 and it still generates a map file. I'll
reopen that report.
On 6/21/11, Robert Clipsham rob...@octarineparrot.com wrote:
I use D as a build script for my project too, it's awesome how easy it
is to make the build parallel, and how much compilation time it saves!
Yeah, true words right there. RDMD is what makes everything run so
smooth, it feels like
Ok I've made most of the examples unicode safe now by using
std.utf.count instead of .length. The changesets are online.
On 6/22/11, Walter Bright newshou...@digitalmars.com wrote:
I think there's a misunderstanding somewhere. strlen() works just fine on
UTF-8
code.
I need a UTF16 strlen function for wchar*.
On 6/22/11, Walter Bright newshou...@digitalmars.com wrote:
On 6/21/2011 5:41 PM, Andrej Mitrovic wrote:
I need a UTF16 strlen function for wchar*.
wcslen()
You, sir, are a gentleman and a scholar.
Now on YC too: http://news.ycombinator.com/item?id=2681216
I just ran into some odd stdout corruption issue while doing parallel
builds, take a look:
http://i.imgur.com/pgC4o.png
I've tried building again and it was gone, it looks like an appearance
of a heisenbug. There might be some bug lurking somewhere in
std.parallelism, but it's hard to say when I
On 6/22/11, Dmitry Olshansky dmitry.o...@gmail.com wrote:
I'd say that is to be expected, e.g. when multiple processes (in this
case two resource compilers) output to the same stream (console) and
has nothing to do with std.parallelism. One cure for that is to have
them output to a unique
On 6/22/11, Johannes Pfau s...@example.com wrote:
Andrej Mitrovic wrote:
On 6/22/11, Dmitry Olshansky dmitry.o...@gmail.com wrote:
I'd say that is to be expected, e.g. when multiple processes (in this
case two resource compilers) output to the same stream (console) and
has nothing to do
This is a fairly lightweight binding to the PortMidi library.
Currently this binding only works on Windows, and it was only tested
on an XP32 system. There are 3 sample projects which were directly
translated from the PortMidi project, as well as a porttime
millisecond timer
I've only got a
1 - 100 of 540 matches
Mail list logo