Re: A few notes on choosing between Go and D for a quick project

2015-03-22 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 21 March 2015 at 15:09:32 UTC, Andrei Alexandrescu wrote: On 3/20/15 9:43 PM, Sebastiaan Koppe wrote: On Saturday, 21 March 2015 at 01:31:21 UTC, Andrei Alexandrescu wrote: On 3/20/15 5:56 PM, Walter Bright wrote: On 3/20/2015 5:23 PM, Andrei Alexandrescu wrote: Yah, and uses

SO/messaging - dmd is fast to compile; ldc/gdc generate fast code

2015-03-21 Thread Laeeth Isharc via Digitalmars-d
Yah, nitpicks should go there too. We need to have an understanding that statistically everybody is on SO and nobody here :o). I have seen repeatedly - on stack overflow and elsewhere - people benchmarking 'D' against other languages using dmd. The messaging on the home page and download

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread Laeeth Isharc via Digitalmars-d
On Friday, 20 March 2015 at 20:34:36 UTC, Walter Bright wrote: On 3/20/2015 8:25 AM, weaselcat wrote: All of the content on rosettacode appears to be licensed under GNU FDL, I believe it would just have to be released under the GNU FDL or a similar copyleft license that fulfills the GNU FDL.

Re: [Semi OT] The programming language wars

2015-03-21 Thread Laeeth Isharc via Digitalmars-d
Right, but it is likely that the nature of programming will ni change. In the beginning of the web the search engines had trouble matching anything but exact phrases, now they are capable of figuring out what you probably wanted. As you implicitly recognize later, it's not either/or, in the

Re: [Semi OT] The programming language wars

2015-03-20 Thread Laeeth Isharc via Digitalmars-d
On Friday, 20 March 2015 at 07:37:04 UTC, Paulo Pinto wrote: Language features should be tested with real users using scientific validation processes, instead of being blindly added to a language. There is nothing intrinsically more scientific about basing a decision on a study rather than

Re: SDC-32bit

2015-03-20 Thread Laeeth Isharc via Digitalmars-d-announce
On Friday, 17 October 2014 at 18:47:54 UTC, Stefan Koch wrote: On Friday, 17 October 2014 at 10:39:15 UTC, Temtaime wrote: New backend why ? Because I want to code a backend. I want output C or maybe even Cool ... generating UML via a backend would also be nice. Congrats on the project - v

Re: calling C variadic arguments with no 'argc' and only variadic arguments

2015-03-18 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 18 March 2015 at 05:38:40 UTC, Ali Çehreli wrote: On 03/17/2015 06:13 PM, Laeeth Isharc wrote: DMD gave me an error message for the following declarations: double mgl_rnd (...); double mgl_rnd_ (...); Are you sure those are the right signatures? I don't think those functions

Re: calling C variadic arguments with no 'argc' and only variadic arguments

2015-03-18 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 18 March 2015 at 16:14:28 UTC, Jacob Carlborg wrote: On 2015-03-18 05:49, Laeeth Isharc wrote: Thanks. I should have double checked but trusted dstep which seems to have gotten confused by these ones. Its a great time saver generally though. Please report any issues with

Re: pyd and converting arrays of strings

2015-03-18 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 18 March 2015 at 20:58:56 UTC, John Colvin wrote: On Wednesday, 18 March 2015 at 17:09:27 UTC, Laeeth Isharc wrote: Hi I am using PyD with latest stable LDC on Arch Linux 64 bit. I have various structures I am trying to wrap to pass to python. For example: struct PlotLines {

pyd and converting arrays of strings

2015-03-18 Thread Laeeth Isharc via Digitalmars-d-learn
Hi I am using PyD with latest stable LDC on Arch Linux 64 bit. I have various structures I am trying to wrap to pass to python. For example: struct PlotLines { KPDateTime[] start_dates; KPDateTime[] end_dates; double[] y; string[] colors; long[]

Re: A few notes on choosing between Go and D for a quick project

2015-03-17 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 18 March 2015 at 02:02:27 UTC, bachmeier wrote: On Wednesday, 18 March 2015 at 01:52:00 UTC, Laeeth Isharc wrote: PyD is pretty nice, although one wouldn't want to call it from an inner loop. Why wouldn't you want to call it from an inner loop? See benchmark someone did a

Re: calling C variadic arguments with no 'argc' and only variadic arguments

2015-03-17 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 18 March 2015 at 03:14:30 UTC, Daniel Murphy wrote: Laeeth Isharc wrote in message news:jmlgralvzaqperfkn...@forum.dlang.org... DMD gave me an error message for the following declarations: double mgl_rnd (...); double mgl_rnd_ (...); It says I need at least one fixed argument

calling C variadic arguments with no 'argc' and only variadic arguments

2015-03-17 Thread Laeeth Isharc via Digitalmars-d-learn
So I ported the C API for MathGL to D, and it is up at code.dlang.org (under dmathgl). MathGL is a nice plotting library. http://mathgl.sourceforge.net/doc_en/Pictures.html#Pictures Later I will work on porting the C++ interface, but so far it at least works for the simplest sample. (Not

Re: A few notes on choosing between Go and D for a quick project

2015-03-17 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 17 March 2015 at 21:00:11 UTC, bachmeier wrote: On Tuesday, 17 March 2015 at 19:00:06 UTC, jmh530 wrote: In addition, further development of the ability to call D from R or Python* or Julia (or vice-versa) would also be a positive. What do you have in mind? I no longer work much

Re: calling C variadic arguments with no 'argc' and only variadic arguments

2015-03-17 Thread Laeeth Isharc via Digitalmars-d
sorry - posted in wrong forum On Wednesday, 18 March 2015 at 00:54:07 UTC, Laeeth Isharc wrote: So I ported the C API for MathGL to D, and it is up at code.dlang.org (under dmathgl). MathGL is a nice plotting library. http://mathgl.sourceforge.net/doc_en/Pictures.html#Pictures Later I will

calling C variadic arguments with no 'argc' and only variadic arguments

2015-03-17 Thread Laeeth Isharc via Digitalmars-d
So I ported the C API for MathGL to D, and it is up at code.dlang.org (under dmathgl). MathGL is a nice plotting library. http://mathgl.sourceforge.net/doc_en/Pictures.html#Pictures Later I will work on porting the C++ interface, but so far it at least works for the simplest sample. (Not

enabling persistent state for the REPL?

2015-03-16 Thread Laeeth Isharc via Digitalmars-d
On Monday, 16 March 2015 at 21:36:45 UTC, deadalnix wrote: I'm talking about: https://drepl.dawg.eu/ It has been several days already that it is coming soon. How soon is soon ? It's a different topic (and hope you will forgive my hijacking your thread - I don't know the answer, but guess

Re: A few notes on choosing between Go and D for a quick project

2015-03-16 Thread Laeeth Isharc via Digitalmars-d
On Monday, 16 March 2015 at 08:54:20 UTC, Joakim wrote: On Monday, 16 March 2015 at 08:33:43 UTC, Zach the Mystic wrote: I see D attracting *really* good programmers, programmers from, let's say the 90-95th percentile in skill and talent in their field on average. By marketing to these

Re: A few notes on choosing between Go and D for a quick project

2015-03-16 Thread Laeeth Isharc via Digitalmars-d
On Monday, 16 March 2015 at 09:31:17 UTC, Ola Fosheim Grøstad wrote: On Sunday, 15 March 2015 at 14:56:23 UTC, Chris wrote: We invariably end up talking about language features and syntax, as if D lost out against Go, because of feature X being (or not being) there. We lose, because we fail

Re: A few notes on choosing between Go and D for a quick project

2015-03-16 Thread Laeeth Isharc via Digitalmars-d
On Monday, 16 March 2015 at 08:07:26 UTC, ninja wrote: On Monday, 16 March 2015 at 01:22:47 UTC, cym13 wrote: If stories are wanted, I might as well tell mine. I am an attorney and a typical programming-language-user: I love to code my own utilities for the job (document-creation,

Re: Facebook, D and the web

2015-03-16 Thread Laeeth Isharc via Digitalmars-d
On Monday, 16 March 2015 at 14:47:15 UTC, Chris wrote: In a recent thread[1] there was a lot of talk about how to make D more attractive, how to communicate it's advantages to a broader audience etc. I was wondering, if Facebook would be interested in either developing or championing the

Re: Facebook, D and the web

2015-03-16 Thread Laeeth Isharc via Digitalmars-d
On Monday, 16 March 2015 at 16:26:10 UTC, Marc Schütz wrote: On Monday, 16 March 2015 at 14:47:15 UTC, Chris wrote: In a recent thread[1] there was a lot of talk about how to make D more attractive, how to communicate it's advantages to a broader audience etc. I was wondering, if Facebook

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 15 March 2015 at 10:53:21 UTC, Marc Schütz wrote: I hope you'll get better! Thanks. On the mend, but it takes time... 3. I have said so before (the GroupBy docs) - standard library documentation is 'perfectly clear' if you have a technical mindset and are used to reading

Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 15 March 2015 at 12:52:37 UTC, Chris wrote: Apart from performance issues, for language processing, string handling etc., Python quickly becomes a nightmare (UTF-8). Then there are issues like the one that classes cannot really have private variables. [I am by no means expert in

thoughts on best way to implement bokeh interface in D

2015-03-15 Thread Laeeth Isharc via Digitalmars-d
Bokeh is a very cool charting library that is distinguished by a focus on interactivity in the browser. Each chart is an html file with an embedded bokeh javascript library - the server generates JSON from the object model and the client take this and renders it. There are ways to register

Re: A few notes on choosing between Go and D for a quick project

2015-03-14 Thread Laeeth Isharc via Digitalmars-d
Hi. Some points I think are important follow. I can't do much on these myself for now as computer use limited by a spinal injury. 1. Compilation speed of D under reference compiler compares very favourably to most (all?) other compiled languages. This facilitates rapid iteration, which

Re: What am I doing wrong here - canFind with iota is not working

2015-02-26 Thread Laeeth Isharc via Digitalmars-d
Hi John. Tks help with ldc - will look at that shortly. So Kingsly needs to use a predicate for canFind that returns true if the two values being compared are close enough to being the same given floating point quirks ? Ie I think people diagnosed the problem, but what is the solution...

Re: What am I doing wrong here - canFind with iota is not working

2015-02-26 Thread Laeeth Isharc via Digitalmars-d
Thanks. Rough version for Wiki here: http://wiki.dlang.org/Floating_Point_Gotchas It could be tidier, but I am not able to do so at moment. Feel free to change. On Thursday, 26 February 2015 at 14:04:17 UTC, John Colvin wrote: On Thursday, 26 February 2015 at 12:39:20 UTC, Laeeth Isharc

fwiw quora thread on facebook/D

2015-02-24 Thread Laeeth Isharc via Digitalmars-d
https://www.quora.com/Why-is-Facebook-supporting-development-of-the-D-programming-language/answer/Laeeth-Isharc Quora has the vices of every democratic platform, but does seem to reach people, and a different set to demographic of hacker news and the like.

Dlang ipad code editor

2015-02-21 Thread Laeeth Isharc via Digitalmars-d
Just came across codetogo for ipad. It has been around a while, but there didnt seem to be a mention of it previously. You can write dlang code with syntax highlighting, and run it if you have an Internet connection. I don't know yet how it works with multi file programs, imports, etc, but

Re: D and GPGPU

2015-02-18 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 18 February 2015 at 15:15:21 UTC, Russel Winder wrote: It strikes me that D really ought to be able to work with GPGPU – is there already something and I just failed to notice. This is data parallelism but of a slightly different sort to that in std.parallelism. std.concurrent,

Re: D and GPGPU

2015-02-18 Thread Laeeth Isharc via Digitalmars-d
One interesting C++ use in finance of CUDA. Joshi is porting quantlib, or at least part of it, to a cuda environment. Some nice speed ups for Bermudan pricing. http://sourceforge.net/projects/kooderive/ http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1473563

Google C/C++ map reduce

2015-02-18 Thread Laeeth Isharc via Digitalmars-d
Released recently; http://google-opensource.blogspot.co.uk/2015/02/mapreduce-for-c-run-native-code-in.html Looks like it doesn't need a special compiler or anything. Is there anything beyond needing to port C API that means one couldn't use it with D? Any reason why it wouldn't be something

Author of rust book explores Nim

2015-02-14 Thread Laeeth Isharc via Digitalmars-d
Via HN https://github.com/andreaferretti/on-rust-and-nim The original email I hope you don't mind if I contact you directly, and ignore if you're offended, but I saw your post on the parasail email list and looked at your KMeans benchmark. In particular, I was interested in your statement

Re: Author of rust book explores Nim

2015-02-14 Thread Laeeth Isharc via Digitalmars-d
Clarification - author of the project unix in rust, not a book. He is a beginner in both rust and Nim. On Saturday, 14 February 2015 at 17:12:00 UTC, Laeeth Isharc wrote: Via HN https://github.com/andreaferretti/on-rust-and-nim The original email I hope you don't mind if I contact you

Re: London D Programmers MeetUp

2015-02-13 Thread Laeeth Isharc via Digitalmars-d-announce
done. and gave him headsup too. is your email no spam o n e at yourfullname.com ? if not what should the first part be? or you can email me at myfirstn...@myfirstname.com On Friday, 13 February 2015 at 07:31:52 UTC, Laeeth Isharc wrote: On Wednesday, 11 February 2015 at 22:28:03 UTC,

Re: updatesh.d now ready for download ;)

2015-02-12 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 8 February 2015 at 10:58:40 UTC, Baz wrote: On Thursday, 29 January 2015 at 08:05:28 UTC, Laeeth Isharc wrote: On Wednesday, 28 January 2015 at 18:46:05 UTC, Benjamin Thaut wrote: Am 28.01.2015 um 18:05 schrieb Andrei Alexandrescu: On 1/28/15 9:01 AM, Benjamin Thaut wrote: On

Re: Proposal : aggregated dlang git repository

2015-02-10 Thread Laeeth Isharc via Digitalmars-d
It is a delicate matter. Yes, spreading over less important issues is harmful for focusing on core ones. But the same time having many small issues unresolved harms the contribution culture as those keep annoying people over and over again. Excellence can come in part from getting many small

Re: New DIP73: D Drafting Library

2015-02-05 Thread Laeeth Isharc via Digitalmars-d
Perhaps it is over ambitious to start with the goal of producing only code destined to end up in Phobos. The domain is so broadly defined, and the standard to aspire to so high that one ends up setting the goalpost so high that given likely contributors one risks ending up running out of

Re: London D Programmers MeetUp

2015-02-05 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 5 February 2015 at 12:06:31 UTC, Russel Winder wrote: On Wed, 2015-02-04 at 21:35 +, Iain Buclaw via Digitalmars-d-announce wrote: […] That pretty much sums up my understanding of it too. I recollect the banter including (paraphrased): if the prototype works, just put it

Re: London D Programmers MeetUp

2015-02-05 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 5 February 2015 at 20:40:52 UTC, Laeeth Isharc wrote: On Thursday, 5 February 2015 at 12:06:31 UTC, Russel Winder wrote: On Wed, 2015-02-04 at 21:35 +, Iain Buclaw via Digitalmars-d-announce wrote: […] That pretty much sums up my understanding of it too. I recollect the

Re: New DIP73: D Drafting Library

2015-02-05 Thread Laeeth Isharc via Digitalmars-d
On Thursday, 5 February 2015 at 22:10:35 UTC, Israel wrote: On Thursday, 5 February 2015 at 05:51:18 UTC, tcak wrote: On Thursday, 5 February 2015 at 04:37:21 UTC, Tofu Ninja wrote: What could be great is if DMD supported something like JAR packages, and could look for modules inside of them.

Re: New DIP73: D Drafting Library

2015-02-05 Thread Laeeth Isharc via Digitalmars-d
How could you be sure that after long lonely work the proposal is worth inclusion? No need to be lonely. You can (and should) have community projects on dub. The dub repository is a distribution mechanism, if you want community contribution to a library advertise as such and git er done.

Re: New DIP73: D Drafting Library

2015-02-05 Thread Laeeth Isharc via Digitalmars-d
Hi Dicebot. You are a clear thinker - close reasoning - and I admire that. As you may see requirements are very lax. Only real difference is that your proposal allows to accept modules that are not supposed to ever go to Phobos at all - which I am still convinced is a bad thing and belongs

Re: London D Programmers MeetUp

2015-02-04 Thread Laeeth Isharc via Digitalmars-d-announce
Thank you, Kingsley, for a very well organized and thought-through event. I was impressed by the calibre of people that attended, and look forward to attending future meetups.

Re: London D Programmers MeetUp

2015-02-04 Thread Laeeth Isharc via Digitalmars-d-announce
One interesting anecdote: somebody in a financial services company gave an account of giving D a try as a way to prototype something quickly, intending to rewrite it later in a more conventional language. The prototype went straight into production, and they are happy with it. The C interop

Re: C++ to catch up?

2015-02-04 Thread Laeeth Isharc via Digitalmars-d
Absolutely not inappropriate. I actually prefer it being a newsgroup user. Many people will instead reference a post on the forum instead of replying, and then I have to use the forum interface to see what they are talking about. I'd much rather have the full discussion in my preferred

Re: C++ to catch up?

2015-02-04 Thread Laeeth Isharc via Digitalmars-d
To Zachary: The big temptation for software developers is to *promise* stability in order to attract the users they need in order to get the feedback they need in order to create the best possible design, and then break stability with the new design. Yes - economists call this time

Re: C++ to catch up?

2015-02-03 Thread Laeeth Isharc via Digitalmars-d
Excellent post. This situation is very obvious to us at Sociomantic, as we're at the forefront of a massive disruption that is happening in the advertising industry. D has far better prospects in disruptive technology, rather than trying to compete with incumbents in the rapidly disappearing

Re: C++ to catch up?

2015-02-02 Thread Laeeth Isharc via Digitalmars-d
On Monday, 2 February 2015 at 00:49:14 UTC, Walter Bright wrote: Thanks for the good read! BTW, one effect D has had is that other languages are adopting D's features, though few will admit it. Yes - eerily out of the book from the Innovator's Dilemma. But as Jonathan said (and maybe you

Re: C++ to catch up?

2015-02-02 Thread Laeeth Isharc via Digitalmars-d
Wait, is this a reply today to a post made in November 2012? -- Andrei Yes, here is what happens: 1. person does a search, finds 2+ year old thread that he likes to respond to. 2. Entire thread gets pushed to the most recent posts on forum/newsgroup 3. Others now see the thread (possibly

Re: foreach - premature optimization vs cultivating good habits

2015-02-01 Thread Laeeth Isharc via Digitalmars-d-learn
Thank you Adam, Bbaz and Ola for the helpful thoughts. I dumped them in a wiki page off the sandbox but needs editing and refining.

Re: Mars Drafting Library - Official community driven library

2015-02-01 Thread Laeeth Isharc via Digitalmars-d
Things are never quite the same, but it is still interesting to remind oneself of experience in other languages. History of numpy /scipy here: http://wiki.scipy.org/History_of_SciPy Would it have made the cut if it had had to meet an std.experimental level of quality in its earlier days ?

Re: C++ to catch up?

2015-02-01 Thread Laeeth Isharc via Digitalmars-d
On Monday, 5 November 2012 at 18:20:23 UTC, Jonathan M Davis wrote: The closer that C++ gets to D, the less interested that many people will be in adopting it, particularly because of the large user base and the large amount of code out there that already uses C++. Programmers have to be

Re: Mars Drafting Library - Official community driven library

2015-01-31 Thread Laeeth Isharc via Digitalmars-d
This has the advantage over existing situation where you have the official library where things need to go through exacting and time consuming process and then dub. Within dub every project is at the same level and it is not obvious which projects are the ones to use, and there is not

Re: Mars Drafting Library - Official community driven library

2015-01-31 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 31 January 2015 at 18:45:13 UTC, Israel wrote: On Saturday, 31 January 2015 at 18:11:48 UTC, Laeeth Isharc wrote: This has the advantage over existing situation where you have the official library where things need to go through exacting and time consuming process and then dub.

Re: foreach - premature optimization vs cultivating good habits

2015-01-30 Thread Laeeth Isharc via Digitalmars-d-learn
On Friday, 30 January 2015 at 12:55:20 UTC, Adam D. Ruppe wrote: On Friday, 30 January 2015 at 11:55:16 UTC, Laeeth Isharc wrote: As I understand it, foreach allocates when a simple C-style for using an array index would not. foreach is just syntax sugar over a for loop. If there's any

foreach - premature optimization vs cultivating good habits

2015-01-30 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. The standard advice is not to worry about memory usage and execution speed until profiling shows you where the problem is, and I respect Knuth greatly as a thinker. Still, one may learn from others' experience and cultivate good habits early. To say that one should not prematurely

Re: Calypso: Direct and full interfacing to C++

2015-01-29 Thread Laeeth Isharc via Digitalmars-d-announce
On Saturday, 24 January 2015 at 00:51:49 UTC, Elie Morisse wrote: Nevermind it's just that CodeGen is ambiguous with clang::CodeGen although my compiler doesn't complain. Fixed. Hi Elie. We are really excited about your project, as it really opens up new possibilities and will certainly save

Re: Calypso and the future of D

2015-01-27 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 27 January 2015 at 16:39:40 UTC, Elie Morisse wrote: On Monday, 26 January 2015 at 19:35:11 UTC, Laeeth Isharc wrote: I posted some thoughts on web docs writeup of C+= interface here.

Re: One area where D has the edge

2015-01-27 Thread Laeeth Isharc via Digitalmars-d
Out of curiosity, what is lacking in the current commercial offerings for hedge fund management? Why not use an existing engine? In the general sense, lots is lacking across the board. I started a macro fund in 2012 with a former colleague from Citadel in partnership with another company,

Re: One area where D has the edge

2015-01-27 Thread Laeeth Isharc via Digitalmars-d
I cannot speak about small team experiences. Our projects usually take around 30+ developers. That it is a decent sized team to have to coordinate and it puts emphasis on very different questions. The context I am thinking of is much leaner - more like special forces than the regular army

Re: One area where D has the edge

2015-01-27 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 27 January 2015 at 13:02:06 UTC, Wyatt wrote: On Monday, 26 January 2015 at 22:05:55 UTC, Laeeth Isharc wrote: I don't know F#. I know what you mean, but I don't think the competition to D consists of crappy languages - there are some very smart and creative people with large

Other libraries - web site link, and other thoughts

2015-01-26 Thread Laeeth Isharc via Digitalmars-d-learn
At the moment it goes straight go code.dlang.org, which may be a bit overwhelming if you have just arrived at dlang.org and want to see what it can do. Is it worth changing to the library wiki write up page on libraries? And making sure link to code.dlang.org is prominent, saying

Re: Calypso and the future of D

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 16:40:38 UTC, Elie Morisse wrote: On Monday, 26 January 2015 at 00:37:02 UTC, Walter Bright wrote: Excuse the creator's bias :) I agree that Jacob's description makes things more clear, added! I posted some thoughts on web docs writeup of C+= interface here.

Re: One area where D has the edge

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 18:53:45 UTC, Ola Fosheim Grøstad wrote: On Sunday, 25 January 2015 at 21:50:53 UTC, Laeeth Isharc wrote: And beyond slower execution speed of Java, the memory bloat makes a big difference given how cloud pricing works (its peanuts to get a machine with a gig of

Pandas example of groupby

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
If group by in other languages refers to the latter function, then that means groupBy is poorly-named and we need to come up with a better name for it. Changing it to return tuples and what-not seems to be beating around the bush to me. T T: you are good with algorithms. In many

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 19:50:39 UTC, H. S. Teoh wrote: On Mon, Jan 26, 2015 at 10:33:32AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/26/15 10:17 AM, H. S. Teoh via Digitalmars-d wrote: [...] But OTOH, if *this* is what it takes to contribute a new module to Phobos, then

Re: defunct / stale forums on front page

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 09:08:26 UTC, Jacob Carlborg wrote: On 2015-01-26 08:35, H. S. Teoh via Digitalmars-d wrote: I think we should just import jquery into the dlang.org repo. External dependencies always end up in these kinds of ugly situations. The advantage of using a CDN is

Re: defunct / stale forums on front page

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 03:56:37 UTC, Vladimir Panteleev wrote: Hi. This thread turned to topics of higher importance than mere cosmetics. Few miscellaneous thoughts. Why not create a bugzilla section for website and forum so it is easier to report glitches and enhancement

Re: One area where D has the edge

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
If Java consumes 15% more power doing it, does it matter on a PC? Most people don't dare. Does it matter for small-scale server environments? Maybe not. Does it matter when you deploy Hadoop on a 10,000 node cluster, and the holistic inefficiency (multiple things running concurrently) goes

Re: One area where D has the edge

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 20:55:14 UTC, Wyatt wrote: On Monday, 26 January 2015 at 20:19:09 UTC, Laeeth Isharc wrote: Does Rust have the productivity of D? And it doesn't have the maturity, as I understand it. This brings up something that's been bugging me. D has a pitch for users

Shouldn't dfix be made a friend of the compiler?

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
5. The kind that a tool such as 'dfix', can automate. For example, let's say dfix is included with the compiler package. Now you get an error, saying: Error: `@nogc` is no longer accepted, but can be automatically replaced with `nogc`. Run dfix on this file? (y/n)... or whatever is deemed the

Re: Pandas example of groupby

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
Thank you for the thoughtful reply. I meant lost in terms of extra processing time and memory consumption in order to achieve the fairly common use case of a groupby pivot table or pandas style (ie what you get if you sort the data by group and then run D groupby) If you first sort the

Re: One area where D has the edge

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
There was also this one from 1998 that was very small http://www.javaworld.com/article/2076641/learn-java/an-introduction-to-the-java-ring.html Java has some history running on small devices. Cheers, uri Indeed, and I remember that well. However I was less interested in embedded devices

Re: defunct / stale forums on front page

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 20:08:44 UTC, Vladimir Panteleev wrote: On Monday, 26 January 2015 at 18:41:09 UTC, Laeeth Isharc wrote: Why not create a bugzilla section for website and forum so it is easier to report glitches and enhancement requests in a way that you will quickly see without

Re: Pandas example of groupby

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
As far as I know, the current groupBy docs explain quite clearly what it does. If you find it still inadequate or unclear, please file bug against it so that we can look into improving the docs. Read the docs now - they are perfect within the context of the style of documentation (and these

defunct / stale forums on front page

2015-01-25 Thread Laeeth Isharc via Digitalmars-d
When one checks out the D community / forums, one is confronted with a long list of forums, most of which fall into the categories: not relating to D, defunct, very low activity. This is initially a bit confusing, and is not very crisp. Is it worth having only the active ones displayed with a

Re: Turning Executable into Application?

2015-01-25 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 26 January 2015 at 03:36:32 UTC, Gan wrote: With Xamarin Studio I create a D project and run it. It runs an Executable Unix file through the terminal. How can I turn that into an Application that doesn't open the Terminal? Thanks. Have you tried running your executable from the

Re: defunct / stale forums on front page

2015-01-25 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 02:36:30 UTC, Vladimir Panteleev wrote: On Monday, 26 January 2015 at 02:13:44 UTC, ketmar wrote: On Mon, 26 Jan 2015 02:00:01 +, Laeeth Isharc wrote: Imagine you move from a javascript browser to one without dlang.org is imfunctional without js, so there is

One area where D has the edge

2015-01-25 Thread Laeeth Isharc via Digitalmars-d
The author talks about C++ performance but D can match it whilst bringing scripting language style programmer productivity, and arguably higher quality code (because you can understand the code base as a coherent whole). Integration with C++ libraries is really the last missing piece, and it

Re: defunct / stale forums on front page

2015-01-25 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 00:29:34 UTC, Andrei Alexandrescu wrote: On 1/25/15 2:41 PM, Laeeth Isharc wrote: When one checks out the D community / forums, one is confronted with a long list of forums, most of which fall into the categories: not relating to D, defunct, very low activity.

Re: Difference between concatenation and appendation

2015-01-25 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 26 January 2015 at 01:17:17 UTC, WhatMeWorry wrote: Ok, I just made up that word. But what is the difference between appending and concatenating? Page 100 of TPDL says The result of the concatenation is a new array... and the section on appending talks about possibly needing

Re: Difference between concatenation and appendation

2015-01-25 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 26 January 2015 at 01:57:04 UTC, bearophile wrote: Laeeth Isharc: I think concatenation and append are used as synonyms (the same meaning is meant). a~=b or a=a~b a=a~b always allocates a new array, while a~=b sometimes re-allocates in place. Bye, bearophile Thanks. That

Re: defunct / stale forums on front page

2015-01-25 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 01:55:32 UTC, Rikki Cattermole wrote: On 26/01/2015 12:42 p.m., Laeeth Isharc wrote: On Sunday, 25 January 2015 at 22:45:53 UTC, Rikki Cattermole wrote: On 26/01/2015 11:41 a.m., Laeeth Isharc wrote: When one checks out the D community / forums, one is confronted

Re: std.zip

2015-01-25 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 25 January 2015 at 21:19:59 UTC, ketmar wrote: On Sun, 25 Jan 2015 20:56:04 +, AndyC wrote: Its handy, yes, until you hit one of its many limitations, then what will you do? i didn't come into any limitations yet. my scripts and other software was able to process any zips i

Re: defunct / stale forums on front page

2015-01-25 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 25 January 2015 at 22:45:53 UTC, Rikki Cattermole wrote: On 26/01/2015 11:41 a.m., Laeeth Isharc wrote: When one checks out the D community / forums, one is confronted with a long list of forums, most of which fall into the categories: not relating to D, defunct, very low activity.

Re: std.zip

2015-01-25 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 02:17:29 UTC, ketmar wrote: On Mon, 26 Jan 2015 02:09:17 +, Laeeth Isharc wrote: Is it worth creating a higher tier within code.dlang.org of libraries considered to be of high quality that may have a semi-official stamp? When you know your way around, you can

Re: Explicit Slicing of std.container.Array

2015-01-24 Thread Laeeth Isharc via Digitalmars-d-learn
On Saturday, 24 January 2015 at 13:11:33 UTC, Nordlöw wrote: Is there a reason why std.container.Array have to be explicitly sliced before being processed by range algorithms such as filter typically as import std.container: Array; Array!int a; foreach (e; a[].filter!true) {} ?

Re: sortUniq

2015-01-24 Thread Laeeth Isharc via Digitalmars-d
The problem with RedBlackTree is that it's cache-unfriendly due to the memory allocation and per-node pointers. One reason quicksort performs so well is because it works in-place, and the partition operation accesses elements bilinearly (i.e., two linear traversals over the same stretch of

Re: dlang.org redesign -- general thoughts and issues [part 1]

2015-01-23 Thread Laeeth Isharc via Digitalmars-d
Hi all, I've started redesigning dlang.org AGAIN (yea, I know...). Appreciate the work you and others are doing on this. Web pages are so fiddly but so important for controlling the image one presents to the world. I don't have so much to say about the general case, as it is not my field.

proper groupBy

2015-01-23 Thread Laeeth Isharc via Digitalmars-d
On Friday, 23 January 2015 at 20:28:32 UTC, Andrei Alexandrescu wrote: On 1/23/15 12:19 PM, Ary Borenszweig wrote: In most languages group by yields a tuple of {group key, group values}. Interesting, thanks. Looks like we're at a net loss of information with our current approach.

Re: BitArray - incomplete implementation?

2015-01-23 Thread Laeeth Isharc via Digitalmars-d-learn
To avoid confusion, the below is the code that fits the error message: import std.bitmanip; import std.stdio; import std.array; import std.range:chain; void test() { int[] a=[1,2,3,4,5]; int[] b=[5,4,3,2,1]; int[] c = chain(a,b).array; // chain two arrays of int

BitArray - incomplete implementation?

2015-01-23 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. Should the following code work? import std.bitmanip; import std.stdio; import std.array; import std.range:chain; void test() { int[] a=[1,2,3,4,5]; int[] b=[5,4,3,2,1]; int[] c = chain(a,b).array; // chain two arrays of int writefln(%s,c); } void test2() {

Re: BitArray - incomplete implementation?

2015-01-23 Thread Laeeth Isharc via Digitalmars-d-learn
Yes, that error is caused by a bug of BitArray(https://issues.dlang.org/show_bug.cgi?id=13806). Having init function broke template constraints of chain(and must break dozen of other templates). pragma(msg, ElementType!(BitArray[])) // prints 'pure nothrow void(bool[] ba)' - ElementType uses

Re: Type safety and time units in Go and D

2015-01-20 Thread Laeeth Isharc via Digitalmars-d
the question of why that is the way it is, it's because we actually thought of all that shit when designing the time library :) I was a big proponent of not using the same type to mean duration and timestamp, and only allowing sane operations. Jonathan was the same way. That separation is

Re: Binutils 2.25 Released - New D demangling support

2015-01-20 Thread Laeeth Isharc via Digitalmars-d-announce
How do I get it? --- The release itself is a source package, however a safer choice is to get the release binaries through your Linux distributor. Fortunately, there have been distributions who have been shipping it as early as three weeks ago. In case it saves someone else a few minutes:

Re: Binutils 2.25 Released - New D demangling support

2015-01-20 Thread Laeeth Isharc via Digitalmars-d-announce
yum install fedora-repos-rawhide yum install binutils --enablerepo rawhide objdump -v sorry. should be: yum install fedora-release-rawhide yum install binutils --enablerepo rawhide objdump -v

Re: 10 Tips for Better Pull Requests

2015-01-17 Thread Laeeth Isharc via Digitalmars-d
Informative is fine. Basing decisions on metrics unleavened by contextual judgement isn't going to work well. It isn't just one metric. I've personally seen it multiple times with various metrics, and regularly read in the news about counterproductive results obtained by using metrics

Re: Getting a safe path for a temporary file

2015-01-17 Thread Laeeth Isharc via Digitalmars-d-learn
On Saturday, 17 January 2015 at 13:47:39 UTC, Marc Schütz wrote: Is it currently possible to get the path to a safe temporary file, i.e. one that is guaranteed to be freshly created and will not override another existing file? There's `std.file.tempDir`, which doesn't create a unique file.

<    4   5   6   7   8   9   10   11   >