123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|517|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Misc Languages -> Language Comparison Code : Basic Functionality Example

Sun, 08 May 2022, 06:13
Jayenkai

Language Comparison Code : Basic Functionality Example


Here's a really simple example.
Text displayed in the middle of the screen, moveable with cursors/buttons/what have you.
Three spinning shapes, and three spinning images.

The basic gist of this thread is to try to rewrite this simple example in as many languages as is possible, so that we can use this to compare all the different languages, and how easy they are to "just do a basic thing".

If you have access to any language, any system, whatever, please do join in with this thread.
It doesn't matter if you can't accomplish something in the language, or if you have to rescale things to fit lower resolutions, or whatever.
As long as the end result shows roughly the same vague things so that we can compare how the languages are structured, and how easy it is to use it to get the same sort of result.

If we can get this going as a "thing" then I can maybe think about creating some sort of proper language database with these examples included.

-=-=-

GotoJSE

GotoJSE.com
A simple basic interpreter that runs in the browser.

Runs on : Anything with a suitable browser
Targets : Only those systems, and only in their browser
Note : This is only ever sourcecode only, nothing will be compiled. Your sourcecode will be visible.
Steps Required : Open editor, paste code, run

  --v


-=-=-
''Load, Next List!''
Sun, 08 May 2022, 14:24
Jayenkai

Blitz3D

itch.io
The best 3D engine for BlitzCoders

Runs on : Windows
Targets : Windows
Steps Required : Paste code, save, add an image to the save folder, run



-=-=-
''Load, Next List!''
Sun, 08 May 2022, 14:41
Jayenkai

BlitzMax

itch.io
The best 2D engine for BlitzCoders

Runs on : Windows, Linux, Mac (if you can make it work.. Getting harder with each MacOS update)
Targets : Only the system it's currently running on.
Steps Required : Paste code, save, add an image to the save folder, run



-=-=-
''Load, Next List!''
Mon, 09 May 2022, 08:25
Dan
Great.
If you do not have an image then replace the img=loadimage line with this:



for the bb3d version.
Mon, 09 May 2022, 10:29
Dan
Ok i have decided to try it in AutoIt3.

If you want to test it, you have to get the include file from Here (My Ascii Game Framework)


Tue, 10 May 2022, 04:14
therevillsgames
Not perfect and I've tried to do 1 to 1 with JSE for Love2d/Lua:


Tue, 10 May 2022, 04:42
Jayenkai
Don't worry about doing it 1:1 perfectly. Just try to make it "more or less", or enough that the resulting code is readable and we can (hopefully!) use the examples to jump between the different languages.

-=-=-
''Load, Next List!''
Fri, 24 Jun 2022, 21:50
jprofitt
Here is an AGK version I threw together that is pretty close to the original



-=-=-
----------------------------------------
End of line...
----------------------------------------
Wed, 29 Jun 2022, 07:26
Jayenkai
Thanks
\o/yeay\o/
.. I should probably get something decent going for this, huh...?

-=-=-
''Load, Next List!''