Re: Getting DAllegro 5 to work in Windows

2014-12-26 Thread Joel via Digitalmars-d-learn
On Wednesday, 24 December 2014 at 09:57:31 UTC, Kagamin wrote: Works for me on allegro-5.0.10-mt.dll, produced 391kb lib file. I think my Windows 7 on my Mac has system damage - I used a doggy flash drive. I plan to install Window 8.1, and hopefully that will fix the problem.

Constructor protection: package ctors, UFCS, static methods?

2014-12-26 Thread aldanor via Digitalmars-d-learn
Hi, I've been wondering if anyone would give some advice on an OOP-related question. Assume there's an external library (module c_library) that handles IDs for groups and datasets and we want to wrap it in a high-level D API. Groups can contain datasets identified by names, and each dataset

Re: Constructor protection: package ctors, UFCS, static methods?

2014-12-26 Thread aldanor via Digitalmars-d-learn
Please ignore the missing new keywords in the code and other minor typos :)

Re: Fastest Way to Append Multiple Elements to an Array

2014-12-26 Thread Nordlöw
On Thursday, 18 December 2014 at 20:12:01 UTC, Tobias Pankrath wrote: You shouldn't use my code verbatim though. For example, you should only use x.length, if x is of element type of data. Otherwise if you have e.g. an array of array you'd get totally wrong numbers. What role does `x` play

Re: Fastest Way to Append Multiple Elements to an Array

2014-12-26 Thread Nordlöw
On Friday, 26 December 2014 at 16:29:56 UTC, Nordlöw wrote: See my update at https://github.com/nordlow/justd/blob/master/algorithm_ex.d#L1602 which tries to merge all the ideas into one adapting algorithm :) Destroy! BTW: 1. Is is relevant to extend `append` to data being a

Data frames in D?

2014-12-26 Thread Laeeth Isharc via Digitalmars-d-learn
I thought about it once but quickly abandoned the idea. The primary reason was that D doesn't have REPL and is thus not suitable for interactive data exploration. The quick compile times could allow interactive data exploration I agree with other posters that a D REPL and

Re: Data frames in D?

2014-12-26 Thread Russel Winder via Digitalmars-d-learn
On Fri, 2014-12-26 at 20:44 +, Laeeth Isharc via Digitalmars-d-learn wrote: […] I agree with other posters that a D REPL and interactive/visualization data environment would be very cool, but unfortunately doesn't exist. Batch computing is more practical, but REPLs really hook new users. I

Re: D language manipulation of dataframe type structures

2014-12-26 Thread anon via Digitalmars-d-learn
On Wednesday, 25 September 2013 at 04:35:57 UTC, lomereiter wrote: I thought about it once but quickly abandoned the idea. The primary reason was that D doesn't have REPL and is thus not suitable for interactive data exploration. https://github.com/MartinNowak/drepl https://drepl.dawg.eu/

Re: D language manipulation of dataframe type structures

2014-12-26 Thread aldanor via Digitalmars-d-learn
On Wednesday, 25 September 2013 at 03:41:36 UTC, Jay Norwood wrote: I've been playing with the python pandas app enables interactive manipulation of tables of data in their dataframe structure, which they say is similar to the structures used in R. It appears pandas has laid claim to being a

Re: Data frames in D?

2014-12-26 Thread Laeeth Isharc via Digitalmars-d-learn
REPLs are over-hyped and have become a fashion touchstone that few dare argue against for fear of being denounced as un-hip. REPLs have their place, but in the main are nowhere near as useful as people claim. IPython Notebooks on the other hand are a balance between editor/execution

Data Frames in D - let's not wait for linear algebra; useful today in finance and Internet of Things

2014-12-26 Thread Laeeth Isharc via Digitalmars-d-learn
On Friday, 26 December 2014 at 21:31:00 UTC, aldanor wrote: On Wednesday, 25 September 2013 at 03:41:36 UTC, Jay Norwood wrote: I've been playing with the python pandas app enables interactive manipulation of tables of data in their dataframe structure, which they say is similar to the

Re: Fastest Way to Append Multiple Elements to an Array

2014-12-26 Thread Tobias Pankrath via Digitalmars-d-learn
On Friday, 26 December 2014 at 16:31:48 UTC, Nordlöw wrote: On Friday, 26 December 2014 at 16:29:56 UTC, Nordlöw wrote: See my update at https://github.com/nordlow/justd/blob/master/algorithm_ex.d#L1602 which tries to merge all the ideas into one adapting algorithm :) Destroy! BTW: