# Rosetta Code task/Find unimplemented tasks

**URL:** <https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854>\
**Category:** General\
**Created:** [May 12, 2024, 5:32pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854 "2024-05-12T17:32:51Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![alexispaez](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/alexispaez/32/920_2.png) [@alexispaez](https://forum.ada-lang.io/u/alexispaez)\
**Post date:** [May 21, 2024, 6:52am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/21 "2024-05-21T06:52:04Z")

</div>

Hi Simon,

It’s the “Find unimplemented tasks” task itself. On Windows 10, Alire 2.0.1, I can only get it to build if I first get the aws crate and build it separately.

Thank you very much.

Best regards,  
Alexis.

---

<div class="post-metadata">

**Author:** ![simonjwright](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/simonjwright/32/11_2.png) [@simonjwright](https://forum.ada-lang.io/u/simonjwright)\
**Post date:** [May 21, 2024, 7:15pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/22 "2024-05-21T19:15:50Z")

</div>

Builds for me.

There’s some ugliness in the build of aws; 4 times,

```ada
sed: illegal option -- s
usage: sed script [-Ealnru] [-i extension] [file ...]
	sed [-Ealnu] [-i extension] [-e script] ... [-f script_file] ... [file ...]

```

I’ve come across this before, someone (at, I think, AdaCore) uses an option that’s available on Linux but not macOS. On Linux, `-s` or `--separate` means “consider files as separate rather than as a single continuous long stream”, but AFAICR sed was only being used to manipulate one file …

---

<div class="post-metadata">

**Author:** ![Ret\_Build\_Engineer](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/r/ccd318/32.png) [@Ret\_Build\_Engineer](https://forum.ada-lang.io/u/Ret_Build_Engineer)\
**Post date:** [May 22, 2024, 2:08am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/23 "2024-05-22T02:08:59Z")

</div>

Hi Simon;

It builds successfully for me on MacOS, I think, because I have the gnu variety of sed in my path taking precedence over the sed native to the Mac (?)

Retired\_Build\_Engineer

---

<div class="post-metadata">

**Author:** ![SMerrony](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/smerrony/32/410_2.png) [@SMerrony](https://forum.ada-lang.io/u/SMerrony)\
**Post date:** [May 23, 2024, 3:13pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/24 "2024-05-23T15:13:18Z")

</div>

Just added the Poker Hand Analyzer task, it should appear soon.

I tried to go for clarity rather than cleverness 😉

---

<div class="post-metadata">

**Author:** ![Ret\_Build\_Engineer](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/r/ccd318/32.png) [@Ret\_Build\_Engineer](https://forum.ada-lang.io/u/Ret_Build_Engineer)\
**Post date:** [May 24, 2024, 7:36pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/25 "2024-05-24T19:36:30Z")

</div>

Hi;

I tried to compile the Rosetta Code “Poker hand analyzer” Task. It complained about the left and right square brackets. When replaced with the left and right parenthesis, it compiled and executed without issues.

ALR 2.1.0  
MacOS (Apple Silicon)  
GNAT 14.1

Retired\_Build\_Engineer

---

<div class="post-metadata">

**Author:** ![jere](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/jere/32/87_2.png) [@jere](https://forum.ada-lang.io/u/jere)\
**Post date:** [May 25, 2024, 1:45am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/26 "2024-05-25T01:45:29Z")

</div>

> [@Ret\_Build\_Engineer](#):
>
> I tried to compile the Rosetta Code “Poker hand analyzer” Task. It complained about the left and right square brackets. When replaced with the left and right parenthesis, it compiled and executed without issues.

I haven’t seen the code for it, but that sounds like an Ada22 vs Ada12 (and lower) thing. They introduced square brackets for iniitialization via aggregates. Try it with the brackets but also use the -gnat2022 switch

---

<div class="post-metadata">

**Author:** ![Ret\_Build\_Engineer](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/r/ccd318/32.png) [@Ret\_Build\_Engineer](https://forum.ada-lang.io/u/Ret_Build_Engineer)\
**Post date:** [May 25, 2024, 2:08am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/27 "2024-05-25T02:08:23Z")

</div>

Hi Jere;

Yep, I missed the note " **Works with** : [GNAT Ada 2022](https://rosettacode.org/wiki/GNAT_Ada_2022?action=edit&redlink=1)"

(SIGH)

Yep, it works as written.

Thanks for the correction.

Retired\_Build\_Engineer

---

<div class="post-metadata">

**Author:** ![SMerrony](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/smerrony/32/410_2.png) [@SMerrony](https://forum.ada-lang.io/u/SMerrony)\
**Post date:** [May 25, 2024, 5:34am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/28 "2024-05-25T05:34:30Z")

</div>

Indeed.

If building with Alire use…

```ada
[build-switches]
"*".ada_version = "Ada2022"
"*".style_checks = ["-gnaty-m"]

```

---

<div class="post-metadata">

**Author:** ![Ret\_Build\_Engineer](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/r/ccd318/32.png) [@Ret\_Build\_Engineer](https://forum.ada-lang.io/u/Ret_Build_Engineer)\
**Post date:** [May 25, 2024, 6:21am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/29 "2024-05-25T06:21:17Z")

</div>

Thank you for the additional Alire settings information,

---

<div class="post-metadata">

**Author:** ![simonjwright](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/simonjwright/32/11_2.png) [@simonjwright](https://forum.ada-lang.io/u/simonjwright)\
**Post date:** [May 25, 2024, 7:38am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/30 "2024-05-25T07:38:37Z")

</div>

Or, `pragma Ada_2022;`, directly in the code

---

<div class="post-metadata">

**Author:** ![alexispaez](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/alexispaez/32/920_2.png) [@alexispaez](https://forum.ada-lang.io/u/alexispaez)\
**Post date:** [May 25, 2024, 2:55pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/31 "2024-05-25T14:55:15Z")

</div>

Works fine, dropped it into a new crate and added the lines recommended by SMerrony to the alire.toml file.Alire 2.0.1 on Windows 10.

Would it be acceptable to add a few lines to the task on Rosetta with what is needed for using it with Alire? Like another “Works with”…

---

<div class="post-metadata">

**Author:** ![SMerrony](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/smerrony/32/410_2.png) [@SMerrony](https://forum.ada-lang.io/u/SMerrony)\
**Post date:** [May 26, 2024, 6:51am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/32 "2024-05-26T06:51:16Z")

</div>

Thanks - didn’t know about that.

---

<div class="post-metadata">

**Author:** ![SMerrony](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/smerrony/32/410_2.png) [@SMerrony](https://forum.ada-lang.io/u/SMerrony)\
**Post date:** [May 26, 2024, 6:54am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/33 "2024-05-26T06:54:35Z")

</div>

I would say not - for two reasons:

1. It’s not the Rosetta way, build files/instructions are generally not included with examples.
2. Rosetta is primarily an educational resource, I would hope that anyone learning Ada in 2024 (or later) would be starting from a base of Ada 2022.

However, now I’ve seen @simonjwright 's post, I’ll add that pragma into the code.

---

<div class="post-metadata">

**Author:** ![SMerrony](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/smerrony/32/410_2.png) [@SMerrony](https://forum.ada-lang.io/u/SMerrony)\
**Post date:** [May 26, 2024, 1:11pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/34 "2024-05-26T13:11:22Z")

</div>

Just added the Musical Scale task - should appear soon, although Rosetta is a bit flaky today.

---

<div class="post-metadata">

**Author:** ![mgrojo](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/mgrojo/32/15_2.png) [@mgrojo](https://forum.ada-lang.io/u/mgrojo)\
**Post date:** [May 26, 2024, 3:31pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/35 "2024-05-26T15:31:22Z")

</div>

I added [Play recorded sounds - Rosetta Code](https://rosettacode.org/wiki/Play_recorded_sounds#Ada) using [ASFML](https://github.com/mgrojo/ASFML) and [Idiomatically determine all the characters that can be used for symbols - Rosetta Code](https://rosettacode.org/wiki/Idiomatically_determine_all_the_characters_that_can_be_used_for_symbols#Ada) using `Ada.Strings.Maps`.

The “Find unimplemented tasks” program now says:

```console
Numbers of tasks not implemented := 419

```

---

<div class="post-metadata">

**Author:** ![alexispaez](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/alexispaez/32/920_2.png) [@alexispaez](https://forum.ada-lang.io/u/alexispaez)\
**Post date:** [May 27, 2024, 7:13am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/36 "2024-05-27T07:13:23Z")

</div>

OK, I understand. I would think it’s also more kind of “the Ada way” to have the pragma in and just have it work correctly right out of the box if you have the right compiler.

---

<div class="post-metadata">

**Author:** ![cantanima](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/cantanima/32/121_2.png) [@cantanima](https://forum.ada-lang.io/u/cantanima)\
**Post date:** [May 27, 2024, 9:50am UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/37 "2024-05-27T09:50:43Z")

</div>

If we’re keeping track of this here: I provided two different solutions to [Weird Numbers](https://rosettacode.org/wiki/Weird_numbers#Ada), because my original approach is 10-50x slower than the algorithm most people were using (depending on language) and that annoyed me, so the second approach took some ideas from the Python and C++ implementations, which in all honesty I don’t quite understand, but then again staying up late in order to do that is probably not the most conducive to understanding them.

(I realize the Rosetta Code website may not be accessible until the certificate is renewed, but I was able to get into it using the Konqueror browser.)

---

<div class="post-metadata">

**Author:** ![cantanima](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/cantanima/32/121_2.png) [@cantanima](https://forum.ada-lang.io/u/cantanima)\
**Post date:** [May 27, 2024, 2:58pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/38 "2024-05-27T14:58:15Z")

</div>

Well, the Ada solution to Weird Numbers is also a Schrodinger’s task: it appears when I’m logged in, but not when I’m not… though the history shows it there, even when I’m not. Makes me wonder if it’s related to the certificate issue.

---

<div class="post-metadata">

**Author:** ![mgrojo](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/mgrojo/32/15_2.png) [@mgrojo](https://forum.ada-lang.io/u/mgrojo)\
**Post date:** [May 27, 2024, 7:06pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/39 "2024-05-27T19:06:12Z")

</div>

Probably, it’s related to the cache used for anonymous users. See [Rosetta Code task/Find unimplemented tasks - #18 by mgrojo](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/18)

---

<div class="post-metadata">

**Author:** ![cantanima](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/cantanima/32/121_2.png) [@cantanima](https://forum.ada-lang.io/u/cantanima)\
**Post date:** [May 27, 2024, 10:02pm UTC](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854/40 "2024-05-27T22:02:54Z")

</div>

Much as I’d like to hope that was true, I wasn’t anonymous when I submitted it. I was logged in with my old account (which I recovered immediately, or so I thought). In fact, the updates I made to my user page show up, and the changes I made show up in the history.

I could believe it’s related to cache; I’m just not sure it’s related to a cache for anonymous users.

In fact, if I log in, go to my user page, then log out, the link on my user page to Weird Numbers shows up, and even links to a page where they do show up. So maybe the Ada solutions show up now?

[Previous page](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854.md?page=1)

[Next page](https://forum.ada-lang.io/t/rosetta-code-task-find-unimplemented-tasks/854.md?page=3)
