Cross-compilation

2012-08-28 Thread Chris
Probably this question has been asked and answered before, but I wonder if there is a way to cross-compile D code so that you can work on one platform and simultaneously create code for other platforms. In my case it would be Mac to Linux. I can imagine that there are a lot of dependency issues

Deprecated Library Functions / Methods

2012-11-30 Thread Chris
Is there a way of telling when things in the library will calm down and it'll be save to develop in D and update old code? I started with D2 version 2.051 and created a medium-sized project fairly quickly, but now I have a lot of deprecated methods in my code. I couldn't keep up with all the c

Re: Deprecated Library Functions / Methods

2012-11-30 Thread Chris
There have been quite a few changes since 2.051 and I cannot stick to that version, because I would introduce more deprecated code. I wanted to update my code but saw in the library that again loads of methods were scheduled for deprecation. So what's the point? Changes are necessary and I th

Re: Deprecated Library Functions / Methods

2012-11-30 Thread Chris
Great to hear that. I'd like to see D take off one day.

Re: Deprecated Library Functions / Methods

2012-12-03 Thread Chris
Thank you all for taking my input seriously. I do appreciate it. I can understand both "parties", but I think not breaking code is more important than the ideal of a clean library. The reality of coding is (as we all know) that programmers cannot constantly update their code, because there are

ctRegex vs. Regex vs. plain string

2012-12-06 Thread Chris
I have updated my code (finally!) to 2.060. As my project deals a lot with text processing including loads of special characters (á, ú etc.), I make extensive use of the std.regex module (and I really appreciate the use of the Thompson NFA). To optimize my program I have experimented with ctReg

Re: ctRegex vs. Regex vs. plain string

2012-12-06 Thread Chris
On Thursday, 6 December 2012 at 16:00:11 UTC, Dmitry Olshansky wrote: 12/6/2012 7:21 PM, Chris пишет: I have updated my code (finally!) to 2.060. Congrats! As my project deals a lot with text processing including loads of special characters (á, ú etc.), I make extensive use of the

Curl and redirects

2012-12-17 Thread Chris
Hi, I am trying to log into a web application using curl. The web app sends a 302 redirect after posting the data (successful log in - I can see the successful login in the web apps log files). Maybe I am doing something wrong - but I have just copied the code of _basicHTTP form curl.d to my own

Re: Curl and redirects

2012-12-17 Thread Chris
Hi Jacob, thanks for your quick response, On Monday, 17 December 2012 at 14:12:26 UTC, Jacob Carlborg wrote: A guess: when using the command line tool one needs to explicit enable redirects, is there something similar in the API? I haven't found one - also redirects do work with get reques

Re: Curl and redirects

2012-12-19 Thread Chris
??? 0x0001 0x0 + 1 -- snip -- Maybe it's an issue with MacOSX? My settings: - DMD64 D Compiler v2.061 - DFLAGS=-I/usr/local/include/d2 -L-L/usr/local/lib. Thanks, Chris On Monday, 17 December 2012 at 18:57:25 UTC, Vladimir Panteleev wrote: On Monday, 17 December 2012 at 11:24:41 UTC,

Re: Curl and redirects

2012-12-21 Thread Chris
Dear Vladimir, On Thursday, 20 December 2012 at 02:51:58 UTC, Vladimir Panteleev wrote: Sorry about that. In my haste to answer, I've misread your question. I see now that you're using the lower-level objects directly instead of the post function. My patch fixes the behavior for the post func

D "Swing"

2012-12-23 Thread Chris
There exist some GUI Toolkits for D, however, they are more or less all based on bindings to native toolkits. Is anyone working on or are there plans to develop a pure Swing-like GUI Framework for D? While bindings have the advantage of using native widgets, they tend to lack behind as native

Re: D "Swing"

2012-12-24 Thread Chris
On Monday, 24 December 2012 at 02:17:51 UTC, evilrat wrote: On Sunday, 23 December 2012 at 21:03:40 UTC, Chris wrote: There exist some GUI Toolkits for D, however, they are more or less all based on bindings to native toolkits. Is anyone working on or are there plans to develop a pure Swing

Re: D "Swing"

2012-12-24 Thread Chris
On Monday, 24 December 2012 at 11:12:15 UTC, Russel Winder wrote: On Mon, 2012-12-24 at 11:34 +0100, Chris wrote: […] However, I also like HTML/JS solutions but am not sure whether they can replace a real GUI framework like Cocoa or Swing. JS is at times cumbersome to use for user interfaces

Re: D "Swing"

2012-12-24 Thread Chris
On Monday, 24 December 2012 at 11:59:31 UTC, Jacob Carlborg wrote: Am one of those who prefer to use native widgets compared to something like GTK. But as you say they don't all provide all features. I think a good idea is the use a cross-platform GUI library for the common widgets that exis

Re: D "Swing"

2012-12-24 Thread Chris
Am one of those who prefer to use native widgets compared to something like GTK. But as you say they don't all provide all features. I think a good idea is the use a cross-platform GUI library for the common widgets that exists on all platforms, i.e. buttons and windows. There's not reason to

Re: D "Swing"

2012-12-24 Thread Chris
[..] I have worked with some native-binding framworks and there is always an issue (maybe even a bug in the native os). It's sounds like your suggesting that a non-native approach wouldn't have any bugs. I'm sure you're not, that would be crazy. No, of course not. But the bugs would be in-h

Re: D "Swing"

2012-12-25 Thread Chris
Is there a timeline for DWT Mac (moving it to D2)? I think it's D1 & Tango at the moment. Will there be D2 & Phobos? Sorry if the questions are a bit naive. I'd love to use DWT. For now, I can use a Cocoa front end for my D program, but I'd love to have a cross-platform GUI one day. By the wa

Re: D "Swing"

2012-12-26 Thread Chris
On Wednesday, 26 December 2012 at 15:54:12 UTC, Jacob Carlborg wrote: On 2012-12-25 22:40, Chris wrote: Unfortunately no, there is no timeline. I'm doing this on my spare time which, as for most here, is very limited. I'm also working on other D projects. Time is an issue, I know

Re: D "Swing"

2012-12-26 Thread Chris
On Wednesday, 26 December 2012 at 18:54:15 UTC, Jacob Carlborg wrote: On 2012-12-26 17:32, Chris wrote: What could be helpful is testing the snippets and see which works and which don't. I've started to adapt the snippets from the current DWT snippet repository to the DWT Mac

Re: Learning Haskell makes you a better programmer?

2012-12-27 Thread Chris
On Thursday, 27 December 2012 at 11:45:45 UTC, Russel Winder wrote: On Wed, 2012-12-26 at 22:48 +0100, bearophile wrote: Russel Winder: Practical experience, i.e. actually using it for real on real projects, indicates that Clojure is an excellent language and very usable. Moreover many people

Re: D "Swing"

2012-12-28 Thread Chris
Have you seen this one: https://github.com/sleets/dwt-mac

Re: D "Swing"

2012-12-28 Thread Chris
On Friday, 28 December 2012 at 11:51:55 UTC, Jacob Carlborg wrote: On Friday, 28 December 2012 at 11:19:11 UTC, Chris wrote: Have you seen this one: https://github.com/sleets/dwt-mac No, but it hasn't been updated for over a year. I don't see anything indicating it has come furthe

Re: D "Swing"

2012-12-28 Thread Chris
On Friday, 28 December 2012 at 14:09:27 UTC, Jacob Carlborg wrote: On 2012-12-28 13:05, Chris wrote: I see. If you have a list or better a *description* of what has to be done to finish the project and to update it to D2 (possibly with Phobos integration) please send it to me. My email

Re: D "Swing"

2012-12-28 Thread Chris
On Friday, 28 December 2012 at 18:36:17 UTC, Jacob Carlborg wrote: On 2012-12-28 19:13, Chris wrote: Thanks a million. I will have a look. I am adamant to get on with DWT for Mac. What about moving to D2 right now instead of debugging for D1 & Tango first? Are there any reasons why debug

Re: D "Swing"

2012-12-28 Thread Chris
Here is an article about difficulties in cross-platform GUI development (nothing new, really). http://www.informit.com/articles/article.aspx?p=787261 QtD doesn't need GCD anymore, apparently. I remember there were several fussy requirements for QtD a year or so ago that were rather off-puttin

Re: D "Swing"

2012-12-28 Thread Chris
On Friday, 28 December 2012 at 23:10:54 UTC, Chris wrote: Here is an article about difficulties in cross-platform GUI Another GUI toolkit I have come across is this one: http://www.tecgraf.puc-rio.br/iup/ Sorry, just realized there's an abandoned DIUP project.

Re: POD

2012-12-28 Thread Chris
On Friday, 29 December 2006 at 13:41:20 UTC, Aleksey S. Skidan wrote: I just wonder if there's such a thing as POD type in D? I have failed to find one. The extern(C) struct seems not to be the thing because it is hardwired to the ABI. POD = Prisoner of D?

Re: D "Swing"

2012-12-29 Thread Chris
On Friday, 28 December 2012 at 23:29:46 UTC, Jacob Carlborg wrote: On 2012-12-28 19:50, Chris wrote: And starting from scratch with D2? That would be the worst idea. How much would that take? I would be stupid to start from the beginning. That would take most effort and the most time of

Re: D "Swing"

2012-12-29 Thread Chris
On Saturday, 29 December 2012 at 12:35:22 UTC, Jacob Carlborg wrote: On 2012-12-29 13:10, Chris wrote: D1 is just missing some features and we're using Tango here instead of Phobos. But since this is a port of a Java library, you basically just think Java, if you know it. Yes, I know

Re: Social comments integrated with dlang.org

2012-12-29 Thread Chris
On Saturday, 29 December 2012 at 06:08:30 UTC, Walter Bright wrote: Further perusal of the PHP ones show quite a bit of junk posts. Is there a way to enable a single button delete for the moderator? As regards PHP I have to admit that I hardly ever use the code examples in the comment section

Re: D "Swing"

2012-12-29 Thread Chris
On Saturday, 29 December 2012 at 15:07:06 UTC, Jacob Carlborg wrote: On 2012-12-29 13:55, Chris wrote: problem with this bridge is bloat. A Hello World GUI application takes around 60MB in size. It's basically a dead end. This is a better solution: http://michelf.ca/projects/d-objc

std.conv.parse too finicky?

2013-01-02 Thread Chris
I was playing around with std.conv.parse's mechanism for parsing associative arrays from strings (cf. http://dlang.org/phobos/std_conv.html#parse). A handy feature as it would allow user-friendly input formats that can be transformed into a D-array. However, the parser is very finicky and expe

Re: std.conv.parse too finicky?

2013-01-02 Thread Chris
On Wednesday, 2 January 2013 at 17:06:50 UTC, bearophile wrote: Chris: Couldn't the parser infer from string[string] that the key:value pairs should be treated as strings, regardless of whether they are quoted or not? That parser is meant to be used to de-serialize simple D data struc

Re: std.conv.parse too finicky?

2013-01-02 Thread Chris
On Wednesday, 2 January 2013 at 17:22:57 UTC, monarch_dodra wrote: On Wednesday, 2 January 2013 at 17:02:48 UTC, Chris wrote: You could reduce burden by using raw strings: auto asso = `["key1":"value1", "key2":"value2"]`; Yes, I just thought it might

Re: std.conv.parse too finicky?

2013-01-05 Thread Chris
On Saturday, 5 January 2013 at 13:10:29 UTC, FG wrote: On 2013-01-02 19:23, Chris wrote: Yes, I just thought it might be handy for reading user defined files like localization files etc, like this one (without quote). [ Close:Cerrar, Open:Abrir, ... ] But then you would probably also want

Re: Is this a known issue in Phobos/DMD?

2013-01-06 Thread Chris
On Sunday, 6 January 2013 at 00:49:06 UTC, Jonathan M Davis wrote: 2. Now the function from std.algorithm that becomes visible, shadows the local argument count. Is this expected behavior? If not, has it already been reported as a bug? At the minimum I expect better error message here. _Tha

Re: vibe.d error on OS X 10.6

2013-01-10 Thread Chris
On Thursday, 10 January 2013 at 22:50:02 UTC, Chris wrote: Got the following error when running vibe after installing: ld: library not found for -levent_pthreads collect2: ld returned 1 exit status --- errorlevel 1 DMD 2.061 vibe.d 0.7.11 beta

vibe.d error on OS X 10.6

2013-01-10 Thread Chris
Got the following error when running vibe after installing: ld: library not found for -levent_pthreads collect2: ld returned 1 exit status --- errorlevel 1

Re: vibe.d error on OS X 10.6

2013-01-11 Thread Chris
On Friday, 11 January 2013 at 07:31:45 UTC, Jacob Carlborg wrote: On 2013-01-11 00:49, jerro wrote: It sounds like you need to install libevent. $ sudo port install libevent If you're using macports. Thanks, will try that

Re: Exceptional coding style

2013-01-15 Thread Chris
On Tuesday, 15 January 2013 at 10:47:19 UTC, mist wrote: On Monday, 14 January 2013 at 23:48:14 UTC, bearophile wrote: And extra vertical spaces are like semantic formatting tools for plain text - can group related blocks perfectly and speed up reading. The idea of not wasting lines doesn't g

Re: The kind of documentation people like

2013-03-06 Thread Chris
On Wednesday, 6 March 2013 at 08:17:58 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/19npsp/developers_may_be_getting_as_much_as_50_of_their/ What I get from this is that people really like PHP's documentation style where users can add to it. Stackoverflow is very goo

Re: Component programming

2013-08-19 Thread Chris
On Monday, 12 August 2013 at 12:28:36 UTC, Jason den Dulk wrote: On Wednesday, 31 July 2013 at 10:20:57 UTC, Chris wrote: This is only losely related to D, but I don't fully understand the separation of component programming and OOP What the wikipedia entry is saying, in a roundabout w

Re: Why I chose D over Ada and Eiffel

2013-08-20 Thread Chris
On Tuesday, 20 August 2013 at 07:08:08 UTC, Jacob Carlborg wrote: You can use this tool to automatically generate bindings to C libraries: https://github.com/jacob-carlborg/dstep Great stuff, Jacob! Congratulations. One thing that is usually not mentioned in articles about D is that you

Re: Why I chose D over Ada and Eiffel

2013-08-20 Thread Chris
On Tuesday, 20 August 2013 at 14:35:19 UTC, H. S. Teoh wrote: On Tue, Aug 20, 2013 at 11:19:27AM +0200, Chris wrote: On Tuesday, 20 August 2013 at 07:08:08 UTC, Jacob Carlborg wrote: > >You can use this tool to automatically generate bindings to C >libraries: > >https://g

Re: Why I chose D over Ada and Eiffel

2013-08-20 Thread Chris
On Tuesday, 20 August 2013 at 18:48:57 UTC, Walter Bright wrote: On 8/20/2013 8:31 AM, Chris wrote: I don't know if it's still on the website here somewhere. But I remember reading (2 years or so ago) that D shouldn't require a big IDE but should be manageable using a te

Re: DQuick a GUI Library (prototype)

2013-08-21 Thread Chris
On Wednesday, 21 August 2013 at 08:04:23 UTC, Jacob Carlborg wrote: On 2013-08-20 23:22, Flamaros wrote: I want to share a short presentation of the project I am working on with friends. It's a prototype of a GUI library written in D. This pdf contains our vision of what the project would be.

Re: Why I chose D over Ada and Eiffel

2013-08-23 Thread Chris
On Thursday, 22 August 2013 at 20:10:37 UTC, Ramon wrote: [...] Probably making myself new enemies I dare to say that gui, colourful and generally graphics is the area of lowest quality code. Simplyfying it somewhat and being blunt I'd state: Chances are that your server will hum along years

Re: Why I chose D over Ada and Eiffel

2013-08-23 Thread Chris
On Friday, 23 August 2013 at 14:14:47 UTC, Ramon wrote: Listen: Your reference is quality, realiability, even elegance (an excellent indicator), maybe performance and yourself knowing you did it well. Don't give Joe and Mary any power they wouldn't know how to use anyway. And btw: Probably Jo

Re: Why I chose D over Ada and Eiffel

2013-08-26 Thread Chris
On Monday, 26 August 2013 at 07:32:53 UTC, Zach the Mystic wrote: One of the theories as to why there are no bears to be found on the African continent is that they are omnivores - i.e. generalists - which in a hugely competitive environment such as Africa, there is no niche in which they wil

Re: Why I chose D over Ada and Eiffel

2013-08-27 Thread Chris
On Monday, 26 August 2013 at 18:33:55 UTC, Zach the Mystic wrote: On Monday, 26 August 2013 at 09:29:18 UTC, Chris wrote: I don't agree. I first used D exactly because it is an "all-rounder". For me built-in UTF support was as important a factor as native machine code (pe

A Class in Composition

2013-08-27 Thread Chris
I had a very simple method that would read a text file, parse it and create a lexicon of the type string[string]. public void loadLexicon(ref string[string] lex, string src) It was high time I made the method more sophisticated and flexible (allowing for comments in the source file, checking f

Re: A Class in Composition

2013-08-29 Thread Chris
On Wednesday, 28 August 2013 at 18:30:11 UTC, H. S. Teoh wrote: As for overheads, I wonder if, given enough experience over time, we can one day identify common patterns that the compiler can take advantage of and optimize into more efficient code. For example, if the compiler recognizes a line

Re: Replacing std.xml

2013-08-29 Thread Chris
On Thursday, 29 August 2013 at 09:24:31 UTC, Joakim wrote: I think it's great that there's no std.xml, as it implies that nobody using D would use a dumb tech like XML. Let's keep it that way. :) No way around XML. A must have, as has been said in this thread. But what would you suggest as a

Re: Replacing std.xml

2013-08-29 Thread Chris
On Thursday, 29 August 2013 at 13:20:40 UTC, Jacob Carlborg wrote: On 2013-08-29 11:23, Jonathan M Davis wrote: IIRC, everything in XML is ASCII anyway, with stuff like HTML codes to indicate Unicode characters. And if that's the case, avoiding unnecessary decoding is trivial when operating o

Re: Replacing std.xml

2013-08-29 Thread Chris
On Thursday, 29 August 2013 at 15:43:36 UTC, H. S. Teoh wrote: While I do agree that in the current state of affairs, XML support is a must, I also think that XML is just way overengineered, IMNSHO. It has adds too much overhead and therefore requires compression to be efficient, and it is need

Re: Replacing std.xml

2013-08-29 Thread Chris
On Thursday, 29 August 2013 at 19:26:21 UTC, Jacob Carlborg wrote: On 2013-08-29 16:07, Chris wrote: And while we're at it, what about YAML? It's a subset of JSON which means the new json.d module will handle it, I suppose. YAML is a super set of JSON, not the other way around. B

Re: A Class in Composition

2013-08-30 Thread Chris
I re-used the components (see above) in a different program (again a parser with different needs) and I ended up with more or less the same one-liner. auto dictionary = Lexicon(); // output range string[string] lex = arr.byEntry().copy(dictionary).lexicon; The only change necessary was the log

Re: d from the outside

2013-09-02 Thread Chris
On Sunday, 1 September 2013 at 23:47:09 UTC, Joakim wrote: The key is probably getting some popular apps built in D, where the developers rave about how D helped them get their work done better and faster. I am not aware of such design wins for D yet, but I hope and believe they will be there

YouTube programming & D

2013-09-03 Thread Chris
I went to a talk on YouTube. It was about how they have been adapting to changing demands over the years. One of the major issues was the decoding/encoding of videos (including enhancement of quality). For this they break the videos up into digestible chunks and encode/convert/edit the chunks s

Re: YouTube programming & D

2013-09-03 Thread Chris
On Tuesday, 3 September 2013 at 13:45:47 UTC, Chris wrote: I went to a talk on YouTube. It was about how they have been adapting to changing demands over the years. One of the major issues was the decoding/encoding of videos (including enhancement of quality). For this they break the videos up

[OT]: Memory & Performance

2013-09-03 Thread Chris
If you had the choice between: - 4 GB DDR3 SDRAM at 1600MHz - 1 X 4 GB - 8 GB Dual Channel DDR3 SDRAM at 1600MHz - 2 X 4GB ( + $49.00 ) Is it worth the extra money or is the increase in performance not worth mentioning? Any experience with that. The processor 4th Generation Intel® Core™ i7-4

Re: [OT]: Memory & Performance

2013-09-03 Thread Chris
On Tuesday, 3 September 2013 at 17:48:22 UTC, Wyatt wrote: On Tuesday, 3 September 2013 at 16:15:51 UTC, Chris wrote: If you had the choice between: - 4 GB DDR3 SDRAM at 1600MHz - 1 X 4 GB - 8 GB Dual Channel DDR3 SDRAM at 1600MHz - 2 X 4GB ( + $49.00 ) Is it worth the extra money or is the

Re: [OT]: Memory & Performance

2013-09-04 Thread Chris
On Wednesday, 4 September 2013 at 05:04:00 UTC, Jonathan M Davis wrote: Only $49 difference? I'd definitely go for the more memory. Of course, I always go for high performance over price unless the difference is really pricey, and I wouldn't want as little memory as 8 GB either. I always use

Re: [OT]: Memory & Performance

2013-09-04 Thread Chris
On Wednesday, 4 September 2013 at 06:47:15 UTC, Jacob Carlborg wrote: On 2013-09-03 23:10, Chris wrote: The machine I was looking at is this one: https://www.system76.com/laptops/model/gazp9# A laptop! Buy parts a build your own desktop :) You are actually right. I should look into that

Re: YouTube programming & D

2013-09-04 Thread Chris
On Wednesday, 4 September 2013 at 02:04:17 UTC, Rikki Cattermole wrote: Would you be interested in doing a live stream programming on Twitch? I started doing it recently when I can. It would be great to get together a group of us and do it with e.g. Mumble. We can publish videos on to Youtu

Re: [OT]: Memory & Performance

2013-09-04 Thread Chris
On Wednesday, 4 September 2013 at 09:09:49 UTC, monarch_dodra wrote: BTW: About the "hybrid" drives. AFAIK, they used to be "better than not hybrid, I guess but still leaps and bounds inferior to an SSD". That said, their algorithms get better every day, so I don't know. I think the real choi

Re: [OT]: Memory & Performance

2013-09-04 Thread Chris
On Wednesday, 4 September 2013 at 13:11:36 UTC, Wyatt wrote: On Wednesday, 4 September 2013 at 08:48:52 UTC, Chris wrote: On Wednesday, 4 September 2013 at 06:47:15 UTC, Jacob Carlborg wrote: On 2013-09-03 23:10, Chris wrote: The machine I was looking at is this one: https://www.system76

Re: Why I chose D over Ada and Eiffel

2013-09-05 Thread Chris
On Friday, 23 August 2013 at 03:47:00 UTC, H. S. Teoh wrote: On Fri, Aug 23, 2013 at 05:06:01AM +0200, Ramon wrote: On Thursday, 22 August 2013 at 23:59:59 UTC, H. S. Teoh wrote: >Or rather, I *will* be happy as can be once I find a suitable >replacement for a browser. Browsers are by far the mo

Re: LLVM progress

2013-09-09 Thread Chris
Not to mention the importance of ARM support.

Re: LLVM progress

2013-09-10 Thread Chris
On Monday, 9 September 2013 at 15:56:17 UTC, Flamaros wrote: On Monday, 9 September 2013 at 10:29:56 UTC, Chris wrote: Not to mention the importance of ARM support. It's an evidence that is a major target today. :-) I work only on ARM compatible application for my day job, that why D

Re: Not with the scene…

2013-09-11 Thread Chris
On Wednesday, 11 September 2013 at 08:32:43 UTC, Jacob Carlborg wrote: On 2013-09-10 23:53, Nick Sabalausky wrote: Europe has good taste in music. Example: Almost anytime I watch Top Gear, I notice them using great songs that I recognize from my own collection that you almost never hear played

Re: Not with the scene…

2013-09-11 Thread Chris
On Wednesday, 11 September 2013 at 08:46:12 UTC, deadalnix wrote: On Tuesday, 10 September 2013 at 20:35:00 UTC, Nick Sabalausky wrote: On Tue, 10 Sep 2013 19:26:48 +0100 Russel Winder wrote: Perhaps I am late to the party, but clearly all the meta-data associated with packages managed by Dub

D Ranges

2013-09-13 Thread Chris
A short report on component programming and ranges. A lot of my code deals with transforming and reformatting input, e.g. text is split into sentences and words for grammatical parsing (part of speech) and phonetic transcriptions. I'm using D ranges and component programming and I'm quite happ

Re: D Ranges

2013-09-13 Thread Chris
On Friday, 13 September 2013 at 13:42:07 UTC, Dicebot wrote: On Friday, 13 September 2013 at 13:31:18 UTC, bearophile wrote: In most cases today you are free to omit those (): foreach (bySentence.byWord.byWhateverFormat.byReformatAgain) { Bye, bearophile ...but you shouldn't if you care abou

Re: D Ranges

2013-09-13 Thread Chris
On Friday, 13 September 2013 at 17:35:21 UTC, Brad Anderson wrote: On Friday, 13 September 2013 at 14:39:29 UTC, Chris wrote: On Friday, 13 September 2013 at 13:42:07 UTC, Dicebot wrote: On Friday, 13 September 2013 at 13:31:18 UTC, bearophile wrote: In most cases today you are free to omit

Re: D Ranges

2013-09-16 Thread Chris
On Monday, 16 September 2013 at 13:05:56 UTC, Chris wrote: On Saturday, 14 September 2013 at 02:10:13 UTC, Jesse Phillips wrote: There isn't a guide in the manner you desire. In my experience I generally don't hold any more data than the value returned by front (to prevent rec

Re: D Ranges

2013-09-16 Thread Chris
On Saturday, 14 September 2013 at 02:10:13 UTC, Jesse Phillips wrote: There isn't a guide in the manner you desire. In my experience I generally don't hold any more data than the value returned by front (to prevent recalculation). Right now I don't recall what situations I've needed to store

Re: [OT] Which IDE / Editor do you use?

2013-09-18 Thread Chris
On Friday, 13 September 2013 at 19:48:18 UTC, Namespace wrote: Just out of interest. I use Sublime 2, Notepad++ and as IDE currently Mono-D. But I will try this evening VisualD. I have been using jEdit quite a lot, in fact I've done most of my D programming in jEdit. jEdit may be the odd on

Re: [OT] Which IDE / Editor do you use?

2013-09-18 Thread Chris
On Wednesday, 18 September 2013 at 09:15:36 UTC, PauloPinto wrote: On Wednesday, 18 September 2013 at 08:42:16 UTC, Chris wrote: On Friday, 13 September 2013 at 19:48:18 UTC, Namespace wrote: Just out of interest. I use Sublime 2, Notepad++ and as IDE currently Mono-D. But I will try this

Re: [OT] Language Cocktail

2013-09-18 Thread Chris
On Wednesday, 18 September 2013 at 08:38:05 UTC, Namespace wrote: http://consoleblog.me/posts/cocktails-for-programmers Any suggestions for D? D-programmers don't drink cocktails. They drink beer! But if you're trying to come up with a recipe for a cocktail, make sure that one of the ingredi

Re: [OT] Language Cocktail

2013-09-18 Thread Chris
On Wednesday, 18 September 2013 at 13:55:11 UTC, Namespace wrote: American beer or real beer? I said beer. This should answer your question.

Re: [OT] Language Cocktail

2013-09-18 Thread Chris
On Wednesday, 18 September 2013 at 14:35:59 UTC, Namespace wrote: On Wednesday, 18 September 2013 at 14:31:48 UTC, Chris wrote: On Wednesday, 18 September 2013 at 13:55:11 UTC, Namespace wrote: American beer or real beer? I said beer. This should answer your question. Right answer. Are

Re: [OT] Language Cocktail

2013-09-18 Thread Chris
On Wednesday, 18 September 2013 at 15:18:19 UTC, John Colvin wrote: On Wednesday, 18 September 2013 at 08:38:05 UTC, Namespace wrote: http://consoleblog.me/posts/cocktails-for-programmers Any suggestions for D? Without having looked at the link, I had a few ideas for different languages: C

Will Java go native?

2013-09-18 Thread Chris
Seeing that more and more developers and companies look for or actively develop native languages, I wonder will Java go native one day? (Cf. http://docs.oracle.com/cd/A97336_01/buslog.102/a83727/jtools5.htm) Is this Java's only chance to keep up with Go and Rust (and D)? Performance is an iss

Re: Will Java go native?

2013-09-18 Thread Chris
On Wednesday, 18 September 2013 at 22:24:08 UTC, Paulo Pinto wrote: Am 18.09.2013 23:33, schrieb Chris: Seeing that more and more developers and companies look for or actively develop native languages, I wonder will Java go native one day? (Cf. http://docs.oracle.com/cd/A97336_01/buslog.102

Re: Will Java go native?

2013-09-18 Thread Chris
On Wednesday, 18 September 2013 at 22:33:46 UTC, Chris wrote: On Wednesday, 18 September 2013 at 22:24:08 UTC, Paulo Pinto wrote: Am 18.09.2013 23:33, schrieb Chris: Seeing that more and more developers and companies look for or actively develop native languages, I wonder will Java go native

Re: Will Java go native?

2013-09-19 Thread Chris
@Paulo Sorry to say this, but this was only because people had to pay for it. I have been part of the Java land since the beginning. Given that Sun made the SDK available for free, and much projects in Java land are FOSS, there is this culture of free (as in beer). This is true, and I think

Re: Will Java go native?

2013-09-19 Thread Chris
On Thursday, 19 September 2013 at 09:30:21 UTC, Dmitry Leskov wrote: On Wednesday, 18 September 2013 at 22:33:46 UTC, Chris wrote: On Wednesday, 18 September 2013 at 22:24:08 UTC, Paulo Pinto wrote: http://www.excelsior-usa.com/jet.html I've heard of excelsior ($2,500+) and

Re: Will Java go native?

2013-09-19 Thread Chris
On Thursday, 19 September 2013 at 09:52:40 UTC, deadalnix wrote: On Wednesday, 18 September 2013 at 21:33:50 UTC, Chris wrote: Seeing that more and more developers and companies look for or actively develop native languages, I wonder will Java go native one day? (Cf. http://docs.oracle.com/cd

Re: Will Java go native?

2013-09-19 Thread Chris
On Thursday, 19 September 2013 at 13:55:34 UTC, Olivier Pisano wrote: D's ability of using a C function just by declaring it and linking with C code is a bless. Amen!

Re: Will Java go native?

2013-09-24 Thread Chris
On Friday, 20 September 2013 at 05:23:15 UTC, Dmitry Leskov wrote: On Thursday, 19 September 2013 at 09:44:30 UTC, Chris wrote: Yes, the whole issue of decompilation was also an issue. Funnily enough, a few years ago I wrote an email to Excelsior asking if you guys offer a discount for

Re: Will Java go native?

2013-09-27 Thread Chris
On Friday, 27 September 2013 at 11:05:17 UTC, Dmitry Leskov wrote: On Tuesday, 24 September 2013 at 09:17:47 UTC, Chris wrote: On Friday, 20 September 2013 at 05:23:15 UTC, Dmitry Leskov wrote: On Thursday, 19 September 2013 at 09:44:30 UTC, Chris wrote: Yes, the whole issue of decompilation

std.xml – any news?

2013-09-27 Thread Chris
Is anyone working on std.xml (and possibly json/yaml?) at the moment? std.xml is vry slow and is a serious performance bottleneck in my application (with dmd, with ldc it's fine). I know that there is a deprecation warning and if I ever hoped that something would be deprecated, it's this mo

Re: [RFC] - mysql-native rewrite

2013-09-30 Thread Chris
On Saturday, 28 September 2013 at 16:39:27 UTC, simendsjo wrote: I've been working on a more or less complete rewrite of the mysql-native module. The main focus has been on making the source better decoupled and more maintainable. In the process, I've changed the API too... The existing prod

Re: [RFC] - mysql-native rewrite

2013-09-30 Thread Chris
On Monday, 30 September 2013 at 14:08:12 UTC, Dicebot wrote: On Monday, 30 September 2013 at 14:00:10 UTC, Chris wrote: It would be nice, if someone with experience wrote a short article / tutorial about when to use structs and when to use classes, where the pitfalls are etc. I don't

Re: [RFC] - mysql-native rewrite

2013-09-30 Thread Chris
On Monday, 30 September 2013 at 17:19:44 UTC, Jacob Carlborg wrote: On 2013-09-30 16:08, Dicebot wrote: I don't think there is a common consensus here. Don't even think it is possible. Doom of proper multi-paradigm language :) At least a few point can be made, like: * For reference types us

goto a no-go?

2013-10-01 Thread Chris
Just a short question. Usually goto statements are frowned upon as being bad programming style (in textbooks at least). D has it (thankfully) and I've used it, albeit sparingly. Sometimes goto is simply the best and most efficient solution within a code block (to avoid code duplication, unneces

Re: goto a no-go?

2013-10-01 Thread Chris
On Tuesday, 1 October 2013 at 11:26:54 UTC, Dicebot wrote: // ... if (word.length == 1) goto FormatOutput; // if word.length > 1, some extra work has to be done // initialize some variables, parse, do some processing etc. FormatOutput: // . return output; Have never felt need to use `got

Re: goto a no-go?

2013-10-01 Thread Chris
On Tuesday, 1 October 2013 at 12:13:18 UTC, Dicebot wrote: On Tuesday, 1 October 2013 at 11:35:35 UTC, Chris wrote: Thanks, this is what I was looking for, a more elegant solution. I was going through some old code and saw the odd goto statement. scope() shows of course that some sort of goto

  1   2   3   4   5   6   7   8   9   10   >