Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Jacob Carlborg
On 2011-12-05 08:13, Somedude wrote: 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 small language. And I do think it makes sens to base a GUI on a

Re: Java > Scala

2011-12-04 Thread Kagamin
Jacob Carlborg Wrote: > On 2011-12-04 22:07, Andrej Mitrovic wrote: > > On 12/4/11, Jacob Carlborg wrote: > >> If Microsoft kills GDI and uses some DirectX/OpenGL backend for its GUI, > >> then that will be the native GUI. Just because GDI/Win32 has been the > >> native GUI for Windows doesn't me

Re: Java > Scala

2011-12-04 Thread Somedude
Le 04/12/2011 18:51, Nick Sabalausky a écrit : > "Somedude" wrote in message > news:jbeva3$2785$1...@digitalmars.com... >> Le 04/12/2011 03:40, Don a écrit : >>> If you work in an environment where practically all apps are fast, >>> Eclipse stands out as being slow. The startup time is particular

Re: Immutable Message Passing

2011-12-04 Thread Graham St Jack
On 05/12/11 17:51, Jacob Carlborg wrote: On 2011-12-04 21:46, Andrew Wiley wrote: On Sun, Dec 4, 2011 at 1:42 AM, Jonathan M Davis wrote: On Sunday, December 04, 2011 01:24:02 Andrew Wiley wrote: This should work, right? I'm not just going crazy or something? import std.concurrency; import s

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

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 21:40, Adam D. Ruppe wrote: Jacob Carlborg Wrote: Maybe you should take a look at SASS, it has if-statements, for-loops, Yea, I've looked at it before (and like some of the ideas - their lighten, darken, etc. functions are nice and I intend to implement them myself as I find th

Re: Java > Scala

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 22:07, Andrej Mitrovic wrote: On 12/4/11, Jacob Carlborg wrote: If Microsoft kills GDI and uses some DirectX/OpenGL backend for its GUI, then that will be the native GUI. Just because GDI/Win32 has been the native GUI for Windows doesn't mean it can't be replaced with a new native

Re: Immutable Message Passing

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 21:46, Andrew Wiley wrote: On Sun, Dec 4, 2011 at 1:42 AM, Jonathan M Davis wrote: On Sunday, December 04, 2011 01:24:02 Andrew Wiley wrote: This should work, right? I'm not just going crazy or something? import std.concurrency; import std.stdio; class Bob { } void main() {

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Adrian
Am 04.12.2011 12:50, schrieb Jacob Carlborg: > On 2011-12-02 17:38, Nick Sabalausky wrote: >> "Joshua Niehus" wrote in message >> news:mailman.1243.1322814889.24802.digitalmar...@puremagic.com... On 12/1/11 2:59 AM, Walter Bright wrote: > On 12/1/2011 2:42 AM, Gour wrote: > I'd like t

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Somedude
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 small language. And I do think it makes sens to base a GUI on a scripting language. As for the c

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

2011-12-04 Thread Nick Sabalausky
"Jacob Carlborg" 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 way of handling CSS). That seems slightly stran

Re: The current status of D?

2011-12-04 Thread Walter Bright
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 now, because at least you can get work done w

Re: Java > Scala

2011-12-04 Thread Mike Parker
On 12/5/2011 2:51 AM, Nick Sabalausky wrote: "Somedude" wrote in message news:jbeva3$2785$1...@digitalmars.com... - hundreds of plugins If it needs that many plug-ins then something is very, very wrong. For example, maybe some of those should be built-in. And if you meant "hundreds" literal

Re: Java > Scala

2011-12-04 Thread Andrei Alexandrescu
On 12/4/11 10:34 PM, Brad Anderson wrote: What's the plan with doing I/O and other irreversible actions during STM transactions then? Andrei One of the PyPy guys briefly answers this in the comments of this article on the subject of PyPy and removal of the GIL. http://morepypy.blog

Re: rt_finalize WTFs?

2011-12-04 Thread Jonathan M Davis
On Sunday, December 04, 2011 23:41:08 dsimcha wrote: > Thanks for the benchmark. I ended up deciding to just create a second > function, rt_finalize_gc, that gets rid of a whole bunch of cruft that > isn't necessary in the GC case. I think it's worth the small amount of > code duplication it crea

Re: rt_finalize WTFs?

2011-12-04 Thread dsimcha
Thanks for the benchmark. I ended up deciding to just create a second function, rt_finalize_gc, that gets rid of a whole bunch of cruft that isn't necessary in the GC case. I think it's worth the small amount of code duplication it creates. Here are the results of my efforts so far: https:/

Re: Java > Scala

2011-12-04 Thread Brad Anderson
On Sun, Dec 4, 2011 at 8:07 AM, Andrei Alexandrescu < seewebsiteforem...@erdani.org> wrote: > On 12/4/11 3:51 AM, Russel Winder wrote: > >> On Sat, 2011-12-03 at 09:39 -0600, Andrei Alexandrescu wrote: >> >>> On 12/3/11 3:02 AM, Russel Winder wrote: >>> The PyPy JIT is clearly a "big win". I

Re: rt_finalize WTFs?

2011-12-04 Thread bearophile
dsimcha: > 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 huge numbers of classes **that don't have destructors** > are being created and collected. DMD or LDC/GDC compiler? > extern (C) void rt_finalize

Re: Immutable Message Passing

2011-12-04 Thread Andrei Alexandrescu
On 12/4/11 4:32 PM, Andrew Wiley wrote: In that case, no object copying is occurring, and I have message passing for immutable objects working, although my current solution is basically to check whether the object is immutable, and if so, memcpy the reference. That breaks immutability, but only f

Re: rt_finalize WTFs?

2011-12-04 Thread Martin Nowak
On Mon, 05 Dec 2011 02:46:27 +0100, dsimcha 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 huge numbers of class

Re: Immutable Message Passing

2011-12-04 Thread Andrew Wiley
On Sun, Dec 4, 2011 at 6:19 PM, Timon Gehr wrote: > On 12/04/2011 11:32 PM, Andrew Wiley wrote: >> >> On Sun, Dec 4, 2011 at 4:23 PM, Andrei Alexandrescu >>  wrote: >>> >>> On 12/4/11 4:16 PM, Andrew Wiley wrote: >>> So it looks like right now, message passing is copying objects, which

Re: Immutable Message Passing

2011-12-04 Thread bearophile
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

Re: SQL/database server capabilities NO ODBC please

2011-12-04 Thread bls
On 11/26/2011 10:13 PM, Steve Teale wrote: On Sat, 26 Nov 2011 15:31:33 -0800, bls wrote: Hi Steve First of all : I am sorry about my harsh words within my last reply. --- I am afraid that this feedback is also not very gentle. Picking up ODBC in order to figure out how an generic database Int

rt_finalize WTFs?

2011-12-04 Thread dsimcha
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 huge numbers of classes **that don't have destructors** are being created and

Re: Java > Scala

2011-12-04 Thread Andrej Mitrovic
On 12/3/11, Jonathan M Davis 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 phobos and make it another DOA module that

Re: Immutable Message Passing

2011-12-04 Thread Timon Gehr
On 12/05/2011 02:16 AM, Graham St Jack wrote: My vote is for something like immutable(Object) ref, as Andrew suggested earlier. This would allow mutable references to immutable objects to be passed through a message channel without nasty typecasting. std.typecons.Rebindable has always been an ug

Re: Immutable Message Passing

2011-12-04 Thread Jonathan M Davis
On Monday, December 05, 2011 11:46:29 Graham St Jack wrote: > My vote is for something like immutable(Object) ref, as Andrew suggested > earlier. This would allow mutable references to immutable objects to be > passed through a message channel without nasty typecasting. > > std.typecons.Rebindable

Re: Immutable Message Passing

2011-12-04 Thread Graham St Jack
My vote is for something like immutable(Object) ref, as Andrew suggested earlier. This would allow mutable references to immutable objects to be passed through a message channel without nasty typecasting. std.typecons.Rebindable has always been an ugly hack that doesn't quite do the job. Certa

Re: Immutable Message Passing

2011-12-04 Thread Timon Gehr
On 12/04/2011 11:32 PM, Andrew Wiley wrote: On Sun, Dec 4, 2011 at 4:23 PM, Andrei Alexandrescu wrote: On 12/4/11 4:16 PM, Andrew Wiley wrote: So it looks like right now, message passing is copying objects, which seems very bad. Check this out: import std.stdio; import std.concurren

Re: Poll of the week: How should std.regex handle unknown escape sequences as in: "[\.]"

2011-12-04 Thread Walter Bright
On 12/2/2011 2:33 PM, Marco Leise wrote: http://www.easypolls.net/poll.html?p=4ed9478e4fb7b0e4886eeea2 In general, behavior for things we don't know what to do with should be "failure". Then, when we do figure out what to do with it, we don't break existing code.

Re: Poll of the week: How should std.regex handle unknown escape sequences as in: "[\.]"

2011-12-04 Thread Jesse Phillips
On Sun, 04 Dec 2011 19:53:59 +0100, Martin Nowak wrote: > On Fri, 02 Dec 2011 23:33:34 +0100, Marco Leise > wrote: > >> http://www.easypolls.net/poll.html?p=4ed9478e4fb7b0e4886eeea2 > > auto s = "[\.]"; => Error: undefined escape sequence. > Do you actually mean r"[\.]" or `[\.]`? He was refer

Re: Immutable Message Passing

2011-12-04 Thread Andrew Wiley
On Sun, Dec 4, 2011 at 4:23 PM, Andrei Alexandrescu wrote: > On 12/4/11 4:16 PM, Andrew Wiley wrote: >> >> So it looks like right now, message passing is copying objects, which >> seems very bad. Check this out: >> >> import std.stdio; >> import std.concurrency; >> >> class Bob { >> } >>

Re: Immutable Message Passing

2011-12-04 Thread Andrei Alexandrescu
On 12/4/11 4:16 PM, Andrew Wiley wrote: So it looks like right now, message passing is copying objects, which seems very bad. Check this out: import std.stdio; import std.concurrency; class Bob { } void main() { auto tid = spawn(&func); auto bob = new shared(Bob)();

Re: Java > Scala

2011-12-04 Thread Adam Wilson
On Sun, 04 Dec 2011 06:26:39 -0800, Don wrote: On 02.12.2011 22:02, Adam Wilson wrote: On Fri, 02 Dec 2011 11:29:18 -0800, Gour wrote: On Fri, 02 Dec 2011 10:56:41 -0800 "Adam Wilson" wrote: Hello Adam, Gour, I'd love to talk to you more about GUI's. I am new to D, but I have spent year

Re: Mangled symbols ending with Z?

2011-12-04 Thread Martin Nowak
On Sun, 04 Dec 2011 22:09:40 +0100, Peter Alexander wrote: On 4/12/11 6:47 PM, Martin Nowak wrote: On Sun, 04 Dec 2011 14:40:47 +0100, Peter Alexander wrote: DMD outputs quite a few symbols that end with a Z. For example: module test; class Foo {} Gives me these three symbols (all .data

Re: Immutable Message Passing

2011-12-04 Thread Andrew Wiley
On Sun, Dec 4, 2011 at 2:46 PM, Andrew Wiley wrote: > On Sun, Dec 4, 2011 at 1:42 AM, Jonathan M Davis wrote: >> On Sunday, December 04, 2011 01:24:02 Andrew Wiley wrote: >>> This should work, right? I'm not just going crazy or something? >>> >>> import std.concurrency; >>> import std.stdio; >>>

Re: is d-runtime non-gc safe?

2011-12-04 Thread Andrej Mitrovic
There we go, into the bee's nest. I'll just keep quiet.

Re: is d-runtime non-gc safe?

2011-12-04 Thread Timon Gehr
On 12/04/2011 09:56 PM, Andrej Mitrovic wrote: On 12/4/11, Marco Leise wrote: Hmm, and no one commented either. I thought someone would jump in and say that you could disable the GC. Right, I've heard this story before but has anyone actually tried using D without the GC? I'm genuinely curiou

Re: Java > Scala

2011-12-04 Thread so
On Sun, 04 Dec 2011 17:00:44 +0200, Don wrote: On 03.12.2011 15:30, so wrote: On Fri, 02 Dec 2011 22:58:32 +0200, Paulo Pinto wrote: Ah ok, I thought you were starting a "C above all" thread. :) Well that would not be a discussion, would it? Anyone against it? C is above all for the thing

Re: Java > Scala

2011-12-04 Thread Andrej Mitrovic
On 12/4/11, Jacob Carlborg wrote: > If Microsoft kills GDI and uses some DirectX/OpenGL backend for its GUI, > then that will be the native GUI. Just because GDI/Win32 has been the > native GUI for Windows doesn't mean it can't be replaced with a new > native GUI. My point was popular apps rarely

Re: Mangled symbols ending with Z?

2011-12-04 Thread Peter Alexander
On 4/12/11 6:47 PM, Martin Nowak wrote: On Sun, 04 Dec 2011 14:40:47 +0100, Peter Alexander wrote: DMD outputs quite a few symbols that end with a Z. For example: module test; class Foo {} Gives me these three symbols (all .data) 00013680 D _D4test4Foo16__initZ 000136e0 D _D4test4Foo16__vtb

Re: is d-runtime non-gc safe?

2011-12-04 Thread Andrej Mitrovic
On 12/4/11, Marco Leise wrote: > Hmm, and no one commented either. I thought someone would jump in and say > that you could disable the GC. Right, I've heard this story before but has anyone actually tried using D without the GC? I'm genuinely curious. I'd also wonder how usable D would be withou

Re: Second Round CURL Wrapper Review

2011-12-04 Thread Jonas Drewsen
Den 04-12-2011 12:05, Vladimir Panteleev skrev: On Sun, 04 Dec 2011 12:59:15 +0200, Jonas Drewsen wrote: Den 03-12-2011 21:58, Vladimir Panteleev skrev: On Sat, 03 Dec 2011 21:17:25 +0200, Jonas Drewsen wrote: The standard example is downloading some content and saving it at the same time.

Re: Immutable Message Passing

2011-12-04 Thread Andrew Wiley
On Sun, Dec 4, 2011 at 1:42 AM, Jonathan M Davis wrote: > On Sunday, December 04, 2011 01:24:02 Andrew Wiley wrote: >> This should work, right? I'm not just going crazy or something? >> >> import std.concurrency; >> import std.stdio; >> >> class Bob { >> } >> >> void main() { >>     auto tid = spa

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

2011-12-04 Thread Adam D. Ruppe
Jacob Carlborg Wrote: > Maybe you should take a look at SASS, it has if-statements, for-loops, Yea, I've looked at it before (and like some of the ideas - their lighten, darken, etc. functions are nice and I intend to implement them myself as I find the time - see color.d in that github page.)

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

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 21:17, Adam D. Ruppe wrote: Jacob Carlborg Wrote: I hide JavaScript behind CoffeeScript, makes it a bit more usable. 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-la

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 21:13, Nick Sabalausky wrote: "Jacob Carlborg" wrote in message news:jbgj74$2jff$3...@digitalmars.com... On 2011-12-04 18:11, Nick Sabalausky wrote: Yea. I do appreciate how it's able to do so much with such simplicity (if you ignore the bizarre semicolon rules), but only in the

Re: Java > Scala

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 20:53, Timon Gehr wrote: On 12/04/2011 08:50 PM, Jacob Carlborg wrote: On 2011-12-04 15:38, Marco Leise wrote: Am 04.12.2011, 13:41 Uhr, schrieb Jacob Carlborg : On 2011-12-02 22:40, Somedude wrote: Yes, the IDE takes care of a lot of boilerplate code. It's ugly, but it's hard

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

2011-12-04 Thread Adam D. Ruppe
Jacob Carlborg Wrote: > I hide JavaScript behind CoffeeScript, makes it a bit more usable. 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 a Javascript

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Nick Sabalausky
"Jacob Carlborg" wrote in message news:jbgj74$2jff$3...@digitalmars.com... > On 2011-12-04 18:11, Nick Sabalausky wrote: >> Yea. I do appreciate how it's able to do so much with such simplicity (if >> you ignore the bizarre semicolon rules), but only in the same sense that >> I >> appreciate Bra

Re: is d-runtime non-gc safe?

2011-12-04 Thread Walter Bright
On 12/4/2011 5:08 AM, Norbert Nemec wrote: Indeed, malloc is not real-time safe. It is common wisdom that real-time audio code should not handle any memory allocations. To this point, D is just as safe as C++: don't do any operations that may allocate memory in the audio thread, so the GC will n

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 18:11, Nick Sabalausky wrote: Yea. I do appreciate how it's able to do so much with such simplicity (if you ignore the bizarre semicolon rules), but only in the same sense that I appreciate Brainfuck for the same reason. I hide JavaScript behind CoffeeScript, makes it a bit more u

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 18:00, Nick Sabalausky wrote: "Russel Winder" wrote in message news:mailman.1300.1322991626.24802.digitalmar...@puremagic.com... On Sat, 2011-12-03 at 13:16 -0500, Nick Sabalausky wrote: [...] A few thoughts based mainly from Python use perspective. #1: wx: Because it uses nati

Re: Java > Scala

2011-12-04 Thread Timon Gehr
On 12/04/2011 08:50 PM, Jacob Carlborg wrote: On 2011-12-04 15:38, Marco Leise wrote: Am 04.12.2011, 13:41 Uhr, schrieb Jacob Carlborg : On 2011-12-02 22:40, Somedude wrote: Yes, the IDE takes care of a lot of boilerplate code. It's ugly, but it's hardly a productivity issue. One other thing

Re: Java > Scala

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 15:38, Marco Leise wrote: Am 04.12.2011, 13:41 Uhr, schrieb Jacob Carlborg : On 2011-12-02 22:40, Somedude wrote: Yes, the IDE takes care of a lot of boilerplate code. It's ugly, but it's hardly a productivity issue. One other thing that's cool is refactoring is no longer an iss

Re: is d-runtime non-gc safe?

2011-12-04 Thread Norbert Nemec
Indeed, but here the issue is actually opposite: you *don't* want the GC to know about the audio-thread. On 04.12.2011 18:05, Sean Kelly wrote: You can make the GC know about any thread you want. Look at thread_attachThis and related routines in core.thread. Sent from my iPhone On Dec 4, 2

Re: Poll of the week: How should std.regex handle unknown escape sequences as in: "[\.]"

2011-12-04 Thread Martin Nowak
On Fri, 02 Dec 2011 23:33:34 +0100, Marco Leise wrote: http://www.easypolls.net/poll.html?p=4ed9478e4fb7b0e4886eeea2 auto s = "[\.]"; => Error: undefined escape sequence. Do you actually mean r"[\.]" or `[\.]`?

Re: Java > Scala

2011-12-04 Thread Mirko Pilger
I assume you're on some sort of 10GB multi-core machine as most Java users have to be on, in which case: 12 sec startup is ridiculously slow. Even on 2GB x64 dual-core, that's still very, very slow. just to throw some numbers in. out of curiosity i have done a fresh install of eclipse on an 2GB

Re: Mangled symbols ending with Z?

2011-12-04 Thread Martin Nowak
On Sun, 04 Dec 2011 14:40:47 +0100, Peter Alexander wrote: DMD outputs quite a few symbols that end with a Z. For example: module test; class Foo {} Gives me these three symbols (all .data) 00013680 D _D4test4Foo16__initZ 000136e0 D _D4test4Foo16__vtblZ 00013690 D _D4test4Foo17__ClassZ I

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Nick Sabalausky
"Russel Winder" wrote in message news:mailman.1305.1323019362.24802.digitalmar...@puremagic.com... >On Sun, 2011-12-04 at 12:00 -0500, Nick Sabalausky wrote: >[...] > >> >PyQt has an unfriendly licence for anyone wishing to >> >make proprietary systems. >> >> I didn't know that. Do you know if th

Re: Java > Scala

2011-12-04 Thread Nick Sabalausky
"Somedude" wrote in message news:jbeva3$2785$1...@digitalmars.com... > Le 04/12/2011 03:40, Don a écrit : >> If you work in an environment where practically all apps are fast, >> Eclipse stands out as being slow. The startup time is particularly >> striking. >> I don't see any reason for this. Mo

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Russel Winder
On Sun, 2011-12-04 at 12:00 -0500, Nick Sabalausky wrote: [...] > >PyQt has an unfriendly licence for anyone wishing to > >make proprietary systems. > > I didn't know that. Do you know if that's specific to PyQt, or inhereted > from Qt? As David pointed out, PyQt stayed GPL and commercial licen

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Nick Sabalausky
"Jacob Carlborg" wrote in message news:jbfmq4$rkc$2...@digitalmars.com... > On 2011-12-02 17:38, Nick Sabalausky wrote: >> "Joshua Niehus" wrote in message >> news:mailman.1243.1322814889.24802.digitalmar...@puremagic.com... On 12/1/11 2:59 AM, Walter Bright wrote: > On 12/1/2011 2:42 A

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Nick Sabalausky
"Jacob Carlborg" wrote in message news:jbfnbk$rkc$4...@digitalmars.com... > On 2011-12-02 19:15, Nick Sabalausky wrote: >> >> The hell with mobile, eh? Making things look and act the same on >> everything >> is *terrible* UI design. Making things look and act *appropriate* for the >> given platf

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread David Nadlinger
On 12/4/11 6:00 PM, Nick Sabalausky wrote: PyQt has an unfriendly licence for anyone wishing to make proprietary systems. I didn't know that. Do you know if that's specific to PyQt, or inhereted from Qt? This is specific to PyQt, they stayed at GPL when Qt changed its open source license to

Re: is d-runtime non-gc safe?

2011-12-04 Thread Sean Kelly
You can make the GC know about any thread you want. Look at thread_attachThis and related routines in core.thread. Sent from my iPhone On Dec 4, 2011, at 5:08 AM, Norbert Nemec wrote: > On 04.12.2011 09:10, Marco Leise wrote: >> Am 03.12.2011, 19:47 Uhr, schrieb Andrej Mitrovic >> : >> >>> O

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Nick Sabalausky
"Russel Winder" wrote in message news:mailman.1300.1322991626.24802.digitalmar...@puremagic.com... On Sat, 2011-12-03 at 13:16 -0500, Nick Sabalausky wrote: >[...] > >A few thoughts based mainly from Python use perspective. > >> #1: wx: Because it uses native controls on pretty much all platforms

Re: Java > Scala

2011-12-04 Thread Somedude
Le 04/12/2011 15:45, Timon Gehr a écrit : > On 12/04/2011 06:09 AM, Somedude wrote: >> [...] And Emacs is slow to start as well. [...] > > oO? No. It is up and running in less than 0.3s. Have you tested it? See ? I can be as wrong as Nick Sabalausky when I base my prejudice from dated experience.

Re: Java > Scala

2011-12-04 Thread Andrei Alexandrescu
On 12/4/11 3:51 AM, Russel Winder wrote: On Sat, 2011-12-03 at 09:39 -0600, Andrei Alexandrescu wrote: On 12/3/11 3:02 AM, Russel Winder wrote: The PyPy JIT is clearly a "big win". I am sure Armin will come up with more stuff :-) Do they do anything about the GIL? Soon. Having failed to c

Re: Java > Scala

2011-12-04 Thread Don
On 03.12.2011 15:30, so wrote: On Fri, 02 Dec 2011 22:58:32 +0200, Paulo Pinto wrote: Ah ok, I thought you were starting a "C above all" thread. :) Well that would not be a discussion, would it? Anyone against it? C is above all for the things it was developed, simple as that. I'm against

Re: Java > Scala

2011-12-04 Thread Timon Gehr
On 12/04/2011 06:09 AM, Somedude wrote: [...] And Emacs is slow to start as well. [...] oO? No. It is up and running in less than 0.3s. Have you tested it?

I think I know what's wrong

2011-12-04 Thread Peter
I woke up this morning, great dawn, with a prayer on my breath. See, I lost something precious and you will help me, from losing myself. I think I know what's wrong.

Re: Second Round CURL Wrapper Review

2011-12-04 Thread Vladimir Panteleev
On Sun, 04 Dec 2011 16:33:52 +0200, Marco Leise wrote: Am 04.12.2011, 14:02 Uhr, schrieb Jacob Carlborg : On 2011-12-03 05:26, dsimcha wrote: I volunteered ages ago to manage the review for the second round of Jonas Drewsen's CURL wrapper. After the first round it was decided that, after a

Re: Java > Scala

2011-12-04 Thread Marco Leise
Am 04.12.2011, 13:41 Uhr, schrieb Jacob Carlborg : On 2011-12-02 22:40, Somedude wrote: Yes, the IDE takes care of a lot of boilerplate code. It's ugly, but it's hardly a productivity issue. One other thing that's cool is refactoring is no longer an issue, like it is in C or C++. With powerful

Re: Second Round CURL Wrapper Review

2011-12-04 Thread Marco Leise
Am 04.12.2011, 14:02 Uhr, schrieb Jacob Carlborg : On 2011-12-03 05:26, dsimcha wrote: I volunteered ages ago to manage the review for the second round of Jonas Drewsen's CURL wrapper. After the first round it was decided that, after a large number of minor issues were fixed, a second round wou

Re: Java > Scala

2011-12-04 Thread Don
On 02.12.2011 22:02, Adam Wilson wrote: On Fri, 02 Dec 2011 11:29:18 -0800, Gour wrote: On Fri, 02 Dec 2011 10:56:41 -0800 "Adam Wilson" wrote: Hello Adam, Gour, I'd love to talk to you more about GUI's. I am new to D, but I have spent years working with GUI toolkits and studying their con

Re: Java > Scala

2011-12-04 Thread Jacob Carlborg
On 2011-12-04 06:09, Somedude wrote: Le 04/12/2011 03:40, Don a écrit : If you work in an environment where practically all apps are fast, Eclipse stands out as being slow. The startup time is particularly striking. I don't see any reason for this. Mostly when you open an IDE you want to first o

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Jacob Carlborg
On 2011-12-03 19:34, Marco Leise wrote: Am 03.12.2011, 19:20 Uhr, schrieb Nick Sabalausky : FWIW, SWT would probably be somewhere in the top 3, definitely above qt (because I *think* SWT is true native...?), but not sure how I'd rank it compared to wx b/c I'd have to actually try them both out.

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Jacob Carlborg
On 2011-12-03 19:20, Nick Sabalausky wrote: "Nick Sabalausky" wrote in message news:jbdp5t$2j0k$1...@digitalmars.com... "Gour" wrote in message news:20111203075455.6d9d1...@atmarama.noip.me... "Nick Sabalausky" wrote: I agree the look of apps should be user-configurable, but that belongs a

Mangled symbols ending with Z?

2011-12-04 Thread Peter Alexander
DMD outputs quite a few symbols that end with a Z. For example: module test; class Foo {} Gives me these three symbols (all .data) 00013680 D _D4test4Foo16__initZ 000136e0 D _D4test4Foo16__vtblZ 00013690 D _D4test4Foo17__ClassZ I have two questions: 1. I know what __init and __vtbl are, but

Re: is d-runtime non-gc safe?

2011-12-04 Thread Norbert Nemec
On 04.12.2011 09:10, Marco Leise wrote: Am 03.12.2011, 19:47 Uhr, schrieb Andrej Mitrovic : On 12/3/11, Marco Leise wrote: Am 03.12.2011, 19:05 Uhr, schrieb Andrej Mitrovic : +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

Re: Second Round CURL Wrapper Review

2011-12-04 Thread Jacob Carlborg
On 2011-12-03 05:26, dsimcha wrote: I volunteered ages ago to manage the review for the second round of Jonas Drewsen's CURL wrapper. After the first round it was decided that, after a large number of minor issues were fixed, a second round would be necessary. Significant open issues: 1. Should

Re: boost crowd.

2011-12-04 Thread Jacob Carlborg
On 2011-12-03 02:44, Adam D. Ruppe wrote: Walter Bright Wrote: It's too bad there's no way to 'bind' arbitrary data to shared executable library files Would using the resource compiler work on Windows? I'm pretty sure dlls have icon resources just like exes, so having a string resource in ther

Re: is d-runtime non-gc safe?

2011-12-04 Thread Norbert Nemec
On 04.12.2011 12:53, Jacob Carlborg wrote: On 2011-12-03 19:05, Andrej Mitrovic 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 r

Re: Java > Scala

2011-12-04 Thread Jacob Carlborg
On 2011-12-03 00:24, Andrej Mitrovic wrote: On 12/2/11, Walter Bright wrote: Consider that existing successful GUI libraries have had *enormous* resources poured into them. I think a vast majority of that time was spent dealing with OS-specific bugs due to the requirement that widgets must lo

Re: Java > Scala

2011-12-04 Thread Jacob Carlborg
On 2011-12-02 23:57, Walter Bright wrote: On 12/2/2011 2:15 PM, Adam Wilson wrote: On Fri, 02 Dec 2011 12:15:55 -0800, Walter Bright wrote: On 12/2/2011 11:29 AM, Gour wrote: Moreover, developing something from the scratch woudl require enormous amount of time in comparison with *just* provi

Re: Java > Scala

2011-12-04 Thread Jacob Carlborg
On 2011-12-02 22:40, Somedude wrote: Yes, the IDE takes care of a lot of boilerplate code. It's ugly, but it's hardly a productivity issue. One other thing that's cool is refactoring is no longer an issue, like it is in C or C++. With powerful IDEs, you can refactor without fearing too much regr

Re: Java > Scala

2011-12-04 Thread Jacob Carlborg
On 2011-12-02 21:50, Timon Gehr wrote: On 12/02/2011 09:44 PM, Timon Gehr wrote: Except that _Eclipse_ does not do anything to achieve this. It just invokes ant, which invokes javac, which is presumably written in C and C++. Seems like I was wrong about this. Eclipse has its own Java compil

Re: Java > Scala

2011-12-04 Thread Jacob Carlborg
On 2011-12-02 21:04, Somedude wrote: Le 30/11/2011 08:45, Jacob Carlborg a écrit : Seems they complaining about libraries and the tool chain. I don't understand the problem, just use the Java libraries. About the language, shouldn't it be possible to just use the parts of Scala that also exists

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Jacob Carlborg
On 2011-12-02 20:54, Nick Sabalausky wrote: Actually, I absolutely hate WinAmp (and all programs that are entirely skinned). And WinAmp in particular is super butt-ugly. *And* the UI overall, esp. the library, is screwy (read: buggy and poorly architected) as all hell. iTunes is irritatinnly all-

you suck

2011-12-04 Thread Peter

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Jacob Carlborg
On 2011-12-02 19:15, Nick Sabalausky wrote: "Adam Wilson" wrote in message news:op.v5vibnca707...@invictus.skynet.com... On Fri, 02 Dec 2011 04:33:48 -0800, a wrote: QML looks like it is (currently ?) targeted at the kind of GUI programming when you make your own custom widgets for everythin

Re: is d-runtime non-gc safe?

2011-12-04 Thread Jacob Carlborg
On 2011-12-03 19:05, Andrej Mitrovic 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 run the plugin would freeze, the host would c

Re: A real Forum for D

2011-12-04 Thread simendsjo
On 04.12.2011 12:02, Somedude wrote: Le 27/11/2011 18:41, alex a écrit : Oh, another advantage of a real forum: you can ban users based on their IP. Would be good for drunkards like SteveD alias Abraham alias Peter. I'm not a huge fan of banning, but I was just thinking the same thing... It d

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread Jacob Carlborg
On 2011-12-02 17:38, Nick Sabalausky wrote: "Joshua Niehus" wrote in message news:mailman.1243.1322814889.24802.digitalmar...@puremagic.com... On 12/1/11 2:59 AM, Walter Bright wrote: On 12/1/2011 2:42 AM, Gour wrote: I'd like to help with GUI bindings if D community would come more close toge

I didn't mean that

2011-12-04 Thread Peter
well, fuck it, not to make it ok, of course I hate you but you have been hated thousands of years. I should hate you more than I do. The more I learn about you, the more I do.

Re: If I use an extern (C) interface, can I use shared objects in Linux from DMD?

2011-12-04 Thread Jacob Carlborg
On 2011-12-02 15:13, Bernard Helyer wrote: I don't need to share GC memory across instances or anything, but I would be interested in using a C interface if possible. If not, what's blocking it. If yes, how would one initialise the runtime? I know there's a Windows DLL article on the website, bu

Re: Second Round CURL Wrapper Review

2011-12-04 Thread Vladimir Panteleev
On Sun, 04 Dec 2011 12:59:15 +0200, Jonas Drewsen wrote: Den 03-12-2011 21:58, Vladimir Panteleev skrev: On Sat, 03 Dec 2011 21:17:25 +0200, Jonas Drewsen wrote: The standard example is downloading some content and saving it at the same time. While your main thread saves a chunk to disk (

Re: Java > Scala -> new thread: GUI for D

2011-12-04 Thread a
> #84,259,254: gtk: Because it doesn't give a rat's ass about native anything, > plus it's just plain ugly (read: big-n-chunky) on all platforms, even Gnome. Using XFCE right now, looks fine to me.

Re: A real Forum for D

2011-12-04 Thread Somedude
Le 27/11/2011 18:41, alex a écrit : Oh, another advantage of a real forum: you can ban users based on their IP. Would be good for drunkards like SteveD alias Abraham alias Peter.

Re: Second Round CURL Wrapper Review

2011-12-04 Thread Jonas Drewsen
Den 03-12-2011 21:58, Vladimir Panteleev skrev: On Sat, 03 Dec 2011 21:17:25 +0200, Jonas Drewsen wrote: Den 03-12-2011 13:10, Vladimir Panteleev skrev: On Sat, 03 Dec 2011 13:53:16 +0200, Jonas Drewsen wrote: As mentioned the async version performs the request in another thread leaving th

  1   2   >