Rosetta Code

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Rosetta Code

Post by Vera »

Hello,

yesterday Kiffi posted on the german forum: ' I have found an interesting page: Rosetta Code '

This page shows how common programming tasks are transcribed within different languages.
To contrast with the known '99 bottles of beer' the aim is to supply mostly practical examples (like reading & writing of files, opening windows, etc. ...)
Rosetta Code wrote:Rosetta Code is a programming chrestomathy site. The idea is to present
solutions to the same task in as many different languages as possible, to
demonstrate how languages are similar and different, and to aid a person
with a grounding in one approach to a problem in learning another.
Rosetta Code currently has 376 tasks, and covers 200 languages, though
we do not (and cannot) have solutions to every task in every language.

A variety of tasks are listed, and visitors to this site are invited to solve
the tasks in the language of their choice
. The tasks cover everything from
the mundane Empty Program to the classic Towers of Hanoi, the practical
User Input, the mathematically-inclined Lucas-Lehmer test, and the involved
yet entertaining RCRPG.
'Unfortunately PureBasic is not (yet) represented' - well - that was yesterday :wink:

today (thanks to Little John) it's here: http://rosettacode.org/wiki/PureBasic

The opening is done - and I / we would be happy if you find it a good project too and join in building it up snip by snip :D

Request: would someone be so kind to announce this in the french forum as well ~ thanks

regards ~ Vera
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: Rosetta Code

Post by rsts »

Very interesting. Thanks for the heads up.

cheers
Little John
Addict
Addict
Posts: 4789
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Rosetta Code

Post by Little John »

Hi,

I think we should make a decision in which category the PureBasic example code is to be posted.
I myself have added examples for PrintN() and for MessageRequester() in the BASIC category, while someone else posted an example for Comments in a separate PureBasic category. We should handle that consistently, of course. Which category is best?

//edit:
It's probably best to put the example code in a separate PureBasic category. This way, the examples will be automatically added to the list on the main PureBasic page. (I've removed my examples mentioned above from the BASIC category.)

Regards, Little John
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Rosetta Code

Post by Vera »

Hello,

I've made PureBasic an autonomous language again but still kept the 'Implementation of Basic', as it's handled this way for PowerBasic too. (If we know what it means it could be removed any time.)

Now PB appears as a separate language on the main list.
All codes, which are included with
=={{header|PureBasic}}==
will then appear as sides of PureBasic on its category-page. [Hint: one can even set up own pages independent from the comparing examples. Specialities ... history ..?]

Those 8 out of 10 codes could only be found by search and I assigned them to PureBasic and re-placed them in by alphabetical order.

By dedicating this 'Top-Level' the two boxes 'language' and 'not yet implementierten Tasks' appeared, so the tasks can be found quickly now.
[The language-box may contain more characteristic features, which I couldn't evaluate. (see: http://rosettacode.org/wiki/Template:Language )
On the not implemented Task someone might have look which ones don't apply to PureBasic at all and hide them by adding {{omit from|PureBasic}} towards them.]

Recommendation: introduce new solutions with
=={{header|PureBasic}}== and maybe verify the version with e.g.
{{works with|PureBasic|4.41}}

Also highlighting is possible, if the code is enclosed in
<lang PureBasic>CODE</lang>

like to be seen under Primality by trial division

hoping this suites us fine ;) have a look on the main PureBasic page again and maybe find a challenge to be solved.

best regards ~ Vera

edit: removed 2.dot of versiontagging
Last edited by Vera on Mon Mar 01, 2010 3:39 pm, edited 1 time in total.
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Rosetta Code

Post by Vera »

Hello,

just to leave a happy note : It's overwhelming to see how this project proceeds _ :)
Let's say: starting of in a bit uncoordinated way with 2 - 10 examples, the next day another 13 were added. This morning further 11 solutions were solved and now additional 9 joined up - looks like it's growing at minute intervals _ :wink:

What a remarkable sign of a brilliant community _ :D
Thanks to those who joined and those who are heading to come _ Image

cheers ~ Vera
(27.02)

~~~~~
to keep you update: reached 76 solutions this morning _ :)
User avatar
KJ67
Enthusiast
Enthusiast
Posts: 218
Joined: Fri Jun 26, 2009 3:51 pm
Location: Westernmost tip of Norway

Re: Rosetta Code

Post by KJ67 »

Well, we have started the work.

Maybe we can get more people involved and maybe Fred or Freak could do a presentation of PureBasic and also fill in the Language_Comparison_Table?

The more the merrier! :D
The best preparation for tomorrow is doing your best today.
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Rosetta Code

Post by Vera »

Hello,

I've tried to find out what an 'implementation of a language' means and have come to the conclusion that 'PureBasic is an implementation of BASIC.' cannot be correct.

Still I'm not doubtlessly sure, so please can someone confirm this so that I may remove that assignment.

thanks ~ Vera
User avatar
KJ67
Enthusiast
Enthusiast
Posts: 218
Joined: Fri Jun 26, 2009 3:51 pm
Location: Westernmost tip of Norway

Re: Rosetta Code

Post by KJ67 »

This morning Mike Mol (aka Short Circuit) has deleted 30 submissions in the PureBasic category, please recheck to see if your submission(s) has been left or not.
The best preparation for tomorrow is doing your best today.
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Rosetta Code

Post by Vera »

Hi KJ67,
yes I've seen this and don't understand at all why this was done. Also 'private' messages have been removed. I just asked Mike what it is about.
KJ67 wrote: see if your submission(s) has been left
Sorry I don't get what you mean.

greetings ~ Vera
User avatar
Demivec
Addict
Addict
Posts: 4267
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Rosetta Code

Post by Demivec »

@KJ67: This was the response on Rosetta Code site to Vera's inquiry concerning the massive rollbacks:
A lot more than just PureBasic was affected. Looks to me like a web spider gone wrong. MediaWiki has a bug: the “rollback” command on edits is a hyperlink, not a button (violating the no-side-effects-for-GET principle), and so if a spider ran with User:Short Circuit's credentials this effect would result. I recommend waiting for this to be fixed everywhere rather than doing anything different on your part or attempting to restore the removals individually. —Kevin Reid 14:36, 7 March 2010 (UTC)
User avatar
KJ67
Enthusiast
Enthusiast
Posts: 218
Joined: Fri Jun 26, 2009 3:51 pm
Location: Westernmost tip of Norway

Re: Rosetta Code

Post by KJ67 »

Demivec wrote:MediaWiki has a bug: the “rollback” command on edits is a hyperlink
This would be a explanation I like, RosettaCode is a nice place to show and compare languages.
The best preparation for tomorrow is doing your best today.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Rosetta Code

Post by Trond »

The bulls and cows code gave made secret numbers that included 0, this isn't right.
User avatar
Demivec
Addict
Addict
Posts: 4267
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Rosetta Code

Post by Demivec »

Trond wrote:The bulls and cows code gave made secret numbers that included 0, this isn't right.
:oops: The code's been corrected.
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Rosetta Code

Post by Vera »

Hello,
except for todays postings everything had been reinstalled successfully - so everything is 'uptoyesterday' again ;) - and all solutions have returned. :)
--Michael Mol 18:46, 7 March 2010 (UTC) wrote:I ran a spider when I logged in. It was an accident, reverted about 500 edits,
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Rosetta Code

Post by Vera »

Today we've reached 154 solutions
To all those helping hands Image a small Video~Greeting in a Computer Song

enjoy ~ Vera
Post Reply