Re: gl3n - linear algebra and more for D

2011-12-05 Thread David
Am 05.12.2011 04:00, schrieb bls: On 12/04/2011 03:39 PM, bearophile wrote: This seems the 15th D implementation of certain things I've seen so far. Also to avoid further duplication I'd like 2D/3D/4D vectors (for game or graphics purposes) in Phobos. Isn't he a nice guy ? Since 5, maybe 6,

Re: gl3n - linear algebra and more for D

2011-12-05 Thread ParticlePeter
Hi David, what a lovely Library, very useful for me right now. I am using Derelict and have just right now written my first Shader Projection Matrix ( as Uniform ). As far as I can see, there is no code for a Projection Matrix in your Lib ( ignore this if I have just missed it ), so the

Re: gl3n - linear algebra and more for D

2011-12-05 Thread David
Am 05.12.2011 13:30, schrieb ParticlePeter: Hi David, what a lovely Library, very useful for me right now. I am using Derelict and have just right now written my first Shader Projection Matrix ( as Uniform ). As far as I can see, there is no code for a Projection Matrix in your Lib ( ignore

Re: gl3n - linear algebra and more for D

2011-12-05 Thread ParticlePeter
Hi, and sorry, I found the perspective method just right now :-) Unfortunately this does not help, still having issues. I will ask on the VisualD Forum. Meanwhile, I just copied the files into my project dir, and there it works fine, so I can play around :-) Cheers, ParticlePeter

Re: dmd 1.071 and 2.056 release

2011-12-05 Thread storm
+1

D Addin for MonoDevelop on Linux

2011-12-05 Thread alex
Hi everyone, I just want to announce the first alpha release of Mono-D. FYI, Mono-D is a MonoDevelop AddIn which provides code completion/refactoring features and project management for D. So, you'll be able to enjoy comfort-features also on non-windows systems! Just check out

Release: MinGW GCC 4.6.1 GDC 1.070/2,.055

2011-12-05 Thread Daniel Green
://bitbucket.org/goshawk/gdc/downloads/gcc-4.6.1-tdm-1-gdc-7e22befef29c-20111205.zip All MinGW GDC downloads. It's highly recommended to ignore all prior builds. TLS *will* not work. https://bitbucket.org/goshawk/gdc/downloads All patches, source files and build scripts can be found at https

Re: Release: MinGW GCC 4.6.1 GDC 1.070/2,.055

2011-12-05 Thread Trass3r
is the only option at all to produce Win64 binaries. (and of course beginning with Win7 everyone should use an x64 OS anyway ;)) * 7-zip format for size reasons: http://7-zip.org perfect. This release https://bitbucket.org/goshawk/gdc/downloads/gcc-4.6.1-tdm-1-gdc-7e22befef29c-20111205.zip

Re: Release: MinGW GCC 4.6.1 GDC 1.070/2,.055

2011-12-05 Thread Daniel Green
On 12/5/2011 8:28 PM, Trass3r wrote: Why is D1 still the default? Because this is the first release where I felt D2 was capable of being the default and I forgot about it until writing the post. It also requires some reworking of the changes that enable dual compilers. but why is there a

Re: Release: MinGW GCC 4.6.1 GDC 1.070/2,.055

2011-12-05 Thread Trass3r
Why is D1 still the default? Because this is the first release where I felt D2 was capable of being the default and I forgot about it until writing the post. It also requires some reworking of the changes that enable dual compilers. but why is there a zip version anyway? I posted with a

Re: gl3n - linear algebra and more for D

2011-12-05 Thread Mike Parker
On 12/5/2011 10:49 PM, ParticlePeter wrote: Hi, and sorry, I found the perspective method just right now :-) Unfortunately this does not help, still having issues. I will ask on the VisualD Forum. Meanwhile, I just copied the files into my project dir, and there it works fine, so I can play

Re: Release: MinGW GCC 4.6.1 GDC 1.070/2,.055

2011-12-05 Thread bearophile
Daniel Green: * -v1(default) compiles for D1. I suggest to make D2 the default. I have installed the latest TDM GCC in C:\MinGW Then I have unpacked the 7-zip over the directories of the MinGW install. 150+ files got overwritten, some executables too. I have made sure C:\MinGW\bin and

Re: Release: MinGW GCC 4.6.1 GDC 1.070/2,.055

2011-12-05 Thread Daniel Green
On 12/5/2011 9:47 PM, bearophile wrote: I suggest to make D2 the default. That's the plan. I have installed the latest TDM GCC in C:\MinGW Then I have unpacked the 7-zip over the directories of the MinGW install. 150+ files got overwritten, some executables too. I have made sure

New homepage design of d-p-l.org is now live. eom

2011-12-05 Thread Andrei Alexandrescu
http://d-p-l.org Andrei

Re: D Addin for MonoDevelop on Linux

2011-12-05 Thread alex
1) Code completion can be enabled via adding phobos library paths etc. to the compiler configuration(s). There's a tutorial how to do this in the 'Getting Started' section of the project site. 2) You can add per-project (both linker and compiler) parameters. Extra include paths and library

Re: D Addin for MonoDevelop on Linux

2011-12-05 Thread Andrej Mitrovic
You've mentioned you made a fix for the project settings bug, but did you upgrade the plugin? In the updates section it says no updates are available. I've used MonoD for a while before and it looks like a very nice IDE. :)

Re: New homepage design of d-p-l.org is now live. eom

2011-12-05 Thread Nick Sabalausky
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:jbka3d$2r2m$2...@digitalmars.com... http://d-p-l.org Nice, but a little reminder that the See Example links are still totally broken without JS. Should be easy to fix. May want to just simply them all shown by default

Re: javascript (was Re: Java Scala - new thread: GUI for D)

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 07:59, Nick Sabalausky wrote: Jacob Carlborgd...@me.com wrote in message news:jbglgs$2no2$1...@digitalmars.com... I think CoffeeScript works really well, it's been around a while and it's the default way to handle JavaScript in Rails 3.1 and later versions (SASS is the default

Re: javascript (was Re: Java Scala - new thread: GUI for D)

2011-12-05 Thread bearophile
Jacob Carlborg: I think they're good languages, regardless of the indent-syntax or not. CoffeeScript and Ruby share a couple of language features that I'm not sure if Python does: * Instance variables start with @ (shortcut for this. in CS) * Functions can be called without parentheses

Re: Java Scala

2011-12-05 Thread Johannes Pfau
Andrej Mitrovic wrote: On 12/3/11, Jonathan M Davis jmdavisp...@gmx.com wrote: If you have a considerably better proposal for std.signals Johannes Pfau made an updated one, not me. And I'd rather use it for a while and hack in new features when necessary and debug it properly than shove it into

Re: Second Round CURL Wrapper Review

2011-12-05 Thread Marco Leise
Am 04.12.2011, 15:36 Uhr, schrieb Vladimir Panteleev vladi...@thecybershadow.net: On Sun, 04 Dec 2011 16:33:52 +0200, Marco Leise marco.le...@gmx.de wrote: Am 04.12.2011, 14:02 Uhr, schrieb Jacob Carlborg d...@me.com: On 2011-12-03 05:26, dsimcha wrote: I volunteered ages ago to manage

Re: rt_finalize WTFs?

2011-12-05 Thread Rainer Schuetze
Last time I looked at it, the try/catch/finally block was rather expensive because it always invokes the exception handler unwinding mechanism, even if no exception occurs. Try moving the try/catch block out of the loops that call rt_finalize. (maybe just remove it, onFinalizeError just

Re: Immutable Message Passing

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 08:25, Graham St Jack wrote: I always use arrays or structs. Until the tail-const thing (or something like it) happens, classes don't seem to be viable in messages between threads. You can always serialize the object, if a copy is acceptable. -- /Jacob Carlborg

Re: Java Scala - new thread: GUI for D

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 08:17, Adrian wrote: Yes it is - but did you ever tried haXe ? IMO it is the best cross platform language around - you target JavaScript, Flash, PHP, NEKO, C++ and soon Java and C# with one language. Typesafe with type inference, compiled and code completion support from the

Re: Java Scala - new thread: GUI for D

2011-12-05 Thread Somedude
Le 03/12/2011 07:54, Gour a écrit : Just, curious what would be your choise for multi-platform GU app: gtk, qt or wx? Sincerely, Gour 1) By far wxWidgets because it's native and stable 2) FLTK because it's small, fast and supports OpenGL, allowing for custom interfaces. It's also

Re: Java Scala

2011-12-05 Thread Jonathan M Davis
On Monday, December 05, 2011 09:13:57 Johannes Pfau wrote: Andrej Mitrovic wrote: On 12/3/11, Jonathan M Davis jmdavisp...@gmx.com wrote: If you have a considerably better proposal for std.signals Johannes Pfau made an updated one, not me. And I'd rather use it for a while and hack in new

Re: javascript (was Re: Java Scala - new thread: GUI for D)

2011-12-05 Thread Marco Leise
Am 04.12.2011, 21:17 Uhr, schrieb Adam D. Ruppe destructiona...@gmail.com: Jacob Carlborg Wrote: If you like the idea there, but want something a lot more conservative, in my html.d (in here: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff ) there's now

Re: STM [ was Java Scala ]

2011-12-05 Thread Russel Winder
On Sun, 2011-12-04 at 23:08 -0600, Andrei Alexandrescu wrote: [...] Anyway, my comment is strictly on that discussion, not on the entire effort within the Python community. When we were working on D's concurrency model Bartosz pushed for a while quite strongly in favor of STM, but I

Re: Java Scala - new thread: GUI for D

2011-12-05 Thread Adrian
Am 05.12.2011 09:17, schrieb Jacob Carlborg: On 2011-12-05 08:17, Adrian wrote: Yes it is - but did you ever tried haXe ? IMO it is the best cross platform language around - you target JavaScript, Flash, PHP, NEKO, C++ and soon Java and C# with one language. Typesafe with type inference,

Re: Second Round CURL Wrapper Review

2011-12-05 Thread Vladimir Panteleev
On Sun, 04 Dec 2011 22:52:13 +0200, Jonas Drewsen jdrew...@nospam.com wrote: The same applies here because all it comes down to in the end is the sizes of buffers. The async ranges simply allows you to fill a specified number buffers in another thread async. Most OSes also have socket

Re: rt_finalize WTFs?

2011-12-05 Thread Vladimir Panteleev
On Mon, 05 Dec 2011 10:14:00 +0200, Rainer Schuetze r.sagita...@gmx.de wrote: Try moving the try/catch block out of the loops that call rt_finalize. This sounds like a good idea. Just make sure that all code paths that lead to rt_finalize (e.g. delete) can recover from an exception.

Re: Java Scala

2011-12-05 Thread Mirko Pilger
I see. BTW, do you have an examples? entertainment software like media players. and interestingly enough tools for artists often come with non-native guis. e.g. 3d modeler applications (like autodesk maya, blender, luxology modo), pixologic zbrush, adobe after effects, the foundry nuke,

Re: Immutable Message Passing

2011-12-05 Thread Timon Gehr
On 12/05/2011 02:56 AM, bearophile wrote: Timon Gehr: It is not fully implemented and apparently Walter would like a different solution, because it is quite ugly. Do you know why it is ugly? Bye, bearophile It overloads the 'ref' keyword with an unrelated meaning. And furthermore: auto x

Re: javascript (was Re: Java Scala - new thread: GUI for D)

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 10:10, Marco Leise wrote: Am 04.12.2011, 21:17 Uhr, schrieb Adam D. Ruppe destructiona...@gmail.com: Jacob Carlborg Wrote: If you like the idea there, but want something a lot more conservative, in my html.d (in here:

Re: Second Round CURL Wrapper Review

2011-12-05 Thread Vladimir Panteleev
On Mon, 05 Dec 2011 10:12:00 +0200, Marco Leise marco.le...@gmx.de wrote: Polling on the NG has two problems: 1. Polls generate a lot of noise here (single word posts). 2. Counting the results must be done manually. These are rather minor problems. Although voting is not anonymous, you can

Re: Java Scala - new thread: GUI for D

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 10:24, Adrian wrote: Am 05.12.2011 09:17, schrieb Jacob Carlborg: On 2011-12-05 08:17, Adrian wrote: Yes it is - but did you ever tried haXe ? IMO it is the best cross platform language around - you target JavaScript, Flash, PHP, NEKO, C++ and soon Java and C# with one language.

Re: Java Scala

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 12:01, Mirko Pilger wrote: I see. BTW, do you have an examples? entertainment software like media players. and interestingly enough tools for artists often come with non-native guis. e.g. 3d modeler applications (like autodesk maya, blender, luxology modo), pixologic zbrush,

Re: Immutable Message Passing

2011-12-05 Thread Jason House
Timon Gehr Wrote: On 12/05/2011 02:16 AM, Graham St Jack wrote: What is the status of the immutable(Object) ref proposal? Is it on the list of things to do, or is it ruled out? If it is ruled out, then what is the superior proposal? It is not fully implemented and apparently Walter

ow Integers Should Work

2011-12-05 Thread bearophile
Found through Reddit, two blog posts about how integers should behave in system languages (with hardware support): http://blog.regehr.org/archives/641 http://blog.regehr.org/archives/642 Bye, bearophile

Re: The current status of D?

2011-12-05 Thread Don
On 05.12.2011 06:27, Walter Bright wrote: On 12/3/2011 6:53 PM, Don wrote: It's the things like: is (foo bar == super) which I think you can't understand without looking up the spec every time. We still don't have a nice way of expressing such things. I agree, but that's a low priority for

Re: is d-runtime non-gc safe?

2011-12-05 Thread Steven Schveighoffer
On Sat, 03 Dec 2011 12:43:08 -0500, Marco Leise marco.le...@gmx.de wrote: Am 03.12.2011, 10:01 Uhr, schrieb Benjamin Thaut c...@benjamin-thaut.de: Thanks, That doesn't sound to bad. If I manage to get a non leaking non gc version of d-runtime working would there be any interest in that?

Re: rt_finalize WTFs?

2011-12-05 Thread Steven Schveighoffer
On Sun, 04 Dec 2011 20:46:27 -0500, dsimcha dsim...@yahoo.com wrote: I'm at my traditional passtime of trying to speed up D's garbage collector again, and I've stumbled on the fact that rt_finalize is taking up a ridiculous share of the time (~30% of total runtime) on a benchmark where

Re: javascript (was Re: Java Scala - new thread: GUI for D)

2011-12-05 Thread Adam Ruppe
Jacob Carlborg Wrote: for e in arr # do something with the element e Heh, I used to think that would work in regular Javascript, since it does have a for(blah in something) form... But in regular javascript, that only works on objects!

Re: javascript (was Re: Java Scala - new thread: GUI for D)

2011-12-05 Thread Adam Ruppe
Marco Leise Wrote: This is really one of the largest shortcomings of the language that can not be explained with a simple design choice. Aye. One of the newer versions adds a forEach member to the array prototype, that works like this: [1, 2, 3].forEach(function(element) { use element here;

Re: is d-runtime non-gc safe?

2011-12-05 Thread Hans Uhlig
Ok, this is probably a silly question but why are the array appending operations dependent on the GC. Why cant you allocate from a fixed pool? or can you it just requires writing your own malloc/free implementation? On 12/5/2011 5:46 AM, Steven Schveighoffer wrote: On Sat, 03 Dec 2011

Re: ow Integers Should Work

2011-12-05 Thread Don
On 05.12.2011 14:31, bearophile wrote: Found through Reddit, two blog posts about how integers should behave in system languages (with hardware support): http://blog.regehr.org/archives/641 http://blog.regehr.org/archives/642 Bye, bearophile Not very convincing, since he proposes a change

Re: is d-runtime non-gc safe?

2011-12-05 Thread David Nadlinger
On 12/5/11 2:46 PM, Steven Schveighoffer wrote: But what's difficult is finding leaks which don't have any anchor to search for. For example, how do you search for code that allocates an array and *doesn't* deallocate it? By using a decent memory debugger/profiler like Valgrind? David

Re: Immutable Message Passing

2011-12-05 Thread Timon Gehr
On 12/05/2011 02:24 PM, Jason House wrote: Timon Gehr Wrote: On 12/05/2011 02:16 AM, Graham St Jack wrote: What is the status of the immutable(Object) ref proposal? Is it on the list of things to do, or is it ruled out? If it is ruled out, then what is the superior proposal? It is not

Re: is d-runtime non-gc safe?

2011-12-05 Thread Johannes Pfau
Steven Schveighoffer wrote: On Sat, 03 Dec 2011 12:43:08 -0500, Marco Leise marco.le...@gmx.de wrote: Am 03.12.2011, 10:01 Uhr, schrieb Benjamin Thaut c...@benjamin-thaut.de: Thanks, That doesn't sound to bad. If I manage to get a non leaking non gc version of d-runtime working would there

Re: Java Scala - new thread: GUI for D

2011-12-05 Thread Nick Sabalausky
Somedude lovelyd...@mailmetrash.com wrote in message news:jbhquu$1mj2$1...@digitalmars.com... Le 04/12/2011 21:24, Jacob Carlborg a écrit : But the problem remains, CoffeeScript compiles to JavaScript so you are still limited by JS. What about Lua ? I find it pretty powerful for such a

Re: ow Integers Should Work

2011-12-05 Thread Manu
I can agree that in some circumstances, a ranged and saturated integer mode would be REALLY handy (colours, sound samples), but I can't buy in with the whole trapping overflows and stuff... most architectures will require explicit checking of the overflow bit after every operation to support this.

Re: is d-runtime non-gc safe?

2011-12-05 Thread Steven Schveighoffer
On Mon, 05 Dec 2011 11:34:18 -0500, Hans Uhlig hans.uh...@teamaol.com wrote: Ok, this is probably a silly question but why are the array appending operations dependent on the GC. Why cant you allocate from a fixed pool? or can you it just requires writing your own malloc/free

Re: ow Integers Should Work

2011-12-05 Thread Andrei Alexandrescu
On 12/5/11 10:37 AM, Don wrote: On 05.12.2011 14:31, bearophile wrote: Found through Reddit, two blog posts about how integers should behave in system languages (with hardware support): http://blog.regehr.org/archives/641 http://blog.regehr.org/archives/642 Bye, bearophile Not very

Re: ow Integers Should Work

2011-12-05 Thread bearophile
Andrei Alexandrescu: Agreed. One thought that comes to mind is using the small int optimization for BigInt, i.e. use no dynamic allocation and built-in operations whenever possible if the value is small enough. Does BigInt currently do that? Both the small int optimization (32 or 64 bit?

Re: ow Integers Should Work

2011-12-05 Thread Timon Gehr
On 12/05/2011 06:25 PM, Andrei Alexandrescu wrote: On 12/5/11 10:37 AM, Don wrote: On 05.12.2011 14:31, bearophile wrote: Found through Reddit, two blog posts about how integers should behave in system languages (with hardware support): http://blog.regehr.org/archives/641

Re: ow Integers Should Work

2011-12-05 Thread bearophile
Manu: Also, contrary to his claim, I find that wrapping is usually what I DO want in this case.. It's super rare that I write any code that pushes the limits of an int (unless we're talking 8-16 bit, see my range+saturation comment before), and when I do write code that pushes the range of

Re: javascript (was Re: Java Scala - new thread: GUI for D)

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 16:47, Adam Ruppe wrote: Jacob Carlborg Wrote: for e in arr # do something with the element e Heh, I used to think that would work in regular Javascript, since it does have a for(blah in something) form... But in regular javascript, that only works on objects! Yeah,

Re: javascript (was Re: Java Scala - new thread: GUI for D)

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 16:53, Adam Ruppe wrote: Marco Leise Wrote: This is really one of the largest shortcomings of the language that can not be explained with a simple design choice. Aye. One of the newer versions adds a forEach member to the array prototype, that works like this: [1, 2,

Re: is d-runtime non-gc safe?

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 17:56, Johannes Pfau wrote: I'd say don't replace the GC with a simple malloc/free stub, remove it completely. Add a switch to dmd (-nogc) which disables all features which need the gc (especially 'new', array appending, ...). This will break a lot of code, but you won't have

Re: rt_finalize WTFs?

2011-12-05 Thread Martin Nowak
On Mon, 05 Dec 2011 09:14:00 +0100, Rainer Schuetze r.sagita...@gmx.de wrote: Last time I looked at it, the try/catch/finally block was rather expensive because it always invokes the exception handler unwinding mechanism, even if no exception occurs. Try moving the try/catch block out of

Re: Java Scala - new thread: GUI for D

2011-12-05 Thread Jacob Carlborg
On 2011-12-05 18:05, Nick Sabalausky wrote: Somedudelovelyd...@mailmetrash.com wrote in message news:jbhquu$1mj2$1...@digitalmars.com... Le 04/12/2011 21:24, Jacob Carlborg a écrit : But the problem remains, CoffeeScript compiles to JavaScript so you are still limited by JS. What about Lua

Haxe (From: Java Scala - new thread: GUI for D)

2011-12-05 Thread Nick Sabalausky
Adrian adrian.remove-nos...@veith-system.de wrote in message news:jbhr5j$1n9t$1...@digitalmars.com... Yes it is - but did you ever tried haXe ? IMO it is the best cross platform language around - you target JavaScript, Flash, PHP, NEKO, C++ and soon Java and C# with one language. Typesafe

Re: ow Integers Should Work

2011-12-05 Thread Manu
Manu: Also, contrary to his claim, I find that wrapping is usually what I DO want in this case.. It's super rare that I write any code that pushes the limits of an int (unless we're talking 8-16 bit, see my range+saturation comment before), and when I do write code that pushes the

Re: Java Scala - new thread: GUI for D

2011-12-05 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:jbj0lo$mec$1...@digitalmars.com... On 2011-12-05 18:05, Nick Sabalausky wrote: Somedudelovelyd...@mailmetrash.com wrote in message news:jbhquu$1mj2$1...@digitalmars.com... Le 04/12/2011 21:24, Jacob Carlborg a écrit : But the problem

Re: is d-runtime non-gc safe?

2011-12-05 Thread Martin Nowak
On Sat, 03 Dec 2011 19:05:02 +0100, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: +1 on interest on having this. Back when I was attempting to port VST to D I got asked by a Steinberg dev how I can guarantee that D plugins will work. But I couldn't guarantee it, if a GC collection were to

Re: Java Scala - new thread: GUI for D

2011-12-05 Thread Adam Ruppe
Jacob Carlborg Wrote: Do you have any opinion about Dart from Google? Google's MO is generally to take something bad... and make it /worse/. It compiles to Javascript, but script that doesn't actually work everywhere...

Re: The current status of D?

2011-12-05 Thread Manu
On 5 December 2011 15:33, Don nos...@nospam.com wrote: On 05.12.2011 06:27, Walter Bright wrote: On 12/3/2011 6:53 PM, Don wrote: It's the things like: is (foo bar == super) which I think you can't understand without looking up the spec every time. We still don't have a nice way of

Re: Haxe (From: Java Scala - new thread: GUI for D)

2011-12-05 Thread Tobias Pankrath
In that project, Haxe's ability to compile the same code, in the same language, down to both server-side (PHP) and client-side (Flash8) has been an *enormous* benefit. That's what Google Web Toolkit makes possible for Java. It's like SWT for WEB plus easy connections to server.

Re: Haxe (From: Java Scala - new thread: GUI for D)

2011-12-05 Thread Adam Ruppe
Nick Sabalausky Wrote: The only problem now is that that would rule out the possibility of sharing code between both server and client - Which is *NOT* something I want to give up... What kind of code is it? The main reason for the javascript api thing in my web.d is to help minimize the

Re: Haxe (From: Java Scala - new thread: GUI for D)

2011-12-05 Thread Adam Ruppe
Adam Ruppe Wrote: Of course, it keeps the JS down to size... but doesn't actually let you run code on the client written in D. Unless your client is a real application, of course :P I did a Qt app using the modules from a work web app earlier in the year. I interfaced with Qt via a message

Re: ow Integers Should Work

2011-12-05 Thread bearophile
Manu: but I don't believe I'm alone.. the rest of the gamedev community will find D soon enough if the language gets it right... I think games are one of the most important short-term purposes of D, despite I think D was not explicitly designed to write games. If you're suggesting the

Re: ow Integers Should Work

2011-12-05 Thread Walter Bright
On 12/5/2011 5:31 AM, bearophile wrote: Found through Reddit, two blog posts about how integers should behave in system languages (with hardware support): http://blog.regehr.org/archives/641 http://blog.regehr.org/archives/642 Bye, bearophile Lotsa good comments on HN:

Re: ow Integers Should Work

2011-12-05 Thread Paulo Pinto
Am 05.12.2011 19:04, schrieb Manu: Manu: Also, contrary to his claim, I find that wrapping is usually what I DO want in this case.. It's super rare that I write any code that pushes the limits of an int (unless we're talking 8-16 bit, see my range+saturation

Re: Haxe (From: Java Scala - new thread: GUI for D)

2011-12-05 Thread Nick Sabalausky
Adam Ruppe destructiona...@gmail.com wrote in message news:jbj23n$p68$1...@digitalmars.com... Nick Sabalausky Wrote: The only problem now is that that would rule out the possibility of sharing code between both server and client - Which is *NOT* something I want to give up... What kind of

Re: ow Integers Should Work

2011-12-05 Thread Alex Rønne Petersen
On 05-12-2011 20:34, Paulo Pinto wrote: Am 05.12.2011 19:04, schrieb Manu: Manu: Also, contrary to his claim, I find that wrapping is usually what I DO want in this case.. It's super rare that I write any code that pushes the limits of an int (unless we're talking 8-16 bit, see my

Re: is d-runtime non-gc safe?

2011-12-05 Thread Norbert Nemec
On 04.12.2011 21:04, Walter Bright wrote: You're right, except for one point. If we ever do a moving GC, then the GC has to either know about all the pointers (so it can modify them) or the pointers must be 'pinned' (the pointed to object cannot be moved). The way to 'pin' an object in D is to

Re: is d-runtime non-gc safe?

2011-12-05 Thread Walter Bright
On 12/5/2011 11:52 AM, Norbert Nemec wrote: On 04.12.2011 21:04, Walter Bright wrote: You're right, except for one point. If we ever do a moving GC, then the GC has to either know about all the pointers (so it can modify them) or the pointers must be 'pinned' (the pointed to object cannot be

Re: Could D benefit from JIT compiling?

2011-12-05 Thread Hans Uhlig
On 12/2/2011 7:46 AM, Xinok wrote: Reading through the 'Java Scala' thread, I've realized there are some benefits to dynamic code generation vs statically compiled code. Things like unrolling loops, devirtualizing functions, etc. So it made me wonder, could D benefit from such technology, not

Re: is d-runtime non-gc safe?

2011-12-05 Thread Tobias Pankrath
Right - thanks for the hint! That would leave the following rules for real-time audio code in D: [snip] What's about message passing? Is message passing hard real time ready?

Re: rt_finalize WTFs?

2011-12-05 Thread dsimcha
== Quote from Martin Nowak (d...@dawgfoto.de)'s article I appreciate the recursion during mark, wanted to do this myself sometime ago but expected a little more gain. The reason the gain wasn't huge is because on the benchmark I have that involves a deep heap graph, sweeping time dominates

Re: is d-runtime non-gc safe?

2011-12-05 Thread Norbert Nemec
On 05.12.2011 21:40, Tobias Pankrath wrote: Right - thanks for the hint! That would leave the following rules for real-time audio code in D: [snip] What's about message passing? Is message passing hard real time ready? The issue actually came up for me a few weeks ago. In principle, all

Re: Second Round CURL Wrapper Review

2011-12-05 Thread Jonas Drewsen
Den 05-12-2011 10:26, Vladimir Panteleev skrev: On Sun, 04 Dec 2011 22:52:13 +0200, Jonas Drewsen jdrew...@nospam.com wrote: The same applies here because all it comes down to in the end is the sizes of buffers. The async ranges simply allows you to fill a specified number buffers in another

Re: ow Integers Should Work

2011-12-05 Thread Don
On 05.12.2011 18:36, bearophile wrote: Manu: Also, contrary to his claim, I find that wrapping is usually what I DO want in this case.. It's super rare that I write any code that pushes the limits of an int (unless we're talking 8-16 bit, see my range+saturation comment before), and when I do

Re: rt_finalize WTFs?

2011-12-05 Thread Robert Clipsham
On 05/12/2011 01:46, dsimcha wrote: I'm at my traditional passtime of trying to speed up D's garbage collector again Have you thought about pushing for the inclusion of CDGC at all/working on the tweaks needed to make it the main GC? -- Robert http://octarineparrot.com/

Re: Second Round CURL Wrapper Review

2011-12-05 Thread Vladimir Panteleev
On Mon, 05 Dec 2011 23:36:27 +0200, Jonas Drewsen jdrew...@nospam.com wrote: It is - but as stated it all depends on buffer sizes and IO speed. It is for the same reason that java recommends using BufferedReader around sockets instead of reading directly from the socket stream. Another

Re: rt_finalize WTFs?

2011-12-05 Thread Martin Nowak
On Mon, 05 Dec 2011 22:07:09 +0100, dsimcha dsim...@yahoo.com wrote: == Quote from Martin Nowak (d...@dawgfoto.de)'s article I appreciate the recursion during mark, wanted to do this myself sometime ago but expected a little more gain. The reason the gain wasn't huge is because on the

Re: rt_finalize WTFs?

2011-12-05 Thread Vladimir Panteleev
On Mon, 05 Dec 2011 23:07:09 +0200, dsimcha dsim...@yahoo.com wrote: I understand the problem, but please elaborate on the proposed solution. You've basically got a bunch of pools, each of which represents a range of memory addresses, not a single address (so a basic hashtable is out). You

Re: rt_finalize WTFs?

2011-12-05 Thread Iain Buclaw
On 5 December 2011 22:34, Martin Nowak d...@dawgfoto.de wrote: We currently add something from etext to _end (rt.memory) as static root. This probably contains read-only sections, data from other languages and (unlikely) other unrelated sections. I think some help from the compiler will be

Re: Java Scala

2011-12-05 Thread Andrej Mitrovic
On 12/4/11, Adam Wilson flybo...@gmail.com wrote: Would you be willing to send me your code? I don't know how much of it i'd end up using, but it would be really helpful in understanding how you got as far as you did and where the trouble points were ... maybe it'll give me a head-start on the

Re: rt_finalize WTFs?

2011-12-05 Thread Martin Nowak
More promising is to put pool addresses ranges in a trie. addr[7] [... . ...] / |\ addr[6] [... . ...][... . ...] / |\ / | \ addr[5] pool:8 [... . ...]

Re: rt_finalize WTFs?

2011-12-05 Thread dsimcha
== Quote from Martin Nowak (d...@dawgfoto.de)'s article More promising is to put pool addresses ranges in a trie. addr[7] [... . ...] / |\ addr[6] [... . ...][... . ...] / |\ / | \

Re: is d-runtime non-gc safe?

2011-12-05 Thread Somedude
Le 05/12/2011 14:46, Steven Schveighoffer a écrit : On Sat, 03 Dec 2011 12:43:08 -0500, Marco Leise marco.le...@gmx.de wrote: Am 03.12.2011, 10:01 Uhr, schrieb Benjamin Thaut c...@benjamin-thaut.de: Thanks, That doesn't sound to bad. If I manage to get a non leaking non gc version of

Re: Immutable Message Passing

2011-12-05 Thread Graham St Jack
On 05/12/11 18:48, Jacob Carlborg wrote: On 2011-12-05 08:25, Graham St Jack wrote: I always use arrays or structs. Until the tail-const thing (or something like it) happens, classes don't seem to be viable in messages between threads. You can always serialize the object, if a copy is

Re: rt_finalize WTFs?

2011-12-05 Thread Trass3r
On 05/12/2011 01:46, dsimcha wrote: I'm at my traditional passtime of trying to speed up D's garbage collector again Have you thought about pushing for the inclusion of CDGC at all/working on the tweaks needed to make it the main GC? So true, it's been rotting in that branch.

Re: so, what about the library based typedef?

2011-12-05 Thread Trass3r
bump

Re: rt_finalize WTFs?

2011-12-05 Thread dsimcha
On 12/5/2011 6:39 PM, Trass3r wrote: On 05/12/2011 01:46, dsimcha wrote: I'm at my traditional passtime of trying to speed up D's garbage collector again Have you thought about pushing for the inclusion of CDGC at all/working on the tweaks needed to make it the main GC? So true, it's been

Re: rt_finalize WTFs?

2011-12-05 Thread Martin Nowak
On Tue, 06 Dec 2011 00:16:01 +0100, dsimcha dsim...@yahoo.com wrote: == Quote from Martin Nowak (d...@dawgfoto.de)'s article More promising is to put pool addresses ranges in a trie. addr[7] [... . ...] / |\ addr[6] [... . ...]

Re: rt_finalize WTFs?

2011-12-05 Thread Trass3r
IIRC CDGC includes two major enhancements: 1. The snapshot GC for Linux. (Does this work on OSX/FreeBSD/anything Posix, or just Linux? I'm a bit skeptical about whether a snapshot GC is really that great an idea given its propensity to waste memory on long collect cycles with a lot of

Re: ow Integers Should Work

2011-12-05 Thread bearophile
Don: The overflow12.pdf paper on that site shows statistics that overflow is very often intentional. In C/C++ code, but we are developing D, a new language that hopes to fix some of the mistakes of languages invented lot of time ago. It's strong evidence that you *cannot* make signed

Re: ow Integers Should Work

2011-12-05 Thread bearophile
Don: The overflow12.pdf paper on that site shows statistics that overflow is very often intentional. This is expected, the C/C++ programmers are using the semantics of their language. But it's just because they are using a language with a bad integer semantics. A better designed language

  1   2   >