^^ Title says it all. Feel free to do hello world in each language you know or have worked with a little bit (as in knowing the basic structure)
Simba Code:begin
writeln('hello world');
end.
^^ Title says it all. Feel free to do hello world in each language you know or have worked with a little bit (as in knowing the basic structure)
Simba Code:begin
writeln('hello world');
end.
Python is the most convenient language that i know of...no annoying ';' needed, no need to declare types, no curly braces or begin end for statement blocks--just simple indentation, etcCode:print("Hello, world!")
Very much understand c/c++ (c++11 new version not so much)
python and little java (java up to making gui)
Pascal/Delphi/lazarus/Simba:
These are my favourite IDE's/Language
Simba Code:Writeln('hello Villavu');
JAVA:
I only know very little java
PHP:Code:class Hello Villavu { public static void main(String args[]) { System.out.println("Hello Villavu"); } }
This was actually what started me off with computer programming.
HTML:PHP Code:<?php
Echo "Hello Villavu!";
?>
learnt this during learning php
I am looking to learn the C language just never had the time/Reason but who knows i might take it up tomorrow.HTML Code:<html> <header><title>This is title</title></header> <body> Hello Villavu </body> </html>
Why do you guys come up with HTML when the title says programming language?
Saw this somewhere on the forums and saved it:![]()
You may contact me with any concerns you have.
Are you a victim of harassment? Please notify me or any other staff member.
| SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |
Last edited by xtrapsp; 08-22-2013 at 09:28 AM.
Tutorials:
| Utilizing the tools in Villavu | How to create Pythagoras theorem calculator in JavaScript | How to make a live signature of your Pascal Script | Concepts of Programming Tutorial | Worked on Frog Random with Justin for RS07
All of them.. Lol k not all languages but quite a lot..
Meh:
Every kind of assembly language (ASM x86, Mips-ASM, ASM-ARM (for iPhone cracking stuff)).. and their assemblers (IE: MASM, FASM, NASM, MIPSA, etc)
Every C language (C#, Obj-C, C, C++, VC++) including the C++11, C-99 and C++-1y/14 apis..
Java/Byte-code
F#
Pascal/Delphi
Haskel
Fortran
GLSL (and all other OpenGL shading languages)
Aren't really languages or just really easy and everyone else knows them too:
Lua (perhaps my fave scripting language)
Visual Basic (yes I don't consider this piece of crap a language)
PHP, HTML, JS, ASP/ASP.Net (I hate each and every one of these except PHP)
A lot of Server Query Language (P-SQL, PL/SQL (Oracle), T-SQL, Postgre-SQL(Oracle based))
Languages I want to know but I just find weird or boring/useless to learn:
Google Go! (Not sure why I should learn this since the other languages I know can do the same things..)
Python (Heard it is like C so.. not sure why either)
MatLab
Ruby
Pearl
Cobol (just so I can say I know something old :l..)
For the hello worlds.. Iunno what to write.. Pretty sure everyone saw my Java, C, C++ code.. So I'll just post the hardest one which I wrote a while back here: http://villavu.com/forum/showthread.php?t=95541
All the following does is get user input and store it in registers, push the stack, store another, and then print it.. Has a couple functions too which just prints the parameter passed..
ASM x86:
ASM Code:format PE console ;Format PE OUT GUI 4.0
entry main
include 'macro/import32.inc'
section '.idata' import data readable ;Import Section.
library msvcrt,'msvcrt.dll'
import msvcrt, printf, 'printf',\
exit,'exit', getchar, 'getchar', scanf, 'scanf'
section '.data' data readable writeable ;Constants/Static Section. This section can store variables.
Size dd 0 ;Array Size. A Dword Initialized to 0
PromptValue db "Enter A Number: ", 13, 10, 0 ;Prompt User For A Number.
FuncPrint db 13, 10, 13, 10, "Calling Function: %s", 13, 10, 0 ;Statement For Function.
Response db 13, 10, 13, 10, "You Entered: %d", 13, 10, 0 ;Statement For Number.
InputFormat db "%d", 0 ;Format Data
IntArray dd 0 ;Declare Dword Initialized to 0
Index dd 0
section '.code' code readable executable
main:
push ebp
mov ebp,esp
push PromptValue ;Ask the user to Enter a number.
call [printf]
add esp, 4
push Size
push InputFormat
call [scanf] ;Call scanf with the "%d" and the variable to hold the integer.
add esp, 8
push [Size]
push Response
call [printf] ;Print the value the user entered with "%d".
add esp, 8
mov ecx, [Size] ;Store the Array Size/Number in the count register.
mov [Index], 0 ;Set the Index variable to 0.
ASSIGN: ;The beginning of a loop.
push ecx ;Backup our count because printf discards it.
mov ecx, [Index] ;Move our index to the new count register.
inc [Index] ;Increment the index.
mov [IntArray + 4 * ecx], ecx ;Change the value at the array's index to the current count.
pop ecx ;Restore our old count.
loop ASSIGN ;Loop if Count is > 0.. else break.
;TODO: Add Loop to print array..
mov [Index], 65 ;Store the character A in variable called Index.
push Index ;Pass Index to the function as a parameter by pushing it onto the stack.
call Function ;Call the function.
add esp, 4 ;Restore the stack pointer..
mov esp, ebp
pop ebx
call [getchar] ;Wait until the user presses a key before we exit.
call [getchar]
mov eax, 0 ;Return 0.
ret
Function:
push ebp
mov ebp, esp
mov eax, [ebp + 8] ;Function Parameter
push eax
push FuncPrint
call [printf] ;Print the Parameter Passed..
add esp, 8
mov esp, ebp
pop ebp
ret
Mips ASM:
ASM Code:.data #Data Section.
Input: .word 0
Prompt: .asciiz "\nEnter An Array Length:\n"
Prompt_Two: .asciiz "\nEnter Another Number:\n"
Notice: .asciiz " Is >= 80 AND < 100"
Space: .asciiz " "
NewLine: .asciiz "\n"
.text
main:
li $v0, 4 #4 means to print string.
la $a0, Prompt #Pass the value to print on screen.
syscall #Perform the system call for printing string.
li $v0, 5 #5 means to read input. This reads the length from the user.
syscall #Get the user input via the system call to read string.
move $s3, $v0 #Store the length of the array.. Similar to ECX register in x86.
GetNumbers: #Beginning of the loop.
subi $s3, $s3, 1 #Decrease the count.. This determines whether we break out of the loop or not.
beqz $s3, EndNumbers #if our count = 0, break out of the loop.
li $v0, 4 #Ask the user to enter another number.
la $a0, Prompt_Two
syscall
li $v0, 5 #wait for user input.
syscall
move $a0, $v0 #store their number in the $a0 register. Similar to eax
blt $v0, 80, GetNumbers #if the number is less than 80, don't bother printing it.
bge $v0, 100, GetNumbers #or.. if it is greater than 100, don't print it either..
li $v0, 1 #print integer.. this will print the number..
syscall
li $v0, 4 #print string.. this will print the Notice.. thus, it prints: SOmeNumber: Is >= 80 && < 100.
la $a0, Notice
syscall
b GetNumbers #continue the loop.. The loop only breaks when count reaches 0.
EndNumbers:
li $v0, 10 #Exit the program.
syscall #Invoke exiting via System call.
P.S. I still hate programming.. Just do it to kill time :l
Last edited by Brandon; 08-22-2013 at 01:44 AM.
I am Ggzz..
Hackintosher
What is your profession? Please tell me you are a programmer
Anti-Leech Movement Prevent Leeching Spread the word
Insanity 60 Days (Killer workout)
XoL Blog (Workouts/RS/Misc)
Basically this:
Comfortable:
C/C++, lua, CSS, HTML, BASIC
Getting there:
python, javascript, pascal, bash shell, SQL
Although once you learn a couple languages that have diametrically different ideologies, you basically know every language to novice level, simply based on the limited amount of syntaactical creativity/ideology.
php, javascript, pascal, VB, html(5), css(3), perl, python, LUA, ruby, SQL (mongodb, postgresql, mysql, mssql), ASP, & does bash scripting count?
I can do a bit of
C, C++, java, go, C#,
not that great though
lol vouch brandon therePHP, HTML, JS, ASP/ASP.Net (I hate each and every one of these except PHP)
The only true authority stems from knowledge, not from position.
You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.
I am Ggzz..
Hackintosher
Anti-Leech Movement Prevent Leeching Spread the word
Insanity 60 Days (Killer workout)
XoL Blog (Workouts/RS/Misc)
Lol I remember this stupid argument from a while ago
yes it is, it is a language, not a programming language.. but it is a language, hyper text markup language
from someone who's been going through college courses for about 8 years now, trust me when I say all classes are boring and someone at your level probably won't learn anything from them... I tend to take classes I'm interested in and learn/have already learned majority of it before the class even starts.
get your degree you want and gtfo!
Last edited by grats; 08-22-2013 at 11:10 PM.
The only true authority stems from knowledge, not from position.
You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.
vb.net, and a bit of java. I dont know where to really start with java.
I know pascal and starting to pick up java now![]()
07Scripter
I mostly write private scripts
There are currently 1 users browsing this thread. (0 members and 1 guests)