root/trunk/docsrc/dnews.dd

Revision 659, 35.9 kB (checked in by andrei, 4 years ago)

Changed ddoc extensions to dd and changed linux.mak accordingly

  • Property svn:eol-style set to native
Line 
1 Ddoc
2
3 $(D_S D Programming Language News,
4
5 Here is the D blog of things of general interest to D enthusiasts.
6 Most of these appeared originally in the D newsgroup at
7 <a href="http://www.digitalmars.com/NewsGroup.html">news.digitalmars.com</a>.
8
9 <hr><h4><a href="http://www.ddj.com/articles/2005/0501/">Jan 2005 issue</a> of <a href="http://www.ddj.com/">Dr. Dobb's</a>:</h4>
10
11     "printf Revisited"
12     by Walter Bright
13
14 <hr><h4>6/30/04 Sam McCall <a href="http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/5077">writes</a>:</h4>
15
16     Okay, I got sick of dealing with UTF-8 :-$(RPAREN)
17     I've got a proof-of-concept of a class-based String with a bunch of
18     operations. All data manipulation is character-based, you manipulate
19     unicode codepoints (characters) and don't worry about encodings.
20     It's fairly slow at the moment, the proof-of-concept version stores
21     strings internally as dchar arrays, and it hasn't been optimised.
22     Barring any killer bugs, it should be usable anywhere that string
23     performance isn't a bottleneck.
24     It's probably only useful to you if you're not entirely happy with d's
25     strings and/or arrays.
26     I plan to do some optimisations and write a backend that uses UTF-8
27     (internally only), which should be faster (I hope).
28     Interaction with libraries should be easy, char[]/wchar[]/dchar[] to
29     String is just String(data) (or String.valueOf(data)), String to the
30     array form is s.toUTF8/16/32().
31     I'll write up a pretty-looking example sometime that isn't 3am ;-$(RPAREN)
32     <p>
33
34     A simple reference is here:
35     <a href="http://tunah.net/~tunah/d-string/doc.txt">
36     http://tunah.net/~tunah/d-string/doc.txt</a><br>
37     And the code is here:
38     <a href="http://tunah.net/~tunah/d-string/string.d">
39     http://tunah.net/~tunah/d-string/string.d</a>
40     <p>
41
42     If you try it, let me know what you think or any suggestions you have.<br>
43     Sam
44
45 <hr><h4><a href="http://www.slashdot.org">Slashdot</a></h4>
46
47     <a href="http://developers.slashdot.org/developers/04/04/19/1124204.shtml?tid=108&tid=126&tid=156">
48     C, Objective-C, C++... D! Future Or failure?</a>
49
50 <hr><h4><a href="http://www.osnews.com">OS News</a> 2004-04-19</h4>
51
52     <a href="http://www.osnews.com/story.php?news_id=6761">A, B, C, ... D! The Programming Language</a>
53     by Owen Anderson
54
55 <hr><h4>4/8/04 Deja Augustine <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/27267">writes</a>:</h4>
56
57     Well, I've managed to port over 90% of the Python/C API to D so now you
58     can extend or embed python using D (the other 10% are threads, some
59     unicode stuff and several macros, but those'll be put in shortly).
60     <p>
61
62     Check it out at
63     <a href="http://www.scratch-ware.net/D/">
64     http://www.scratch-ware.net/D/</a>
65
66
67 <hr><h4>May 2004 issue of C/C++ User's Journal</h4>
68
69     "Nested Functions" by Walter Bright, pg. 36
70
71 <hr><h4>3/22/04 David Friedman <a href="http://www.digitalmars.com/drn-bin/wwwnews?D.gnu/518">writes</a>:</h4>
72
73     Hi All!
74     <p>
75
76     A few months ago, I started working on a D front end for GCC.  I didn't
77     want to make any announcements until I was sure it was feasible.  Well,
78     I finally got it working.  This first release is almost a complete
79     implementation -- the only major features missing are inline assembler
80     and volatile statements.  Supported systems are x86 Linux and MacOS X
81     with gcc 3.3 and 3.4.
82     <p>
83
84     You can download the files here:
85     <p>
86
87     <a href="http://home.earthlink.net/~dvdfrdmn/d">
88     http://home.earthlink.net/~dvdfrdmn/d</a>
89     <p>
90
91     I'll post more about the implementation soon.
92     <p>
93
94     Enjoy!
95     <p>
96
97     David Friedman
98
99
100 <hr>
101     Walter Bright's SDWest 2004
102     <a href="http://www.digitalmars.com/d/sdwest/index.html" target="_top">
103     presentation on D</a>.
104
105 <hr><h4>Mar 2004 issue of C/C++ User's Journal</h4>
106
107     "Positive Integration: D and Java" by Matthew Wilson, pg. 48
108
109 <hr><h4><a href="http://www.ddj.com/articles/2004/0403/">Mar 2004 issue</a> of <a href="http://www.ddj.com/">Dr. Dobb's</a>:</h4>
110
111     "Collection Enumeration: Loops, Iterators, & Nested Functions"
112     by Matthew Wilson and Walter Bright
113
114 <hr><h4>1/9/04 yaneurao <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/21501">writes</a>:</h4>
115
116 glExcess is a famous visual demo used openGL.
117
118     glExcess:<br>
119     <a href="http://www.glexcess.com/">http://www.glexcess.com/</a>
120     <p>
121
122     I've ported glExcess into D.<br>
123     <a href="http://yaneurao.zive.net/yaneSDK4D/glexcess002.zip">http://yaneurao.zive.net/yaneSDK4D/glexcess002.zip</a>
124     <p>
125
126     The latest version of 'glExcess into D' can download here:<br>
127     <a href="http://www.sun-inet.or.jp/~yaneurao/dlang/english.html">http://www.sun-inet.or.jp/~yaneurao/dlang/english.html</a><br>
128     (including source , opengl.d , glu.d , glut.d etc..)
129     <p>
130
131     yaneurao.
132
133
134 <hr><h4>1/9/04 J C Calvarese <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/21497">writes</a>:</h4>
135
136     I've created a Yahoo! group called "D Lab" for discussing the dig
137     library (and hopefully other projects, too).
138     <p>
139
140     <a href="http://groups.yahoo.com/group/d_lab">http://groups.yahoo.com/group/d_lab</a>
141     <p>
142
143     You can read messages without joining.  You have to join to post a
144     message (I think there will be very little spam that way).
145     <p>
146
147     I've posted an updated version of dig that compiles with DMD 0.77.  If
148     you have suggestions for improvements, you can join and post messages
149     and upload files.
150     <p>
151
152     If you want a place to upload some D source files, projects, etc.
153     without the bother of creating a webpage, please feel free. (I'd prefer
154     the material to be D-related, but it certainly doesn't have to be
155     dig-related.)
156     <p>
157
158     --<br>
159     Justin<br>
160     <a href="http://jcc_7.tripod.com/d/">http://jcc_7.tripod.com/d/</a>
161
162 <hr><h4>1/3/04 Hauke Duden <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/21032">writes</a>:</h4>
163
164     Yaneurao (another D-fan from Japan) was kind enough to put a ZIP file on
165     his web site that contains the Doxygen and dfilter binaries, as well as
166     the dfilter source code.
167     <p>
168
169     Here's a link:
170     <p>
171
172     <a href="http://www.sun-inet.or.jp/~yaneurao/dlang/lib/ddoc.zip">
173     http://www.sun-inet.or.jp/~yaneurao/dlang/lib/ddoc.zip</a>
174     <p>
175
176     Hauke
177
178 <hr><h4>12/29/03 John Reimer <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/20879">writes</a>:</h4>
179
180     &gt;Would it be possible to write a OS / Kernel using D? I'm justing thinking<br>
181     &gt;about how to bootstrap this... does anybody has some ideas?<br>
182     &gt;<br>
183     &gt;--<br>
184     &gt;Robert M. Muench<br>
185     &gt;Management & IT Freelancer<br>
186     &gt;http://www.robertmuench.de
187     <p>
188
189     Several weeks ago, I posted a link to one D based kernel I came across.  I don't
190     believe it's on Digitalmars D language Links page so it's not easy to come
191     across.  You have to search through the volumes of posts in this newsgroup to
192     find it.
193     <p>
194
195     here it is:
196     <p>
197
198     <a href="http://www.geocities.com/one_mad_alien/dkernel.html">
199     http://www.geocities.com/one_mad_alien/dkernel.html</a>
200     <p>
201
202     I haven't actually looked too much into this one, but the author seems to have a
203     good base for an OS going (written using mostly D).
204     <p>
205
206     I think it would be great to have an OS with integrated garbage collection.  And
207     D would be a great language to program it in.
208     <p>
209
210     Later,
211     <p>
212
213     John
214
215
216 <hr><h4>11/4/03 Matthew Wilson <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/18911">writes</a>:</h4>
217
218     "Ben Hinkle" <bhinkle4@juno.com> wrote:<br>
219     &gt; I seem to remember someone saying they were working on getting doxygen to<br>
220     &gt; work with D files. What's the status on that? I can't find the posts. I'd<br>
221     &gt; love to be able to extract some doc from my code - I keep bumping up against<br>
222     &gt; my own poor memory and having to sift through code.<br>
223     &gt; thanks,<br>
224     &gt; -Ben<br>
225     <p>
226
227     I've been doing it for ages. It's pretty straightforward.
228     <p>
229
230     The only thing is that it needs a filter - one slightly improved from
231     Burton's original - used for the INPUT_FILTER, which I've attached.
232     <p>
233     Other than that, it's just like using it for C/C++
234
235 <hr><h4>Nov 2003 issue of <a href="http://www.cuj.com/">C/C++ User's Journal</a>:</h4>
236
237     Matthew Wilson in the article "Introducing recls" writes about
238     implementing recls in $(B D).
239
240 <hr><h4>10/10/03 Andy Friesen <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/18200">writes</a>:</h4>
241
242     Matthew Wilson wrote:<br>
243     &gt; Have you any tips on how to get syntax highlighting working?<br>
244     &gt; <br>
245     &gt; I've copied the C/C++ settings to a D key under<br>
246     &gt; HKCU\Software\Microsoft\Visual Studio\7.0\Text Editor but that's had no<br>
247     &gt; effect. :(<br>
248     <p>
249
250     Add a key '.d' to
251     HKLM/Software/Microsoft/VisualStudio/7.x/Languages/File Extensions and
252     copy the value from .c into it.  That'll make VS treat D as if it were C++.
253     <p>
254
255     To add user keywords, create a file called UserType.dat and put it in
256     the same directory as msdev.exe.  You can set the colour for the
257     keywords in this file in the 'User Defined Keywords' subsection of the
258     syntax highlighting settings.
259
260
261 <hr><h4>Oct 2003 issue of <a href="http://www.cuj.com/">C/C++ User's Journal</a>:</h4>
262
263     Matthew Wilson in the article
264     "Identity and Equality: Syntax and Semantics"
265     compares D's design of these operations vs other languages.
266
267 <hr><h4>9/30/03 Andrew Edwards <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/17878">writes</a>:</h4>
268
269 Gentlemen, (Are there any ladies here?)
270
271     I've successfully compiled the Mersenne Twister RNG in D.  In it's current
272     state, it is simply a C program modified to compile in D. I would like to
273     make it a true "D" program and would appreciate some suggestions on how to
274     improve upon it! As pointed out by the original authors
275     (<a href="http://www.math.keio.ac.jp/matumoto/emt.html">
276     http://www.math.keio.ac.jp/matumoto/emt.html</a>),
277     MT is "NOT SECURE for
278     CRYPTOGRAPHY", I would like to remedy this situation and eventually provide
279     an OO version of the RNG.
280     <p>
281
282     All guidance and suggestions will be greatly appreciated.
283     Code is attached.
284
285 <hr><h4>9/19/03 Andy Friesen <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/17402">writes</a>:</h4>
286
287     D's shiny new opCall overload gave me a chance to improve the interface
288     of my printf-workalike.
289
290 -----------
291 import formatter;
292
293 /*
294   * the trailing () is needed to convert the formatter object to a
295   * string, since implicit conversions are not possible
296   */
297 char[] result = format("{0} + {1} = {2}") (5) (2) ("Spam") ();
298 -----------
299
300     You can grab it at
301     <a href="http://ikagames.com/andy/d/console-19-sep-2003.zip">http://ikagames.com/andy/d/console-19-sep-2003.zip</a>
302
303 <hr><h4>9/18/03 Benji Smith <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/17274">writes</a>:</h4>
304
305     Holy cow. I just downloaded the SWIG sources and I've been looking around at
306     what it would take to write a SWIG extension for D. And this is the answer:
307     <p>
308
309     NOT VERY MUCH
310     <p>
311
312     In order to customize SWIG for any given language, there is only one source file
313     that needs to be created. For Java, it's a file called "java.cxx" for C#, it's a
314     file called "csharp.cxx". Each of these files is moderately complex. The java
315     file, with all of the comments and newlines stripped out, is about 1400 lines of
316     code (in C++). The csharp file is about 1600 lines.
317     <p>
318
319     That's not very much code.
320     <p>
321
322     Plus, I'm guessing that much of the code for the D extension would look an awful
323     lot like the code for the Java and C# extensions, so we could borrow heavily
324     from the existing implementation.
325     <p>
326
327     However, this project is not for the faint of heart. Even if it only requires
328     writing 1500 or so lines of code, the author will have to have a pretty good
329     command of C++ (I'm already out of the running) and an excellent understanding
330     of D semantics (that eliminately most of us).
331     <p>
332
333     But, on the upside, once it's done we'll have access to millions of lines of C++
334     code to use as imports and libraries for our own projects. I'm just giddy at the
335     notion that we could suddenly have access to the entire wxWindows library, after
336     writing only 1500 lines of code.
337
338
339 <hr><h4>9/18/03 Benji Smith <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/17256">writes</a>:</h4>
340
341     In article <bkcbf8$2r06$1@digitaldaemon.com>, Andy Friesen says...<br>
342     &gt;wxWindows uses SWIG to generate all those other language bindings.  It<br>
343     &gt;would probably be worthwhile to look into getting SWIG to make D<br>
344     &gt;bindings as well.
345     <p>
346
347     I've just spent the last 20 minutes or so reading up about swig (
348     <a href="http://www.swig.org">http://www.swig.org</a> ) and I'm impressed. Since there are already language
349     bindings connecting C/C++ to Java, C#, Perl, Python, PHP, OCaml (and a few other
350     languages), it shouldn't be too difficult to use those implementations as a
351     reference for creating a D SWIG extension.
352     <p>
353
354     In my opinion, this is the most important project for D in the upcoming year.
355     Because if we can assemble a general purpose method for creating bindings
356     between C++ and D, we'll open up access to lots of existing libraries that we
357     can't use now.
358     <p>
359
360     As soon as I've got the repository site up and running, this is one of the
361     projects I'g going to create.
362
363 <hr><h4>9/16/03 Matthew Wilson <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/17087">writes</a>:</h4>
364
365     The SynSoft.D libraries 1.2 are now available from
366     <a href="http://synsoft.org/d.html">
367     http://synsoft.org/d.html</a>
368     <p>
369
370     There are several new small housekeeping modules, along with the
371     synsoft.win32.reg module that does registry stuff.
372     <p>
373
374     I've also changed the names of several methods in previous modules (I've
375     decided to standardise on ThisKindOfMethodName, rather than
376     this_kind_of_method_name()), but because of a linker weirdness  - it
377     wouldn't link when there were start() and Start() methods in the same
378     class - the deprecated functions with the old names have had to be removed.
379     Apologies if this causes problems. ;/
380     <p>
381
382     The registry library, like the other ones, is a header-only from a
383     source-perspective (i.e. the method bodies are stripped). This is not
384     because I'm being precious, just that I only want any attention you may give
385     on the module's API, not the implementation. Once this module is matured, it
386     may be going into Phobos, at which point, obviously, all source will be
387     available.
388     <p>
389
390     Note that the reg module only does enumeration for the moment. I've not yet
391     decided on the format for adding/deleting keys/values, and am happy to hear
392     some suggestions from anyone.
393     <p>
394
395     Alas, there are still no test programs, but I'm including my test program
396     for the registry module here. Version 1.3 of the libraries will have test
397     and sample progs, I promise.
398     <p>
399
400     (I've got to toddle off and do some other things - deadlines, deadlines -
401     but I'll be keeping an eye on the ng, and will try to respond to
402     feedback/questions/abuse. ;) )
403     <p>
404
405     Enjoy!
406
407
408 <hr><h4>9/13/03 Carlos Santander <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/16958">writes</a>:</h4>
409
410     If you are interested in the very first prototype (note it's not even
411     pre-pre-pre-pre-alpha ;$(RPAREN) $(RPAREN) of a rad tool for DMD, go to
412     <a href="http://earth.prohosting.com/carlos3/">
413     http://earth.prohosting.com/carlos3/</a>,
414     under the Designer section. I really
415     want suggestions, ideas, etc., especially about the way it's designed.
416     Right now, it just adds buttons and lets you change the caption of both
417     buttons and the frame, and the size of the frame (something happens with the
418     size of the button), but if I'm doing something wrong I'd like to know it
419     soon.
420
421
422 <hr><h4>9/10/03 Carlos Santander <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/16796">writes</a>:</h4>
423
424     If you happen to know someone who speaks spanish and would like to know
425     something about D, tell them to go to
426     <a href="http://earth.prohosting.com/carlos3/">
427     http://earth.prohosting.com/carlos3/</a>.
428
429 <hr><h4>9/9/03 Ant <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/16720">writes</a>:</h4>
430
431     DUI is now listed on the GtkGLExt page.
432     <p>
433     GtkGLExt<br>
434     <a href="http://gtkglext.sourceforge.net/">
435     http://gtkglext.sourceforge.net/</a>
436     <p>
437     (I need to put a big digital mars logo on DUI home page,
438     maybe a D logo...)
439     <p>
440     DUI<br>
441     <a href="http://ca.geocities.com/duitoolkit/">
442     http://ca.geocities.com/duitoolkit/</a>
443
444 <hr><h4>9/6/03 Simon J Mackenzie <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/16594">writes</a>:</h4>
445
446     Hi guys,<br>
447     I've updated d.xml for Kate D Syntax Highlighting to support D 0.71.
448     The update is available at
449     <a href="http://users.tpg.com.au/smackoz/projects/d/d.0.03.tar.bz2">
450     http://users.tpg.com.au/smackoz/projects/d/d.0.03.tar.bz2</a>
451
452
453 <hr><h4>9/4/03 Kazuhiro Inaba writes:</h4>
454
455     I translated the reference document for D to Japanese:
456     <a href="http://www.kmonos.net/alang/d/">
457     http://www.kmonos.net/alang/d/</a>
458     to make the D language more popular among all programmers in japan. :)
459     <p>
460
461     A few pages ( D String/Complex/DbC vs C++'s ) are not done yet,
462     but i'll finish them soon.
463
464
465 <hr><h4>8/25/03 Ben Hinkle <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/16152">writes</a>:</h4>
466
467     I've put a first cut at an emacs mode for D in the uploads section of
468     <p>
469     <a href="http://dlanguage.netunify.com/38">
470     http://dlanguage.netunify.com/38</a>
471     <p>
472     The basic support is for most of the syntax and keywords and font-lock for
473     highlighting. Some D-specific constructs aren't supported like nested
474     comments (I've been wrestling with cc-engine.el to figure out how cc-mode
475     parses comments -ugh!), but in general I've found it does a reasonable job
476     with most of the sample files and phobos.
477     <p>
478     Hopefully I'm not sucking up too much of the upload space. If I am I'll find
479     another spot to park it. I also added an entry to that wiki for emacs. I've
480     only tried it on Windows but I don't imagine linux emacs would have any
481     problem.
482     <p>
483     enjoy,<br>
484     -Ben Hinkle
485
486 <hr><h4>8/25/03 Helmut Leitner <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/16123">writes</a>:</h4>
487
488     You may have noticed, that I changed a few things on Wiki4D:
489     <p>
490     - The link bar now contains Index and Folder links.
491     <p>
492     - I changed "Members" and "FolderMembers" to "Contributors"
493       and "FolderContributors" which seems more approriate.
494     <p>
495     I may be a bit disappointing for some that Wikis grow slowly
496     but in fact a Wiki is an invitation to join in for common writing
497     and not the presentation of a sparkling and ready "product".
498     <p>
499     Some pages slowly begin to show shape, like e.g.:
500        <a href="http://www.prowiki.org/wiki4d/wiki.cgi?FaqRoadmap">
501        http://www.prowiki.org/wiki4d/wiki.cgi?FaqRoadmap</a>
502     <p>
503     Things that would be needed but havn't yet evolved:
504     <p>
505        - a page for ongoing projects (although there is an incomplete
506          list on the FrontPage)
507     <p>
508        - a page for wanted projects, although there is
509          <a href="http://www.prowiki.org/wiki4d/wiki.cgi?SuggestedProjects">
510          http://www.prowiki.org/wiki4d/wiki.cgi?SuggestedProjects</a>
511     <p>
512        - a page for library design considerations and standards
513     <p>
514     Please take the Wiki as a public space that you are a co-owner of.
515  
516
517
518 <hr><h4>8/13/03 Jussi Jumppanen adds D support to Zeus:</h4>
519
520     The latest version of
521     <a href="http://www.zeusedit.com">Zeus for Windows</a> is finally out.
522     This release comes with D compiler (*) and keywords predefined and it
523     also has a ctags program (xtags.exe) that supports the D language.
524     (*) For the D compiler to work within Zeus the user will need
525     to download and install the compiler from www.digitalmars.com/d/. If
526     it is already installed it should be automatic.
527
528
529 <hr><h4>8/10/03 Ant <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/15425">writes</a>:</h4>
530
531 Well, there you have it, it's the first and second DUI releases!
532 <p>
533 home page (temporary I hope):
534 <p>
535
536 <a href="http://ca.geocities.com/duitoolkit/index.html">
537 http://ca.geocities.com/duitoolkit/index.html</a>.
538 <p>
539
540 download page:
541 <p>
542
543 <a href="http://ca.geocities.com/duitoolkit/downloadPage.html">
544 http://ca.geocities.com/duitoolkit/downloadPage.html</a>
545 <p>
546
547 Some notes:
548 <p>
549
550 This is a very early alpha release to let interested people
551 look at the options an directions DUI is taking.
552 Comments and suggestions are welcome, if you are interested
553 in using DUI this is the time to influence it's devel.
554 <p>
555
556 This is Linux only
557 (other Un*x flavors might be easy to use)
558 <p>
559
560 My Makefiles knowleadge is limited so probably
561 you have to change the Makefile to suit your environment
562
563
564 <hr><h4>8/10/03 Mike Wynn <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/15360">writes</a>:</h4>
565
566 Sean Palmer has kindly send me his Direct3D code. which I've put online for
567 all to use at
568 <a href="http://www.geocities.com/one_mad_alien/dcom_not_dcom.html">
569 http://www.geocities.com/one_mad_alien/dcom_not_dcom.html</a>
570 <p>
571
572 I see from microsofts site that a Quake2 in C#  have just released (source
573 and all) anyone fancy porting it to D ?
574
575
576 <hr><h4>8/7/03 Simon J Mackenzie <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/15153">writes</a>:</h4>
577
578 Hi Guys,
579 <p>
580 D syntax highlighting is to be incorporated with KDE as part of the Kate
581 editor in the future.
582
583 <hr><h4>7/30/03 Charles Sanders <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/14795">writes</a>:</h4>
584
585 Hey all, lots of changes to DIDE its getting close to useable now.  Its at a
586 new site at
587 <p>
588 <a href="http://www.atari-soldiers.com">www.atari-soldiers.com</a>
589 <p>
590 Im planning on adding code browser soon (thanks to keith's great idea of
591 CTAGS! ), and then a dialog editor.
592 <p>
593 I'm waiting on approval from sourceforge for DublN (CPAN like tool ), but
594 they are taking a suspiciously long time to respond.  I would host it but my
595 hosting company doesnt offer mysql, does anyone have any room somewhere so
596 we can get started on this ?
597 <p>
598 I noticed a link called D journal on the DM page, I have room to host it if
599 someone wants to write it ?
600 <p>
601 Charles
602
603
604 <hr><h4>7/30/03 Burton Radons <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/14780">writes</a>:</h4>
605
606 Frank Wills wrote:<br>
607 &gt; Vathix wrote:<br>
608 &gt;&gt; I need a database, I'm sure others will too. Does anyone know of one that<br>
609 &gt;&gt; could be easily used in D? I need it to be efficient and able to be fairly<br>
610 &gt;&gt; large. I attempted to write my own, it failed. I got sick of my data<br>
611 &gt;&gt; corrupting. I did learn from it, though.<br>
612 &gt;&gt;<br>
613 &gt;&gt; If there are no existing databases for use with D, I'll try writing my  own<br>
614 &gt;&gt; again that anyone could use freely, but I'd like some tips and ideas for it.<br>
615 &gt;&gt; What kind of interface would be best for it, etc.<br>
616 &gt;&gt;<br>
617 &gt; You might take a look at <a href="http://www.sqlite.org">www.sqlite.org</a> It's an embeddable sql database<br>
618 &gt; engine that I have used with C++, but have not yet figured out how to<br>
619 &gt; use it directly with D. It may need an intermediate library in C.<br>
620 <p>
621
622 That's a nice little library.  The last one I tried to work with was
623 Berkeley's in Python, and that soured me so bad on small database
624 libraries (the format wasn't portable between Windows and Linux!) that I
625 didn't think there could be a useful one.
626 <p>
627 So I'm working on a wrapper for SQLite that uses the DLL and supplies a
628 class, including little niceties like buffered table modifications.  A
629 beta should be done in a couple of hours.
630 <p>
631 I've attached the <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/14780">import library and import headers</a> for them.  You'll
632 need the DLL from the SQLite site.  This should also work on the Linux
633 side using the .so.
634
635
636 <hr><h4>7/30/03 Jon Frechette <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/14716">writes</a>:</h4>
637
638 Hi folks,
639 <p>
640 I've just started trying to learn the D language and I really like it so
641 far. It seems that the example code included with the compiler is pretty
642 short on language features and uses no OOP at all. So, I created another
643 version of the wordcount program that uses every D feature I could learn.
644 <p>
645 I have <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/14718">attached</a> the source code in case it might be of some value to
646 Walter's effort.
647 <p>
648 Ps:  I may have recreated the wheel in places, so any comments would be
649 welcomed by this newbie.
650 <p>
651 Thanks
652
653
654
655 <hr><h4>7/29/03 Simon J Mackenzie writes:</h4>
656
657 Walter,<br>
658 can you please provide an updated list of key words (reserved
659 identifiers) and I'll update d.xml to reflect the changes.
660 <p>
661 Here's a <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/14713">1st cut</a>
662 at systax highlighting for the KDE Advance Text Editor.
663 <p>
664 d.xml needs to be placed in $HOME/.kde/share/apps/katepart/syntax
665 <p>
666 Simon
667
668
669 <hr><h4>7/27/03 Marten Ask writes:</h4>
670
671 Hello,
672 <p>
673 I've written a very basic cgi module. It parses headers, querystrings and
674 forms as well as getting and settings cookies. It needs lots of more work,
675 but is quite useful already. Anyway, I've tested it a little and was hoping
676 that others might test it aswell so I can add useful stuff. I've only used
677 PHP before and all this strong typing really hurts my brain! :-$(RPAREN) So I could
678 use some help..
679 <p>
680 Anyway, I'll send the
681 <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/14633">module</a>
682 along and here's a small test program I wrote:
683
684 -----------
685 import cgi;
686
687 void main()
688 {
689  Request req = new Request();
690  Response res = new Response();
691
692  if(req.serverVariable("REQUEST_METHOD") == "POST")
693  {
694   char[] name = req.formString("name"); // returns formfield value as string
695   char[] comment = req.formString("comment");
696   res.cookie("name", name, "", "", "", 0);
697   res.write("&lt;html>\n&lt;head>\n&lt;title>CGI-test&lt;/title>\n&lt;/head>\n");
698   res.write("&lt;body>\n");
699   res.write("Hello &lt;b>"~name~"&lt;/b>&lt;p>\n");
700   res.write("You wrote:\n");
701   res.write("&lt;blockquote>&lt;b>\""~comment~"\"&lt;/b>&lt;/blockquote>\n");
702   res.write("&lt;a href='cgitest.exe'>Back to form&lt;/a>");
703   res.write("&lt;/body>&lt;/html>");
704   res.flush();
705  }
706  else
707  {
708   char[] cookie;
709   try
710   {
711    cookie = req.cookie("name");
712   }
713   catch(CGIError) // cookie wasn't set!
714   {
715    cookie = "";
716   }
717
718   printf(res.getHeaders()~"\n\n");
719   printf("&lt;html>\n&lt;head>\n&lt;title>CGI-test&lt;/title>\n&lt;/head>\n");
720   printf("&lt;body>\n");
721   printf("&lt;form method='post' action='cgitest.exe'>\n");
722   printf("Name: &lt;input type='text' name='name' value='%.*s'>&lt;br>\n",cookie);
723   printf("Comment: &lt;input type='text' name='comment'>&lt;br>\n");
724   printf("&lt;input type='submit' value='Send!'>\n");
725   printf("&lt;/form>&lt;/body>&lt;/html");
726  }
727 }
728 -----------
729
730 <hr><h4>7/24/03 Burton Radons <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/14520">writes</a>:</h4>
731
732     Terry Bayne wrote:<br>
733     &gt; Just to avoid confusion, by "singleton" I mean an object of which only one <br>
734     &gt; instance can be instanciated, and any subsequent attempts to create an <br>
735     &gt; instance of the object return a reference to the first one created.<br>
736     <p>
737
738     Not through direct syntax.  You can synthesize one using a static member
739     and function.  You can also force memory recycling:
740
741 -----------
742 class Singleton
743 {
744     static Singleton singleton;
745
746     new (uint size)
747     {
748     if (singleton === null)
749     {
750         singleton = (Singleton) new void * [(size + 3) / 4];
751         singleton.init ();
752     }
753     return singleton;
754     }
755
756     /* This is used instead of a constructor to avoid having the
757        constructor called multiple times. */
758     void init ()
759     {
760     /* Prepare the singleton. */
761     }
762 }
763
764 Singleton a = new Singleton (); /* Create the new singleton. */
765 Singleton b = new Singleton (); /* Recycle the old singleton. */
766 -----------
767
768     Unfortunately one can't create a Singleton base class that would have
769     the inherited property, because "new" isn't passed the ClassInfo.
770     <p>
771
772     One might ask what I'm doing using "new void * [size / 4]" instead of
773     "new ubyte [size]".  Once the GC is type-aware, casting between an array
774     of values and an object reference will result in any pointers in the
775     object being collected.  I think I've advocated putting in casting
776     limitations to prevent the problem before, but in any case I am now; you
777     should not be able to cast between a value array and a pointer.
778
779
780 <hr><h4>7/18/03 Simon J Mackenzie <a href="http://www.digitalmars.com/drn-bin/wwwnews?D/14437">writes</a>:</h4>
781
782 Updated - Added README, D Icons and added x-dsrc.desktop for KDE D file
783 extension support.
784 <p>
785
786 Link is now
787 <a href="http://users.tpg.com.au/smackoz/projects/d/d_kde_support.tar.bz2">
788 http://users.tpg.com.au/smackoz/projects/d/d_kde_support.tar.bz2</a>
789 <p>
790
791 Simon J Mackenzie wrote:<br>
792 &gt; I've created some Linux mime type images for D.  You can download the <br>
793 &gt; tar.bz2 files with all requred images, 16x16, 22x22, 32x32, 48x48, <br>
794 &gt; 64x64, 128x128 from <a href="http://users.tpg.com.au/smackoz/">http://users.tpg.com.au/smackoz/</a><br>
795 &gt; <br>
796 &gt; Use the dmd.png image to impove the appearance of your folder image for <br>
797 &gt; DMD (works with KDE, ??other desktops??).<br>
798 &gt; <br>
799 &gt; Simon<br>
800 &gt;
801
802
803 <hr><h4>7/8/03 Burton Radons writes:</h4>
804
805 Andrew Edwards wrote:
806 <p>
807
808 &gt; Is it possible to download a file from the internet through a D program?<br>
809 &gt; Where might I find instructions on how to do such a thing?
810 <p>
811
812 I put up a library for doing this back in March.  Here's a copy of the
813 release notes:
814 <p>
815
816 I've put up a simple URL loading library at
817 (http://www.opend.org/urllib.zip).  It requires dig to be installed,
818 although it doesn't use it, just digc.  Comes with the documentation. It
819 has the functions:
820 <p>
821
822 urlopen: Open a URL as a stream (http, file, ftp, nntp, and dict schema
823 supported).<br>
824 urlread: Open a URL and read its contents.<br>
825 urllistdir: List a directory, return an array of URLStat (file and ftp
826 schema supported).<br>
827 urlencode, urldecode: Encode and decode the URL.  The above functions
828 expect a decoded URL.
829 <p>
830
831 There's also a small, simple, not-thought-out sockets library.
832
833
834 <hr><h4>6/27/03 Vathix writes:</h4>
835
836 I have a dedicated IRC network up and running, which will be perfect for D
837 projects and discussion in real-time.
838 You're all welcome to connect irc.dprogramming.com or d-irc.vathix.com and
839 you'll probably want to /join #D
840 Some of the features: bot friendly, low ping time, reliable, free, open to
841 developers of all levels, experienced developers available, exciting
842 hangout.
843 There aren't any nickname or channel registration services yet, I'm
844 currently working on that in D.
845 If anyone doesn't know about IRC just reply and I'll explain.
846
847 <hr><h4>6/25/03 Benji Smith writes:</h4>
848
849 <pre>
850 I may be missing something, but I haven't found any information in the D
851 documentation for how to declare associative array literal values all at once.
852
853 For example, once I've declared an array as:
854
855 char[char[]][] myArray;
856
857 I can now only add values to that array one at a time, as follows:
858
859 myArray["red"] = "ff0000";
860 myArray["green"] = "00ff00";
861 myArray["green"] = "0000ff";
862
863 What I'd like to be able to do (especially in cases where I have lots of values
864 to add to the array) would look something like this:
865
866 myArray = {
867
868 "red" => "ff0000",
869 "green" => "00ff00",
870 "blue" => "0000ff"
871
872 };
873
874  ..or something like that. I don't really care about the {} braces or the =>
875  operator, but I would like something that lets me declare an associative array
876  literal, just like I can declare a static array using the code:
877
878 int[] def = { 1, 2, 3 };
879 </pre>
880
881
882 <hr><h4>6/19/03 Mark Evans writes:</h4>
883
884     Since D aspires to be a systems language, more attention
885     should be paid to novel architectures, especially those
886     targeting D's favorite topic, runtime performance.
887     This group is working on novel memory controllers and
888     associated compiler tools.
889     <p>
890     http://www.cs.utah.edu/impulse/
891     <p>
892     "Von Neumann's prediction of 1945 continues to hold true -
893     memory is the primary system bottleneck."
894
895
896 <hr><h4>6/17/03 Daniel Yokomiso writes:</h4>
897
898     Hi,<p>
899
900     The ICFP 2003 is coming ( http://icfpcontest.org/ ), going from
901     2003-06-28 to 2003-06-30. Are people here interested in losing a weekend for
902     it. I know I am ;$(RPAREN)<br>
903     As usual we have no idea about this year's task, but I think a team of 3
904     to 6 developers should be enough. Also if we give it a shot and get
905     ourselves a nice place we could get some attention for D.
906
907 <hr><h4>5/30/03 Alisdair Meredith writes:</h4>
908
909     Following up some recent debate in the Borland Delphi newsgroups about
910     this page [http://www.digitalmars.com/d/index.html] I would like to
911     query a couple of items in the list.  (I expect you will get a message
912     or two with Delphi's capabilities shortly <g>)
913     <p>
914
915     i/ Huge play is made on the versatility of array type, which seems
916     somewhat unfair to languages that explictly support the listed behaviour
917     in their STANDARD libraries that are expected as part of a conforming
918     implementation.
919     <p>
920
921     Specifically, C++ does not have 'resizable arrays' as a langauge
922     feature because they are in the standard library, std::vector.  There is
923     no likelihood any proposal to add such a feature to the language would
924     ever pass committee because it is already required to be present (in the
925     library) in any conforming C++ implementation.
926     <p>
927
928     While I can understand your desire to show your own product in the best
929     possible light, I would like to at least see a 3rd option between 'yes'
930     and 'no' for features implemented in the standard library of other
931     languages (rather than 3rd party libraries, no matter how common)
932     <p>
933
934     Suggest a 'LIB' cell coloured yellow.
935     <p>
936
937     [otherwise such clear bias on something I do know well will give me
938     doubts about other items I am less clear on, see below]
939     <p>
940
941     Under OOP you say C++ has module support.  News to me, this is one of
942     the most requested extensions to the library and I still don't know
943     anyone with a clear idea how to approach it!  I suggest you change this
944     to 'No'
945     <p>
946
947     Also, Covariant return types is duplicated in OOP and functions
948     sections, is that intentional?
949     <p>
950
951     Under reliablility I am very surprised that only 'D' rates as unit
952     testable.  I would at least like a link to some material explaining why
953     only 'D' qualifies here.  A good opportunity for a sales pitch if ever I
954     saw one, this is the detail that caught my attention most!!  [Although I
955     don't use Java, I was surprised that its extensive reflection API and
956     unit-testing community did not qualify]
957     <p>
958
959     Again, a footnote explaining why C++ does not support all 'C' types
960     would be useful.  Do you mean C99 here, or are there even more obvious
961     cases I am missing?
962     <p>
963
964     I would be happy to see 'struct member alignment control' dropped from
965     C++ (and presumably C) as this relies on common compiler extensions,
966     rather than true features of the language itself.  If we are going to
967     permit extensions, there are several popular C++ variants supporting
968     delegates, but I would not suggest you add that to the list either <g>
969     Rather, be stricter and say 'no' to struct layout control.
970     <p>
971
972     Last but not least, it would be really nice to turn the logic on the
973     Macro Preprocessor.  The presence of this mis-feature is the cause of
974     endless annoyance to C++, and its lack is certainly another score for
975     'D'.
976     <p>
977
978     Oh, and as a cheeky new feature you might want to add 'reference
979     implementation available' given that I am not yet aware of a conforming
980     C++ implementation [although EDG-based solutions are getting very close
981     now]
982     <p>
983
984     Interesting chart though.  If you can find the people to contribute I
985     would be interested in seeing how Eiffel, Python, Smalltalk and Haskell
986     score as well.
987
988 <hr><h4>5/23/03 Jon Frechette writes:</h4>
989
990     I have been trying to see how far one could go in creating source code
991     documentation by mixing D and DHTML. The idea is to turn the source code
992     into its own dynamic 'Table of Contents'.
993     <p>
994
995     You can see an example of this here:
996     <a href="http://home.mindspring.com/~jonf4/d_docs/base.html">http://home.mindspring.com/~jonf4/d_docs/base.html</a>
997     <p>
998
999     As I am not a D programmer, I used one of Daniel Yukio Yokomiso's Deimos
1000     library files as an example.
1001     <p>
1002
1003     So, is this a good idea ?
1004     <p>
1005
1006     It seems like too much work to write the required HTML by hand. It ought to
1007     be possible to use the D parser to create a d2html program that uses the
1008     parse tree generate the HTML.
1009     <p>
1010
1011     Any thoughts ?
1012
1013 <hr><h4>February 2002 issue</a> of <a href="http://www.ddj.com/">Dr. Dobb's</a>:</h4>
1014
1015     "The D Programming Language"
1016     by Walter Bright
1017
1018 )
1019
1020 Macros:
1021     TITLE=News
1022     WIKI=DNews
Note: See TracBrowser for help on using the browser.