tardy v0.0.1 - Runtime polymorphism without inheritance

2020-06-13 Thread Atila Neves via Digitalmars-d-announce
https://code.dlang.org/packages/tardy https://github.com/atilaneves/tardy Tardy lets users have their cake and eat it too by not making them have to use classes for runtime polymorphism. No inheritance anywhere to be found, which means structs, ints, and arrays can be used with dynamic dispatc

Re: tardy v0.0.1 - Runtime polymorphism without inheritance

2020-06-13 Thread jmh530 via Digitalmars-d-announce
On Saturday, 13 June 2020 at 15:11:49 UTC, Atila Neves wrote: https://code.dlang.org/packages/tardy https://github.com/atilaneves/tardy [snip] This is pretty cool. Thanks for sharing. I have a few questions/comments: 1) It might make a good blog post at some point to discuss this and the pe

Re: tardy v0.0.1 - Runtime polymorphism without inheritance

2020-06-13 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Saturday, 13 June 2020 at 15:11:49 UTC, Atila Neves wrote: Tardy lets users have their cake and eat it too by not making them have to use classes for runtime polymorphism. This is one of those things that is so obvious in hindsight. Genius.

Re: tardy v0.0.1 - Runtime polymorphism without inheritance

2020-06-13 Thread Paul Backus via Digitalmars-d-announce
On Saturday, 13 June 2020 at 15:11:49 UTC, Atila Neves wrote: https://code.dlang.org/packages/tardy https://github.com/atilaneves/tardy Cool stuff! What's the reasoning behind implementing your own vtables instead of using D's built-in object system? Don't want to be stuck inheriting from O

Re: Beta 2.092.1

2020-06-13 Thread user1234 via Digitalmars-d-announce
On Thursday, 4 June 2020 at 18:01:55 UTC, Martin Nowak wrote: Glad to announce the first beta for the 2.092.1 point release, ♥ to the 8 contributors. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.092.1.html As usual please report any bugs at https://issues.dlang.org -Ma

Interesting work on packing tuple layout

2020-06-13 Thread Andrei Alexandrescu via Digitalmars-d-announce
https://github.com/ZigaSajovic/optimizing-the-memory-layout-of-std-tuple Would be interesting to adapt it for std.tuple.

Re: tardy v0.0.1 - Runtime polymorphism without inheritance

2020-06-13 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 6/13/20 2:39 PM, Paul Backus wrote: On Saturday, 13 June 2020 at 15:11:49 UTC, Atila Neves wrote: https://code.dlang.org/packages/tardy https://github.com/atilaneves/tardy Cool stuff! What's the reasoning behind implementing your own vtables instead of using D's built-in object system? D

Re: Interesting work on packing tuple layout

2020-06-13 Thread user1234 via Digitalmars-d-announce
On Saturday, 13 June 2020 at 19:11:33 UTC, Andrei Alexandrescu wrote: https://github.com/ZigaSajovic/optimizing-the-memory-layout-of-std-tuple Would be interesting to adapt it for std.tuple. Look possible. At first glance, staticSort on the template variadic argument based on a predicate temp

Re: Interesting work on packing tuple layout

2020-06-13 Thread Timon Gehr via Digitalmars-d-announce
On 13.06.20 21:11, Andrei Alexandrescu wrote: https://github.com/ZigaSajovic/optimizing-the-memory-layout-of-std-tuple Would be interesting to adapt it for std.tuple. That's likely to run into the following arbitrary language limitation: --- alias Seq(T...)=T; struct T{ int a,b; alia

Re: Yahoo Finance Scraper

2020-06-13 Thread Selim via Digitalmars-d-announce
On Friday, 12 June 2020 at 19:10:06 UTC, jmh530 wrote: Why do you use a class for YahooMinerD (also the name YahooFinanceD might get more people to use)? It doesn't look like you are using any inheritance. I don't see any reason not to change to a struct and avoid new. Thanks! I liked the ne

Re: Yahoo Finance Scraper

2020-06-13 Thread Selim via Digitalmars-d-announce
On Friday, 12 June 2020 at 20:29:57 UTC, Jan Hönig wrote: This could be a really cool tool to play with. For the writing out part, maybe the class should accept a function or a delegate, or some template hook, to write out the data, so the user can define it itself. Your WriteToJson could then

Re: Interesting work on packing tuple layout

2020-06-13 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 6/13/20 7:30 PM, Timon Gehr wrote: Another question is if automatic packing is worth making the layout harder to predict. I think so. Size does matter.

Re: Interesting work on packing tuple layout

2020-06-13 Thread Avrina via Digitalmars-d-announce
On Sunday, 14 June 2020 at 03:08:48 UTC, Andrei Alexandrescu wrote: On 6/13/20 7:30 PM, Timon Gehr wrote: Another question is if automatic packing is worth making the layout harder to predict. I think so. Size does matter. If you are talking about implementing a tuple type into the language

Re: Interesting work on packing tuple layout

2020-06-13 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 6/13/20 11:55 PM, Avrina wrote: On Sunday, 14 June 2020 at 03:08:48 UTC, Andrei Alexandrescu wrote: On 6/13/20 7:30 PM, Timon Gehr wrote: Another question is if automatic packing is worth making the layout harder to predict. I think so. Size does matter. If you are talking about implemen