Re: GC vs. Manual Memory Management Real World Comparison

2012-10-23 Thread Rob T
On Tuesday, 23 October 2012 at 16:30:41 UTC, Benjamin Thaut wrote: Here a small update: I found a piece of code that did manually slow down the simulation in case it got to fast. This code never kicked in with the GC version, because it never reached the margin. The manual memory managed

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-23 Thread Rob T
On Tuesday, 11 September 2012 at 10:28:29 UTC, bearophile wrote: SomeDude: It's a bad solution imho. Monitoring the druntime and hunting every part that allocates until our codebase is correct like Benjamen Thaut is a much better solution Why do you think such hunt is better than letting

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-24 Thread Rob T
On Wednesday, 24 October 2012 at 12:21:03 UTC, Paulo Pinto wrote: Having dealt with systems programming in languages with GC (Native Oberon, Modula-3), I wonder how much an optional GC would really matter, if D's GC had better performance. -- Paulo Well, performnce is only part of the GC

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-24 Thread Rob T
On Wednesday, 24 October 2012 at 21:02:34 UTC, Paulo Pinto wrote: So I always take the assertions that manual memory management is a must with a grain of salt. -- Paulo Probably no one in here is thinking that we should not have a GC. I'm sure that many applications will benefit from a GC,

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-25 Thread Rob T
On Thursday, 25 October 2012 at 02:15:41 UTC, Jakob Ovrum wrote: You can very much link to C and C++ code, or have C and C++ code link to your D code, while still using the GC, you just have to be careful when you send GC memory to external code. You can even share the same GC between

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-25 Thread Rob T
On Thursday, 25 October 2012 at 08:50:19 UTC, Jakob Ovrum wrote: You are right that compiling the runtime itself (druntime and Phobos) as a shared library is not yet fully realized, but that doesn't stop you from compiling your own libraries and applications as shared libraries even if they

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-25 Thread Rob T
On Thursday, 25 October 2012 at 02:15:41 UTC, Jakob Ovrum wrote: You can even share the same GC between dynamic libraries and the host application (if both are D and use GC, of course) using the GC proxy system. What is the GC proxy system, and how do I make use of it? --rt

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-26 Thread Rob T
On Friday, 26 October 2012 at 14:21:51 UTC, bearophile wrote: But in the main() I have also had to use a deprecated delete, because otherwise the GC doesn't deallocate the arrays and the program burns all the memory (setting the array to null and using GC.collect() isn't enough). This is not

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-26 Thread Rob T
On Friday, 26 October 2012 at 23:10:48 UTC, bearophile wrote: Rob T: Is this happening with dmd 2.060 as released? I'm using 2.061alpha git head, but I guess the situation is the same with dmd 2.060. The code is linked in my post, so trying it is easy, it's one small module. Bye

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-26 Thread Rob T
On Saturday, 27 October 2012 at 01:03:57 UTC, Rob T wrote: On Friday, 26 October 2012 at 23:10:48 UTC, bearophile wrote: Rob T: Is this happening with dmd 2.060 as released? I'm using 2.061alpha git head, but I guess the situation is the same with dmd 2.060. The code is linked in my post

Re: GC vs. Manual Memory Management Real World Comparison

2012-10-26 Thread Rob T
On Saturday, 27 October 2012 at 01:03:57 UTC, Rob T wrote: On Friday, 26 October 2012 at 23:10:48 UTC, bearophile wrote: Rob T: Is this happening with dmd 2.060 as released? I'm using 2.061alpha git head, but I guess the situation is the same with dmd 2.060. The code is linked in my post

Re: Remus

2012-10-29 Thread Rob T
On Tuesday, 9 October 2012 at 21:31:48 UTC, bearophile wrote: use statements are converted to one or more alias' and namespaces to (mixin) templates. But what are they useful for? Namespaces can be useful for organizational reasons. For example they can be used for grouping a collection of

Re: vibe.d 0.7.9 released

2012-10-31 Thread Rob T
On Wednesday, 31 October 2012 at 06:59:45 UTC, Sönke Ludwig wrote: Changes: - New HTML form interface generator similar to the REST interface generator that simplifies web front end development: http://vibed.org/api/vibe.http.form/registerFormInterface (thanks to Robert Klotzner aka

Re: vibe.d 0.7.9 released

2012-11-01 Thread Rob T
On Wednesday, 31 October 2012 at 16:19:01 UTC, Sönke Ludwig wrote: Am 31.10.2012 17:11, schrieb Rob T: On Wednesday, 31 October 2012 at 06:59:45 UTC, Sönke Ludwig wrote: Changes: - New HTML form interface generator similar to the REST interface generator that simplifies web front end

Re: vibe.d 0.7.9 released

2012-11-01 Thread Rob T
On Thursday, 1 November 2012 at 19:23:49 UTC, Jacob Carlborg wrote: On 2012-11-01 19:53, Rob T wrote: I know that the druntime will not link as-is without a rebuild to enable PIC, so have you found this to be a problem, not using shared libs, or have you rebuilt druntime to allow

Re: vibe.d 0.7.9 released

2012-11-02 Thread Rob T
On Friday, 2 November 2012 at 11:27:22 UTC, Sönke Ludwig wrote: Am 01.11.2012 19:53, schrieb Rob T: I would like to have/add std.concurrency style message passing on top though, as that sometimes is actually quite convenient and of course it's also a very safe way to handle communication

Re: Andrei speaks at MIT on Nov 26

2012-11-12 Thread Rob T
On Tuesday, 13 November 2012 at 00:05:45 UTC, deadalnix wrote: Le 12/11/2012 11:18, Walter Bright a écrit : http://www.csail.mit.edu/events/eventcalendar/calendar.php?show=eventid=3531 As usual, will it be recorded ? When I first found out about D, I watched a recording from a conference,

Re: Andrei speaks at MIT on Nov 26

2012-11-12 Thread Rob T
On Tuesday, 13 November 2012 at 06:05:12 UTC, Andrej Mitrovic wrote: On 11/13/12, Rob T r...@ucora.com wrote: Links to the recordings and notable articles on this webpage would of course be useful too. http://prowiki.org/wiki4d/wiki.cgi?Videos Hopefully that page gets significantly larger

Re: [OT] Clang seems to implement modules

2012-11-19 Thread Rob T
On Sunday, 18 November 2012 at 17:51:25 UTC, Peter Alexander wrote: I get the feeling that the C++ standards committee was formed to serve Boost developers. Not that this means anything sinister represents a conflict of interest, but ... http://www.boost.org/users/faq.html Is there a

Re: DVM - D Version Manager 0.4.1

2012-11-30 Thread Rob T
On Friday, 30 November 2012 at 07:31:51 UTC, Jacob Carlborg wrote: On 2012-11-30 08:31, Jacob Carlborg wrote: As 1100110 said, if you install ia32-libs it will work. I compiled it on Debian 6 64bit. That is, you can download the 32bit version of DVM. OK thanks, I was just checking to make

Re: ICE 0.1: a moddable shoot-em-up in D

2012-12-21 Thread Rob T
I get a few compilation errors using dmd 2.060, nothrow that can throw, pure that calls impure, as well as several warnings such as unreachable code and warnings concerning @safe and @trusted. After patching some of it up to get rid of the fatal compile errors, this last error left me

Re: ICE 0.1: a moddable shoot-em-up in D

2012-12-21 Thread Rob T
On Saturday, 22 December 2012 at 00:48:51 UTC, Kiith-Sa wrote: Are you sure you cloned ICE, not DPong? DPong was an older project that is unmaintained; although ICE reuses some of its code. ICE is developed with 2.060 and there're no compile errors there (although there are some warnings due

Re: A look at the D programming language by Ferdynand Górski

2013-01-14 Thread Rob T
On Monday, 7 January 2013 at 22:21:59 UTC, Chris wrote: Another thing, IMO, is that there is an overemphasis on C++ vs. D. Usually people have to choose between systems programming (learn C/C++) or high level (learn Python, Ruby etc.). Most non-programmers who need to write a piece of software

Re: A look at the D programming language by Ferdynand Górski

2013-01-15 Thread Rob T
On Tuesday, 15 January 2013 at 20:02:58 UTC, Walter Bright wrote: On 1/14/2013 10:30 PM, Rob T wrote: A really important advantage that scripting languages provides that D does not currently provide, is direct runtime interpretation of the language. This is very important for the use cases

Re: A look at the D programming language by Ferdynand Górski

2013-01-22 Thread Rob T
On Tuesday, 22 January 2013 at 03:00:59 UTC, deadalnix wrote: The sane option are either to acknowledge that code is in a text file and choose syntax construct that make it readable (python) or decorrelate the presentation of the code from its actual form in the file and use a formatted. Out

Re: Programming in D book is about 78% translated

2013-02-01 Thread Rob T
On Friday, 1 February 2013 at 19:27:11 UTC, Ali Çehreli wrote: On 02/01/2013 11:12 AM, Andrej Mitrovic wrote: On 2/1/13, Ali Çehreliacehr...@yahoo.com wrote: I have continued with the translation of the book. Very cool! Btw, a section from the book: // Do not use the older syntax:

Re: Higgs, a JavaScript JIT done in D

2013-02-04 Thread Rob T
On Sunday, 3 February 2013 at 21:05:57 UTC, Peter Alexander wrote: On Sunday, 3 February 2013 at 18:24:05 UTC, Dejan Lekic wrote: Welcome to reality Bearophile!!! In real projects people do the job as best as they can at the moment, and they probably, and with right, do not care what people

Re: Higgs, a JavaScript JIT done in D

2013-02-04 Thread Rob T
It would be nice to know why she choose D. Possibly the reason is because she wanted to write code quickly, which is one of the advantages that D is supposed to provide over some other languages. --rt

Re: Another opportunity for a major design win has presented itself

2013-02-08 Thread Rob T
On Thursday, 7 February 2013 at 20:16:03 UTC, Walter Bright wrote: No, I can't say who it is at this time. Sorry. But it is a huge opportunity for us. To get the design win, we need to: (a) get dynamic linking and loading to work (b) improve language safety without degrading efficiency (c)

Re: Another opportunity for a major design win has presented itself

2013-02-08 Thread Rob T
The compiler currently has an option -shared for generating a shared library. It also has an option -fPIC for generating position independent code. If option -shared is selected, will it automatically generate as PIC, or do you have to also specify -fPIC? --rt

Re: Rust vs Dlang

2013-03-17 Thread Rob T
On Saturday, 16 March 2013 at 14:42:58 UTC, Suliman wrote: Hi folks! I had wrote small article about Rust vs D. I hope that you will like it! http://versusit.org/rust-vs-d I agree, only Rust seems to compete with D for the goal as being a real alternative to C/C++. Interesting read

Re: Reviving BulletD -- again

2013-04-14 Thread Rob T
There was a fair amount of talk in the general discussion forum about automatically converting the dmd C sources into D, so there may be some advice or ideas in there that may apply, although perhaps the biggest difficulty is that the Bullet API is C++ not C. Just a wild thought and probably

Re: DConf 2013 Opening Keynote by Walter Bright: video and slides available

2013-05-09 Thread Rob T
On Thursday, 9 May 2013 at 05:15:46 UTC, Nick Sabalausky wrote: On Thu, 09 May 2013 02:07:12 +0200 Rob T al...@ucora.com wrote: It would be even better if the torrent contained the original video. Is it available for download somewhere? No, not unless Andrei puts it somewhere. I'm still

Re: DConf 2013 Opening Keynote by Walter Bright: video and slides available

2013-05-09 Thread Rob T
On Thursday, 9 May 2013 at 07:12:42 UTC, Nick Sabalausky wrote: On Thu, 09 May 2013 08:46:01 +0200 Rob T al...@ucora.com wrote: Here's another FF addon for video downloading (and files too), it works for me quite well. https://addons.mozilla.org/en-US/firefox/addon/video-downloadhelper

Re: DMD 2.063 for Windows

2013-05-29 Thread Rob T
On Wednesday, 29 May 2013 at 21:23:26 UTC, Andrei Alexandrescu wrote: On 5/29/13 5:07 PM, Rob T wrote: On Wednesday, 29 May 2013 at 09:15:49 UTC, Jacob Carlborg wrote: On 2013-05-29 09:54, Wolfgang Mayer wrote: Hi! The suppposed link to the Windows installer version DMD 2.063 acutally loads

Re: dmd 2.063 released with 260 bugfixes and enhancements

2013-05-30 Thread Rob T
Awesome job to all contributors, it's looking much better, and yes the change log with examples is a very noticeable part of the improvement. I noted some comments about the server being under too much load. Any thought put into adding an official torrent for downloads? That may help ease up

Re: dmd 2.063 released with 260 bugfixes and enhancements

2013-05-30 Thread Rob T
On Thursday, 30 May 2013 at 22:04:07 UTC, Andrej Mitrovic wrote: On 5/30/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Hello, We seem to have a regression affecting the zipped release: http://d.puremagic.com/issues/show_bug.cgi?id=10215 But I can't recreate this in git-head.

Re: dmd 2.063 released with 260 bugfixes and enhancements

2013-05-30 Thread Rob T
On Friday, 31 May 2013 at 01:36:15 UTC, Nick Sabalausky wrote: That's more-or-less what already happens, the only difference is that (to my knowledge) there's no link to it on the downloads page. Although, we probably could use more time between all known regressions in beta fixed and the

Re: dmd 2.063 released with 260 bugfixes and enhancements

2013-05-31 Thread Rob T
On Friday, 31 May 2013 at 14:08:17 UTC, Leandro Lucarella wrote: About this, AFAIK 2.063.1 is really what's in the release, but the binary version number (and the zip name) have only 2.063. I think that should be fixed and the real version number should be present in both downloadables and

Re: DConf 2013 Day 2 Talk 6: Higgs, an experimental JIT compiler written in D by Maxime Chevalier-Boisvert

2013-06-14 Thread Rob T
On Saturday, 8 June 2013 at 22:55:20 UTC, Walter Bright wrote: On 6/8/2013 2:23 PM, bearophile wrote: - D integer types have guaranteed sizes, but they're not obvious from the name - Why not have int8, uint8, int32, uint32, etc. in default namespace, encourage their use? I agree. It's hard

Re: Announcing bottom-up-build - a build system for C/C++/D

2013-06-26 Thread Rob T
This build system seems to be very well suited for building complex large projects in a sensible way. I successfully tested the example build on Debian linux. I will definitely explore this further using one of my own projects. One issue I immediately ran into, is when I run bub incorrectly

Re: Announcing bottom-up-build - a build system for C/C++/D

2013-06-28 Thread Rob T
On Thursday, 27 June 2013 at 23:03:40 UTC, Graham St Jack wrote: This isn't a build tool for everyone, but it really does make a big difference on big projects. Well I'm noticing some interesting concepts, such as being able to associate an include or import file with the library to link

Re: Is this D or is it Javascript?

2013-07-05 Thread Rob T
There are many cases where you do not know in advance what type of data is being received through an interface to some other system. This happens with some databases, and with messaging systems, and if you are interfacing to any dynamically or weakly typed language, such as with js/json. I

Re: Is this D or is it Javascript?

2013-07-05 Thread Rob T
On Friday, 5 July 2013 at 23:04:28 UTC, Adam D. Ruppe wrote: Maybe, but that would still be limited to a list of types. What would be ideal is if alias this or opImplicitCast existed, or implicit constructors like C++ has for function calls and could be a template: T get(T)() { ...}