On Wednesday, 18 January 2023 at 11:20:11 UTC, matheus wrote:
Could you please run your version vs mine (Changing to print
one column, line 70: draw_year(2023,1); ) and tell us the
result?
When implementing MyCalendar(), it was not designed to output
multiple columns. Therefore, we cannot
On Wednesday, 18 January 2023 at 11:10:01 UTC, matheus wrote:
On Wednesday, 18 January 2023 at 01:05:58 UTC, Siarhei
Siamashka wrote:
On Tuesday, 17 January 2023 at 23:27:03 UTC, matheus wrote:
I ran in two sites: https://onecompiler.com/d and then
https://godbolt.org/, with the latter I set
On Wednesday, 18 January 2023 at 04:51:11 UTC, Salih Dincer wrote:
On Tuesday, 17 January 2023 at 21:50:06 UTC, matheus wrote:
Have you compared the timings between this way (With ranges)
and a normal way (Without ranges)?
Of course it is possible to speed it up. However, even as it
is, it
On Wednesday, 18 January 2023 at 01:05:58 UTC, Siarhei Siamashka
wrote:
On Tuesday, 17 January 2023 at 23:27:03 UTC, matheus wrote:
I ran in two sites: https://onecompiler.com/d and then
https://godbolt.org/, with the latter I set LDC with -O2.
My version (Source in the end) ran about 2x
On Tuesday, 17 January 2023 at 21:50:06 UTC, matheus wrote:
Have you compared the timings between this way (With ranges)
and a normal way (Without ranges)?
Of course it is possible to speed it up. However, even as it is,
it is enough to see the power of intervals. I would argue that
you'll
On Tuesday, 17 January 2023 at 23:27:03 UTC, matheus wrote:
I ran in two sites: https://onecompiler.com/d and then
https://godbolt.org/, with the latter I set LDC with -O2.
My version (Source in the end) ran about 2x faster than the
version with ranges.
Well, the use of ranges is not the
On Tuesday, 17 January 2023 at 23:08:19 UTC, Siarhei Siamashka
wrote:
On Tuesday, 17 January 2023 at 21:50:06 UTC, matheus wrote:
Question: Have you compared the timings between this way (With
ranges) and a normal way (Without ranges)?
If you are intensively using ranges, UFCS or the other
On Tue, Jan 17, 2023 at 11:08:19PM +, Siarhei Siamashka via
Digitalmars-d-learn wrote:
> On Tuesday, 17 January 2023 at 21:50:06 UTC, matheus wrote:
> > Question: Have you compared the timings between this way (With
> > ranges) and a normal way (Without ranges)?
>
> If you are intensively
On Tuesday, 17 January 2023 at 21:50:06 UTC, matheus wrote:
Question: Have you compared the timings between this way (With
ranges) and a normal way (Without ranges)?
If you are intensively using ranges, UFCS or the other convenient
high level language features, then the compiler choice does
On Friday, 13 January 2023 at 21:12:17 UTC, Salih Dincer wrote:
On Friday, 13 January 2023 at 18:59:01 UTC, matheus wrote:
Unfortunately it's not working for me
Yeah, it was an old development version. I also implemented
another version the same day:
* [Nested
On Tuesday, 10 January 2023 at 00:17:18 UTC, Paul wrote:
Greetings Dlang-ers
I was wondering if anyone knew of any coding challenges
available where the input and output are specified and its left
to the programmer to find a solution? Free would be nice but
even paid services would be worth
On Friday, 13 January 2023 at 18:59:01 UTC, matheus wrote:
Unfortunately it's not working for me
Yeah, it was an old development version. I also implemented
another version the same day:
* [Nested
Class](https://forum.dlang.org/thread/vkjhkftvyprsivozy...@forum.dlang.org)
* [Only One
On Thursday, 12 January 2023 at 19:06:49 UTC, Salih Dincer wrote:
...
Now, I wrote a nested class using range and copying from
Matheus' code. Of course not as comprehensive as [your
dcal](https://github.com/quickfur/dcal/blob/master/dcal.d). I
like this one and even thought of a new
On Thursday, 12 January 2023 at 20:28:26 UTC, Christian Köstlin
wrote:
For this years advent-of-code Steven Schveighoffer
(https://github.com
/schveiguy/adventofcode/tree/master/2022) has a complete set of
dlang
solutions.
Kind regards,
Christian
Very helpful. Thanks Christian.
On 10.01.23 23:30, Paul wrote:
On Tuesday, 10 January 2023 at 01:31:28 UTC, Ali Çehreli wrote:
On 1/9/23 16:17, Paul wrote:
> coding challenges
Perhaps the following two?
https://rosettacode.org/
https://adventofcode.com/
Ali
Excellent. Thanks.
For this years advent-of-code Steven
On 10.01.23 23:22, monkyyy wrote:
On Tuesday, 10 January 2023 at 19:10:09 UTC, Christian Köstlin wrote:
On 10.01.23 01:17, Paul wrote:
There is also https://exercism.org/tracks/d with some tasks for dlang.
Kind regards,
Christian
Its all converted code; worthless
I was not aware, that the
On Tuesday, 10 January 2023 at 01:22:33 UTC, H. S. Teoh wrote:
Here's a challenge. Given an input year, for example, "2023",
write a program that outputs (for the corresponding year):
Now, I wrote a nested class using range and copying from Matheus'
code. Of course not as comprehensive as
On Tuesday, 10 January 2023 at 01:31:28 UTC, Ali Çehreli wrote:
On 1/9/23 16:17, Paul wrote:
> coding challenges
Perhaps the following two?
https://rosettacode.org/
https://adventofcode.com/
Ali
Excellent. Thanks.
On Tuesday, 10 January 2023 at 06:45:40 UTC, Siarhei Siamashka
wrote:
...
What kind of D class is that? Are you learning D language in a
school or university? Or is it some kind of online language
course?
...
I don't know if there are rules about sharing links and such but
its a site
On Tuesday, 10 January 2023 at 19:10:09 UTC, Christian Köstlin
wrote:
On 10.01.23 01:17, Paul wrote:
There is also https://exercism.org/tracks/d with some tasks for
dlang.
Kind regards,
Christian
Its all converted code; worthless
On Tuesday, 10 January 2023 at 22:10:57 UTC, Paul wrote:
...
I think you must have done a blog post or tutorial or
something, Teoh, because I've seen this before. Don't let this
go to your head :), but I was blown away by the presentation
and solution! BTW where is it posted?
ITT:
On Tuesday, 10 January 2023 at 01:22:33 UTC, H. S. Teoh wrote:
...
Here's a challenge. Given an input year, for example, "2023",
write a program that outputs (for the corresponding year):
...
Code will be graded on readability, unittest coverage, and
reusability (how many functions have
On 10.01.23 01:17, Paul wrote:
There is also https://exercism.org/tracks/d with some tasks for dlang.
Kind regards,
Christian
On Tuesday, 10 January 2023 at 00:17:18 UTC, Paul wrote:
I know. Someone's going to say why don't YOU do it:)
https://github.com/crazymonkyyy/dingbats
I could use contributors
On Tuesday, 10 January 2023 at 01:22:33 UTC, H. S. Teoh wrote:
Here's a challenge. Given an input year, for example, "2023",
write a program that outputs (for the corresponding year):
snip-
2023
On Tuesday, 10 January 2023 at 10:58:37 UTC, matheus wrote:
On Tuesday, 10 January 2023 at 07:38:31 UTC, Salih Dincer wrote:
You don't need validDate. Because there is daysInMonth:
That's really better. thanks for the info.
Actually, I should thank you. When I first wrote these codes, I
On Tuesday, 10 January 2023 at 11:23:15 UTC, drug007 wrote:
10.01.2023 13:57, matheus пишет:
...
[To clarify the
situation](https://wiki.dlang.org/Component_programming_with_ranges)
(H S Teoh is the author of this article)
Hmm very interesting (I'm at work and I just gave it a glimpse).
But
10.01.2023 14:23, drug007 пишет:
10.01.2023 13:57, matheus пишет:
On Tuesday, 10 January 2023 at 05:21:15 UTC, H. S. Teoh wrote:
Printing it in this format is trivial, and not very interesting. The
interest in the challenge is to lay it out like I posted,
side-by-side,...
Like I said I
10.01.2023 13:57, matheus пишет:
On Tuesday, 10 January 2023 at 05:21:15 UTC, H. S. Teoh wrote:
Printing it in this format is trivial, and not very interesting. The
interest in the challenge is to lay it out like I posted,
side-by-side,...
Like I said I did it over D online compiler which
On Tuesday, 10 January 2023 at 07:38:31 UTC, Salih Dincer wrote:
On Tuesday, 10 January 2023 at 03:18:54 UTC, matheus wrote:
...`
You don't need validDate. Because there is daysInMonth:
...
That's really better. thanks for the info.
Matheus.
On Tuesday, 10 January 2023 at 05:21:15 UTC, H. S. Teoh wrote:
Printing it in this format is trivial, and not very
interesting. The interest in the challenge is to lay it out
like I posted, side-by-side,...
Like I said I did it over D online compiler which unfortunately I
couldn't
On Tuesday, 10 January 2023 at 03:18:54 UTC, matheus wrote:
The layout isn't like yours, I wrote this using a D Online
compiler and I'm very sleepy right now:
```d
import std.stdio, std.string, std.conv, std.datetime;
bool validDate(int y,int m,int d){
try{
Date(y,m,d);
I know. Someone's going to say why don't YOU do it:)
regards,
The official book on D by Ali has many coding challenges.
There isn't any need to create a website for D coding challenges
or incorporate it into an existing website since D has under 1%
of the market share.
On Tuesday, 10 January 2023 at 00:17:18 UTC, Paul wrote:
I was wondering if anyone knew of any coding challenges
available where the input and output are specified and its left
to the programmer to find a solution? Free would be nice but
even paid services would be worth considering. I'm
On Tue, Jan 10, 2023 at 03:18:54AM +, matheus via Digitalmars-d-learn wrote:
> On Tuesday, 10 January 2023 at 01:22:33 UTC, H. S. Teoh wrote:
> > ...
> >
> > Here's a challenge. Given an input year, for example, "2023",
> > write a program that outputs (for the corresponding year):
> > ...
>
On Tuesday, 10 January 2023 at 01:22:33 UTC, H. S. Teoh wrote:
...
Here's a challenge. Given an input year, for example, "2023",
write a program that outputs (for the corresponding year):
...
The layout isn't like yours, I wrote this using a D Online
compiler and I'm very sleepy right
On 1/9/23 16:17, Paul wrote:
> coding challenges
Perhaps the following two?
https://rosettacode.org/
https://adventofcode.com/
Ali
On Tue, Jan 10, 2023 at 12:17:18AM +, Paul via Digitalmars-d-learn wrote:
> Greetings Dlang-ers
> I was wondering if anyone knew of any coding challenges available
> where the input and output are specified and its left to the
> programmer to find a solution?
Here's a challenge. Given an
38 matches
Mail list logo