Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add c3lang in exercism #139

Closed
ghost opened this issue Sep 24, 2022 · 7 comments
Closed

add c3lang in exercism #139

ghost opened this issue Sep 24, 2022 · 7 comments

Comments

@ghost
Copy link

ghost commented Sep 24, 2022

What programming language should we add?
c3lang

What is the official website for the language?
https://www.c3-lang.org/

Is this a language that comes in many variants? If so, which variant should we support?
No.

Does the language have an official logo? If so

Does the language have an unofficial logo? If so

  • please explain the ways in which people use the unofficial logo
    Am not aware of an unofficial logo

  • please include a link to an example
    none.

  • please list the attribution rights of that logo
    none.

Is there a testing framework available for the language?
No.

Is this language listed as 'supported' by Highlightjs? If so

  • what is Highlightjs' canonical spelling for the language?
    It is not officially supported, likely because this language is still relatively new.

  • what file extensions should be highlighted?
    .c3

If it is not supported by Highlightjs, what is the closest supported language it maps to?
It is not officially supported, likely because this language is still relatively new. But... It is very similar syntactically to C. See this c3lang/c3docs

Who will be leading the effort to launch the track?
Maybe c3lang community.

@kytrinyx
Copy link
Member

It looks interesting.

Once we have at least one person (preferably two or three) who are willing to take the lead on implementing a c3 track on Exercism we can bootstrap a repository for it.

@ghost
Copy link
Author

ghost commented Sep 24, 2022

Hi kytrinyx.

Some exercises can be found in the documentation, for example: 'Hello world' etc. For example...

if_statement.c3

fn void if_example(int a) 
{
    if (a > 0) 
    {
        // ..
    } 
    else 
    {
        // ..
    }
}

for_loop.c3

fn void example_for() 
{
    // the for-loop is the same as C99. 
    for (int i = 0; i < 10; i++) 
    {
        libc::printf("%d\n", i);
    }

    // also equal
    for (;;) 
    {
        // ..
    }
}

foreach_loop.c3

fn void example_foreach(float[] values) 
{
    foreach (index, value : values) 
    {
        libc::printf("%d: %f\n", index, value);
    }
}

So... I was thinking of building from the documentation, something upfront, something at a basic level as 'Hello world', 'calculator in c3lang etc.'

@kytrinyx
Copy link
Member

Creating a track on Exercism is a big effort and has quite a few moving pieces. I can't tell from this issue whether you'd like to take on that work, or whether you've opened the issue to indicate that you wish that a c3 track would exist, and that you hope that someone else would be willing to take on that work.

@ghost
Copy link
Author

ghost commented Sep 24, 2022

Hi kytrinyx. So... Could I based on existing tracks and adapt to c3lang?

@kytrinyx
Copy link
Member

@codehangen Absolutely! We have a whole bunch of exercises that you can adapt. Shall I make the repo for you?

@ghost
Copy link
Author

ghost commented Dec 8, 2022

Hi kytrinyx, thank you for feedback.

@codehangen Absolutely! We have a whole bunch of exercises that you can adapt. Shall I make the repo for you?

Yes! Sorry for the delay in responding. I want to keep this c3lang project in exercism.

@kytrinyx
Copy link
Member

kytrinyx commented Dec 9, 2022

@codehangen That's exciting! I've made you a repo here: exercism/c3lang#1 You should have an invite to the team that has write access to the repo. If you don't see it, holler and I'll troubleshoot.

If you have other people who are helping build it let me know and I'll add them to the team as well.

Lastly, ask whatever questions you can think of in the Building Exercism section of the forum (https://forum.exercism.org/c/exercism/building-exercism/125), as there are a bunch of knowledgable and helpful folks there.

Thanks for taking this on, I'm looking forward to seeing how the track develops.

@kytrinyx kytrinyx closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant